|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7460],{89489:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},59477:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},81953:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},49198:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},87169:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},52671:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},8657:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},10906:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},56082:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},33853:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},15075:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},43531:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},76618:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},38819:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ue}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(me,se){return fe.createElement(he.Z,(0,te.Z)({},me,{ref:se,icon:ye}))},ie=fe.forwardRef(ge),ue=ie},69453:function(gt,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"}},46401:function(gt,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"}},14257:function(){"use strict"},81923:function(gt,Ve,ee){"use strict";var te=ee(59301),fe=Object.defineProperty,be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ge=(ce,me,se)=>me in ce?fe(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:se}):ce[me]=se,ie=(ce,me)=>{for(var se in me||(me={}))ye.call(me,se)&&ge(ce,se,me[se]);if(be)for(var se of be(me))he.call(me,se)&&ge(ce,se,me[se]);return ce};const ue=ce=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),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="},8508:function(gt,Ve,ee){"use strict";var te=ee(59301),fe=Object.defineProperty,be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ge=(ce,me,se)=>me in ce?fe(ce,me,{enumerable:!0,configurable:!0,writable:!0,value:se}):ce[me]=se,ie=(ce,me)=>{for(var se in me||(me={}))ye.call(me,se)&&ge(ce,se,me[se]);if(be)for(var se of be(me))he.call(me,se)&&ge(ce,se,me[se]);return ce};const ue=ce=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),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=="},72179:function(){"use strict";function gt(ne,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(gt.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(gt.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(gt.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(gt.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,y){var a=go.Shape._FigureParameters[ne];return a?a[y]:null},go.Shape.setFigureParameter=function(ne,y,a){if(!(a instanceof gt))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[y]=a};var Ve=[];function ee(ne,y){var a=Ve.pop();return a===void 0?new go.Point(ne,y):(a.x=ne,a.y=y,a)}function te(){var ne=Ve.pop();return ne===void 0?new go.Point:ne}function fe(ne){Ve.push(ne)}function be(ne,y,a,E,b,x,z,re,le){le||(le=new go.Point);var de=ne-a,ve=b-z,Se=NaN,Le=NaN;if(de===0)if(ve===0)ne===a&&(Se=ne,Le=y);else{var Ee=(x-re)/ve,je=x-Ee*b;Se=ne,Le=Ee*Se+je}else if(ve===0){var xe=(y-E)/de,lt=y-xe*ne;Se=b,Le=xe*Se+lt}else{var xe=(y-E)/de,Ee=(x-re)/ve,lt=y-xe*ne,je=x-Ee*b;Se=(je-lt)/(xe-Ee),Le=xe*Se+lt}return le.x=Se,le.y=Le,le}function ye(ne,y,a,E,b,x,z,re,le,de,ve,Se,Le,Ee){var je=1-le,xe=le,lt=ne*je+a*xe,Ye=y*je+E*xe,ft=a*je+b*xe,Me=E*je+x*xe,He=b*je+z*xe,Ne=x*je+re*xe,ot=lt*je+ft*xe,Ze=Ye*je+Me*xe,vt=ft*je+He*xe,Pt=Me*je+Ne*xe,Mt=ot*je+vt*xe,At=Ze*je+Pt*xe;de.x=lt,de.y=Ye,ve.x=ot,ve.y=Ze,Se.x=Mt,Se.y=At,Le.x=vt,Le.y=Pt,Ee.x=He,Ee.y=Ne}var he=new go.Spot(.156,.156),ge=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new gt("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ie,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=he,b.spot2=ge,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,ie*y,0,y,(1-ie)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,ie*a,(1-ie)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,ie*a,ie*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ie)*y,0,0,(1-ie)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new gt("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new gt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new gt("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new gt("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new gt("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var ue=[];function ce(){var ne=ue.pop();return ne===void 0?[]:ne}function me(ne){ne.length=0,ue.push(ne)}function se(ne){for(var y=ce(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function pe(ne){var y=oe(ne),a=ce();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return me(y),a}function oe(ne){for(var y=se(ne),a=ce(),E=Math.floor(y.length/2),b=y.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var re=y[z],le=y[z+1],de=y[(E+z-1)%b],ve=y[(E+z+x)%b];a[z*2]=re,a[z*2+1]=be(re.x,re.y,de.x,de.y,le.x,le.y,ve.x,ve.y,new go.Point)}return a[a.length]=a[0],me(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ne,y,a){var E=se(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,y,a){var E=se(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,y,a){var E=se(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,y,a){var E=se(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,y,a){var E=se(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,y,a){var E=se(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,y,a){var E=se(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,y,a){var E=oe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,y,a){var E=oe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,y,a){var E=oe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,y,a){var E=oe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,y,a){var E=oe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,y,a){var E=oe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),me(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,y,a){var E=pe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,y,a){var E=pe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,y,a){var E=pe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,y,a){var E=pe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,y,a){var E=pe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,y,a){var E=pe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new gt("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new gt("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,y,a){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new gt("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var re=Math.max(b-E,0);return re>0&&(z.add(new go.PathSegment(go.PathSegment.Move,y/2+re,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,re,re).close())),x.spot1=he,x.spot2=ge,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new gt("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new gt("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,y,a){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,re=Math.min(y,a)/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,y,a){var E=ie/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new gt("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new gt("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new gt("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,y,a){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,re=Math.atan2(a,y),le=E-Math.min(Math.cos(re)*E/2,x),de=E-Math.min(Math.sin(re)*E/2,z),b=new go.Geometry,ve=new go.PathFigure(le,0,!0);return b.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),ve.add(new go.PathSegment(go.PathSegment.Line,y-le,0)),ve.add(new go.PathSegment(go.PathSegment.Line,y,de)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,y,a-de)),ve.add(new go.PathSegment(go.PathSegment.Line,y-le,a)),ve.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ve.add(new go.PathSegment(go.PathSegment.Line,le,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,a-de)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,0,de).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new gt("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new gt("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new gt("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,ie*y,0,y,(.5-ie/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+ie/2)*a,ie*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,re=0,le=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+re)*a,(.5-x+z)*y,(.5+le+re)*a,(.5-le+z)*y,(.5+x+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+re)*a,(.5+le+z)*y,(.5+x+re)*a,(.5+x+z)*y,(.5+le+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+re)*a,(1-.5+x+z)*y,(.5-le+re)*a,(.5+le+z)*y,(.5-x+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-le+z)*y,(.5-x+re)*a,(.5-x+z+.05)*y,(.5-le+re-.02)*a)),x=.2,z=0,re=-.3,le=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+re)*a,(.5+le+z)*y,(.5+x+re)*a,(.5+x+z)*y,(.5+le+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+re)*a,(1-.5+x+z)*y,(.5-le+re)*a,(.5+le+z)*y,(.5-x+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+re)*a,(.5-le+z)*y,(.5-x+re)*a,(.5-x+z)*y,(.5-le+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+z)*y,(.5+x+re)*a,(.5-x+z)*y,(.5+le+re)*a,(.5-le+z)*y,(.5+x+re)*a)),x=.2,z=-.3,re=0,le=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+re)*a,(1-.5+x+z-.05)*y,(.5-le+re-.02)*a,(.5+le+z)*y,(.5-x+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+re)*a,(.5-le+z)*y,(.5-x+re)*a,(.5-x+z)*y,(.5-le+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+re)*a,(.5-x+z)*y,(.5+le+re)*a,(.5-le+z)*y,(.5+x+re)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+le+z)*y,(.5+x+re)*a,(.5+x+z)*y,(.5+le+re)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,re=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,re*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*re,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),re=.75,b=new go.PathFigure((z+x)*y,re*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*re,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=.5,z=.5,re=.5,le=new go.PathFigure(z*y,(re-x)*a);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-x)*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a)),x=.4,b=ie*.4;var de=te(),ve=te(),Se=te(),Le=te();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.42,de,ve,Se,Le,Le);var Ee=te(),je=te(),xe=te();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.58,Le,Le,xe,Ee,je);var lt=te(),Ye=te(),ft=te();ye(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.42,lt,Ye,ft,Le,Le);var Me=te(),He=te(),Ne=te();return ye(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.58,Le,Le,Ne,Me,He),le.add(new go.PathSegment(go.PathSegment.Move,Ne.x*y,Ne.y*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,Me.x*y,Me.y*a,He.x*y,He.y*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-x)*a,(z-x)*y,(re-b)*a,(z-b)*y,(re-x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,Se.x*y,Se.y*a,de.x*y,de.y*a,ve.x*y,ve.y*a)),le.add(new go.PathSegment(go.PathSegment.Line,Ne.x*y,Ne.y*a).close()),le.add(new go.PathSegment(go.PathSegment.Move,ft.x*y,ft.y*a)),le.add(new go.PathSegment(go.PathSegment.Line,xe.x*y,xe.y*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,Ee.x*y,Ee.y*a,je.x*y,je.y*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z+x)*y,(re+b)*a,(z+b)*y,(re+x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,ft.x*y,ft.y*a,lt.x*y,lt.y*a,Ye.x*y,Ye.y*a).close()),fe(de),fe(ve),fe(Se),fe(Le),fe(Ee),fe(je),fe(xe),fe(lt),fe(Ye),fe(ft),fe(Me),fe(He),fe(Ne),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new gt("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,y,a){var E=new go.Geometry,b=ie*.4,x=.4,z=.5,re=.5,le=te(),de=te(),ve=te(),Se=te(),Le=new go.PathFigure((z-x)*y,re*a,!1);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-x)*a,(z-x)*y,(re-b)*a,(z-b)*y,(re-x)*a)),ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.44,ve,Se,de,le,le),Le.add(new go.PathSegment(go.PathSegment.Bezier,de.x*y,de.y*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a));var Ee=ee(de.x,de.y);ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.56,le,le,de,ve,Se);var je=ee(de.x,de.y);Le.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.95*.9)*y,Ee.y*.1*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*y,Ee.y*.1*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),Le.add(new go.PathSegment(go.PathSegment.Line,y,0)),Le.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),Le.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*y,.15*a)),Le.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*y,(je.y*.1+.05*.9)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,je.x*y,je.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z+x)*y,(re+b)*a,(z+b)*y,(re+x)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,(z-b)*y,(re+x)*a,(z-x)*y,(re+b)*a)),x=.35,b=ie*.35;var xe=new go.PathFigure(z*y,(re-x)*a,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-x)*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a));var lt=new go.PathFigure((z-x)*y,re*a,!1);return E.add(lt),fe(le),fe(de),fe(ve),fe(Se),fe(Ee),fe(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,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,re=b*ie,le=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+re+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+re+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-re+z)*a,(.5+re+x)*y,(.5-b+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-re+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-re+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+re+z)*a,(.5-re+x)*y,(.5+b+z)*a)),le.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),le.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),le.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),le.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),le.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),le.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),le.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),le.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),le.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),le.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,re=b*ie;var le=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+re+z)*a,(.5+re+x)*y,(.5+b+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-re+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+re+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-re+z)*a,(.5-re+x)*y,(.5-b+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+re+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-re+z)*a));var le=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);return E.add(le),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,y,a){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,y,a){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new gt("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new gt("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,re=(.5+b/2)*a,le=new go.Geometry,de=new go.PathFigure(0,z,!0);le.add(de),de.add(new go.PathSegment(go.PathSegment.Line,x,z)),de.add(new go.PathSegment(go.PathSegment.Line,x,0)),de.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),de.add(new go.PathSegment(go.PathSegment.Line,x,a)),de.add(new go.PathSegment(go.PathSegment.Line,x,re)),de.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),le.spot1=new go.Spot(0,z/a);var ve=be(0,re/a,1,re/a,x/y,1,1,.5,te());return le.spot2=new go.Spot(ve.x,ve.y),fe(ve),le}),go.Shape.setFigureParameter("Arrow2",0,new gt("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new gt("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-b)/2,re=z+b,le=new go.Geometry,de=new go.PathFigure(0,z,!0);le.add(de),de.add(new go.PathSegment(go.PathSegment.Line,x,z)),de.add(new go.PathSegment(go.PathSegment.Line,x,0)),de.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),de.add(new go.PathSegment(go.PathSegment.Line,x,a)),de.add(new go.PathSegment(go.PathSegment.Line,x,re)),de.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),le.spot1=new go.Spot(0,z/a);var ve=be(0,re/a,1,re/a,x/y,1,1,.5,te());return le.spot2=new go.Spot(ve.x,ve.y),fe(ve),le}),go.Shape.defineFigureGenerator("Chevron",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new gt("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,re=new go.PathFigure(y,.5*a,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var le=be(0,.5,.3,0,0,b/a,.1,b/a,te());return z.spot1=new go.Spot(le.x,le.y),le=be(.7,1,1,.5,0,x/a,1,x/a,le),z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new gt("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new gt("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,re=(a-b)/2,le=re+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,re=0,le=a):(x=0,z=a,re=0,le=a));var de=new go.Geometry,ve=new go.PathFigure(y,.5*a,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,le)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,le)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,re).close());var Se=be(0,.5,.3,re/a,0,x/a,1,x/a,te());return de.spot1=new go.Spot(Se.x,Se.y),Se=be(.7,le/a,1,.5,0,z/a,1,z/a,Se),de.spot2=new go.Spot(Se.x,Se.y),fe(Se),de}),go.Shape.setFigureParameter("IBeamArrow",0,new gt("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,re=new go.PathFigure(y,.5*a,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var le=be(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new gt("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new gt("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,re=(a-b)/2,le=re+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,re=0,le=a):(x=0,z=a,re=0,le=a));var de=new go.Geometry,ve=new go.PathFigure(y,.5*a,!0);de.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,le)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,le)),ve.add(new go.PathSegment(go.PathSegment.Line,0,le)),ve.add(new go.PathSegment(go.PathSegment.Line,0,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,re)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,re).close()),de.spot1=new go.Spot(0,x/a);var Se=be(.7,le/a,1,.5,0,z/a,1,z/a,te());return de.spot2=new go.Spot(Se.x,Se.y),fe(Se),de}),go.Shape.setFigureParameter("Pointer",0,new gt("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=be(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new gt("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=be(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new gt("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,re=new go.PathFigure(y,.5*a,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var le=be(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new gt("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,re=new go.PathFigure(y,.5*a,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var le=be(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(le.x,le.y),fe(le),z}),go.Shape.setFigureParameter("SquareArrow",0,new gt("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ie*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-ie*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var re=new go.PathFigure(y,E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-ie*E,(.5+x)*y,2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,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,y,a){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(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ie*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-ie*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-ie*E));var re=new go.PathFigure(0,a-E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-ie*E,(.5-x)*y,a-2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-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,y,a){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(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ie*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ie*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ie*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,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*a,E+ie*E,0,2*E,(.5-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+ie*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ie*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ie*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ie*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,ie*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var re=new go.PathFigure(y-E,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-ie*E,0,y-2*E,(.5-x)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-ie*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,y,a){var E=new go.Geometry,b=.2,x=.1,z=ie*b,re=ie*x,le=.5,de=.1,ve=new go.PathFigure(le*y,(de+x)*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-b)*y,de*a,(le-z)*y,(de+x)*a,(le-b)*y,(de+re)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-x)*a,(le-b)*y,(de-re)*a,(le-z)*y,(de-x)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+b)*y,de*a,(le+z)*y,(de-x)*a,(le+b)*y,(de-re)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de+x)*a,(le+b)*y,(de+re)*a,(le+z)*y,(de+x)*a));var Se=.05,Le=ie*Se;le=.05,de=.25;var Ee=new go.PathFigure(.5*y,.2*a,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),le=.95,de=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+Se)*y,de*a,(le+Le)*y,(de-Se)*a,(le+Se)*y,(de-Le)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),Se=.025,Le=ie*Se,le=.825,de=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-Se)*a,(le+Se)*y,(de-Le)*a,(le+Le)*y,(de-Se)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*y,de*a,(le-Le)*y,(de-Se)*a,(le-Se)*y,(de-Le)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),Se=.05,Le=ie*Se,le=.5,de=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-Se)*a,(le+Se)*y,(de-Le)*a,(le+Le)*y,(de-Se)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*y,de*a,(le-Le)*y,(de-Se)*a,(le-Se)*y,(de-Le)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),Se=.025,Le=ie*Se,le=.175,de=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-Se)*a,(le+Se)*y,(de-Le)*a,(le+Le)*y,(de-Se)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-Se)*y,de*a,(le-Le)*y,(de-Se)*a,(le-Se)*y,(de-Le)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Se=.05,Le=ie*Se,le=.05,de=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-Se)*a,(le-Se)*y,(de-Le)*a,(le-Le)*y,(de-Se)*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new gt("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var re=new go.PathFigure(y,.1*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),re.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),re.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var re=new go.PathFigure(y,.1*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),re.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ie*.2,z=new go.PathFigure(0,.2*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,b*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(b*y,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),re.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ie*.5,re=.5,le=new go.PathFigure(y,re*a,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*y,a,y,(re+z)*a,(re+z)*y,a)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-z)*y,a,0,(re+z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*y,0,0,(re-z)*a,(re-z)*y,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,y,re*a,(re+z)*y,0,y,(re-z)*a));var de=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),de.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),de.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var re=new go.PathFigure(.5*b*y,b*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var re=new go.PathFigure(y,.5*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var re=new go.PathFigure(y,x*a,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var le=new go.PathFigure(.8*y,.75*a,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),le.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),le.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),le.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),le.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),le.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),le.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,y,a){var E=new go.Geometry,b=ie*.1,x=.1,z=.9,re=.5,le=new go.PathFigure(.8*y,.5*a,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,a)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var de=new go.PathFigure((z+x)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z+x)*y,(re+b)*a,(z+b)*y,(re+x)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,(z-b)*y,(re+x)*a,(z-x)*y,(re+b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-x)*a,(z-x)*y,(re-b)*a,(z-b)*y,(re-x)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,(z+b)*y,(re-x)*a,(z+x)*y,(re-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=ie*.4,z=ie*.1,re=.1,le=.9,de=.5,ve=new go.PathFigure(.8*y,.5*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var Se=new go.PathFigure((le+re)*y,de*a,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de+re)*a,(le+re)*y,(de+z)*a,(le+z)*y,(de+re)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*y,de*a,(le-z)*y,(de+re)*a,(le-re)*y,(de+z)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-re)*a,(le-re)*y,(de-z)*a,(le-z)*y,(de-re)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*y,de*a,(le+z)*y,(de-re)*a,(le+re)*y,(de-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ie*b,z=0,re=.5,le=new go.PathFigure(.8*y,.5*a,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(re+x)*a,(z+x)*y,(re+b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(re-b)*a,.7*y,(re-x)*a)),b=.1,x=ie*.1,z=.9,re=.5;var de=new go.PathFigure((z-b)*y,re*a,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-b)*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,re*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+b)*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,re*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ie*b,z=0,re=.5,le=new go.PathFigure(0,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x+x)*y,(re-b)*a,.8*y,(re-x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(re+x)*a,(z+x+x)*y,(re+b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ie*b,z=.2,re=.5,le=new go.PathFigure(.1*y,0,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var de=new go.PathFigure(.8*y,.5*a,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(re+x)*a,(z+x)*y,(re+b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(re-b)*a,.7*y,(re-x)*a)),b=.1,x=ie*.1,z=.9,re=.5;var ve=new go.PathFigure((z-b)*y,re*a,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-b)*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,re*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+b)*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,re*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ie*b,z=.2,re=.5,le=new go.PathFigure(.1*y,0,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var de=new go.PathFigure(.2*y,0,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(re-b)*a,.9*y,(re-x)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(re+x)*a,(z+x)*y,(re+b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,y,a){var E=new go.Geometry,b=ie*.1,x=.1,z=.1,re=.5,le=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,y,a){var E=new go.Geometry,b=ie*.5,x=.5,z=.5,re=.5,le=new go.PathFigure((z-x)*y,re*a,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-x)*a,(z-x)*y,(re-b)*a,(z-b)*y,(re-x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,(z+b)*y,(re-x)*a,(z+x)*y,(re-b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z+x)*y,(re+b)*a,(z+b)*y,(re+x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,(z-b)*y,(re+x)*a,(z-x)*y,(re+b)*a)),le.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,re*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,re*a,z*y,(re-x)*a,z*y,(re+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=ie*.8,re=.8,le=0,de=.5,ve=(b-y)/2,Se=(x-a)/2,Le=new go.PathFigure(le*y+ve,(de+re)*a+Se,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*y+ve,de*a+Se,(le-z)*y+ve,(de+re)*a+Se,(le-re)*y+ve,(de+z)*a+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de-re)*a+Se,(le-re)*y+ve,(de-z)*a+Se,(le-z)*y+ve,(de-re)*a+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(le-re+z*.5)*y+ve,de*a+Se,le*y+ve,(de-re)*a+Se,(le-re+z*.5)*y+ve,(de-z)*a+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de+re)*a+Se,(le-re+z*.5)*y+ve,(de+z)*a+Se,le*y+ve,(de+re)*a+Se).close()),z=ie*.4,re=.4,le=.2,de=.5;var Ee=new go.PathFigure(le*y+ve,(de+re)*a+Se,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*y+ve,de*a+Se,(le-z)*y+ve,(de+re)*a+Se,(le-re)*y+ve,(de+z)*a+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de-re)*a+Se,(le-re)*y+ve,(de-z)*a+Se,(le-z)*y+ve,(de-re)*a+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-re+z*.5)*y+ve,de*a+Se,le*y+ve,(de-re)*a+Se,(le-re+z*.5)*y+ve,(de-z)*a+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de+re)*a+Se,(le-re+z*.5)*y+ve,(de+z)*a+Se,le*y+ve,(de+re)*a+Se).close()),z=ie*.2,re=.2,le=.5,de=.5;var je=new go.PathFigure((le-re)*y+ve,de*a+Se,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de-re)*a+Se,(le-re)*y+ve,(de-z)*a+Se,(le-z)*y+ve,(de-re)*a+Se)),je.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*y+ve,de*a+Se,(le+z)*y+ve,(de-re)*a+Se,(le+re)*y+ve,(de-z)*a+Se)),je.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de+re)*a+Se,(le+re)*y+ve,(de+z)*a+Se,(le+z)*y+ve,(de+re)*a+Se)),je.add(new go.PathSegment(go.PathSegment.Bezier,(le-re)*y+ve,de*a+Se,(le-z)*y+ve,(de+re)*a+Se,(le-re)*y+ve,(de+z)*a+Se)),z=ie*.4,re=.4,le=.8,de=.5;var xe=new go.PathFigure(le*y+ve,(de-re)*a+Se,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*y+ve,de*a+Se,(le+z)*y+ve,(de-re)*a+Se,(le+re)*y+ve,(de-z)*a+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de+re)*a+Se,(le+re)*y+ve,(de+z)*a+Se,(le+z)*y+ve,(de+re)*a+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(le+re-z*.5)*y+ve,de*a+Se,le*y+ve,(de+re)*a+Se,(le+re-z*.5)*y+ve,(de+z)*a+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de-re)*a+Se,(le+re-z*.5)*y+ve,(de-z)*a+Se,le*y+ve,(de-re)*a+Se).close()),z=ie*.8,re=.8,le=1,de=.5;var lt=new go.PathFigure(le*y+ve,(de-re)*a+Se,!0);return E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,(le+re)*y+ve,de*a+Se,(le+z)*y+ve,(de-re)*a+Se,(le+re)*y+ve,(de-z)*a+Se)),lt.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de+re)*a+Se,(le+re)*y+ve,(de+z)*a+Se,(le+z)*y+ve,(de+re)*a+Se)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(le+re-z*.5)*y+ve,de*a+Se,le*y+ve,(de+re)*a+Se,(le+re-z*.5)*y+ve,(de+z)*a+Se)),lt.add(new go.PathSegment(go.PathSegment.Bezier,le*y+ve,(de-re)*a+Se,(le+re-z*.5)*y+ve,(de-z)*a+Se,le*y+ve,(de-re)*a+Se).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var re=new go.PathFigure(0,.5*a,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(ne,y,a){var E=new go.Geometry,b=ie*.4,x=.4,z=.5,re=.5,le=te(),de=te(),ve=te(),Se=te();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,le,le,de,ve,Se);var Le=ee(de.x,de.y),Ee=new go.PathFigure(de.x*y,de.y*a,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z+x)*y,(re+b)*a,(z+b)*y,(re+x)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,(z-b)*y,(re+x)*a,(z-x)*y,(re+b)*a)),ye(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,ve,Se,de,le,le),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de.x*y,de.y*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a)),b=ie*.3,x=.3,ye(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,ve,Se,de,le,le),Ee.add(new go.PathSegment(go.PathSegment.Line,de.x*y,de.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,re*a,Se.x*y,Se.y*a,ve.x*y,ve.y*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+x)*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,re*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,le,le,de,ve,Se),Ee.add(new go.PathSegment(go.PathSegment.Bezier,de.x*y,de.y*a,Se.x*y,Se.y*a,ve.x*y,ve.y*a).close());var Ee=new go.PathFigure(.45*y,0,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),fe(le),fe(de),fe(ve),fe(Se),fe(Le),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,re,le){z.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*y,(.8+le)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*y,(.5+le)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*y,(.5+le)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*y,(.8+le)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,y,a){var E=new go.Geometry,b=.5,x=0,z=0,re=b*ie,le=.4*Math.SQRT2/2+.5,de=.5-.5*Math.SQRT2/2,ve=1,Se=.5,Le=.5,Ee=0,je=new go.PathFigure(le*y,(1-de)*a,!1);return E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,Se*a,ve*y,.7*a,ve*y,Se*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le+x)*y,(Ee+x)*a,(.5+b+x)*y,(.5-re+x)*a,(.5+re+x)*y,(.5-b+x)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-re+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-re+z)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+re+z)*a,(.5-re+x)*y,.9*a)),je.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),je.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),je.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,re=.5,le=z,de=Math.PI/4,ve=4*(1-Math.cos(de))/(3*Math.sin(de)),Se=ve*.5,Le=z,Ee=z,je=ve*Le,xe=ve*Ee;x.add(new go.PathSegment(go.PathSegment.Bezier,(re-Le)*y,le*a,(re-(je+Le)/2)*y,(le+(Ee+xe)/2)*a,(re-Le)*y,(le+xe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,re*y,(le-Ee)*a,(re-Le)*y,(le-xe)*a,(re-je)*y,(le-Ee)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(re+Le)*y,le*a,(re+je)*y,(le-Ee)*a,(re+Le)*y,(le-xe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(re+Le)*y,(le+xe)*a,(re+(je+Le)/2)*y,(le+(Ee+xe)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var lt=new go.PathFigure(.2*y,a,!1);E.add(lt),lt.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var Ye=new go.PathFigure(.8*y,a,!1);return E.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,y,a){var E=new go.Geometry,b=.5,x=ie*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var re=new go.PathFigure(b*y,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),re.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),re.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),re.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,re=ie*.1,le=.2,de=.9,ve=new go.PathFigure((le-z)*y,de*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-z)*a,(le-z)*y,(de-re)*a,(le-re)*y,(de-z)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le+z)*y,de*a,(le+re)*y,(de-z)*a,(le+z)*y,(de-re)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de+z)*a,(le+z)*y,(de+re)*a,(le+re)*y,(de+z)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(le-z)*y,de*a,(le-re)*y,(de+z)*a,(le-z)*y,(de+re)*a).close()),z=.1,re=ie*.1,le=.8,de=.9;var Se=new go.PathFigure((le-z)*y,de*a,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de-z)*a,(le-z)*y,(de-re)*a,(le-re)*y,(de-z)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le+z)*y,de*a,(le+re)*y,(de-z)*a,(le+z)*y,(de-re)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,le*y,(de+z)*a,(le+z)*y,(de+re)*a,(le+re)*y,(de+z)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(le-z)*y,de*a,(le-re)*y,(de+z)*a,(le-z)*y,(de+re)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var re=new go.PathFigure(.5*y,.7*a,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var le=.1,de=ie*.1,ve=.1,Se=.9,Le=new go.PathFigure((ve-le)*y,Se*a,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se-le)*a,(ve-le)*y,(Se-de)*a,(ve-de)*y,(Se-le)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*y,Se*a,(ve+de)*y,(Se-le)*a,(ve+le)*y,(Se-de)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se+le)*a,(ve+le)*y,(Se+de)*a,(ve+de)*y,(Se+le)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*y,Se*a,(ve-de)*y,(Se+le)*a,(ve-le)*y,(Se+de)*a)),le=.1,de=ie*.1,ve=.4,Se=.9;var Ee=new go.PathFigure((ve-le)*y,Se*a,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se-le)*a,(ve-le)*y,(Se-de)*a,(ve-de)*y,(Se-le)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve+le)*y,Se*a,(ve+de)*y,(Se-le)*a,(ve+le)*y,(Se-de)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se+le)*a,(ve+le)*y,(Se+de)*a,(ve+de)*y,(Se+le)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ve-le)*y,Se*a,(ve-de)*y,(Se+le)*a,(ve-le)*y,(Se+de)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ve=.05,Se=ie*.05,Le=.175,Ee=.95,re=new go.PathFigure((Le-ve)*y,Ee*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee-ve)*a,(Le-ve)*y,(Ee-Se)*a,(Le-Se)*y,(Ee-ve)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,Ee*a,(Le+Se)*y,(Ee-ve)*a,(Le+ve)*y,(Ee-Se)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee+ve)*a,(Le+ve)*y,(Ee+Se)*a,(Le+Se)*y,(Ee+ve)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,Ee*a,(Le-Se)*y,(Ee+ve)*a,(Le-ve)*y,(Ee+Se)*a));var ve=.05,Se=ie*.05,Le=.375,Ee=.95,le=new go.PathFigure((Le-ve)*y,Ee*a,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee-ve)*a,(Le-ve)*y,(Ee-Se)*a,(Le-Se)*y,(Ee-ve)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,Ee*a,(Le+Se)*y,(Ee-ve)*a,(Le+ve)*y,(Ee-Se)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee+ve)*a,(Le+ve)*y,(Ee+Se)*a,(Le+Se)*y,(Ee+ve)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,Ee*a,(Le-Se)*y,(Ee+ve)*a,(Le-ve)*y,(Ee+Se)*a));var ve=.05,Se=ie*.05,Le=.625,Ee=.95,de=new go.PathFigure((Le-ve)*y,Ee*a,!0);E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee-ve)*a,(Le-ve)*y,(Ee-Se)*a,(Le-Se)*y,(Ee-ve)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,Ee*a,(Le+Se)*y,(Ee-ve)*a,(Le+ve)*y,(Ee-Se)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee+ve)*a,(Le+ve)*y,(Ee+Se)*a,(Le+Se)*y,(Ee+ve)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,Ee*a,(Le-Se)*y,(Ee+ve)*a,(Le-ve)*y,(Ee+Se)*a));var ve=.05,Se=ie*.05,Le=.825,Ee=.95,je=new go.PathFigure((Le-ve)*y,Ee*a,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee-ve)*a,(Le-ve)*y,(Ee-Se)*a,(Le-Se)*y,(Ee-ve)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,Ee*a,(Le+Se)*y,(Ee-ve)*a,(Le+ve)*y,(Ee-Se)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(Ee+ve)*a,(Le+ve)*y,(Ee+Se)*a,(Le+Se)*y,(Ee+ve)*a)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,Ee*a,(Le-Se)*y,(Ee+ve)*a,(Le-ve)*y,(Ee+Se)*a).close());var xe=new go.PathFigure(0,a,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var re=.05,le=ie*.05,de=.35,ve=.775,Se=new go.PathFigure((de-re)*y,ve*a,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(ve-re)*a,(de-re)*y,(ve-le)*a,(de-le)*y,(ve-re)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de+re)*y,ve*a,(de+le)*y,(ve-re)*a,(de+re)*y,(ve-le)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*y,(ve+re)*a,(de+re)*y,(ve+le)*a,(de+le)*y,(ve+re)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de-re)*y,ve*a,(de-le)*y,(ve+re)*a,(de-re)*y,(ve+le)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,y,a){var E=new go.Geometry,b=.3,x=ie*.3,z=.5,re=.7,le=new go.PathFigure((z-b)*y,re*a,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-b)*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,re*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+b)*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,re*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a));var de=new go.PathFigure(0,.7*a,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,y,a){var E=new go.Geometry,b=.5,x=ie*.5,z=.5,re=.5,le=new go.PathFigure((z-b)*y,re*a,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-b)*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,re*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+b)*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,re*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a));var de=new go.PathFigure(.15*y,.5*a,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,y,a){var E=new go.Geometry,b=.5,x=ie*.5,z=.5,re=.5,le=new go.PathFigure((z-b)*y,re*a,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-b)*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,re*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+b)*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,re*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a).close()),b=.05,x=ie*.05,z=.5,re=.8;var de=new go.PathFigure((z-b)*y,re*a,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re-b)*a,(z-b)*y,(re-x)*a,(z-x)*y,(re-b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,re*a,(z+x)*y,(re-b)*a,(z+b)*y,(re-x)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(re+b)*a,(z+b)*y,(re+x)*a,(z+x)*y,(re+b)*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,re*a,(z-x)*y,(re+b)*a,(z-b)*y,(re+x)*a).close()),de.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),de.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),de.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var re=new go.PathFigure(.678*y,.85*a,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var le=new go.PathFigure(.5*y,.1*a,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),le.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var re=new go.PathFigure(y*.612,a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var le=new go.PathFigure(y*.816,a,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),le.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),le.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var re=new go.PathFigure(y*.055,.18*a,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var le=new go.PathFigure(y*1,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),le.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),le.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var re=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var le=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),le.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),le.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,y,a){var E=new go.Geometry,b=8,x=b*ie,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var re=new go.PathFigure(y*.83,0,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var le=new go.PathFigure(y*.83,a*1,!1);E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),le.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),le.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var de=new go.PathFigure(y*.78,a*.05,!1);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),de.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),de.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ie,x=a*.8,z=new go.Geometry,re=new go.PathFigure(E,0,!0);return z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),re.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),re.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),re.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),re.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*.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,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,y,a){var E=new go.Geometry,b=15,x=b*ie,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},25730: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 gt={},Ve="5.0",ee={},te=null,fe=!1,be=!1,ye=null,he=!1,ge=null,ie=null,ue=0;ue<arguments.length;ue++){var ce=arguments[ue];if(ce!==null)switch(typeof ce){case"number":Ve=ce.toFixed(1);break;case"string":ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ve=ce:ye=ce;break;case"object":typeof ce.is3D!="undefined"?te=ce:ee=ce;break;case"boolean":fe=ce,be=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!be&&(fe=!0)),ye!==null&&ee.id===void 0&&(ee.id=ye);var me="",se="",pe=!1,oe=null,ne=null,y=null,a=!1,E=null,b=null,x=null,z=null,re=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var le=function(et){return parseFloat(et)>4?parseFloat(et):5};gt.setHTML5Codebase=function(et,Qe){ie=et,Pt(et,Qe)},gt.setJavaCodebase=gt.setJavaCodebaseVersion=gt.isCompiledInstalled=gt.setPreCompiledScriptPath=gt.setPreCompiledResourcePath=function(){},gt.setHTML5CodebaseVersion=function(et,Qe){var Et=parseFloat(et);if(Et!==NaN&&Et<5){console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead.");return}ge=et,vt(et,Qe)},gt.getHTML5CodebaseVersion=function(){return ne},gt.getParameters=function(){return ee},gt.setFontsCSSURL=function(et){z=et},gt.setGiacJSURL=function(et){},gt.setJNLPFile=function(et){me=et},gt.setJNLPBaseDir=function(et){},gt.inject=function(){function et(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",Et=ee.id,Kt,bt=!1,Wt=0;Wt<arguments.length;Wt++){var $e=arguments[Wt];typeof $e=="string"?($e=$e.toLowerCase(),$e.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Qe=$e:Et=arguments[Wt]):typeof $e=="boolean"?bt=$e:$e instanceof HTMLElement&&(Kt=$e)}St();function St(){if(!he){setTimeout(St,200);return}Qe=ot(Qe);var xt=Kt||document.getElementById(Et);if(!xt){console.log("possibly bug on ajax loading? ");return}if(gt.removeExistingApplet(xt,!1),ee.width===void 0&&xt.clientWidth&&(ee.width=xt.clientWidth),ee.height===void 0&&xt.clientHeight&&(ee.height=xt.clientHeight),!(ee.width&&ee.height)&&Qe==="html5"&&(delete ee.width,delete ee.height),oe=Qe,Qe==="screenshot")Ye(xt,ee);else{var sn=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?sn=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(sn=(!de()||et())&&ve()),sn?(oe="screenshot",Me(xt,ee,bt,Qe)):lt(xt,ee,bt)}}};function de(){try{return window.self!==window.top}catch(et){return!0}}function ve(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}gt.getViews=function(){return te},gt.isJavaInstalled=function(){return!1};var Se=function(et){var Qe=function(Wt){var $e=JSON.parse(Wt),St=function(Vt){return Vt.type=="G"||Vt.type=="E"},xt=$e.elements?$e.elements.filter(St)[0]:$e;if(!xt||!xt.url){Et();return}ee.fileName=xt.url,Le(xt.settings||{}),te.is3D=!0;var sn="https://www.geogebra.org/images/";gt.setPreviewImage(E||xt.previewUrl,sn+"GeoGebra_loading.png",sn+"applet_play.png"),et()},Et=function(){ee.onError&&ee.onError(),Mt("Error: Fetching material (id "+ee.material_id+") failed.",ee)},Kt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",bt="/materials/"+ee.material_id+"?scope=basic";Ee("https://"+Kt+"/api/proxy.php?path="+encodeURIComponent(bt),Qe,Et)};function Le(et){var Qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Et){et[Et]=!!et[Et]}),Qe.forEach(function(Et){ee[Et]===void 0&&et[Et]!==void 0&&(ee[Et]=et[Et])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function Ee(et,Qe,Et){var Kt=new XMLHttpRequest;Kt.open("GET",et),Kt.onload=function(){Qe(Kt.responseText)},Kt.onerror=Et,Kt.send()}gt.isHTML5Installed=function(){return!0},gt.getLoadedAppletType=function(){return oe},gt.setPreviewImage=function(et,Qe,Et){E=et,b=Qe,x=Et},gt.removeExistingApplet=function(et,Qe){var Et;typeof et=="string"&&(et=document.getElementById(et)),oe=null;var Kt=null;for(Et=0;Et<et.childNodes.length;Et++){var bt=et.childNodes[Et],Wt=bt.className;Wt==="applet_screenshot"?Qe?(bt.style.display="block",oe="screenshot"):bt.style.display="none":Wt!=="applet_scaler prerender"&&(et.removeChild(bt),Kt=Wt&&Wt.indexOf("appletParameters")!=-1?bt.id:null,Et--)}var $e=ee.id!==void 0?ee.id:Kt,St=window[$e];St&&typeof St.getBase64=="function"&&(St.remove(),window[$e]=null)},gt.refreshHitPoints=function(){if(le(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var et=gt.getAppletObject();return et&&typeof et.recalculateEnvironments=="function"?(et.recalculateEnvironments(),!0):!1},gt.startAnimation=function(){var et=gt.getAppletObject();return et&&typeof et.startAnimation=="function"?(et.startAnimation(),!0):!1},gt.stopAnimation=function(){var et=gt.getAppletObject();return et&&typeof et.stopAnimation=="function"?(et.stopAnimation(),!0):!1},gt.getAppletObject=function(){var et=ee.id!==void 0?ee.id:"ggbApplet";return window[et]},gt.resize=function(){};var je=function(et,Qe,Et){var Kt=document.createElement("param");Kt.setAttribute("name",Qe),Kt.setAttribute("value",Et),et.appendChild(Kt)},xe=function(et){return et&&et!=="false"},lt=function(et,Qe,Et){le(ne)<=4.2&&(Et=!0);var Kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var bt=document.createElement("div");bt.classList.add("appletParameters","notranslate");var Wt=Qe.width,$e=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(le(ne)<=4.4)xe(Qe.showToolBar)&&(Qe.height-=7),xe(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&xe(Qe.showToolBar)&&(Qe.width=605,Wt=605);else{var St=100;(xe(Qe.showToolBar)||xe(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),St=xe(Qe.showMenuBar)?245:155),Wt<St&&(Qe.width=St,Wt=St)}bt.style.border="none",bt.style.display="inline-block";for(var xt in Qe)Qe.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&bt.setAttribute("data-param-"+xt,Qe[xt]);z&&bt.setAttribute("data-param-fontscssurl",z),gt.resize=function(){GGBAppletUtils.responsiveResize(et,Qe)},window.addEventListener("resize",function(ze){gt.resize()});var sn=typeof Qe.appletOnLoad=="function"?Qe.appletOnLoad:function(){};if(!Et&&Qe.width!==void 0){Qe.hasOwnProperty("showSplash")||bt.setAttribute("data-param-showSplash","false");var Vt=et.querySelector(".applet_scaler.prerender"),st=Vt!==null;if(st)var ct=Vt.querySelector(".ggb_preview");else{var ct=Ne(Wt,$e,Qe.borderColor,!1);Vt=document.createElement("div"),Vt.className="applet_scaler",Vt.style.position="relative",Vt.style.display="block",Vt.style.width=Wt+"px",Vt.style.height=$e+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Vt,"66%"),le(ne)>=5?(Qe.appletOnLoad=function(ze){var at=et.querySelector(".ggb_preview");at&&at.parentNode.removeChild(at),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Vt),window.GGBT_wsf_view&&$(window).trigger("resize"),sn(ze)},st||Vt.appendChild(ct)):bt.appendChild(ct),Vt.appendChild(bt),st||et.appendChild(Vt),setTimeout(function(){gt.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(bt),et.appendChild(Ge),Qe.appletOnLoad=function(ze){gt.resize(),sn(ze)}}function Be(ze,at){at&&typeof at.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ze,at.appletOnLoad):renderGGBElement(ze),Mt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",at)}function it(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(It){Be(It.article,It.params)}),html5AppletsToProcess=null)},le(ne)<5&&(ze.className+=" geogebraweb")):Be(ze,at)}if(Kt){scriptLoadStarted=!0;for(var wt=0;wt<bt.childNodes.length;wt++){var Ae=bt.childNodes[wt].tagName;Ae==="TABLE"&&(bt.removeChild(bt.childNodes[wt]),wt--)}if(ggbHTML5LoadedScript!==null){var Re=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Re!=null&&Re.parentNode.removeChild(Re)}var Ke=document.createElement("script"),ke=function(){it(bt,Qe)};Ke.src=se+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Ke.src,Mt("GeoGebra HTML5 codebase loaded: '"+se+"'.",Qe),!ie&&(!ge||ge=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ke()):se.requirejs?__webpack_require__.e(3690).then(function(){var ze=[__webpack_require__(63690)];ke.apply(null,ze)}.bind(this)).catch(__webpack_require__.oe):(Ke.onload=ke,et.appendChild(Ke))}else it(bt,Qe);Qe.height=$e,Qe.width=Wt},Ye=function(et,Qe,Et){var Kt=Ne(Qe.width,Qe.height,Qe.borderColor,Et),bt=document.createElement("div");bt.style.position="relative",bt.style.display="block",bt.style.width=Qe.width+"px",bt.style.height=Qe.height+"px",bt.className="applet_screenshot applet_scaler"+(Et?" applet_screenshot_play":""),bt.appendChild(Kt);var Wt=GGBAppletUtils.getScale(Qe,et,Et);Et?(et.appendChild(He()),window.GGBT_wsf_view||(et.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(bt,"66%"),et.appendChild(bt),Wt!==1&&!isNaN(Wt)&&(GGBAppletUtils.scaleElement(bt,Wt),bt.style.width=Qe.width+"px",bt.style.height=Qe.height+"px",bt.parentNode.style.width=Qe.width*Wt+"px",bt.parentNode.style.height=Qe.height*Wt+"px"),gt.resize=function(){ft(et,Kt,bt,Et)},window.addEventListener("resize",function($e){gt.resize()}),gt.resize()};function ft(et,Qe,Et,Kt){if(et.contains(Qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(et.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(et)}var bt=GGBAppletUtils.getScale(ee,et,Kt);Et.parentNode!==null&&(!isNaN(bt)&&bt!==1?(GGBAppletUtils.scaleElement(Et,bt),Et.parentNode.style.width=ee.width*bt+"px",Et.parentNode.style.height=ee.height*bt+"px"):(GGBAppletUtils.scaleElement(Et,1),Et.parentNode.style.width=ee.width+"px",Et.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(et),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}gt.onExitFullscreen=function(et,Qe){Qe.appendChild(et)};var Me=function(et,Qe,Et,Kt){Ye(et,Qe,!0);for(var bt=function(){var St=[];for($e=0;$e<et.childNodes.length;$e++)St.push(et.childNodes[$e]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(et,Qe.id),sn=document.getElementById("fullscreencontainer"),Vt=jQuery(et).find(".fullscreencontent");Vt.length>0?(xt.remove(),Vt.attr("id","fullscreencontent").show(),jQuery(sn).append(Vt),window.dispatchEvent(new Event("resize"))):lt(xt,Qe,!1),window.GGBT_wsf_view.launchFullScreen(sn)}else oe=Kt,lt(et,Qe,!1);if(!window.GGBT_wsf_view)for($e=0;$e<St.length;$e++)et.removeChild(St[$e])},Wt=et.getElementsByClassName("ggb_preview_play"),$e=0;$e<Wt.length;$e++)Wt[$e].addEventListener("click",bt,!1),Wt[$e].addEventListener("ontouchstart",bt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(et),ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},He=function(){var et=document.createElement("div");if(et.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");}',Et=document.createElement("style");Et.styleSheet?Et.styleSheet.cssText=Qe:Et.appendChild(document.createTextNode(Qe)),document.getElementsByTagName("head")[0].appendChild(Et)}return et},Ne=function(et,Qe,Et,Kt){var bt=document.createElement("div");bt.className="ggb_preview",bt.style.position="absolute",bt.style.zIndex="90",bt.style.width=et-2+"px",bt.style.height=Qe-2+"px",bt.style.top="0px",bt.style.left="0px",bt.style.overflow="hidden",bt.style.backgroundColor="white";var Wt="lightgrey";Et!==void 0&&(Et==="none"?Wt="transparent":Wt=Et),bt.style.border="1px solid "+Wt;var $e=document.createElement("img");if($e.style.position="relative",$e.style.zIndex="1000",$e.style.top="-1px",$e.style.left="-1px",E!==null&&$e.setAttribute("src",E),$e.style.opacity=.7,b!==null){var St,xt,sn;if(!Kt){St=document.createElement("img"),St.style.position="absolute",St.style.zIndex="1001",St.style.opacity=1,$e.style.opacity=.3,xt=360,xt>et/4*3&&(xt=et/4*3),sn=xt/5.8,St.setAttribute("src",b),St.setAttribute("width",xt),St.setAttribute("height",sn);var Vt=(et-xt)/2,st=(Qe-sn)/2;St.style.left=Vt+"px",St.style.top=st+"px",bt.appendChild(St)}}return bt.appendChild($e),bt},ot=function(et){return et=et.toLowerCase(),et==="html5"||et==="screenshot"?et:"html5"},Ze=["web","webSimple","web3d","tablet","tablet3d","phone"],vt=function(et,Qe){if(ne=et,Qe){Pt(ne,!0);return}var Et=!fe;if(Et){var Kt=le(ne);!isNaN(Kt)&&Kt<4.4&&(Et=!1)}var bt,Wt;window.location.protocol.substr(0,4)==="http"?bt=window.location.protocol:bt="http:";var $e=ne.indexOf("//");$e>0?Wt=ne:$e===0?Wt=bt+ne:Wt="https://www.geogebra.org/apps/5.2.814.0/";for(var St in Ze)if(ne.slice(Ze[St].length*-1)===Ze[St]||ne.slice((Ze[St].length+1)*-1)===Ze[St]+"/"){Pt(Wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Et&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!xe(ee.showToolBar)&&!xe(ee.showMenuBar)&&!xe(ee.showAlgebraInput)&&!xe(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Wt+="webSimple/":Wt+="web3d/",Pt(Wt,!1)},Pt=function(et,Qe){if(et.requirejs){se=et;return}et.slice(-1)!=="/"&&(et+="/"),se=et,Qe===null&&(Qe=et.indexOf("http")===-1),pe=Qe,y="web.nocache.js",a=!1;var Et=se.split("/");Et.length>1&&(!Qe&&Et[Et.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):Ze.indexOf(Et[Et.length-2])>=0&&(y=Et[Et.length-2]+".nocache.js")),Et=et.split("/"),ne=Et[Et.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 Kt=parseFloat(ne);Kt!==NaN&&Kt<5&&et.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Kt+" is deprecated. Using version latest instead."),vt("5.0",Qe))},Mt=function(et,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(et)};ee.material_id!==void 0?Se(At):At();function At(){var et=Ve;ge!==null?et=ge:parseFloat(et)<5&&(et="5.0"),vt(et,!1),ie!==null&&Pt(ie,pe),he=!0}return gt},GGBAppletUtils=function(){"use strict";function gt(){return window.GGBT_wsf_edit!==void 0}function Ve(he,ge){ge!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+ge+","+ge+")",he.style.webkitTransform="scale("+ge+","+ge+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function ee(he,ge,ie,ue,ce,me){var se=null;if(me!=null&&me!="")for(var pe=he.parentNode;pe!=null;)if((" "+pe.className+" ").indexOf(" "+me+" ")>-1){se=pe;break}else pe=pe.parentNode;var oe=0,ne=0,y=0,a=0,E=0,b=0,x=0;if(se)oe=se.offsetWidth,ne=Math.max(ue?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(oe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),y=oe):(oe=window.innerWidth,ne=window.innerHeight,y=window.innerWidth),he){var z=he.getBoundingClientRect();z.left>0&&z.left<=oe&&(ce===void 0||!ce)&&(document.dir==="rtl"?(E=oe-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return he&&((ie===void 0||!ie)&&ge>0&&ge+a<oe?oe=ge:oe-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(ne-=x)),{width:oe,height:ne}}function te(he,ge,ie,ue,ce){if(he.isScreenshoGenerator)return 1;var me=ue!==void 0&&ue,se=he.noScaleMargin!=null&&he.noScaleMargin,pe=function(re){return re&&re!=="false"},oe=pe(he.autoHeight),ne=ee(ge,he.width,ie,oe,me&&window.GGBT_wsf_view||se,ce),y=parseInt(ne.width),a=he.width,E=he.height;if(a===void 0){var b=ge.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,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 fe(he,ge,ie){var ue=1,ce,me=!1;if(he.hasOwnProperty("allowUpscale")&&(me=he.allowUpscale),he.hasOwnProperty("scale")&&(ue=parseFloat(he.scale),(isNaN(ue)||ue===null||ue===0)&&(ue=1),ue>1&&(me=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))ce=te(he,ge,me,ie,he.scaleContainerClass);else return ue;return me&&(!he.hasOwnProperty("scale")||ue===1)?ce:Math.min(ue,ce)}function be(he){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),ue=he.getBoundingClientRect(),ce=(ge-ue.width)/2,me=(ie-ue.height)/2;me<0&&(me=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ce<40?he.style.left="40px":he.style.left=ce+"px",he.style.top=me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(me<40?he.style.top="40px":he.style.top=me+"px",he.style.left=ce+"px")}function ye(he,ge){var ie=he.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(he)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var ue=fe(ge,he);gt()&&ie.setAttribute("data-param-scale",ue);for(var ce=null,me=0;me<he.childNodes.length;me++)if(he.childNodes[me].className!==void 0&&he.childNodes[me].className.match(/^applet_scaler/)){ce=he.childNodes[me];break}if(ce!==null&&ce.querySelector(".noscale")!==null)return;var se=ge.id!==void 0?ge.id:"ggbApplet",pe=window[se];(pe==null||!pe.recalculateEnvironments)&&ce!==null&&!ce.className.match(/fullscreen/)&&(ce.parentNode.style.transform="",!isNaN(ue)&&ue!==1?(ce.parentNode.style.width=ge.width*ue+"px",ce.parentNode.style.height=ge.height*ue+"px",Ve(ce,ue)):(Ve(ce,1),ce.parentNode.style.width=ge.width+"px",ce.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:ye,isFlexibleWorksheetEditor:gt,positionCenter:be,getScale:fe,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 gt=n.location.search;return gt.indexOf(J)!=-1||gt.indexOf(K)!=-1}function q(gt,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(gt){var Ve=s[L].bindings;s[L].bindings=function(){for(var ee=Ve?Ve():{},te=gt[webModule.__softPermutationId],fe=O;fe<te.length;fe++){var be=te[fe];ee[be[O]]=be[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var gt=o.createElement(Q);if(gt.id=L,gt.style.cssText=R+S,gt.tabIndex=-1,o.body.appendChild(gt),t=gt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ve=document.compatMode==U?V:W;t.write(Ve+X),t.close()}}}function w(gt){function Ve(te){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=fe();if(be){te();return}function ye(){if(!be){if(!fe())return;be=!0,te(),o.removeEventListener&&o.removeEventListener(Z,ye,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,ye,!1);var he=setInterval(function(){ye()},$)}function ee(te){var fe=u(),be=fe.body,ye=fe.createElement(_);ye.language=ab,ye.crossOrigin=W,ye.src=te,webModule.__errFn&&(ye.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),be.appendChild(ye)}Ve(function(){ee(gt)})}webModule.__startLoadingFragment=function(gt){return C(gt)},webModule.__installRunAsyncCode=function(gt){var Ve=u(),ee=Ve.body,te=Ve.createElement(_);te.language=ab,te.text=gt,ee.appendChild(te),ee.removeChild(te)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(gt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(gt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(gt){var Ve=c[gt];return Ve==null?null:Ve},r=d,webModule.__errFn=e}function B(){function gt(he){var ge=he.lastIndexOf(rb);ge==-1&&(ge=he.length);var ie=he.indexOf(sb);ie==-1&&(ie=he.length);var ue=he.lastIndexOf(tb,Math.min(ie,ge));return ue>=O?he.substring(O,ue+P):W}function Ve(he){if(!he.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=he+vb,he=gt(ge.src)}return he}function ee(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function te(){for(var he=o.getElementsByTagName(_),ge=O;ge<he.length;++ge)if(he[ge].src.indexOf(xb)!=-1)return gt(he[ge].src);return W}function fe(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function be(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var ye=ee();return ye==W&&(ye=te()),ye==W&&(ye=fe()),ye==W&&be()&&(ye=gt(o.location.href)),ye=Ve(ye),ye}function C(gt){return gt.match(/^\//)||gt.match(/^[a-zA-Z]+:\/\//)?gt:webModule.__moduleBase+gt}function D(){var gt=[],Ve=O,ee=[],te=[];function fe(he){var ge=te[he](),ie=ee[he];if(ge in ie)return ge;var ue=[];for(var ce in ie)ue[ie[ce]]=ce;throw r&&r(he,ue,ge),null}if(__gwt_isKnownPropertyValue=function(he,ge){return ge in ee[he]},webModule.__getPropMap=function(){var he={};for(var ge in ee)ee.hasOwnProperty(ge)&&(he[ge]=fe(ge));return he},webModule.__computePropValue=fe,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(he){}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})()},82977:function(gt,Ve,ee){"use strict";ee.d(Ve,{Ax:function(){return ye},Ds:function(){return he},KI:function(){return ie},SI:function(){return be},f1:function(){return fe}});var te=ee(49647);function fe(ue){let ce=!0;if(ue.length>0){for(let me=0;me<ue.length;me++)if(ue[me].compile_success==0||!ue[me].compile_success){ce=!1;break}}else ce=!1;return ce}function be(ue,ce=""){let me=[];for(let se=0;se<ue.length;se++){let pe=ue[se],oe=ce?`${ce}/${pe.name}`:`${pe.name}`;me.push({title:pe.name,type:pe.type,isLeaf:pe.type!=="tree",key:oe})}return me}function ye(ue,ce,me){for(let se=0;se<ue.length;se++){let pe=ue[se];if(pe.key===ce){pe.children=me;break}pe.children&&ye(pe.children,ce,me)}return ue}function he(ue,ce,me){let se;return function(){let pe=this,oe=arguments,ne=function(){se=null,me||ue.apply(pe,oe)},y=me&&!se;clearTimeout(se),se=setTimeout(ne,ce),y&&ue.apply(pe,oe)}}const ge=!0,ie=te.Z.API_SERVER},96976:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return b}});var te=ee(59301),fe=ee(98280),be=ee(1012),ye=ee(92310),he=ee.n(ye),ge={upload:"upload___jpwPD"},ie=Object.defineProperty,ue=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,pe=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={}))se.call(z,re)&&oe(x,re,z[re]);if(me)for(var re of me(z))pe.call(z,re)&&oe(x,re,z[re]);return x},y=(x,z)=>ue(x,ce(z)),a=(x,z,re)=>new Promise((le,de)=>{var ve=Ee=>{try{Le(re.next(Ee))}catch(je){de(je)}},Se=Ee=>{try{Le(re.throw(Ee))}catch(je){de(je)}},Le=Ee=>Ee.done?le(Ee.value):Promise.resolve(Ee.value).then(ve,Se);Le((re=re.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:re,onComplete:le,onError:de,onProgress:ve,onBefore:Se,onBeginInitFile:Le,children:Ee,accept:je,className:xe,style:lt={},concurrency:Ye=4},ft)=>{let[Me,He]=(0,te.useState)("ready");const[Ne,ot]=(0,te.useState)(0),[Ze,vt]=(0,te.useState)(""),[Pt,Mt]=(0,te.useState)(null),At=(0,te.useRef)(null),et=(0,te.useRef)((0,be.Z)()),Qe=(0,te.useRef)(!1);(0,te.useImperativeHandle)(ft,()=>({cancel:bt,file:Pt,uploadStatus:Me}));const Et=()=>{const $e=document.getElementById(et.current);$e&&($e.value="")},Kt=$e=>a(void 0,null,function*(){var St;if(Me==="uploading")return;Le&&Le($e);const xt=$e.size,sn=Math.ceil(xt/x);Qe.current=!1,He("uploading"),ot(0),vt("");try{const Vt=yield(0,fe.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:$e.name,chunkCount:sn},z)});if(Qe.current||(Vt==null?void 0:Vt.status)!==0)throw new Error;const{upload_id:st}=Vt;At.current=new AbortController;const ct=[];let Ge=0;for(let Ae=0;Ae<sn;Ae++){const Re=Ae*x,Ke=Math.min(Re+x,xt),ke=$e.slice(Re,Ke),ze=new FormData;ze.append("chunk",ke),ze.append("fileName",$e.name),ze.append("chunkIndex",(Ae+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,fe.ZP)("/api/attachments/multipart_upload",{method:"POST",body:ze,signal:At.current.signal},!0).then(at=>{console.log(at,444),Ge++;const It=Math.round(Ge/sn*100);ot(It),ve&&ve(y(ne({},at),{file:$e,percent:It}))}))}let Be=0,it=Ye;for(console.log(ct,"promises");Be<ct.length;){const Ae=(St=ct.slice(Be,Be+it))==null?void 0:St.map(Re=>Re());if(Ae.length>0){const Re=yield Promise.all(Ae);Be+=it}}const wt=yield(0,fe.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:$e.name,chunkCount:sn,uploadId:st},z)});wt.object?(He("success"),Et(),le&&le(y(ne({},wt),{file:$e,percent:100}))):(He("error"),vt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Et(),de&&de($e.name))}catch(Vt){He("error"),vt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Et(),de&&de($e.name)}}),bt=(0,te.useCallback)(()=>{Qe.current=!0,At.current&&(At.current.abort(),re&&re())},[re]),Wt=$e=>{var St,xt;const sn=(xt=(St=$e==null?void 0:$e.target)==null?void 0:St.files)==null?void 0:xt[0];if(Mt(sn),Me="ready",!!sn){if(Se){Se(sn)||Kt(sn),Et();return}Kt(sn)}};return te.createElement(te.Fragment,null,te.createElement("input",{type:"file",id:et.current,style:{display:"none"},onChange:Wt,accept:je}),te.createElement("label",{className:he()(ge.upload,xe),htmlFor:et.current,style:lt},Ee))};var b=(0,te.forwardRef)(E)},5140:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return pe}});var te=ee(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ee(92310),ye=ee.n(be),he=ee(71418),ge=ee(2859),ie=ee(98280),ue=ee(19374),ce=ee(75790),me=(oe,ne,y)=>new Promise((a,E)=>{var b=re=>{try{z(y.next(re))}catch(le){E(le)}},x=re=>{try{z(y.throw(re))}catch(le){E(le)}},z=re=>re.done?a(re.value):Promise.resolve(re.value).then(b,x);z((y=y.apply(oe,ne)).next())}),pe=({data:oe,className:ne,fullWidth:y,style:a={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const re=(0,ce.useIntl)(),le=(0,te.useRef)(null),de=(0,te.useRef)(null),ve=(0,te.useRef)(null),Se=(0,te.useRef)(null),[Le,Ee]=(0,te.useState)(!1),[je,xe]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ve.current||(ve.current=document.createElement("style"),document.head.appendChild(ve.current)),oe!=null&&oe.visible?(document.body.setAttribute("data-custom","y-hidden"),ve.current.innerHTML=" html { overflow-y: hidden; }",oe!=null&&oe.src&<()):(document.body.removeAttribute("data-custom"),ve.current&&(document.head.removeChild(ve.current),ve.current=null))},[oe==null?void 0:oe.visible]);const lt=()=>me(void 0,null,function*(){Ee(!0),xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ne=yield(0,ue.ZJ)(oe==null?void 0:oe.src);le.current.src="",le.current.src=Ne,le.current.onload=function(){He()},Ee(!1),xe("")}),Ye=()=>{document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",E()},ft=Ne=>me(void 0,null,function*(){Ee(!0),xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ot=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:oe.title,file:Ne.dataUrl}});ot!=null&&ot.id&&!z?(yield(0,ie.ZP)(`/api/attachments/${oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:ot==null?void 0:ot.id,settings:JSON.stringify(Ne.state)}})).status===0&&b():ot!=null&&ot.id&&b(ot),document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",Ee(!1),xe("")}),Me=()=>{const Ne=document.querySelector('a[href="https://markerjs.com/"]');Ne&&Ne.parentNode&&(Ne.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:re.formatMessage({id:"shixuns.text",defaultMessage:"\u6587\u672C"})},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:re.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ze=>{const vt=document.querySelector(Ze.name);vt&&vt.setAttribute("title",Ze.title)})},He=()=>{de.current=new ge.hP(le.current),de.current.targetRoot=Se.current,de.current.addEventListener("render",ft),de.current.addEventListener("beforeclose",Ye),x&&(de.current.availableMarkerTypes=de.current.ALL_MARKER_TYPES,de.current.uiStyleSettings.redoButtonVisible=!0,de.current.uiStyleSettings.notesButtonVisible=!0,de.current.uiStyleSettings.zoomButtonVisible=!0,de.current.uiStyleSettings.zoomOutButtonVisible=!0,de.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=de.current.uiStyleSettings,de.current.show(),oe!=null&&oe.snapshotData&&de.current.restoreState(oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Me()},300)};return te.createElement(te.Fragment,null,(oe==null?void 0:oe.visible)&&te.createElement(he.Z,{spinning:Le,tip:je,style:{position:"absolute"}},te.createElement("div",{ref:Se,className:ye()(fe.imageDimensions,ne,y?fe.fullWidth:""),style:a},te.createElement("img",{className:fe.img,ref:le}))))}},88601:function(gt,Ve,ee){"use strict";var te=ee(59301),fe=ee(95237),be=ee(43604),ye=ee(99313),he=ee(3113),ge=ee(12470),ie=ee(69453),ue=ee(48136),ce=ee(75790),me=ee(59301);const se=(0,te.forwardRef)(({callback:pe,showSaveButton:oe,value:ne=""},y)=>{const a=(0,te.useRef)(),E=(0,ce.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\u5206\u6570\u5F97\u5206"}),value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\u6839\u5F0F\u89D2\u6807"}),value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\u6781\u9650\u5BF9\u6570"}),value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\u4E09\u89D2\u51FD\u6570"}),value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\u79EF\u5206\u8FD0\u7B97"}),value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\u5927\u578B\u8FD0\u7B97"}),value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\u62EC\u53F7\u53D6\u6574"}),value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\u4EE3\u6570"}),value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\u51E0\u4F55"}),value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\u4E0D\u7B49\u5F0F"}),value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\u79EF\u5206"}),value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\u4E09\u89D2"}),value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\u7EDF\u8BA1"}),value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],z=de=>{a.current.setValue(a.current.getValue()+" "+de.value+" ")},re=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:me.createElement(fe.Z,{className:ie.Z.lists,gutter:[10,10]},b.map((de,ve)=>me.createElement(be.Z,{flex:"110px",className:ie.Z.item},me.createElement("div",null,me.createElement(ge.Z,{value:`$$${de.value}$$`}),de.name),me.createElement("div",{className:ie.Z.children},de.children.map((Se,Le)=>me.createElement("div",{key:Le},me.createElement("h1",null,Se.name),me.createElement(fe.Z,{gutter:[10,10]},Se.data.map((Ee,je)=>me.createElement(be.Z,{key:je,onClick:()=>z(Ee),className:ie.Z.diamond},me.createElement(ge.Z,{value:"`$$"+Ee.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:me.createElement(fe.Z,{className:ie.Z.lists,gutter:[10,10]},x.map((de,ve)=>me.createElement(be.Z,{flex:"110px",className:ie.Z.item},me.createElement("div",null,me.createElement(ge.Z,{value:"`$$"+de.value+"$$`"}),de.name),me.createElement("div",{className:ie.Z.children},de.children.map((Se,Le)=>me.createElement("div",{key:Le},Se.name&&me.createElement("h1",null,Se.name),me.createElement(fe.Z,{gutter:[10,10]},Se.data.map((Ee,je)=>me.createElement(be.Z,{key:je,onClick:()=>z(Ee),className:ie.Z.diamond},me.createElement(ge.Z,{value:"`$$"+Ee.value+"$$`"}))))))))))}],le=()=>{var de=document.createElement("div");de.innerHTML=a.current.getValue();var ve=de.innerText;return pe&&pe(ve),ve};return(0,te.useImperativeHandle)(y,()=>({getData:le})),me.createElement("div",{className:ie.Z.mathWrap},me.createElement(ye.default,{defaultActiveKey:"1",items:re}),me.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:a,style:{width:800,marginTop:30,fontSize:18}},ne||""),oe&&me.createElement("div",{className:ie.Z.button},me.createElement(he.ZP,{size:"large",onClick:le,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});Ve.Z=se},38610:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ye}});var te=ee(75790),fe={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=ee(59301),ye=({message:he,className:ge,children:ie,style:ue={}})=>be.createElement("div",{className:`custom-spinner ${fe.idsRingWrapper} ${ge}`},be.createElement("div",{className:fe.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),he?be.createElement("p",{style:ue},he):null,ie,be.createElement(te.Outlet,null))},53365:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ye}});var te=ee(59301),fe=ee(59195),be=ee(59301),ye=({defaultX:he="40%",leftChild:ge,rightChild:ie,className:ue,hideResize:ce=!1})=>{const[me,se]=(0,te.useState)(he),pe=(0,te.useRef)();function oe(){pe.current=!0}(0,te.useEffect)(()=>{function a(b){pe.current&&(fe.Z.publish("resize-move-bar",b),se(b.pageX))}function E(){pe.current=!1}return window.addEventListener("mousemove",a),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",E)}},[]);const ne=typeof me=="number"&&me!==.01?`${me}px`:he,y=`calc(100% - ${ce?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${ue}`},be.createElement("section",{style:{width:ne,display:me===.01?"none":""}},ge),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:y}},ie))}},65602:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ge}});var te=ee(59301),fe={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},be=ee(92310),ye=ee.n(be),ge=({className:ie,style:ue={},leftNode:ce,leftTitle:me="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:pe="\u8FD0\u884C\u7ED3\u679C"})=>te.createElement("div",{className:ye()(fe.result,ie),style:ue},te.createElement("div",{className:fe.left},te.createElement("div",{className:fe.title},te.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),te.createElement("span",null,me)),te.createElement("div",{className:fe.leftNode},ce)),te.createElement("div",{className:fe.right},te.createElement("div",{className:fe.title},te.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),te.createElement("span",null,pe)),te.createElement("div",{className:fe.rightNode},se)))},61902:function(gt,Ve,ee){"use strict";var te=ee(59301);const fe=ye=>String(ye).length===1?`0${ye}`:ye,be=({className:ye="",onChange:he,defaultValue:ge=0})=>{const[ie,ue]=(0,te.useState)(ge);(0,te.useEffect)(()=>{const pe=setTimeout(()=>{ue(ie+1e3)},1e3);return he(ie+1e3),()=>{clearInterval(pe)}},[ie]);const ce=parseInt(ie/(60*6e4))||"00",me=parseInt(ie%(60*6e4)/6e4)||"00",se=parseInt(ie%6e4/1e3)||"00";return te.createElement("div",{className:ye},fe(ce),":",fe(me),":",fe(se))};Ve.Z=be},38436:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return a}});var te=ee(59301),fe=ee(8591),be=ee(38854),ye=ee(71854),he=ee(16471),ge=ee(53229),ie=ee(56102),ue=ee(22243),ce={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=ee(75790),se=(E,b,x)=>new Promise((z,re)=>{var le=Se=>{try{ve(x.next(Se))}catch(Le){re(Le)}},de=Se=>{try{ve(x.throw(Se))}catch(Le){re(Le)}},ve=Se=>Se.done?z(Se.value):Promise.resolve(Se.value).then(le,de);ve((x=x.apply(E,b)).next())});function pe(E){if(isNaN(E))return{minutes:"00",seconds:"00"};const b=new Date(E*1e3).toISOString().substr(11,8);return{hour:b.substr(0,2),minutes:b.substr(3,2),seconds:b.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function oe(E,b){return E-b}function ne(E){E.sort(oe);let b=0;for(let x=0;x<E.length-1;x++){let z=Math.abs(E[x+1]-E[x]);z<21&&(b+=z)}return b}const y=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var a=(0,te.forwardRef)(({allow_skip:E,src:b,toLog:x,videoId:z,logWatchHistory:re,courseId:le=null,startTime:de,handlePause:ve=()=>{},handlePlay:Se=()=>{},handlePlayEnded:Le=()=>{},autoPlay:Ee=!1,onPlayEnded:je=()=>{},isShowWaterMark:xe=!0},lt)=>{var Ye;const ft=(0,me.useIntl)(),He=((Ye=b==null?void 0:b.split("."))==null?void 0:Ye.pop())==="flv",Ne=(0,te.useRef)(),ot=(0,te.useRef)(),Ze=(0,te.useRef)(),vt=(0,te.useRef)(),Pt=(0,te.useRef)(),Mt=(0,te.useRef)(),At=(0,te.useRef)(),et=(0,te.useRef)(),Qe=(0,te.useRef)(),Et=(0,te.useRef)(),Kt=(0,te.useRef)(),bt=(0,te.useRef)(),Wt=(0,te.useRef)(),$e=(0,te.useRef)(),St=navigator.userAgent.toLowerCase().match(y),xt=St?St[0]:"pc",sn=(0,te.useRef)(!1),Vt=(0,ge.eY)();let st=0,ct=0,Ge=0,Be=null,it=!1,wt=20,Ae=1,Re=!1,Ke=!1,ke=[];(0,te.useImperativeHandle)(lt,()=>({getLastUpdatedTime:()=>Ne.current.currentTime,getDuration:()=>Ne.current.duration})),fe.ZP.config({maxCount:1,getContainer:()=>Ze.current});const ze=(0,te.useCallback)((yt,un=!1)=>{let ln={point:Ne.current.currentTime};Be?(ln.log_id=Be,ln.watch_duration=ne(ke),ln.total_duration=ct):(le?(ln.video_id=parseInt(z,10),ln.course_id=le):ln.video_id=z,ln.duration=st,ln.device=xt),un&&(ln.ed="1");function Ct(){return se(this,null,function*(){Re=!0,Be=yield re==null?void 0:re(ln),Re=!1,yt&&yt()})}Ct()},[z,le]);(0,te.useEffect)(()=>{Ne.current&&(vt.current.style.display="none",Pt.current.style.display="block"),fe.ZP.destroy();let yt=null;return ye.Z.isSupported&&He&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?(yt=ye.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),Ne.current&&(yt.attachMediaElement(Ne.current),yt.load())):Ne.current.setAttribute("src",b),It(),()=>{yt&&(yt.unload(),yt.pause(),yt.destroy(),yt=null)}},[Ne,He,b]);function at(){Ne.current.paused?(vt.current.style.display="none",Pt.current.style.display="block"):(vt.current.style.display="block",Pt.current.style.display="none")}function It(){Kt.current.style.display="none",Wt.current.style.display="none",bt.current.style.display="none",Ne.current.muted||Ne.current.volume===0?Kt.current.style.display="block":Ne.current.volume>0&&Ne.current.volume<=.5?Wt.current.style.display="block":bt.current.style.display="block"}(0,te.useEffect)(()=>{const yt=document.getElementById("play"),un=document.querySelectorAll(".playback-icons use");function ln(){Se(),de&&!sn.current&&(Ne.current.currentTime=de),sn.current=!0,ke.push(Ne.current.currentTime),it||(it=!0,x&&ze())}function Ct(){return se(this,null,function*(){at(),ke.push(Ne.current.currentTime),x&&ze(()=>{Be=null,Ge=0,it=!1,Re=!1,Ke=!1,ke=[],ct=0,Ae=1},!0),je()})}function pn(){Mt.current.value=Math.round(Ne.current.currentTime),At.current.value=Math.round(Ne.current.currentTime)}function Sn(){const jn=pe(Math.round(Ne.current.currentTime));Qe.current.innerText=`${jn.hour>0?jn.hour+":":""}${jn.minutes}:${jn.seconds}`,Qe.current.setAttribute("datetime",`${jn.hour>0?" "+jn.hour+" ":""}${jn.minutes}m ${jn.seconds}s`)}function Gn(){var jn,Tn,or,Dr,Nr,Rr,Fr;const qn=Math.round((jn=Ne.current)==null?void 0:jn.duration);(or=(Tn=Mt.current)==null?void 0:Tn.setAttribute)==null||or.call(Tn,"max",qn),(Nr=(Dr=At.current)==null?void 0:Dr.setAttribute)==null||Nr.call(Dr,"max",qn);const sr=pe(qn);et.current&&(et.current.innerText=`${sr.hour>0?sr.hour+":":""}${sr.minutes}:${sr.seconds}`,(Fr=(Rr=et.current).setAttribute)==null||Fr.call(Rr,"datetime",`${sr.hour>0?" "+sr.hour+" ":""}${sr.minutes}m ${sr.seconds}s`))}function Ln(){try{const jn=Math.round(Ne.current.duration);Mt.current.setAttribute("max",jn),At.current.setAttribute("max",jn);const Tn=pe(jn);et.current.innerText=`${Tn.hour>0?Tn.hour+":":""}${Tn.minutes}:${Tn.seconds}`,et.current.setAttribute("datetime",`${Tn.hour>0?" "+Tn.hour+" ":""}${Tn.minutes}m ${Tn.seconds}s`),pn(),Sn();const{width:or,height:Dr,x:Nr,y:Rr}=ot.current.getBoundingClientRect();if(Nr<0||Rr<0||!or)return;if(!Ke){let Fr=Ne.current.currentTime,qn=Fr-Ge;Math.abs(qn)<10?(ct+=Math.abs(qn),Ge=Fr,Re||ct-Ae*wt>=0&&(Ae++,ke.push(Ge),x&&ze())):(Ge=Fr,x&&ze())}}catch(jn){console.log(jn)}}function Wn(){Ke=!0}function Zn(){Ne.current.playing&&ke.push(Ne.current.currentTime,Ge),Ge=Ne.current.currentTime,Ke=!1}function Jn(){st=Ne.current.duration,st<=20&&(wt=st/3),Ne.current.addEventListener("play",ln)}function Yn(jn){jn.preventDefault(),(0,ue.vp)()?(Ne.current.style.width="100%",Ne.current.style.height="100%"):Ne.current.style.cssText=""}function mr(){ve()}function ar(jn){if(!E){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Tn=jn.target.dataset.seek?jn.target.dataset.seek:jn.target.value;Ne.current.currentTime=Tn,At.current.value=Tn,Mt.current.value=Tn}function wn(jn){const Tn=Math.round(jn.offsetX/jn.target.clientWidth*parseInt(jn.target.getAttribute("max"),10));Mt.current.setAttribute("data-seek",Tn);const or=pe(Tn);Et.current.textContent=`${or.hour>0?or.hour+":":""}${or.minutes}:${or.seconds}`;const Dr=Ne.current.getBoundingClientRect();Et.current.style.left=`${jn.pageX-Dr.left}px`}function Cr(jn){switch(jn.code){case"Space":jn.preventDefault(),Tt();break;case"ArrowRight":if(jn.preventDefault(),!E){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Ne.current.currentTime>=Ne.current.duration)break;Ne.current.currentTime=parseInt(Ne.current.currentTime)+5,pn();break;case"ArrowLeft":if(jn.preventDefault(),!E){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Ne.current.currentTime===0)break;Ne.current.currentTime=parseInt(Ne.current.currentTime)-5,pn();break;case"ArrowUp":jn.preventDefault(),Ne.current.volume<1&&(Ne.current.volume=(parseInt(Ne.current.volume*10)+1)/10);break;case"ArrowDown":jn.preventDefault(),Ne.current.volume>0&&(Ne.current.volume=(parseInt(Ne.current.volume*10)-1)/10);break}}return Ze.current.addEventListener((0,ue.gH)(),Yn),Ne.current.addEventListener("canplay",Jn),Ne.current.addEventListener("ended",Ct),Ne.current.addEventListener("seeking",Wn),Ne.current.addEventListener("seeked",Zn),Ne.current.addEventListener("loadedmetadata",Gn),Mt.current.addEventListener("mousemove",wn),Mt.current.addEventListener("input",ar),Ne.current.addEventListener("timeupdate",Ln),Ne.current.addEventListener("pause",mr),Ne.current.addEventListener("volumechange",It),document.addEventListener("keydown",Cr),()=>{var jn,Tn,or,Dr,Nr,Rr,Fr,qn,sr,Qt,ae,_e;(jn=Ne.current)==null||jn.removeEventListener("canplay",Jn),(Tn=Ne.current)==null||Tn.removeEventListener("play",ln),(or=Ne.current)==null||or.removeEventListener("ended",Ct),(Dr=Ne.current)==null||Dr.removeEventListener("seeking",Wn),(Nr=Ne.current)==null||Nr.removeEventListener("seeked",Zn),(Rr=Mt.current)==null||Rr.removeEventListener("mousemove",wn),(Fr=Mt.current)==null||Fr.removeEventListener("input",ar),(qn=Ne.current)==null||qn.removeEventListener("timeupdate",Ln),(sr=Ne.current)==null||sr.removeEventListener("pause",mr),(Qt=Ne.current)==null||Qt.removeEventListener("loadedmetadata",Gn),(ae=Ne.current)==null||ae.removeEventListener("volumechange",It),document.removeEventListener("keydown",Cr),(_e=Ne.current)!=null&&_e.playing&&(ke.push(Ge,Ne.current.currentTime),x&&ze())}},[Ne,b]),(0,te.useEffect)(()=>{if(Ne.current.onended=()=>{Le(Ne)},Ne.current.oncontextmenu=()=>!1,(b==null?void 0:b.indexOf(".m3u8"))>-1){if(Ne.current.canPlayType("application/vnd.apple.mpegurl"))Ne.current.src=b;else if(he.ZP.isSupported()){var yt=new he.ZP;yt.loadSource(b),yt.attachMedia(Ne.current)}}},[b]);const[Dt,Ft]=(0,te.useState)(1),Tt=()=>{Ne.current.paused||Ne.current.ended?Ne.current.play():Ne.current.pause(),at()};function Gt(){Ne.current.muted=!Ne.current.muted,Ne.current.muted?($e.current.setAttribute("data-volume",volume.value),$e.current.value=0):$e.current.value=$e.current.dataset.volume}return te.createElement("div",{style:{position:"relative"},ref:Ze},te.createElement("div",{ref:ot,className:`${ce.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ce.animate__loop}`},xe&&Vt?Vt.login:" "),te.createElement("div",{className:ce.container},te.createElement("div",{className:ce["video-container"],id:"video-container"},te.createElement("div",{className:ce["playback-animation"],id:"playback-animation"},te.createElement("svg",{className:ce["playback-icons"]},te.createElement("use",{className:"hidden",href:"#play-icon"}),te.createElement("use",{href:"#pause"}))),te.createElement("video",{className:ce.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:Ne,autoPlay:Ee}),te.createElement("div",{className:`${ce["video-controls"]} `,id:"video-controls"},te.createElement("div",{className:ce["bottom-controls"]},te.createElement("div",{className:ce["left-controls"]},te.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Tt},te.createElement("svg",{className:ce["playback-icons"]},te.createElement("use",{ref:Pt,href:"#play-icon"}),te.createElement("use",{ref:vt,style:{display:"none"},href:"#pause"}))),te.createElement("div",{className:ce.time},te.createElement("time",{id:"time-elapsed",ref:Qe},"00:00"),te.createElement("span",null," / "),te.createElement("time",{id:"duration",ref:et},"00:00"))),te.createElement("div",{className:ce["right-controls"]},E&&te.createElement(be.Z,{placement:"top",overlayClassName:ce.rateOverlay,getPopupContainer:yt=>yt.parentNode,menu:{items:[{key:"1",label:te.createElement("span",{onClick:()=>{Ft(1),Ne.current.playbackRate=1}},"1.0x")},{key:"2",label:te.createElement("span",{onClick:()=>{Ft(1.5),Ne.current.playbackRate=1.5}},"1.5x")},{key:"3",label:te.createElement("span",{onClick:()=>{Ft(2),Ne.current.playbackRate=2}},"2.0x")}]}},te.createElement("div",{className:`${ce.controlText} mr5`},ft.formatMessage({id:"classroomUploadVideoResourcesCheckIn.playbackSpeed",defaultMessage:"\u500D\u901F"}))),te.createElement(ie.CopyToClipboard,{text:b,onCopy:()=>fe.ZP.success(ft.formatMessage({id:"classrooms.copySuccess",defaultMessage:"\u590D\u5236\u6210\u529F"}))},te.createElement("button",{"data-title":ft.formatMessage({id:"classrooms.copyLink",defaultMessage:"\u590D\u5236\u94FE\u63A5"})},te.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),te.createElement("div",{className:ce["volume-controls"]},te.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ce["volume-button"],id:"volume-button",onClick:Gt},te.createElement("i",{ref:Kt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Wt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:bt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),te.createElement("input",{className:ce.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:$e,style:{display:"none"},onClick:It})),te.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ce["fullscreen-button"],onClick:()=>{(0,ue.vp)()?(0,ue.BU)():(0,ue.Dj)(Ze.current)}},te.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),te.createElement("div",{className:ce["video-progress"]},te.createElement("progress",{ref:At,value:"0",min:"0"}),te.createElement("input",{className:ce.seek,ref:Mt,value:"0",min:"0",type:"range",step:"1"}),te.createElement("div",{className:ce["seek-tooltip"],ref:Et,id:"seek-tooltip"},"00:00"))))),te.createElement("svg",{style:{display:"none"}},te.createElement("defs",null,te.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),te.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},te.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),te.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),te.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},te.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),te.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},te.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),te.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),te.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},te.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),te.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},te.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},98679:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ye}});var te=ee(59301),fe=ee(59195),be=ee(11611),ye=()=>{const[he,ge]=(0,te.useState)(""),[ie,ue]=(0,te.useState)(0);let[ce,me]=(0,te.useState)(),[se,pe]=(0,te.useState)();const[oe,ne]=(0,te.useState)(!1),y=(0,te.useRef)("");(0,te.useEffect)(()=>fe.Z.subscribe("preview-image",Le=>{ge(Le),console.log(de.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[]),(0,te.useEffect)(()=>{y.current=he},[he]);function a(Se){Se.keyCode==27&&y.current&&E()}function E(){document.body.style.overflow="auto",me(void 0),pe(void 0),ue(0),ge("")}function b(){ue(ie+90)}function x(){ce=de.current.width*1.1,se=de.current.height*1.1,pe(se),me(ce)}function z(){ce=de.current.width/1.1,se=de.current.height/1.1,pe(se),me(ce)}const re=(0,te.useRef)(),le=(0,te.useRef)(),de=(0,te.useRef)(),ve=Se=>{(Se.nativeEvent.target===re.current||Se.nativeEvent.target===le.current)&&E()};return te.createElement(te.Fragment,null,he?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:le},te.createElement(be.Z,{className:"image-preview",src:he,style:{display:"none"},preview:{visible:!0,src:he,movable:!1,onVisibleChange:Se=>{ge("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},45923:function(gt,Ve,ee){"use strict";ee.d(Ve,{h:function(){return le}});var te=ee(59301),fe=ee(57809),be=ee(78241),ye=ee(3113),he=ee(89780),ge=ee.n(he),ie=ee(6303),ue=ee(87671),ce=ee(75790),me=Object.defineProperty,se=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,a=(de,ve,Se)=>ve in de?me(de,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):de[ve]=Se,E=(de,ve)=>{for(var Se in ve||(ve={}))ne.call(ve,Se)&&a(de,Se,ve[Se]);if(oe)for(var Se of oe(ve))y.call(ve,Se)&&a(de,Se,ve[Se]);return de},b=(de,ve)=>se(de,pe(ve));const x=fe.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},re={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:de,onCancel:ve})=>{const[Se,Le]=(0,te.useState)("python");function Ee(lt){Le(re[lt][1])}function je(lt){de(lt)}const xe=(0,ce.useIntl)();return te.createElement(be.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:je,style:{width:500}}),te.createElement(be.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},te.createElement(fe.default,{getPopupContainer:lt=>lt.parentNode,onChange:Ee},Object.keys(re).map(lt=>te.createElement(x,{key:lt,value:lt},re[lt][0])))),te.createElement(be.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(le,{mode:Se})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},xe.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(ye.ZP,{type:"ghost",onClick:ve},xe.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function le({value:de,onChange:ve,mode:Se,options:Le={}}){const Ee=(0,te.useRef)(),[je,xe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(je){let lt=function(Ye){const ft=Ye.getValue();ve&&ve(ft)};return je.on("change",lt),()=>{je.off("change",lt)}}},[je,ve]),(0,te.useEffect)(()=>{je&&je.setOption("mode",Se)},[je,Se]),(0,te.useEffect)(()=>{je&&(de!==je.getValue()||de==="")&&setTimeout(()=>{je.setValue(de||"")},300)},[je,de]),(0,te.useEffect)(()=>{if(Ee.current&&!je){const lt=ge().fromTextArea(Ee.current,E({mode:Se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Le));xe(lt)}},[Ee.current,je]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Ee}))}},48551:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return Qt}});var te=ee(59301),fe=ee(89780),be=ee.n(fe),ye=ee(76374),he=ee(6303),ge=ee(6313),ie=ee(25717),ue=ee(99498),ce=ee(25419),me=ee(67549),se=ee(12470),pe=({value:ae="",className:_e,showTextOnly:Pe,showLines:Ie,style:Fe={}})=>{const tt=(0,te.useMemo)(()=>"",[ae]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:tt}}))},oe=ee(75790),ne=ee(59301),y=Object.defineProperty,a=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,re=(ae,_e,Pe)=>_e in ae?y(ae,_e,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ae[_e]=Pe,le=(ae,_e)=>{for(var Pe in _e||(_e={}))x.call(_e,Pe)&&re(ae,Pe,_e[Pe]);if(b)for(var Pe of b(_e))z.call(_e,Pe)&&re(ae,Pe,_e[Pe]);return ae},de=(ae,_e)=>a(ae,E(_e));function ve({onActionCallback:ae,title:_e,icon:Pe,actionName:Ie,className:Fe="",children:tt}){function ht(){ae(Ie)}return ne.createElement("a",{title:_e,className:Fe,onClick:ht},ne.createElement("i",{className:`${Pe}`}),tt)}var Se=({watch:ae,showNullButton:_e,showNullProgramButton:Pe,onActionCallback:Ie,fullScreen:Fe,insertTemp:tt,hidetoolBar:ht,extraUse:on})=>{const zt=(0,oe.useIntl)(),mt=[...[{title:zt.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:zt.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:zt.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:zt.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:zt.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:zt.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:zt.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:zt.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:zt.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:zt.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:zt.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:zt.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:zt.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:zt.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:zt.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:zt.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${ae?zt.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):zt.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${ae?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ne.createElement("ul",{className:"markdown-toolbar-container"},!ht&&mt.map((Bt,ut)=>ne.createElement("li",{key:ut},Bt.actionName?ne.createElement(ve,de(le({},Bt),{onActionCallback:Ie})):ne.createElement("span",{className:"v-line"}))),_e?ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},zt.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",zt.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,Pe?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,tt&&ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:zt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${tt}`,onActionCallback:Ie},ne.createElement("span",{className:"fill-tip"},zt.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),on&&ne.createElement("li",null,on),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(ve,{icon:`${Fe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Fe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ie})))},Le=ee(44991),Ee=ee(78241),je=ee(92832),xe=ee(3113),lt=Object.defineProperty,Ye=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ot=(ae,_e,Pe)=>_e in ae?lt(ae,_e,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ae[_e]=Pe,Ze=(ae,_e)=>{for(var Pe in _e||(_e={}))He.call(_e,Pe)&&ot(ae,Pe,_e[Pe]);if(Me)for(var Pe of Me(_e))Ne.call(_e,Pe)&&ot(ae,Pe,_e[Pe]);return ae},vt=(ae,_e)=>Ye(ae,ft(_e));const Pt={labelCol:{span:4},wrapperCol:{span:20}};var Mt=({callback:ae,onCancel:_e})=>{function Pe(Fe){ae(Fe)}const Ie=(0,oe.useIntl)();return te.createElement(Ee.default,vt(Ze({},Pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),te.createElement(Ee.default.Item,{label:Ie.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(je.default,null)),te.createElement(Ee.default.Item,{label:Ie.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(je.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ie.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(xe.ZP,{type:"ghost",onClick:_e},Ie.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},At=ee(45923),et=ee(76021),Qe=ee(43418),Et=ee(95237),Kt=ee(5140),bt=ee(59301),Wt=({callback:ae,onCancel:_e})=>{const Pe=document.createElement("canvas"),Ie=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,Ie.fillStyle="#ffffff",Ie.fillRect(0,0,Pe.width,Pe.height);const Fe=Pe.toDataURL("image/png");return bt.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},bt.createElement(Et.Z,{style:{height:"100vh"}},bt.createElement(Kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Fe,visible:!0,title:String(Date.now())},onOk:tt=>{ae({src:tt.url})},onClose:_e})))},$e=ee(12378);function St(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(St,go.CommandHandler),St.prototype.canAlignSelection=function(){var ae=this.diagram;return!(ae===null||ae.isReadOnly||ae.isModelReadOnly||ae.selection.count<2)},St.prototype.alignLeft=function(){var ae=this.diagram;ae.startTransaction("aligning left");var _e=1/0;ae.selection.each(function(Pe){Pe instanceof go.Link||(_e=Math.min(Pe.position.x,_e))}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(_e,Pe.position.y))}),ae.commitTransaction("aligning left")},St.prototype.alignRight=function(){var ae=this.diagram;ae.startTransaction("aligning right");var _e=-1/0;ae.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ie=Pe.actualBounds.x+Pe.actualBounds.width;_e=Math.max(Ie,_e)}}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(_e-Pe.actualBounds.width,Pe.position.y))}),ae.commitTransaction("aligning right")},St.prototype.alignTop=function(){var ae=this.diagram;ae.startTransaction("alignTop");var _e=1/0;ae.selection.each(function(Pe){Pe instanceof go.Link||(_e=Math.min(Pe.position.y,_e))}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,_e))}),ae.commitTransaction("alignTop")},St.prototype.alignBottom=function(){var ae=this.diagram;ae.startTransaction("aligning bottom");var _e=-1/0;ae.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ie=Pe.actualBounds.y+Pe.actualBounds.height;_e=Math.max(Ie,_e)}}),ae.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,_e-Pe.actualBounds.height))}),ae.commitTransaction("aligning bottom")},St.prototype.alignCenterX=function(){var ae=this.diagram,_e=ae.selection.first();if(_e){ae.startTransaction("aligning Center X");var Pe=_e.actualBounds.x+_e.actualBounds.width/2;ae.selection.each(function(Ie){Ie instanceof go.Link||Ie.move(new go.Point(Pe-Ie.actualBounds.width/2,Ie.actualBounds.y))}),ae.commitTransaction("aligning Center X")}},St.prototype.alignCenterY=function(){var ae=this.diagram,_e=ae.selection.first();if(_e){ae.startTransaction("aligning Center Y");var Pe=_e.actualBounds.y+_e.actualBounds.height/2;ae.selection.each(function(Ie){Ie instanceof go.Link||Ie.move(new go.Point(Ie.actualBounds.x,Pe-Ie.actualBounds.height/2))}),ae.commitTransaction("aligning Center Y")}},St.prototype.alignColumn=function(ae){var _e=this.diagram;_e.startTransaction("align Column"),ae===void 0&&(ae=0),ae=parseFloat(ae);var Pe=new Array;_e.selection.each(function(on){on instanceof go.Link||Pe.push(on)});for(var Ie=0;Ie<Pe.length-1;Ie++){var Fe=Pe[Ie],tt=Fe.actualBounds.y+Fe.actualBounds.height+ae,ht=Pe[Ie+1];ht.move(new go.Point(Fe.actualBounds.x,tt))}_e.commitTransaction("align Column")},St.prototype.alignRow=function(ae){ae===void 0&&(ae=0),ae=parseFloat(ae);var _e=this.diagram;_e.startTransaction("align Row");var Pe=new Array;_e.selection.each(function(on){on instanceof go.Link||Pe.push(on)});for(var Ie=0;Ie<Pe.length-1;Ie++){var Fe=Pe[Ie],tt=Fe.actualBounds.x+Fe.actualBounds.width+ae,ht=Pe[Ie+1];ht.move(new go.Point(tt,Fe.actualBounds.y))}_e.commitTransaction("align Row")},St.prototype.canRotate=function(ae){var _e=this.diagram;return!(_e===null||_e.isReadOnly||_e.isModelReadOnly||_e.selection.count<1)},St.prototype.rotate=function(ae){ae===void 0&&(ae=90);var _e=this.diagram;_e.startTransaction("rotate "+ae.toString());var _e=this.diagram;_e.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ae)}),_e.commitTransaction("rotate "+ae.toString())},St.prototype.pullToFront=function(){var ae=this.diagram;ae.startTransaction("pullToFront");var _e=new go.Map;ae.selection.each(function(Pe){_e.set(Pe.layer,0)}),_e.iteratorKeys.each(function(Pe){var Ie=0;Pe.parts.each(function(Fe){if(!Fe.isSelected){var tt=Fe.zOrder;isNaN(tt)?Fe.zOrder=0:Ie=Math.max(Ie,tt)}}),_e.set(Pe,Ie)}),ae.selection.each(function(Pe){St._assignZOrder(Pe,_e.get(Pe.layer)+1)}),ae.commitTransaction("pullToFront")},St.prototype.pushToBack=function(){var ae=this.diagram;ae.startTransaction("pushToBack");var _e=new go.Map;ae.selection.each(function(Pe){_e.set(Pe.layer,0)}),_e.iteratorKeys.each(function(Pe){var Ie=0;Pe.parts.each(function(Fe){if(!Fe.isSelected){var tt=Fe.zOrder;isNaN(tt)?Fe.zOrder=0:Ie=Math.min(Ie,tt)}}),_e.set(Pe,Ie)}),ae.selection.each(function(Pe){St._assignZOrder(Pe,_e.get(Pe.layer)-1-St._findGroupDepth(Pe))}),ae.commitTransaction("pushToBack")},St._assignZOrder=function(ae,_e,Pe){Pe===void 0&&(Pe=ae),ae.layer===Pe.layer&&(ae.zOrder=_e),ae instanceof go.Group&&ae.memberParts.each(function(Ie){St._assignZOrder(Ie,_e+1,Pe)})},St._findGroupDepth=function(ae){if(ae instanceof go.Group){var _e=0;return ae.memberParts.each(function(Pe){_e=Math.max(_e,St._findGroupDepth(Pe))}),_e+1}else return 0},St.prototype.doKeyDown=function(){var ae=this.diagram;if(ae!==null){var _e=ae.lastInput;if(_e.key==="Up"||_e.key==="Down"||_e.key==="Left"||_e.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},St.prototype._getAllParts=function(){var ae=new Array;return this.diagram.nodes.each(function(_e){ae.push(_e)}),this.diagram.parts.each(function(_e){ae.push(_e)}),ae},St.prototype._arrowKeyMove=function(){var ae=this.diagram,_e=ae.lastInput,Pe=0,Ie=0;if(_e.control||_e.meta)Pe=1,Ie=1;else if(ae.grid!==null){var Fe=ae.grid.gridCellSize;Ie=Fe.width,Pe=Fe.height}ae.startTransaction("arrowKeyMove"),ae.selection.each(function(tt){_e.key==="Up"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y-Pe)):_e.key==="Down"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y+Pe)):_e.key==="Left"?tt.move(new go.Point(tt.actualBounds.x-Ie,tt.actualBounds.y)):_e.key==="Right"&&tt.move(new go.Point(tt.actualBounds.x+Ie,tt.actualBounds.y))}),ae.commitTransaction("arrowKeyMove")},St.prototype._arrowKeySelect=function(){var ae=this.diagram,_e=ae.lastInput,Pe=null;_e.key==="Up"?Pe=this._findNearestPartTowards(270):_e.key==="Down"?Pe=this._findNearestPartTowards(90):_e.key==="Left"?Pe=this._findNearestPartTowards(180):_e.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(_e.shift?Pe.isSelected=!0:_e.control||_e.meta?Pe.isSelected=!Pe.isSelected:ae.select(Pe))},St.prototype._findNearestPartTowards=function(ae){var _e=this.diagram.selection.first();if(_e===null)return null;for(var Pe=_e.actualBounds.center,Ie=this._getAllParts(),Fe=1/0,tt=_e,ht=0;ht<Ie.length;ht++){var on=Ie[ht];if(on!==_e&&on.canSelect()){var zt=on.actualBounds.center,_t=Pe.directionPoint(zt),mt=this._angleCloseness(_t,ae);if(mt<=45){var Bt=Pe.distanceSquaredPoint(zt);Bt*=1+Math.sin(mt*Math.PI/180),Bt<Fe&&(Fe=Bt,tt=on)}}}return tt},St.prototype._angleCloseness=function(ae,_e){return Math.min(Math.abs(_e-ae),Math.min(Math.abs(_e+360-ae),Math.abs(_e-360-ae)))},St.prototype._arrowKeyTree=function(){var ae=this.diagram,_e=ae.selection.first();if(_e instanceof go.Node){var Pe=ae.lastInput;if(Pe.key==="Right"){if(!_e.isTreeLeaf)if(!_e.isTreeExpanded)ae.commandHandler.canExpandTree(_e)&&ae.commandHandler.expandTree(_e);else{var Ie=this._sortTreeChildrenByY(_e).first();Ie!==null&&ae.select(Ie)}}else if(Pe.key==="Left")if(!_e.isTreeLeaf&&_e.isTreeExpanded)ae.commandHandler.canCollapseTree(_e)&&ae.commandHandler.collapseTree(_e);else{var Fe=_e.findTreeParentNode();Fe!==null&&ae.select(Fe)}else if(Pe.key==="Up"){var Fe=_e.findTreeParentNode();if(Fe!==null){var tt=this._sortTreeChildrenByY(Fe),ht=tt.indexOf(_e);if(ht>0){for(var on=tt.elt(ht-1);on!==null&&on.isTreeExpanded&&!on.isTreeLeaf;){var zt=this._sortTreeChildrenByY(on);on=zt.last()}on!==null&&ae.select(on)}else ae.select(Fe)}}else if(Pe.key==="Down")if(_e.isTreeExpanded&&!_e.isTreeLeaf){var Ie=this._sortTreeChildrenByY(_e).first();Ie!==null&&ae.select(Ie)}else for(;_e!==null;){var Fe=_e.findTreeParentNode();if(Fe===null)break;var tt=this._sortTreeChildrenByY(Fe),ht=tt.indexOf(_e);if(ht<tt.length-1){ae.select(tt.elt(ht+1));break}else _e=Fe}var _t=ae.selection.first();_t!==null&&ae.scrollToRect(_t.actualBounds)}},St.prototype._sortTreeChildrenByY=function(ae){var _e=new go.List().addAll(ae.findTreeChildrenNodes());return _e.sort(function(Pe,Ie){var Fe=Pe.location,tt=Ie.location;return Fe.y<tt.y?-1:Fe.y>tt.y?1:Fe.x<tt.x?-1:Fe.x>tt.x?1:0}),_e},St.prototype.copyToClipboard=function(ae){go.CommandHandler.prototype.copyToClipboard.call(this,ae),this._lastPasteOffset.set(this.pasteOffset)},St.prototype.pasteFromClipboard=function(){var ae=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ae,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ae},Object.defineProperty(St.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ae){if(ae!=="move"&&ae!=="select"&&ae!=="scroll"&&ae!=="tree"&&ae!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ae);this._arrowKeyBehavior=ae}}),Object.defineProperty(St.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ae){if(!(ae instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ae);this._pasteOffset.set(ae)}});var xt=St,sn=ee(72179),Vt=ee(43604),st=ee(98280),ct={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=ee(59301),Be=(ae,_e,Pe)=>new Promise((Ie,Fe)=>{var tt=zt=>{try{on(Pe.next(zt))}catch(_t){Fe(_t)}},ht=zt=>{try{on(Pe.throw(zt))}catch(_t){Fe(_t)}},on=zt=>zt.done?Ie(zt.value):Promise.resolve(zt.value).then(tt,ht);on((Pe=Pe.apply(ae,_e)).next())});function it({onCancel:ae,callback:_e}){let Pe=(0,te.useRef)(),Ie=(0,te.useRef)(),Fe=(0,te.useRef)(),tt=(0,te.useRef)(!1);const ht=(0,te.useRef)(!1),[on,zt]=(0,te.useState)(0);function _t(){const ut=$e.bx.make,Ht={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new $e.S0(Ie.current,{padding:20,grid:ut($e.s_,"Grid",ut($e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ut($e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:an=>{var bn=an.diagram.commandHandler.addTopLevelParts(an.diagram.selection,!0);bn||an.diagram.currentTool.doCancel()},commandHandler:ut(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:an=>{var bn=an.subject;bn.location=bn.location.copy().snapToGridPoint(an.diagram.grid.gridOrigin,an.diagram.grid.gridCellSize),setTimeout(()=>{an.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:an=>{var bn=an.subject;setTimeout(()=>{an.diagram.commandHandler.editTextBlock()})},LinkRelinked:an=>{var bn=an.parameter.part;bn.invalidateConnectedLinks();var Pn=an.subject;an.diagram.toolManager.linkingTool.isForwards?Pn.toNode.invalidateConnectedLinks():Pn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=ut($e.NB,"Auto",{locationSpot:$e.z6.Center,locationObjectName:"SHAPE",desiredSize:new $e.$u(120,60),minSize:new $e.$u(40,40),resizable:!0,resizeCellSize:new $e.$u(10,10),rotatable:!0},new $e.KX("location","loc",$e.E9.parse).makeTwoWay($e.E9.stringify),new $e.KX("desiredSize","size",$e.$u.parse).makeTwoWay($e.$u.stringify),ut($e.bn,{name:"SHAPE",fill:Ht.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:$e.z6.AllSides,toSpot:$e.z6.AllSides},new $e.KX("figure"),new $e.KX("fill"),new $e.KX("stroke","borderColor"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),ut($e.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ut($e.al,{margin:1,textAlign:"center",overflow:$e.al.OverflowEllipsis,editable:!0},new $e.KX("text").makeTwoWay(),new $e.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=ut("ToolTip",ut($e.s_,"Vertical",{maxSize:new $e.$u(200,NaN)},ut($e.al,{font:"bold 10pt sans-serif",textAlign:"center"},new $e.KX("text")),ut($e.al,{font:"10pt sans-serif",textAlign:"center"},new $e.KX("text","details"))));function Yt(an,bn){var Pn=(_n,_r)=>{_n.handled=!0,_n.diagram.model.commit(pr=>{var Or=_r.part.adornedPart,Kr=new $e.E9().setRectSpot(Or.actualBounds,an);Kr.subtract(Or.location),Kr.scale(2,2),Kr.x+=Math.sign(Kr.x)*130,Kr.y+=Math.sign(Kr.y)*130,Kr.add(Or.location),Kr.snapToGridPoint(_n.diagram.grid.gridOrigin,_n.diagram.grid.gridCellSize);var oo=pr.copyNodeData(Or.data);pr.setGroupKeyForNodeData(oo,pr.getGroupKeyForNodeData(Or.data)),pr.addNodeData(oo);var uo={from:Or.key,to:pr.getKeyForNodeData(oo)};pr.addLinkData(uo);var bo=_n.diagram.findNodeForData(oo);bo.location=Kr,_n.diagram.select(bo),setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()},20)})};return ut($e.bn,{figure:bn,alignment:an,alignmentFocus:an.opposite(),width:an.equals($e.z6.Top)||an.equals($e.z6.Bottom)?25:18,height:an.equals($e.z6.Top)||an.equals($e.z6.Bottom)?18:25,fill:"orange",stroke:Ht.white,strokeWidth:4,mouseEnter:(_n,_r)=>_r.fill="dodgerblue",mouseLeave:(_n,_r)=>_r.fill="orange",isActionable:!0,click:Pn,contextClick:Pn})}function Ot(an){return ut($e.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:(bn,Pn)=>Pn.fill="dodgerblue",mouseLeave:(bn,Pn)=>Pn.fill="orange",click:(bn,Pn)=>{bn.diagram.commandHandler.showContextMenu(Pn.part.adornedPart)}},an||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=ut($e.uz,"Spot",ut($e.Vm,{padding:10}),Yt($e.z6.Top,"TriangleUp"),Yt($e.z6.Left,"TriangleLeft"),Yt($e.z6.Right,"TriangleRight"),Yt($e.z6.Bottom,"TriangleDown"),Ot({alignment:new $e.z6(.75,0)}));function kt(an,bn){return(Pn,_n)=>{Pn.handled=!0,Pn.diagram.model.commit(_r=>{_r.set(_n.part.adornedPart.data,an,bn)})}}function Jt(an,bn){return bn||(bn="color"),ut($e.bn,{width:16,height:16,stroke:"lightgray",fill:an,margin:1,background:"transparent",mouseEnter:(Pn,_n)=>_n.stroke="dodgerblue",mouseLeave:(Pn,_n)=>_n.stroke="lightgray",click:kt(bn,an),contextClick:kt(bn,an)})}function cn(){return[ut("ContextMenuButton",ut($e.s_,"Horizontal",Jt(Ht.white,"fill"),Jt(Ht.beige,"fill"),Jt(Ht.extralightblue,"fill"),Jt(Ht.extralightred,"fill"))),ut("ContextMenuButton",ut($e.s_,"Horizontal",Jt(Ht.lightgray,"fill"),Jt(Ht.lightgreen,"fill"),Jt(Ht.lightblue,"fill"),Jt(Ht.lightred,"fill")))]}function Mn(){return[ut("ContextMenuButton",ut($e.s_,"Horizontal",Jt(Ht.black),Jt(Ht.green),Jt(Ht.blue),Jt(Ht.red))),ut("ContextMenuButton",ut($e.s_,"Horizontal",Jt(Ht.white),Jt(Ht.magenta),Jt(Ht.purple),Jt(Ht.orange)))]}function zn(an,bn){return bn||(bn="thickness"),ut($e.bn,"LineH",{width:16,height:16,strokeWidth:an,margin:1,background:"transparent",mouseEnter:(Pn,_n)=>_n.background="dodgerblue",mouseLeave:(Pn,_n)=>_n.background="transparent",click:kt(bn,an),contextClick:kt(bn,an)})}function Vn(an,bn){return bn||(bn="dash"),ut($e.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:an,margin:1,background:"transparent",mouseEnter:(Pn,_n)=>_n.background="dodgerblue",mouseLeave:(Pn,_n)=>_n.background="transparent",click:kt(bn,an),contextClick:kt(bn,an)})}function hn(){return[ut("ContextMenuButton",ut($e.s_,"Horizontal",zn(1),zn(2),zn(3),zn(4))),ut("ContextMenuButton",ut($e.s_,"Horizontal",Vn(null),Vn([2,4]),Vn([4,4])))]}function Nn(an,bn){return bn||(bn="figure"),ut($e.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:an,margin:1,background:"transparent",mouseEnter:(Pn,_n)=>_n.fill="dodgerblue",mouseLeave:(Pn,_n)=>_n.fill="lightgray",click:kt(bn,an),contextClick:kt(bn,an)})}Pe.current.nodeTemplate.contextMenu=ut("ContextMenu",ut("ContextMenuButton",ut($e.s_,"Horizontal",Nn("Rectangle"),Nn("RoundedRectangle"),Nn("Ellipse"),Nn("Diamond"))),ut("ContextMenuButton",ut($e.s_,"Horizontal",Nn("Parallelogram2"),Nn("ManualOperation"),Nn("Procedure"),Nn("Cylinder1"))),ut("ContextMenuButton",ut($e.s_,"Horizontal",Nn("Terminator"),Nn("CreateRequest"),Nn("Document"),Nn("TriangleDown"))),cn(),Mn(),hn()),Pe.current.groupTemplate=ut($e.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:$e.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(an,bn)=>{var Pn=bn.addMembers(bn.diagram.selection,!0);Pn||bn.diagram.currentTool.doCancel()},avoidable:!1},new $e.KX("location","loc",$e.E9.parse).makeTwoWay($e.E9.stringify),ut($e.s_,"Auto",{name:"BODY"},ut($e.bn,{parameter1:10,fill:Ht.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:$e.z6.AllSides,toSpot:$e.z6.AllSides},new $e.KX("fill"),new $e.KX("stroke","color"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),ut($e.Vm,{background:"transparent",margin:20})),ut($e.al,{alignment:$e.z6.Top,alignmentFocus:$e.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new $e.KX("text"),new $e.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=ut($e.uz,"Spot",ut($e.s_,"Auto",ut($e.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ut($e.Vm,{margin:1.5})),Ot({alignment:$e.z6.TopRight,alignmentFocus:$e.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=ut("ContextMenu",cn(),Mn(),hn()),Pe.current.linkTemplate=ut($e.rU,{layerName:"Foreground",routing:$e.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new $e.KX("fromSpot","fromSpot",$e.z6.parse),new $e.KX("toSpot","toSpot",$e.z6.parse),new $e.KX("fromShortLength","dir",an=>an>=1?10:0),new $e.KX("toShortLength","dir",an=>an>=1?10:0),new $e.KX("points").makeTwoWay(),ut($e.bn,{strokeWidth:2},new $e.KX("stroke","color"),new $e.KX("strokeWidth","thickness"),new $e.KX("strokeDashArray","dash")),ut($e.bn,{segmentIndex:0,segmentOffset:new $e.E9(15,0),segmentOrientation:$e.rU.OrientAlong,alignmentFocus:$e.z6.Right,figure:"circle",width:10,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",an=>an===1)),ut($e.bn,{segmentIndex:-1,segmentOffset:new $e.E9(-10,6),segmentOrientation:$e.rU.OrientPlus90,alignmentFocus:$e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",an=>an>=1),new $e.KX("width","thickness",an=>7+3*an),new $e.KX("height","thickness",an=>7+3*an),new $e.KX("segmentOffset","thickness",an=>new $e.E9(-15,4+1.5*an))),ut($e.bn,{segmentIndex:0,segmentOffset:new $e.E9(15,-6),segmentOrientation:$e.rU.OrientMinus90,alignmentFocus:$e.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new $e.KX("fill","color"),new $e.KX("visible","dir",an=>an===2),new $e.KX("width","thickness",an=>7+3*an),new $e.KX("height","thickness",an=>7+3*an),new $e.KX("segmentOffset","thickness",an=>new $e.E9(-15,4+1.5*an))),ut($e.al,{alignmentFocus:new $e.z6(0,1,-4,0),editable:!0},new $e.KX("text").makeTwoWay(),new $e.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=ut($e.uz,ut($e.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:lr(2)},new $e.KX("pathPattern","thickness",lr)),Ot({alignmentFocus:new $e.z6(0,0,-6,-4)}));function lr(an){return ut($e.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(an+4).toString()+" H3"})}function ir(an){var bn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return an===0?bn="M0 0 M16 16 M0 8 L16 8":an===2&&(bn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ut($e.bn,{geometryString:bn,margin:2,background:"transparent",mouseEnter:(Pn,_n)=>_n.background="dodgerblue",mouseLeave:(Pn,_n)=>_n.background="transparent",click:kt("dir",an),contextClick:kt("dir",an)})}function Ut(an){var bn=(Pn,_n)=>{Pn.handled=!0,Pn.diagram.model.commit(_r=>{var pr=_n.part.adornedPart;_r.set(pr.data,an?"toSpot":"fromSpot",$e.z6.stringify($e.z6.AllSides)),(an?pr.toNode:pr.fromNode).invalidateConnectedLinks()})};return ut($e.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Pn,_n)=>_n.background="dodgerblue",mouseLeave:(Pn,_n)=>_n.background="transparent",click:bn,contextClick:bn})}function ur(an,bn){var Pn=0,_n=$e.z6.RightSide;an.equals($e.z6.Top)?(Pn=270,_n=$e.z6.TopSide):an.equals($e.z6.Left)?(Pn=180,_n=$e.z6.LeftSide):an.equals($e.z6.Bottom)&&(Pn=90,_n=$e.z6.BottomSide),bn||(Pn-=180);var _r=(pr,Or)=>{pr.handled=!0,pr.diagram.model.commit(Kr=>{var oo=Or.part.adornedPart;Kr.set(oo.data,bn?"toSpot":"fromSpot",$e.z6.stringify(_n)),(bn?oo.toNode:oo.fromNode).invalidateConnectedLinks()})};return ut($e.bn,{alignment:an,alignmentFocus:an.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Pn,background:"transparent",mouseEnter:(pr,Or)=>Or.background="dodgerblue",mouseLeave:(pr,Or)=>Or.background="transparent",click:_r,contextClick:_r})}Pe.current.linkTemplate.contextMenu=ut("ContextMenu",Mn(),hn(),ut("ContextMenuButton",ut($e.s_,"Horizontal",ir(0),ir(1),ir(2))),ut("ContextMenuButton",ut($e.s_,"Horizontal",ut($e.s_,"Spot",Ut(!1),ur($e.z6.Top,!1),ur($e.z6.Left,!1),ur($e.z6.Right,!1),ur($e.z6.Bottom,!1)),ut($e.s_,"Spot",{margin:new $e.Zt(0,0,0,2)},Ut(!0),ur($e.z6.Top,!0),ur($e.z6.Left,!0),ur($e.z6.Right,!0),ur($e.z6.Bottom,!0)))));const to=`{ "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 Ar=["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 Lr(an){return console.log("shapeName:",an),Ar.indexOf(an)>=0}var Wr=new $e.YI(Fe.current,{maxSelectionCount:1,linkTemplate:ut($e.rU,{locationSpot:$e.z6.Center,selectionAdornmentTemplate:ut($e.uz,"Link",{locationSpot:$e.z6.Center},ut($e.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ut($e.bn,{toArrow:"Standard",stroke:null}))},{routing:$e.rU.AvoidsNodes,curve:$e.rU.JumpOver,corner:5,toShortLength:4},new $e.KX("points"),ut($e.bn,{isPanelMain:!0,strokeWidth:2}),ut($e.bn,{toArrow:"Standard",stroke:null})),model:new $e.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...$e.bn.getFigureGenerators().toArray().map(an=>({text:"\u672A\u547D\u540D",size:"100 100",figure:an.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(an){var bn;const Pn=an.subject.part;var _n=(bn=document.activeElement)==null?void 0:bn.value;typeof _n=="string"&&_n.trim()===""&&Pe.current.model.commit(function(_r){_r.set(Pn.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Wr.nodeTemplate=ut($e.NB,"Auto",{locationSpot:$e.z6.Center},new $e.KX("location","location",$e.E9.parse).makeTwoWay($e.E9.stringify),ut($e.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 $e.KX("stroke").makeTwoWay(),new $e.KX("fill").makeTwoWay(),new $e.KX("figure")),ut($e.al,{margin:new $e.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new $e.$u(16,16),maxSize:new $e.$u(10,NaN),textAlign:"center",editable:!0},new $e.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=ut($e.s_,"Grid",ut($e.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ut($e.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const mt=()=>Be(this,null,function*(){var ut=Pe.current.makeImage();const Ht=yield(0,st.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ut.src}});_e({src:Ht.url})});(0,te.useEffect)(()=>(setTimeout(()=>{_t()},500),zt(on+1),()=>{Pe.current=null}),[]);const Bt=(0,oe.useIntl)();return Ge.createElement("div",{ref:ht,className:tt.current?`${ct.maxH60} body-overflow-initial`:"body-overflow-initial"},Ge.createElement(Qe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!on,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ge.createElement(Et.Z,null,Ge.createElement(Vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ge.createElement(Vt.Z,{onClick:()=>{var ut,Ht,Yt=Pe.current.selection.first();if(tt.current=!tt.current,document.activeElement&&Yt){let Ot=(Ht=(ut=document.activeElement)==null?void 0:ut.value)==null?void 0:Ht.trim();typeof Ot=="string"&&Pe.current.model.commit(function(kt){kt.set(Yt.data,"text",Ot||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}zt(on+1)}},Ge.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/",Bt.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:ae},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:Fe})),Ge.createElement("div",{style:{flex:1,position:"relative"}},Ge.createElement("div",{ref:Ie,style:{height:"80vh"}}))),Ge.createElement("div",{className:"tr"},Ge.createElement(xe.ZP,{size:"large",onClick:mt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},Bt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var wt=it,Ae=ee(5112),Re=ee(5871);const Ke=Ae.ZP.Group,ke={margin:"0 8px"};var ze=({callback:ae,onCancel:_e})=>{function Pe(Fe){ae(Fe)}const Ie=(0,oe.useIntl)();return te.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:ke},Ie.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),te.createElement("span",{style:ke},Ie.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),te.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Re.Z,null)),te.createElement("span",{style:ke},Ie.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),te.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Re.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:ke},Ie.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),te.createElement(Ee.default.Item,{name:"align"},te.createElement(Ke,null,te.createElement(Ae.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Ae.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Ae.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Ae.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ie.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(xe.ZP,{type:"ghost",onClick:_e},Ie.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},at=ee(78673),It=ee(25730),Dt=ee.n(It),Tt=(0,te.forwardRef)(({use3d:ae,width:_e,height:Pe,callback:Ie,showSaveButton:Fe},tt)=>{const ht=(0,te.useRef)(),on=(0,te.useRef)(),zt=(0,oe.useIntl)(),[_t,mt]=(0,te.useState)(!1),Bt=(0,te.useRef)({id:ht,appName:"graphing",width:_e||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{on.current=new(Dt())(Bt.current,!0),window.onload=function(){on.current.inject("applet_container")}},[]);const ut=()=>{var Ht=window.ggbApplet.getPNGBase64(1,!0,72);return Ie&&Ie(Ht),Ht};return(0,te.useEffect)(()=>{Bt.current.appName=_t?"3D":"graphing",on.current.inject("applet_container")},[_t]),(0,te.useEffect)(()=>{mt(ae)},[ae]),(0,te.useImperativeHandle)(tt,()=>({getImgData:ut})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ht}),te.createElement(Et.Z,{align:"middle"},te.createElement(Vt.Z,{flex:1},te.createElement(at.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:zt.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:_t,onChange:Ht=>mt(Ht)})),te.createElement(Vt.Z,null,te.createElement(xe.ZP,{size:"large",onClick:ut,style:{zIndex:8,marginTop:10},type:"primary"},zt.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),Gt=ee(88601),yt=ee(1012),un=ee(8591);const ln="link",Ct="upload-image",pn="add-flowchart",Sn="draw-image",Gn="add-flowchart",Ln="code-block",Wn="add-table",Zn="------------",Jn={default:Zn,left:`:${Zn}`,center:`:${Zn}:`,right:`${Zn}:`};var Yn=ee(28934),mr=(ae,_e,Pe)=>new Promise((Ie,Fe)=>{var tt=zt=>{try{on(Pe.next(zt))}catch(_t){Fe(_t)}},ht=zt=>{try{on(Pe.throw(zt))}catch(_t){Fe(_t)}},on=zt=>zt.done?Ie(zt.value):Promise.resolve(zt.value).then(tt,ht);on((Pe=Pe.apply(ae,_e)).next())});function ar(){}let wn=0;const Cr=1e4,jn="\u2581",Tn="@\u2581\u2581@",or="@\u2581@",Dr=`
|
|
|
**\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`,Nr=["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 Rr(ae){return/^\d+$/.test(ae)?`${ae}px`:ae}const qn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",sr={[qn+"-B"]:"bold",[qn+"-I"]:"italic"};var Qt=({defaultValue:ae="",onChange:_e,width:Pe="100%",height:Ie=400,miniToolbar:Fe=!1,isFocus:tt=!1,watch:ht,insertTemp:on,mode:zt="markdown",id:_t="markdown-editor-id",showResizeBar:mt=!1,noStorage:Bt=!1,showNullButton:ut=!1,showNullProgramButton:Ht=!1,hidetoolBar:Yt=!1,fullScreen:Ot=!1,onBlur:kt,onCMBeforeChange:Jt,onFullScreen:cn,className:Mn="",disablePaste:zn=!1,disabled:Vn=!1,disabledFill:hn=!1,placeholder:Nn="",values:lr="",extraUse:ir})=>{const[Ut,ur]=(0,te.useState)(null),[to,Ar]=(0,te.useState)(ae),[Lr,Wr]=(0,te.useState)(ht),[an,bn]=(0,te.useState)(Ot),[Pn,_n]=(0,te.useState)(""),[_r,pr]=(0,te.useState)(0),[Or,Kr]=(0,te.useState)(Ie),[oo,uo]=(0,te.useState)(!1),bo=(0,te.useRef)((0,yt.Z)()),ho=(0,te.useRef)(!1),Mo=(0,te.useRef)(),[Eo,So]=(0,te.useState)(0),[To,Do]=(0,te.useState)(0),Er=(0,te.useRef)(),wo=(0,te.useRef)(),Vr=(0,te.useRef)(),Jr=(0,te.useRef)(),xo=()=>mr(void 0,null,function*(){var Un;const Cn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:bo.current}});(Un=Cn==null?void 0:Cn.attachments)!=null&&Un.length&&(console.log("cm:",Ut,Er),Cn.attachments.map(In=>{In.content_type.indexOf("image")>-1?Ut.replaceSelection(``):In.content_type.indexOf("video")>-1?Ut.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):In.content_type.indexOf("pdf")>-1?Ut.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${In.id}?type=${In.content_type}&disposition=inline" target="_blank">${In.name}</a>`):Ut.replaceSelection(`[${In.name}](${ENV.API_SERVER}/api/attachments/${In.id}?type=${In.content_type})`)}))});(0,te.useEffect)(()=>{const Un=window.scrollY||window.pageYOffset;Ar(lr),Ut==null||Ut.setValue(lr),window.scrollTo(0,Un)},[lr]),(0,te.useEffect)(()=>{cn==null||cn(an)},[an]),(0,te.useEffect)(()=>{if(Er.current){let Un=function(In,Dn){var vr;if(zn){Dn.preventDefault();return}const Br=Dn.clipboardData;if(Br){const ao=Br.types.toString(),so=Br.items;if(ao==="Files"||Br.types.indexOf("Files")>-1){if(Dn.preventDefault(),zt=="stex")return;try{let lo=so[1];((vr=so[0])==null?void 0:vr.kind)==="file"&&(lo=so[0]);const fo=lo.getAsFile(),$o=fo.name.split(".").pop();(0,et.I)(fo,_o=>{var oi,qr,cr;_o.id?((oi=fo==null?void 0:fo.type)==null?void 0:oi.indexOf("image"))>-1?Cn.replaceSelection(`<img width="100%" src="/api/attachments/${_o.id}?type=${_o.content_type})" alt="" />`):((qr=fo==null?void 0:fo.type)==null?void 0:qr.indexOf("video"))>-1?Cn.replaceSelection(`<video width="100%" controls src="/api/attachments/${_o.id}"></video>`):((cr=fo==null?void 0:fo.type)==null?void 0:cr.indexOf("pdf"))>-1?Cn.replaceSelection(`<a href="/api/attachments/${_o.id}?type=${fo.type}&disposition=inline" target="_blank">${fo.name}</a>`):Nr.includes($o)?Cn.replaceSelection(`<a href="/api/attachments/${_o.id}?type=office&disposition=inline" target="_blank">${fo.name}</a>`):Cn.replaceSelection(`[${fo.name}](/api/attachments/${_o.id}?type=${_o.content_type})`):(_o==null?void 0:_o.status)===401&&(un.ZP.warning((_o==null?void 0:_o.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(lo){un.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Cn=be().fromTextArea(Er.current,{mode:zt,lineNumbers:!Fe,lineWrapping:!0,value:ae,autoCloseTags:!Ht,autoCloseBrackets:!0});return Cn.on("keyup",function(In,Dn){Dn.keyCode===8&&(In.getValue()==""?Cn.setOption("placeholder",Nn):Cn.setOption("placeholder",null))}),Cn.on("keydown",function(In,Dn){if(Dn.keyCode===8){var vr=jr(In);vr&&Dn.preventDefault()}}),tt&&Cn.focus(),Cn.on("paste",Un),Cn.on("dragleave",function(In,Dn){wo.current.classList.remove("mouse-hover-md")}),Vn&&Cn.on("beforeChange",function(In,Dn){(Dn.origin==="paste"||Dn.origin==="+input")&&Dn.cancel()}),ur(Cn),()=>{Cn.off("paste",Un)}}},[]);const Ao=(0,te.useCallback)(()=>{if(wo.current)try{}catch(Un){console.log(Un,"---- to set md editor body height")}},[Or,wo,an]);(0,te.useEffect)(()=>{function Un(){let Cn=new ye.Z(In=>{for(let Dn of In)(Dn.target.offsetHeight>0||Dn.target.offsetWidth>0)&&(Ao(),Ut.setSize("100%","100%"),Ut.refresh())});return Cn.observe(Er.current.parentElement),Cn}if(Ut){const Cn=Un();return()=>{var In,Dn;(In=Er.current)!=null&&In.parentElement&&Cn.unobserve((Dn=Er.current)==null?void 0:Dn.parentElement)}}},[Ut,Ao]),(0,te.useEffect)(()=>{if(Ut){let Un=[];for(const[Cn,In]of Object.entries(sr)){let Dn={[Cn]:()=>{Go(In)}};Un.push(Dn),Ut.addKeyMap(Dn)}return Mo.current=setInterval(()=>{ho.current&&xo()},4e3),()=>{clearInterval(Mo.current);for(let Cn of Un)Ut.removeKeyMap(Cn)}}},[Ut]),(0,te.useEffect)(()=>{Ot!==an&&bn(Ot)},[Ot]),(0,Yn.Z)(()=>{if(!Bt&&_r>0){let Un=new Date().getTime(),Cn=window.sessionStorage.getItem(_t);Un>=_r+Cr&&(!Cn||Cn!==to)&&(window.sessionStorage.setItem(_t,to),uo(!0))}},Cr),(0,te.useEffect)(()=>{Wr(ht)},[Ut,ht]),(0,te.useEffect)(()=>{Ut&&tt&&Ut.focus()},[Ut,tt]),(0,te.useEffect)(()=>{if(Lr&&Ut){let Un=function(In){let Dn=In.target;if(Jr.current){let vr=Dn.scrollTop/Dn.scrollHeight;Jr.current.scrollTop=Jr.current.scrollHeight*vr}};const Cn=Ut.getScrollerElement();return Cn.addEventListener("scroll",Un),()=>{Cn.removeEventListener("scroll",Un)}}},[Ut,Lr]),(0,te.useEffect)(()=>{if(Ut&&Jt){let Un=function(Cn,In){Jt(Cn,In)};return Ut.on("beforeChange",Un),()=>{Ut.off("beforeChange",Un)}}},[Ut,Jt]),(0,te.useEffect)(()=>{if(Ut&&kt){let Un=function(){kt(Ut.getValue())};return Ut.on("blur",Un),()=>{Ut.off("blur",Un)}}},[Ut,kt]);function jr(Un,Cn){var In=Un.getDoc(),Dn=In.getCursor(),vr=In.getLine(Dn.line),Br=vr.charAt(Dn.ch-1),ao=vr.lastIndexOf("@\u2581@",Dn.ch),so=vr.lastIndexOf("@\u2581\u2581@",Dn.ch),lo=ao>so?ao:so,fo=ao>so?3:4;if(Tn.indexOf(Br)===-1)return null;if(console.log("change1:",Cn,Un,vr,Dn,lo,ao,so,Br),lo>=0&&Dn.ch-lo<5){var $o=lo+fo;return In.replaceRange("",{line:Dn.line,ch:lo},{line:Dn.line,ch:$o}),{line:Dn.line,ch:$o}}return null}(0,te.useEffect)(()=>{if(Ut){let Un=function(Cn,In){const Dn=Cn.getValue();Ar(Dn),pr(new Date().getTime()),Cn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),_e&&(Ht?_e(Dn,mo(Dn)):_e(Dn))};return Ut.on("change",Un),()=>{Ut.off("change",Un)}}},[Ut,_e]),(0,te.useEffect)(()=>{if(Ut)if(ae==null)Ut.setValue(""),Ar("");else{const Un=window.scrollY||window.pageYOffset;ae!==Ut.getValue()&&(Ut.setValue(ae),Ar(ae),Ut.setCursor(Vn?1:Ut.lineCount(),0),window.scrollTo(0,Un))}},[Ut,ae]);const Go=(0,te.useCallback)(Un=>{const Cn=Ut.getCursor(),In=Ut.getSelection();let Dn=In.split(`
|
|
|
`);switch(Un){case"bold":return Ut.replaceSelection("**"+In+"**"),In===""&&Ut.setCursor(Cn.line,Cn.ch+2),Ut.focus();case"italic":return Ut.replaceSelection("*"+In+"*"),In===""&&Ut.setCursor(Cn.line,Cn.ch+1),Ut.focus();case"code":return Ut.replaceSelection("`"+In+"`"),In===""&&Ut.setCursor(Cn.line,Cn.ch+1),Ut.focus();case"inline-latex":return _n("inline-latex"),Ut.focus();case"latex":return Ut.replaceSelection("```latex\n"+In+"\n```"),Ut.setCursor(Cn.line+1,In.length+1),Ut.focus();case"line-break":return Ut.replaceSelection(`<br/>
|
|
|
`),Ut.focus();case"list-ul":return In===""?Ut.replaceSelection("- "+In):Ut.replaceSelection(Dn.map(vr=>vr===""?"":`- ${vr}`).join(`
|
|
|
`)),Ut.focus();case"list-ol":return In===""?Ut.replaceSelection("1. "+In):Ut.replaceSelection(Dn.map((vr,Br)=>vr===""?"":`${Br+1}. ${vr}`).join(`
|
|
|
`)),Ut.focus();case"add-null-ch":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(jn),Ut.focus();case"add-signal":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(or),Ut.focus();case"add-multiple":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(Tn),Ut.focus();case"inster-template-1":return In===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(Dr),Ut.focus();case"eraser":return Ut.setValue(""),Ut.focus();case"trigger-watch":return Wr(!Lr),Ut.focus();case"trigger-full-screen":return bn(!an),Ut.focus();case ln:_n(ln);return;case Ln:_n(Ln);return;case Ct:_n(Ct);return;case Sn:_n(Sn);return;case"maths-latex":_n("maths-latex");return;case pn:_n(pn);return;case Wn:_n(Wn);return;default:throw new Error}},[Ut,Lr,an]),io=(0,te.useCallback)((Un,Cn)=>{var In,Dn,vr,Br,ao,so;switch(_n(""),Pn){case ln:const{title:oi,link:qr}=Un;return Ut.replaceSelection(`[${oi}](${qr})`),Ut.focus();case Ln:const{language:cr,content:ii}=Un;return Ut.replaceSelection(["```"+cr,ii,"```"].join(`
|
|
|
`)),Ut.focus();case"maths-latex":for(var lo=atob(Un),fo=new Uint8Array(lo.length),$o=0;$o<lo.length;$o++)fo[$o]=lo.charCodeAt($o);var _o=new Blob([fo],{type:"image/png"});(0,et.I)(_o,Bo=>{Bo.id?Ut.replaceSelection(``):(Bo==null?void 0:Bo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ut.replaceSelection("`$$"+Un+"$$`");break;case Ct:case Sn:case Gn:const{src:yo,alt:Gr}=Un,Ur=Cn,ai=(vr=(Dn=(In=Ur==null?void 0:Ur.name)==null?void 0:In.split("."))==null?void 0:Dn.pop)==null?void 0:vr.call(Dn);return((Br=Ur==null?void 0:Ur.type)==null?void 0:Br.indexOf("image"))>-1||!(Ur!=null&&Ur.type)?Ur.align||Ur.width?Ut.replaceSelection(`<p style="text-align:${Ur.align||"initial"}"><img width="${Ur.width?Ur.width+"%":"initial"}" src="${yo}" alt="${Gr||""}" /></p>`):Ut.replaceSelection(`<img width="100%" src="${yo}" alt="${Gr||""}" />`):((ao=Ur==null?void 0:Ur.type)==null?void 0:ao.indexOf("video"))>-1?Ut.replaceSelection(`<video width="100%" controls src="${yo}"></video>`):((so=Ur==null?void 0:Ur.type)==null?void 0:so.indexOf("pdf"))>-1?Ut.replaceSelection(`<a href="${yo}?type=${Ur.type}&disposition=inline" target="_blank">${Ur.name}</a>`):Nr.includes(ai)?Ut.replaceSelection(`<a href="${yo}?type=office&disposition=inline" target="_blank">${Ur.name}</a>`):Ut.replaceSelection(`[${Ur.name}](${yo})`),Ut.focus();case Wn:const{row:ti,col:_i,align:Di}=Un;let ci=`
|
|
|
`;for(let Bo=0;Bo<ti;Bo++){let Hi=[],Ai=[];for(let Ii=0;Ii<_i;Ii++)Bo===1&&Ai.push(Jn[Di]),Hi.push(" ");Bo===1&&(ci+=`| ${Ai.join(" | ")} |
|
|
|
`),ci+=`| ${Hi.join(_i===1?"":" | ")} |
|
|
|
`}return Ut.replaceSelection(ci+`
|
|
|
`),Ut.focus();default:throw new Error}},[Ut,Pn]),Uo=(0,te.useMemo)(()=>{switch(Pn){case ln:return te.createElement(Mt,{callback:io,onCancel:Io});case Ln:return te.createElement(At.Z,{callback:io,onCancel:Io});case Ct:return te.createElement(et.Z,{callback:io,onCancel:Io});case pn:return te.createElement(wt,{callback:io,onCancel:Io});case Wn:return te.createElement(ze,{callback:io,onCancel:Io});case"maths-latex":return te.createElement(Tt,{showSaveButton:!0,callback:io});case"inline-latex":return te.createElement(Gt.Z,{showSaveButton:!0,callback:io});default:return null}},[Pn]);function Io(){_n("")}(0,te.useEffect)(()=>{if(Vr.current){let Un=function(ao){vr=!0,Br=ao.pageY},Cn=function(){vr=!1},In=function(ao){if(vr){let so=ao.pageY-Br;so<0&&(so=0),so>300&&(so=300);let lo=Ie+so+"px";Kr(lo)}},Dn=Vr.current,vr=!1,Br=0;return Dn.addEventListener("mousedown",Un),document.addEventListener("mousemove",In),document.addEventListener("mouseup",Cn),()=>{Dn.removeEventListener("mousedown",Un),document.removeEventListener("mousemove",In),document.removeEventListener("mouseup",Cn)}}},[Ut,Vr]),(0,te.useEffect)(()=>{Kr(Ie)},[Ie]);const Yo=Rr(Pe),Jo=Rr(Or),No={width:Yo,height:Jo},Co=(0,te.useMemo)(()=>{if(_r){let Un=new Date(_r),Cn=Un.getHours(),In=Un.getMinutes(),Dn=Un.getSeconds();return Cn=Cn<10?"0"+Cn:Cn,In=In<10?"0"+In:In,Dn=Dn<10?"0"+Dn:Dn,`${Cn}:${In}:${Dn}`}return 0},[_r]),mo=Un=>{const Cn=[];if(Ht){let In=-1;Un=Un.replace(/(@▁▁@|@▁@)/g,function(Dn,vr,Br){Cn.push({multiLine:Dn!==or})})}return Cn};function qo(){window.sessionStorage.removeItem(_t),uo(!1),pr(0)}function Xo(){uo(!1),pr(0),Ut.setValue(window.sessionStorage.getItem(_t))}const ei=(0,oe.useIntl)(),ni={[ln]:"\u6DFB\u52A0\u94FE\u63A5",[Ln]:ei.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[Ct]:ei.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[Sn]:"\u6DFB\u52A0\u753B\u56FE",[pn]:ei.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[Wn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":ei.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":ei.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,te.useEffect)(()=>{ni[Pn]&&Pn!==Sn&&Pn!==pn&&setTimeout(()=>{const Un=document.getElementsByClassName("markdown-popup-form")[0],Cn=window.innerWidth/2-Un.offsetWidth/2,In=window.innerHeight/2-Un.offsetHeight/2;So(Cn),Do(In)},0)},[Pn]);const ri=Un=>{Un.preventDefault();const Cn=Un.clientX-Eo,In=Un.clientY-To;document.body.onmousemove=Dn=>{let vr=Dn.clientX-Cn,Br=Dn.clientY-In;const ao=document.getElementsByClassName("markdown-popup-form")[0],so=window.innerWidth-ao.offsetWidth,lo=window.innerHeight-ao.offsetHeight;vr=Math.max(0,Math.min(vr,so)),Br=Math.max(0,Math.min(Br,lo)),Si(Dn.clientX,Dn.clientY,Cn,In)&&(So(vr),Do(Br))},document.body.onmouseup=function(){document.body.onmousemove=null}},Si=(Un,Cn,In,Dn)=>{const vr=document.body.clientHeight,Br=document.body.clientWidth;return Un<20&&In>Un||Un>Br-20&&In<Un||Cn<20&&Dn>Cn||Cn>vr-20&&Dn<Cn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:wo},te.createElement("div",{className:`markdown-editor-container ${Mn} ${Lr?"on-preview":""} ${Fe?"mini":""} ${an?"full-screen":""}`,style:No},te.createElement(Se,{insertTemp:on,watch:Lr,fullScreen:an,showNullButton:ut,showNullProgramButton:Ht,onActionCallback:Go,hidetoolBar:Yt,extraUse:ir}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Er,placeholder:Nn})),Lr?te.createElement("div",{ref:Jr,className:"preview-container"},zt==="stex"&&te.createElement(pe,{value:to}),zt!=="stex"&&te.createElement(se.Z,{disabledFill:hn,showProgramFill:Ht,value:to})):null))),mt?te.createElement("a",{ref:Vr,className:"editor-resize"}):null,Pn===Sn&&te.createElement(Wt,{callback:io,onCancel:Io}),Pn===pn&&te.createElement(wt,{callback:io,onCancel:Io}),te.createElement(Le.Z,null,ni[Pn]&&Pn!==Sn&&Pn!==pn?te.createElement(Qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Eo,top:To},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:ri},ni[Pn]),open:!0,onCancel:Io,footer:null,destroyOnClose:!0,width:Pn===pn?"1200px":null,height:Pn===pn?"80vh":null,className:"markdown-popup-form"},Uo):null))}},76021:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return Se},I:function(){return Ee}});var te=ee(78241),fe=ee(8591),be=ee(92832),ye=ee(81327),he=ee(5871),ge=ee(5112),ie=ee(3113),ue=ee(82977),ce=ee(59301),me=ee(53229),se=ee(75790),pe=ee(59301),oe=Object.defineProperty,ne=Object.defineProperties,y=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(je,xe,lt)=>xe in je?oe(je,xe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):je[xe]=lt,z=(je,xe)=>{for(var lt in xe||(xe={}))E.call(xe,lt)&&x(je,lt,xe[lt]);if(a)for(var lt of a(xe))b.call(xe,lt)&&x(je,lt,xe[lt]);return je},re=(je,xe)=>ne(je,y(xe));const{useForm:le}=te.default,de={width:280,marginRight:10},ve={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:je,onCancel:xe})=>{const[lt]=le();let Ye=(0,ce.useRef)();const ft=(0,se.useIntl)();function Me(ot){Ye.current.width=lt.getFieldValue("width"),Ye.current.align=lt.getFieldValue("align"),je(ot,Ye.current)}function He(ot,Ze){if(ot.status===-1){fe.ZP.error(ot.message);return}lt.setFieldsValue({src:`/api/attachments/${ot.id}`,type:Ze.type})}function Ne(ot){let Ze=ot.target.files[0];Ye.current=Ze,Ee(Ze,He)}return pe.createElement(te.default,re(z({form:lt},ve),{className:"upload-image-panel",onFinish:Me,style:{width:470,overflow:"hidden"}}),pe.createElement(te.default.Item,{label:ft.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},pe.createElement("div",{className:"flex-container"},pe.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},pe.createElement(be.default,{style:de})),pe.createElement(Le,{onFileChange:Ne}))),pe.createElement(te.default.Item,{label:ft.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},pe.createElement(be.default,{style:{width:264}})),pe.createElement(te.default.Item,{label:ft.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},pe.createElement(ye.Z,null,pe.createElement(te.default.Item,{name:"width",style:{margin:0}},pe.createElement(he.Z,{style:{width:264}})),pe.createElement("span",{className:"ml8"},"%"))),pe.createElement(te.default.Item,{label:ft.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},pe.createElement(ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:ft.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:ft.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:ft.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),pe.createElement("aside",null,pe.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},pe.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},ft.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),pe.createElement(ie.ZP,{type:"default",onClick:xe},ft.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function Le({onFileChange:je}){return pe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",pe.createElement("input",{type:"file",onChange:je}))}function Ee(je,xe){if(!je)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,me.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let lt=new FormData;lt.append("editormd-image-file",je),lt.append("file_param_name","editormd-image-file"),lt.append("byxhr","true");var Ye=new window.XMLHttpRequest;Ye.withCredentials=!0,Ye.addEventListener("load",function(ft){xe(JSON.parse(ft.target.responseText),je)},!1),Ye.addEventListener("error",function(ft){console.error(ft)},!1),Ye.open("POST",`${ue.KI}/api/attachments.json`),Ye.send(lt)}},44991:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return be}});var te=ee(59301),fe=ee(4676);class be extends te.Component{constructor(he){super(he);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,fe.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},18578:function(gt,Ve,ee){"use strict";var te=ee(14257),fe=ee(57809),be=ee(78673),ye=ee(75790),he=ee(59301);const ge=fe.default.Option;Ve.Z=({isTheoretical:ie,onFontSizeChange:ue,cmFontSize:ce,cmCodeMode:me,autoFormat:se,onCodeModeChange:pe,onTabToSpace:oe,onAutoFormat:ne,formatDocument:y,className:a="",tabToSpace:E,children:b,code_editor:x,challenge:z,shixun_environment_id:re,shixun_environments:le})=>{var de;const ve=(0,ye.useIntl)(),Se={1:ve.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"}),2:ve.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"}),3:ve.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"})},Le=(de=le==null?void 0:le.find(Ee=>Ee.shixun_environment_id===re))==null?void 0:de.program_language;return he.createElement("div",{className:`tpi-code-setting ${a}`},he.createElement("h3",null,ve.formatMessage({id:"shixuns.codeFormat",defaultMessage:"\u4EE3\u7801\u683C\u5F0F"})),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.displayMode",defaultMessage:"\u663E\u793A\u6A21\u5F0F"})),he.createElement(fe.default,{bordered:!1,size:"small",value:me,onChange:pe},he.createElement(ge,{value:"vs"},ve.formatMessage({id:"shixuns.whiteBackground",defaultMessage:"\u767D\u8272\u80CC\u666F"})),he.createElement(ge,{value:"vs-dark"},ve.formatMessage({id:"shixuns.blackBackground",defaultMessage:"\u9ED1\u8272\u80CC\u666F"})))),!ie&&he.createElement(he.Fragment,null,he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.fontSize",defaultMessage:"\u5B57\u4F53\u5927\u5C0F"})),he.createElement(fe.default,{bordered:!1,size:"small",value:ce,onChange:ue},he.createElement(ge,{value:12},"12px"),he.createElement(ge,{value:14},"14px"),he.createElement(ge,{value:16},"16px"),he.createElement(ge,{value:18},"18px"),he.createElement(ge,{value:20},"20px"),he.createElement(ge,{value:22},"22px"))),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.tabConversion",defaultMessage:"Tab\u8F6C\u6362"})),he.createElement(be.Z,{checked:E,onChange:oe})),he.createElement("div",{className:"file-item",onClick:y},he.createElement("b",{style:{cursor:"pointer"}},ve.formatMessage({id:"shixuns.formatCode",defaultMessage:"\u683C\u5F0F\u5316\u4EE3\u7801"}))))),!ie&&he.createElement(he.Fragment,null,he.createElement("h3",null,ve.formatMessage({id:"shixuns.shortcuts",defaultMessage:"\u5FEB\u6377\u952E"})),he.createElement("section",null,he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.saveCode",defaultMessage:"\u4FDD\u5B58\u4EE3\u7801"})),he.createElement("span",null,"Ctrl + S")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.showShortcutsList",defaultMessage:"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"})),he.createElement("span",null,"F1 / Alt + F1")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.indentLeftRight",defaultMessage:"\u5DE6\u53F3\u7F29\u8FDB"})),he.createElement("span",null,"Ctrl + ]/[")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.jumpToMatchingBracket",defaultMessage:"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"})),he.createElement("span",null,"Ctrl + Shift + \\")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.goToLineStart",defaultMessage:"\u8F6C\u5230\u884C\u9996"})),he.createElement("span",null,"Home")),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.goToLineEnd",defaultMessage:"\u8F6C\u5230\u884C\u5C3E"})),he.createElement("span",null,"End"))),b),!ie&&he.createElement(he.Fragment,null,he.createElement("h3",null,ve.formatMessage({id:"shixuns.shortcuts",defaultMessage:"\u5FEB\u6377\u952E"})),he.createElement("section",null,Le&&he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"questionBankAddQuestion.programmingLanguage",defaultMessage:"\u7F16\u7A0B\u8BED\u8A00"})),he.createElement("span",null,Le)),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.practicalDifficulty",defaultMessage:"\u5B9E\u8BAD\u96BE\u6613\u5EA6"})),he.createElement("span",null,Se[z==null?void 0:z.difficulty])),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.labEnvironment",defaultMessage:"\u5B9E\u9A8C\u73AF\u5883"})),he.createElement("span",null,x==null?void 0:x.name)),he.createElement("div",{className:"file-item"},he.createElement("b",null,ve.formatMessage({id:"shixuns.labContainerNetwork",defaultMessage:"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"})),he.createElement("span",null,x!=null&&x.close_internet?"\u5173\u95ED\u5916\u7F51":ve.formatMessage({id:"shixuns.enableExternalNetwork",defaultMessage:"\u5F00\u542F\u5916\u7F51"}))))))}},28934:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return fe}});var te=ee(59301);function fe(be,ye){const he=(0,te.useRef)();(0,te.useEffect)(()=>{he.current=be}),(0,te.useEffect)(()=>{function ge(){he.current()}if(ye!==null){let ie=setInterval(ge,ye);return()=>clearInterval(ie)}},[ye])}},61241:function(gt,Ve,ee){"use strict";ee.d(Ve,{Im:function(){return je},ZP:function(){return He},gZ:function(){return ft}});var te=ee(59301),fe=ee(92832),be=ee(3113),ye=ee(84105),he=ee(87395),ge=ee(24595),ie=ee(24334),ue=ee(38610),ce=ee(12470),me=ee(19374),se=ee(65602),pe=ee(34376),oe=ee(92310),ne=ee.n(oe),y=ee(75790),a=ee(59301),E=Object.defineProperty,b=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,de=(Ne,ot,Ze)=>ot in Ne?E(Ne,ot,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ne[ot]=Ze,ve=(Ne,ot)=>{for(var Ze in ot||(ot={}))re.call(ot,Ze)&&de(Ne,Ze,ot[Ze]);if(z)for(var Ze of z(ot))le.call(ot,Ze)&&de(Ne,Ze,ot[Ze]);return Ne},Se=(Ne,ot)=>b(Ne,x(ot));const{TextArea:Le}=fe.default,Ee={visible:!1,tabIndex:"0"},je={[ge.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[ge.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[ge.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var xe=(Ne=>(Ne[Ne.SET_VISIBLE=0]="SET_VISIBLE",Ne[Ne.SET_TABINDEX=1]="SET_TABINDEX",Ne))(xe||{});function lt(Ne,ot){switch(ot.type){case 0:return Se(ve({},Ne),{visible:ot.payload});case 1:return Se(ve({},Ne),{tabIndex:ot.payload});default:throw new Error}}function Ye({value:Ne,className:ot}){const Ze=(0,y.useIntl)(),[vt,Pt]=(0,te.useState)(!1),Mt=(0,te.useRef)(),At=(0,te.useRef)();return(0,te.useEffect)(()=>{vt&&(At.current.reset(),At.current.write((0,me.pp)(Ne||"")))},[Ne,vt]),(0,te.useEffect)(()=>{var et,Qe,Et,Kt;if(Mt.current){At.current=new pe.Terminal({fontSize:14,disableStdin:!0}),At.current.open(Mt.current);const bt=Mt.current.offsetWidth-14,Wt=((Kt=(Et=(Qe=(et=At.current)==null?void 0:et._core)==null?void 0:Qe._renderService)==null?void 0:Et.dimensions)==null?void 0:Kt.actualCellWidth)||9.5,$e=Math.ceil(bt/Wt);At.current.resize($e,8),Pt(!0)}},[]),a.createElement("div",{ref:Mt,className:ne()("XtermText-valueRef",ot)})}function ft(Ne){const ot=(0,y.useIntl)(),{status:Ze,error_msg:vt,output:Pt,input:Mt,expected_output:At,is_file:et,input_file_url:Qe,output_file_url:Et,expected_output_file_url:Kt}=Ne;let bt=null;const Wt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Ze){case ge.h.NOMATCH:bt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!et&&a.createElement(Ye,{className:"mb10",value:Mt}),et&&a.createElement("div",{style:Wt},a.createElement("a",{onClick:()=>(0,me.LR)(Qe,Mt)},Mt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!et&&a.createElement(Ye,{className:"mb10",value:Pt&&ie.Base64.decode(Pt)||""}),et&&a.createElement("div",{style:Wt},a.createElement("a",{onClick:()=>(0,me.LR)(Et,Pt)},Pt)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!et&&a.createElement(Ye,{className:"mb10",value:At&&ie.Base64.decode(At)||""}),et&&a.createElement("div",{style:Wt},a.createElement("a",{onClick:()=>(0,me.LR)(Kt,At)},At)));break;case ge.h.EXECUTEFAILURE:bt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!et&&a.createElement(ce.Z,{value:Mt,style:Wt}),et&&a.createElement("div",{style:Wt},a.createElement("a",{onClick:()=>(0,me.LR)(Qe,Mt)},Mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(vt)));break;case ge.h.COMPILEFAILURE:bt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!et&&a.createElement(ce.Z,{value:Mt,style:Wt}),et&&a.createElement("div",{style:Wt},a.createElement("a",{onClick:()=>(0,me.LR)(Qe,Mt)},Mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(vt)));break;case ge.h.PODFAILURE:bt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ge.h.TIMEOUT:bt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",bt," ")}function Me(Ne){const ot=(0,y.useIntl)(),{status:Ze,error_msg:vt,execute_time:Pt,output:Mt,input:At,expected_output:et,is_file:Qe,input_file_url:Et,output_file_url:Kt,expected_output_file_url:bt}=Ne;let Wt=null;switch(Ze){case ge.h.OK:Wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Pt,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(Mt)));break;case ge.h.NOMATCH:Wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,At)),a.createElement("p",null,ot.formatMessage({id:"questionBankAddQuestion.output",defaultMessage:"\u8F93\u51FA"}),"\uFF1A",Mt&&ie.Base64.decode(Mt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",et&&ie.Base64.decode(et)));break;case ge.h.EXECUTEFAILURE:Wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,At)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(vt)));break;case ge.h.COMPILEFAILURE:Wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,At)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(vt)));break;case ge.h.PODFAILURE:Wt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ge.h.TIMEOUT:Wt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Wt," ")}var He=({id:Ne,is_file:ot,input:Ze,debuging:vt,submitting:Pt,executingMessage:Mt,debugResult:At,onChangeInput:et,onDebugCode:Qe,onSubmitCode:Et})=>{const Kt=(0,y.useIntl)(),[bt,Wt]=(0,te.useReducer)(lt,Ee),{visible:$e,tabIndex:St}=bt;(0,te.useEffect)(()=>{Wt({type:0,payload:!1})},[Ne]);function xt(ct){let Ge=ct.target.id;Wt({type:1,payload:Ge})}function sn(){Wt({type:0,payload:!$e})}const Vt=(0,te.useMemo)(()=>{if(At){const{status:ct}=At;return a.createElement(a.Fragment,null,Me(At))}return null},[At]);function st(){Wt({type:0,payload:!0}),Wt({type:1,payload:"1"}),Qe()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${$e?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(se.Z,{leftTitle:Kt.formatMessage({id:"questionBankAddQuestion.customTestCase",defaultMessage:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"}),rightTitle:Kt.formatMessage({id:"questionBankAddQuestion.codeExecutionResult",defaultMessage:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"}),style:{height:240},leftNode:a.createElement(Le,{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:ot?"":Ze,onChange:et}),rightNode:vt?a.createElement(ue.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):At?Vt: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 ${$e?"up":""}`,onClick:sn},$e?a.createElement(ye.Z,null):a.createElement(he.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"},Kt.formatMessage({id:"testPaperBank.previousQuestion",defaultMessage:"\u4E0A\u4E00\u9898"})),a.createElement(be.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},Kt.formatMessage({id:"testPaperBank.nextQuestion",defaultMessage:"\u4E0B\u4E00\u9898"})),a.createElement(be.ZP,{className:"btn-green",type:"ghost",loading:vt,onClick:st},Kt.formatMessage({id:"questionBankAddQuestion.debugCode",defaultMessage:"\u8C03\u8BD5\u4EE3\u7801"})),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:Pt,disabled:Pt,onClick:()=>{Wt({type:0,payload:!1}),Et()}},Kt.formatMessage({id:"questionBankAddQuestion.evaluateAndSubmit",defaultMessage:"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"})))))}},44032:function(gt,Ve,ee){"use strict";ee.r(Ve),ee.d(Ve,{default:function(){return Te}});var te=ee(59301),fe=ee(10906),be=ee(76618),ye=ee(75790),he=ee(31797),ge=ee(8591),ie=ee(43418),ue=ee(71418),ce=ee(57809),me=ee(57554),se=ee(53365),pe=ee(49647),oe=ee(87169),ne=ee(43428),y=ee(36420),a=ee(44991),E=ee(89156),b=ee(18578),x=ee(59301),z=Object.defineProperty,re=Object.defineProperties,le=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Le=(Ce,we,Oe)=>we in Ce?z(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,Ee=(Ce,we)=>{for(var Oe in we||(we={}))ve.call(we,Oe)&&Le(Ce,Oe,we[Oe]);if(de)for(var Oe of de(we))Se.call(we,Oe)&&Le(Ce,Oe,we[Oe]);return Ce},je=(Ce,we)=>re(Ce,le(we));const xe={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var lt=(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))(lt||{});function Ye(Ce,we){switch(we.type){case 3:return je(Ee({},Ce),{showEditorSetting:we.payload});case 1:return je(Ee({},Ce),{theme:we.payload});case 0:return je(Ee({},Ce),{fontSize:we.payload});case 2:return je(Ee({},Ce),{tabToSpace:we.payload});default:throw new Error}}var ft=({isLoading:Ce,value:we,onChange:Oe,language:rt,onUpdateCode:We,ActionBarRender:dt=Je=>x.createElement(Me,{onShowCodeSetting:Je})})=>{const[Je,qe]=(0,te.useReducer)(Ye,xe),{theme:nt,fontSize:pt,showEditorSetting:Lt,tabToSpace:$t}=Je,jt=(0,te.useRef)(),Zt=(0,te.useRef)(),Nt={onFontSizeChange:Xt=>{qe({type:0,payload:Xt}),(0,E.t)("cmFontSize",Xt)},tabToSpace:$t,cmFontSize:pt,className:"oj",cmCodeMode:nt,onTabToSpace:Xt=>{qe({type:2,payload:Xt}),(0,E.t)("cmTabToSpace",Xt)},onCodeModeChange:Xt=>{qe({type:1,payload:Xt}),(0,E.t)("cmCodeMode",Xt)}};function nn(){qe({type:3,payload:!1})}function en(){qe({type:3,payload:!0})}const vn={value:we,language:rt,theme:nt,height:"calc(100% - 56px)",options:{fontSize:pt,insertSpaces:$t},onChange:Xt=>{Oe(Xt),Zt.current=Xt,clearTimeout(jt.current),jt.current=setTimeout(()=>{We(Zt.current)},1e4)},onEditBlur:Xt=>{Zt.current&&We(Zt.current)}};return x.createElement(te.Fragment,null,x.createElement("div",{className:"code-panel-container"},dt(en),!Ce&&x.createElement(y.ZP,Ee({},vn))),x.createElement(a.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Lt,onClose:nn},x.createElement(b.Z,Ee({},Nt)))))};function Me({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 He=ee(24334),Ne=ee(46401),ot=ee(61241),Ze=ee(92832),vt=ee(78241),Pt=ee(3113);const{TextArea:Mt}=Ze.default,At=5e3;var et=({callback:Ce,onCancel:we,notes:Oe})=>{const rt=(0,ye.useIntl)();function We(dt){Ce(dt)}return te.createElement(vt.default,{className:"note-form-panel",onFinish:We,initialValues:{notes:Oe}},te.createElement(vt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:At,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${At}`}]},te.createElement(Mt,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),te.createElement(vt.default.Item,{style:{textAlign:"right"}},te.createElement(Pt.ZP,{type:"ghost",onClick:we,style:{marginRight:10}}," ",rt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})," "),te.createElement(Pt.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"},Et={pagination:"pagination___npPu7",info:"info___aRH6C"},Kt=ee(1710),bt=ee(58421),Wt=ee(58617),$e=ee(81953),St=ee(24595),xt=ee(19374),sn=ee(66649),Vt=ee.n(sn);const{Column:st}=Kt.default;var ct=({submitResult:Ce,submitting:we,submitRecords:Oe,page:rt,onPageChange:We,topicId:dt})=>{const{status:Je,id:qe,input:nt,output:pt,expected_output:Lt,is_file:$t,input_file_url:jt,output_file_url:Zt,expected_output_file_url:Nt,error_msg:nn}=Ce||{},{records:en,records_count:vn}=Oe||{},Xt=(0,ye.useParams)();function Bn(){$t?(0,xt.vQ)(He.Base64.decode(nn)).then(()=>{ge.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,xt.vQ)(He.Base64.decode(pt)).then(()=>{ge.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return te.createElement(ue.Z,{spinning:we,tip:"\u8BC4\u6D4B\u4E2D...",indicator:te.createElement(Wt.Z,{style:{fontSize:24},spin:!0})},qe?te.createElement(te.Fragment,null,te.createElement("ul",{className:Et.info},te.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",te.createElement("span",{className:Je===St.h.OK?"c-green":"c-red"},ot.Im[Je])),te.createElement("li",{className:Et.error},te.createElement("a",{onClick:Bn},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",te.createElement($e.Z,null)," ")),te.createElement("li",null,te.createElement(ye.Link,{to:`/problems/${dt}/record-detail/${qe}?backId=${Xt==null?void 0:Xt.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),Je!==St.h.OK?te.createElement(te.Fragment,null,te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),te.createElement("pre",null,!$t&&nt,$t&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(jt,nt)},nt)),te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),te.createElement("pre",null,(Je===4||Je===5)&&He.Base64.decode(nn),Je!=4&&Je!=5&&($t?te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(Zt,pt)},pt):He.Base64.decode(pt))),te.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),te.createElement("pre",null,!$t&&He.Base64.decode(Lt),$t&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(Nt,Lt)},Lt))):null):null,(en==null?void 0:en.length)>0?te.createElement(Kt.default,{dataSource:en,rowKey:"id",pagination:!1},te.createElement(st,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(En,qt)=>te.createElement("span",null," ",Vt()(En).format("YYYY-MM-DD HH:mm:ss"))}),te.createElement(st,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(En,qt)=>{var fn;return te.createElement(ye.Link,{className:En===0?"c-green":"c-red",to:`/problems/${dt}/record-detail/${qt.id}?backId=${Xt==null?void 0:Xt.save_identifier}`},(fn=ot.Im[En])==null?void 0:fn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),te.createElement(st,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),te.createElement(st,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),te.createElement(st,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,vn>15?te.createElement(bt.Z,{className:Et.pagination,current:rt,pageSize:15,total:vn,onChange:We}):null)},Ge=ee(91570),Be=ee(12563),it=ee(81327),wt={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Ae=ee(12470),Re=ee(59301),Ke=({hack:Ce,onTriggerPraise:we,toDiscuss:Oe})=>{const rt=(0,ye.useIntl)(),{language:We,difficulty:dt,time_limit:Je,username:qe,user_path:nt,user_praise:pt,comments_count:Lt,praises_count:$t,description:jt,pass_count:Zt,submit_count:Nt}=Ce,nn=(0,ye.useLocation)();console.log(Ce.language,"language");const vn={1:{name:rt.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"}),color:"#52c41a"},2:{name:rt.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"}),color:"#faad14"},3:{name:rt.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"}),color:"#f5222d"}}[dt];return Re.createElement(Re.Fragment,null,Re.createElement("ul",{className:wt.info},Re.createElement("li",null,rt.formatMessage({id:"questionBankList.difficulty",defaultMessage:"\u96BE\u5EA6"}),"\uFF1A",Re.createElement(Be.default,{color:vn==null?void 0:vn.color},vn==null?void 0:vn.name)),Re.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Re.createElement("b",null,Je,"\u79D2"))),Re.createElement(Ae.Z,{value:jt,className:wt.desc}),Re.createElement("ul",{className:wt["commit-info"]},Re.createElement("li",null,Re.createElement(it.Z,{size:4},Re.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Re.createElement("b",null,Zt))),Re.createElement("li",null,Re.createElement(it.Z,{size:4},Re.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Re.createElement("b",null,Nt))," "),Re.createElement("li",{style:{flex:"1 0 0"}}),Re.createElement("li",null,Re.createElement(it.Z,{size:4},Re.createElement("i",{className:"iconfont icon-huifu1",onClick:Oe})," ",Re.createElement("b",null,Lt))," ")))},ke=ee(59195),ze=Object.defineProperty,at=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ft=(Ce,we,Oe)=>we in Ce?ze(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,Tt=(Ce,we)=>{for(var Oe in we||(we={}))It.call(we,Oe)&&Ft(Ce,Oe,we[Oe]);if(at)for(var Oe of at(we))Dt.call(we,Oe)&&Ft(Ce,Oe,we[Oe]);return Ce};const Gt=Ce=>React.createElement("svg",Tt({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 yt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",un=ee(98280);function ln(Ce){return(0,un.U2)("comments.json",Ce)}function Ct(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 Sn(Ce){return(0,un.v_)("comments.json",Ce)}function Gn(Ce){return(0,un.v_)(`comments/${Ce==null?void 0:Ce.id}/hidden.json`,Ce)}function Ln(Ce){return(0,un.IV)(`comments/${Ce==null?void 0:Ce.id}.json`)}var Wn=ee(74314),Zn=ee(53229);function Jn({author:Ce}){const we=(0,ye.useIntl)();return te.createElement("a",{href:`/users/${Ce.login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${pe.Z.IMG_SERVER}/images/${Ce.image_url}`,width:"50"}))}function Yn({data:Ce,index:we,parentDiscussIndex:Oe,user:rt,onSetActionType:We}){const dt=(0,ye.useIntl)(),{author:Je,can_delete:qe,content:nt,id:pt,time:Lt}=Ce;function $t(){We({id:pt,index:we,type:"delete-discuss",parentDiscussIndex:Oe,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const jt=rt.admin||qe||Je.user_id===rt.user_id;return te.createElement("div",{className:"discuss-item-container second-discuss "},te.createElement(Jn,{author:Je}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${Je.login}`,target:"_blank"},Je.name),te.createElement("span",{className:"grey"},Lt),te.createElement("div",{className:"btn-group",style:{marginBottom:0}},jt?te.createElement("a",{onClick:$t,title:dt.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})},te.createElement("i",{className:"iconfont icon-shanchu"})):null)),te.createElement(Ae.Z,{className:"discuss-content",value:nt})))}var mr=({user:Ce,data:we,index:Oe,onPlusDiscuss:rt,onSetActionType:We,activeDiscussIndex:dt,onReplyDiscuss:Je,onSetActiveDiscussIndex:qe})=>{const{content:nt,children:pt,hidden:Lt,id:$t,praise_count:jt,time:Zt,user_praise:Nt,can_delete:nn,author:en}=we;console.log(nn&&(!pt||pt.length==0),"children22");function vn(){qe($t)}function Xt(){rt($t,!Nt,Oe)}function Bn(){We({id:$t,index:Oe,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function En(){We({id:$t,index:Oe,params:{hidden:Lt?"0":"1"},type:"hidden-discuss",message:Lt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const qt=Ce.admin||Ce.user_id===en.user_id;return te.createElement("div",{className:"discuss-item-container",key:$t},te.createElement(Jn,{author:en}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${en.login}`,target:"_blank"}," ",en.name," "),te.createElement("span",{className:"grey"},Zt)),te.createElement(Ae.Z,{className:"discuss-content",value:nt}),pt&&pt.length>0?te.createElement("div",{className:"reply-discuss-container"},pt.map((fn,Rt)=>te.createElement(Yn,{key:fn.id,data:fn,index:Rt,user:Ce,onSetActionType:We,parentDiscussIndex:Oe}))):null,te.createElement("div",{className:"btn-group"},(0,Zn.Ny)()?te.createElement("a",{onClick:En,title:Lt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},te.createElement("i",{className:Lt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,nn&&(!pt||pt.length==0)?te.createElement("a",{onClick:Bn,title:intl.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})},te.createElement("i",{className:"iconfont icon-shanchu"})):null,te.createElement("a",{onClick:vn,title:"\u56DE\u590D"}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," "),te.createElement("a",{onClick:Xt,className:Nt?"c-orange":""},te.createElement("i",{className:Nt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),te.createElement("span",null,jt||""))),te.createElement(Wn.Z,{id:$t,activeDiscussIndex:dt,onReplyDiscuss:Je})))},ar=ee(98679),wn=ee(48551),Cr=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())}),jn=({user_praise:Ce,praise_count:we,praisePlus:Oe,onCreateDiscuss:rt,discuss_count:We})=>{const[dt,Je]=(0,te.useState)(!1),[qe,nt]=(0,te.useState)("");function pt(Zt){nt(Zt)}function Lt(){Je(!0)}function $t(){Je(!1)}function jt(){return Cr(this,null,function*(){rt(qe),nt(""),Je(!1)})}return te.createElement("div",{className:`dis-input-editor-container ${dt?"active":""} `},te.createElement("div",{className:dt?"text-area hide":"text-area"},te.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Lt}),te.createElement("a",{style:{alignItems:"center"}}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",We," "),te.createElement("a",{className:"c-light-black",onClick:Oe,style:{alignItems:"center"},title:Ce?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("i",{className:`mr3 ${Ce?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),we?te.createElement("span",null,we):"")),dt?te.createElement("div",{className:"input-mask",onClick:$t}):null,te.createElement("div",{className:dt?"md-container":"md-container hide"},te.createElement(wn.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:qe,height:240,onChange:pt}),te.createElement("div",{className:"tip-container",onClick:$t},te.createElement("a",{className:"btn-send",onClick:jt}," \u53D1\u9001 "))))},Tn=Object.defineProperty,or=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,qn=(Ce,we,Oe)=>we in Ce?Tn(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,sr=(Ce,we)=>{for(var Oe in we||(we={}))Rr.call(we,Oe)&&qn(Ce,Oe,we[Oe]);if(Nr)for(var Oe of Nr(we))Fr.call(we,Oe)&&qn(Ce,Oe,we[Oe]);return Ce},Qt=(Ce,we)=>or(Ce,Dr(we)),ae=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())});const _e={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Pe=(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))(Pe||{});function Ie(Ce,we){switch(we.type){case 6:return Qt(sr({},Ce),{loading:!0});case 0:return sr(sr({},Ce),we.payload);case 1:return sr(sr({},Ce),we.payload);case 4:return sr(sr({},Ce),we.payload);case 3:return sr(sr({},Ce),we.payload);case 5:return sr(sr({},Ce),we.payload);case 2:return sr(sr({},Ce),we.payload);default:throw new Error}}var Fe=({user:Ce,identifier:we,hack:Oe,onTriggerPraise:rt,setDiscussTotal:We})=>{const dt=(0,ye.useIntl)(),[Je,qe]=(0,te.useReducer)(Ie,_e),{loading:nt,page:pt,data:Lt,count:$t,actionType:jt,activeDiscussIndex:Zt}=Je;console.log("---",Je);const Nt=(0,te.useCallback)(()=>ae(void 0,null,function*(){qe({type:6});const Rt=yield ln({container_type:"Practice",container_identifier:we,limit:10,page:pt}),{comments:rn,disscuss_count:dn}=Rt;qe({type:0,payload:{data:rn,count:dn,loading:!1}}),We(dn)}),[pt,we]);(0,te.useEffect)(()=>{Nt()},[we,pt]);function nn(Rt){qe({type:5,payload:{page:Rt}})}function en(Rt){qe({type:4,payload:{actionType:Rt}})}function vn(Rt){qe(Zt===Rt?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Rt}})}function Xt(Rt,rn,dn){return ae(this,null,function*(){try{const An=yield Ct(Rt);Lt[dn].user_praise=rn,Lt[dn].praise_count=An.praise_count,qe({type:3,payload:{data:[...Lt]}})}catch(An){console.log(An)}})}function Bn(){return ae(this,null,function*(){const{id:Rt,params:rn,type:dn,index:An,parentDiscussIndex:Qn}=jt;dn==="hidden-discuss"&&(console.log(rn,"params"),yield Gn(sr({id:Rt,container_type:"Practice",container_identifier:we},rn)),Qn?Lt[Qn].children[An].hidden=rn.hidden==1:Lt[An].hidden=rn.hidden==1,qe({type:4,payload:{actionType:null,data:[...Lt]}})),dn==="delete-discuss"&&(yield Ln({id:Rt,container_type:"Practice",container_identifier:we}),qe({type:4,payload:{actionType:null}}),yield Nt())})}function En(){qe({type:4,payload:{actionType:null}})}function qt(Rt,rn){return ae(this,null,function*(){try{yield pn({container_type:"Practice",container_identifier:we,comments:{content:rn,parent_id:Rt}}),Nt()}catch(dn){console.log(dn)}})}function fn(Rt){return ae(this,null,function*(){qe({type:6}),yield Sn({comments:{content:Rt},container_type:"Practice",container_identifier:we}),Nt()})}return te.createElement(te.Fragment,null,te.createElement("div",{className:"discuss-panel"},Lt.length===0?te.createElement(Ge.Z,null):te.createElement(ue.Z,{spinning:nt},Lt.map((Rt,rn)=>te.createElement(mr,{onReplyDiscuss:qt,onPlusDiscuss:Xt,onSetActiveDiscussIndex:vn,onSetActionType:en,data:Rt,index:rn,user:Ce,activeDiscussIndex:Zt}))),$t>10?te.createElement("div",{className:"pagination-container mt10 mb10"},te.createElement(bt.Z,{showQuickJumper:!0,onChange:nn,current:pt,total:$t,showTotal:Rt=>te.createElement("span",{style:{color:"#656F87"}},dt.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},Rt),"\u6761\u6570\u636E")})):null),te.createElement(jn,{user_praise:Oe.user_praise,praise_count:Oe.praises_count,praisePlus:rt,discuss_count:Oe.comments_count,onCreateDiscuss:fn}),te.createElement(a.Z,null,te.createElement(ie.default,{centered:!0,title:dt.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),open:!!jt,onOk:Bn,onCancel:En},te.createElement("p",null,jt?jt.message:"")),te.createElement(ar.Z,null)))},tt={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"},ht={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"},on=Object.defineProperty,zt=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Bt=(Ce,we,Oe)=>we in Ce?on(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,ut=(Ce,we)=>{for(var Oe in we||(we={}))_t.call(we,Oe)&&Bt(Ce,Oe,we[Oe]);if(zt)for(var Oe of zt(we))mt.call(we,Oe)&&Bt(Ce,Oe,we[Oe]);return Ce};const Ht=Ce=>React.createElement("svg",ut({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 Yt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Ot=Object.defineProperty,kt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,cn=Object.prototype.propertyIsEnumerable,Mn=(Ce,we,Oe)=>we in Ce?Ot(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,zn=(Ce,we)=>{for(var Oe in we||(we={}))Jt.call(we,Oe)&&Mn(Ce,Oe,we[Oe]);if(kt)for(var Oe of kt(we))cn.call(we,Oe)&&Mn(Ce,Oe,we[Oe]);return Ce};const Vn=Ce=>React.createElement("svg",zn({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 hn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Nn=Object.defineProperty,lr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,ur=(Ce,we,Oe)=>we in Ce?Nn(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,to=(Ce,we)=>{for(var Oe in we||(we={}))ir.call(we,Oe)&&ur(Ce,Oe,we[Oe]);if(lr)for(var Oe of lr(we))Ut.call(we,Oe)&&ur(Ce,Oe,we[Oe]);return Ce};const Ar=Ce=>React.createElement("svg",to({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 Lr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",Wr=Object.defineProperty,an=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,_n=(Ce,we,Oe)=>we in Ce?Wr(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,_r=(Ce,we)=>{for(var Oe in we||(we={}))bn.call(we,Oe)&&_n(Ce,Oe,we[Oe]);if(an)for(var Oe of an(we))Pn.call(we,Oe)&&_n(Ce,Oe,we[Oe]);return Ce};const pr=Ce=>React.createElement("svg",_r({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 Or="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Kr=Object.defineProperty,oo=Object.getOwnPropertySymbols,uo=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,ho=(Ce,we,Oe)=>we in Ce?Kr(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,Mo=(Ce,we)=>{for(var Oe in we||(we={}))uo.call(we,Oe)&&ho(Ce,Oe,we[Oe]);if(oo)for(var Oe of oo(we))bo.call(we,Oe)&&ho(Ce,Oe,we[Oe]);return Ce};const Eo=Ce=>React.createElement("svg",Mo({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 So="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Do=({style:Ce={},onClick:we,onAssist:Oe,onHide:rt,data:We,active:dt,showLine:Je})=>te.createElement(te.Fragment,null,te.createElement("div",{className:dt===(We==null?void 0:We.id)?`${ht.list} ${ht.active}`:ht.list,style:Ce,onClick:()=>we(We)},(We==null?void 0:We.video)&&te.createElement("div",{className:ht.left},te.createElement("img",{src:We==null?void 0:We.video_cover}),te.createElement("div",null,te.createElement("img",{src:Yt}),te.createElement("span",null,We==null?void 0:We.video_duration)),te.createElement("div",{className:ht.mask})),te.createElement("div",{className:ht.right},te.createElement("div",{className:ht.name},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+(We==null?void 0:We.image_url),width:30,height:30}),te.createElement("div",{title:We==null?void 0:We.name,className:ht.title},We==null?void 0:We.name),(We==null?void 0:We.is_authority)&&te.createElement("div",{className:ht.b},"\u5B98\u65B9"),(We==null?void 0:We.is_excellent)&&te.createElement("div",{className:ht.a},"\u7CBE\u9009")),te.createElement("div",{className:ht.des},te.createElement(Ae.Z,{showLines:2,showTextOnly:!0,value:(We==null?void 0:We.content)||"\u6682\u65E0\u5185\u5BB9"})),te.createElement("div",{className:ht.tag},te.createElement("span",{className:"current",onClick:qe=>{qe.stopPropagation(),Oe(We)}},te.createElement("img",{src:We!=null&&We.user_liker?Lr:hn}),te.createElement("span",{style:{color:We!=null&&We.user_liker?"#0152d9":"#656f87"}},We==null?void 0:We.praises_count)),te.createElement("span",null,te.createElement("img",{src:Or}),te.createElement("span",null,We==null?void 0:We.discusses_count)),te.createElement("span",null,te.createElement("img",{src:So}),te.createElement("span",null,We==null?void 0:We.viewed_count)),(0,Zn.Ny)()&&te.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:qe=>{qe.stopPropagation(),rt(We)}},We!=null&&We.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),Je&&te.createElement("div",{className:ht.line})),Er={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"},wo=ee(6848),Vr=Object.defineProperty,Jr=Object.getOwnPropertySymbols,xo=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,jr=(Ce,we,Oe)=>we in Ce?Vr(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,Go=(Ce,we)=>{for(var Oe in we||(we={}))xo.call(we,Oe)&&jr(Ce,Oe,we[Oe]);if(Jr)for(var Oe of Jr(we))Ao.call(we,Oe)&&jr(Ce,Oe,we[Oe]);return Ce};const io=Ce=>React.createElement("svg",Go({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 Uo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Io=Object.defineProperty,Yo=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,Co=(Ce,we,Oe)=>we in Ce?Io(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,mo=(Ce,we)=>{for(var Oe in we||(we={}))Jo.call(we,Oe)&&Co(Ce,Oe,we[Oe]);if(Yo)for(var Oe of Yo(we))No.call(we,Oe)&&Co(Ce,Oe,we[Oe]);return Ce};const qo=Ce=>React.createElement("svg",mo({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==",ei=Object.defineProperty,ni=Object.getOwnPropertySymbols,ri=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,Un=(Ce,we,Oe)=>we in Ce?ei(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,Cn=(Ce,we)=>{for(var Oe in we||(we={}))ri.call(we,Oe)&&Un(Ce,Oe,we[Oe]);if(ni)for(var Oe of ni(we))Si.call(we,Oe)&&Un(Ce,Oe,we[Oe]);return Ce};const In=Ce=>React.createElement("svg",Cn({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 Dn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",vr=ee(96976),Br=Object.defineProperty,ao=Object.defineProperties,so=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,fo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,_o=(Ce,we,Oe)=>we in Ce?Br(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,oi=(Ce,we)=>{for(var Oe in we||(we={}))fo.call(we,Oe)&&_o(Ce,Oe,we[Oe]);if(lo)for(var Oe of lo(we))$o.call(we,Oe)&&_o(Ce,Oe,we[Oe]);return Ce},qr=(Ce,we)=>ao(Ce,so(we)),cr=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())}),yo=({onClose:Ce,onOk:we,identifier:Oe,active:rt})=>{var We;const dt=(0,ye.useIntl)(),[Je]=vt.default.useForm(),[qe,nt]=(0,te.useState)({}),[pt,Lt]=(0,te.useState)(!1),[$t,jt]=(0,te.useState)(!1),[Zt,Nt]=(0,te.useState)([]),nn=(0,Zn.eY)(),en=(0,ye.useParams)(),vn=(0,te.useRef)();(0,te.useEffect)(()=>{rt&&Xt()},[rt]);const Xt=()=>cr(void 0,null,function*(){var gn,mn,On,rr,Xn,zr,er,Zr,Sr,Ir;const hr=yield(0,me.M3)(Oe,{active:rt});if((hr==null?void 0:hr.status)===0){const Kn={name:(gn=hr==null?void 0:hr.data)==null?void 0:gn.name,content:(mn=hr==null?void 0:hr.data)==null?void 0:mn.content};Je.setFieldsValue(Kn),nt(Kn),(rr=(On=hr==null?void 0:hr.data)==null?void 0:On.videos)!=null&&rr[0]&&Nt([{video_id:(er=(zr=(Xn=hr==null?void 0:hr.data)==null?void 0:Xn.videos)==null?void 0:zr[0])==null?void 0:er.video_id,name:(Ir=(Sr=(Zr=hr==null?void 0:hr.data)==null?void 0:Zr.videos)==null?void 0:Sr[0])==null?void 0:Ir.title,loaded:100}])}}),Bn=(gn,mn)=>{nt(oi({},mn))},En=gn=>cr(void 0,null,function*(){const mn={videos:Zt,articles:gn};jt(!0);let On;rt?(mn.active=rt,On=yield(0,me.gu)(Oe,mn)):On=yield(0,me.bx)(Oe,mn),(On==null?void 0:On.status)===0&&(console.log(rt||(On==null?void 0:On.id),44),we(rt||(On==null?void 0:On.id))),jt(!1)}),qt=(gn,mn)=>{ie.default.confirm({title:dt.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),centered:!0,okText:dt.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:dt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),content:te.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",mn?dt.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"}):dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.cancelUpload",defaultMessage:"\u53D6\u6D88\u4E0A\u4F20"}),"\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{mn?Nt([]):(vn.current.cancel(),Nt([]))}})},fn=()=>te.createElement(vr.Z,qr(oi({},tn),{ref:vn}),te.createElement("div",{className:Er.main},te.createElement("img",{src:Uo,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),Rt=gn=>te.createElement("div",{className:Er.mainLoading},te.createElement("div",{className:Er.proWarp},te.createElement("div",{className:Er.pro},te.createElement("div",{style:{width:gn}})),te.createElement("span",null,gn||0,"%")),te.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),te.createElement("div",{className:Er.tip},te.createElement(wo.Z,{getPopupContainer:mn=>mn.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001",dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F"}),te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadContentAgreement",defaultMessage:"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"})),"\uFF0C",dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"}),"\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:Dn,alt:""})))),rn=gn=>te.createElement("div",{className:Er.mainSucceed},te.createElement("img",{src:Xo,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),te.createElement("div",{className:Er.tip},te.createElement(wo.Z,{getPopupContainer:mn=>mn.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001",dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F"}),te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadContentAgreement",defaultMessage:"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"})),"\uFF0C",dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"}),"\uFF1B"),te.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),te.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},te.createElement("img",{src:Dn,alt:""}))),te.createElement("div",{className:Er.del,onClick:()=>qt(gn.name,gn.loaded==100)},te.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),dn=()=>te.createElement(te.Fragment,null,Zt==null?void 0:Zt.map((gn,mn)=>te.createElement(te.Fragment,{key:mn},gn.loaded==100?rn(gn):Rt(gn.loaded)))),An=()=>{ie.default.confirm({centered:!0,width:500,okText:dt.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:dt.formatMessage({id:"classrooms.cancel",defaultMessage:"\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})},tn={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:gn=>{const On=gn.name.toLowerCase();return On&&On.indexOf(".avi")==-1&&On.indexOf(".flv")==-1&&On.indexOf(".f4v")==-1&&On.indexOf(".m4v")==-1&&On.indexOf(".mov")==-1&&On.indexOf(".mp4")==-1&&On.indexOf(".rmvb")==-1&&On.indexOf(".swf")==-1&&On.indexOf(".webm")==-1&&On.indexOf(".wmv")==-1?(ge.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):gn.size>1024*1024*1024?(ge.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Zt!=null&&Zt.find(rr=>rr.name===gn.name)?(ge.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=>{Nt([{name:gn.filename,loaded:0}])},onComplete:gn=>{Nt([{name:gn.filename,loaded:gn.percent,video_id:gn.id}])},onError:()=>{Nt([])},onProgress:gn=>{Nt([{name:gn.filename,loaded:gn.percent}])},chunkSize:1024*1024*2,options:{user_id:(We=nn==null?void 0:nn.userInfo)==null?void 0:We.user_id}},yn=Zt==null?void 0:Zt.length;return te.createElement("div",{className:Er.listForm},te.createElement("header",null,rt?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),te.createElement("section",{className:Er.scroll,id:"sss"},te.createElement("div",{className:Er.formWrap}," ",te.createElement(vt.default,{form:Je,scrollToFirstError:!0,layout:"vertical",onValuesChange:Bn,onFinish:En},te.createElement(vt.default.Item,{name:"name",label:dt.formatMessage({id:"classroomUploadVideoResourcesCheckIn.title",defaultMessage:"\u6807\u9898"})+":",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},te.createElement(Ze.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})),te.createElement(vt.default.Item,{name:"content",label:"\u5185\u5BB9:"},te.createElement(wn.Z,{defaultValue:qe.content||"",watch:!0})))),te.createElement("div",{className:Er.upload},yn?dn():fn())),te.createElement("div",{className:Er.btns},te.createElement(Pt.ZP,{onClick:An,type:"primary",ghost:!0},"\u5173\u95ED"),te.createElement(Pt.ZP,{loading:$t,disabled:pt,onClick:()=>Je.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Gr={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"},Ur=ee(61621),ai=Object.defineProperty,ti=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,ci=(Ce,we,Oe)=>we in Ce?ai(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,Bo=(Ce,we)=>{for(var Oe in we||(we={}))_i.call(we,Oe)&&ci(Ce,Oe,we[Oe]);if(ti)for(var Oe of ti(we))Di.call(we,Oe)&&ci(Ce,Oe,we[Oe]);return Ce};const Hi=Ce=>React.createElement("svg",Bo({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 Ai="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",Ii=Object.defineProperty,ta=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,wa=Object.prototype.propertyIsEnumerable,yi=(Ce,we,Oe)=>we in Ce?Ii(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,xa=(Ce,we)=>{for(var Oe in we||(we={}))us.call(we,Oe)&&yi(Ce,Oe,we[Oe]);if(ta)for(var Oe of ta(we))wa.call(we,Oe)&&yi(Ce,Oe,we[Oe]);return Ce};const La=Ce=>React.createElement("svg",xa({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 na="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Ma=Object.defineProperty,ra=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,oa=Object.prototype.propertyIsEnumerable,Ui=(Ce,we,Oe)=>we in Ce?Ma(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,ia=(Ce,we)=>{for(var Oe in we||(we={}))Gi.call(we,Oe)&&Ui(Ce,Oe,we[Oe]);if(ra)for(var Oe of ra(we))oa.call(we,Oe)&&Ui(Ce,Oe,we[Oe]);return Ce};const Da=Ce=>React.createElement("svg",ia({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 aa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",$i={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"},sa=ee(95237),Bi=ee(43604),di={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"},la=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())});const ca=({id:Ce,cb:we})=>{const[Oe,rt]=(0,te.useState)("");return te.createElement("aside",{className:"mt10"},te.createElement(wn.Z,{defaultValue:Oe,id:"writeForumsReviewId",onChange:We=>{rt(We)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(sa.Z,null,te.createElement(Bi.Z,{flex:"1"}),te.createElement(Bi.Z,null,te.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>la(void 0,null,function*(){Oe===""?ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):we(Ce,Oe)})},"\u53D1\u9001"))))},Aa=({data:Ce})=>{var we;return te.createElement("div",{className:di.thirdlyLevelDiscuss},te.createElement("span",{className:"c-grey-333"},te.createElement("span",{className:"font 14 c-light-primary"},(we=Ce==null?void 0:Ce.author)==null?void 0:we.name),"@",te.createElement("span",{className:"font 14 c-light-primary"},Ce==null?void 0:Ce.parent_name),":"),te.createElement(Ae.Z,{value:Ce==null?void 0:Ce.content}))},Ia=({data:Ce,onReplyDiscuss:we,thirdlyReply:Oe,setThirdlyReply:rt})=>{var We,dt,Je,qe;const nt=(0,Zn.eY)();return console.log(nt,"user"),te.createElement("div",{className:di.list},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+((We=Ce==null?void 0:Ce.author)==null?void 0:We.image_url)}),te.createElement("div",{className:di.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333"},(dt=Ce==null?void 0:Ce.author)==null?void 0:dt.name),(nt==null?void 0:nt.login)!==((Je=Ce==null?void 0:Ce.author)==null?void 0:Je.login)&&te.createElement("span",{onClick:()=>rt(Ce==null?void 0:Ce.id),className:"c-grey-999 current",style:{float:"right"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),te.createElement("span",null,"\u56DE\u590D"))),te.createElement(Ae.Z,{value:Ce==null?void 0:Ce.content}),(qe=Ce==null?void 0:Ce.children)==null?void 0:qe.map(pt=>te.createElement(Aa,{key:pt.id,data:pt})),Oe===(Ce==null?void 0:Ce.id)&&te.createElement("div",null,te.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:we}),te.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>rt(null),className:"c-light-primary current"},te.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),te.createElement("div",{className:di.line})))};var da=({data:Ce,onReplyDiscuss:we,secondReply:Oe,setSecondReply:rt,thirdlyReply:We,setThirdlyReply:dt,onPlusDiscuss:Je})=>{var qe,nt,pt,Lt;const[$t,jt]=(0,te.useState)(!1);return console.log(Ce,"data"),te.createElement("div",{className:di.discussItem},te.createElement("div",{className:di.list},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+((qe=Ce==null?void 0:Ce.author)==null?void 0:qe.image_url)}),te.createElement("div",{className:di.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333 mr30"},(nt=Ce==null?void 0:Ce.author)==null?void 0:nt.name),te.createElement("span",{className:"c-grey-999"},Ce==null?void 0:Ce.time)),te.createElement(Ae.Z,{value:Ce==null?void 0:Ce.content}),te.createElement("div",{className:di.btns},te.createElement("div",{onClick:()=>Je(Ce==null?void 0:Ce.id),className:Ce!=null&&Ce.user_praise?"c-light-primary":"c-grey-999"},te.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),te.createElement("span",null,Ce==null?void 0:Ce.praise_count)),te.createElement("div",{onClick:()=>{var Zt;((Zt=Ce==null?void 0:Ce.children)==null?void 0:Zt.length)!==0&&(rt(null),jt(!$t))},style:{color:$t?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),te.createElement("span",null,$t?"\u6536\u8D77\u8BC4\u8BBA":(pt=Ce==null?void 0:Ce.children)==null?void 0:pt.length)),te.createElement("div",{onClick:()=>{jt(!1),rt(Oe===(Ce==null?void 0:Ce.id)?null:Ce==null?void 0:Ce.id)},style:{color:Oe===(Ce==null?void 0:Ce.id)?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3"}),te.createElement("span",null,Oe===(Ce==null?void 0:Ce.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Oe===(Ce==null?void 0:Ce.id)&&te.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:(Zt,Nt)=>{we(Zt,Nt),jt(!0)}}),$t&&te.createElement("div",{className:di.secondLevelDiscuss},(Lt=Ce==null?void 0:Ce.children)==null?void 0:Lt.map(Zt=>te.createElement(Ia,{thirdlyReply:We,setThirdlyReply:dt,key:Zt.id,data:Zt,onReplyDiscuss:we}))))))},Ci=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())}),Oa=({identifier:Ce,active:we,onOk:Oe})=>{const rt=(0,ye.useIntl)(),[We,dt]=(0,te.useState)(""),[Je,qe]=(0,te.useState)(1),[nt,pt]=(0,te.useState)([]),[Lt,$t]=(0,te.useState)(0),[jt,Zt]=(0,te.useState)(null),[Nt,nn]=(0,te.useState)(null);(0,te.useEffect)(()=>{en(1),qe(1)},[we]);const en=qt=>Ci(void 0,null,function*(){const fn=yield ln({container_type:"QuestionSolutionArticle",container_identifier:we,limit:5,page:qt});fn!=null&&fn.comments&&(pt((fn==null?void 0:fn.comments)||[]),qe(qt),$t(fn==null?void 0:fn.disscuss_count))}),vn=()=>Ci(void 0,null,function*(){if(We===""){ge.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const qt=yield Sn({comments:{content:We},container_type:"QuestionSolutionArticle",container_identifier:we});qt!=null&&qt.discuss&&(dt(""),en(Je),Oe())}),Xt=(qt,fn,Rt)=>Ci(void 0,null,function*(){const rn=yield pn({container_type:"QuestionSolutionArticle",container_identifier:we,comments:{content:fn,parent_id:qt}});Zt(null),nn(null),en(Je)}),Bn=qt=>Ci(void 0,null,function*(){const fn=yield Ct(qt);en(Je)}),En=qt=>{qe(qt),en(qt)};return te.createElement("div",{className:$i.discuss},te.createElement("aside",{className:$i.reply,style:{borderWidth:Lt?1:0}},te.createElement(wn.Z,{defaultValue:We,id:"writeForumsReviewId",onChange:qt=>{dt(qt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement(sa.Z,null,te.createElement(Bi.Z,{flex:"1"}),te.createElement(Bi.Z,null,te.createElement(Pt.ZP,{type:"primary",size:"middle",onClick:()=>vn()},"\u53D1\u9001")))),nt==null?void 0:nt.map(qt=>te.createElement(da,{secondReply:jt,setSecondReply:Zt,thirdlyReply:Nt,setThirdlyReply:nn,key:qt.id,data:qt,onReplyDiscuss:Xt,onPlusDiscuss:Bn})),te.createElement(bt.Z,{className:$i.pagination,showTotal:qt=>te.createElement("span",{style:{color:"#656F87"}},rt.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},qt),"\u6761\u6570\u636E"),current:Je,onChange:En,total:Lt,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},fi=ee(38436),Zi=Object.defineProperty,ki=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable,Ki=(Ce,we,Oe)=>we in Ce?Zi(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,hs=(Ce,we)=>{for(var Oe in we||(we={}))Wi.call(we,Oe)&&Ki(Ce,Oe,we[Oe]);if(ki)for(var Oe of ki(we))ua.call(we,Oe)&&Ki(Ce,Oe,we[Oe]);return Ce},Vi=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())}),Ra=({active:Ce,identifier:we,onAssist:Oe,onEdit:rt,onArticlesSkip:We,onClose:dt,onOk:Je,onDelete:qe,detailsIndex:nt,btnShowStatus:pt})=>{var Lt,$t,jt,Zt,Nt,nn,en,vn,Xt,Bn;const En=(0,ye.useIntl)(),[qt,fn]=(0,te.useState)(!0),[Rt,rn]=(0,te.useState)({});(0,te.useEffect)(()=>{Ce&&dn()},[Ce,nt]);const dn=(gn=!0)=>Vi(void 0,null,function*(){gn&&fn(!0);const mn=yield(0,me.wO)(we,{active:Ce});(mn==null?void 0:mn.status)===0&&rn((mn==null?void 0:mn.data)||{}),fn(!1)}),An=gn=>Vi(void 0,null,function*(){const mn=yield(0,me.qe)(we,hs({active:Ce},gn));(mn==null?void 0:mn.status)===0&&(dn(!1),Je())}),Qn=gn=>Vi(void 0,null,function*(){(yield(0,me.Rg)(we,{active:gn==null?void 0:gn.id})).status===0&&(dn(!1),Je())}),tn=gn=>{ie.default.confirm({centered:!0,width:500,okText:En.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:En.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:En.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>qe(gn)})},yn=()=>{dn(!1),Je()};return te.createElement("div",{className:Gr.listDetails},te.createElement(Ur.Z,{className:"pt20 pl20 pr20",loading:qt,active:!0,paragraph:{rows:5}},te.createElement("div",{className:Gr.head},te.createElement("div",{className:Gr.name},te.createElement("div",{title:Rt==null?void 0:Rt.name,className:Gr.title},Rt==null?void 0:Rt.name),(Rt==null?void 0:Rt.is_authority)&&te.createElement("div",{className:Gr.b},"\u5B98\u65B9"),(Rt==null?void 0:Rt.is_excellent)&&te.createElement("div",{className:Gr.a},"\u7CBE\u9009")),te.createElement("div",{className:Gr.tag},te.createElement("img",{src:pe.Z.IMG_SERVER+"/images/"+(Rt==null?void 0:Rt.image_url)}),te.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Rt==null?void 0:Rt.username),te.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Vt()(Rt==null?void 0:Rt.created_at).format("YYYY-MM-DD")),te.createElement("span",null,te.createElement("img",{src:hn}),te.createElement("span",null,Rt==null?void 0:Rt.praises_count)),te.createElement("span",null,te.createElement("img",{src:Or}),te.createElement("span",null,Rt==null?void 0:Rt.discusses_count)),te.createElement("span",null,te.createElement("img",{src:So}),te.createElement("span",null,Rt==null?void 0:Rt.viewed_count)),te.createElement("div",{className:Gr.btn},((0,Zn.Ny)()||(Rt==null?void 0:Rt.is_self))&&te.createElement(te.Fragment,null,te.createElement(Pt.ZP,{onClick:()=>tn(Rt),type:"primary",ghost:!0},En.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})),te.createElement(Pt.ZP,{onClick:()=>rt(Rt),type:"primary",ghost:!0},En.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"}))),(0,Zn.Ny)()&&te.createElement(Pt.ZP,{onClick:()=>An({is_authority:!(Rt!=null&&Rt.is_authority)}),type:"primary"},te.createElement("img",{src:na}),Rt!=null&&Rt.is_authority?En.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}):"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Zn.Ny)()&&te.createElement(Pt.ZP,{onClick:()=>An({is_excellent:!(Rt!=null&&Rt.is_excellent)}),type:"primary"},te.createElement("img",{src:Ai}),Rt!=null&&Rt.is_excellent?En.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}):"\u8BBE\u4E3A","\u7CBE\u9009")))),te.createElement("div",{className:Gr.scroll},(($t=(Lt=Rt==null?void 0:Rt.videos)==null?void 0:Lt[0])==null?void 0:$t.id)&&te.createElement("div",{className:Gr.video},te.createElement(ue.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Zt=(jt=Rt==null?void 0:Rt.videos)==null?void 0:jt[0])!=null&&Zt.transcoded)},te.createElement(fi.Z,{poster:(nn=(Nt=Rt==null?void 0:Rt.videos)==null?void 0:Nt[0])==null?void 0:nn.cover_url,src:((vn=(en=Rt==null?void 0:Rt.videos)==null?void 0:en[0])==null?void 0:vn.play_url)||"",videoId:(Bn=(Xt=Rt==null?void 0:Rt.videos)==null?void 0:Xt[0])==null?void 0:Bn.id,logWatchHistory:()=>{}}))),te.createElement(Ae.Z,{className:Gr.html,value:(Rt==null?void 0:Rt.content)||""}),te.createElement("div",{onClick:()=>Qn(Rt),className:Gr.g},te.createElement("img",{className:"mr10",src:(Rt!=null&&Rt.user_liker,aa)}),te.createElement("span",null,Rt==null?void 0:Rt.praises_count)),te.createElement(Oa,{onOk:yn,active:Ce,identifier:we})),te.createElement("div",{className:Gr.btns},te.createElement(Pt.ZP,{onClick:()=>dt(),type:"primary",ghost:!0},"\u5173\u95ED"),pt[0]&&te.createElement(Pt.ZP,{onClick:gn=>We(gn,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),pt[1]&&te.createElement(Pt.ZP,{onClick:gn=>We(gn,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},Ta=Object.defineProperty,Oi=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,Fi=Object.prototype.propertyIsEnumerable,Xi=(Ce,we,Oe)=>we in Ce?Ta(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,Na=(Ce,we)=>{for(var Oe in we||(we={}))Yi.call(we,Oe)&&Xi(Ce,Oe,we[Oe]);if(Oi)for(var Oe of Oi(we))Fi.call(we,Oe)&&Xi(Ce,Oe,we[Oe]);return Ce};const ga=Ce=>React.createElement("svg",Na({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 fa="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",ha=ee(59477),ma=ee(89489),Qi=Object.defineProperty,Ba=Object.defineProperties,pa=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,ka=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable,Ei=(Ce,we,Oe)=>we in Ce?Qi(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,ko=(Ce,we)=>{for(var Oe in we||(we={}))ka.call(we,Oe)&&Ei(Ce,Oe,we[Oe]);if(va)for(var Oe of va(we))Fa.call(we,Oe)&&Ei(Ce,Oe,we[Oe]);return Ce},ja=(Ce,we)=>Ba(Ce,pa(we)),wi=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())}),za=({identifier:Ce,tabStatus:we,setFilterListTotal:Oe,setListStatus:rt})=>{const We=(0,ye.useIntl)(),dt={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[Je,qe]=(0,te.useState)(ko({},dt));const[nt,pt]=(0,te.useState)(!1),[Lt,$t]=(0,te.useState)(0),[jt,Zt]=(0,te.useState)(1),[Nt,nn]=(0,te.useState)(null),[en,vn]=(0,te.useState)([]),[Xt,Bn]=(0,te.useState)([!0,!0]),[En,qt]=(0,te.useState)(0),fn=(0,te.useRef)(null);(0,te.useEffect)(()=>{On()},[we]),(0,te.useEffect)(()=>{Rt()},[Nt]),(0,te.useEffect)(()=>{dn(ko({},dt)),On()},[Ce]),(0,te.useEffect)(()=>(window.addEventListener("resize",rn),rt(En),()=>{window.removeEventListener("resize",rn)}),[En]);const Rt=()=>wi(void 0,null,function*(){if(!Nt){Bn([!0,!0]);return}const Kn=[!0,!0],xn=en==null?void 0:en.findIndex(Fn=>Fn.id===Nt);xn===0&&Je.page===1&&(Kn[0]=!1),(Je.page-1)*Je.limit+(xn+1)===Je.total&&(Kn[1]=!1),Bn(Kn)}),rn=()=>{var Kn;if(En){const xn=window.innerWidth-((Kn=fn.current)==null?void 0:Kn.clientWidth);$t(xn)}},dn=Kn=>wi(void 0,null,function*(){var xn,Fn,$n;pt(!0);const Rn=yield(0,me.WH)(Ce,Kn);return(Rn==null?void 0:Rn.status)===0&&(vn(((xn=Rn==null?void 0:Rn.data)==null?void 0:xn.articles)||[]),qe(ja(ko({},Kn),{total:(Fn=Rn==null?void 0:Rn.data)==null?void 0:Fn.articles_count})),Oe(($n=Rn==null?void 0:Rn.data)==null?void 0:$n.articles_count)),pt(!1),Rn}),An=()=>{(Je==null?void 0:Je.sort_direction)===null?Je.sort_direction="asc":(Je==null?void 0:Je.sort_direction)==="asc"?Je.sort_direction="desc":(Je==null?void 0:Je.sort_direction)==="desc"&&(Je.sort_direction=null),Je.page=1,On(),qe(ko({},Je)),dn(Je)},Qn=()=>{Je.page=1,Je.search=Je==null?void 0:Je.save_search,On(),qe(ko({},Je)),dn(Je)},tn=()=>{var Kn;const xn=document.getElementsByClassName("btn-resize");xn[0].style.visibility="hidden";const Fn=window.innerWidth-((Kn=fn.current)==null?void 0:Kn.clientWidth);$t(Fn)},yn=()=>{tn(),qt(1)},gn=Kn=>{tn(),nn(Kn==null?void 0:Kn.id),qt(3)},mn=Kn=>{tn(),nn(Kn==null?void 0:Kn.id),qt(2)},On=()=>{const Kn=document.getElementsByClassName("btn-resize");Kn[0].style.visibility="visible",$t(0),qt(0),nn(null)},rr=Kn=>{qt(3),nn(Kn),Je.page=1,qe(ko({},Je)),dn(Je)},Xn=Kn=>{qt(3),nn(Kn),qe(ko({},Je)),dn(Je)},zr=Kn=>{qe(ko({},Je)),dn(Je)},er=Kn=>wi(void 0,null,function*(){(yield(0,me.Rg)(Ce,{active:Kn==null?void 0:Kn.id})).status===0&&(dn(Je),Zt(jt+1))}),Zr=Kn=>wi(void 0,null,function*(){(yield(0,me.rL)(Ce,{active:Kn==null?void 0:Kn.id})).status===0&&(dn(Je),Zt(jt+1))}),Sr=Kn=>wi(void 0,null,function*(){(yield(0,me.de)(Ce,{active:Kn==null?void 0:Kn.id})).status===0&&(On(),dn(Je))}),Ir=Kn=>{Je.page=Kn,qe(ko({},Je)),dn(Je)},hr=(Kn,xn)=>wi(void 0,null,function*(){var Fn,$n,Rn,Pr;const kn=en==null?void 0:en.findIndex(Hn=>Hn.id===Nt);if(console.log(kn,xn,22),xn==="prev"){if(kn===void 0){ge.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(kn===0){if(Je.page===1){ge.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Je.page!==1){Je.page=Je.page-1,qe(ko({},Je));const Hn=yield dn(Je);if((Hn==null?void 0:Hn.status)===0){const gr=(Rn=Hn==null?void 0:Hn.data)==null?void 0:Rn.articles[(($n=(Fn=Hn==null?void 0:Hn.data)==null?void 0:Fn.articles)==null?void 0:$n.length)-1];nn(gr==null?void 0:gr.id),console.log(Kn.target,555)}}}else{const Hn=en[kn-1];nn(Hn==null?void 0:Hn.id)}}if(xn==="next"){if(kn===void 0){ge.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((Je.page-1)*Je.limit+(kn+1)===Je.total){ge.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(kn+1===Je.limit){Je.page=Je.page+1,qe(ko({},Je));const Hn=yield dn(Je);if((Hn==null?void 0:Hn.status)===0){const gr=(Pr=Hn==null?void 0:Hn.data)==null?void 0:Pr.articles[0];nn(gr==null?void 0:gr.id)}}else{const Hn=en[kn+1];nn(Hn==null?void 0:Hn.id)}}});return te.createElement("div",{className:tt.wrap,ref:fn},te.createElement("div",{className:tt.head},te.createElement("div",{className:tt.sort,onClick:An},te.createElement("span",null,"\u6700\u65B0"),te.createElement("aside",null,te.createElement(ha.Z,{style:{color:(Je==null?void 0:Je.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),te.createElement(ma.Z,{style:{color:(Je==null?void 0:Je.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),te.createElement(Ze.default.Search,{value:Je.save_search,className:tt["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Kn=>{Je.save_search=Kn.target.value,qe(ko({},Je))},onSearch:Qn}),te.createElement("div",{onClick:yn,className:tt.btn},te.createElement("img",{src:fa}),"\u5199\u9898\u89E3")),te.createElement("div",{className:tt.listWarp},te.createElement(ue.Z,{spinning:nt,className:"mt20"},en==null?void 0:en.map((Kn,xn)=>{let Fn=!0;return xn+1===en.length&&xn!==0&&(Fn=!1),te.createElement(Do,{active:Nt,key:Kn.id,data:Kn,showLine:Fn,onClick:gn,onAssist:er,onHide:Zr})}),(en==null?void 0:en.length)===0&&te.createElement(Ge.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),te.createElement(bt.Z,{className:tt.pagination,showTotal:Kn=>te.createElement("span",{style:{color:"#656F87"}},We.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},Kn),"\u6761\u6570\u636E"),total:Je.total,showSizeChanger:!1,current:Je==null?void 0:Je.page,onChange:Ir,hideOnSinglePage:!0,showQuickJumper:!0}),En>0&&te.createElement("div",{className:tt.fixedRight,style:{width:Lt}},En===1&&te.createElement(yo,{identifier:Ce,onClose:On,onOk:rr}),En===2&&te.createElement(yo,{active:Nt,identifier:Ce,onClose:On,onOk:Xn}),En===3&&te.createElement(Ra,{btnShowStatus:Xt,onArticlesSkip:hr,detailsIndex:jt,active:Nt,identifier:Ce,onClose:On,onOk:zr,onEdit:mn,onAssist:er,onDelete:Sr})))},Ri={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"},Ha=Object.defineProperty,ps=Object.defineProperties,Ga=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,vs=Object.prototype.hasOwnProperty,Ua=Object.prototype.propertyIsEnumerable,$a=(Ce,we,Oe)=>we in Ce?Ha(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,hi=(Ce,we)=>{for(var Oe in we||(we={}))vs.call(we,Oe)&&$a(Ce,Oe,we[Oe]);if(Sa)for(var Oe of Sa(we))Ua.call(we,Oe)&&$a(Ce,Oe,we[Oe]);return Ce},_a=(Ce,we)=>ps(Ce,Ga(we)),Ti=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())}),Za=({visible:Ce,onVisible:we,value:Oe,onChange:rt,setIndex:We})=>{var dt;const Je=(0,ye.useIntl)(),qe={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[nt,pt]=(0,te.useState)(qe);const[Lt,$t]=(0,te.useState)([]),[jt,Zt]=(0,te.useState)([]),[Nt,nn]=(0,te.useState)(!1),en=(0,te.useRef)([]),vn=(0,te.useRef)(null),Xt=(0,ye.useParams)();(0,te.useEffect)(()=>(Xt!=null&&Xt.id&&(vn.current=setInterval(()=>{Bn(30)},3e4)),()=>{clearInterval(vn.current)}),[]);const Bn=tn=>Ti(void 0,null,function*(){const yn=yield(0,me.uc)(Xt==null?void 0:Xt.id,{practice_time:tn})});(0,te.useEffect)(()=>{dn(nt),Rt()},[]),(0,te.useEffect)(()=>(window.addEventListener("click",qt),()=>{window.removeEventListener("click",qt)}),[Xt==null?void 0:Xt.save_identifier,Ce]),(0,te.useEffect)(()=>{const tn=en.current.findIndex(rr=>rr.identifier===(Xt==null?void 0:Xt.save_identifier)),yn=en.current[tn-1],gn=en.current[tn+1],mn=document.getElementById("oj-prev"),On=document.getElementById("oj-next");yn?mn.style.display="block":mn.style.display="none",gn?On.style.display="block":On.style.display="none"},[Xt==null?void 0:Xt.save_identifier,en.current]);const En=(tn,yn)=>{if(tn.id===yn)return tn;for(let gn=0,mn=tn;mn=mn.parentNode;gn++){if(mn.id===yn)return mn;if(mn==document.documentElement)return!1}},qt=tn=>Ti(void 0,null,function*(){!En(tn.target,"oj-drawer")&&Ce&&we(!1);const yn=en.current.findIndex(On=>On.identifier===(Xt==null?void 0:Xt.save_identifier)),gn=en.current[yn-1],mn=en.current[yn+1];if(tn.target.id==="oj-prev"){if(!gn||yn===-1){ge.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}tn.target.style.pointerEvents="none",tn.target.style.cursor="not-allowed",yield An(gn==null?void 0:gn.identifier),We("0"),setTimeout(()=>{tn.target.style.pointerEvents="auto",tn.target.style.cursor="pointer"},400)}if(tn.target.id==="oj-next"||tn.target.id==="oj-modal-next"){if(!mn||yn===-1){ge.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}tn.target.style.pointerEvents="none",tn.target.style.cursor="not-allowed",yield An(mn==null?void 0:mn.identifier),We("0"),setTimeout(()=>{tn.target.style.pointerEvents="auto",tn.target.style.cursor="pointer"},400)}});(0,te.useEffect)(()=>{rt(Xt==null?void 0:Xt.save_identifier);const tn=jt.findIndex(yn=>yn.some(gn=>gn.identifier===(Xt==null?void 0:Xt.save_identifier)));pt(tn===-1?_a(hi({},nt),{page:1}):_a(hi({},nt),{page:tn+1}))},[Xt==null?void 0:Xt.save_identifier,jt]);const fn=tn=>{nt.page=1,nt.tag_discipline_id=tn,pt(hi({},nt)),dn(nt)},Rt=()=>Ti(void 0,null,function*(){const tn=yield(0,un.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});$t(tn.tag_disciplines||[])}),rn=tn=>{nt.page=1,nt.difficulty=typeof tn=="number"?tn:null,pt(hi({},nt)),dn(nt)},dn=tn=>Ti(void 0,null,function*(){var yn,gn;nn(!0);const mn=yield(0,me.KC)(tn);if(mn!=null&&mn.practices_list){for(var On=(yn=mn==null?void 0:mn.practices_list)==null?void 0:yn.length,rr=[],Xn=0;Xn<On;Xn+=nt==null?void 0:nt.per_page)rr.push((gn=mn==null?void 0:mn.practices_list)==null?void 0:gn.slice(Xn,Xn+(nt==null?void 0:nt.per_page)));pt(_a(hi({},nt),{total:mn==null?void 0:mn.practices_count})),en.current=(mn==null?void 0:mn.practices_list)||[],Zt(rr)}nn(!1)}),An=(tn,yn)=>Ti(void 0,null,function*(){const gn=yield(0,un.ZP)(`/api/practices/${tn}/start`,{method:"get"});(gn==null?void 0:gn.status)===0&&ye.history.push(`/problems/${gn==null?void 0:gn.identifier}/oj/${tn}`)}),Qn=tn=>{nt.page=tn,pt(hi({},nt))};return te.createElement("div",{className:Ri.wrap,id:"oj-drawer",style:{left:Ce?0:-700}},te.createElement("div",{className:Ri.head},te.createElement("div",{className:Ri.title},"\u9898\u76EE\u5217\u8868"),te.createElement(Ze.default.Search,{value:nt==null?void 0:nt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:tn=>{nt.save_search=tn.target.value,pt(hi({},nt))},onSearch:()=>{nt.page=1,nt.search=nt.save_search,pt(hi({},nt)),dn(nt)}}),te.createElement(ce.default,{value:nt==null?void 0:nt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:tn=>tn.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:fn},Lt.map(tn=>te.createElement(ce.default.Option,{key:tn.id,value:tn.id},tn.name))),te.createElement(ce.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:Je.formatMessage({id:"questionBankList.difficulty",defaultMessage:"\u96BE\u5EA6"}),getPopupContainer:tn=>tn.parentNode,value:nt==null?void 0:nt.difficulty,onChange:rn},te.createElement(ce.default.Option,{value:1},Je.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"})),te.createElement(ce.default.Option,{value:2},Je.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"})),te.createElement(ce.default.Option,{value:3},Je.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"})))),te.createElement("div",{className:Ri.content},te.createElement(ue.Z,{spinning:Nt},(dt=jt==null?void 0:jt[nt.page-1])==null?void 0:dt.map(tn=>te.createElement("div",{key:tn.identifier,className:Ri.list,onClick:yn=>An(tn.identifier,yn)},te.createElement("i",{style:{visibility:Oe===tn.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),te.createElement("span",{style:{fontWeight:Oe===tn.identifier?"bold":400,color:Oe===tn.identifier?"#ffffff":"#bac4cd"},title:tn==null?void 0:tn.name},tn.name),(tn==null?void 0:tn.difficulty)===1&&te.createElement("b",{style:{color:"#2FA34F"}},Je.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"})),(tn==null?void 0:tn.difficulty)===2&&te.createElement("b",{style:{color:"#0152d9"}},Je.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"})),(tn==null?void 0:tn.difficulty)===3&&te.createElement("b",{style:{color:"#FA6400"}},Je.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"})))))),te.createElement("div",{className:Ri.footer},te.createElement(bt.Z,{showTotal:tn=>te.createElement("span",{style:{color:"#656F87"}},Je.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},tn),"\u6761\u6570\u636E"),total:nt.total,pageSize:nt==null?void 0:nt.per_page,current:nt==null?void 0:nt.page,showSizeChanger:!1,onChange:Qn,showQuickJumper:!0,hideOnSinglePage:!0})))},Ss=({hack:Ce,onTriggerPraise:we,topicId:Oe,page:rt,onPageChange:We,user:dt,submitRecords:Je,submitting:qe,submitResult:nt})=>{const pt=(0,ye.useIntl)(),[Lt]=(0,ye.useSearchParams)(),$t=(0,ye.useLocation)(),[jt,Zt]=(0,te.useState)(Lt.get("tab")||"0"),[Nt,nn]=(0,te.useState)(0),[en,vn]=(0,te.useState)(0),[Xt,Bn]=(0,te.useState)(0),[En,qt]=(0,te.useState)(),[fn,Rt]=(0,te.useState)(!1);function rn(An){const Qn=An.target.id;if(jt==="3"&&Qn!==jt&&(en===1||en===2)){ie.default.confirm({centered:!0,width:500,okText:pt.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:pt.formatMessage({id:"classrooms.cancel",defaultMessage:"\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:()=>{Zt(Qn)}});return}Zt(Qn)}(0,te.useEffect)(()=>ke.Z.subscribe("to-commit-info",()=>{Zt("1")}),[]);function dn(){Zt("2")}return te.createElement("div",{className:Qe["left-panel"]},te.createElement("ul",{className:`${Qe["s-navs"]} ${Qe["bg-white"]} ${Qe.b1}`},te.createElement("li",{className:"mr40 current"},te.createElement("img",{onClick:()=>Rt(!0),src:yt})),te.createElement("li",{className:Qe["oj-mr"]},te.createElement("a",{className:jt==="0"?Qe.active:"",id:"0",onClick:rn},"\u4EFB\u52A1\u63CF\u8FF0")),te.createElement("li",{className:Qe["oj-mr"]},te.createElement("a",{className:jt==="3"?Qe.active:"",id:"3",onClick:rn},"\u9898\u89E3",Xt?`(${Xt})`:"")),te.createElement("li",{className:Qe["oj-mr"]},te.createElement("a",{className:jt==="2"?Qe.active:"",id:"2",onClick:rn},pt.formatMessage({id:"questionBankAddQuestion.comments",defaultMessage:"\u8BC4\u8BBA"}),Nt?`(${Nt})`:"")),te.createElement("li",null,te.createElement("a",{className:jt==="1"?Qe.active:"",id:"1",onClick:rn},"\u63D0\u4EA4\u8BB0\u5F55"))),te.createElement("div",{className:`${Qe["tab-panel-body"]} ${jt==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},te.createElement(Ke,{hack:Ce,onTriggerPraise:we,toDiscuss:dn})),te.createElement("div",{className:`${Qe["tab-panel-body"]} ${jt==="1"?"":"hide"}`},Je!=null&&Je.records_count?te.createElement(ct,{page:rt,onPageChange:We,topicId:Oe,submitting:qe,submitRecords:Je,submitResult:nt}):te.createElement(Ge.Z,null)),te.createElement("div",{className:`${Qe["tab-panel-body"]} ${jt==="2"?"":"hide"}`,style:{padding:0}},te.createElement(Fe,{setDiscussTotal:nn,user:dt,identifier:Ce.identifier,hack:Ce,onTriggerPraise:we})),te.createElement("div",{className:`${Qe["tab-panel-body"]} ${jt==="3"?"":"hide"}`,style:{padding:0}},te.createElement(za,{setListStatus:vn,setFilterListTotal:Bn,tabStatus:jt,identifier:Ce.identifier})),te.createElement(Za,{visible:fn,setIndex:Zt,onVisible:An=>Rt(An),value:En,onChange:An=>qt(An)}))},Wa=ee(61902),_s=ee(62522),Ka=ee(81923),ys=ee(8508),Va=ee(89392),Ps=ee.n(Va),Ya=ee(56102),nr=ee(59301),Xa=Object.defineProperty,bs=Object.defineProperties,Qa=Object.getOwnPropertyDescriptors,Ji=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,Ja=Object.prototype.propertyIsEnumerable,ya=(Ce,we,Oe)=>we in Ce?Xa(Ce,we,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Ce[we]=Oe,$r=(Ce,we)=>{for(var Oe in we||(we={}))qi.call(we,Oe)&&ya(Ce,Oe,we[Oe]);if(Ji)for(var Oe of Ji(we))Ja.call(we,Oe)&&ya(Ce,Oe,we[Oe]);return Ce},po=(Ce,we)=>bs(Ce,Qa(we)),qa=(Ce,we)=>{var Oe={};for(var rt in Ce)qi.call(Ce,rt)&&we.indexOf(rt)<0&&(Oe[rt]=Ce[rt]);if(Ce!=null&&Ji)for(var rt of Ji(Ce))we.indexOf(rt)<0&&Ja.call(Ce,rt)&&(Oe[rt]=Ce[rt]);return Oe},Zo=(Ce,we,Oe)=>new Promise((rt,We)=>{var dt=nt=>{try{qe(Oe.next(nt))}catch(pt){We(pt)}},Je=nt=>{try{qe(Oe.throw(nt))}catch(pt){We(pt)}},qe=nt=>nt.done?rt(nt.value):Promise.resolve(nt.value).then(dt,Je);qe((Oe=Oe.apply(Ce,we)).next())});const{Countdown:Cs}=he.default,es={Java:"java",C:"c",Python:"py","C++":"c"};var ui=(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))(ui||{});function ji(){return new Date().getTime()}const ts={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 De(Ce,we){switch(we.type){case 1:return $r($r({},Ce),we.payload);case 3:return po($r({},Ce),{data:we.payload});case 0:return po($r({},Ce),{loading:we.payload});case 11:return po($r({},Ce),{languageList:we.payload});case 12:return po($r({},Ce),{drawerData:we.payload});case 9:return po($r({},Ce),{showNote:we.payload});case 4:return po($r({},Ce),{debuging:we.payload});case 5:return po($r({},Ce),{submitting:we.payload});case 2:return po($r({},Ce),{submitRecords:we.payload});case 10:return po($r({},Ce),{submitRecordPage:we.payload});case 6:return po($r({},Ce),{executingMessage:we.payload});case 7:return $r($r({},Ce),we.payload);case 8:return $r($r({},Ce),we.payload);default:throw new Error}}var Te=({children:Ce})=>{var we,Oe,rt,We;const dt=(0,ye.useIntl)(),[Je,qe]=(0,te.useReducer)(De,ts),{id:nt}=(0,ye.useParams)(),pt=(0,ye.useLocation)(),[Lt]=(0,ye.useSearchParams)(),{languageValue:$t,languageList:jt,loading:Zt,data:Nt,debugResult:nn,submitResult:en,submitRecords:vn,submitRecordPage:Xt,showNote:Bn,debuging:En,submitting:qt,executingMessage:fn}=Je,[Rt,rn]=(0,te.useState)("#FFF"),[dn,An]=(0,te.useState)(null),[Qn,tn]=(0,te.useState)({}),[yn,gn]=(0,te.useState)(!1),mn=(0,te.useRef)(null),On=(0,te.useRef)(null),rr=Nt==null?void 0:Nt.user,Xn=Nt==null?void 0:Nt.hack;(0,te.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,te.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,te.useEffect)(()=>{var tr;if(yn){const fr=document.getElementById("oj-next"),Qr=document.getElementById("oj-modal-next");((tr=fr==null?void 0:fr.style)==null?void 0:tr.display)==="none"?Qr.style.display="none":Qr.style.display="block"}},[yn]),(0,te.useEffect)(()=>{function tr(){return Zo(this,null,function*(){var fr,Qr,Tr;const wr=yield(0,me.fu)(nt);if(wr.status===401)document.location.href="/user/login";else{wr.hack=wr.practice,wr.hack.code=He.Base64.decode((fr=wr==null?void 0:wr.hack)==null?void 0:fr.code);const Fo=`${rr==null?void 0:rr.login}-language`;localStorage.getItem(Fo)&&(wr.hack.language=localStorage.getItem(Fo)),On.current=Ps().cloneDeep(wr),On.current.language=(Qr=wr==null?void 0:wr.hack)==null?void 0:Qr.language,qe({type:1,payload:{loading:!1,data:wr}}),qe({type:8,payload:{languageValue:(Tr=wr==null?void 0:wr.hack)==null?void 0:Tr.language}})}})}nt&&tr()},[nt]),(0,te.useEffect)(()=>{qe({type:8,payload:{debugResult:void 0}}),Zr(),gn(!1)},[nt]),(0,te.useEffect)(()=>{clearTimeout(mn.current)},[nt]),(0,te.useEffect)(()=>{er()},[nt,Xt]);const zr=()=>{window.parent.postMessage("backExercise","*")};function er(){return Zo(this,null,function*(){try{const tr=yield(0,me.zO)(nt,{limit:15,page:Xt});qe({type:2,payload:tr})}catch(tr){console.log(tr)}})}function Zr(){return Zo(this,null,function*(){try{const tr=yield(0,me.dd)(nt);qe({type:11,payload:tr==null?void 0:tr.data})}catch(tr){console.log(tr)}})}function Sr(tr){qe({type:10,payload:tr})}function Ir(tr){return Zo(this,null,function*(){var fr,Qr,Tr;const wr=((Tr=(Qr=(fr=window==null?void 0:window.location)==null?void 0:fr.pathname)==null?void 0:Qr.split("/"))==null?void 0:Tr[2])||nt;return yield(0,me.n4)(wr,tr||{code:He.Base64.encode(Xn.code),language:$t})})}function hr(){return Zo(this,null,function*(){var tr;if(!Xn.code||((tr=Xn.code)==null?void 0:tr.trim())===""){ge.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(!qt){qe({type:5,payload:!0});try{if(ke.Z.publish("to-commit-info"),(yield Ir()).status===0){let xr=function(){return Zo(this,null,function*(){const{status:Hr,data:Yr}=yield(0,me.rX)(nt,"submit"),dr=ji()-br>(wr*Fo+3)*1e3;if(Hr!==0&&!dr&&setTimeout(xr,1e3),dr){ie.default.error({centered:!0,okText:dt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),qe({type:5,payload:!1});return}if(Hr===0){Yr.status===2&&ie.default.error({centered:!0,okText:dt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Oo=yield(0,me.zO)(nt,{limit:15,page:Xt});qe({type:8,payload:po($r({},Je),{submitResult:Yr,submitting:!1,submitRecords:Oo})}),(Yr==null?void 0:Yr.status)===0&&gn(!0)}})},Qr={};const Tr=yield(0,me.bM)(nt,Qr);if(Tr.status===-1&&Lt.get("exercisesId")){window.parent.location.href=`/classrooms/${Lt.get("coursesId")}/exercise/${Lt.get("exercisesId")}/detail`;return}const{time_limit:wr,test_case_size:Fo}=Xn,br=ji();(Tr==null?void 0:Tr.status)>-1?xr():qe({type:4,payload:!1})}}catch(fr){qe({type:5,payload:!1})}}})}function Kn(){return Zo(this,null,function*(){var tr;if(!Xn.code||((tr=Xn.code)==null?void 0:tr.trim())===""){ge.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}Je.debuging=!0,qe({type:4,payload:!0});try{if((yield Ir()).status===0){let br=function(){return Zo(this,null,function*(){const{status:xr,message:Hr,data:Yr}=yield(0,me.rX)(nt,"debug"),dr=ji()-Fo>(Qr+3)*1e3;if(xr!==0&&!dr&&(qe({type:6,payload:Hr}),setTimeout(br,1e3)),dr){ie.default.error({centered:!0,okText:dt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),qe({type:4,payload:!1});return}xr===0&&(qe({type:4,payload:!1}),Yr.status===2&&ie.default.error({centered:!0,okText:dt.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),qe({type:7,payload:po($r({},Je),{debugResult:Yr,debuging:!1})}))})};const{time_limit:Qr}=Xn;let Tr={input:encodeURIComponent(Nt.test_case.input)};const wr=yield(0,me.MU)(nt,Tr);if(wr.status===-1&&Lt.get("exercisesId")){window.parent.location.href=`/classrooms/${Lt.get("coursesId")}/exercise/${Lt.get("exercisesId")}/detail`;return}const Fo=ji();(wr==null?void 0:wr.status)>-1?br():qe({type:4,payload:!1})}else qe({type:4,payload:!1})}catch(fr){console.log(fr)}finally{}})}function xn(tr){var fr;clearTimeout(mn.current),mn.current=setTimeout(()=>{var Qr;Ir({code:He.Base64.encode(tr),language:(Qr=On==null?void 0:On.current)==null?void 0:Qr.language})},2e3),qe({type:3,payload:po($r({},On==null?void 0:On.current),{hack:po($r({},(fr=On==null?void 0:On.current)==null?void 0:fr.hack),{code:tr})})})}function Fn(tr){let fr=tr.target.value;qe({type:3,payload:po($r({},Nt),{test_case:{input:fr}})})}const $n=tr=>Zo(void 0,null,function*(){var fr;if(qe({type:0,payload:!0}),(yield Ir()).status===0){qe({type:8,payload:{languageValue:tr}}),On.current.language=tr;const Tr=`${rr==null?void 0:rr.login}-language`;localStorage.setItem(Tr,tr);const wr=yield(0,me.dd)(nt);if(wr.status===0){const Fo=(fr=wr==null?void 0:wr.data)==null?void 0:fr.find(br=>br.language===tr);xn(He.Base64.decode(Fo.code))}setTimeout(()=>{qe({type:0,payload:!1})},300)}});function Rn(){return Zo(this,null,function*(){try{const tr=yield(0,me.H7)(nt,{language:$t});tr.status===401?ye.history.replace("/login",{from:pt.pathname}):(xn(He.Base64.decode(tr.code)),Zr())}catch(tr){console.log(tr)}})}function Pr(){ie.default.confirm({centered:!0,okText:dt.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:dt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:dt.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:nr.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",nr.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return Zo(this,null,function*(){const tr=yield(0,me.fi)(nt,{language:$t});tr.status===401?ye.history.replace("/login",{from:pt.pathname}):xn(He.Base64.decode(tr.code))})}})}function kn(){qe({type:9,payload:!0})}function Hn(){qe({type:9,payload:!1})}function gr(tr){return Zo(this,null,function*(){yield(0,me.MK)(nt,tr),qe({type:1,payload:{showNote:!1,data:po($r({},Nt),{hack:po($r({},Xn),{notes:tr.notes})})}})})}const yr={input:(we=Nt==null?void 0:Nt.test_case)==null?void 0:we.input,is_file:(Oe=Nt==null?void 0:Nt.test_case)==null?void 0:Oe.is_file,language:((rt=On.current)==null?void 0:rt.language)||(Xn==null?void 0:Xn.language),code:Xn==null?void 0:Xn.code,title:"main."+es[Xn==null?void 0:Xn.language],modify_code:Xn==null?void 0:Xn.modify_code,notes:Xn==null?void 0:Xn.notes,debugResult:nn,debuging:En,submitting:qt,executingMessage:fn,id:nt,languageValue:$t,languageList:jt,onChangeLanguage:$n,onCancelNote:Hn,onAddNote:gr,showNote:Bn,onShowNote:kn,onSubmitCode:hr,onChangeCode:xn,onChangeInput:Fn,onDebugCode:Kn,onResetCode:Rn,onSyncCode:Pr,onUpdateCode:Ir};function Lo(){return Zo(this,null,function*(){const{praise_count:tr}=yield(0,me.vl)(Xn.id,{container_type:"Hack",type:1});let fr=po($r({},Nt),{hack:po($r({},Xn),{praises_count:tr,user_praise:!Xn.user_praise})});qe({type:3,payload:fr})})}const Po={topicId:nt,submitResult:en,submitRecords:vn,submitting:qt,page:Xt,onPageChange:Sr,hack:Xn,user:Nt==null?void 0:Nt.user,onTriggerPraise:Lo};return console.log(Nt,On==null?void 0:On.current,"data--------"),nr.createElement(nr.Fragment,null,nr.createElement(ue.Z,{className:"oj-custom-large-spin",size:"large",spinning:Zt},Nt?nr.createElement("div",{className:"oj-custom-warp"},nr.createElement("header",{className:Ne.Z.header,style:{minWidth:1200}},nr.createElement("div",null,nr.createElement("img",{src:`${pe.Z.IMG_SERVER}/images/${rr.image_url}`,alt:"user",width:30}),nr.createElement("span",null,rr.name)),nr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},nr.createElement("div",null,Xn.name),nr.createElement(Wa.Z,{onChange:tr=>{},className:"font12 c-grey-999"})),nr.createElement(Ya.CopyToClipboard,{text:`${(We=window.location)==null?void 0:We.origin}/problems/${Xn.identifier}/share`,onCopy:()=>ge.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},nr.createElement("span",{className:Ne.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",nr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Xn.edit_privilege?nr.createElement(ye.Link,{className:Ne.Z.btn_back,to:`/problems/${Xn.identifier}/ojedit`,style:{marginRight:10}}," ",nr.createElement(fe.Z,null)," \u7F16\u8F91"):null,nr.createElement(ye.Link,{className:Ne.Z.btn_back,onClick:()=>{},to:"/problems"}," ",nr.createElement(be.Z,null),"\u9000\u51FA")),nr.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:nr.createElement(Ss,$r({},Po)),rightChild:nr.createElement(Xe,$r({},yr))})):null),nr.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:yn,className:"oj-modal"},nr.createElement("section",{className:"oj-modal-content"},nr.createElement("div",{className:"oj-modal-head"},nr.createElement("img",{src:_s,alt:""}),nr.createElement("i",{onClick:()=>gn(!1),className:"iconfont icon-guanbi1"})),nr.createElement("aside",null,nr.createElement("img",{className:"mr30",src:ys.Z}),dt.formatMessage({id:"classroomProgrammingHomework.runTime",defaultMessage:"\u8FD0\u884C\u65F6\u95F4"}),":\xA0",nr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},en==null?void 0:en.execute_time,"s"),"\u4F18\u4E8E",nr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(en==null?void 0:en.time_better_than)||100,"%"),"\u7684\u7528\u6237"),nr.createElement("aside",{className:"mb50"},nr.createElement("img",{src:Ka.Z,className:"mr30"}),nr.createElement("span",{className:"oj-modal-tt"},nr.createElement("span",null,nr.createElement("span",null,dt.formatMessage({id:"classroomProgrammingHomework.memoryUsed",defaultMessage:"\u5360\u7528\u5185\u5B58"}),":\xA0"),nr.createElement("span",{className:"c-light-primary"},en==null?void 0:en.execute_memory,"mb")),nr.createElement("span",null,nr.createElement("span",null))),"\u4F18\u4E8E",nr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(en==null?void 0:en.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),nr.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Ue({languageValue:Ce,languageList:we,onChangeLanguage:Oe,title:rt,modify_code:We,onSyncCode:dt,onShowCodeSetting:Je,onResetCode:qe}){const nt=(0,ye.useLocation)(),pt=(0,ye.useIntl)(),Lt=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:nr.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:pt.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:pt.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:qe})};return nr.createElement("div",{className:"action-bar"},nr.createElement(ce.default,{className:"oj-select",value:Ce,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Oe},we==null?void 0:we.map($t=>nr.createElement(ce.default.Option,{key:$t.language,value:$t.language},$t.language))),nr.createElement("span",null),nr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:Lt},nr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),nr.createElement("a",{onClick:Je},nr.createElement("i",{className:"iconfont icon-shezhi"})))}function Xe(Ce){var we=Ce,{id:Oe,input:rt,is_file:We,showNote:dt,onShowNote:Je,notes:qe,onCancelNote:nt,onAddNote:pt,debugResult:Lt,language:$t,debuging:jt,submitting:Zt,executingMessage:Nt,code:nn,onSubmitCode:en,onDebugCode:vn,onChangeCode:Xt,onChangeInput:Bn,onUpdateCode:En}=we,qt=qa(we,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function fn(rn){return nr.createElement(Ue,po($r({},qt),{onShowCodeSetting:rn}))}const Rt={id:Oe,input:rt,debugResult:Lt,debuging:jt,is_file:We,submitting:Zt,executingMessage:Nt,onDebugCode:vn,onChangeCode:Xt,onSubmitCode:en,onChangeInput:Bn};return nr.createElement("div",{className:"right-panel"},nr.createElement(ft,{onUpdateCode:()=>{},language:$t,value:nn,onChange:Xt,ActionBarRender:fn}),nr.createElement("div",{className:`note-form-area ${dt?"active":""}`},nr.createElement(et,{onCancel:nt,notes:qe,callback:pt})),nr.createElement(ot.ZP,$r({},Rt)))}},24595:function(gt,Ve,ee){"use strict";ee.d(Ve,{h:function(){return te}});var te=(fe=>(fe[fe.NOMATCH=-1]="NOMATCH",fe[fe.OK=0]="OK",fe[fe.TIMEOUT=2]="TIMEOUT",fe[fe.PODFAILURE=3]="PODFAILURE",fe[fe.COMPILEFAILURE=4]="COMPILEFAILURE",fe[fe.EXECUTEFAILURE=5]="EXECUTEFAILURE",fe[fe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",fe))(te||{})},57554:function(gt,Ve,ee){"use strict";ee.d(Ve,{H7:function(){return ce},KC:function(){return ne},M3:function(){return b},MK:function(){return ue},MU:function(){return ye},Rg:function(){return re},WH:function(){return y},X6:function(){return ge},bM:function(){return be},bx:function(){return a},dd:function(){return pe},de:function(){return de},fi:function(){return me},fu:function(){return fe},gu:function(){return E},n4:function(){return se},qe:function(){return z},rL:function(){return le},rX:function(){return ie},uc:function(){return ve},vl:function(){return oe},wO:function(){return x},zO:function(){return he}});var te=ee(98280);function fe(Se){return(0,te.U2)(`mypractices/${Se}.json`,{hidePopLogin:!0})}function be(Se,Le){return(0,te.v_)(`mypractices/${Se}/code_submit.json`,Le)}function ye(Se,Le){return(0,te.v_)(`mypractices/${Se}/code_debug.json`,Le)}function he(Se,Le){return Le.language&&(Le.language=encodeURIComponent(Le.language)),(0,te.U2)(`mypractices/${Se}/submit_records.json`,Le)}function ge(Se){return(0,te.U2)("mypractices/record_detail.json",{id:Se})}function ie(Se,Le){return(0,te.U2)(`mypractices/${Se}/result.json`,{mode:Le})}function ue(Se,Le){return(0,te.v_)(`mypractices/${Se}/add_notes.json`,Le)}function ce(Se,Le){return(0,te.v_)(`mypractices/${Se}/restore_initial_code.json`,Le)}function me(Se,Le){return(0,te.v_)(`mypractices/${Se}/sync_code.json`,Le)}function se(Se,Le){return(0,te.v_)(`mypractices/${Se}/update_code.json`,Le)}function pe(Se){return(0,te.v_)(`mypractices/${Se}/initial_codes.json`)}function oe(Se,Le){return(0,te.v_)(`discusses/${Se}/plus.json`,Le)}function ne(Se){return(0,te.U2)("practices/practices_list.json",Se)}function y(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles`,Le)}function a(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles`,Le)}function E(Se,Le){return(0,te.gz)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function b(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/edit`,Le)}function x(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function z(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/set_authority_or_excellent`,Le)}function re(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/praise_or_treads`,Le)}function le(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/hide`)}function de(Se,Le){return(0,te.IV)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function ve(Se,Le){return(0,te.v_)(`mypractices/${Se}/update_practice_time_sum`,Le)}},74314:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ne}});var te=ee(59301),fe=ee(8591),be=ee(6848),ye=ee(71418),he=ee(95237),ge=ee(43604),ie=ee(58421),ue=ee(3113),ce=ee(48551),me=ee(98280),se=ee(12470),pe=ee(75790),oe=(a,E,b)=>new Promise((x,z)=>{var re=ve=>{try{de(b.next(ve))}catch(Se){z(Se)}},le=ve=>{try{de(b.throw(ve))}catch(Se){z(Se)}},de=ve=>ve.done?x(ve.value):Promise.resolve(ve.value).then(re,le);de((b=b.apply(a,E)).next())}),ne=({id:a,activeDiscussIndex:E,onReplyDiscuss:b,adminOrOperator:x})=>{const z=(0,pe.useIntl)(),[re,le]=(0,te.useState)(""),[de,ve]=(0,te.useState)(!1);function Se(Ee){le(Ee)}function Le(){if(!re){fe.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}b(a,re),le("")}return(0,te.useEffect)(()=>{E!=a&&ve(!1)},[E]),te.createElement("div",{key:a,className:"discuss-item-editor",style:{display:E===a?"block":"none",width:"100%"}},te.createElement(ce.Z,{miniToolbar:!0,startInit:E===a,defaultValue:re,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:Se,extraUse:x&&te.createElement(be.Z,{color:"#fff",open:de,destroyTooltipOnHide:!0,title:y({id:a,isOpen:de,activeDiscussIndex:E,onChange:Se,setIsOpen:ve}),overlayStyle:{maxWidth:600}},te.createElement("a",{title:de?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>ve(!de)},te.createElement("i",{className:"iconfont icon-dianzan11"})))}),te.createElement("a",{onClick:Le,className:"btn-send"},"\u53D1\u9001"))};const y=a=>{const E=(0,pe.useIntl)(),[b,x]=(0,te.useState)(!1),[z,re]=(0,te.useState)([]),[le,de]=(0,te.useState)(1);(0,te.useEffect)(()=>{a!=null&&a.isOpen?ve():(de(1),re([]))},[a==null?void 0:a.isOpen]);const ve=()=>oe(void 0,null,function*(){x(!0);const Se=yield(0,me.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(Se==null?void 0:Se.status)==0&&re(Se==null?void 0:Se.answer),x(!1)});return te.createElement(ye.Z,{spinning:b},te.createElement("div",{style:{color:"#000"}},te.createElement(se.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(z==null?void 0:z[le-1])||""}),te.createElement(he.Z,{justify:"end",align:"middle"},te.createElement(ge.Z,null,te.createElement(ie.Z,{simple:!0,current:le,pageSize:1,total:(z==null?void 0:z.length)||0,onChange:Se=>{de(Se)}})),te.createElement(ge.Z,null,te.createElement(ue.ZP,{onClick:()=>oe(void 0,null,function*(){a==null||a.onChange(z==null?void 0:z[le-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},22243:function(gt,Ve,ee){"use strict";ee.d(Ve,{BU:function(){return fe},Dj:function(){return te},gH:function(){return be},vp:function(){return ye}});function te(he){try{he.mozRequestFullScreen?he.mozRequestFullScreen():he.webkitRequestFullScreen&&he.webkitRequestFullScreen()}catch(ge){console.log(ge,":e")}}function fe(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const be=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function ye(){var he=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,ge=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",he),window.isFullScreen?window.isFullScreen:he!=null}},89156:function(gt,Ve,ee){"use strict";ee.d(Ve,{G:function(){return he},t:function(){return ye}});var te=ee(7062),fe=ee.n(te);const be=null;function ye(ge,ie){let ue=fe().get("__ec");ue||(ue={}),ue[ge]=ie,fe().set("__ec",ue)}function he(ge,ie){let ue=fe().get("__ec");return ue?ue[ge]===void 0?ie:ue[ge]:ie}},71854:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return sr}});class te{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ae,_e){return ae.__proto__=_e,ae},Object.assign=Object.assign||function(ae){if(ae==null)throw new TypeError("Cannot convert undefined or null to object");let _e=Object(ae);for(let Pe=1;Pe<arguments.length;Pe++){let Ie=arguments[Pe];if(Ie!=null)for(let Fe in Ie)Ie.hasOwnProperty(Fe)&&(_e[Fe]=Ie[Fe])}return _e},typeof self.Promise!="function"&&ee(3867).polyfill()}}te.install();var fe=te,be=ee(86204),ye=ee.n(be);class he{static e(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","error",Pe),he.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","info",Pe),he.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","warn",Pe),he.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","debug",Pe),he.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(ae,_e){(!ae||he.FORCE_GLOBAL_TAG)&&(ae=he.GLOBAL_TAG);let Pe=`[${ae}] > ${_e}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","verbose",Pe),he.ENABLE_VERBOSE&&console.log(Pe)}}he.GLOBAL_TAG="flv.js",he.FORCE_GLOBAL_TAG=!1,he.ENABLE_ERROR=!0,he.ENABLE_INFO=!0,he.ENABLE_WARN=!0,he.ENABLE_DEBUG=!0,he.ENABLE_VERBOSE=!0,he.ENABLE_CALLBACK=!1,he.emitter=new(ye());var ge=he;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(ae){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ae,this._totalBytes+=ae):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ae,this._totalBytes+=ae):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ae,this._totalBytes+=ae,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ae=(this._now()-this._lastCheckpoint)/1e3;return ae==0&&(ae=1),this._intervalBytes/ae/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ae=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ae/1024}}var ue=ie;class ce{constructor(ae){this._message=ae}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class me extends ce{constructor(ae){super(ae)}get name(){return"IllegalStateException"}}class se extends ce{constructor(ae){super(ae)}get name(){return"InvalidArgumentException"}}class pe extends ce{constructor(ae){super(ae)}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 y{constructor(ae){this._type=ae||"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(ae){this._onContentLengthKnown=ae}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ae){this._onURLRedirect=ae}get onDataArrival(){return this._onDataArrival}set onDataArrival(ae){this._onDataArrival=ae}get onError(){return this._onError}set onError(ae){this._onError=ae}get onComplete(){return this._onComplete}set onComplete(ae){this._onComplete=ae}open(ae,_e){throw new pe("Unimplemented abstract function!")}abort(){throw new pe("Unimplemented abstract function!")}}let a={};function E(){let Qt=self.navigator.userAgent.toLowerCase(),ae=/(edge)\/([\w.]+)/.exec(Qt)||/(opr)[\/]([\w.]+)/.exec(Qt)||/(chrome)[ \/]([\w.]+)/.exec(Qt)||/(iemobile)[\/]([\w.]+)/.exec(Qt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Qt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(Qt)||/(webkit)[ \/]([\w.]+)/.exec(Qt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(Qt)||/(msie) ([\w.]+)/.exec(Qt)||Qt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(Qt)||Qt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(Qt)||[],_e=/(ipad)/.exec(Qt)||/(ipod)/.exec(Qt)||/(windows phone)/.exec(Qt)||/(iphone)/.exec(Qt)||/(kindle)/.exec(Qt)||/(android)/.exec(Qt)||/(windows)/.exec(Qt)||/(mac)/.exec(Qt)||/(linux)/.exec(Qt)||/(cros)/.exec(Qt)||[],Pe={browser:ae[5]||ae[3]||ae[1]||"",version:ae[2]||ae[4]||"0",majorVersion:ae[4]||ae[2]||"0",platform:_e[0]||""},Ie={};if(Pe.browser){Ie[Pe.browser]=!0;let Fe=Pe.majorVersion.split(".");Ie.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},Fe.length>1&&(Ie.version.minor=parseInt(Fe[1],10)),Fe.length>2&&(Ie.version.build=parseInt(Fe[2],10))}if(Pe.platform&&(Ie[Pe.platform]=!0),(Ie.chrome||Ie.opr||Ie.safari)&&(Ie.webkit=!0),Ie.rv||Ie.iemobile){Ie.rv&&delete Ie.rv;let Fe="msie";Pe.browser=Fe,Ie[Fe]=!0}if(Ie.edge){delete Ie.edge;let Fe="msedge";Pe.browser=Fe,Ie[Fe]=!0}if(Ie.opr){let Fe="opera";Pe.browser=Fe,Ie[Fe]=!0}if(Ie.safari&&Ie.android){let Fe="android";Pe.browser=Fe,Ie[Fe]=!0}Ie.name=Pe.browser,Ie.platform=Pe.platform;for(let Fe in a)a.hasOwnProperty(Fe)&&delete a[Fe];Object.assign(a,Ie)}E();var b=a;class x extends y{static isSupported(){try{let ae=b.msedge&&b.version.minor>=15048,_e=b.msedge?ae:!0;return self.fetch&&self.ReadableStream&&_e}catch(ae){return!1}}constructor(ae,_e){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ae,this._config=_e,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ae,_e){this._dataSource=ae,this._range=_e;let Pe=ae.url;this._config.reuseRedirectedURL&&ae.redirectedURL!=null&&(Pe=ae.redirectedURL);let Ie=this._seekHandler.getConfig(Pe,_e),Fe=new self.Headers;if(typeof Ie.headers=="object"){let ht=Ie.headers;for(let on in ht)ht.hasOwnProperty(on)&&Fe.append(on,ht[on])}let tt={method:"GET",headers:Fe,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let ht in this._config.headers)Fe.append(ht,this._config.headers[ht]);ae.cors===!1&&(tt.mode="same-origin"),ae.withCredentials&&(tt.credentials="include"),ae.referrerPolicy&&(tt.referrerPolicy=ae.referrerPolicy),this._status=oe.kConnecting,self.fetch(Ie.url,tt).then(ht=>{if(this._requestAbort){this._requestAbort=!1,this._status=oe.kIdle;return}if(ht.ok&&ht.status>=200&&ht.status<=299){if(ht.url!==Ie.url&&this._onURLRedirect){let zt=this._seekHandler.removeURLParameters(ht.url);this._onURLRedirect(zt)}let on=ht.headers.get("Content-Length");return on!=null&&(this._contentLength=parseInt(on),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,ht.body.getReader())}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ht.status,msg:ht.statusText});else throw new ce("FetchStreamLoader: Http code invalid, "+ht.status+" "+ht.statusText)}).catch(ht=>{if(this._status=oe.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:ht.message});else throw ht})}abort(){this._requestAbort=!0}_pump(ae){return ae.read().then(_e=>{if(_e.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=oe.kError;let Pe=ne.EARLY_EOF,Ie={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,Ie);else throw new ce(Ie.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,ae.cancel();this._status=oe.kBuffering;let Pe=_e.value.buffer,Ie=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,Ie,this._receivedLength),this._pump(ae)}}).catch(_e=>{if(_e.code===11&&b.msedge)return;this._status=oe.kError;let Pe=0,Ie=null;if((_e.code===19||_e.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,Ie={code:_e.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,Ie={code:_e.code,msg:_e.message}),this._onError)this._onError(Pe,Ie);else throw new ce(Ie.msg)})}}var z=x;class re extends y{static isSupported(){try{let ae=new XMLHttpRequest;return ae.open("GET","https://example.com",!0),ae.responseType="moz-chunked-arraybuffer",ae.responseType==="moz-chunked-arraybuffer"}catch(ae){return ge.w("MozChunkedLoader",ae.message),!1}}constructor(ae,_e){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=ae,this._config=_e,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(ae,_e){this._dataSource=ae,this._range=_e;let Pe=ae.url;this._config.reuseRedirectedURL&&ae.redirectedURL!=null&&(Pe=ae.redirectedURL);let Ie=this._seekHandler.getConfig(Pe,_e);this._requestURL=Ie.url;let Fe=this._xhr=new XMLHttpRequest;if(Fe.open("GET",Ie.url,!0),Fe.responseType="moz-chunked-arraybuffer",Fe.onreadystatechange=this._onReadyStateChange.bind(this),Fe.onprogress=this._onProgress.bind(this),Fe.onloadend=this._onLoadEnd.bind(this),Fe.onerror=this._onXhrError.bind(this),ae.withCredentials&&(Fe.withCredentials=!0),typeof Ie.headers=="object"){let tt=Ie.headers;for(let ht in tt)tt.hasOwnProperty(ht)&&Fe.setRequestHeader(ht,tt[ht])}if(typeof this._config.headers=="object"){let tt=this._config.headers;for(let ht in tt)tt.hasOwnProperty(ht)&&Fe.setRequestHeader(ht,tt[ht])}this._status=oe.kConnecting,Fe.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=oe.kComplete}_onReadyStateChange(ae){let _e=ae.target;if(_e.readyState===2){if(_e.responseURL!=null&&_e.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(_e.responseURL);this._onURLRedirect(Pe)}if(_e.status!==0&&(_e.status<200||_e.status>299))if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:_e.status,msg:_e.statusText});else throw new ce("MozChunkedLoader: Http code invalid, "+_e.status+" "+_e.statusText);else this._status=oe.kBuffering}}_onProgress(ae){if(this._status===oe.kError)return;this._contentLength===null&&ae.total!==null&&ae.total!==0&&(this._contentLength=ae.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let _e=ae.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=_e.byteLength,this._onDataArrival&&this._onDataArrival(_e,Pe,this._receivedLength)}_onLoadEnd(ae){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(ae){this._status=oe.kError;let _e=0,Pe=null;if(this._contentLength&&ae.loaded<this._contentLength?(_e=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(_e=ne.EXCEPTION,Pe={code:-1,msg:ae.constructor.name+" "+ae.type}),this._onError)this._onError(_e,Pe);else throw new ce(Pe.msg)}}var le=re;class de extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let ae=new XMLHttpRequest;return ae.open("GET","https://example.com",!0),ae.responseType="ms-stream",ae.responseType==="ms-stream"}catch(ae){return Log.w("MSStreamLoader",ae.message),!1}}constructor(ae,_e){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=ae,this._config=_e,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(ae,_e){this._internalOpen(ae,_e,!1)}_internalOpen(ae,_e,Pe){this._dataSource=ae,Pe?this._currentRange=_e:this._totalRange=_e;let Ie=ae.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Ie=this._currentRedirectedURL:ae.redirectedURL!=null&&(Ie=ae.redirectedURL));let Fe=this._seekHandler.getConfig(Ie,_e);this._currentRequestURL=Fe.url;let tt=this._reader=new self.MSStreamReader;tt.onprogress=this._msrOnProgress.bind(this),tt.onload=this._msrOnLoad.bind(this),tt.onerror=this._msrOnError.bind(this);let ht=this._xhr=new XMLHttpRequest;if(ht.open("GET",Fe.url,!0),ht.responseType="ms-stream",ht.onreadystatechange=this._xhrOnReadyStateChange.bind(this),ht.onerror=this._xhrOnError.bind(this),ae.withCredentials&&(ht.withCredentials=!0),typeof Fe.headers=="object"){let on=Fe.headers;for(let zt in on)on.hasOwnProperty(zt)&&ht.setRequestHeader(zt,on[zt])}if(typeof this._config.headers=="object"){let on=this._config.headers;for(let zt in on)on.hasOwnProperty(zt)&&ht.setRequestHeader(zt,on[zt])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,ht.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(ae){let _e=ae.target;if(_e.readyState===2)if(_e.status>=200&&_e.status<=299){if(this._status=LoaderStatus.kBuffering,_e.responseURL!=null){let Ie=this._seekHandler.removeURLParameters(_e.responseURL);_e.responseURL!==this._currentRequestURL&&Ie!==this._currentRedirectedURL&&(this._currentRedirectedURL=Ie,this._onURLRedirect&&this._onURLRedirect(Ie))}let Pe=_e.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let Ie=parseInt(Pe);Ie>0&&(this._contentLength=Ie,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:_e.status,msg:_e.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+_e.status+" "+_e.statusText);else if(_e.readyState===3&&_e.status>=200&&_e.status<=299){this._status=LoaderStatus.kBuffering;let Pe=_e.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(ae){this._status=LoaderStatus.kError;let _e=LoaderErrors.EXCEPTION,Pe={code:-1,msg:ae.constructor.name+" "+ae.type};if(this._onError)this._onError(_e,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(ae){let Pe=ae.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let Ie=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let Fe=this._totalRange.from+this._receivedLength;this._receivedLength+=Ie.byteLength,this._onDataArrival&&this._onDataArrival(Ie,Fe,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Fe+Ie.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let ae={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,ae,!0)}}_msrOnLoad(ae){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(ae){this._status=LoaderStatus.kError;let _e=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(_e=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(_e=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:ae.constructor.name+" "+ae.type}),this._onError)this._onError(_e,Pe);else throw new RuntimeException(Pe.msg)}}var ve=null;class Se extends y{static isSupported(){try{let ae=new XMLHttpRequest;return ae.open("GET","https://example.com",!0),ae.responseType="arraybuffer",ae.responseType==="arraybuffer"}catch(ae){return ge.w("RangeLoader",ae.message),!1}}constructor(ae,_e){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=ae,this._config=_e,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 ue,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(ae,_e){this._dataSource=ae,this._range=_e,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 ae=this._currentChunkSizeKB*1024,_e=this._range.from+this._receivedLength,Pe=_e+ae;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:_e,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ae,_e){this._lastTimeLoaded=0;let Pe=ae.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:ae.redirectedURL!=null&&(Pe=ae.redirectedURL));let Ie=this._seekHandler.getConfig(Pe,_e);this._currentRequestURL=Ie.url;let Fe=this._xhr=new XMLHttpRequest;if(Fe.open("GET",Ie.url,!0),Fe.responseType="arraybuffer",Fe.onreadystatechange=this._onReadyStateChange.bind(this),Fe.onprogress=this._onProgress.bind(this),Fe.onload=this._onLoad.bind(this),Fe.onerror=this._onXhrError.bind(this),ae.withCredentials&&(Fe.withCredentials=!0),typeof Ie.headers=="object"){let tt=Ie.headers;for(let ht in tt)tt.hasOwnProperty(ht)&&Fe.setRequestHeader(ht,tt[ht])}if(typeof this._config.headers=="object"){let tt=this._config.headers;for(let ht in tt)tt.hasOwnProperty(ht)&&Fe.setRequestHeader(ht,tt[ht])}Fe.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(ae){let _e=ae.target;if(_e.readyState===2){if(_e.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(_e.responseURL);_e.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(_e.status>=200&&_e.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:_e.status,msg:_e.statusText});else throw new ce("RangeLoader: Http code invalid, "+_e.status+" "+_e.statusText)}}_onProgress(ae){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 Ie=ae.total;this._internalAbort(),Ie!=null&Ie!==0&&(this._totalLength=Ie)}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 _e=ae.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ae.loaded,this._speedSampler.addBytes(_e)}_normalizeSpeed(ae){let _e=this._chunkSizeKBList,Pe=_e.length-1,Ie=0,Fe=0,tt=Pe;if(ae<_e[0])return _e[0];for(;Fe<=tt;){if(Ie=Fe+Math.floor((tt-Fe)/2),Ie===Pe||ae>=_e[Ie]&&ae<_e[Ie+1])return _e[Ie];_e[Ie]<ae?Fe=Ie+1:tt=Ie-1}}_onLoad(ae){if(this._status===oe.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let _e=this._speedSampler.lastSecondKBps;if(_e===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(_e=this._speedSampler.currentKBps)),_e!==0){let tt=this._normalizeSpeed(_e);this._currentSpeedNormalized!==tt&&(this._currentSpeedNormalized=tt,this._currentChunkSizeKB=tt)}let Pe=ae.target.response,Ie=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Fe=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Fe=!0,this._onDataArrival&&this._onDataArrival(Pe,Ie,this._receivedLength),Fe&&(this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(ae){this._status=oe.kError;let _e=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(_e=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(_e=ne.EXCEPTION,Pe={code:-1,msg:ae.constructor.name+" "+ae.type}),this._onError)this._onError(_e,Pe);else throw new ce(Pe.msg)}}var Le=Se;class Ee extends y{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(ae){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(ae){try{let _e=this._ws=new self.WebSocket(ae.url);_e.binaryType="arraybuffer",_e.onopen=this._onWebSocketOpen.bind(this),_e.onclose=this._onWebSocketClose.bind(this),_e.onmessage=this._onWebSocketMessage.bind(this),_e.onerror=this._onWebSocketError.bind(this),this._status=oe.kConnecting}catch(_e){this._status=oe.kError;let Pe={code:_e.code,msg:_e.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new ce(Pe.msg)}}abort(){let ae=this._ws;ae&&(ae.readyState===0||ae.readyState===1)&&(this._requestAbort=!0,ae.close()),this._ws=null,this._status=oe.kComplete}_onWebSocketOpen(ae){this._status=oe.kBuffering}_onWebSocketClose(ae){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=oe.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(ae){if(ae.data instanceof ArrayBuffer)this._dispatchArrayBuffer(ae.data);else if(ae.data instanceof Blob){let _e=new FileReader;_e.onload=()=>{this._dispatchArrayBuffer(_e.result)},_e.readAsArrayBuffer(ae.data)}else{this._status=oe.kError;let _e={code:-1,msg:"Unsupported WebSocket message type: "+ae.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,_e);else throw new ce(_e.msg)}}_dispatchArrayBuffer(ae){let _e=ae,Pe=this._receivedLength;this._receivedLength+=_e.byteLength,this._onDataArrival&&this._onDataArrival(_e,Pe,this._receivedLength)}_onWebSocketError(ae){this._status=oe.kError;let _e={code:ae.code,msg:ae.message};if(this._onError)this._onError(ne.EXCEPTION,_e);else throw new ce(_e.msg)}}var je=Ee;class xe{constructor(ae){this._zeroStart=ae||!1}getConfig(ae,_e){let Pe={};if(_e.from!==0||_e.to!==-1){let Ie;_e.to!==-1?Ie=`bytes=${_e.from.toString()}-${_e.to.toString()}`:Ie=`bytes=${_e.from.toString()}-`,Pe.Range=Ie}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:ae,headers:Pe}}removeURLParameters(ae){return ae}}var lt=xe;class Ye{constructor(ae,_e){this._startName=ae,this._endName=_e}getConfig(ae,_e){let Pe=ae;if(_e.from!==0||_e.to!==-1){let Ie=!0;Pe.indexOf("?")===-1&&(Pe+="?",Ie=!1),Ie&&(Pe+="&"),Pe+=`${this._startName}=${_e.from.toString()}`,_e.to!==-1&&(Pe+=`&${this._endName}=${_e.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(ae){let _e=ae.split("?")[0],Pe,Ie=ae.indexOf("?");Ie!==-1&&(Pe=ae.substring(Ie+1));let Fe="";if(Pe!=null&&Pe.length>0){let tt=Pe.split("&");for(let ht=0;ht<tt.length;ht++){let on=tt[ht].split("="),zt=ht>0;on[0]!==this._startName&&on[0]!==this._endName&&(zt&&(Fe+="&"),Fe+=tt[ht])}}return Fe.length===0?_e:_e+"?"+Fe}}var ft=Ye;class Me{constructor(ae,_e,Pe){this.TAG="IOController",this._config=_e,this._extraData=Pe,this._stashInitialSize=1024*384,_e.stashInitialSize!=null&&_e.stashInitialSize>0&&(this._stashInitialSize=_e.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,_e.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ae,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ae.url),this._refTotalLength=ae.filesize?ae.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new ue,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(ae){this._extraData=ae}get onDataArrival(){return this._onDataArrival}set onDataArrival(ae){this._onDataArrival=ae}get onSeeked(){return this._onSeeked}set onSeeked(ae){this._onSeeked=ae}get onError(){return this._onError}set onError(ae){this._onError=ae}get onComplete(){return this._onComplete}set onComplete(ae){this._onComplete=ae}get onRedirect(){return this._onRedirect}set onRedirect(ae){this._onRedirect=ae}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ae){this._onRecoveredEarlyEof=ae}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 ae=this._config;if(ae.seekType==="range")this._seekHandler=new lt(this._config.rangeLoadZeroStart);else if(ae.seekType==="param"){let _e=ae.seekParamStart||"bstart",Pe=ae.seekParamEnd||"bend";this._seekHandler=new ft(_e,Pe)}else if(ae.seekType==="custom"){if(typeof ae.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ae.customSeekHandler}else throw new se(`Invalid seekType in config: ${ae.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(le.isSupported())this._loaderClass=le;else if(Le.isSupported())this._loaderClass=Le;else throw new ce("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(ae){this._currentRange={from:0,to:-1},ae&&(this._currentRange.from=ae),this._speedSampler.reset(),ae||(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 ae=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ae,!0)}}seek(ae){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ae,!0)}_internalSeek(ae,_e){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(_e),this._loader.destroy(),this._loader=null;let Pe={from:ae,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(ae){if(!ae||typeof ae!="string"||ae.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=ae}_expandBuffer(ae){let _e=this._stashSize;for(;_e+1024*1024*1<ae;)_e*=2;if(_e+=1024*1024*1,_e===this._bufferSize)return;let Pe=new ArrayBuffer(_e);if(this._stashUsed>0){let Ie=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,_e).set(Ie,0)}this._stashBuffer=Pe,this._bufferSize=_e}_normalizeSpeed(ae){let _e=this._speedNormalizeList,Pe=_e.length-1,Ie=0,Fe=0,tt=Pe;if(ae<_e[0])return _e[0];for(;Fe<=tt;){if(Ie=Fe+Math.floor((tt-Fe)/2),Ie===Pe||ae>=_e[Ie]&&ae<_e[Ie+1])return _e[Ie];_e[Ie]<ae?Fe=Ie+1:tt=Ie-1}}_adjustStashSize(ae){let _e=0;this._config.isLive||ae<512?_e=ae:ae>=512&&ae<=1024?_e=Math.floor(ae*1.5):_e=ae*2,_e>8192&&(_e=8192);let Pe=_e*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=_e*1024}_dispatchChunks(ae,_e){return this._currentRange.to=_e+ae.byteLength-1,this._onDataArrival(ae,_e)}_onURLRedirect(ae){this._redirectedURL=ae,this._onRedirect&&this._onRedirect(ae)}_onContentLengthKnown(ae){ae&&this._fullRequestFlag&&(this._totalLength=ae,this._fullRequestFlag=!1)}_onLoaderChunkArrival(ae,_e,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(ae.byteLength);let Ie=this._speedSampler.lastSecondKBps;if(Ie!==0){let Fe=this._normalizeSpeed(Ie);this._speedNormalized!==Fe&&(this._speedNormalized=Fe,this._adjustStashSize(Fe))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=_e),this._stashUsed+ae.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(ae),this._stashUsed),this._stashUsed+=ae.byteLength;else{let Fe=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let tt=this._stashBuffer.slice(0,this._stashUsed),ht=this._dispatchChunks(tt,this._stashByteStart);if(ht<tt.byteLength){if(ht>0){let on=new Uint8Array(tt,ht);Fe.set(on,0),this._stashUsed=on.byteLength,this._stashByteStart+=ht}}else this._stashUsed=0,this._stashByteStart+=ht;this._stashUsed+ae.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ae.byteLength),Fe=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Fe.set(new Uint8Array(ae),this._stashUsed),this._stashUsed+=ae.byteLength}else{let tt=this._dispatchChunks(ae,_e);if(tt<ae.byteLength){let ht=ae.byteLength-tt;ht>this._bufferSize&&(this._expandBuffer(ht),Fe=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Fe.set(new Uint8Array(ae,tt),0),this._stashUsed+=ht,this._stashByteStart=_e+tt}}}else if(this._stashUsed===0){let Fe=this._dispatchChunks(ae,_e);if(Fe<ae.byteLength){let tt=ae.byteLength-Fe;tt>this._bufferSize&&this._expandBuffer(tt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ae,Fe),0),this._stashUsed+=tt,this._stashByteStart=_e+Fe}}else{this._stashUsed+ae.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ae.byteLength);let Fe=new Uint8Array(this._stashBuffer,0,this._bufferSize);Fe.set(new Uint8Array(ae),this._stashUsed),this._stashUsed+=ae.byteLength;let tt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(tt<this._stashUsed&&tt>0){let ht=new Uint8Array(this._stashBuffer,tt);Fe.set(ht,0)}this._stashUsed-=tt,this._stashByteStart+=tt}}_flushStashBuffer(ae){if(this._stashUsed>0){let _e=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(_e,this._stashByteStart),Ie=_e.byteLength-Pe;if(Pe<_e.byteLength)if(ae)ge.w(this.TAG,`${Ie} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let Fe=new Uint8Array(this._stashBuffer,0,this._bufferSize),tt=new Uint8Array(_e,Pe);Fe.set(tt,0),this._stashUsed=tt.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,Ie}return 0}_onLoaderComplete(ae,_e){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ae,_e){switch(ge.e(this.TAG,`Loader error, code = ${_e.code}, msg = ${_e.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ae=ne.UNRECOVERABLE_EARLY_EOF),ae){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(ge.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}ae=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(ae,_e);else throw new ce("IOException: "+_e.msg)}}var He=Me;const Ne={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 ot(){return Object.assign({},Ne)}class Ze{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let ae=new He({},ot()),_e=ae.loaderType;return ae.destroy(),_e=="fetch-stream-loader"||_e=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let ae=new He({},ot()),_e=ae.loaderType;return ae.destroy(),_e}static supportNativeMediaPlayback(ae){Ze.videoElement==null&&(Ze.videoElement=window.document.createElement("video"));let _e=Ze.videoElement.canPlayType(ae);return _e==="probably"||_e=="maybe"}static getFeatureList(){let ae={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ae.mseFlvPlayback=Ze.supportMSEH264Playback(),ae.networkStreamIO=Ze.supportNetworkStreamIO(),ae.networkLoaderName=Ze.getNetworkLoaderTypeName(),ae.mseLiveFlvPlayback=ae.mseFlvPlayback&&ae.networkStreamIO,ae.nativeMP4H264Playback=Ze.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ae.nativeWebmVP8Playback=Ze.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ae.nativeWebmVP9Playback=Ze.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ae}}var vt=Ze,Mt={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 At{static get forceGlobalTag(){return ge.FORCE_GLOBAL_TAG}static set forceGlobalTag(ae){ge.FORCE_GLOBAL_TAG=ae,At._notifyChange()}static get globalTag(){return ge.GLOBAL_TAG}static set globalTag(ae){ge.GLOBAL_TAG=ae,At._notifyChange()}static get enableAll(){return ge.ENABLE_VERBOSE&&ge.ENABLE_DEBUG&&ge.ENABLE_INFO&&ge.ENABLE_WARN&&ge.ENABLE_ERROR}static set enableAll(ae){ge.ENABLE_VERBOSE=ae,ge.ENABLE_DEBUG=ae,ge.ENABLE_INFO=ae,ge.ENABLE_WARN=ae,ge.ENABLE_ERROR=ae,At._notifyChange()}static get enableDebug(){return ge.ENABLE_DEBUG}static set enableDebug(ae){ge.ENABLE_DEBUG=ae,At._notifyChange()}static get enableVerbose(){return ge.ENABLE_VERBOSE}static set enableVerbose(ae){ge.ENABLE_VERBOSE=ae,At._notifyChange()}static get enableInfo(){return ge.ENABLE_INFO}static set enableInfo(ae){ge.ENABLE_INFO=ae,At._notifyChange()}static get enableWarn(){return ge.ENABLE_WARN}static set enableWarn(ae){ge.ENABLE_WARN=ae,At._notifyChange()}static get enableError(){return ge.ENABLE_ERROR}static set enableError(ae){ge.ENABLE_ERROR=ae,At._notifyChange()}static getConfig(){return{globalTag:ge.GLOBAL_TAG,forceGlobalTag:ge.FORCE_GLOBAL_TAG,enableVerbose:ge.ENABLE_VERBOSE,enableDebug:ge.ENABLE_DEBUG,enableInfo:ge.ENABLE_INFO,enableWarn:ge.ENABLE_WARN,enableError:ge.ENABLE_ERROR,enableCallback:ge.ENABLE_CALLBACK}}static applyConfig(ae){ge.GLOBAL_TAG=ae.globalTag,ge.FORCE_GLOBAL_TAG=ae.forceGlobalTag,ge.ENABLE_VERBOSE=ae.enableVerbose,ge.ENABLE_DEBUG=ae.enableDebug,ge.ENABLE_INFO=ae.enableInfo,ge.ENABLE_WARN=ae.enableWarn,ge.ENABLE_ERROR=ae.enableError,ge.ENABLE_CALLBACK=ae.enableCallback}static _notifyChange(){let ae=At.emitter;if(ae.listenerCount("change")>0){let _e=At.getConfig();ae.emit("change",_e)}}static registerListener(ae){At.emitter.addListener("change",ae)}static removeListener(ae){At.emitter.removeListener("change",ae)}static addLogListener(ae){ge.emitter.addListener("log",ae),ge.emitter.listenerCount("log")>0&&(ge.ENABLE_CALLBACK=!0,At._notifyChange())}static removeLogListener(ae){ge.emitter.removeListener("log",ae),ge.emitter.listenerCount("log")===0&&(ge.ENABLE_CALLBACK=!1,At._notifyChange())}}At.emitter=new(ye());var et=At;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 ae=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,_e=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&&ae&&_e}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ae){if(this.keyframesIndex==null)return null;let _e=this.keyframesIndex,Pe=this._search(_e.times,ae);return{index:Pe,milliseconds:_e.times[Pe],fileposition:_e.filepositions[Pe]}}_search(ae,_e){let Pe=0,Ie=ae.length-1,Fe=0,tt=0,ht=Ie;for(_e<ae[0]&&(Pe=0,tt=ht+1);tt<=ht;)if(Fe=tt+Math.floor((ht-tt)/2),Fe===Ie||_e>=ae[Fe]&&_e<ae[Fe+1]){Pe=Fe;break}else ae[Fe]<_e?tt=Fe+1:ht=Fe-1;return Pe}}var Et=Qe;function Kt(Qt,ae,_e){let Pe=Qt;if(ae+_e<Pe.length){for(;_e--;)if((Pe[++ae]&192)!==128)return!1;return!0}else return!1}function bt(Qt){let ae=[],_e=Qt,Pe=0,Ie=Qt.length;for(;Pe<Ie;){if(_e[Pe]<128){ae.push(String.fromCharCode(_e[Pe])),++Pe;continue}else if(!(_e[Pe]<192)){if(_e[Pe]<224){if(Kt(_e,Pe,1)){let Fe=(_e[Pe]&31)<<6|_e[Pe+1]&63;if(Fe>=128){ae.push(String.fromCharCode(Fe&65535)),Pe+=2;continue}}}else if(_e[Pe]<240){if(Kt(_e,Pe,2)){let Fe=(_e[Pe]&15)<<12|(_e[Pe+1]&63)<<6|_e[Pe+2]&63;if(Fe>=2048&&(Fe&63488)!==55296){ae.push(String.fromCharCode(Fe&65535)),Pe+=3;continue}}}else if(_e[Pe]<248&&Kt(_e,Pe,3)){let Fe=(_e[Pe]&7)<<18|(_e[Pe+1]&63)<<12|(_e[Pe+2]&63)<<6|_e[Pe+3]&63;if(Fe>65536&&Fe<1114112){Fe-=65536,ae.push(String.fromCharCode(Fe>>>10|55296)),ae.push(String.fromCharCode(Fe&1023|56320)),Pe+=4;continue}}}ae.push("\uFFFD"),++Pe}return ae.join("")}var Wt=bt;let $e=function(){let Qt=new ArrayBuffer(2);return new DataView(Qt).setInt16(0,256,!0),new Int16Array(Qt)[0]===256}();class St{static parseScriptData(ae,_e,Pe){let Ie={};try{let Fe=St.parseValue(ae,_e,Pe),tt=St.parseValue(ae,_e+Fe.size,Pe-Fe.size);Ie[Fe.data]=tt.data}catch(Fe){ge.e("AMF",Fe.toString())}return Ie}static parseObject(ae,_e,Pe){if(Pe<3)throw new me("Data not enough when parse ScriptDataObject");let Ie=St.parseString(ae,_e,Pe),Fe=St.parseValue(ae,_e+Ie.size,Pe-Ie.size),tt=Fe.objectEnd;return{data:{name:Ie.data,value:Fe.data},size:Ie.size+Fe.size,objectEnd:tt}}static parseVariable(ae,_e,Pe){return St.parseObject(ae,_e,Pe)}static parseString(ae,_e,Pe){if(Pe<2)throw new me("Data not enough when parse String");let Fe=new DataView(ae,_e,Pe).getUint16(0,!$e),tt;return Fe>0?tt=Wt(new Uint8Array(ae,_e+2,Fe)):tt="",{data:tt,size:2+Fe}}static parseLongString(ae,_e,Pe){if(Pe<4)throw new me("Data not enough when parse LongString");let Fe=new DataView(ae,_e,Pe).getUint32(0,!$e),tt;return Fe>0?tt=Wt(new Uint8Array(ae,_e+4,Fe)):tt="",{data:tt,size:4+Fe}}static parseDate(ae,_e,Pe){if(Pe<10)throw new me("Data size invalid when parse Date");let Ie=new DataView(ae,_e,Pe),Fe=Ie.getFloat64(0,!$e),tt=Ie.getInt16(8,!$e);return Fe+=tt*60*1e3,{data:new Date(Fe),size:10}}static parseValue(ae,_e,Pe){if(Pe<1)throw new me("Data not enough when parse Value");let Ie=new DataView(ae,_e,Pe),Fe=1,tt=Ie.getUint8(0),ht,on=!1;try{switch(tt){case 0:ht=Ie.getFloat64(1,!$e),Fe+=8;break;case 1:{ht=!!Ie.getUint8(1),Fe+=1;break}case 2:{let zt=St.parseString(ae,_e+1,Pe-1);ht=zt.data,Fe+=zt.size;break}case 3:{ht={};let zt=0;for((Ie.getUint32(Pe-4,!$e)&16777215)===9&&(zt=3);Fe<Pe-4;){let _t=St.parseObject(ae,_e+Fe,Pe-Fe-zt);if(_t.objectEnd)break;ht[_t.data.name]=_t.data.value,Fe+=_t.size}Fe<=Pe-3&&(Ie.getUint32(Fe-1,!$e)&16777215)===9&&(Fe+=3);break}case 8:{ht={},Fe+=4;let zt=0;for((Ie.getUint32(Pe-4,!$e)&16777215)===9&&(zt=3);Fe<Pe-8;){let _t=St.parseVariable(ae,_e+Fe,Pe-Fe-zt);if(_t.objectEnd)break;ht[_t.data.name]=_t.data.value,Fe+=_t.size}Fe<=Pe-3&&(Ie.getUint32(Fe-1,!$e)&16777215)===9&&(Fe+=3);break}case 9:ht=void 0,Fe=1,on=!0;break;case 10:{ht=[];let zt=Ie.getUint32(1,!$e);Fe+=4;for(let _t=0;_t<zt;_t++){let mt=St.parseValue(ae,_e+Fe,Pe-Fe);ht.push(mt.data),Fe+=mt.size}break}case 11:{let zt=St.parseDate(ae,_e+1,Pe-1);ht=zt.data,Fe+=zt.size;break}case 12:{let zt=St.parseString(ae,_e+1,Pe-1);ht=zt.data,Fe+=zt.size;break}default:Fe=Pe,ge.w("AMF","Unsupported AMF value type "+tt)}}catch(zt){ge.e("AMF",zt.toString())}return{data:ht,size:Fe,objectEnd:on}}}var xt=St;class sn{constructor(ae){this.TAG="ExpGolomb",this._buffer=ae,this._buffer_index=0,this._total_bytes=ae.byteLength,this._total_bits=ae.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let ae=this._total_bytes-this._buffer_index;if(ae<=0)throw new me("ExpGolomb: _fillCurrentWord() but no bytes available");let _e=Math.min(4,ae),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+_e)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=_e,this._current_word_bits_left=_e*8}readBits(ae){if(ae>32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(ae<=this._current_word_bits_left){let tt=this._current_word>>>32-ae;return this._current_word<<=ae,this._current_word_bits_left-=ae,tt}let _e=this._current_word_bits_left?this._current_word:0;_e=_e>>>32-this._current_word_bits_left;let Pe=ae-this._current_word_bits_left;this._fillCurrentWord();let Ie=Math.min(Pe,this._current_word_bits_left),Fe=this._current_word>>>32-Ie;return this._current_word<<=Ie,this._current_word_bits_left-=Ie,_e=_e<<Ie|Fe,_e}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let ae;for(ae=0;ae<this._current_word_bits_left;ae++)if(this._current_word&2147483648>>>ae)return this._current_word<<=ae,this._current_word_bits_left-=ae,ae;return this._fillCurrentWord(),ae+this._skipLeadingZero()}readUEG(){let ae=this._skipLeadingZero();return this.readBits(ae+1)-1}readSEG(){let ae=this.readUEG();return ae&1?ae+1>>>1:-1*(ae>>>1)}}var Vt=sn;class st{static _ebsp2rbsp(ae){let _e=ae,Pe=_e.byteLength,Ie=new Uint8Array(Pe),Fe=0;for(let tt=0;tt<Pe;tt++)tt>=2&&_e[tt]===3&&_e[tt-1]===0&&_e[tt-2]===0||(Ie[Fe]=_e[tt],Fe++);return new Uint8Array(Ie.buffer,0,Fe)}static parseSPS(ae){let _e=st._ebsp2rbsp(ae),Pe=new Vt(_e);Pe.readByte();let Ie=Pe.readByte();Pe.readByte();let Fe=Pe.readByte();Pe.readUEG();let tt=st.getProfileString(Ie),ht=st.getLevelString(Fe),on=1,zt=420,_t=[0,420,422,444],mt=8;if((Ie===100||Ie===110||Ie===122||Ie===244||Ie===44||Ie===83||Ie===86||Ie===118||Ie===128||Ie===138||Ie===144)&&(on=Pe.readUEG(),on===3&&Pe.readBits(1),on<=3&&(zt=_t[on]),mt=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Pn=on!==3?8:12;for(let _n=0;_n<Pn;_n++)Pe.readBool()&&(_n<6?st._skipScalingList(Pe,16):st._skipScalingList(Pe,64))}Pe.readUEG();let Bt=Pe.readUEG();if(Bt===0)Pe.readUEG();else if(Bt===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let Pn=Pe.readUEG();for(let _n=0;_n<Pn;_n++)Pe.readSEG()}let ut=Pe.readUEG();Pe.readBits(1);let Ht=Pe.readUEG(),Yt=Pe.readUEG(),Ot=Pe.readBits(1);Ot===0&&Pe.readBits(1),Pe.readBits(1);let kt=0,Jt=0,cn=0,Mn=0;Pe.readBool()&&(kt=Pe.readUEG(),Jt=Pe.readUEG(),cn=Pe.readUEG(),Mn=Pe.readUEG());let Vn=1,hn=1,Nn=0,lr=!0,ir=0,Ut=0;if(Pe.readBool()){if(Pe.readBool()){let Pn=Pe.readByte(),_n=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],_r=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Pn>0&&Pn<16?(Vn=_n[Pn-1],hn=_r[Pn-1]):Pn===255&&(Vn=Pe.readByte()<<8|Pe.readByte(),hn=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 Pn=Pe.readBits(32),_n=Pe.readBits(32);lr=Pe.readBool(),ir=_n,Ut=Pn*2,Nn=ir/Ut}}let to=1;(Vn!==1||hn!==1)&&(to=Vn/hn);let Ar=0,Lr=0;if(on===0)Ar=1,Lr=2-Ot;else{let Pn=on===3?1:2,_n=on===1?2:1;Ar=Pn,Lr=_n*(2-Ot)}let Wr=(Ht+1)*16,an=(2-Ot)*((Yt+1)*16);Wr-=(kt+Jt)*Ar,an-=(cn+Mn)*Lr;let bn=Math.ceil(Wr*to);return Pe.destroy(),Pe=null,{profile_string:tt,level_string:ht,bit_depth:mt,ref_frames:ut,chroma_format:zt,chroma_format_string:st.getChromaFormatString(zt),frame_rate:{fixed:lr,fps:Nn,fps_den:Ut,fps_num:ir},sar_ratio:{width:Vn,height:hn},codec_size:{width:Wr,height:an},present_size:{width:bn,height:an}}}static _skipScalingList(ae,_e){let Pe=8,Ie=8,Fe=0;for(let tt=0;tt<_e;tt++)Ie!==0&&(Fe=ae.readSEG(),Ie=(Pe+Fe+256)%256),Pe=Ie===0?Pe:Ie}static getProfileString(ae){switch(ae){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(ae){return(ae/10).toFixed(1)}static getChromaFormatString(ae){switch(ae){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var ct=st,Be={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function it(Qt){return Qt>>>8&255|(Qt&255)<<8}function wt(Qt){return(Qt&4278190080)>>>24|(Qt&16711680)>>>8|(Qt&65280)<<8|(Qt&255)<<24}function Ae(Qt,ae){return Qt[ae]<<24|Qt[ae+1]<<16|Qt[ae+2]<<8|Qt[ae+3]}class Re{constructor(ae,_e){this.TAG="FLVDemuxer",this._config=_e,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ae.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ae.hasAudioTrack,this._hasVideo=ae.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Et,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(ae){let _e=new Uint8Array(ae),Pe={match:!1};if(_e[0]!==70||_e[1]!==76||_e[2]!==86||_e[3]!==1)return Pe;let Ie=(_e[4]&4)>>>2!==0,Fe=(_e[4]&1)!==0,tt=Ae(_e,5);return tt<9?Pe:{match:!0,consumed:tt,dataOffset:tt,hasAudioTrack:Ie,hasVideoTrack:Fe}}bindDataSource(ae){return ae.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ae){this._onTrackMetadata=ae}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ae){this._onMediaInfo=ae}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ae){this._onMetaDataArrived=ae}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ae){this._onScriptDataArrived=ae}get onError(){return this._onError}set onError(ae){this._onError=ae}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ae){this._onDataAvailable=ae}get timestampBase(){return this._timestampBase}set timestampBase(ae){this._timestampBase=ae}get overridedDuration(){return this._duration}set overridedDuration(ae){this._durationOverrided=!0,this._duration=ae,this._mediaInfo.duration=ae}set overridedHasAudio(ae){this._hasAudioFlagOverrided=!0,this._hasAudio=ae,this._mediaInfo.hasAudio=ae}set overridedHasVideo(ae){this._hasVideoFlagOverrided=!0,this._hasVideo=ae,this._mediaInfo.hasVideo=ae}resetMediaInfo(){this._mediaInfo=new Et}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ae,_e){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new me("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,Ie=this._littleEndian;if(_e===0)if(ae.byteLength>13)Pe=Re.probe(ae).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,_e+Pe!==this._dataOffset&&ge.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ae,Pe).getUint32(0,!Ie)!==0&&ge.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<ae.byteLength;){this._dispatch=!0;let Fe=new DataView(ae,Pe);if(Pe+11+4>ae.byteLength)break;let tt=Fe.getUint8(0),ht=Fe.getUint32(0,!Ie)&16777215;if(Pe+11+ht+4>ae.byteLength)break;if(tt!==8&&tt!==9&&tt!==18){ge.w(this.TAG,`Unsupported tag type ${tt}, skipped`),Pe+=11+ht+4;continue}let on=Fe.getUint8(4),zt=Fe.getUint8(5),_t=Fe.getUint8(6),mt=Fe.getUint8(7),Bt=_t|zt<<8|on<<16|mt<<24;(Fe.getUint32(7,!Ie)&16777215)!==0&&ge.w(this.TAG,"Meet tag which has StreamID != 0!");let Ht=Pe+11;switch(tt){case 8:this._parseAudioData(ae,Ht,ht,Bt);break;case 9:this._parseVideoData(ae,Ht,ht,Bt,_e+Pe);break;case 18:this._parseScriptData(ae,Ht,ht);break}let Yt=Fe.getUint32(11+ht,!Ie);Yt!==11+ht&&ge.w(this.TAG,`Invalid PrevTagSize ${Yt}`),Pe+=11+ht+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(ae,_e,Pe){let Ie=xt.parseScriptData(ae,_e,Pe);if(Ie.hasOwnProperty("onMetaData")){if(Ie.onMetaData==null||typeof Ie.onMetaData!="object"){ge.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&ge.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ie;let Fe=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Fe)),typeof Fe.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Fe.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Fe.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Fe.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Fe.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Fe.audiodatarate),typeof Fe.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Fe.videodatarate),typeof Fe.width=="number"&&(this._mediaInfo.width=Fe.width),typeof Fe.height=="number"&&(this._mediaInfo.height=Fe.height),typeof Fe.duration=="number"){if(!this._durationOverrided){let tt=Math.floor(Fe.duration*this._timescale);this._duration=tt,this._mediaInfo.duration=tt}}else this._mediaInfo.duration=0;if(typeof Fe.framerate=="number"){let tt=Math.floor(Fe.framerate*1e3);if(tt>0){let ht=tt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=ht,this._referenceFrameRate.fps_num=tt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=ht}}if(typeof Fe.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let tt=Fe.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(tt),Fe.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Fe,ge.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ie).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ie))}_parseKeyframesIndex(ae){let _e=[],Pe=[];for(let Ie=1;Ie<ae.times.length;Ie++){let Fe=this._timestampBase+Math.floor(ae.times[Ie]*1e3);_e.push(Fe),Pe.push(ae.filepositions[Ie])}return{times:_e,filepositions:Pe}}_parseAudioData(ae,_e,Pe,Ie){if(Pe<=1){ge.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Fe=this._littleEndian,ht=new DataView(ae,_e,Pe).getUint8(0),on=ht>>>4;if(on!==2&&on!==10){this._onError(Be.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+on);return}let zt=0,_t=(ht&12)>>>2;if(_t>=0&&_t<=4)zt=this._flvSoundRateTable[_t];else{this._onError(Be.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+_t);return}let mt=(ht&2)>>>1,Bt=ht&1,ut=this._audioMetadata,Ht=this._audioTrack;if(ut||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),ut=this._audioMetadata={},ut.type="audio",ut.id=Ht.id,ut.timescale=this._timescale,ut.duration=this._duration,ut.audioSampleRate=zt,ut.channelCount=Bt===0?1:2),on===10){let Yt=this._parseAACAudioData(ae,_e+1,Pe-1);if(Yt==null)return;if(Yt.packetType===0){ut.config&&ge.w(this.TAG,"Found another AudioSpecificConfig!");let Ot=Yt.data;ut.audioSampleRate=Ot.samplingRate,ut.channelCount=Ot.channelCount,ut.codec=Ot.codec,ut.originalCodec=Ot.originalCodec,ut.config=Ot.config,ut.refSampleDuration=1024/ut.audioSampleRate*ut.timescale,ge.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",ut);let kt=this._mediaInfo;kt.audioCodec=ut.originalCodec,kt.audioSampleRate=ut.audioSampleRate,kt.audioChannelCount=ut.channelCount,kt.hasVideo?kt.videoCodec!=null&&(kt.mimeType='video/x-flv; codecs="'+kt.videoCodec+","+kt.audioCodec+'"'):kt.mimeType='video/x-flv; codecs="'+kt.audioCodec+'"',kt.isComplete()&&this._onMediaInfo(kt)}else if(Yt.packetType===1){let Ot=this._timestampBase+Ie,kt={unit:Yt.data,length:Yt.data.byteLength,dts:Ot,pts:Ot};Ht.samples.push(kt),Ht.length+=Yt.data.length}else ge.e(this.TAG,`Flv: Unsupported AAC data type ${Yt.packetType}`)}else if(on===2){if(!ut.codec){let Jt=this._parseMP3AudioData(ae,_e+1,Pe-1,!0);if(Jt==null)return;ut.audioSampleRate=Jt.samplingRate,ut.channelCount=Jt.channelCount,ut.codec=Jt.codec,ut.originalCodec=Jt.originalCodec,ut.refSampleDuration=1152/ut.audioSampleRate*ut.timescale,ge.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",ut);let cn=this._mediaInfo;cn.audioCodec=ut.codec,cn.audioSampleRate=ut.audioSampleRate,cn.audioChannelCount=ut.channelCount,cn.audioDataRate=Jt.bitRate,cn.hasVideo?cn.videoCodec!=null&&(cn.mimeType='video/x-flv; codecs="'+cn.videoCodec+","+cn.audioCodec+'"'):cn.mimeType='video/x-flv; codecs="'+cn.audioCodec+'"',cn.isComplete()&&this._onMediaInfo(cn)}let Yt=this._parseMP3AudioData(ae,_e+1,Pe-1,!1);if(Yt==null)return;let Ot=this._timestampBase+Ie,kt={unit:Yt,length:Yt.byteLength,dts:Ot,pts:Ot};Ht.samples.push(kt),Ht.length+=Yt.length}}_parseAACAudioData(ae,_e,Pe){if(Pe<=1){ge.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Ie={},Fe=new Uint8Array(ae,_e,Pe);return Ie.packetType=Fe[0],Fe[0]===0?Ie.data=this._parseAACAudioSpecificConfig(ae,_e+1,Pe-1):Ie.data=Fe.subarray(1),Ie}_parseAACAudioSpecificConfig(ae,_e,Pe){let Ie=new Uint8Array(ae,_e,Pe),Fe=null,tt=0,ht=0,on=null,zt=0,_t=null;if(tt=ht=Ie[0]>>>3,zt=(Ie[0]&7)<<1|Ie[1]>>>7,zt<0||zt>=this._mpegSamplingRates.length){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let mt=this._mpegSamplingRates[zt],Bt=(Ie[1]&120)>>>3;if(Bt<0||Bt>=8){this._onError(Be.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}tt===5&&(_t=(Ie[1]&7)<<1|Ie[2]>>>7,on=(Ie[2]&124)>>>2);let ut=self.navigator.userAgent.toLowerCase();return ut.indexOf("firefox")!==-1?zt>=6?(tt=5,Fe=new Array(4),_t=zt-3):(tt=2,Fe=new Array(2),_t=zt):ut.indexOf("android")!==-1?(tt=2,Fe=new Array(2),_t=zt):(tt=5,_t=zt,Fe=new Array(4),zt>=6?_t=zt-3:Bt===1&&(tt=2,Fe=new Array(2),_t=zt)),Fe[0]=tt<<3,Fe[0]|=(zt&15)>>>1,Fe[1]=(zt&15)<<7,Fe[1]|=(Bt&15)<<3,tt===5&&(Fe[1]|=(_t&15)>>>1,Fe[2]=(_t&1)<<7,Fe[2]|=8,Fe[3]=0),{config:Fe,samplingRate:mt,channelCount:Bt,codec:"mp4a.40."+tt,originalCodec:"mp4a.40."+ht}}_parseMP3AudioData(ae,_e,Pe,Ie){if(Pe<4){ge.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Fe=this._littleEndian,tt=new Uint8Array(ae,_e,Pe),ht=null;if(Ie){if(tt[0]!==255)return;let on=tt[1]>>>3&3,zt=(tt[1]&6)>>1,_t=(tt[2]&240)>>>4,mt=(tt[2]&12)>>>2,ut=(tt[3]>>>6&3)!==3?2:1,Ht=0,Yt=0,Ot=34,kt="mp3";switch(on){case 0:Ht=this._mpegAudioV25SampleRateTable[mt];break;case 2:Ht=this._mpegAudioV20SampleRateTable[mt];break;case 3:Ht=this._mpegAudioV10SampleRateTable[mt];break}switch(zt){case 1:Ot=34,_t<this._mpegAudioL3BitRateTable.length&&(Yt=this._mpegAudioL3BitRateTable[_t]);break;case 2:Ot=33,_t<this._mpegAudioL2BitRateTable.length&&(Yt=this._mpegAudioL2BitRateTable[_t]);break;case 3:Ot=32,_t<this._mpegAudioL1BitRateTable.length&&(Yt=this._mpegAudioL1BitRateTable[_t]);break}ht={bitRate:Yt,samplingRate:Ht,channelCount:ut,codec:kt,originalCodec:kt}}else ht=tt;return ht}_parseVideoData(ae,_e,Pe,Ie,Fe){if(Pe<=1){ge.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let tt=new Uint8Array(ae,_e,Pe)[0],ht=(tt&240)>>>4,on=tt&15;if(on!==7){this._onError(Be.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${on}`);return}this._parseAVCVideoPacket(ae,_e+1,Pe-1,Ie,Fe,ht)}_parseAVCVideoPacket(ae,_e,Pe,Ie,Fe,tt){if(Pe<4){ge.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let ht=this._littleEndian,on=new DataView(ae,_e,Pe),zt=on.getUint8(0),mt=(on.getUint32(0,!ht)&16777215)<<8>>8;if(zt===0)this._parseAVCDecoderConfigurationRecord(ae,_e+4,Pe-4);else if(zt===1)this._parseAVCVideoData(ae,_e+4,Pe-4,Ie,Fe,tt,mt);else if(zt!==2){this._onError(Be.FORMAT_ERROR,`Flv: Invalid video packet type ${zt}`);return}}_parseAVCDecoderConfigurationRecord(ae,_e,Pe){if(Pe<7){ge.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Ie=this._videoMetadata,Fe=this._videoTrack,tt=this._littleEndian,ht=new DataView(ae,_e,Pe);Ie?typeof Ie.avcc!="undefined"&&ge.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ie=this._videoMetadata={},Ie.type="video",Ie.id=Fe.id,Ie.timescale=this._timescale,Ie.duration=this._duration);let on=ht.getUint8(0),zt=ht.getUint8(1),_t=ht.getUint8(2),mt=ht.getUint8(3);if(on!==1||zt===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ht.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Be.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Bt=ht.getUint8(5)&31;if(Bt===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Bt>1&&ge.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Bt}`);let ut=6;for(let Yt=0;Yt<Bt;Yt++){let Ot=ht.getUint16(ut,!tt);if(ut+=2,Ot===0)continue;let kt=new Uint8Array(ae,_e+ut,Ot);ut+=Ot;let Jt=ct.parseSPS(kt);if(Yt!==0)continue;Ie.codecWidth=Jt.codec_size.width,Ie.codecHeight=Jt.codec_size.height,Ie.presentWidth=Jt.present_size.width,Ie.presentHeight=Jt.present_size.height,Ie.profile=Jt.profile_string,Ie.level=Jt.level_string,Ie.bitDepth=Jt.bit_depth,Ie.chromaFormat=Jt.chroma_format,Ie.sarRatio=Jt.sar_ratio,Ie.frameRate=Jt.frame_rate,(Jt.frame_rate.fixed===!1||Jt.frame_rate.fps_num===0||Jt.frame_rate.fps_den===0)&&(Ie.frameRate=this._referenceFrameRate);let cn=Ie.frameRate.fps_den,Mn=Ie.frameRate.fps_num;Ie.refSampleDuration=Ie.timescale*(cn/Mn);let zn=kt.subarray(1,4),Vn="avc1.";for(let Nn=0;Nn<3;Nn++){let lr=zn[Nn].toString(16);lr.length<2&&(lr="0"+lr),Vn+=lr}Ie.codec=Vn;let hn=this._mediaInfo;hn.width=Ie.codecWidth,hn.height=Ie.codecHeight,hn.fps=Ie.frameRate.fps,hn.profile=Ie.profile,hn.level=Ie.level,hn.refFrames=Jt.ref_frames,hn.chromaFormat=Jt.chroma_format_string,hn.sarNum=Ie.sarRatio.width,hn.sarDen=Ie.sarRatio.height,hn.videoCodec=Vn,hn.hasAudio?hn.audioCodec!=null&&(hn.mimeType='video/x-flv; codecs="'+hn.videoCodec+","+hn.audioCodec+'"'):hn.mimeType='video/x-flv; codecs="'+hn.videoCodec+'"',hn.isComplete()&&this._onMediaInfo(hn)}let Ht=ht.getUint8(ut);if(Ht===0){this._onError(Be.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Ht>1&&ge.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Ht}`);ut++;for(let Yt=0;Yt<Ht;Yt++){let Ot=ht.getUint16(ut,!tt);ut+=2,Ot!==0&&(ut+=Ot)}Ie.avcc=new Uint8Array(Pe),Ie.avcc.set(new Uint8Array(ae,_e,Pe),0),ge.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",Ie)}_parseAVCVideoData(ae,_e,Pe,Ie,Fe,tt,ht){let on=this._littleEndian,zt=new DataView(ae,_e,Pe),_t=[],mt=0,Bt=0;const ut=this._naluLengthSize;let Ht=this._timestampBase+Ie,Yt=tt===1;for(;Bt<Pe;){if(Bt+4>=Pe){ge.w(this.TAG,`Malformed Nalu near timestamp ${Ht}, offset = ${Bt}, dataSize = ${Pe}`);break}let Ot=zt.getUint32(Bt,!on);if(ut===3&&(Ot>>>=8),Ot>Pe-ut){ge.w(this.TAG,`Malformed Nalus near timestamp ${Ht}, NaluSize > DataSize!`);return}let kt=zt.getUint8(Bt+ut)&31;kt===5&&(Yt=!0);let Jt=new Uint8Array(ae,_e+Bt,ut+Ot),cn={type:kt,data:Jt};_t.push(cn),mt+=Jt.byteLength,Bt+=ut+Ot}if(_t.length){let Ot=this._videoTrack,kt={units:_t,length:mt,isKeyframe:Yt,dts:Ht,cts:ht,pts:Ht+ht};Yt&&(kt.fileposition=Fe),Ot.samples.push(kt),Ot.length+=mt}}}var Ke=Re;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 _e in ke.types)ke.types.hasOwnProperty(_e)&&(ke.types[_e]=[_e.charCodeAt(0),_e.charCodeAt(1),_e.charCodeAt(2),_e.charCodeAt(3)]);let ae=ke.constants={};ae.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ae.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ae.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ae.STSC=ae.STCO=ae.STTS,ae.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ae.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]),ae.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]),ae.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ae.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ae.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ae){let _e=8,Pe=null,Ie=Array.prototype.slice.call(arguments,1),Fe=Ie.length;for(let ht=0;ht<Fe;ht++)_e+=Ie[ht].byteLength;Pe=new Uint8Array(_e),Pe[0]=_e>>>24&255,Pe[1]=_e>>>16&255,Pe[2]=_e>>>8&255,Pe[3]=_e&255,Pe.set(ae,4);let tt=8;for(let ht=0;ht<Fe;ht++)Pe.set(Ie[ht],tt),tt+=Ie[ht].byteLength;return Pe}static generateInitSegment(ae){let _e=ke.box(ke.types.ftyp,ke.constants.FTYP),Pe=ke.moov(ae),Ie=new Uint8Array(_e.byteLength+Pe.byteLength);return Ie.set(_e,0),Ie.set(Pe,_e.byteLength),Ie}static moov(ae){let _e=ke.mvhd(ae.timescale,ae.duration),Pe=ke.trak(ae),Ie=ke.mvex(ae);return ke.box(ke.types.moov,_e,Pe,Ie)}static mvhd(ae,_e){return ke.box(ke.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&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(ae){return ke.box(ke.types.trak,ke.tkhd(ae),ke.mdia(ae))}static tkhd(ae){let _e=ae.id,Pe=ae.duration,Ie=ae.presentWidth,Fe=ae.presentHeight;return ke.box(ke.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&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,Ie>>>8&255,Ie&255,0,0,Fe>>>8&255,Fe&255,0,0]))}static mdia(ae){return ke.box(ke.types.mdia,ke.mdhd(ae),ke.hdlr(ae),ke.minf(ae))}static mdhd(ae){let _e=ae.timescale,Pe=ae.duration;return ke.box(ke.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(ae){let _e=null;return ae.type==="audio"?_e=ke.constants.HDLR_AUDIO:_e=ke.constants.HDLR_VIDEO,ke.box(ke.types.hdlr,_e)}static minf(ae){let _e=null;return ae.type==="audio"?_e=ke.box(ke.types.smhd,ke.constants.SMHD):_e=ke.box(ke.types.vmhd,ke.constants.VMHD),ke.box(ke.types.minf,_e,ke.dinf(),ke.stbl(ae))}static dinf(){return ke.box(ke.types.dinf,ke.box(ke.types.dref,ke.constants.DREF))}static stbl(ae){return ke.box(ke.types.stbl,ke.stsd(ae),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(ae){return ae.type==="audio"?ae.codec==="mp3"?ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.mp3(ae)):ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.mp4a(ae)):ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.avc1(ae))}static mp3(ae){let _e=ae.channelCount,Pe=ae.audioSampleRate,Ie=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,_e,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return ke.box(ke.types[".mp3"],Ie)}static mp4a(ae){let _e=ae.channelCount,Pe=ae.audioSampleRate,Ie=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,_e,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return ke.box(ke.types.mp4a,Ie,ke.esds(ae))}static esds(ae){let _e=ae.config||[],Pe=_e.length,Ie=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(_e).concat([6,1,2]));return ke.box(ke.types.esds,Ie)}static avc1(ae){let _e=ae.avcc,Pe=ae.codecWidth,Ie=ae.codecHeight,Fe=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,Ie>>>8&255,Ie&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,Fe,ke.box(ke.types.avcC,_e))}static mvex(ae){return ke.box(ke.types.mvex,ke.trex(ae))}static trex(ae){let _e=ae.id,Pe=new Uint8Array([0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&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(ae,_e){return ke.box(ke.types.moof,ke.mfhd(ae.sequenceNumber),ke.traf(ae,_e))}static mfhd(ae){let _e=new Uint8Array([0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255]);return ke.box(ke.types.mfhd,_e)}static traf(ae,_e){let Pe=ae.id,Ie=ke.box(ke.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Fe=ke.box(ke.types.tfdt,new Uint8Array([0,0,0,0,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255])),tt=ke.sdtp(ae),ht=ke.trun(ae,tt.byteLength+16+16+8+16+8+8);return ke.box(ke.types.traf,Ie,Fe,ht,tt)}static sdtp(ae){let _e=ae.samples||[],Pe=_e.length,Ie=new Uint8Array(4+Pe);for(let Fe=0;Fe<Pe;Fe++){let tt=_e[Fe].flags;Ie[Fe+4]=tt.isLeading<<6|tt.dependsOn<<4|tt.isDependedOn<<2|tt.hasRedundancy}return ke.box(ke.types.sdtp,Ie)}static trun(ae,_e){let Pe=ae.samples||[],Ie=Pe.length,Fe=12+16*Ie,tt=new Uint8Array(Fe);_e+=8+Fe,tt.set([0,0,15,1,Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,_e>>>24&255,_e>>>16&255,_e>>>8&255,_e&255],0);for(let ht=0;ht<Ie;ht++){let on=Pe[ht].duration,zt=Pe[ht].size,_t=Pe[ht].flags,mt=Pe[ht].cts;tt.set([on>>>24&255,on>>>16&255,on>>>8&255,on&255,zt>>>24&255,zt>>>16&255,zt>>>8&255,zt&255,_t.isLeading<<2|_t.dependsOn,_t.isDependedOn<<6|_t.hasRedundancy<<4|_t.isNonSync,0,0,mt>>>24&255,mt>>>16&255,mt>>>8&255,mt&255],12+16*ht)}return ke.box(ke.types.trun,tt)}static mdat(ae){return ke.box(ke.types.mdat,ae)}}ke.init();var ze=ke;class at{static getSilentFrame(ae,_e){if(ae==="mp4a.40.2"){if(_e===1)return new Uint8Array([0,200,0,128,35,128]);if(_e===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(_e===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(_e===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(_e===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(_e===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(_e===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(_e===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(_e===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 It=at;class Dt{constructor(ae,_e,Pe,Ie,Fe){this.dts=ae,this.pts=_e,this.duration=Pe,this.originalDts=Ie,this.isSyncPoint=Fe,this.fileposition=null}}class Ft{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(ae){ae.isSyncPoint=!0,this.syncPoints.push(ae)}}class Tt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ae){let _e=this._list;ae.length!==0&&(_e.length>0&&ae[0].originalDts<_e[_e.length-1].originalDts&&this.clear(),Array.prototype.push.apply(_e,ae))}getLastSyncPointBeforeDts(ae){if(this._list.length==0)return null;let _e=this._list,Pe=0,Ie=_e.length-1,Fe=0,tt=0,ht=Ie;for(ae<_e[0].dts&&(Pe=0,tt=ht+1);tt<=ht;)if(Fe=tt+Math.floor((ht-tt)/2),Fe===Ie||ae>=_e[Fe].dts&&ae<_e[Fe+1].dts){Pe=Fe;break}else _e[Fe].dts<ae?tt=Fe+1:ht=Fe-1;return this._list[Pe]}}class Gt{constructor(ae){this._type=ae,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(ae){let _e=this._list;if(_e.length===0)return-2;let Pe=_e.length-1,Ie=0,Fe=0,tt=Pe,ht=0;if(ae<_e[0].originalBeginDts)return ht=-1,ht;for(;Fe<=tt;)if(Ie=Fe+Math.floor((tt-Fe)/2),Ie===Pe||ae>_e[Ie].lastSample.originalDts&&ae<_e[Ie+1].originalBeginDts){ht=Ie;break}else _e[Ie].originalBeginDts<ae?Fe=Ie+1:tt=Ie-1;return ht}_searchNearestSegmentAfter(ae){return this._searchNearestSegmentBefore(ae)+1}append(ae){let _e=this._list,Pe=ae,Ie=this._lastAppendLocation,Fe=0;Ie!==-1&&Ie<_e.length&&Pe.originalBeginDts>=_e[Ie].lastSample.originalDts&&(Ie===_e.length-1||Ie<_e.length-1&&Pe.originalBeginDts<_e[Ie+1].originalBeginDts)?Fe=Ie+1:_e.length>0&&(Fe=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Fe,this._list.splice(Fe,0,Pe)}getLastSegmentBefore(ae){let _e=this._searchNearestSegmentBefore(ae);return _e>=0?this._list[_e]:null}getLastSampleBefore(ae){let _e=this.getLastSegmentBefore(ae);return _e!=null?_e.lastSample:null}getLastSyncPointBefore(ae){let _e=this._searchNearestSegmentBefore(ae),Pe=this._list[_e].syncPoints;for(;Pe.length===0&&_e>0;)_e--,Pe=this._list[_e].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class yt{constructor(ae){this.TAG="MP4Remuxer",this._config=ae,this._isLive=ae.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 Gt("audio"),this._videoSegmentInfoList=new Gt("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(ae){return ae.onDataAvailable=this.remux.bind(this),ae.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ae){this._onInitSegment=ae}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ae){this._onMediaSegment=ae}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ae){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ae,_e){if(!this._onMediaSegment)throw new me("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ae,_e),this._remuxVideo(_e),this._remuxAudio(ae)}_onTrackMetadataReceived(ae,_e){let Pe=null,Ie="mp4",Fe=_e.codec;if(ae==="audio")this._audioMeta=_e,_e.codec==="mp3"&&this._mp3UseMpegAudio?(Ie="mpeg",Fe="",Pe=new Uint8Array):Pe=ze.generateInitSegment(_e);else if(ae==="video")this._videoMeta=_e,Pe=ze.generateInitSegment(_e);else return;if(!this._onInitSegment)throw new me("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ae,{type:ae,data:Pe.buffer,codec:Fe,container:`${ae}/${Ie}`,mediaDuration:_e.duration})}_calculateDtsBase(ae,_e){this._dtsBaseInited||(ae.samples&&ae.samples.length&&(this._audioDtsBase=ae.samples[0].dts),_e.samples&&_e.samples.length&&(this._videoDtsBase=_e.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ae=this._videoStashedLastSample,_e=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ae!=null&&(Pe.samples.push(ae),Pe.length=ae.length);let Ie={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};_e!=null&&(Ie.samples.push(_e),Ie.length=_e.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(Ie,!0)}_remuxAudio(ae,_e){if(this._audioMeta==null)return;let Pe=ae,Ie=Pe.samples,Fe,tt=-1,ht=-1,on=-1,zt=this._audioMeta.refSampleDuration,_t=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,mt=this._dtsBaseInited&&this._audioNextDts===void 0,Bt=!1;if(!Ie||Ie.length===0||Ie.length===1&&!_e)return;let ut=0,Ht=null,Yt=0;_t?(ut=0,Yt=Pe.length):(ut=8,Yt=8+Pe.length);let Ot=null;if(Ie.length>1&&(Ot=Ie.pop(),Yt-=Ot.length),this._audioStashedLastSample!=null){let hn=this._audioStashedLastSample;this._audioStashedLastSample=null,Ie.unshift(hn),Yt+=hn.length}Ot!=null&&(this._audioStashedLastSample=Ot);let kt=Ie[0].dts-this._dtsBase;if(this._audioNextDts)Fe=kt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Fe=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Bt=!0);else{let hn=this._audioSegmentInfoList.getLastSampleBefore(kt);if(hn!=null){let Nn=kt-(hn.originalDts+hn.duration);Nn<=3&&(Nn=0);let lr=hn.dts+hn.duration+Nn;Fe=kt-lr}else Fe=0}if(Bt){let hn=kt-Fe,Nn=this._videoSegmentInfoList.getLastSegmentBefore(kt);if(Nn!=null&&Nn.beginDts<hn){let lr=It.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(lr){let ir=Nn.beginDts,Ut=hn-Nn.beginDts;ge.v(this.TAG,`InsertPrefixSilentAudio: dts: ${ir}, duration: ${Ut}`),Ie.unshift({unit:lr,dts:ir,pts:ir}),Yt+=lr.byteLength}}else Bt=!1}let Jt=[];for(let hn=0;hn<Ie.length;hn++){let Nn=Ie[hn],lr=Nn.unit,ir=Nn.dts-this._dtsBase,Ut=ir-Fe;tt===-1&&(tt=Ut);let ur=0;hn!==Ie.length-1?ur=Ie[hn+1].dts-this._dtsBase-Fe-Ut:Ot!=null?ur=Ot.dts-this._dtsBase-Fe-Ut:Jt.length>=1?ur=Jt[Jt.length-1].duration:ur=Math.floor(zt);let to=!1,Ar=null;if(ur>zt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){to=!0;let Lr=Math.abs(ur-zt),Wr=Math.ceil(Lr/zt),an=Ut+zt;ge.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
dts: ${Ut+ur} ms, expected: ${Ut+Math.round(zt)} ms, delta: ${Math.round(Lr)} ms, generate: ${Wr} frames`);let bn=It.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);bn==null&&(ge.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),bn=lr),Ar=[];for(let _n=0;_n<Wr;_n++){let _r=Math.round(an);if(Ar.length>0){let Or=Ar[Ar.length-1];Or.duration=_r-Or.dts}let pr={dts:_r,pts:_r,cts:0,unit:bn,size:bn.byteLength,duration:0,originalDts:ir,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ar.push(pr),Yt+=pr.size,an+=zt}let Pn=Ar[Ar.length-1];Pn.duration=Ut+ur-Pn.dts,ur=Math.round(zt)}Jt.push({dts:Ut,pts:Ut,cts:0,unit:Nn.unit,size:Nn.unit.byteLength,duration:ur,originalDts:ir,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),to&&Jt.push.apply(Jt,Ar)}_t?Ht=new Uint8Array(Yt):(Ht=new Uint8Array(Yt),Ht[0]=Yt>>>24&255,Ht[1]=Yt>>>16&255,Ht[2]=Yt>>>8&255,Ht[3]=Yt&255,Ht.set(ze.types.mdat,4));for(let hn=0;hn<Jt.length;hn++){let Nn=Jt[hn].unit;Ht.set(Nn,ut),ut+=Nn.byteLength}let cn=Jt[Jt.length-1];ht=cn.dts+cn.duration,this._audioNextDts=ht;let Mn=new Ft;Mn.beginDts=tt,Mn.endDts=ht,Mn.beginPts=tt,Mn.endPts=ht,Mn.originalBeginDts=Jt[0].originalDts,Mn.originalEndDts=cn.originalDts+cn.duration,Mn.firstSample=new Dt(Jt[0].dts,Jt[0].pts,Jt[0].duration,Jt[0].originalDts,!1),Mn.lastSample=new Dt(cn.dts,cn.pts,cn.duration,cn.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Mn),Pe.samples=Jt,Pe.sequenceNumber++;let zn=null;_t?zn=new Uint8Array:zn=ze.moof(Pe,tt),Pe.samples=[],Pe.length=0;let Vn={type:"audio",data:this._mergeBoxes(zn,Ht).buffer,sampleCount:Jt.length,info:Mn};_t&&mt&&(Vn.timestampOffset=tt),this._onMediaSegment("audio",Vn)}_remuxVideo(ae,_e){if(this._videoMeta==null)return;let Pe=ae,Ie=Pe.samples,Fe,tt=-1,ht=-1,on=-1,zt=-1;if(!Ie||Ie.length===0||Ie.length===1&&!_e)return;let _t=8,mt=null,Bt=8+ae.length,ut=null;if(Ie.length>1&&(ut=Ie.pop(),Bt-=ut.length),this._videoStashedLastSample!=null){let cn=this._videoStashedLastSample;this._videoStashedLastSample=null,Ie.unshift(cn),Bt+=cn.length}ut!=null&&(this._videoStashedLastSample=ut);let Ht=Ie[0].dts-this._dtsBase;if(this._videoNextDts)Fe=Ht-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Fe=0;else{let cn=this._videoSegmentInfoList.getLastSampleBefore(Ht);if(cn!=null){let Mn=Ht-(cn.originalDts+cn.duration);Mn<=3&&(Mn=0);let zn=cn.dts+cn.duration+Mn;Fe=Ht-zn}else Fe=0}let Yt=new Ft,Ot=[];for(let cn=0;cn<Ie.length;cn++){let Mn=Ie[cn],zn=Mn.dts-this._dtsBase,Vn=Mn.isKeyframe,hn=zn-Fe,Nn=Mn.cts,lr=hn+Nn;tt===-1&&(tt=hn,on=lr);let ir=0;if(cn!==Ie.length-1?ir=Ie[cn+1].dts-this._dtsBase-Fe-hn:ut!=null?ir=ut.dts-this._dtsBase-Fe-hn:Ot.length>=1?ir=Ot[Ot.length-1].duration:ir=Math.floor(this._videoMeta.refSampleDuration),Vn){let Ut=new Dt(hn,lr,ir,Mn.dts,!0);Ut.fileposition=Mn.fileposition,Yt.appendSyncPoint(Ut)}Ot.push({dts:hn,pts:lr,cts:Nn,units:Mn.units,size:Mn.length,isKeyframe:Vn,duration:ir,originalDts:zn,flags:{isLeading:0,dependsOn:Vn?2:1,isDependedOn:Vn?1:0,hasRedundancy:0,isNonSync:Vn?0:1}})}mt=new Uint8Array(Bt),mt[0]=Bt>>>24&255,mt[1]=Bt>>>16&255,mt[2]=Bt>>>8&255,mt[3]=Bt&255,mt.set(ze.types.mdat,4);for(let cn=0;cn<Ot.length;cn++){let Mn=Ot[cn].units;for(;Mn.length;){let Vn=Mn.shift().data;mt.set(Vn,_t),_t+=Vn.byteLength}}let kt=Ot[Ot.length-1];if(ht=kt.dts+kt.duration,zt=kt.pts+kt.duration,this._videoNextDts=ht,Yt.beginDts=tt,Yt.endDts=ht,Yt.beginPts=on,Yt.endPts=zt,Yt.originalBeginDts=Ot[0].originalDts,Yt.originalEndDts=kt.originalDts+kt.duration,Yt.firstSample=new Dt(Ot[0].dts,Ot[0].pts,Ot[0].duration,Ot[0].originalDts,Ot[0].isKeyframe),Yt.lastSample=new Dt(kt.dts,kt.pts,kt.duration,kt.originalDts,kt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Yt),Pe.samples=Ot,Pe.sequenceNumber++,this._forceFirstIDR){let cn=Ot[0].flags;cn.dependsOn=2,cn.isNonSync=0}let Jt=ze.moof(Pe,tt);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Jt,mt).buffer,sampleCount:Ot.length,info:Yt})}_mergeBoxes(ae,_e){let Pe=new Uint8Array(ae.byteLength+_e.byteLength);return Pe.set(ae,0),Pe.set(_e,ae.byteLength),Pe}}var un=yt,Ct={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 pn{constructor(ae,_e){this.TAG="TransmuxingController",this._emitter=new(ye()),this._config=_e,ae.segments||(ae.segments=[{duration:ae.duration,filesize:ae.filesize,url:ae.url}]),typeof ae.cors!="boolean"&&(ae.cors=!0),typeof ae.withCredentials!="boolean"&&(ae.withCredentials=!1),this._mediaDataSource=ae,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(Ie=>{Ie.timestampBase=Pe,Pe+=Ie.duration,Ie.cors=ae.cors,Ie.withCredentials=ae.withCredentials,_e.referrerPolicy&&(Ie.referrerPolicy=_e.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(ae,_e){this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ae,_e){this._currentSegmentIndex=ae;let Pe=this._mediaDataSource.segments[ae],Ie=this._ioctl=new He(Pe,this._config,ae);Ie.onError=this._onIOException.bind(this),Ie.onSeeked=this._onIOSeeked.bind(this),Ie.onComplete=this._onIOComplete.bind(this),Ie.onRedirect=this._onIORedirect.bind(this),Ie.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),_e?this._demuxer.bindDataSource(this._ioctl):Ie.onDataArrival=this._onInitChunkArrival.bind(this),Ie.open(_e)}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(ae){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let _e=this._searchSegmentIndexContains(ae);if(_e===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[_e];if(Pe==null)this._pendingSeekTime=ae;else{let Ie=Pe.getNearestKeyframe(ae);this._remuxer.seek(Ie.milliseconds),this._ioctl.seek(Ie.fileposition),this._pendingResolveSeekPoint=Ie.milliseconds}}else{let Pe=this._mediaInfo.segments[_e];if(Pe==null)this._pendingSeekTime=ae,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(_e);else{let Ie=Pe.getNearestKeyframe(ae);this._internalAbort(),this._remuxer.seek(ae),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[_e].timestampBase,this._loadSegment(_e,Ie.fileposition),this._pendingResolveSeekPoint=Ie.milliseconds,this._reportSegmentMediaInfo(_e)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ae){let _e=this._mediaDataSource.segments,Pe=_e.length-1;for(let Ie=0;Ie<_e.length;Ie++)if(ae<_e[Ie].timestampBase){Pe=Ie-1;break}return Pe}_onInitChunkArrival(ae,_e){let Pe=null,Ie=0;if(_e>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Ie=this._demuxer.parseChunks(ae,_e);else if((Pe=Ke.probe(ae)).match){this._demuxer=new Ke(Pe,this._config),this._remuxer||(this._remuxer=new un(this._config));let Fe=this._mediaDataSource;Fe.duration!=null&&!isNaN(Fe.duration)&&(this._demuxer.overridedDuration=Fe.duration),typeof Fe.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Fe.hasAudio),typeof Fe.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Fe.hasVideo),this._demuxer.timestampBase=Fe.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),Ie=this._demuxer.parseChunks(ae,_e)}else Pe=null,ge.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ct.DEMUX_ERROR,Be.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Ie=0;return Ie}_onMediaInfo(ae){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ae),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Et.prototype));let _e=Object.assign({},ae);Object.setPrototypeOf(_e,Et.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=_e,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(ae){this._emitter.emit(Ct.METADATA_ARRIVED,ae)}_onScriptDataArrived(ae){this._emitter.emit(Ct.SCRIPTDATA_ARRIVED,ae)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ae){let Pe=ae+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Ct.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(ae){let _e=this._ioctl.extraData;this._mediaDataSource.segments[_e].redirectedURL=ae}_onIORecoveredEarlyEof(){this._emitter.emit(Ct.RECOVERED_EARLY_EOF)}_onIOException(ae,_e){ge.e(this.TAG,`IOException: type = ${ae}, code = ${_e.code}, msg = ${_e.msg}`),this._emitter.emit(Ct.IO_ERROR,ae,_e),this._disableStatisticsReporter()}_onDemuxException(ae,_e){ge.e(this.TAG,`DemuxException: type = ${ae}, info = ${_e}`),this._emitter.emit(Ct.DEMUX_ERROR,ae,_e)}_onRemuxerInitSegmentArrival(ae,_e){this._emitter.emit(Ct.INIT_SEGMENT,ae,_e)}_onRemuxerMediaSegmentArrival(ae,_e){if(this._pendingSeekTime==null&&(this._emitter.emit(Ct.MEDIA_SEGMENT,ae,_e),this._pendingResolveSeekPoint!=null&&ae==="video")){let Pe=_e.info.syncPoints,Ie=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===Ie&&(Ie=Pe[0].pts),this._emitter.emit(Ct.RECOMMEND_SEEKPOINT,Ie)}}_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(ae){let _e=this._mediaInfo.segments[ae],Pe=Object.assign({},_e);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(Ct.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let ae={};ae.url=this._ioctl.currentURL,ae.hasRedirect=this._ioctl.hasRedirect,ae.hasRedirect&&(ae.redirectedURL=this._ioctl.currentRedirectedURL),ae.speed=this._ioctl.currentSpeed,ae.loaderType=this._ioctl.loaderType,ae.currentSegmentIndex=this._currentSegmentIndex,ae.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Ct.STATISTICS_INFO,ae)}}var Sn=pn,Ln=function(Qt){let ae="TransmuxingWorker",_e=null,Pe=Yt.bind(this);fe.install(),Qt.addEventListener("message",function(Ot){switch(Ot.data.cmd){case"init":_e=new Sn(Ot.data.param[0],Ot.data.param[1]),_e.on(Ct.IO_ERROR,Bt.bind(this)),_e.on(Ct.DEMUX_ERROR,ut.bind(this)),_e.on(Ct.INIT_SEGMENT,Ie.bind(this)),_e.on(Ct.MEDIA_SEGMENT,Fe.bind(this)),_e.on(Ct.LOADING_COMPLETE,tt.bind(this)),_e.on(Ct.RECOVERED_EARLY_EOF,ht.bind(this)),_e.on(Ct.MEDIA_INFO,on.bind(this)),_e.on(Ct.METADATA_ARRIVED,zt.bind(this)),_e.on(Ct.SCRIPTDATA_ARRIVED,_t.bind(this)),_e.on(Ct.STATISTICS_INFO,mt.bind(this)),_e.on(Ct.RECOMMEND_SEEKPOINT,Ht.bind(this));break;case"destroy":_e&&(_e.destroy(),_e=null),Qt.postMessage({msg:"destroyed"});break;case"start":_e.start();break;case"stop":_e.stop();break;case"seek":_e.seek(Ot.data.param);break;case"pause":_e.pause();break;case"resume":_e.resume();break;case"logging_config":{let kt=Ot.data.param;et.applyConfig(kt),kt.enableCallback===!0?et.addLogListener(Pe):et.removeLogListener(Pe);break}}});function Ie(Ot,kt){let Jt={msg:Ct.INIT_SEGMENT,data:{type:Ot,data:kt}};Qt.postMessage(Jt,[kt.data])}function Fe(Ot,kt){let Jt={msg:Ct.MEDIA_SEGMENT,data:{type:Ot,data:kt}};Qt.postMessage(Jt,[kt.data])}function tt(){let Ot={msg:Ct.LOADING_COMPLETE};Qt.postMessage(Ot)}function ht(){let Ot={msg:Ct.RECOVERED_EARLY_EOF};Qt.postMessage(Ot)}function on(Ot){let kt={msg:Ct.MEDIA_INFO,data:Ot};Qt.postMessage(kt)}function zt(Ot){let kt={msg:Ct.METADATA_ARRIVED,data:Ot};Qt.postMessage(kt)}function _t(Ot){let kt={msg:Ct.SCRIPTDATA_ARRIVED,data:Ot};Qt.postMessage(kt)}function mt(Ot){let kt={msg:Ct.STATISTICS_INFO,data:Ot};Qt.postMessage(kt)}function Bt(Ot,kt){Qt.postMessage({msg:Ct.IO_ERROR,data:{type:Ot,info:kt}})}function ut(Ot,kt){Qt.postMessage({msg:Ct.DEMUX_ERROR,data:{type:Ot,info:kt}})}function Ht(Ot){Qt.postMessage({msg:Ct.RECOMMEND_SEEKPOINT,data:Ot})}function Yt(Ot,kt){Qt.postMessage({msg:"logcat_callback",data:{type:Ot,logcat:kt}})}};class Wn{constructor(ae,_e){if(this.TAG="Transmuxer",this._emitter=new(ye()),_e.enableWorker&&typeof Worker!="undefined")try{let Pe=ee(82059);this._worker=Pe(Ln),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ae,_e]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},et.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:et.getConfig()})}catch(Pe){ge.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Sn(ae,_e)}else this._controller=new Sn(ae,_e);if(this._controller){let Pe=this._controller;Pe.on(Ct.IO_ERROR,this._onIOError.bind(this)),Pe.on(Ct.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(Ct.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(Ct.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(Ct.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(Ct.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(Ct.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(Ct.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(Ct.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(Ct.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(Ct.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),et.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}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(ae){this._worker?this._worker.postMessage({cmd:"seek",param:ae}):this._controller.seek(ae)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(Ct.INIT_SEGMENT,ae,_e)})}_onMediaSegment(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(Ct.MEDIA_SEGMENT,ae,_e)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ct.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ct.RECOVERED_EARLY_EOF)})}_onMediaInfo(ae){Promise.resolve().then(()=>{this._emitter.emit(Ct.MEDIA_INFO,ae)})}_onMetaDataArrived(ae){Promise.resolve().then(()=>{this._emitter.emit(Ct.METADATA_ARRIVED,ae)})}_onScriptDataArrived(ae){Promise.resolve().then(()=>{this._emitter.emit(Ct.SCRIPTDATA_ARRIVED,ae)})}_onStatisticsInfo(ae){Promise.resolve().then(()=>{this._emitter.emit(Ct.STATISTICS_INFO,ae)})}_onIOError(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(Ct.IO_ERROR,ae,_e)})}_onDemuxError(ae,_e){Promise.resolve().then(()=>{this._emitter.emit(Ct.DEMUX_ERROR,ae,_e)})}_onRecommendSeekpoint(ae){Promise.resolve().then(()=>{this._emitter.emit(Ct.RECOMMEND_SEEKPOINT,ae)})}_onLoggingConfigChanged(ae){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ae})}_onWorkerMessage(ae){let _e=ae.data,Pe=_e.data;if(_e.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(_e.msg){case Ct.INIT_SEGMENT:case Ct.MEDIA_SEGMENT:this._emitter.emit(_e.msg,Pe.type,Pe.data);break;case Ct.LOADING_COMPLETE:case Ct.RECOVERED_EARLY_EOF:this._emitter.emit(_e.msg);break;case Ct.MEDIA_INFO:Object.setPrototypeOf(Pe,Et.prototype),this._emitter.emit(_e.msg,Pe);break;case Ct.METADATA_ARRIVED:case Ct.SCRIPTDATA_ARRIVED:case Ct.STATISTICS_INFO:this._emitter.emit(_e.msg,Pe);break;case Ct.IO_ERROR:case Ct.DEMUX_ERROR:this._emitter.emit(_e.msg,Pe.type,Pe.info);break;case Ct.RECOMMEND_SEEKPOINT:this._emitter.emit(_e.msg,Pe);break;case"logcat_callback":ge.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var Zn=Wn,Yn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class mr{constructor(ae){this.TAG="MSEController",this._config=ae,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 Tt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}attachMediaElement(ae){if(this._mediaSource)throw new me("MediaSource has been attached to an HTMLMediaElement!");let _e=this._mediaSource=new window.MediaSource;_e.addEventListener("sourceopen",this.e.onSourceOpen),_e.addEventListener("sourceended",this.e.onSourceEnded),_e.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ae,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ae.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ae=this._mediaSource;for(let _e in this._sourceBuffers){let Pe=this._pendingSegments[_e];Pe.splice(0,Pe.length),this._pendingSegments[_e]=null,this._pendingRemoveRanges[_e]=null,this._lastInitSegments[_e]=null;let Ie=this._sourceBuffers[_e];if(Ie){if(ae.readyState!=="closed"){try{ae.removeSourceBuffer(Ie)}catch(Fe){ge.e(this.TAG,Fe.message)}Ie.removeEventListener("error",this.e.onSourceBufferError),Ie.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[_e]=null,this._sourceBuffers[_e]=null}}if(ae.readyState==="open")try{ae.endOfStream()}catch(_e){ge.e(this.TAG,_e.message)}ae.removeEventListener("sourceopen",this.e.onSourceOpen),ae.removeEventListener("sourceended",this.e.onSourceEnded),ae.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(ae,_e){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ae),this._pendingSegments[ae.type].push(ae);return}let Pe=ae,Ie=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(Ie+=`;codecs=${Pe.codec}`);let Fe=!1;if(ge.v(this.TAG,"Received Initialization Segment, mimeType: "+Ie),this._lastInitSegments[Pe.type]=Pe,Ie!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])ge.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${Ie}`);else{Fe=!0;try{let tt=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(Ie);tt.addEventListener("error",this.e.onSourceBufferError),tt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(tt){ge.e(this.TAG,tt.message),this._emitter.emit(Yn.ERROR,{code:tt.code,msg:tt.message});return}}this._mimeTypes[Pe.type]=Ie}_e||this._pendingSegments[Pe.type].push(Pe),Fe||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(ae){let _e=ae;this._pendingSegments[_e.type].push(_e),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[_e.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ae){for(let _e in this._sourceBuffers){if(!this._sourceBuffers[_e])continue;let Pe=this._sourceBuffers[_e];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Fe){ge.e(this.TAG,Fe.message)}this._idrList.clear();let Ie=this._pendingSegments[_e];if(Ie.splice(0,Ie.length),this._mediaSource.readyState!=="closed"){for(let Fe=0;Fe<Pe.buffered.length;Fe++){let tt=Pe.buffered.start(Fe),ht=Pe.buffered.end(Fe);this._pendingRemoveRanges[_e].push({start:tt,end:ht})}if(Pe.updating||this._doRemoveRanges(),b.safari){let Fe=this._lastInitSegments[_e];Fe&&(this._pendingSegments[_e].push(Fe),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let ae=this._mediaSource,_e=this._sourceBuffers;if(!ae||ae.readyState!=="open"){ae&&ae.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}_e.video&&_e.video.updating||_e.audio&&_e.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ae.endOfStream())}getNearestKeyframe(ae){return this._idrList.getLastSyncPointBeforeDts(ae)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let ae=this._mediaElement.currentTime;for(let _e in this._sourceBuffers){let Pe=this._sourceBuffers[_e];if(Pe){let Ie=Pe.buffered;if(Ie.length>=1&&ae-Ie.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ae=this._mediaElement.currentTime;for(let _e in this._sourceBuffers){let Pe=this._sourceBuffers[_e];if(Pe){let Ie=Pe.buffered,Fe=!1;for(let tt=0;tt<Ie.length;tt++){let ht=Ie.start(tt),on=Ie.end(tt);if(ht<=ae&&ae<on+3){if(ae-ht>=this._config.autoCleanupMaxBackwardDuration){Fe=!0;let zt=ae-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[_e].push({start:ht,end:zt})}}else on<ae&&(Fe=!0,this._pendingRemoveRanges[_e].push({start:ht,end:on}))}Fe&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let ae=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||ae.video&&ae.video.updating||ae.audio&&ae.audio.updating)return;let _e=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(_e)||Pe>_e)&&(ge.v(this.TAG,`Update MediaSource duration from ${_e} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ae in this._pendingRemoveRanges){if(!this._sourceBuffers[ae]||this._sourceBuffers[ae].updating)continue;let _e=this._sourceBuffers[ae],Pe=this._pendingRemoveRanges[ae];for(;Pe.length&&!_e.updating;){let Ie=Pe.shift();_e.remove(Ie.start,Ie.end)}}}_doAppendSegments(){let ae=this._pendingSegments;for(let _e in ae)if(!(!this._sourceBuffers[_e]||this._sourceBuffers[_e].updating)&&ae[_e].length>0){let Pe=ae[_e].shift();if(Pe.timestampOffset){let Ie=this._sourceBuffers[_e].timestampOffset,Fe=Pe.timestampOffset/1e3;Math.abs(Ie-Fe)>.1&&(ge.v(this.TAG,`Update MPEG audio timestampOffset from ${Ie} to ${Fe}`),this._sourceBuffers[_e].timestampOffset=Fe),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[_e].appendBuffer(Pe.data),this._isBufferFull=!1,_e==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Ie){this._pendingSegments[_e].unshift(Pe),Ie.code===22?(this._isBufferFull||this._emitter.emit(Yn.BUFFER_FULL),this._isBufferFull=!0):(ge.e(this.TAG,Ie.message),this._emitter.emit(Yn.ERROR,{code:Ie.code,msg:Ie.message}))}}}_onSourceOpen(){if(ge.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let ae=this._pendingSourceBufferInit;for(;ae.length;){let _e=ae.shift();this.appendInitSegment(_e,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Yn.SOURCE_OPEN)}_onSourceEnded(){ge.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){ge.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 ae=this._pendingSegments;return ae.video.length>0||ae.audio.length>0}_hasPendingRemoveRanges(){let ae=this._pendingRemoveRanges;return ae.video.length>0||ae.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(ae){ge.e(this.TAG,`SourceBuffer Error: ${ae}`)}}var ar=mr;const wn={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Cr={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:Be.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Be.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Be.CODEC_UNSUPPORTED};class jn{constructor(ae,_e){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ye()),this._config=ot(),typeof _e=="object"&&Object.assign(this._config,_e),ae.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");ae.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=ae,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(ae,_e){ae===Mt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Mt.MEDIA_INFO,this.mediaInfo)}):ae===Mt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Mt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}attachMediaElement(ae){if(this._mediaElement=ae,ae.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ae.addEventListener("seeking",this.e.onvSeeking),ae.addEventListener("canplay",this.e.onvCanPlay),ae.addEventListener("stalled",this.e.onvStalled),ae.addEventListener("progress",this.e.onvProgress),this._msectl=new ar(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,_e=>{this._emitter.emit(Mt.ERROR,wn.MEDIA_ERROR,Cr.MEDIA_MSE_ERROR,_e)}),this._msectl.attachMediaElement(ae),this._pendingSeekTime!=null)try{ae.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(_e){}}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 Zn(this._mediaDataSource,this._config),this._transmuxer.on(Ct.INIT_SEGMENT,(ae,_e)=>{this._msectl.appendInitSegment(_e)}),this._transmuxer.on(Ct.MEDIA_SEGMENT,(ae,_e)=>{if(this._msectl.appendMediaSegment(_e),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;_e.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(ge.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ct.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Mt.LOADING_COMPLETE)}),this._transmuxer.on(Ct.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Mt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ct.IO_ERROR,(ae,_e)=>{this._emitter.emit(Mt.ERROR,wn.NETWORK_ERROR,ae,_e)}),this._transmuxer.on(Ct.DEMUX_ERROR,(ae,_e)=>{this._emitter.emit(Mt.ERROR,wn.MEDIA_ERROR,ae,{code:-1,msg:_e})}),this._transmuxer.on(Ct.MEDIA_INFO,ae=>{this._mediaInfo=ae,this._emitter.emit(Mt.MEDIA_INFO,Object.assign({},ae))}),this._transmuxer.on(Ct.METADATA_ARRIVED,ae=>{this._emitter.emit(Mt.METADATA_ARRIVED,ae)}),this._transmuxer.on(Ct.SCRIPTDATA_ARRIVED,ae=>{this._emitter.emit(Mt.SCRIPTDATA_ARRIVED,ae)}),this._transmuxer.on(Ct.STATISTICS_INFO,ae=>{this._statisticsInfo=this._fillStatisticsInfo(ae),this._emitter.emit(Mt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ct.RECOMMEND_SEEKPOINT,ae=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ae/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(ae){this._mediaElement.volume=ae}get muted(){return this._mediaElement.muted}set muted(ae){this._mediaElement.muted=ae}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ae){this._mediaElement?this._internalSeek(ae):this._pendingSeekTime=ae}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(ae){if(ae.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ae;let _e=!0,Pe=0,Ie=0;if(this._mediaElement.getVideoPlaybackQuality){let Fe=this._mediaElement.getVideoPlaybackQuality();Pe=Fe.totalVideoFrames,Ie=Fe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Ie=this._mediaElement.webkitDroppedFrameCount):_e=!1;return _e&&(ae.decodedFrames=Pe,ae.droppedFrames=Ie),ae}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ae=this._mediaElement.buffered,_e=this._mediaElement.currentTime,Pe=0,Ie=0;for(let Fe=0;Fe<ae.length;Fe++){let tt=ae.start(Fe),ht=ae.end(Fe);if(tt<=_e&&_e<ht){Pe=tt,Ie=ht;break}}Ie>=_e+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(ge.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){ge.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 ae=this._mediaElement.currentTime,_e=this._mediaElement.buffered,Pe=!1;for(let Ie=0;Ie<_e.length;Ie++){let Fe=_e.start(Ie),tt=_e.end(Ie);if(ae>=Fe&&ae<tt){ae>=tt-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(ge.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(ae){let _e=this._mediaElement.buffered;for(let Pe=0;Pe<_e.length;Pe++){let Ie=_e.start(Pe),Fe=_e.end(Pe);if(ae>=Ie&&ae<Fe)return!0}return!1}_internalSeek(ae){let _e=this._isTimepointBuffered(ae),Pe=!1,Ie=0;if(ae<1&&this._mediaElement.buffered.length>0){let Fe=this._mediaElement.buffered.start(0);(Fe<1&&ae<Fe||b.safari)&&(Pe=!0,Ie=b.safari?.1:Fe)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=Ie;else if(_e){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ae;else{let Fe=this._msectl.getNearestKeyframe(Math.floor(ae*1e3));this._requestSetTime=!0,Fe!=null?this._mediaElement.currentTime=Fe.dts/1e3:this._mediaElement.currentTime=ae}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ae),this._transmuxer.seek(Math.floor(ae*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ae)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let ae=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ae)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ae),this._transmuxer.seek(Math.floor(ae*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ae))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(ae){let _e=this._mediaElement;if(ae||!this._receivedCanPlay||_e.readyState<2){let Pe=_e.buffered;Pe.length>0&&_e.currentTime<Pe.start(0)&&(ge.w(this.TAG,`Playback seems stuck at ${_e.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(ae){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(ae){let _e=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(_e<1&&Pe.length>0){let Ie=Pe.start(0);if(Ie<1&&_e<Ie||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:Ie;return}}if(this._isTimepointBuffered(_e)){if(this._alwaysSeekKeyframe){let Ie=this._msectl.getNearestKeyframe(Math.floor(_e*1e3));Ie!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ie.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:_e,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(ae){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(ae){this._checkAndResumeStuckPlayback(!0)}_onvProgress(ae){this._checkAndResumeStuckPlayback()}}var Tn=jn;class or{constructor(ae,_e){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(ye()),this._config=ot(),typeof _e=="object"&&Object.assign(this._config,_e),ae.type.toLowerCase()==="flv")throw new se("NativePlayer does't support flv MediaDataSource input!");if(ae.hasOwnProperty("segments"))throw new se(`NativePlayer(${ae.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=ae,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ae,_e){ae===Mt.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Mt.MEDIA_INFO,this.mediaInfo)}):ae===Mt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Mt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ae,_e)}off(ae,_e){this._emitter.removeListener(ae,_e)}attachMediaElement(ae){if(this._mediaElement=ae,ae.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ae.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(_e){}}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(ae){this._mediaElement.volume=ae}get muted(){return this._mediaElement.muted}set muted(ae){this._mediaElement.muted=ae}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ae){this._mediaElement?this._mediaElement.currentTime=ae:this._pendingSeekTime=ae}get mediaInfo(){let _e={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(_e.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(_e.width=this._mediaElement.videoWidth,_e.height=this._mediaElement.videoHeight)),_e}get statisticsInfo(){let ae={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ae;let _e=!0,Pe=0,Ie=0;if(this._mediaElement.getVideoPlaybackQuality){let Fe=this._mediaElement.getVideoPlaybackQuality();Pe=Fe.totalVideoFrames,Ie=Fe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Ie=this._mediaElement.webkitDroppedFrameCount):_e=!1;return _e&&(ae.decodedFrames=Pe,ae.droppedFrames=Ie),ae}_onvLoadedMetadata(ae){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Mt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Mt.STATISTICS_INFO,this.statisticsInfo)}}var Dr=or;fe.install();function Nr(Qt,ae){let _e=Qt;if(_e==null||typeof _e!="object")throw new se("MediaDataSource must be an javascript object!");if(!_e.hasOwnProperty("type"))throw new se("MediaDataSource must has type field to indicate video file type!");switch(_e.type){case"flv":return new Tn(_e,ae);default:return new Dr(_e,ae)}}function Rr(){return vt.supportMSEH264Playback()}function Fr(){return vt.getFeatureList()}let qn={};qn.createPlayer=Nr,qn.isSupported=Rr,qn.getFeatureList=Fr,qn.BaseLoader=y,qn.LoaderStatus=oe,qn.LoaderErrors=ne,qn.Events=Mt,qn.ErrorTypes=wn,qn.ErrorDetails=Cr,qn.FlvPlayer=Tn,qn.NativePlayer=Dr,qn.LoggingControl=et,Object.defineProperty(qn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var sr=qn},50371:function(gt,Ve){"use strict";function ee(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let fe=1;fe<arguments.length;fe++){const be=fe<0||arguments.length<=fe?void 0:arguments[fe];be&&Object.keys(be).forEach(ye=>{const he=be[ye];he!==void 0&&(te[ye]=he)})}return te}Ve.Z=ee},13845:function(gt,Ve,ee){"use strict";ee.d(Ve,{F:function(){return te},Z:function(){return fe}});function te(be){return be!=null&&be===be.window}function fe(be,ye){var he,ge;if(typeof window=="undefined")return 0;const ie=ye?"scrollTop":"scrollLeft";let ue=0;return te(be)?ue=be[ye?"pageYOffset":"pageXOffset"]:be instanceof Document?ue=be.documentElement[ie]:(be instanceof HTMLElement||be)&&(ue=be[ie]),be&&!te(be)&&typeof ue!="number"&&(ue=(ge=((he=be.ownerDocument)!==null&&he!==void 0?he:be).documentElement)===null||ge===void 0?void 0:ge[ie]),ue}},56762:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return fe}});var te=ee(59301);function fe(){const[,be]=te.useReducer(ye=>ye+1,0);return be}},68031:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ye}});var te=ee(16089);function fe(he,ge,ie,ue){const ce=ie-ge;return he/=ue/2,he<1?ce/2*he*he*he+ge:ce/2*((he-=2)*he*he+2)+ge}var be=ee(13845);function ye(he){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:ue,duration:ce=450}=ge,me=ie(),se=(0,be.Z)(me,!0),pe=Date.now(),oe=()=>{const y=Date.now()-pe,a=fe(y>ce?ce:y,se,he,ce);(0,be.F)(me)?me.scrollTo(window.pageXOffset,a):me instanceof Document||me.constructor.name==="HTMLDocument"?me.documentElement.scrollTop=a:me.scrollTop=a,y<ce?(0,te.Z)(oe):typeof ue=="function"&&ue()};(0,te.Z)(oe)}},24905:function(gt,Ve,ee){"use strict";ee.d(Ve,{default:function(){return ve}});var te=ee(92310),fe=ee.n(te),be=ee(5630),ye=ee(59301),he=ee(36355),ge=ee(1684),ie=ee(32441),ce=ye.createContext(null),me=ee(98447),se=ee(14088),pe=ee(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 xe=0,je=Object.getOwnPropertySymbols(Se);xe<je.length;xe++)Le.indexOf(je[xe])<0&&Object.prototype.propertyIsEnumerable.call(Se,je[xe])&&(Ee[je[xe]]=Se[je[xe]]);return Ee};const ne=(Se,Le)=>{var Ee;const{prefixCls:je,className:xe,rootClassName:lt,children:Ye,indeterminate:ft=!1,style:Me,onMouseEnter:He,onMouseLeave:Ne,skipGroup:ot=!1,disabled:Ze}=Se,vt=oe(Se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Pt,direction:Mt,checkbox:At}=ye.useContext(he.E_),et=ye.useContext(ce),{isFormItemInput:Qe}=ye.useContext(ie.aM),Et=ye.useContext(ge.Z),Kt=(Ee=(et==null?void 0:et.disabled)||Ze)!==null&&Ee!==void 0?Ee:Et,bt=ye.useRef(vt.value);ye.useEffect(()=>{et==null||et.registerValue(vt.value)},[]),ye.useEffect(()=>{if(!ot)return vt.value!==bt.current&&(et==null||et.cancelValue(bt.current),et==null||et.registerValue(vt.value),bt.current=vt.value),()=>et==null?void 0:et.cancelValue(vt.value)},[vt.value]);const Wt=Pt("checkbox",je),[$e,St]=(0,me.ZP)(Wt),xt=Object.assign({},vt);et&&!ot&&(xt.onChange=function(){vt.onChange&&vt.onChange.apply(vt,arguments),et.toggleOption&&et.toggleOption({label:Ye,value:vt.value})},xt.name=et.name,xt.checked=et.value.includes(vt.value));const sn=fe()(`${Wt}-wrapper`,{[`${Wt}-rtl`]:Mt==="rtl",[`${Wt}-wrapper-checked`]:xt.checked,[`${Wt}-wrapper-disabled`]:Kt,[`${Wt}-wrapper-in-form-item`]:Qe},At==null?void 0:At.className,xe,lt,St),Vt=fe()({[`${Wt}-indeterminate`]:ft},pe.A,St),st=ft?"mixed":void 0;return $e(ye.createElement(se.Z,{component:"Checkbox",disabled:Kt},ye.createElement("label",{className:sn,style:Object.assign(Object.assign({},At==null?void 0:At.style),Me),onMouseEnter:He,onMouseLeave:Ne},ye.createElement(be.Z,Object.assign({"aria-checked":st},xt,{prefixCls:Wt,className:Vt,disabled:Kt,ref:Le})),Ye!==void 0&&ye.createElement("span",null,Ye))))};var a=ye.forwardRef(ne),E=ee(94480),b=ee(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 xe=0,je=Object.getOwnPropertySymbols(Se);xe<je.length;xe++)Le.indexOf(je[xe])<0&&Object.prototype.propertyIsEnumerable.call(Se,je[xe])&&(Ee[je[xe]]=Se[je[xe]]);return Ee};const z=(Se,Le)=>{const{defaultValue:Ee,children:je,options:xe=[],prefixCls:lt,className:Ye,rootClassName:ft,style:Me,onChange:He}=Se,Ne=x(Se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ot,direction:Ze}=ye.useContext(he.E_),[vt,Pt]=ye.useState(Ne.value||Ee||[]),[Mt,At]=ye.useState([]);ye.useEffect(()=>{"value"in Ne&&Pt(Ne.value||[])},[Ne.value]);const et=ye.useMemo(()=>xe.map(ct=>typeof ct=="string"||typeof ct=="number"?{label:ct,value:ct}:ct),[xe]),Qe=ct=>{At(Ge=>Ge.filter(Be=>Be!==ct))},Et=ct=>{At(Ge=>[].concat((0,E.Z)(Ge),[ct]))},Kt=ct=>{const Ge=vt.indexOf(ct.value),Be=(0,E.Z)(vt);Ge===-1?Be.push(ct.value):Be.splice(Ge,1),"value"in Ne||Pt(Be),He==null||He(Be.filter(it=>Mt.includes(it)).sort((it,wt)=>{const Ae=et.findIndex(Ke=>Ke.value===it),Re=et.findIndex(Ke=>Ke.value===wt);return Ae-Re}))},bt=ot("checkbox",lt),Wt=`${bt}-group`,[$e,St]=(0,me.ZP)(bt),xt=(0,b.Z)(Ne,["value","disabled"]),sn=xe.length?et.map(ct=>ye.createElement(a,{prefixCls:bt,key:ct.value.toString(),disabled:"disabled"in ct?ct.disabled:Ne.disabled,value:ct.value,checked:vt.includes(ct.value),onChange:ct.onChange,className:`${Wt}-item`,style:ct.style,title:ct.title},ct.label)):je,Vt={toggleOption:Kt,value:vt,disabled:Ne.disabled,name:Ne.name,registerValue:Et,cancelValue:Qe},st=fe()(Wt,{[`${Wt}-rtl`]:Ze==="rtl"},Ye,ft,St);return $e(ye.createElement("div",Object.assign({className:st,style:Me},xt,{ref:Le}),ye.createElement(ce.Provider,{value:Vt},sn)))},re=ye.forwardRef(z);var le=ye.memo(re);const de=a;de.Group=le,de.__ANT_CHECKBOX=!0;var ve=de},98447:function(gt,Ve,ee){"use strict";ee.d(Ve,{C2:function(){return he}});var te=ee(17313),fe=ee(37613),be=ee(83116);const ye=ge=>{const{checkboxCls:ie}=ge,ue=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,te.Wf)(ge)),{display:"inline-flex",flexWrap:"wrap",columnGap:ge.marginXS,[`> ${ge.antCls}-row`]:{flex:1}}),[ue]:Object.assign(Object.assign({},(0,te.Wf)(ge)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ue}`]:{marginInlineStart:0},[`&${ue}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,te.Wf)(ge)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ge.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,te.oN)(ge))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ge.checkboxSize,height:ge.checkboxSize,direction:"ltr",backgroundColor:ge.colorBgContainer,border:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`,borderRadius:ge.borderRadiusSM,borderCollapse:"separate",transition:`all ${ge.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ge.checkboxSize/14*5,height:ge.checkboxSize/14*8,border:`${ge.lineWidthBold}px solid ${ge.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ge.motionDurationFast} ${ge.motionEaseInBack}, opacity ${ge.motionDurationFast}`}},"& + span":{paddingInlineStart:ge.paddingXS,paddingInlineEnd:ge.paddingXS}})},{[`
|
|
|
${ue}:not(${ue}-disabled),
|
|
|
${ie}:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{borderColor:ge.colorPrimary}},[`${ue}:not(${ue}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:ge.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:ge.colorPrimary,borderColor:ge.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ge.motionDurationMid} ${ge.motionEaseOutBack} ${ge.motionDurationFast}`}}},[`
|
|
|
${ue}-checked:not(${ue}-disabled),
|
|
|
${ie}-checked:not(${ie}-disabled)
|
|
|
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:ge.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:ge.colorBgContainer,borderColor:ge.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ge.fontSizeLG/2,height:ge.fontSizeLG/2,backgroundColor:ge.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ue}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:ge.colorBgContainerDisabled,borderColor:ge.colorBorder,"&:after":{borderColor:ge.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ge.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:ge.colorTextDisabled}}}]};function he(ge,ie){const ue=(0,fe.TS)(ie,{checkboxCls:`.${ge}`,checkboxSize:ie.controlInteractiveSize});return[ye(ue)]}Ve.ZP=(0,be.Z)("Checkbox",(ge,ie)=>{let{prefixCls:ue}=ie;return[he(ue,ge)]})},43428:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return $e}});var te=ee(92310),fe=ee.n(te),be=ee(33885),ye=ee(42978),he=ee(43403),ge=ee(34280),ie=ee(59301),ue=ie.createContext(null),ce=ie.createContext({}),me=ue,se=ee(20068),pe=ee(54476),oe=ee(77900),ne=ee(10228),y=ee(26112),a=ee(70425),E=function(xt){var sn=xt.prefixCls,Vt=xt.className,st=xt.style,ct=xt.children,Ge=xt.containerRef,Be=xt.id,it=xt.onMouseEnter,wt=xt.onMouseOver,Ae=xt.onMouseLeave,Re=xt.onClick,Ke=xt.onKeyDown,ke=xt.onKeyUp,ze={onMouseEnter:it,onMouseOver:wt,onMouseLeave:Ae,onClick:Re,onKeyDown:Ke,onKeyUp:ke},at=ie.useContext(ce),It=at.panel,Dt=(0,a.useComposeRef)(It,Ge);return ie.createElement(ie.Fragment,null,ie.createElement("div",(0,pe.Z)({id:Be,className:fe()("".concat(sn,"-content"),Vt),style:(0,be.Z)({},st),"aria-modal":"true",role:"dialog",ref:Dt},ze),ct))},b=E,x=ee(48736);function z(St){return typeof St=="string"&&String(Number(St))===St?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(St)):St}function re(St){warning(!("wrapperClassName"in St),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!St.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var le={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function de(St,xt){var sn,Vt,st,ct,Ge=St.prefixCls,Be=St.open,it=St.placement,wt=St.inline,Ae=St.push,Re=St.forceRender,Ke=St.autoFocus,ke=St.keyboard,ze=St.rootClassName,at=St.rootStyle,It=St.zIndex,Dt=St.className,Ft=St.id,Tt=St.style,Gt=St.motion,yt=St.width,un=St.height,ln=St.children,Ct=St.contentWrapperStyle,pn=St.mask,Sn=St.maskClosable,Gn=St.maskMotion,Ln=St.maskClassName,Wn=St.maskStyle,Zn=St.afterOpenChange,Jn=St.onClose,Yn=St.onMouseEnter,mr=St.onMouseOver,ar=St.onMouseLeave,wn=St.onClick,Cr=St.onKeyDown,jn=St.onKeyUp,Tn=ie.useRef(),or=ie.useRef(),Dr=ie.useRef();ie.useImperativeHandle(xt,function(){return Tn.current});var Nr=function(mt){var Bt=mt.keyCode,ut=mt.shiftKey;switch(Bt){case ne.Z.TAB:{if(Bt===ne.Z.TAB){if(!ut&&document.activeElement===Dr.current){var Ht;(Ht=or.current)===null||Ht===void 0||Ht.focus({preventScroll:!0})}else if(ut&&document.activeElement===or.current){var Yt;(Yt=Dr.current)===null||Yt===void 0||Yt.focus({preventScroll:!0})}}break}case ne.Z.ESC:{Jn&&ke&&(mt.stopPropagation(),Jn(mt));break}}};ie.useEffect(function(){if(Be&&Ke){var _t;(_t=Tn.current)===null||_t===void 0||_t.focus({preventScroll:!0})}},[Be]);var Rr=ie.useState(!1),Fr=(0,ye.Z)(Rr,2),qn=Fr[0],sr=Fr[1],Qt=ie.useContext(me),ae;Ae===!1?ae={distance:0}:Ae===!0?ae={}:ae=Ae||{};var _e=(sn=(Vt=(st=ae)===null||st===void 0?void 0:st.distance)!==null&&Vt!==void 0?Vt:Qt==null?void 0:Qt.pushDistance)!==null&&sn!==void 0?sn:180,Pe=ie.useMemo(function(){return{pushDistance:_e,push:function(){sr(!0)},pull:function(){sr(!1)}}},[_e]);ie.useEffect(function(){if(Be){var _t;Qt==null||(_t=Qt.push)===null||_t===void 0||_t.call(Qt)}else{var mt;Qt==null||(mt=Qt.pull)===null||mt===void 0||mt.call(Qt)}},[Be]),ie.useEffect(function(){return function(){var _t;Qt==null||(_t=Qt.pull)===null||_t===void 0||_t.call(Qt)}},[]);var Ie=pn&&ie.createElement(oe.default,(0,pe.Z)({key:"mask"},Gn,{visible:Be}),function(_t,mt){var Bt=_t.className,ut=_t.style;return ie.createElement("div",{className:fe()("".concat(Ge,"-mask"),Bt,Ln),style:(0,be.Z)((0,be.Z)({},ut),Wn),onClick:Sn&&Be?Jn:void 0,ref:mt})}),Fe=typeof Gt=="function"?Gt(it):Gt,tt={};if(qn&&_e)switch(it){case"top":tt.transform="translateY(".concat(_e,"px)");break;case"bottom":tt.transform="translateY(".concat(-_e,"px)");break;case"left":tt.transform="translateX(".concat(_e,"px)");break;default:tt.transform="translateX(".concat(-_e,"px)");break}it==="left"||it==="right"?tt.width=z(yt):tt.height=z(un);var ht={onMouseEnter:Yn,onMouseOver:mr,onMouseLeave:ar,onClick:wn,onKeyDown:Cr,onKeyUp:jn},on=ie.createElement(oe.default,(0,pe.Z)({key:"panel"},Fe,{visible:Be,forceRender:Re,onVisibleChanged:function(mt){Zn==null||Zn(mt)},removeOnLeave:!1,leavedClassName:"".concat(Ge,"-content-wrapper-hidden")}),function(_t,mt){var Bt=_t.className,ut=_t.style;return ie.createElement("div",(0,pe.Z)({className:fe()("".concat(Ge,"-content-wrapper"),Bt),style:(0,be.Z)((0,be.Z)((0,be.Z)({},tt),ut),Ct)},(0,y.Z)(St,{data:!0})),ie.createElement(b,(0,pe.Z)({id:Ft,containerRef:mt,prefixCls:Ge,className:Dt,style:Tt},ht),ln))}),zt=(0,be.Z)({},at);return It&&(zt.zIndex=It),ie.createElement(me.Provider,{value:Pe},ie.createElement("div",{className:fe()(Ge,"".concat(Ge,"-").concat(it),ze,(ct={},(0,se.Z)(ct,"".concat(Ge,"-open"),Be),(0,se.Z)(ct,"".concat(Ge,"-inline"),wt),ct)),style:zt,tabIndex:-1,ref:Tn,onKeyDown:Nr},Ie,ie.createElement("div",{tabIndex:0,ref:or,style:le,"aria-hidden":"true","data-sentinel":"start"}),on,ie.createElement("div",{tabIndex:0,ref:Dr,style:le,"aria-hidden":"true","data-sentinel":"end"})))}var ve=ie.forwardRef(de),Se=ve,Le=function(xt){var sn=xt.open,Vt=sn===void 0?!1:sn,st=xt.prefixCls,ct=st===void 0?"rc-drawer":st,Ge=xt.placement,Be=Ge===void 0?"right":Ge,it=xt.autoFocus,wt=it===void 0?!0:it,Ae=xt.keyboard,Re=Ae===void 0?!0:Ae,Ke=xt.width,ke=Ke===void 0?378:Ke,ze=xt.mask,at=ze===void 0?!0:ze,It=xt.maskClosable,Dt=It===void 0?!0:It,Ft=xt.getContainer,Tt=xt.forceRender,Gt=xt.afterOpenChange,yt=xt.destroyOnClose,un=xt.onMouseEnter,ln=xt.onMouseOver,Ct=xt.onMouseLeave,pn=xt.onClick,Sn=xt.onKeyDown,Gn=xt.onKeyUp,Ln=xt.panelRef,Wn=ie.useState(!1),Zn=(0,ye.Z)(Wn,2),Jn=Zn[0],Yn=Zn[1],mr=ie.useState(!1),ar=(0,ye.Z)(mr,2),wn=ar[0],Cr=ar[1];(0,ge.Z)(function(){Cr(!0)},[]);var jn=wn?Vt:!1,Tn=ie.useRef(),or=ie.useRef();(0,ge.Z)(function(){jn&&(or.current=document.activeElement)},[jn]);var Dr=function(sr){var Qt;if(Yn(sr),Gt==null||Gt(sr),!sr&&or.current&&!((Qt=Tn.current)!==null&&Qt!==void 0&&Qt.contains(or.current))){var ae;(ae=or.current)===null||ae===void 0||ae.focus({preventScroll:!0})}},Nr=ie.useMemo(function(){return{panel:Ln}},[Ln]);if(!Tt&&!Jn&&!jn&&yt)return null;var Rr={onMouseEnter:un,onMouseOver:ln,onMouseLeave:Ct,onClick:pn,onKeyDown:Sn,onKeyUp:Gn},Fr=(0,be.Z)((0,be.Z)({},xt),{},{open:jn,prefixCls:ct,placement:Be,autoFocus:wt,keyboard:Re,width:ke,mask:at,maskClosable:Dt,inline:Ft===!1,afterOpenChange:Dr,ref:Tn},Rr);return ie.createElement(ce.Provider,{value:Nr},ie.createElement(he.Z,{open:jn||Tt||Jn,autoDestroy:!1,getContainer:Ft,autoLock:at&&(jn||Jn)},ie.createElement(Se,Fr)))},Ee=Le,je=Ee,xe=ee(62892),lt=ee(36355),Ye=ee(32441),ft=ee(47729),He=St=>{const{prefixCls:xt,title:sn,footer:Vt,extra:st,closeIcon:ct,closable:Ge,onClose:Be,headerStyle:it,drawerStyle:wt,bodyStyle:Ae,footerStyle:Re,children:Ke}=St,ke=ie.useCallback(Ft=>ie.createElement("button",{type:"button",onClick:Be,"aria-label":"Close",className:`${xt}-close`},Ft),[Be]),[ze,at]=(0,ft.Z)(Ge,ct,ke,void 0,!0),It=ie.useMemo(()=>!sn&&!ze?null:ie.createElement("div",{style:it,className:fe()(`${xt}-header`,{[`${xt}-header-close-only`]:ze&&!sn&&!st})},ie.createElement("div",{className:`${xt}-header-title`},at,sn&&ie.createElement("div",{className:`${xt}-title`},sn)),st&&ie.createElement("div",{className:`${xt}-extra`},st)),[ze,at,st,it,xt,sn]),Dt=ie.useMemo(()=>{if(!Vt)return null;const Ft=`${xt}-footer`;return ie.createElement("div",{className:Ft,style:Re},Vt)},[Vt,Re,xt]);return ie.createElement("div",{className:`${xt}-wrapper-body`,style:wt},It,ie.createElement("div",{className:`${xt}-body`,style:Ae},Ke),Dt)},Ne=ee(33234),ot=ee(83116),Ze=ee(37613),Pt=St=>{const{componentCls:xt,motionDurationSlow:sn}=St,Vt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${sn}`}}};return{[xt]:{[`${xt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${sn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${xt}-panel-motion`]:{"&-left":[Vt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Vt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Vt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Vt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Mt=St=>{const{componentCls:xt,zIndexPopup:sn,colorBgMask:Vt,colorBgElevated:st,motionDurationSlow:ct,motionDurationMid:Ge,padding:Be,paddingLG:it,fontSizeLG:wt,lineHeightLG:Ae,lineWidth:Re,lineType:Ke,colorSplit:ke,marginSM:ze,colorIcon:at,colorIconHover:It,colorText:Dt,fontWeightStrong:Ft,footerPaddingBlock:Tt,footerPaddingInline:Gt}=St,yt=`${xt}-content-wrapper`;return{[xt]:{position:"fixed",inset:0,zIndex:sn,pointerEvents:"none","&-pure":{position:"relative",background:st,[`&${xt}-left`]:{boxShadow:St.boxShadowDrawerLeft},[`&${xt}-right`]:{boxShadow:St.boxShadowDrawerRight},[`&${xt}-top`]:{boxShadow:St.boxShadowDrawerUp},[`&${xt}-bottom`]:{boxShadow:St.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${xt}-mask`]:{position:"absolute",inset:0,zIndex:sn,background:Vt,pointerEvents:"auto"},[yt]:{position:"absolute",zIndex:sn,maxWidth:"100vw",transition:`all ${ct}`,"&-hidden":{display:"none"}},[`&-left > ${yt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:St.boxShadowDrawerLeft},[`&-right > ${yt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:St.boxShadowDrawerRight},[`&-top > ${yt}`]:{top:0,insetInline:0,boxShadow:St.boxShadowDrawerUp},[`&-bottom > ${yt}`]:{bottom:0,insetInline:0,boxShadow:St.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:`${Be}px ${it}px`,fontSize:wt,lineHeight:Ae,borderBottom:`${Re}px ${Ke} ${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:Ft,fontSize:wt,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:It,textDecoration:"none"}},[`${xt}-title`]:{flex:1,margin:0,color:Dt,fontWeight:St.fontWeightStrong,fontSize:wt,lineHeight:Ae},[`${xt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:it,overflow:"auto"},[`${xt}-footer`]:{flexShrink:0,padding:`${Tt}px ${Gt}px`,borderTop:`${Re}px ${Ke} ${ke}`},"&-rtl":{direction:"rtl"}}}};var At=(0,ot.Z)("Drawer",St=>{const xt=(0,Ze.TS)(St,{});return[Mt(xt),Pt(xt)]},St=>({zIndexPopup:St.zIndexPopupBase,footerPaddingBlock:St.paddingXS,footerPaddingInline:St.padding})),et=ee(11575),Qe=function(St,xt){var sn={};for(var Vt in St)Object.prototype.hasOwnProperty.call(St,Vt)&&xt.indexOf(Vt)<0&&(sn[Vt]=St[Vt]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Vt=Object.getOwnPropertySymbols(St);st<Vt.length;st++)xt.indexOf(Vt[st])<0&&Object.prototype.propertyIsEnumerable.call(St,Vt[st])&&(sn[Vt[st]]=St[Vt[st]]);return sn};const Et=null,Kt={distance:180},bt=St=>{var xt;const{rootClassName:sn,width:Vt,height:st,size:ct="default",mask:Ge=!0,push:Be=Kt,open:it,afterOpenChange:wt,onClose:Ae,prefixCls:Re,getContainer:Ke,style:ke,className:ze,visible:at,afterVisibleChange:It}=St,Dt=Qe(St,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ft,getPrefixCls:Tt,direction:Gt,drawer:yt}=ie.useContext(lt.E_),un=Tt("drawer",Re),[ln,Ct]=At(un),pn=Ke===void 0&&Ft?()=>Ft(document.body):Ke,Sn=fe()({"no-mask":!Ge,[`${un}-rtl`]:Gt==="rtl"},sn,Ct),Gn=ie.useMemo(()=>Vt!=null?Vt:ct==="large"?736:378,[Vt,ct]),Ln=ie.useMemo(()=>st!=null?st:ct==="large"?736:378,[st,ct]),Wn={motionName:(0,xe.m)(un,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Zn=Yn=>({motionName:(0,xe.m)(un,`panel-motion-${Yn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Jn=(0,et.H)();return ln(ie.createElement(Ne.BR,null,ie.createElement(Ye.Ux,{status:!0,override:!0},ie.createElement(je,Object.assign({prefixCls:un,onClose:Ae,maskMotion:Wn,motion:Zn},Dt,{open:it!=null?it:at,mask:Ge,push:Be,width:Gn,height:Ln,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),ke),className:fe()(yt==null?void 0:yt.className,ze),rootClassName:Sn,getContainer:pn,afterOpenChange:wt!=null?wt:It,panelRef:Jn}),ie.createElement(He,Object.assign({prefixCls:un},Dt,{onClose:Ae}))))))},Wt=St=>{const{prefixCls:xt,style:sn,className:Vt,placement:st="right"}=St,ct=Qe(St,["prefixCls","style","className","placement"]),{getPrefixCls:Ge}=ie.useContext(lt.E_),Be=Ge("drawer",xt),[it,wt]=At(Be),Ae=fe()(Be,`${Be}-pure`,`${Be}-${st}`,wt,Vt);return it(ie.createElement("div",{className:Ae,style:sn},ie.createElement(He,Object.assign({prefixCls:Be},ct))))};bt._InternalPanelDoNotUseOrYouWillBeFired=Wt;var $e=bt},91857:function(gt,Ve,ee){"use strict";var te=ee(59301),fe=ee(38819),be=ee(92310),ye=ee.n(be),he=ee(31561),ge=ee(70425),ie=ee(18929),ue=ee(2738),ce=ee(79676),me=ee(53487),se=ee(92343),pe=ee(36355),oe=ee(20834),ne=ee(40875),y=ee(88088),a=ee(47211);const E=null,b=le=>{const{menu:de,arrow:ve,prefixCls:Se,children:Le,trigger:Ee,disabled:je,dropdownRender:xe,getPopupContainer:lt,overlayClassName:Ye,rootClassName:ft,open:Me,onOpenChange:He,visible:Ne,onVisibleChange:ot,mouseEnterDelay:Ze=.15,mouseLeaveDelay:vt=.1,autoAdjustOverflow:Pt=!0,placement:Mt="",overlay:At,transitionName:et}=le,{getPopupContainer:Qe,getPrefixCls:Et,direction:Kt}=te.useContext(pe.E_),bt=te.useMemo(()=>{const ze=Et();return et!==void 0?et:Mt.includes("top")?`${ze}-slide-down`:`${ze}-slide-up`},[Et,Mt,et]),Wt=te.useMemo(()=>Mt?Mt.includes("Center")?Mt.slice(0,Mt.indexOf("Center")):Mt:Kt==="rtl"?"bottomRight":"bottomLeft",[Mt,Kt]),$e=Et("dropdown",Se),[St,xt]=(0,a.Z)($e),[,sn]=(0,y.Z)(),Vt=te.Children.only(Le),st=(0,se.Tm)(Vt,{className:ye()(`${$e}-trigger`,{[`${$e}-rtl`]:Kt==="rtl"},Vt.props.className),disabled:je}),ct=je?[]:Ee;let Ge;ct&&ct.includes("contextMenu")&&(Ge=!0);const[Be,it]=(0,ie.Z)(!1,{value:Me!=null?Me:Ne}),wt=(0,ge.useEvent)(ze=>{He==null||He(ze),ot==null||ot(ze),it(ze)}),Ae=ye()(Ye,ft,xt,{[`${$e}-rtl`]:Kt==="rtl"}),Re=(0,ce.Z)({arrowPointAtCenter:typeof ve=="object"&&ve.pointAtCenter,autoAdjustOverflow:Pt,offset:sn.marginXXS,arrowWidth:ve?sn.sizePopupArrow:0,borderRadius:sn.borderRadius}),Ke=te.useCallback(()=>{it(!1)},[]),ke=()=>{let ze;return de!=null&&de.items?ze=te.createElement(oe.default,Object.assign({},de)):typeof At=="function"?ze=At():ze=At,xe&&(ze=xe(ze)),ze=te.Children.only(typeof ze=="string"?te.createElement("span",null,ze):ze),te.createElement(ne.J,{prefixCls:`${$e}-menu`,expandIcon:te.createElement("span",{className:`${$e}-menu-submenu-arrow`},te.createElement(fe.Z,{className:`${$e}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ke,validator:at=>{let{mode:It}=at}},ze)};return St(te.createElement(he.Z,Object.assign({alignPoint:Ge},(0,ue.Z)(le,["rootClassName"]),{mouseEnterDelay:Ze,mouseLeaveDelay:vt,visible:Be,builtinPlacements:Re,arrow:!!ve,overlayClassName:Ae,prefixCls:$e,getPopupContainer:lt||Qe,transitionName:bt,trigger:ct,overlay:ke,placement:Wt,onVisibleChange:wt}),st))};function x(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,me.Z)(b,"dropdown",le=>le,x),re=le=>te.createElement(z,Object.assign({},le),te.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=re,Ve.Z=b},38854:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return y}});var te=ee(91857),fe=ee(92310),be=ee.n(fe),ye=ee(59301),he=ee(18785),ge=ee(3113),ie=ee(36355),ue=ee(81327),ce=ee(33234),me=ee(47211),se=function(a,E){var b={};for(var x in a)Object.prototype.hasOwnProperty.call(a,x)&&E.indexOf(x)<0&&(b[x]=a[x]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(a);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(a,x[z])&&(b[x[z]]=a[x[z]]);return b};const pe=a=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ye.useContext(ie.E_),{prefixCls:z,type:re="default",danger:le,disabled:de,loading:ve,onClick:Se,htmlType:Le,children:Ee,className:je,menu:xe,arrow:lt,autoFocus:Ye,overlay:ft,trigger:Me,align:He,open:Ne,onOpenChange:ot,placement:Ze,getPopupContainer:vt,href:Pt,icon:Mt=ye.createElement(he.Z,null),title:At,buttonsRender:et=ke=>ke,mouseEnterDelay:Qe,mouseLeaveDelay:Et,overlayClassName:Kt,overlayStyle:bt,destroyPopupOnHide:Wt,dropdownRender:$e}=a,St=se(a,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),xt=b("dropdown",z),sn=`${xt}-button`,[Vt,st]=(0,me.Z)(xt),ct={menu:xe,arrow:lt,autoFocus:Ye,align:He,disabled:de,trigger:de?[]:Me,onOpenChange:ot,getPopupContainer:vt||E,mouseEnterDelay:Qe,mouseLeaveDelay:Et,overlayClassName:Kt,overlayStyle:bt,destroyPopupOnHide:Wt,dropdownRender:$e},{compactSize:Ge,compactItemClassnames:Be}=(0,ce.ri)(xt,x),it=be()(sn,Be,je,st);"overlay"in a&&(ct.overlay=ft),"open"in a&&(ct.open=Ne),"placement"in a?ct.placement=Ze:ct.placement=x==="rtl"?"bottomLeft":"bottomRight";const wt=ye.createElement(ge.ZP,{type:re,danger:le,disabled:de,loading:ve,onClick:Se,htmlType:Le,href:Pt,title:At},Ee),Ae=ye.createElement(ge.ZP,{type:re,danger:le,icon:Mt}),[Re,Ke]=et([wt,Ae]);return Vt(ye.createElement(ue.Z.Compact,Object.assign({className:it,size:Ge,block:!0},St),Re,ye.createElement(te.Z,Object.assign({},ct),Ke)))};pe.__ANT_BUTTON=!0;var oe=pe;const ne=te.Z;ne.Button=oe;var y=ne},47211:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return se}});var te=ee(17313),fe=ee(13826),be=ee(92899),ye=ee(29878),he=ee(19447),ge=ee(83116),ie=ee(37613),ce=pe=>{const{componentCls:oe,menuCls:ne,colorError:y,colorTextLightSolid:a}=pe,E=`${ne}-item`;return{[`${oe}, ${oe}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const me=pe=>{const{componentCls:oe,menuCls:ne,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:re,fontSize:le,dropdownEdgeChildPadding:de,colorTextDisabled:ve,fontSizeIcon:Se,controlPaddingHorizontal:Le,colorBgElevated:Ee}=pe;return[{[oe]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:Se}},[`${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:fe.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:fe.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:fe.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:fe.ly}})},(0,he.ZP)(pe,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${oe} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${oe}, ${oe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:de,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary},(0,te.Qy)(pe)),{[`${ne}-item-group-title`]:{padding:`${re}px ${Le}px`,color:pe.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:le,marginInlineEnd:pe.marginXS,fontSize:pe.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:pe.colorText,fontWeight:"normal",fontSize:le,lineHeight:pe.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:pe.borderRadiusSM,"&:hover, &-active":{backgroundColor:pe.controlItemBgHover}},(0,te.Qy)(pe)),{"&-selected":{color:pe.colorPrimary,backgroundColor:pe.controlItemBgActive,"&:hover, &-active":{backgroundColor:pe.controlItemBgActiveHover}},"&-disabled":{color:ve,cursor:"not-allowed","&:hover":{color:ve,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${pe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:pe.colorSplit},[`${oe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:pe.paddingXS,[`${oe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:pe.colorTextDescription,fontSize:Se,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${pe.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:Le+pe.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${oe}-menu-submenu-title`]:{[`&, ${oe}-menu-submenu-arrow-icon`]:{color:ve,backgroundColor:Ee,cursor:"not-allowed"}},[`${ne}-submenu-selected ${oe}-menu-submenu-title`]:{color:pe.colorPrimary}})}},[(0,fe.oN)(pe,"slide-up"),(0,fe.oN)(pe,"slide-down"),(0,be.Fm)(pe,"move-up"),(0,be.Fm)(pe,"move-down"),(0,ye._y)(pe,"zoom-big")]]};var se=(0,ge.Z)("Dropdown",(pe,oe)=>{let{rootPrefixCls:ne}=oe;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:re,borderRadiusLG:le}=pe,de=(E-b*x)/2,{dropdownArrowOffset:ve}=(0,he.fS)({contentRadius:le}),Se=(0,ie.TS)(pe,{menuCls:`${re}-menu`,rootPrefixCls:ne,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ve,dropdownPaddingVertical:de,dropdownEdgeChildPadding:z});return[me(Se),ce(Se)]},pe=>({zIndexPopup:pe.zIndexPopupBase+50}))},8628:function(gt,Ve,ee){"use strict";var te=ee(59301),fe=ee(34280),be=ee(56762),ye=ee(69507);function he(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,te.useRef)({}),ue=(0,be.Z)(),ce=(0,ye.ZP)();return(0,fe.Z)(()=>{const me=ce.subscribe(se=>{ie.current=se,ge&&ue()});return()=>ce.unsubscribe(me)},[]),ie.current}Ve.Z=he},11611:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return zt}});var te=ee(59301),fe=ee(15277),be=ee(92310),ye=ee.n(be),he=ee(54476),ge=ee(33885),ie=ee(20068),ue=ee(42978),ce=ee(76190),me=ee(75931),se=ee(55468),pe=ee(18929),oe=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],ne=te.createContext(null),y=0;function a(_t,mt){var Bt=te.useState(function(){return y+=1,String(y)}),ut=(0,ue.Z)(Bt,1),Ht=ut[0],Yt=te.useContext(ne),Ot={data:mt,canPreview:_t};return te.useEffect(function(){if(Yt)return Yt.register(Ht,Ot)},[]),te.useEffect(function(){Yt&&Yt.register(Ht,Ot)},[_t,mt]),Ht}function E(_t){return new Promise(function(mt){var Bt=document.createElement("img");Bt.onerror=function(){return mt(!1)},Bt.onload=function(){return mt(!0)},Bt.src=_t})}function b(_t){var mt=_t.src,Bt=_t.isCustomPlaceholder,ut=_t.fallback,Ht=(0,te.useState)(Bt?"loading":"normal"),Yt=(0,ue.Z)(Ht,2),Ot=Yt[0],kt=Yt[1],Jt=(0,te.useRef)(!1),cn=Ot==="error";(0,te.useEffect)(function(){E(mt).then(function(hn){hn||kt("error")})},[mt]),(0,te.useEffect)(function(){Bt&&!Jt.current?kt("loading"):cn&&kt("normal")},[mt]);var Mn=function(){kt("normal")},zn=function(Nn){Jt.current=!1,Ot==="loading"&&Nn!=null&&Nn.complete&&(Nn.naturalWidth||Nn.naturalHeight)&&(Jt.current=!0,Mn())},Vn=cn&&ut?{src:ut}:{onLoad:Mn,src:mt};return[zn,Vn,Ot]}var x=ee(86923),z=ee(8224),re=ee(10228),le=ee(48736);function de(_t,mt,Bt,ut){var Ht=mt+Bt,Yt=(Bt-ut)/2;if(Bt>ut){if(mt>0)return(0,ie.Z)({},_t,Yt);if(mt<0&&Ht<ut)return(0,ie.Z)({},_t,-Yt)}else if(mt<0||Ht>ut)return(0,ie.Z)({},_t,mt<0?Yt:-Yt);return{}}function ve(_t,mt,Bt,ut){var Ht=(0,se.g1)(),Yt=Ht.width,Ot=Ht.height,kt=null;return _t<=Yt&&mt<=Ot?kt={x:0,y:0}:(_t>Yt||mt>Ot)&&(kt=(0,ge.Z)((0,ge.Z)({},de("x",Bt,_t,Yt)),de("y",ut,mt,Ot))),kt}var Se=ee(13697),Le=ee(16089),Ee={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function je(_t,mt,Bt,ut){var Ht=(0,te.useRef)(null),Yt=(0,te.useRef)([]),Ot=(0,te.useState)(Ee),kt=(0,ue.Z)(Ot,2),Jt=kt[0],cn=kt[1],Mn=function(Nn){cn(Ee),ut&&!(0,Se.Z)(Ee,Jt)&&ut({transform:Ee,action:Nn})},zn=function(Nn,lr){Ht.current===null&&(Yt.current=[],Ht.current=(0,Le.Z)(function(){cn(function(ir){var Ut=ir;return Yt.current.forEach(function(ur){Ut=(0,ge.Z)((0,ge.Z)({},Ut),ur)}),Ht.current=null,ut==null||ut({transform:Ut,action:lr}),Ut})})),Yt.current.push((0,ge.Z)((0,ge.Z)({},Jt),Nn))},Vn=function(Nn,lr,ir,Ut){var ur=_t.current,to=ur.width,Ar=ur.height,Lr=ur.offsetWidth,Wr=ur.offsetHeight,an=ur.offsetLeft,bn=ur.offsetTop,Pn=Nn,_n=Jt.scale*Nn;_n>Bt?(Pn=Bt/Jt.scale,_n=Bt):_n<mt&&(Pn=mt/Jt.scale,_n=mt);var _r=ir!=null?ir:innerWidth/2,pr=Ut!=null?Ut:innerHeight/2,Or=Pn-1,Kr=Or*to*.5,oo=Or*Ar*.5,uo=Or*(_r-Jt.x-an),bo=Or*(pr-Jt.y-bn),ho=Jt.x-(uo-Kr),Mo=Jt.y-(bo-oo);if(Nn<1&&_n===1){var Eo=Lr*_n,So=Wr*_n,To=(0,se.g1)(),Do=To.width,Er=To.height;Eo<=Do&&So<=Er&&(ho=0,Mo=0)}zn({x:ho,y:Mo,scale:_n},lr)};return{transform:Jt,resetTransform:Mn,updateTransform:zn,dispatchZoomChange:Vn}}var xe=ee(43403),lt=ee(77900),Ye=function(mt){var Bt=mt.visible,ut=mt.maskTransitionName,Ht=mt.getContainer,Yt=mt.prefixCls,Ot=mt.rootClassName,kt=mt.icons,Jt=mt.countRender,cn=mt.showSwitch,Mn=mt.showProgress,zn=mt.current,Vn=mt.transform,hn=mt.count,Nn=mt.scale,lr=mt.minScale,ir=mt.maxScale,Ut=mt.closeIcon,ur=mt.onSwitchLeft,to=mt.onSwitchRight,Ar=mt.onClose,Lr=mt.onZoomIn,Wr=mt.onZoomOut,an=mt.onRotateRight,bn=mt.onRotateLeft,Pn=mt.onFlipX,_n=mt.onFlipY,_r=mt.toolbarRender,pr=(0,te.useContext)(ne),Or=kt.rotateLeft,Kr=kt.rotateRight,oo=kt.zoomIn,uo=kt.zoomOut,bo=kt.close,ho=kt.left,Mo=kt.right,Eo=kt.flipX,So=kt.flipY,To="".concat(Yt,"-operations-operation");te.useEffect(function(){var Vr=function(xo){xo.keyCode===re.Z.ESC&&Ar()};return Bt&&window.addEventListener("keydown",Vr),function(){window.removeEventListener("keydown",Vr)}},[Bt]);var Do=[{icon:So,onClick:_n,type:"flipY"},{icon:Eo,onClick:Pn,type:"flipX"},{icon:Or,onClick:bn,type:"rotateLeft"},{icon:Kr,onClick:an,type:"rotateRight"},{icon:uo,onClick:Wr,type:"zoomOut",disabled:Nn===lr},{icon:oo,onClick:Lr,type:"zoomIn",disabled:Nn===ir}],Er=Do.map(function(Vr){var Jr,xo=Vr.icon,Ao=Vr.onClick,jr=Vr.type,Go=Vr.disabled;return te.createElement("div",{className:ye()(To,(Jr={},(0,ie.Z)(Jr,"".concat(Yt,"-operations-operation-").concat(jr),!0),(0,ie.Z)(Jr,"".concat(Yt,"-operations-operation-disabled"),!!Go),Jr)),onClick:Ao,key:jr},xo)}),wo=te.createElement("div",{className:"".concat(Yt,"-operations")},Er);return te.createElement(lt.default,{visible:Bt,motionName:ut},function(Vr){var Jr=Vr.className,xo=Vr.style;return te.createElement(xe.Z,{open:!0,getContainer:Ht!=null?Ht:document.body},te.createElement("div",{className:ye()("".concat(Yt,"-operations-wrapper"),Jr,Ot),style:xo},Ut===null?null:te.createElement("button",{className:"".concat(Yt,"-close"),onClick:Ar},Ut||bo),cn&&te.createElement(te.Fragment,null,te.createElement("div",{className:ye()("".concat(Yt,"-switch-left"),(0,ie.Z)({},"".concat(Yt,"-switch-left-disabled"),zn===0)),onClick:ur},ho),te.createElement("div",{className:ye()("".concat(Yt,"-switch-right"),(0,ie.Z)({},"".concat(Yt,"-switch-right-disabled"),zn===hn-1)),onClick:to},Mo)),te.createElement("div",{className:"".concat(Yt,"-footer")},Mn&&te.createElement("div",{className:"".concat(Yt,"-progress")},Jt?Jt(zn+1,hn):"".concat(zn+1," / ").concat(hn)),_r?_r(wo,(0,ge.Z)({icons:{flipYIcon:Er[0],flipXIcon:Er[1],rotateLeftIcon:Er[2],rotateRightIcon:Er[3],zoomOutIcon:Er[4],zoomInIcon:Er[5]},actions:{onFlipY:_n,onFlipX:Pn,onRotateLeft:bn,onRotateRight:an,onZoomOut:Wr,onZoomIn:Lr},transform:Vn},pr?{current:zn,total:hn}:{})):wo)))})},ft=Ye,Me=1,He=1,Ne=["fallback","src","imgRef"],ot=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Ze=function(mt){var Bt=mt.fallback,ut=mt.src,Ht=mt.imgRef,Yt=(0,me.Z)(mt,Ne),Ot=b({src:ut,fallback:Bt}),kt=(0,ue.Z)(Ot,2),Jt=kt[0],cn=kt[1];return te.createElement("img",(0,he.Z)({ref:function(zn){Ht.current=zn,Jt(zn)}},Yt,cn))},vt=function(mt){var Bt=mt.prefixCls,ut=mt.src,Ht=mt.alt,Yt=mt.fallback,Ot=mt.movable,kt=Ot===void 0?!0:Ot,Jt=mt.onClose,cn=mt.visible,Mn=mt.icons,zn=Mn===void 0?{}:Mn,Vn=mt.rootClassName,hn=mt.closeIcon,Nn=mt.getContainer,lr=mt.current,ir=lr===void 0?0:lr,Ut=mt.count,ur=Ut===void 0?1:Ut,to=mt.countRender,Ar=mt.scaleStep,Lr=Ar===void 0?.5:Ar,Wr=mt.minScale,an=Wr===void 0?1:Wr,bn=mt.maxScale,Pn=bn===void 0?50:bn,_n=mt.transitionName,_r=_n===void 0?"zoom":_n,pr=mt.maskTransitionName,Or=pr===void 0?"fade":pr,Kr=mt.imageRender,oo=mt.imgCommonProps,uo=mt.toolbarRender,bo=mt.onTransform,ho=mt.onChange,Mo=(0,me.Z)(mt,ot),Eo=(0,te.useRef)(),So=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),To=(0,te.useState)(!1),Do=(0,ue.Z)(To,2),Er=Do[0],wo=Do[1],Vr=(0,te.useContext)(ne),Jr=Vr&&ur>1,xo=Vr&&ur>=1,Ao=je(Eo,an,Pn,bo),jr=Ao.transform,Go=Ao.resetTransform,io=Ao.updateTransform,Uo=Ao.dispatchZoomChange,Io=(0,te.useState)(!0),Yo=(0,ue.Z)(Io,2),Jo=Yo[0],No=Yo[1],Co=jr.rotate,mo=jr.scale,qo=jr.x,Xo=jr.y,ei=ye()((0,ie.Z)({},"".concat(Bt,"-moving"),Er));(0,te.useEffect)(function(){Jo||No(!0)},[Jo]);var ni=function(){Go("close")},ri=function(){Uo(Me+Lr,"zoomIn")},Si=function(){Uo(Me/(Me+Lr),"zoomOut")},Un=function(){io({rotate:Co+90},"rotateRight")},Cn=function(){io({rotate:Co-90},"rotateLeft")},In=function(){io({flipX:!jr.flipX},"flipX")},Dn=function(){io({flipY:!jr.flipY},"flipY")},vr=function(cr){cr==null||cr.preventDefault(),cr==null||cr.stopPropagation(),ir>0&&(No(!1),Go("prev"),ho==null||ho(ir-1,ir))},Br=function(cr){cr==null||cr.preventDefault(),cr==null||cr.stopPropagation(),ir<ur-1&&(No(!1),Go("next"),ho==null||ho(ir+1,ir))},ao=function(){if(cn&&Er){wo(!1);var cr=So.current,ii=cr.transformX,yo=cr.transformY,Gr=qo!==ii&&Xo!==yo;if(!Gr)return;var Ur=Eo.current.offsetWidth*mo,ai=Eo.current.offsetHeight*mo,ti=Eo.current.getBoundingClientRect(),_i=ti.left,Di=ti.top,ci=Co%180!==0,Bo=ve(ci?ai:Ur,ci?Ur:ai,_i,Di);Bo&&io((0,ge.Z)({},Bo),"dragRebound")}},so=function(cr){!kt||cr.button!==0||(cr.preventDefault(),cr.stopPropagation(),So.current={deltaX:cr.pageX-jr.x,deltaY:cr.pageY-jr.y,transformX:jr.x,transformY:jr.y},wo(!0))},lo=function(cr){cn&&Er&&io({x:cr.pageX-So.current.deltaX,y:cr.pageY-So.current.deltaY},"move")},fo=function(cr){if(!(!cn||cr.deltaY==0)){var ii=Math.abs(cr.deltaY/100),yo=Math.min(ii,He),Gr=Me+yo*Lr;cr.deltaY>0&&(Gr=Me/Gr),Uo(Gr,"wheel",cr.clientX,cr.clientY)}},$o=function(cr){!cn||!Jr||(cr.keyCode===re.Z.LEFT?vr():cr.keyCode===re.Z.RIGHT&&Br())},_o=function(cr){cn&&(mo!==1?io({x:0,y:0,scale:1},"doubleClick"):Uo(Me+Lr,"doubleClick",cr.clientX,cr.clientY))};(0,te.useEffect)(function(){var qr,cr,ii,yo;if(kt){ii=(0,z.Z)(window,"mouseup",ao,!1),yo=(0,z.Z)(window,"mousemove",lo,!1);try{window.top!==window.self&&(qr=(0,z.Z)(window.top,"mouseup",ao,!1),cr=(0,z.Z)(window.top,"mousemove",lo,!1))}catch(Gr){(0,le.Kp)(!1,"[rc-image] ".concat(Gr))}}return function(){var Gr,Ur,ai,ti;(Gr=ii)===null||Gr===void 0||Gr.remove(),(Ur=yo)===null||Ur===void 0||Ur.remove(),(ai=qr)===null||ai===void 0||ai.remove(),(ti=cr)===null||ti===void 0||ti.remove()}},[cn,Er,qo,Xo,Co,kt]),(0,te.useEffect)(function(){var qr=(0,z.Z)(window,"keydown",$o,!1);return function(){qr.remove()}},[cn,Jr,ir]);var oi=te.createElement(Ze,(0,he.Z)({},oo,{width:mt.width,height:mt.height,imgRef:Eo,className:"".concat(Bt,"-img"),alt:Ht,style:{transform:"translate3d(".concat(jr.x,"px, ").concat(jr.y,"px, 0) scale3d(").concat(jr.flipX?"-":"").concat(mo,", ").concat(jr.flipY?"-":"").concat(mo,", 1) rotate(").concat(Co,"deg)"),transitionDuration:!Jo&&"0s"},fallback:Yt,src:ut,onWheel:fo,onMouseDown:so,onDoubleClick:_o}));return te.createElement(te.Fragment,null,te.createElement(x.Z,(0,he.Z)({transitionName:_r,maskTransitionName:Or,closable:!1,keyboard:!0,prefixCls:Bt,onClose:Jt,visible:cn,wrapClassName:ei,rootClassName:Vn,getContainer:Nn},Mo,{afterClose:ni}),te.createElement("div",{className:"".concat(Bt,"-img-wrapper")},Kr?Kr(oi,(0,ge.Z)({transform:jr},Vr?{current:ir}:{})):oi)),te.createElement(ft,{visible:cn,transform:jr,maskTransitionName:Or,closeIcon:hn,getContainer:Nn,prefixCls:Bt,rootClassName:Vn,icons:zn,countRender:to,showSwitch:Jr,showProgress:xo,current:ir,count:ur,scale:mo,minScale:an,maxScale:Pn,toolbarRender:uo,onSwitchLeft:vr,onSwitchRight:Br,onZoomIn:ri,onZoomOut:Si,onRotateRight:Un,onRotateLeft:Cn,onFlipX:In,onFlipY:Dn,onClose:Jt}))},Pt=vt,Mt=ee(94480);function At(_t){var mt=te.useState({}),Bt=(0,ue.Z)(mt,2),ut=Bt[0],Ht=Bt[1],Yt=te.useCallback(function(kt,Jt){return Ht(function(cn){return(0,ge.Z)((0,ge.Z)({},cn),{},(0,ie.Z)({},kt,Jt))}),function(){Ht(function(cn){var Mn=(0,ge.Z)({},cn);return delete Mn[kt],Mn})}},[]),Ot=te.useMemo(function(){return _t?_t.map(function(kt){if(typeof kt=="string")return{data:{src:kt}};var Jt={};return Object.keys(kt).forEach(function(cn){["src"].concat((0,Mt.Z)(oe)).includes(cn)&&(Jt[cn]=kt[cn])}),{data:Jt}}):Object.keys(ut).reduce(function(kt,Jt){var cn=ut[Jt],Mn=cn.canPreview,zn=cn.data;return Mn&&kt.push({data:zn,id:Jt}),kt},[])},[_t,ut]);return[Ot,Yt]}var et=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Qe=["src"],Et=function(mt){var Bt,ut=mt.previewPrefixCls,Ht=ut===void 0?"rc-image-preview":ut,Yt=mt.children,Ot=mt.icons,kt=Ot===void 0?{}:Ot,Jt=mt.items,cn=mt.preview,Mn=mt.fallback,zn=(0,ce.Z)(cn)==="object"?cn:{},Vn=zn.visible,hn=zn.onVisibleChange,Nn=zn.getContainer,lr=zn.current,ir=zn.movable,Ut=zn.minScale,ur=zn.maxScale,to=zn.countRender,Ar=zn.closeIcon,Lr=zn.onChange,Wr=zn.onTransform,an=zn.toolbarRender,bn=zn.imageRender,Pn=(0,me.Z)(zn,et),_n=At(Jt),_r=(0,ue.Z)(_n,2),pr=_r[0],Or=_r[1],Kr=(0,pe.Z)(0,{value:lr}),oo=(0,ue.Z)(Kr,2),uo=oo[0],bo=oo[1],ho=(0,te.useState)(!1),Mo=(0,ue.Z)(ho,2),Eo=Mo[0],So=Mo[1],To=((Bt=pr[uo])===null||Bt===void 0?void 0:Bt.data)||{},Do=To.src,Er=(0,me.Z)(To,Qe),wo=(0,pe.Z)(!!Vn,{value:Vn,onChange:function(Co,mo){hn==null||hn(Co,mo,uo)}}),Vr=(0,ue.Z)(wo,2),Jr=Vr[0],xo=Vr[1],Ao=(0,te.useState)(null),jr=(0,ue.Z)(Ao,2),Go=jr[0],io=jr[1],Uo=te.useCallback(function(No,Co,mo){var qo=pr.findIndex(function(Xo){return Xo.id===No});xo(!0),io({x:Co,y:mo}),bo(qo<0?0:qo),So(!0)},[pr]);te.useEffect(function(){Jr?Eo||bo(0):So(!1)},[Jr]);var Io=function(Co,mo){bo(Co),Lr==null||Lr(Co,mo)},Yo=function(){xo(!1),io(null)},Jo=te.useMemo(function(){return{register:Or,onPreview:Uo}},[Or,Uo]);return te.createElement(ne.Provider,{value:Jo},Yt,te.createElement(Pt,(0,he.Z)({"aria-hidden":!Jr,movable:ir,visible:Jr,prefixCls:Ht,closeIcon:Ar,onClose:Yo,mousePosition:Go,imgCommonProps:Er,src:Do,fallback:Mn,icons:kt,minScale:Ut,maxScale:ur,getContainer:Nn,current:uo,count:pr.length,countRender:to,onTransform:Wr,toolbarRender:an,imageRender:bn,onChange:Io},Pn)))},Kt=Et,bt=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Wt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],$e=function(mt){var Bt=mt.src,ut=mt.alt,Ht=mt.onPreviewClose,Yt=mt.prefixCls,Ot=Yt===void 0?"rc-image":Yt,kt=mt.previewPrefixCls,Jt=kt===void 0?"".concat(Ot,"-preview"):kt,cn=mt.placeholder,Mn=mt.fallback,zn=mt.width,Vn=mt.height,hn=mt.style,Nn=mt.preview,lr=Nn===void 0?!0:Nn,ir=mt.className,Ut=mt.onClick,ur=mt.onError,to=mt.wrapperClassName,Ar=mt.wrapperStyle,Lr=mt.rootClassName,Wr=(0,me.Z)(mt,bt),an=cn&&cn!==!0,bn=(0,ce.Z)(lr)==="object"?lr:{},Pn=bn.src,_n=bn.visible,_r=_n===void 0?void 0:_n,pr=bn.onVisibleChange,Or=pr===void 0?Ht:pr,Kr=bn.getContainer,oo=Kr===void 0?void 0:Kr,uo=bn.mask,bo=bn.maskClassName,ho=bn.movable,Mo=bn.icons,Eo=bn.scaleStep,So=bn.minScale,To=bn.maxScale,Do=bn.imageRender,Er=bn.toolbarRender,wo=(0,me.Z)(bn,Wt),Vr=Pn!=null?Pn:Bt,Jr=(0,pe.Z)(!!_r,{value:_r,onChange:Or}),xo=(0,ue.Z)(Jr,2),Ao=xo[0],jr=xo[1],Go=b({src:Bt,isCustomPlaceholder:an,fallback:Mn}),io=(0,ue.Z)(Go,3),Uo=io[0],Io=io[1],Yo=io[2],Jo=(0,te.useState)(null),No=(0,ue.Z)(Jo,2),Co=No[0],mo=No[1],qo=(0,te.useContext)(ne),Xo=!!lr,ei=function(){jr(!1),mo(null)},ni=ye()(Ot,to,Lr,(0,ie.Z)({},"".concat(Ot,"-error"),Yo==="error")),ri=(0,te.useMemo)(function(){var In={};return oe.forEach(function(Dn){mt[Dn]!==void 0&&(In[Dn]=mt[Dn])}),In},oe.map(function(In){return mt[In]})),Si=(0,te.useMemo)(function(){return(0,ge.Z)((0,ge.Z)({},ri),{},{src:Vr})},[Vr,ri]),Un=a(Xo,Si),Cn=function(Dn){var vr=(0,se.os)(Dn.target),Br=vr.left,ao=vr.top;qo?qo.onPreview(Un,Br,ao):(mo({x:Br,y:ao}),jr(!0)),Ut==null||Ut(Dn)};return te.createElement(te.Fragment,null,te.createElement("div",(0,he.Z)({},Wr,{className:ni,onClick:Xo?Cn:Ut,style:(0,ge.Z)({width:zn,height:Vn},Ar)}),te.createElement("img",(0,he.Z)({},ri,{className:ye()("".concat(Ot,"-img"),(0,ie.Z)({},"".concat(Ot,"-img-placeholder"),cn===!0),ir),style:(0,ge.Z)({height:Vn},hn),ref:Uo},Io,{width:zn,height:Vn,onError:ur})),Yo==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(Ot,"-placeholder")},cn),uo&&Xo&&te.createElement("div",{className:ye()("".concat(Ot,"-mask"),bo),style:{display:(hn==null?void 0:hn.display)==="none"?"none":void 0}},uo)),!qo&&Xo&&te.createElement(Pt,(0,he.Z)({"aria-hidden":!Ao,visible:Ao,prefixCls:Jt,onClose:ei,mousePosition:Co,src:Vr,alt:ut,fallback:Mn,getContainer:oo,icons:Mo,movable:ho,scaleStep:Eo,minScale:So,maxScale:To,rootClassName:Lr,imageRender:Do,imgCommonProps:ri,toolbarRender:Er},wo)))};$e.PreviewGroup=Kt,$e.displayName="Image";var St=$e,xt=St,sn=ee(62892),Vt=ee(36355),st=ee(31724),ct=ee(99267),Ge=ee(33853),Be=ee(38819),it={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"},wt=it,Ae=ee(7657),Re=function(mt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},mt,{ref:Bt,icon:wt}))},Ke=te.forwardRef(Re),ke=Ke,ze={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"},at=ze,It=function(mt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},mt,{ref:Bt,icon:at}))},Dt=te.forwardRef(It),Ft=Dt,Tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Gt=Tt,yt=function(mt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},mt,{ref:Bt,icon:Gt}))},un=te.forwardRef(yt),ln=un,Ct={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=Ct,Sn=function(mt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},mt,{ref:Bt,icon:pn}))},Gn=te.forwardRef(Sn),Ln=Gn,Wn={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"},Zn=Wn,Jn=function(mt,Bt){return te.createElement(Ae.Z,(0,he.Z)({},mt,{ref:Bt,icon:Zn}))},Yn=te.forwardRef(Jn),mr=Yn,ar=ee(64993),wn=ee(73819),Cr=ee(17313),jn=ee(29878),Tn=ee(1950),or=ee(83116),Dr=ee(37613);const Nr=_t=>({position:_t||"absolute",inset:0}),Rr=_t=>{const{iconCls:mt,motionDurationSlow:Bt,paddingXXS:ut,marginXXS:Ht,prefixCls:Yt,colorTextLightSolid:Ot}=_t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Ot,background:new ar.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${Bt}`,[`.${Yt}-mask-info`]:Object.assign(Object.assign({},Cr.vS),{padding:`0 ${ut}px`,[mt]:{marginInlineEnd:Ht,svg:{verticalAlign:"baseline"}}})}},Fr=_t=>{const{previewCls:mt,modalMaskBg:Bt,paddingSM:ut,marginXL:Ht,margin:Yt,paddingLG:Ot,previewOperationColorDisabled:kt,previewOperationHoverColor:Jt,motionDurationSlow:cn,iconCls:Mn,colorTextLightSolid:zn}=_t,Vn=new ar.C(Bt).setAlpha(.1),hn=Vn.clone().setAlpha(.2);return{[`${mt}-footer`]:{position:"fixed",bottom:Ht,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:_t.previewOperationColor},[`${mt}-progress`]:{marginBottom:Yt},[`${mt}-close`]:{position:"fixed",top:Ht,right:{_skip_check_:!0,value:Ht},display:"flex",color:zn,backgroundColor:Vn.toRgbString(),borderRadius:"50%",padding:ut,outline:0,border:0,cursor:"pointer",transition:`all ${cn}`,"&:hover":{backgroundColor:hn.toRgbString()},[`& > ${Mn}`]:{fontSize:_t.previewOperationSize}},[`${mt}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ot}px`,backgroundColor:Vn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:ut,padding:ut,cursor:"pointer",transition:`all ${cn}`,userSelect:"none",[`&:not(${mt}-operations-operation-disabled):hover > ${Mn}`]:{color:Jt},"&-disabled":{color:kt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Mn}`]:{fontSize:_t.previewOperationSize}}}}},qn=_t=>{const{modalMaskBg:mt,iconCls:Bt,previewOperationColorDisabled:ut,previewCls:Ht,zIndexPopup:Yt,motionDurationSlow:Ot}=_t,kt=new ar.C(mt).setAlpha(.1),Jt=kt.clone().setAlpha(.2);return{[`${Ht}-switch-left, ${Ht}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Yt+1,display:"flex",alignItems:"center",justifyContent:"center",width:_t.imagePreviewSwitchSize,height:_t.imagePreviewSwitchSize,marginTop:-_t.imagePreviewSwitchSize/2,color:_t.previewOperationColor,background:kt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Ot}`,userSelect:"none","&:hover":{background:Jt.toRgbString()},"&-disabled":{"&, &:hover":{color:ut,background:"transparent",cursor:"not-allowed",[`> ${Bt}`]:{cursor:"not-allowed"}}},[`> ${Bt}`]:{fontSize:_t.previewOperationSize}},[`${Ht}-switch-left`]:{insetInlineStart:_t.marginSM},[`${Ht}-switch-right`]:{insetInlineEnd:_t.marginSM}}},sr=_t=>{const{motionEaseOut:mt,previewCls:Bt,motionDurationSlow:ut,componentCls:Ht}=_t;return[{[`${Ht}-preview-root`]:{[Bt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${Bt}-body`]:Object.assign(Object.assign({},Nr()),{overflow:"hidden"}),[`${Bt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${ut} ${mt} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Nr()),{transition:`transform ${ut} ${mt} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${Bt}-moving`]:{[`${Bt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ht}-preview-root`]:{[`${Bt}-wrap`]:{zIndex:_t.zIndexPopup}}},{[`${Ht}-preview-operations-wrapper`]:{position:"fixed",zIndex:_t.zIndexPopup+1},"&":[Fr(_t),qn(_t)]}]},Qt=_t=>{const{componentCls:mt}=_t;return{[mt]:{position:"relative",display:"inline-block",[`${mt}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${mt}-img-placeholder`]:{backgroundColor:_t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${mt}-mask`]:Object.assign({},Rr(_t)),[`${mt}-mask:hover`]:{opacity:1},[`${mt}-placeholder`]:Object.assign({},Nr())}}},ae=_t=>{const{previewCls:mt}=_t;return{[`${mt}-root`]:(0,jn._y)(_t,"zoom"),"&":(0,Tn.J$)(_t,!0)}};var _e=(0,or.Z)("Image",_t=>{const mt=`${_t.componentCls}-preview`,Bt=(0,Dr.TS)(_t,{previewCls:mt,modalMaskBg:new ar.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:_t.controlHeightLG});return[Qt(Bt),sr(Bt),(0,wn.QA)((0,Dr.TS)(Bt,{componentCls:mt})),ae(Bt)]},_t=>({zIndexPopup:_t.zIndexPopupBase+80,previewOperationColor:new ar.C(_t.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ar.C(_t.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ar.C(_t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:_t.fontSizeIcon*1.5})),Pe=function(_t,mt){var Bt={};for(var ut in _t)Object.prototype.hasOwnProperty.call(_t,ut)&&mt.indexOf(ut)<0&&(Bt[ut]=_t[ut]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,ut=Object.getOwnPropertySymbols(_t);Ht<ut.length;Ht++)mt.indexOf(ut[Ht])<0&&Object.prototype.propertyIsEnumerable.call(_t,ut[Ht])&&(Bt[ut[Ht]]=_t[ut[Ht]]);return Bt};const Ie={rotateLeft:te.createElement(ke,null),rotateRight:te.createElement(Ft,null),zoomIn:te.createElement(Ln,null),zoomOut:te.createElement(mr,null),close:te.createElement(ct.Z,null),left:te.createElement(Ge.Z,null),right:te.createElement(Be.Z,null),flipX:te.createElement(ln,null),flipY:te.createElement(ln,{rotate:90})};var tt=_t=>{var{previewPrefixCls:mt,preview:Bt}=_t,ut=Pe(_t,["previewPrefixCls","preview"]);const{getPrefixCls:Ht}=te.useContext(Vt.E_),Yt=Ht("image",mt),Ot=`${Yt}-preview`,kt=Ht(),[Jt,cn]=_e(Yt),Mn=te.useMemo(()=>{var zn;if(Bt===!1)return Bt;const Vn=typeof Bt=="object"?Bt:{},hn=ye()(cn,(zn=Vn.rootClassName)!==null&&zn!==void 0?zn:"");return Object.assign(Object.assign({},Vn),{transitionName:(0,sn.m)(kt,"zoom",Vn.transitionName),maskTransitionName:(0,sn.m)(kt,"fade",Vn.maskTransitionName),rootClassName:hn})},[Bt]);return Jt(te.createElement(xt.PreviewGroup,Object.assign({preview:Mn,previewPrefixCls:Ot,icons:Ie},ut)))},ht=function(_t,mt){var Bt={};for(var ut in _t)Object.prototype.hasOwnProperty.call(_t,ut)&&mt.indexOf(ut)<0&&(Bt[ut]=_t[ut]);if(_t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,ut=Object.getOwnPropertySymbols(_t);Ht<ut.length;Ht++)mt.indexOf(ut[Ht])<0&&Object.prototype.propertyIsEnumerable.call(_t,ut[Ht])&&(Bt[ut[Ht]]=_t[ut[Ht]]);return Bt};const on=_t=>{const{prefixCls:mt,preview:Bt,className:ut,rootClassName:Ht,style:Yt}=_t,Ot=ht(_t,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:kt,locale:Jt=st.Z,getPopupContainer:cn,image:Mn}=te.useContext(Vt.E_),zn=kt("image",mt),Vn=kt(),hn=Jt.Image||st.Z.Image,[Nn,lr]=_e(zn),ir=ye()(Ht,lr),Ut=ye()(ut,lr,Mn==null?void 0:Mn.className),ur=te.useMemo(()=>{if(Bt===!1)return Bt;const Ar=typeof Bt=="object"?Bt:{},{getContainer:Lr}=Ar,Wr=ht(Ar,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${zn}-mask-info`},te.createElement(fe.Z,null),hn==null?void 0:hn.preview),icons:Ie},Wr),{getContainer:Lr||cn,transitionName:(0,sn.m)(Vn,"zoom",Ar.transitionName),maskTransitionName:(0,sn.m)(Vn,"fade",Ar.maskTransitionName)})},[Bt,hn]),to=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Yt);return Nn(te.createElement(xt,Object.assign({prefixCls:zn,preview:ur,rootClassName:ir,className:Ut,style:to},Ot)))};on.PreviewGroup=tt;var zt=on},45818:function(gt,Ve,ee){"use strict";ee.d(Ve,{D:function(){return z},Z:function(){return de}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(Se,Le){return fe.createElement(he.Z,(0,te.Z)({},Se,{ref:Le,icon:ye}))},ie=fe.forwardRef(ge),ue=ie,ce=ee(33853),me=ee(38819),se=ee(92310),pe=ee.n(se),oe=ee(2738),y=ve=>!isNaN(parseFloat(ve))&&isFinite(ve),a=ee(36355),E=ee(84966),b=function(ve,Se){var Le={};for(var Ee in ve)Object.prototype.hasOwnProperty.call(ve,Ee)&&Se.indexOf(Ee)<0&&(Le[Ee]=ve[Ee]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ee=Object.getOwnPropertySymbols(ve);je<Ee.length;je++)Se.indexOf(Ee[je])<0&&Object.prototype.propertyIsEnumerable.call(ve,Ee[je])&&(Le[Ee[je]]=ve[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=fe.createContext({}),re=(()=>{let ve=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ve+=1,`${Se}${ve}`}})();var de=fe.forwardRef((ve,Se)=>{const{prefixCls:Le,className:Ee,trigger:je,children:xe,defaultCollapsed:lt=!1,theme:Ye="dark",style:ft={},collapsible:Me=!1,reverseArrow:He=!1,width:Ne=200,collapsedWidth:ot=80,zeroWidthTriggerStyle:Ze,breakpoint:vt,onCollapse:Pt,onBreakpoint:Mt}=ve,At=b(ve,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:et}=(0,fe.useContext)(E.Gs),[Qe,Et]=(0,fe.useState)("collapsed"in ve?ve.collapsed:lt),[Kt,bt]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ve&&Et(ve.collapsed)},[ve.collapsed]);const Wt=(st,ct)=>{"collapsed"in ve||Et(st),Pt==null||Pt(st,ct)},$e=(0,fe.useRef)();$e.current=st=>{bt(st.matches),Mt==null||Mt(st.matches),Qe!==st.matches&&Wt(st.matches,"responsive")},(0,fe.useEffect)(()=>{function st(Ge){return $e.current(Ge)}let ct;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&vt&&vt in x){ct=Ge(`(max-width: ${x[vt]})`);try{ct.addEventListener("change",st)}catch(Be){ct.addListener(st)}st(ct)}}return()=>{try{ct==null||ct.removeEventListener("change",st)}catch(Ge){ct==null||ct.removeListener(st)}}},[vt]),(0,fe.useEffect)(()=>{const st=re("ant-sider-");return et.addSider(st),()=>et.removeSider(st)},[]);const St=()=>{Wt(!Qe,"clickTrigger")},{getPrefixCls:xt}=(0,fe.useContext)(a.E_),sn=()=>{const st=xt("layout-sider",Le),ct=(0,oe.Z)(At,["collapsed"]),Ge=Qe?ot:Ne,Be=y(Ge)?`${Ge}px`:String(Ge),it=parseFloat(String(ot||0))===0?fe.createElement("span",{onClick:St,className:pe()(`${st}-zero-width-trigger`,`${st}-zero-width-trigger-${He?"right":"left"}`),style:Ze},je||fe.createElement(ue,null)):null,Re={expanded:He?fe.createElement(me.Z,null):fe.createElement(ce.Z,null),collapsed:He?fe.createElement(ce.Z,null):fe.createElement(me.Z,null)}[Qe?"collapsed":"expanded"],Ke=je!==null?it||fe.createElement("div",{className:`${st}-trigger`,onClick:St,style:{width:Be}},je||Re):null,ke=Object.assign(Object.assign({},ft),{flex:`0 0 ${Be}`,maxWidth:Be,minWidth:Be,width:Be}),ze=pe()(st,`${st}-${Ye}`,{[`${st}-collapsed`]:!!Qe,[`${st}-has-trigger`]:Me&&je!==null&&!it,[`${st}-below`]:!!Kt,[`${st}-zero-width`]:parseFloat(Be)===0},Ee);return fe.createElement("aside",Object.assign({className:ze},ct,{style:ke,ref:Se}),fe.createElement("div",{className:`${st}-children`},xe),Me||Kt&&it?Ke:null)},Vt=fe.useMemo(()=>({siderCollapsed:Qe}),[Qe]);return fe.createElement(z.Provider,{value:Vt},sn())})},84966:function(gt,Ve,ee){"use strict";ee.d(Ve,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return oe},ZP:function(){return re}});var te=ee(94480),fe=ee(92310),be=ee.n(fe),ye=ee(2738),he=ee(59301),ge=ee(36355),ie=ee(83116),ce=le=>{const{componentCls:de,bodyBg:ve,lightSiderBg:Se,lightTriggerBg:Le,lightTriggerColor:Ee}=le;return{[`${de}-sider-light`]:{background:Se,[`${de}-sider-trigger`]:{color:Ee,background:Le},[`${de}-sider-zero-width-trigger`]:{color:Ee,background:Le,border:`1px solid ${ve}`,borderInlineStart:0}}}};const me=le=>{const{antCls:de,componentCls:ve,colorText:Se,triggerColor:Le,footerBg:Ee,triggerBg:je,headerHeight:xe,headerPadding:lt,headerColor:Ye,footerPadding:ft,triggerHeight:Me,zeroTriggerHeight:He,zeroTriggerWidth:Ne,motionDurationMid:ot,motionDurationSlow:Ze,fontSize:vt,borderRadius:Pt,bodyBg:Mt,headerBg:At,siderBg:et}=le;return{[ve]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Mt,"&, *":{boxSizing:"border-box"},[`&${ve}-has-sider`]:{flexDirection:"row",[`> ${ve}, > ${ve}-content`]:{width:0}},[`${ve}-header, &${ve}-footer`]:{flex:"0 0 auto"},[`${ve}-sider`]:{position:"relative",minWidth:0,background:et,transition:`all ${ot}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${de}-menu${de}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Me,color:Le,lineHeight:`${Me}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${ot}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-Ne,zIndex:1,width:Ne,height:He,color:Le,fontSize:le.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:et,borderStartStartRadius:0,borderStartEndRadius:Pt,borderEndEndRadius:Pt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ze} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ze}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ne,borderStartStartRadius:Pt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Pt}}}}},ce(le)),{"&-rtl":{direction:"rtl"}}),[`${ve}-header`]:{height:xe,padding:lt,color:Ye,lineHeight:`${xe}px`,background:At,[`${de}-menu`]:{lineHeight:"inherit"}},[`${ve}-footer`]:{padding:ft,color:Se,fontSize:vt,background:Ee},[`${ve}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ie.Z)("Layout",le=>[me(le)],le=>{const{colorBgLayout:de,controlHeight:ve,controlHeightLG:Se,colorText:Le,controlHeightSM:Ee,marginXXS:je,colorTextLightSolid:xe,colorBgContainer:lt}=le,Ye=Se*1.25;return{colorBgHeader:"#001529",colorBgBody:de,colorBgTrigger:"#002140",bodyBg:de,headerBg:"#001529",headerHeight:ve*2,headerPadding:`0 ${Ye}px`,headerColor:Le,footerPadding:`${Ee}px ${Ye}px`,footerBg:de,siderBg:"#001529",triggerHeight:Se+je*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:Se,zeroTriggerHeight:Se,lightSiderBg:lt,lightTriggerBg:lt,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),pe=function(le,de){var ve={};for(var Se in le)Object.prototype.hasOwnProperty.call(le,Se)&&de.indexOf(Se)<0&&(ve[Se]=le[Se]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Se=Object.getOwnPropertySymbols(le);Le<Se.length;Le++)de.indexOf(Se[Le])<0&&Object.prototype.propertyIsEnumerable.call(le,Se[Le])&&(ve[Se[Le]]=le[Se[Le]]);return ve};const oe=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(le){let{suffixCls:de,tagName:ve,displayName:Se}=le;return Le=>he.forwardRef((je,xe)=>he.createElement(Le,Object.assign({ref:xe,suffixCls:de,tagName:ve},je)))}const y=he.forwardRef((le,de)=>{const{prefixCls:ve,suffixCls:Se,className:Le,tagName:Ee}=le,je=pe(le,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=he.useContext(ge.E_),lt=xe("layout",ve),[Ye,ft]=se(lt),Me=Se?`${lt}-${Se}`:lt;return Ye(he.createElement(Ee,Object.assign({className:be()(ve||Me,Le,ft),ref:de},je)))}),a=he.forwardRef((le,de)=>{const{direction:ve}=he.useContext(ge.E_),[Se,Le]=he.useState([]),{prefixCls:Ee,className:je,rootClassName:xe,children:lt,hasSider:Ye,tagName:ft,style:Me}=le,He=pe(le,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ne=(0,ye.Z)(He,["suffixCls"]),{getPrefixCls:ot,layout:Ze}=he.useContext(ge.E_),vt=ot("layout",Ee),[Pt,Mt]=se(vt),At=be()(vt,{[`${vt}-has-sider`]:typeof Ye=="boolean"?Ye:Se.length>0,[`${vt}-rtl`]:ve==="rtl"},Ze==null?void 0:Ze.className,je,xe,Mt),et=he.useMemo(()=>({siderHook:{addSider:Qe=>{Le(Et=>[].concat((0,te.Z)(Et),[Qe]))},removeSider:Qe=>{Le(Et=>Et.filter(Kt=>Kt!==Qe))}}}),[]);return Pt(he.createElement(oe.Provider,{value:et},he.createElement(ft,Object.assign({ref:de,className:At,style:Object.assign(Object.assign({},Ze==null?void 0:Ze.style),Me)},Ne),lt)))}),E=ne({tagName:"div",displayName:"Layout"})(a),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var re=E},40875:function(gt,Ve,ee){"use strict";ee.d(Ve,{J:function(){return ge}});var te=ee(59301),fe=ee(33234),be=ee(70425),ye=function(ie,ue){var ce={};for(var me in ie)Object.prototype.hasOwnProperty.call(ie,me)&&ue.indexOf(me)<0&&(ce[me]=ie[me]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(ie);se<me.length;se++)ue.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(ie,me[se])&&(ce[me[se]]=ie[me[se]]);return ce};const he=te.createContext(null),ge=te.forwardRef((ie,ue)=>{const{children:ce}=ie,me=ye(ie,["children"]),se=te.useContext(he),pe=te.useMemo(()=>Object.assign(Object.assign({},se),me),[se,me.prefixCls,me.mode,me.selectable]);return te.createElement(he.Provider,{value:pe},te.createElement(fe.BR,null,(0,be.supportNodeRef)(ce)?te.cloneElement(ce,{ref:ue}):ce))});Ve.Z=he},20834:function(gt,Ve,ee){"use strict";ee.d(Ve,{default:function(){return Vt}});var te=ee(15285),fe=ee(59301),be=ee(45818),ye=ee(92310),he=ee.n(ye),ge=ee(36355),ie=function(st,ct){var Ge={};for(var Be in st)Object.prototype.hasOwnProperty.call(st,Be)&&ct.indexOf(Be)<0&&(Ge[Be]=st[Be]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Be=Object.getOwnPropertySymbols(st);it<Be.length;it++)ct.indexOf(Be[it])<0&&Object.prototype.propertyIsEnumerable.call(st,Be[it])&&(Ge[Be[it]]=st[Be[it]]);return Ge},ce=st=>{const{prefixCls:ct,className:Ge,dashed:Be}=st,it=ie(st,["prefixCls","className","dashed"]),{getPrefixCls:wt}=fe.useContext(ge.E_),Ae=wt("menu",ct),Re=he()({[`${Ae}-item-divider-dashed`]:!!Be},Ge);return fe.createElement(te.iz,Object.assign({className:Re},it))},me=ee(11592),se=ee(2738),pe=ee(6848),oe=ee(92343),y=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=st=>{var ct;const{className:Ge,children:Be,icon:it,title:wt,danger:Ae}=st,{prefixCls:Re,firstLevel:Ke,direction:ke,disableMenuItemTitleTooltip:ze,inlineCollapsed:at}=fe.useContext(y),It=un=>{const ln=fe.createElement("span",{className:`${Re}-title-content`},Be);return(!it||(0,oe.l$)(Be)&&Be.type==="span")&&Be&&un&&Ke&&typeof Be=="string"?fe.createElement("div",{className:`${Re}-inline-collapsed-noicon`},Be.charAt(0)):ln},{siderCollapsed:Dt}=fe.useContext(be.D);let Ft=wt;typeof wt=="undefined"?Ft=Ke?Be:"":wt===!1&&(Ft="");const Tt={title:Ft};!Dt&&!at&&(Tt.title=null,Tt.open=!1);const Gt=(0,me.Z)(Be).length;let yt=fe.createElement(te.ck,Object.assign({},(0,se.Z)(st,["title","icon","danger"]),{className:he()({[`${Re}-item-danger`]:Ae,[`${Re}-item-only-child`]:(it?Gt+1:Gt)===1},Ge),title:typeof wt=="string"?wt:void 0}),(0,oe.Tm)(it,{className:he()((0,oe.l$)(it)?(ct=it.props)===null||ct===void 0?void 0:ct.className:"",`${Re}-item-icon`)}),It(at));return ze||(yt=fe.createElement(pe.Z,Object.assign({},Tt,{placement:ke==="rtl"?"left":"right",overlayClassName:`${Re}-inline-collapsed-tooltip`}),yt)),yt},x=st=>{var ct;const{popupClassName:Ge,icon:Be,title:it,theme:wt}=st,Ae=fe.useContext(y),{prefixCls:Re,inlineCollapsed:Ke,theme:ke}=Ae,ze=(0,te.Xl)();let at;if(!Be)at=Ke&&!ze.length&&it&&typeof it=="string"?fe.createElement("div",{className:`${Re}-inline-collapsed-noicon`},it.charAt(0)):fe.createElement("span",{className:`${Re}-title-content`},it);else{const Dt=(0,oe.l$)(it)&&it.type==="span";at=fe.createElement(fe.Fragment,null,(0,oe.Tm)(Be,{className:he()((0,oe.l$)(Be)?(ct=Be.props)===null||ct===void 0?void 0:ct.className:"",`${Re}-item-icon`)}),Dt?it:fe.createElement("span",{className:`${Re}-title-content`},it))}const It=fe.useMemo(()=>Object.assign(Object.assign({},Ae),{firstLevel:!1}),[Ae]);return fe.createElement(y.Provider,{value:It},fe.createElement(te.Wd,Object.assign({},(0,se.Z)(st,["icon"]),{title:at,popupClassName:he()(Re,Ge,`${Re}-${wt||ke}`)})))},z=ee(18785),re=ee(70425),le=ee(62892),de=ee(40875),ve=function(st,ct){var Ge={};for(var Be in st)Object.prototype.hasOwnProperty.call(st,Be)&&ct.indexOf(Be)<0&&(Ge[Be]=st[Be]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Be=Object.getOwnPropertySymbols(st);it<Be.length;it++)ct.indexOf(Be[it])<0&&Object.prototype.propertyIsEnumerable.call(st,Be[it])&&(Ge[Be[it]]=st[Be[it]]);return Ge};function Se(st){return(st||[]).map((ct,Ge)=>{if(ct&&typeof ct=="object"){const Be=ct,{label:it,children:wt,key:Ae,type:Re}=Be,Ke=ve(Be,["label","children","key","type"]),ke=Ae!=null?Ae:`tmp-${Ge}`;return wt||Re==="group"?Re==="group"?fe.createElement(te.BW,Object.assign({key:ke},Ke,{title:it}),Se(wt)):fe.createElement(x,Object.assign({key:ke},Ke,{title:it}),Se(wt)):Re==="divider"?fe.createElement(ce,Object.assign({key:ke},Ke)):fe.createElement(E,Object.assign({key:ke},Ke),it)}return null}).filter(ct=>ct)}function Le(st){return fe.useMemo(()=>st&&Se(st),[st])}var Ee=ee(64993),je=ee(17313),xe=ee(8378),lt=ee(13826),Ye=ee(29878),ft=ee(83116),Me=ee(37613),Ne=st=>{const{componentCls:ct,motionDurationSlow:Ge,horizontalLineHeight:Be,colorSplit:it,lineWidth:wt,lineType:Ae,itemPaddingInline:Re}=st;return{[`${ct}-horizontal`]:{lineHeight:Be,border:0,borderBottom:`${wt}px ${Ae} ${it}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ct}-item, ${ct}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Re},[`> ${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"}}}},Ze=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 vt=st=>Object.assign({},(0,je.oN)(st));var Mt=(st,ct)=>{const{componentCls:Ge,itemColor:Be,itemSelectedColor:it,groupTitleColor:wt,itemBg:Ae,subMenuItemBg:Re,itemSelectedBg:Ke,activeBarHeight:ke,activeBarWidth:ze,activeBarBorderWidth:at,motionDurationSlow:It,motionEaseInOut:Dt,motionEaseOut:Ft,itemPaddingInline:Tt,motionDurationMid:Gt,itemHoverColor:yt,lineType:un,colorSplit:ln,itemDisabledColor:Ct,dangerItemColor:pn,dangerItemHoverColor:Sn,dangerItemSelectedColor:Gn,dangerItemActiveBg:Ln,dangerItemSelectedBg:Wn,itemHoverBg:Zn,itemActiveBg:Jn,menuSubMenuBg:Yn,horizontalItemSelectedColor:mr,horizontalItemSelectedBg:ar,horizontalItemBorderRadius:wn,horizontalItemHoverBg:Cr,popupBg:jn}=st;return{[`${Ge}-${ct}, ${Ge}-${ct} > ${Ge}`]:{color:Be,background:Ae,[`&${Ge}-root:focus-visible`]:Object.assign({},vt(st)),[`${Ge}-item-group-title`]:{color:wt},[`${Ge}-submenu-selected`]:{[`> ${Ge}-submenu-title`]:{color:it}},[`${Ge}-item-disabled, ${Ge}-submenu-disabled`]:{color:`${Ct} !important`},[`${Ge}-item:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{[`&:hover, > ${Ge}-submenu-title:hover`]:{color:yt}},[`&:not(${Ge}-horizontal)`]:{[`${Ge}-item:not(${Ge}-item-selected)`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:Jn}},[`${Ge}-submenu-title`]:{"&:hover":{backgroundColor:Zn},"&:active":{backgroundColor:Jn}}},[`${Ge}-item-danger`]:{color:pn,[`&${Ge}-item:hover`]:{[`&:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{color:Sn}},[`&${Ge}-item:active`]:{background:Ln}},[`${Ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ge}-item-selected`]:{color:it,[`&${Ge}-item-danger`]:{color:Gn},"a, a:hover":{color:"inherit"}},[`& ${Ge}-item-selected`]:{backgroundColor:Ke,[`&${Ge}-item-danger`]:{backgroundColor:Wn}},[`${Ge}-item, ${Ge}-submenu-title`]:{[`&:not(${Ge}-item-disabled):focus-visible`]:Object.assign({},vt(st))},[`&${Ge}-submenu > ${Ge}`]:{backgroundColor:Yn},[`&${Ge}-popup > ${Ge}`]:{backgroundColor:jn},[`&${Ge}-horizontal`]:Object.assign(Object.assign({},ct==="dark"?{borderBottom:0}:{}),{[`> ${Ge}-item, > ${Ge}-submenu`]:{top:at,marginTop:-at,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:Tt,bottom:0,borderBottom:`${ke}px solid transparent`,transition:`border-color ${It} ${Dt}`,content:'""'},"&:hover, &-active, &-open":{background:Cr,"&::after":{borderBottomWidth:ke,borderBottomColor:mr}},"&-selected":{color:mr,backgroundColor:ar,"&:hover":{backgroundColor:ar},"&::after":{borderBottomWidth:ke,borderBottomColor:mr}}}}),[`&${Ge}-root`]:{[`&${Ge}-inline, &${Ge}-vertical`]:{borderInlineEnd:`${at}px ${un} ${ln}`}},[`&${Ge}-inline`]:{[`${Ge}-sub${Ge}-inline`]:{background:Re},[`${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 ${it}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Gt} ${Ft}`,`opacity ${Gt} ${Ft}`].join(","),content:'""'},[`&${Ge}-item-danger`]:{"&::after":{borderInlineEndColor:Gn}}},[`${Ge}-selected, ${Ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Gt} ${Dt}`,`opacity ${Gt} ${Dt}`].join(",")}}}}}};const At=st=>{const{componentCls:ct,itemHeight:Ge,itemMarginInline:Be,padding:it,menuArrowSize:wt,marginXS:Ae,itemMarginBlock:Re}=st,Ke=it+wt+Ae;return{[`${ct}-item`]:{position:"relative",overflow:"hidden"},[`${ct}-item, ${ct}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`,paddingInline:it,overflow:"hidden",textOverflow:"ellipsis",marginInline:Be,marginBlock:Re,width:`calc(100% - ${Be*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:Ke}}};var Qe=st=>{const{componentCls:ct,iconCls:Ge,itemHeight:Be,colorTextLightSolid:it,dropdownWidth:wt,controlHeightLG:Ae,motionDurationMid:Re,motionEaseOut:Ke,paddingXL:ke,itemMarginInline:ze,fontSizeLG:at,motionDurationSlow:It,paddingXS:Dt,boxShadowSecondary:Ft,collapsedWidth:Tt,collapsedIconSize:Gt}=st,yt={height:Be,lineHeight:`${Be}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ct]:{"&-inline, &-vertical":Object.assign({[`&${ct}-root`]:{boxShadow:"none"}},At(st))},[`${ct}-submenu-popup`]:{[`${ct}-vertical`]:Object.assign(Object.assign({},At(st)),{boxShadow:Ft})}},{[`${ct}-submenu-popup ${ct}-vertical${ct}-sub`]:{minWidth:wt,maxHeight:`calc(100vh - ${Ae*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 ${It}`,`background ${It}`,`padding ${Re} ${Ke}`].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`]:yt,[`& ${ct}-item-group-title`]:{paddingInlineStart:ke}},[`${ct}-item`]:yt}},{[`${ct}-inline-collapsed`]:{width:Tt,[`&${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:Gt,lineHeight:`${Be}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:it}},[`${ct}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:Dt})}}]};const Et=st=>{const{componentCls:ct,motionDurationSlow:Ge,motionDurationMid:Be,motionEaseInOut:it,motionEaseOut:wt,iconCls:Ae,iconSize:Re,iconMarginInlineEnd:Ke}=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} ${it}`].join(","),[`${ct}-item-icon, ${Ae}`]:{minWidth:Re,fontSize:Re,transition:[`font-size ${Be} ${wt}`,`margin ${Ge} ${it}`,`color ${Ge}`].join(","),"+ span":{marginInlineStart:Ke,opacity:1,transition:[`opacity ${Ge} ${it}`,`margin ${Ge}`,`color ${Ge}`].join(",")}},[`${ct}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${ct}-item-only-child`]:{[`> ${Ae}, > ${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"}}}},Kt=st=>{const{componentCls:ct,motionDurationSlow:Ge,motionEaseInOut:Be,borderRadius:it,menuArrowSize:wt,menuArrowOffset:Ae}=st;return{[`${ct}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:st.margin,width:wt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ge} ${Be}, opacity ${Ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:wt*.6,height:wt*.15,backgroundColor:"currentcolor",borderRadius:it,transition:[`background ${Ge} ${Be}`,`transform ${Ge} ${Be}`,`top ${Ge} ${Be}`,`color ${Ge} ${Be}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ae})`},"&::after":{transform:`rotate(-45deg) translateY(${Ae})`}}}}},bt=st=>{const{antCls:ct,componentCls:Ge,fontSize:Be,motionDurationSlow:it,motionDurationMid:wt,motionEaseInOut:Ae,paddingXS:Re,padding:Ke,colorSplit:ke,lineWidth:ze,zIndexPopup:at,borderRadiusLG:It,subMenuItemBorderRadius:Dt,menuArrowSize:Ft,menuArrowOffset:Tt,lineType:Gt,menuPanelMaskInset:yt,groupTitleLineHeight:un,groupTitleFontSize:ln}=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:Be,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${it} 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:`${Re}px ${Ke}px`,fontSize:ln,lineHeight:un,transition:`all ${it}`},[`&-horizontal ${Ge}-submenu`]:{transition:[`border-color ${it} ${Ae}`,`background ${it} ${Ae}`].join(",")},[`${Ge}-submenu, ${Ge}-submenu-inline`]:{transition:[`border-color ${it} ${Ae}`,`background ${it} ${Ae}`,`padding ${wt} ${Ae}`].join(",")},[`${Ge}-submenu ${Ge}-sub`]:{cursor:"initial",transition:[`background ${it} ${Ae}`,`padding ${it} ${Ae}`].join(",")},[`${Ge}-title-content`]:{transition:`color ${it}`},[`${Ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ke,borderStyle:Gt,borderWidth:0,borderTopWidth:ze,marginBlock:ze,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Et(st)),{[`${Ge}-item-group`]:{[`${Ge}-item-group-list`]:{margin:0,padding:0,[`${Ge}-item, ${Ge}-submenu-title`]:{paddingInline:`${Be*2}px ${Ke}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:at,borderRadius:It,boxShadow:"none",transformOrigin:"0 0",[`&${Ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${yt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:yt},"\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:It},Et(st)),Kt(st)),{[`${Ge}-item, ${Ge}-submenu > ${Ge}-submenu-title`]:{borderRadius:Dt},[`${Ge}-submenu-title::after`]:{transition:`transform ${it} ${Ae}`}})}}),Kt(st)),{[`&-inline-collapsed ${Ge}-submenu-arrow,
|
|
|
&-inline ${Ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Tt})`},"&::after":{transform:`rotate(45deg) translateX(-${Tt})`}},[`${Ge}-submenu-open${Ge}-submenu-inline > ${Ge}-submenu-title > ${Ge}-submenu-arrow`]:{transform:`translateY(-${Ft*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Tt})`},"&::before":{transform:`rotate(45deg) translateX(${Tt})`}}})},{[`${ct}-layout-header`]:{[Ge]:{lineHeight:"inherit"}}}]};var Wt=(st,ct)=>(0,ft.Z)("Menu",Be=>{if(ct===!1)return[];const{colorBgElevated:it,colorPrimary:wt,colorTextLightSolid:Ae,controlHeightLG:Re,fontSize:Ke,darkItemColor:ke,darkDangerItemColor:ze,darkItemBg:at,darkSubMenuItemBg:It,darkItemSelectedColor:Dt,darkItemSelectedBg:Ft,darkDangerItemSelectedBg:Tt,darkItemHoverBg:Gt,darkGroupTitleColor:yt,darkItemHoverColor:un,darkItemDisabledColor:ln,darkDangerItemHoverColor:Ct,darkDangerItemSelectedColor:pn,darkDangerItemActiveBg:Sn}=Be,Gn=Ke/7*5,Ln=(0,Me.TS)(Be,{menuArrowSize:Gn,menuHorizontalHeight:Re*1.15,menuArrowOffset:`${Gn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:it}),Wn=(0,Me.TS)(Ln,{itemColor:ke,itemHoverColor:un,groupTitleColor:yt,itemSelectedColor:Dt,itemBg:at,popupBg:at,subMenuItemBg:It,itemActiveBg:"transparent",itemSelectedBg:Ft,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Gt,itemDisabledColor:ln,dangerItemColor:ze,dangerItemHoverColor:Ct,dangerItemSelectedColor:pn,dangerItemActiveBg:Sn,dangerItemSelectedBg:Tt,menuSubMenuBg:It,horizontalItemSelectedColor:Ae,horizontalItemSelectedBg:wt});return[bt(Ln),Ne(Ln),Qe(Ln),Mt(Ln,"light"),Mt(Wn,"dark"),Ze(Ln),(0,xe.Z)(Ln),(0,lt.oN)(Ln,"slide-up"),(0,lt.oN)(Ln,"slide-down"),(0,Ye._y)(Ln,"zoom-big")]},Be=>{const{colorPrimary:it,colorError:wt,colorTextDisabled:Ae,colorErrorBg:Re,colorText:Ke,colorTextDescription:ke,colorBgContainer:ze,colorFillAlter:at,colorFillContent:It,lineWidth:Dt,lineWidthBold:Ft,controlItemBgActive:Tt,colorBgTextHover:Gt,controlHeightLG:yt,lineHeight:un,colorBgElevated:ln,marginXXS:Ct,padding:pn,fontSize:Sn,controlHeightSM:Gn,fontSizeLG:Ln,colorTextLightSolid:Wn,colorErrorHover:Zn}=Be,Jn=new Ee.C(Wn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Be.zIndexPopupBase+50,radiusItem:Be.borderRadiusLG,itemBorderRadius:Be.borderRadiusLG,radiusSubMenuItem:Be.borderRadiusSM,subMenuItemBorderRadius:Be.borderRadiusSM,colorItemText:Ke,itemColor:Ke,colorItemTextHover:Ke,itemHoverColor:Ke,colorItemTextHoverHorizontal:it,horizontalItemHoverColor:it,colorGroupTitle:ke,groupTitleColor:ke,colorItemTextSelected:it,itemSelectedColor:it,colorItemTextSelectedHorizontal:it,horizontalItemSelectedColor:it,colorItemBg:ze,itemBg:ze,colorItemBgHover:Gt,itemHoverBg:Gt,colorItemBgActive:It,itemActiveBg:Tt,colorSubItemBg:at,subMenuItemBg:at,colorItemBgSelected:Tt,itemSelectedBg:Tt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ft,activeBarHeight:Ft,colorActiveBarBorderSize:Dt,activeBarBorderWidth:Dt,colorItemTextDisabled:Ae,itemDisabledColor:Ae,colorDangerItemText:wt,dangerItemColor:wt,colorDangerItemTextHover:wt,dangerItemHoverColor:wt,colorDangerItemTextSelected:wt,dangerItemSelectedColor:wt,colorDangerItemBgActive:Re,dangerItemActiveBg:Re,colorDangerItemBgSelected:Re,dangerItemSelectedBg:Re,itemMarginInline:Be.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:yt,groupTitleLineHeight:un,collapsedWidth:yt*2,popupBg:ln,itemMarginBlock:Ct,itemPaddingInline:pn,horizontalLineHeight:`${yt*1.15}px`,iconSize:Sn,iconMarginInlineEnd:Gn-Sn,collapsedIconSize:Ln,groupTitleFontSize:Sn,darkItemDisabledColor:new Ee.C(Wn).setAlpha(.25).toRgbString(),darkItemColor:Jn,darkDangerItemColor:wt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wn,darkItemSelectedBg:it,darkDangerItemSelectedBg:wt,darkItemHoverBg:"transparent",darkGroupTitleColor:Jn,darkItemHoverColor:Wn,darkDangerItemHoverColor:Zn,darkDangerItemSelectedColor:Wn,darkDangerItemActiveBg:wt}},{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),$e=function(st,ct){var Ge={};for(var Be in st)Object.prototype.hasOwnProperty.call(st,Be)&&ct.indexOf(Be)<0&&(Ge[Be]=st[Be]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Be=Object.getOwnPropertySymbols(st);it<Be.length;it++)ct.indexOf(Be[it])<0&&Object.prototype.propertyIsEnumerable.call(st,Be[it])&&(Ge[Be[it]]=st[Be[it]]);return Ge},xt=(0,fe.forwardRef)((st,ct)=>{var Ge,Be;const it=fe.useContext(de.Z),wt=it||{},{getPrefixCls:Ae,getPopupContainer:Re,direction:Ke,menu:ke}=fe.useContext(ge.E_),ze=Ae(),{prefixCls:at,className:It,style:Dt,theme:Ft="light",expandIcon:Tt,_internalDisableMenuItemTitleTooltip:Gt,inlineCollapsed:yt,siderCollapsed:un,items:ln,children:Ct,rootClassName:pn,mode:Sn,selectable:Gn,onClick:Ln,overflowedIndicatorPopupClassName:Wn}=st,Zn=$e(st,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Jn=(0,se.Z)(Zn,["collapsedWidth"]),Yn=Le(ln)||Ct;(Ge=wt.validator)===null||Ge===void 0||Ge.call(wt,{mode:Sn});const mr=(0,re.useEvent)(function(){var qn;Ln==null||Ln.apply(void 0,arguments),(qn=wt.onClick)===null||qn===void 0||qn.call(wt)}),ar=wt.mode||Sn,wn=Gn!=null?Gn:wt.selectable,Cr=fe.useMemo(()=>un!==void 0?un:yt,[yt,un]),jn={horizontal:{motionName:`${ze}-slide-up`},inline:(0,le.Z)(ze),other:{motionName:`${ze}-zoom-big`}},Tn=Ae("menu",at||wt.prefixCls),[or,Dr]=Wt(Tn,!it),Nr=he()(`${Tn}-${Ft}`,ke==null?void 0:ke.className,It);let Rr;if(typeof Tt=="function")Rr=Tt;else if(Tt===null||Tt===!1)Rr=null;else if(wt.expandIcon===null||wt.expandIcon===!1)Rr=null;else{const qn=Tt!=null?Tt:wt.expandIcon;Rr=(0,oe.Tm)(qn,{className:he()(`${Tn}-submenu-expand-icon`,(0,oe.l$)(qn)?(Be=qn.props)===null||Be===void 0?void 0:Be.className:"")})}const Fr=fe.useMemo(()=>({prefixCls:Tn,inlineCollapsed:Cr||!1,direction:Ke,firstLevel:!0,theme:Ft,mode:ar,disableMenuItemTitleTooltip:Gt}),[Tn,Cr,Ke,Gt,Ft]);return or(fe.createElement(de.Z.Provider,{value:null},fe.createElement(y.Provider,{value:Fr},fe.createElement(te.ZP,Object.assign({getPopupContainer:Re,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:he()(Tn,`${Tn}-${Ft}`,Wn),mode:ar,selectable:wn,onClick:mr},Jn,{inlineCollapsed:Cr,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Dt),className:Nr,prefixCls:Tn,direction:Ke,defaultMotions:jn,expandIcon:Rr,ref:ct,rootClassName:he()(pn,Dr)}),Yn))))});const sn=(0,fe.forwardRef)((st,ct)=>{const Ge=(0,fe.useRef)(null),Be=fe.useContext(be.D);return(0,fe.useImperativeHandle)(ct,()=>({menu:Ge.current,focus:it=>{var wt;(wt=Ge.current)===null||wt===void 0||wt.focus(it)}})),fe.createElement(xt,Object.assign({ref:Ge},st,Be))});sn.Item=E,sn.SubMenu=x,sn.Divider=ce,sn.ItemGroup=te.BW;var Vt=sn},58421:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return wt}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(Re,Ke){return fe.createElement(he.Z,(0,te.Z)({},Re,{ref:Ke,icon:ye}))},ie=fe.forwardRef(ge),ue=ie,ce=ee(49198),me=ee(33853),se=ee(38819),pe=ee(92310),oe=ee.n(pe),ne=ee(20068),y=ee(33885),a=ee(67732),E=ee(83652),b=ee(42403),x=ee(158),z=ee(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},le=re,de=ee(91735),ve=function(Ae){(0,b.Z)(Ke,Ae);var Re=(0,x.Z)(Ke);function Ke(){var ke;(0,a.Z)(this,Ke);for(var ze=arguments.length,at=new Array(ze),It=0;It<ze;It++)at[It]=arguments[It];return ke=Re.call.apply(Re,[this].concat(at)),ke.state={goInputText:""},ke.getValidValue=function(){var Dt=ke.state.goInputText;return!Dt||Number.isNaN(Dt)?void 0:Number(Dt)},ke.buildOptionText=function(Dt){return"".concat(Dt," ").concat(ke.props.locale.items_per_page)},ke.changeSize=function(Dt){ke.props.changeSize(Number(Dt))},ke.handleChange=function(Dt){ke.setState({goInputText:Dt.target.value})},ke.handleBlur=function(Dt){var Ft=ke.props,Tt=Ft.goButton,Gt=Ft.quickGo,yt=Ft.rootPrefixCls,un=ke.state.goInputText;Tt||un===""||(ke.setState({goInputText:""}),!(Dt.relatedTarget&&(Dt.relatedTarget.className.indexOf("".concat(yt,"-item-link"))>=0||Dt.relatedTarget.className.indexOf("".concat(yt,"-item"))>=0))&&Gt(ke.getValidValue()))},ke.go=function(Dt){var Ft=ke.state.goInputText;Ft!==""&&(Dt.keyCode===le.ENTER||Dt.type==="click")&&(ke.setState({goInputText:""}),ke.props.quickGo(ke.getValidValue()))},ke}return(0,E.Z)(Ke,[{key:"getPageSizeOptions",value:function(){var ze=this.props,at=ze.pageSize,It=ze.pageSizeOptions;return It.some(function(Dt){return Dt.toString()===at.toString()})?It:It.concat([at.toString()]).sort(function(Dt,Ft){var Tt=Number.isNaN(Number(Dt))?0:Number(Dt),Gt=Number.isNaN(Number(Ft))?0:Number(Ft);return Tt-Gt})}},{key:"render",value:function(){var ze=this,at=this.props,It=at.pageSize,Dt=at.locale,Ft=at.rootPrefixCls,Tt=at.changeSize,Gt=at.quickGo,yt=at.goButton,un=at.selectComponentClass,ln=at.buildOptionText,Ct=at.selectPrefixCls,pn=at.disabled,Sn=this.state.goInputText,Gn="".concat(Ft,"-options"),Ln=un,Wn=null,Zn=null,Jn=null;if(!Tt&&!Gt)return null;var Yn=this.getPageSizeOptions();if(Tt&&Ln){var mr=Yn.map(function(ar,wn){return fe.createElement(Ln.Option,{key:wn,value:ar.toString()},(ln||ze.buildOptionText)(ar))});Wn=fe.createElement(Ln,{disabled:pn,prefixCls:Ct,showSearch:!1,className:"".concat(Gn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(It||Yn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(wn){return wn.parentNode},"aria-label":Dt.page_size,defaultOpen:!1},mr)}return Gt&&(yt&&(Jn=typeof yt=="boolean"?fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:pn,className:"".concat(Gn,"-quick-jumper-button")},Dt.jump_to_confirm):fe.createElement("span",{onClick:this.go,onKeyUp:this.go},yt)),Zn=fe.createElement("div",{className:"".concat(Gn,"-quick-jumper")},Dt.jump_to,fe.createElement("input",{disabled:pn,type:"text",value:Sn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Dt.page}),Dt.page,Jn)),fe.createElement("li",{className:"".concat(Gn)},Wn,Zn)}}]),Ke}(fe.Component);ve.defaultProps={pageSizeOptions:["10","20","50","100"]};var Se=ve,Le=function(Re){var Ke,ke=Re.rootPrefixCls,ze=Re.page,at=Re.active,It=Re.className,Dt=Re.showTitle,Ft=Re.onClick,Tt=Re.onKeyPress,Gt=Re.itemRender,yt="".concat(ke,"-item"),un=oe()(yt,"".concat(yt,"-").concat(ze),(Ke={},(0,ne.Z)(Ke,"".concat(yt,"-active"),at),(0,ne.Z)(Ke,"".concat(yt,"-disabled"),!ze),(0,ne.Z)(Ke,Re.className,It),Ke)),ln=function(){Ft(ze)},Ct=function(Gn){Tt(Gn,Ft,ze)},pn=Gt(ze,"page",fe.createElement("a",{rel:"nofollow"},ze));return pn?fe.createElement("li",{title:Dt?ze.toString():null,className:un,onClick:ln,onKeyPress:Ct,tabIndex:0},pn):null},Ee=Le;function je(){}function xe(Ae){var Re=Number(Ae);return typeof Re=="number"&&!Number.isNaN(Re)&&isFinite(Re)&&Math.floor(Re)===Re}var lt=function(Re,Ke,ke){return ke};function Ye(Ae,Re,Ke){var ke=typeof Ae=="undefined"?Re.pageSize:Ae;return Math.floor((Ke.total-1)/ke)+1}var ft=function(Ae){(0,b.Z)(Ke,Ae);var Re=(0,x.Z)(Ke);function Ke(ke){var ze;(0,a.Z)(this,Ke),ze=Re.call(this,ke),ze.paginationNode=fe.createRef(),ze.getJumpPrevPage=function(){return Math.max(1,ze.state.current-(ze.props.showLessItems?3:5))},ze.getJumpNextPage=function(){return Math.min(Ye(void 0,ze.state,ze.props),ze.state.current+(ze.props.showLessItems?3:5))},ze.getItemIcon=function(Tt,Gt){var yt=ze.props.prefixCls,un=Tt||fe.createElement("button",{type:"button","aria-label":Gt,className:"".concat(yt,"-item-link")});return typeof Tt=="function"&&(un=fe.createElement(Tt,(0,y.Z)({},ze.props))),un},ze.isValid=function(Tt){var Gt=ze.props.total;return xe(Tt)&&Tt!==ze.state.current&&xe(Gt)&&Gt>0},ze.shouldDisplayQuickJumper=function(){var Tt=ze.props,Gt=Tt.showQuickJumper,yt=Tt.total,un=ze.state.pageSize;return yt<=un?!1:Gt},ze.handleKeyDown=function(Tt){(Tt.keyCode===le.ARROW_UP||Tt.keyCode===le.ARROW_DOWN)&&Tt.preventDefault()},ze.handleKeyUp=function(Tt){var Gt=ze.getValidValue(Tt),yt=ze.state.currentInputValue;Gt!==yt&&ze.setState({currentInputValue:Gt}),Tt.keyCode===le.ENTER?ze.handleChange(Gt):Tt.keyCode===le.ARROW_UP?ze.handleChange(Gt-1):Tt.keyCode===le.ARROW_DOWN&&ze.handleChange(Gt+1)},ze.handleBlur=function(Tt){var Gt=ze.getValidValue(Tt);ze.handleChange(Gt)},ze.changePageSize=function(Tt){var Gt=ze.state.current,yt=Ye(Tt,ze.state,ze.props);Gt=Gt>yt?yt:Gt,yt===0&&(Gt=ze.state.current),typeof Tt=="number"&&("pageSize"in ze.props||ze.setState({pageSize:Tt}),"current"in ze.props||ze.setState({current:Gt,currentInputValue:Gt})),ze.props.onShowSizeChange(Gt,Tt),"onChange"in ze.props&&ze.props.onChange&&ze.props.onChange(Gt,Tt)},ze.handleChange=function(Tt){var Gt=ze.props,yt=Gt.disabled,un=Gt.onChange,ln=ze.state,Ct=ln.pageSize,pn=ln.current,Sn=ln.currentInputValue;if(ze.isValid(Tt)&&!yt){var Gn=Ye(void 0,ze.state,ze.props),Ln=Tt;return Tt>Gn?Ln=Gn:Tt<1&&(Ln=1),"current"in ze.props||ze.setState({current:Ln}),Ln!==Sn&&ze.setState({currentInputValue:Ln}),un(Ln,Ct),Ln}return pn},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<Ye(void 0,ze.state,ze.props)},ze.runIfEnter=function(Tt,Gt){if(Tt.key==="Enter"||Tt.charCode===13){for(var yt=arguments.length,un=new Array(yt>2?yt-2:0),ln=2;ln<yt;ln++)un[ln-2]=arguments[ln];Gt.apply(void 0,un)}},ze.runIfEnterPrev=function(Tt){ze.runIfEnter(Tt,ze.prev)},ze.runIfEnterNext=function(Tt){ze.runIfEnter(Tt,ze.next)},ze.runIfEnterJumpPrev=function(Tt){ze.runIfEnter(Tt,ze.jumpPrev)},ze.runIfEnterJumpNext=function(Tt){ze.runIfEnter(Tt,ze.jumpNext)},ze.handleGoTO=function(Tt){(Tt.keyCode===le.ENTER||Tt.type==="click")&&ze.handleChange(ze.state.currentInputValue)},ze.renderPrev=function(Tt){var Gt=ze.props,yt=Gt.prevIcon,un=Gt.itemRender,ln=un(Tt,"prev",ze.getItemIcon(yt,"prev page")),Ct=!ze.hasPrev();return(0,fe.isValidElement)(ln)?(0,fe.cloneElement)(ln,{disabled:Ct}):ln},ze.renderNext=function(Tt){var Gt=ze.props,yt=Gt.nextIcon,un=Gt.itemRender,ln=un(Tt,"next",ze.getItemIcon(yt,"next page")),Ct=!ze.hasNext();return(0,fe.isValidElement)(ln)?(0,fe.cloneElement)(ln,{disabled:Ct}):ln};var at=ke.onChange!==je,It="current"in ke;It&&!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 Dt=ke.defaultCurrent;"current"in ke&&(Dt=ke.current);var Ft=ke.defaultPageSize;return"pageSize"in ke&&(Ft=ke.pageSize),Dt=Math.min(Dt,Ye(Ft,void 0,ke)),ze.state={current:Dt,currentInputValue:Dt,pageSize:Ft},ze}return(0,E.Z)(Ke,[{key:"componentDidUpdate",value:function(ze,at){var It=this.props.prefixCls;if(at.current!==this.state.current&&this.paginationNode.current){var Dt=this.paginationNode.current.querySelector(".".concat(It,"-item-").concat(at.current));if(Dt&&document.activeElement===Dt){var Ft;Dt==null||(Ft=Dt.blur)===null||Ft===void 0||Ft.call(Dt)}}}},{key:"getValidValue",value:function(ze){var at=ze.target.value,It=Ye(void 0,this.state,this.props),Dt=this.state.currentInputValue,Ft;return at===""?Ft=at:Number.isNaN(Number(at))?Ft=Dt:at>=It?Ft=It:Ft=Number(at),Ft}},{key:"getShowSizeChanger",value:function(){var ze=this.props,at=ze.showSizeChanger,It=ze.total,Dt=ze.totalBoundaryShowSizeChanger;return typeof at!="undefined"?at:It>Dt}},{key:"render",value:function(){var ze=this.props,at=ze.prefixCls,It=ze.className,Dt=ze.style,Ft=ze.disabled,Tt=ze.hideOnSinglePage,Gt=ze.total,yt=ze.locale,un=ze.showQuickJumper,ln=ze.showLessItems,Ct=ze.showTitle,pn=ze.showTotal,Sn=ze.simple,Gn=ze.itemRender,Ln=ze.showPrevNextJumpers,Wn=ze.jumpPrevIcon,Zn=ze.jumpNextIcon,Jn=ze.selectComponentClass,Yn=ze.selectPrefixCls,mr=ze.pageSizeOptions,ar=this.state,wn=ar.current,Cr=ar.pageSize,jn=ar.currentInputValue;if(Tt===!0&&Gt<=Cr)return null;var Tn=Ye(void 0,this.state,this.props),or=[],Dr=null,Nr=null,Rr=null,Fr=null,qn=null,sr=un&&un.goButton,Qt=ln?1:2,ae=wn-1>0?wn-1:0,_e=wn+1<Tn?wn+1:Tn,Pe=(0,z.Z)(this.props,{aria:!0,data:!0}),Ie=pn&&fe.createElement("li",{className:"".concat(at,"-total-text")},pn(Gt,[Gt===0?0:(wn-1)*Cr+1,wn*Cr>Gt?Gt:wn*Cr]));if(Sn){sr&&(typeof sr=="boolean"?qn=fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yt.jump_to_confirm):qn=fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},sr),qn=fe.createElement("li",{title:Ct?"".concat(yt.jump_to).concat(wn,"/").concat(Tn):null,className:"".concat(at,"-simple-pager")},qn));var Fe=this.renderPrev(ae);return fe.createElement("ul",(0,te.Z)({className:oe()(at,"".concat(at,"-simple"),(0,ne.Z)({},"".concat(at,"-disabled"),Ft),It),style:Dt,ref:this.paginationNode},Pe),Ie,Fe?fe.createElement("li",{title:Ct?yt.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()},Fe):null,fe.createElement("li",{title:Ct?"".concat(wn,"/").concat(Tn):null,className:"".concat(at,"-simple-pager")},fe.createElement("input",{type:"text",value:jn,disabled:Ft,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),fe.createElement("span",{className:"".concat(at,"-slash")},"/"),Tn),fe.createElement("li",{title:Ct?yt.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(_e)),qn)}if(Tn<=3+Qt*2){var tt={locale:yt,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ct,itemRender:Gn};Tn||or.push(fe.createElement(Ee,(0,te.Z)({},tt,{key:"noPager",page:1,className:"".concat(at,"-item-disabled")})));for(var ht=1;ht<=Tn;ht+=1){var on=wn===ht;or.push(fe.createElement(Ee,(0,te.Z)({},tt,{key:ht,page:ht,active:on})))}}else{var zt=ln?yt.prev_3:yt.prev_5,_t=ln?yt.next_3:yt.next_5,mt=Gn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Wn,"prev page")),Bt=Gn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Zn,"next page"));Ln&&(Dr=mt?fe.createElement("li",{title:Ct?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"),!!Wn))},mt):null,Nr=Bt?fe.createElement("li",{title:Ct?_t: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"),!!Zn))},Bt):null),Fr=fe.createElement(Ee,{locale:yt,last:!0,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Tn,page:Tn,active:!1,showTitle:Ct,itemRender:Gn}),Rr=fe.createElement(Ee,{locale:yt,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ct,itemRender:Gn});var ut=Math.max(1,wn-Qt),Ht=Math.min(wn+Qt,Tn);wn-1<=Qt&&(Ht=1+Qt*2),Tn-wn<=Qt&&(ut=Tn-Qt*2);for(var Yt=ut;Yt<=Ht;Yt+=1){var Ot=wn===Yt;or.push(fe.createElement(Ee,{locale:yt,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Yt,page:Yt,active:Ot,showTitle:Ct,itemRender:Gn}))}wn-1>=Qt*2&&wn!==3&&(or[0]=(0,fe.cloneElement)(or[0],{className:"".concat(at,"-item-after-jump-prev")}),or.unshift(Dr)),Tn-wn>=Qt*2&&wn!==Tn-2&&(or[or.length-1]=(0,fe.cloneElement)(or[or.length-1],{className:"".concat(at,"-item-before-jump-next")}),or.push(Nr)),ut!==1&&or.unshift(Rr),Ht!==Tn&&or.push(Fr)}var kt=!this.hasPrev()||!Tn,Jt=!this.hasNext()||!Tn,cn=this.renderPrev(ae),Mn=this.renderNext(_e);return fe.createElement("ul",(0,te.Z)({className:oe()(at,It,(0,ne.Z)({},"".concat(at,"-disabled"),Ft)),style:Dt,ref:this.paginationNode},Pe),Ie,cn?fe.createElement("li",{title:Ct?yt.prev_page:null,onClick:this.prev,tabIndex:kt?null:0,onKeyPress:this.runIfEnterPrev,className:oe()("".concat(at,"-prev"),(0,ne.Z)({},"".concat(at,"-disabled"),kt)),"aria-disabled":kt},cn):null,or,Mn?fe.createElement("li",{title:Ct?yt.next_page:null,onClick:this.next,tabIndex:Jt?null:0,onKeyPress:this.runIfEnterNext,className:oe()("".concat(at,"-next"),(0,ne.Z)({},"".concat(at,"-disabled"),Jt)),"aria-disabled":Jt},Mn):null,fe.createElement(Se,{disabled:Ft,locale:yt,rootPrefixCls:at,selectComponentClass:Jn,selectPrefixCls:Yn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:wn,pageSize:Cr,pageSizeOptions:mr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:sr}))}}],[{key:"getDerivedStateFromProps",value:function(ze,at){var It={};if("current"in ze&&(It.current=ze.current,ze.current!==at.current&&(It.currentInputValue=It.current)),"pageSize"in ze&&ze.pageSize!==at.pageSize){var Dt=at.current,Ft=Ye(ze.pageSize,at,ze);Dt=Dt>Ft?Ft:Dt,"current"in ze||(It.current=Dt,It.currentInputValue=Dt),It.pageSize=ze.pageSize}return It}}]),Ke}(fe.Component);ft.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:de.Z,style:{},itemRender:lt,totalBoundaryShowSizeChanger:50};var Me=ft,He=ee(22075),Ne=ee(36355),ot=ee(19716),Ze=ee(8628),vt=ee(9763),Pt=ee(57809);const Mt=Ae=>fe.createElement(Pt.default,Object.assign({},Ae,{showSearch:!0,size:"small"})),At=Ae=>fe.createElement(Pt.default,Object.assign({},Ae,{showSearch:!0,size:"middle"}));Mt.Option=Pt.default.Option,At.Option=Pt.default.Option;var et=ee(9937),Qe=ee(17313),Et=ee(83116),Kt=ee(37613);const bt=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Re}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"}}},[`&${Re}-disabled`]:{cursor:"not-allowed",[`${Re}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ae.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ae.colorBorder,backgroundColor:Ae.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ae.itemActiveBgDisabled},a:{color:Ae.itemActiveColorDisabled}}},[`${Re}-item-link`]:{color:Ae.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Re}-simple-pager`]:{color:Ae.colorTextDisabled},[`${Re}-jump-prev, ${Re}-jump-next`]:{[`${Re}-item-link-icon`]:{opacity:0},[`${Re}-item-ellipsis`]:{opacity:1}}},[`&${Re}-simple`]:{[`${Re}-prev, ${Re}-next`]:{[`&${Re}-disabled ${Re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Wt=Ae=>{const{componentCls:Re}=Ae;return{[`&${Re}-mini ${Re}-total-text, &${Re}-mini ${Re}-simple-pager`]:{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`},[`&${Re}-mini ${Re}-item`]:{minWidth:Ae.itemSizeSM,height:Ae.itemSizeSM,margin:0,lineHeight:`${Ae.itemSizeSM-2}px`},[`&${Re}-mini:not(${Re}-disabled) ${Re}-item:not(${Re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive}},[`&${Re}-mini ${Re}-prev, &${Re}-mini ${Re}-next`]:{minWidth:Ae.itemSizeSM,height:Ae.itemSizeSM,margin:0,lineHeight:`${Ae.itemSizeSM}px`},[`&${Re}-mini:not(${Re}-disabled)`]:{[`${Re}-prev, ${Re}-next`]:{[`&:hover ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextActive},[`&${Re}-disabled:hover ${Re}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Re}-mini ${Re}-prev ${Re}-item-link,
|
|
|
&${Re}-mini ${Re}-next ${Re}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`}},[`&${Re}-mini ${Re}-jump-prev, &${Re}-mini ${Re}-jump-next`]:{height:Ae.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ae.itemSizeSM}px`},[`&${Re}-mini ${Re}-options`]:{marginInlineStart:Ae.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ae.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,et.x0)(Ae)),{width:Ae.paginationMiniQuickJumperInputWidth,height:Ae.controlHeightSM})}}}},$e=Ae=>{const{componentCls:Re}=Ae;return{[`
|
|
|
&${Re}-simple ${Re}-prev,
|
|
|
&${Re}-simple ${Re}-next
|
|
|
`]:{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`,verticalAlign:"top",[`${Re}-item-link`]:{height:Ae.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive},"&::after":{height:Ae.itemSizeSM,lineHeight:`${Ae.itemSizeSM}px`}}},[`&${Re}-simple ${Re}-simple-pager`]:{display:"inline-block",height:Ae.itemSizeSM,marginInlineEnd:Ae.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ae.marginXS,padding:`0 ${Ae.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ae.itemInputBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,borderRadius:Ae.borderRadius,outline:"none",transition:`border-color ${Ae.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ae.colorPrimary},"&:focus":{borderColor:Ae.colorPrimaryHover,boxShadow:`${Ae.inputOutlineOffset}px 0 ${Ae.controlOutlineWidth}px ${Ae.controlOutline}`},"&[disabled]":{color:Ae.colorTextDisabled,backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,cursor:"not-allowed"}}}}},St=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}-jump-prev, ${Re}-jump-next`]:{outline:0,[`${Re}-item-container`]:{position:"relative",[`${Re}-item-link-icon`]:{color:Ae.colorPrimary,fontSize:Ae.fontSizeSM,opacity:0,transition:`all ${Ae.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Re}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ae.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ae.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ae.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ae.motionDurationMid}`}},"&:hover":{[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Re}-prev,
|
|
|
${Re}-jump-prev,
|
|
|
${Re}-jump-next
|
|
|
`]:{marginInlineEnd:Ae.marginXS},[`
|
|
|
${Re}-prev,
|
|
|
${Re}-next,
|
|
|
${Re}-jump-prev,
|
|
|
${Re}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ae.itemSize,height:Ae.itemSize,color:Ae.colorText,fontFamily:Ae.fontFamily,lineHeight:`${Ae.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ae.borderRadius,cursor:"pointer",transition:`all ${Ae.motionDurationMid}`},[`${Re}-prev, ${Re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ae.colorText,cursor:"pointer",userSelect:"none"},[`${Re}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ae.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} transparent`,borderRadius:Ae.borderRadius,outline:"none",transition:`all ${Ae.motionDurationMid}`},[`&:hover ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextHover},[`&:active ${Re}-item-link`]:{backgroundColor:Ae.colorBgTextActive},[`&${Re}-disabled:hover`]:{[`${Re}-item-link`]:{backgroundColor:"transparent"}}},[`${Re}-slash`]:{marginInlineEnd:Ae.paginationSlashMarginInlineEnd,marginInlineStart:Ae.paginationSlashMarginInlineStart},[`${Re}-options`]:{display:"inline-block",marginInlineStart:Ae.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ae.controlHeight,marginInlineStart:Ae.marginXS,lineHeight:`${Ae.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,et.ik)(Ae)),{width:Ae.controlHeightLG*1.25,height:Ae.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ae.marginXS,marginInlineEnd:Ae.marginXS})}}}},xt=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}-item`]:{display:"inline-block",minWidth:Ae.itemSize,height:Ae.itemSize,marginInlineEnd:Ae.marginXS,fontFamily:Ae.fontFamily,lineHeight:`${Ae.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} transparent`,borderRadius:Ae.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ae.paginationItemPaddingInline}px`,color:Ae.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Re}-item-active)`]:{"&:hover":{transition:`all ${Ae.motionDurationMid}`,backgroundColor:Ae.colorBgTextHover},"&:active":{backgroundColor:Ae.colorBgTextActive}},"&-active":{fontWeight:Ae.fontWeightStrong,backgroundColor:Ae.itemActiveBg,borderColor:Ae.colorPrimary,a:{color:Ae.colorPrimary},"&:hover":{borderColor:Ae.colorPrimaryHover},"&:hover a":{color:Ae.colorPrimaryHover}}}}},sn=Ae=>{const{componentCls:Re}=Ae;return{[Re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(Ae)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Re}-total-text`]:{display:"inline-block",height:Ae.itemSize,marginInlineEnd:Ae.marginXS,lineHeight:`${Ae.itemSize-2}px`,verticalAlign:"middle"}}),xt(Ae)),St(Ae)),$e(Ae)),Wt(Ae)),bt(Ae)),{[`@media only screen and (max-width: ${Ae.screenLG}px)`]:{[`${Re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ae.screenSM}px)`]:{[`${Re}-options`]:{display:"none"}}}),[`&${Ae.componentCls}-rtl`]:{direction:"rtl"}}},Vt=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}${Re}-disabled:not(${Re}-mini)`]:{"&, &:hover":{[`${Re}-item-link`]:{borderColor:Ae.colorBorder}},"&:focus-visible":{[`${Re}-item-link`]:{borderColor:Ae.colorBorder}},[`${Re}-item, ${Re}-item-link`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,[`&:hover:not(${Re}-item-active)`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,a:{color:Ae.colorTextDisabled}},[`&${Re}-item-active`]:{backgroundColor:Ae.itemActiveBgDisabled}},[`${Re}-prev, ${Re}-next`]:{"&:hover button":{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder,color:Ae.colorTextDisabled},[`${Re}-item-link`]:{backgroundColor:Ae.colorBgContainerDisabled,borderColor:Ae.colorBorder}}},[`${Re}:not(${Re}-mini)`]:{[`${Re}-prev, ${Re}-next`]:{"&:hover button":{borderColor:Ae.colorPrimaryHover,backgroundColor:Ae.itemBg},[`${Re}-item-link`]:{backgroundColor:Ae.itemLinkBg,borderColor:Ae.colorBorder},[`&:hover ${Re}-item-link`]:{borderColor:Ae.colorPrimary,backgroundColor:Ae.itemBg,color:Ae.colorPrimary},[`&${Re}-disabled`]:{[`${Re}-item-link`]:{borderColor:Ae.colorBorder,color:Ae.colorTextDisabled}}},[`${Re}-item`]:{backgroundColor:Ae.itemBg,border:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`,[`&:hover:not(${Re}-item-active)`]:{borderColor:Ae.colorPrimary,backgroundColor:Ae.itemBg,a:{color:Ae.colorPrimary}},"&-active":{borderColor:Ae.colorPrimary}}}}},st=Ae=>{const{componentCls:Re}=Ae;return{[`${Re}:not(${Re}-disabled)`]:{[`${Re}-item`]:Object.assign({},(0,Qe.Qy)(Ae)),[`${Re}-jump-prev, ${Re}-jump-next`]:{"&:focus-visible":Object.assign({[`${Re}-item-link-icon`]:{opacity:1},[`${Re}-item-ellipsis`]:{opacity:0}},(0,Qe.oN)(Ae))},[`${Re}-prev, ${Re}-next`]:{[`&:focus-visible ${Re}-item-link`]:Object.assign({},(0,Qe.oN)(Ae))}}}};var ct=(0,Et.Z)("Pagination",Ae=>{const Re=(0,Kt.TS)(Ae,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ae.marginXXS/2,paginationMiniQuickJumperInputWidth:Ae.controlHeightLG*1.1,paginationItemPaddingInline:Ae.marginXXS*1.5,paginationEllipsisLetterSpacing:Ae.marginXXS/2,paginationSlashMarginInlineStart:Ae.marginXXS,paginationSlashMarginInlineEnd:Ae.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,et.e5)(Ae),(0,et.TM)(Ae));return[sn(Re),st(Re),Ae.wireframe&&Vt(Re)]},Ae=>({itemBg:Ae.colorBgContainer,itemSize:Ae.controlHeight,itemSizeSM:Ae.controlHeightSM,itemActiveBg:Ae.colorBgContainer,itemLinkBg:Ae.colorBgContainer,itemActiveColorDisabled:Ae.colorTextDisabled,itemActiveBgDisabled:Ae.controlItemBgActiveDisabled,itemInputBg:Ae.colorBgContainer,miniOptionsSizeChangerTop:0})),Ge=function(Ae,Re){var Ke={};for(var ke in Ae)Object.prototype.hasOwnProperty.call(Ae,ke)&&Re.indexOf(ke)<0&&(Ke[ke]=Ae[ke]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ke=Object.getOwnPropertySymbols(Ae);ze<ke.length;ze++)Re.indexOf(ke[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ae,ke[ze])&&(Ke[ke[ze]]=Ae[ke[ze]]);return Ke},it=Ae=>{const{prefixCls:Re,selectPrefixCls:Ke,className:ke,rootClassName:ze,style:at,size:It,locale:Dt,selectComponentClass:Ft,responsive:Tt,showSizeChanger:Gt}=Ae,yt=Ge(Ae,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:un}=(0,Ze.Z)(Tt),{getPrefixCls:ln,direction:Ct,pagination:pn={}}=fe.useContext(Ne.E_),Sn=ln("pagination",Re),[Gn,Ln]=ct(Sn),Wn=Gt!=null?Gt:pn.showSizeChanger,Zn=fe.useMemo(()=>{const Tn=fe.createElement("span",{className:`${Sn}-item-ellipsis`},"\u2022\u2022\u2022"),or=fe.createElement("button",{className:`${Sn}-item-link`,type:"button",tabIndex:-1},Ct==="rtl"?fe.createElement(se.Z,null):fe.createElement(me.Z,null)),Dr=fe.createElement("button",{className:`${Sn}-item-link`,type:"button",tabIndex:-1},Ct==="rtl"?fe.createElement(me.Z,null):fe.createElement(se.Z,null)),Nr=fe.createElement("a",{className:`${Sn}-item-link`},fe.createElement("div",{className:`${Sn}-item-container`},Ct==="rtl"?fe.createElement(ce.Z,{className:`${Sn}-item-link-icon`}):fe.createElement(ue,{className:`${Sn}-item-link-icon`}),Tn)),Rr=fe.createElement("a",{className:`${Sn}-item-link`},fe.createElement("div",{className:`${Sn}-item-container`},Ct==="rtl"?fe.createElement(ue,{className:`${Sn}-item-link-icon`}):fe.createElement(ce.Z,{className:`${Sn}-item-link-icon`}),Tn));return{prevIcon:or,nextIcon:Dr,jumpPrevIcon:Nr,jumpNextIcon:Rr}},[Ct,Sn]),[Jn]=(0,vt.Z)("Pagination",He.Z),Yn=Object.assign(Object.assign({},Jn),Dt),mr=(0,ot.Z)(It),ar=mr==="small"||!!(un&&!mr&&Tt),wn=ln("select",Ke),Cr=oe()({[`${Sn}-mini`]:ar,[`${Sn}-rtl`]:Ct==="rtl"},pn==null?void 0:pn.className,ke,ze,Ln),jn=Object.assign(Object.assign({},pn==null?void 0:pn.style),at);return Gn(fe.createElement(Me,Object.assign({},Zn,yt,{style:jn,prefixCls:Sn,selectPrefixCls:wn,className:Cr,selectComponentClass:Ft||(ar?Mt:At),locale:Yn,showSizeChanger:Wn})))},wt=it},61621:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return ct}});var te=ee(92310),fe=ee.n(te),be=ee(59301),ye=ee(36355),he=ee(2738),ie=Ge=>{const{prefixCls:Be,className:it,style:wt,size:Ae,shape:Re}=Ge,Ke=fe()({[`${Be}-lg`]:Ae==="large",[`${Be}-sm`]:Ae==="small"}),ke=fe()({[`${Be}-circle`]:Re==="circle",[`${Be}-square`]:Re==="square",[`${Be}-round`]:Re==="round"}),ze=be.useMemo(()=>typeof Ae=="number"?{width:Ae,height:Ae,lineHeight:`${Ae}px`}:{},[Ae]);return be.createElement("span",{className:fe()(Be,Ke,ke,it),style:Object.assign(Object.assign({},ze),wt)})},ue=ee(36237),ce=ee(83116),me=ee(37613);const se=new ue.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),pe=Ge=>({height:Ge,lineHeight:`${Ge}px`}),oe=Ge=>Object.assign({width:Ge},pe(Ge)),ne=Ge=>({background:Ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:Ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y=Ge=>Object.assign({width:Ge*5,minWidth:Ge*5},pe(Ge)),a=Ge=>{const{skeletonAvatarCls:Be,gradientFromColor:it,controlHeight:wt,controlHeightLG:Ae,controlHeightSM:Re}=Ge;return{[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:it},oe(wt)),[`${Be}${Be}-circle`]:{borderRadius:"50%"},[`${Be}${Be}-lg`]:Object.assign({},oe(Ae)),[`${Be}${Be}-sm`]:Object.assign({},oe(Re))}},E=Ge=>{const{controlHeight:Be,borderRadiusSM:it,skeletonInputCls:wt,controlHeightLG:Ae,controlHeightSM:Re,gradientFromColor:Ke}=Ge;return{[`${wt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke,borderRadius:it},y(Be)),[`${wt}-lg`]:Object.assign({},y(Ae)),[`${wt}-sm`]:Object.assign({},y(Re))}},b=Ge=>Object.assign({width:Ge},pe(Ge)),x=Ge=>{const{skeletonImageCls:Be,imageSizeBase:it,gradientFromColor:wt,borderRadiusSM:Ae}=Ge;return{[`${Be}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:wt,borderRadius:Ae},b(it*2)),{[`${Be}-path`]:{fill:"#bfbfbf"},[`${Be}-svg`]:Object.assign(Object.assign({},b(it)),{maxWidth:it*4,maxHeight:it*4}),[`${Be}-svg${Be}-svg-circle`]:{borderRadius:"50%"}}),[`${Be}${Be}-circle`]:{borderRadius:"50%"}}},z=(Ge,Be,it)=>{const{skeletonButtonCls:wt}=Ge;return{[`${it}${wt}-circle`]:{width:Be,minWidth:Be,borderRadius:"50%"},[`${it}${wt}-round`]:{borderRadius:Be}}},re=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},pe(Ge)),le=Ge=>{const{borderRadiusSM:Be,skeletonButtonCls:it,controlHeight:wt,controlHeightLG:Ae,controlHeightSM:Re,gradientFromColor:Ke}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${it}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ke,borderRadius:Be,width:wt*2,minWidth:wt*2},re(wt))},z(Ge,wt,it)),{[`${it}-lg`]:Object.assign({},re(Ae))}),z(Ge,Ae,`${it}-lg`)),{[`${it}-sm`]:Object.assign({},re(Re))}),z(Ge,Re,`${it}-sm`))},de=Ge=>{const{componentCls:Be,skeletonAvatarCls:it,skeletonTitleCls:wt,skeletonParagraphCls:Ae,skeletonButtonCls:Re,skeletonInputCls:Ke,skeletonImageCls:ke,controlHeight:ze,controlHeightLG:at,controlHeightSM:It,gradientFromColor:Dt,padding:Ft,marginSM:Tt,borderRadius:Gt,titleHeight:yt,blockRadius:un,paragraphLiHeight:ln,controlHeightXS:Ct,paragraphMarginTop:pn}=Ge;return{[`${Be}`]:{display:"table",width:"100%",[`${Be}-header`]:{display:"table-cell",paddingInlineEnd:Ft,verticalAlign:"top",[`${it}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Dt},oe(ze)),[`${it}-circle`]:{borderRadius:"50%"},[`${it}-lg`]:Object.assign({},oe(at)),[`${it}-sm`]:Object.assign({},oe(It))},[`${Be}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${wt}`]:{width:"100%",height:yt,background:Dt,borderRadius:un,[`+ ${Ae}`]:{marginBlockStart:It}},[`${Ae}`]:{padding:0,"> li":{width:"100%",height:ln,listStyle:"none",background:Dt,borderRadius:un,"+ li":{marginBlockStart:Ct}}},[`${Ae}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Be}-content`]:{[`${wt}, ${Ae} > li`]:{borderRadius:Gt}}},[`${Be}-with-avatar ${Be}-content`]:{[`${wt}`]:{marginBlockStart:Tt,[`+ ${Ae}`]:{marginBlockStart:pn}}},[`${Be}${Be}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},le(Ge)),a(Ge)),E(Ge)),x(Ge)),[`${Be}${Be}-block`]:{width:"100%",[`${Re}`]:{width:"100%"},[`${Ke}`]:{width:"100%"}},[`${Be}${Be}-active`]:{[`
|
|
|
${wt},
|
|
|
${Ae} > li,
|
|
|
${it},
|
|
|
${Re},
|
|
|
${Ke},
|
|
|
${ke}
|
|
|
`]:Object.assign({},ne(Ge))}}};var ve=(0,ce.Z)("Skeleton",Ge=>{const{componentCls:Be}=Ge,it=(0,me.TS)(Ge,{skeletonAvatarCls:`${Be}-avatar`,skeletonTitleCls:`${Be}-title`,skeletonParagraphCls:`${Be}-paragraph`,skeletonButtonCls:`${Be}-button`,skeletonInputCls:`${Be}-input`,skeletonImageCls:`${Be}-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[de(it)]},Ge=>{const{colorFillContent:Be,colorFill:it}=Ge,wt=Be,Ae=it;return{color:wt,colorGradientEnd:Ae,gradientFromColor:wt,gradientToColor:Ae,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:Be,className:it,rootClassName:wt,active:Ae,shape:Re="circle",size:Ke="default"}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Be),[at,It]=ve(ze),Dt=(0,he.Z)(Ge,["prefixCls","className"]),Ft=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Ae},it,wt,It);return at(be.createElement("div",{className:Ft},be.createElement(ie,Object.assign({prefixCls:`${ze}-avatar`,shape:Re,size:Ke},Dt))))},je=Ge=>{const{prefixCls:Be,className:it,rootClassName:wt,active:Ae,block:Re=!1,size:Ke="default"}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Be),[at,It]=ve(ze),Dt=(0,he.Z)(Ge,["prefixCls"]),Ft=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Ae,[`${ze}-block`]:Re},it,wt,It);return at(be.createElement("div",{className:Ft},be.createElement(ie,Object.assign({prefixCls:`${ze}-button`,size:Ke},Dt))))};const xe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Ye=Ge=>{const{prefixCls:Be,className:it,rootClassName:wt,style:Ae,active:Re}=Ge,{getPrefixCls:Ke}=be.useContext(ye.E_),ke=Ke("skeleton",Be),[ze,at]=ve(ke),It=fe()(ke,`${ke}-element`,{[`${ke}-active`]:Re},it,wt,at);return ze(be.createElement("div",{className:It},be.createElement("div",{className:fe()(`${ke}-image`,it),style:Ae},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ke}-image-svg`},be.createElement("path",{d:xe,className:`${ke}-image-path`})))))},Me=Ge=>{const{prefixCls:Be,className:it,rootClassName:wt,active:Ae,block:Re,size:Ke="default"}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Be),[at,It]=ve(ze),Dt=(0,he.Z)(Ge,["prefixCls"]),Ft=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Ae,[`${ze}-block`]:Re},it,wt,It);return at(be.createElement("div",{className:Ft},be.createElement(ie,Object.assign({prefixCls:`${ze}-input`,size:Ke},Dt))))},He=ee(54476),Ne={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"},ot=Ne,Ze=ee(7657),vt=function(Be,it){return be.createElement(Ze.Z,(0,He.Z)({},Be,{ref:it,icon:ot}))},Pt=be.forwardRef(vt),Mt=Pt,et=Ge=>{const{prefixCls:Be,className:it,rootClassName:wt,style:Ae,active:Re,children:Ke}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Be),[at,It]=ve(ze),Dt=fe()(ze,`${ze}-element`,{[`${ze}-active`]:Re},It,it,wt),Ft=Ke!=null?Ke:be.createElement(Mt,null);return at(be.createElement("div",{className:Dt},be.createElement("div",{className:fe()(`${ze}-image`,it),style:Ae},Ft)))},Qe=ee(94480),Kt=Ge=>{const Be=ke=>{const{width:ze,rows:at=2}=Ge;if(Array.isArray(ze))return ze[ke];if(at-1===ke)return ze},{prefixCls:it,className:wt,style:Ae,rows:Re}=Ge,Ke=(0,Qe.Z)(Array(Re)).map((ke,ze)=>be.createElement("li",{key:ze,style:{width:Be(ze)}}));return be.createElement("ul",{className:fe()(it,wt),style:Ae},Ke)},Wt=Ge=>{let{prefixCls:Be,className:it,width:wt,style:Ae}=Ge;return be.createElement("h3",{className:fe()(Be,it),style:Object.assign({width:wt},Ae)})};function $e(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function St(Ge,Be){return Ge&&!Be?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xt(Ge,Be){return!Ge&&Be?{width:"38%"}:Ge&&Be?{width:"50%"}:{}}function sn(Ge,Be){const it={};return(!Ge||!Be)&&(it.width="61%"),!Ge&&Be?it.rows=3:it.rows=2,it}const Vt=Ge=>{const{prefixCls:Be,loading:it,className:wt,rootClassName:Ae,style:Re,children:Ke,avatar:ke=!1,title:ze=!0,paragraph:at=!0,active:It,round:Dt}=Ge,{getPrefixCls:Ft,direction:Tt,skeleton:Gt}=be.useContext(ye.E_),yt=Ft("skeleton",Be),[un,ln]=ve(yt);if(it||!("loading"in Ge)){const Ct=!!ke,pn=!!ze,Sn=!!at;let Gn;if(Ct){const Zn=Object.assign(Object.assign({prefixCls:`${yt}-avatar`},St(pn,Sn)),$e(ke));Gn=be.createElement("div",{className:`${yt}-header`},be.createElement(ie,Object.assign({},Zn)))}let Ln;if(pn||Sn){let Zn;if(pn){const Yn=Object.assign(Object.assign({prefixCls:`${yt}-title`},xt(Ct,Sn)),$e(ze));Zn=be.createElement(Wt,Object.assign({},Yn))}let Jn;if(Sn){const Yn=Object.assign(Object.assign({prefixCls:`${yt}-paragraph`},sn(Ct,pn)),$e(at));Jn=be.createElement(Kt,Object.assign({},Yn))}Ln=be.createElement("div",{className:`${yt}-content`},Zn,Jn)}const Wn=fe()(yt,{[`${yt}-with-avatar`]:Ct,[`${yt}-active`]:It,[`${yt}-rtl`]:Tt==="rtl",[`${yt}-round`]:Dt},Gt==null?void 0:Gt.className,wt,Ae,ln);return un(be.createElement("div",{className:Wn,style:Object.assign(Object.assign({},Gt==null?void 0:Gt.style),Re)},Gn,Ln))}return typeof Ke!="undefined"?Ke:null};Vt.Button=je,Vt.Avatar=Le,Vt.Input=Me,Vt.Image=Ye,Vt.Node=et;var st=Vt,ct=st},31797:function(gt,Ve,ee){"use strict";ee.d(Ve,{default:function(){return ve}});var te=ee(59301),fe=ee(56762),be=ee(92343),ye=ee(92310),he=ee.n(ye),ge=ee(36355),ie=ee(61621),ce=Se=>{const{value:Le,formatter:Ee,precision:je,decimalSeparator:xe,groupSeparator:lt="",prefixCls:Ye}=Se;let ft;if(typeof Ee=="function")ft=Ee(Le);else{const Me=String(Le),He=Me.match(/^(-?)(\d*)(\.(\d+))?$/);if(!He||Me==="-")ft=Me;else{const Ne=He[1];let ot=He[2]||"0",Ze=He[4]||"";ot=ot.replace(/\B(?=(\d{3})+(?!\d))/g,lt),typeof je=="number"&&(Ze=Ze.padEnd(je,"0").slice(0,je>0?je:0)),Ze&&(Ze=`${xe}${Ze}`),ft=[te.createElement("span",{key:"int",className:`${Ye}-content-value-int`},Ne,ot),Ze&&te.createElement("span",{key:"decimal",className:`${Ye}-content-value-decimal`},Ze)]}}return te.createElement("span",{className:`${Ye}-content-value`},ft)},me=ee(17313),se=ee(83116),pe=ee(37613);const oe=Se=>{const{componentCls:Le,marginXXS:Ee,padding:je,colorTextDescription:xe,titleFontSize:lt,colorTextHeading:Ye,contentFontSize:ft,fontFamily:Me}=Se;return{[`${Le}`]:Object.assign(Object.assign({},(0,me.Wf)(Se)),{[`${Le}-title`]:{marginBottom:Ee,color:xe,fontSize:lt},[`${Le}-skeleton`]:{paddingTop:je},[`${Le}-content`]:{color:Ye,fontSize:ft,fontFamily:Me,[`${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,se.Z)("Statistic",Se=>{const Le=(0,pe.TS)(Se,{});return[oe(Le)]},Se=>{const{fontSizeHeading3:Le,fontSize:Ee}=Se;return{titleFontSize:Ee,contentFontSize:Le}}),a=Se=>{const{prefixCls:Le,className:Ee,rootClassName:je,style:xe,valueStyle:lt,value:Ye=0,title:ft,valueRender:Me,prefix:He,suffix:Ne,loading:ot=!1,onMouseEnter:Ze,onMouseLeave:vt,decimalSeparator:Pt=".",groupSeparator:Mt=","}=Se,{getPrefixCls:At,direction:et,statistic:Qe}=te.useContext(ge.E_),Et=At("statistic",Le),[Kt,bt]=ne(Et),Wt=te.createElement(ce,Object.assign({decimalSeparator:Pt,groupSeparator:Mt,prefixCls:Et},Se,{value:Ye})),$e=he()(Et,{[`${Et}-rtl`]:et==="rtl"},Qe==null?void 0:Qe.className,Ee,je,bt);return Kt(te.createElement("div",{className:$e,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),xe),onMouseEnter:Ze,onMouseLeave:vt},ft&&te.createElement("div",{className:`${Et}-title`},ft),te.createElement(ie.Z,{paragraph:!1,loading:ot,className:`${Et}-skeleton`},te.createElement("div",{style:lt,className:`${Et}-content`},He&&te.createElement("span",{className:`${Et}-content-prefix`},He),Me?Me(Wt):Wt,Ne&&te.createElement("span",{className:`${Et}-content-suffix`},Ne)))))};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,xe=(Le.match(je)||[]).map(Me=>Me.slice(1,-1)),lt=Le.replace(je,"[]"),Ye=E.reduce((Me,He)=>{let[Ne,ot]=He;if(Me.includes(Ne)){const Ze=Math.floor(Ee/ot);return Ee-=Ze*ot,Me.replace(new RegExp(`${Ne}+`,"g"),vt=>{const Pt=vt.length;return Ze.toString().padStart(Pt,"0")})}return Me},lt);let ft=0;return Ye.replace(je,()=>{const Me=xe[ft];return ft+=1,Me})}function x(Se,Le){const{format:Ee=""}=Le,je=new Date(Se).getTime(),xe=Date.now(),lt=Math.max(je-xe,0);return b(lt,Ee)}const z=1e3/30;function re(Se){return new Date(Se).getTime()}const le=Se=>{const{value:Le,format:Ee="HH:mm:ss",onChange:je,onFinish:xe}=Se,lt=(0,fe.Z)(),Ye=te.useRef(null),ft=()=>{xe==null||xe(),Ye.current&&(clearInterval(Ye.current),Ye.current=null)},Me=()=>{const ot=re(Le);ot>=Date.now()&&(Ye.current=setInterval(()=>{lt(),je==null||je(ot-Date.now()),ot<Date.now()&&ft()},z))};te.useEffect(()=>(Me(),()=>{Ye.current&&(clearInterval(Ye.current),Ye.current=null)}),[Le]);const He=(ot,Ze)=>x(ot,Object.assign(Object.assign({},Ze),{format:Ee})),Ne=ot=>(0,be.Tm)(ot,{title:void 0});return te.createElement(a,Object.assign({},Se,{valueRender:Ne,formatter:He}))};var de=te.memo(le);a.Countdown=de;var ve=a},15969:function(gt,Ve,ee){"use strict";ee.d(Ve,{N:function(){return te}});const te=fe=>({color:fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${fe.motionDurationSlow}`,"&:focus, &:hover":{color:fe.colorLinkHover},"&:active":{color:fe.colorLinkActive}})},1710:function(gt,Ve,ee){"use strict";ee.d(Ve,{default:function(){return ts}});var te={},fe="rc-table-internal-hook",be=ee(42978),ye=ee(6089),he=ee(34280),ge=ee(13697),ie=ee(59301),ue=ee(4676);function ce(De){var Te=ie.createContext(void 0),Ue=function(Ce){var we=Ce.value,Oe=Ce.children,rt=ie.useRef(we);rt.current=we;var We=ie.useState(function(){return{getValue:function(){return rt.current},listeners:new Set}}),dt=(0,be.Z)(We,1),Je=dt[0];return(0,he.Z)(function(){(0,ue.unstable_batchedUpdates)(function(){Je.listeners.forEach(function(qe){qe(we)})})},[we]),ie.createElement(Te.Provider,{value:Je},Oe)};return{Context:Te,Provider:Ue,defaultValue:De}}function me(De,Te){var Ue=(0,ye.Z)(typeof Te=="function"?Te:function(qe){if(Te===void 0)return qe;if(!Array.isArray(Te))return qe[Te];var nt={};return Te.forEach(function(pt){nt[pt]=qe[pt]}),nt}),Xe=ie.useContext(De==null?void 0:De.Context),Ce=Xe||{},we=Ce.listeners,Oe=Ce.getValue,rt=ie.useRef();rt.current=Ue(Xe?Oe():De==null?void 0:De.defaultValue);var We=ie.useState({}),dt=(0,be.Z)(We,2),Je=dt[1];return(0,he.Z)(function(){if(!Xe)return;function qe(nt){var pt=Ue(nt);(0,ge.Z)(rt.current,pt,!0)||Je({})}return we.add(qe),function(){we.delete(qe)}},[Xe]),rt.current}var se=ee(54476),pe=ee(8654);function oe(){var De=ie.createContext(null);function Te(){return ie.useContext(De)}function Ue(Ce,we){var Oe=(0,pe.Yr)(Ce),rt=function(dt,Je){var qe=Oe?{ref:Je}:{},nt=ie.useRef(0),pt=ie.useRef(dt),Lt=Te();return Lt!==null?ie.createElement(Ce,(0,se.Z)({},dt,qe)):((!we||we(pt.current,dt))&&(nt.current+=1),pt.current=dt,ie.createElement(De.Provider,{value:nt.current},ie.createElement(Ce,(0,se.Z)({},dt,qe))))};return Oe?ie.forwardRef(rt):rt}function Xe(Ce,we){var Oe=(0,pe.Yr)(Ce),rt=function(dt,Je){var qe=Oe?{ref:Je}:{};return Te(),ie.createElement(Ce,(0,se.Z)({},dt,qe))};return Oe?ie.memo(ie.forwardRef(rt),we):ie.memo(rt,we)}return{makeImmutable:Ue,responseImmutable:Xe,useImmutableMark:Te}}var ne=oe(),y=ne.makeImmutable,a=ne.responseImmutable,E=ne.useImmutableMark,b=oe(),x=b.makeImmutable,z=b.responseImmutable,re=b.useImmutableMark,le=ce(),de=le;function ve(De,Te){var Ue=ie.useRef(0);Ue.current+=1;var Xe=ie.useRef(De),Ce=[];Object.keys(De||{}).map(function(Oe){var rt;(De==null?void 0:De[Oe])!==((rt=Xe.current)===null||rt===void 0?void 0:rt[Oe])&&Ce.push(Oe)}),Xe.current=De;var we=ie.useRef([]);return Ce.length&&(we.current=Ce),ie.useDebugValue(Ue.current),ie.useDebugValue(we.current.join(", ")),Te&&console.log("".concat(Te,":"),Ue.current,we.current),Ue.current}var Se=null,Le=ie.memo(function(){var De=ve();return ie.createElement("h1",null,"Render Times: ",De)});Le.displayName="RenderBlock";var Ee=ee(76190),je=ee(33885),xe=ee(20068),lt=ee(92310),Ye=ee.n(lt),ft=ee(80547),Me=ee(97938),He=ee(48736),Ne=ie.createContext({renderWithProps:!1}),ot=Ne,Ze="RC_TABLE_KEY";function vt(De){return De==null?[]:Array.isArray(De)?De:[De]}function Pt(De){var Te=[],Ue={};return De.forEach(function(Xe){for(var Ce=Xe||{},we=Ce.key,Oe=Ce.dataIndex,rt=we||vt(Oe).join("-")||Ze;Ue[rt];)rt="".concat(rt,"_next");Ue[rt]=!0,Te.push(rt)}),Te}function Mt(De){return De!=null}function At(De){return De&&(0,Ee.Z)(De)==="object"&&!Array.isArray(De)&&!ie.isValidElement(De)}function et(De,Te,Ue,Xe,Ce,we){var Oe=ie.useContext(ot),rt=re(),We=(0,ft.Z)(function(){if(Mt(Xe))return[Xe];var dt=Te==null||Te===""?[]:Array.isArray(Te)?Te:[Te],Je=(0,Me.Z)(De,dt),qe=Je,nt=void 0;if(Ce){var pt=Ce(Je,De,Ue);At(pt)?(qe=pt.children,nt=pt.props,Oe.renderWithProps=!0):qe=pt}return[qe,nt]},[rt,De,Xe,Te,Ce,Ue],function(dt,Je){if(we){var qe=(0,be.Z)(dt,2),nt=qe[1],pt=(0,be.Z)(Je,2),Lt=pt[1];return we(Lt,nt)}return Oe.renderWithProps?!0:!(0,ge.Z)(dt,Je,!0)});return We}function Qe(De,Te,Ue,Xe){var Ce=De+Te-1;return De<=Xe&&Ce>=Ue}function Et(De,Te){return me(de,function(Ue){var Xe=Qe(De,Te||1,Ue.hoverStartRow,Ue.hoverEndRow);return[Xe,Ue.onHover]})}var Kt=function(Te){var Ue=Te.ellipsis,Xe=Te.rowType,Ce=Te.children,we,Oe=Ue===!0?{showTitle:!0}:Ue;return Oe&&(Oe.showTitle||Xe==="header")&&(typeof Ce=="string"||typeof Ce=="number"?we=Ce.toString():ie.isValidElement(Ce)&&typeof Ce.props.children=="string"&&(we=Ce.props.children)),we};function bt(De){var Te,Ue,Xe,Ce,we,Oe,rt,We,dt=De.component,Je=De.children,qe=De.ellipsis,nt=De.scope,pt=De.prefixCls,Lt=De.className,$t=De.align,jt=De.record,Zt=De.render,Nt=De.dataIndex,nn=De.renderIndex,en=De.shouldCellUpdate,vn=De.index,Xt=De.rowType,Bn=De.colSpan,En=De.rowSpan,qt=De.fixLeft,fn=De.fixRight,Rt=De.firstFixLeft,rn=De.lastFixLeft,dn=De.firstFixRight,An=De.lastFixRight,Qn=De.appendNode,tn=De.additionalProps,yn=tn===void 0?{}:tn,gn=De.isSticky,mn="".concat(pt,"-cell"),On=me(de,["supportSticky","allColumnsFixedLeft"]),rr=On.supportSticky,Xn=On.allColumnsFixedLeft,zr=et(jt,Nt,nn,Je,Zt,en),er=(0,be.Z)(zr,2),Zr=er[0],Sr=er[1],Ir={},hr=typeof qt=="number"&&rr,Kn=typeof fn=="number"&&rr;hr&&(Ir.position="sticky",Ir.left=qt),Kn&&(Ir.position="sticky",Ir.right=fn);var xn=(Te=(Ue=(Xe=Sr==null?void 0:Sr.colSpan)!==null&&Xe!==void 0?Xe:yn.colSpan)!==null&&Ue!==void 0?Ue:Bn)!==null&&Te!==void 0?Te:1,Fn=(Ce=(we=(Oe=Sr==null?void 0:Sr.rowSpan)!==null&&Oe!==void 0?Oe:yn.rowSpan)!==null&&we!==void 0?we:En)!==null&&Ce!==void 0?Ce:1,$n=Et(vn,Fn),Rn=(0,be.Z)($n,2),Pr=Rn[0],kn=Rn[1],Hn=function(Tr){var wr;jt&&kn(vn,vn+Fn-1),yn==null||(wr=yn.onMouseEnter)===null||wr===void 0||wr.call(yn,Tr)},gr=function(Tr){var wr;jt&&kn(-1,-1),yn==null||(wr=yn.onMouseLeave)===null||wr===void 0||wr.call(yn,Tr)};if(xn===0||Fn===0)return null;var yr=(rt=yn.title)!==null&&rt!==void 0?rt:Kt({rowType:Xt,ellipsis:qe,children:Zr}),Lo=Ye()(mn,Lt,(We={},(0,xe.Z)(We,"".concat(mn,"-fix-left"),hr&&rr),(0,xe.Z)(We,"".concat(mn,"-fix-left-first"),Rt&&rr),(0,xe.Z)(We,"".concat(mn,"-fix-left-last"),rn&&rr),(0,xe.Z)(We,"".concat(mn,"-fix-left-all"),rn&&Xn&&rr),(0,xe.Z)(We,"".concat(mn,"-fix-right"),Kn&&rr),(0,xe.Z)(We,"".concat(mn,"-fix-right-first"),dn&&rr),(0,xe.Z)(We,"".concat(mn,"-fix-right-last"),An&&rr),(0,xe.Z)(We,"".concat(mn,"-ellipsis"),qe),(0,xe.Z)(We,"".concat(mn,"-with-append"),Qn),(0,xe.Z)(We,"".concat(mn,"-fix-sticky"),(hr||Kn)&&gn&&rr),(0,xe.Z)(We,"".concat(mn,"-row-hover"),!Sr&&Pr),We),yn.className,Sr==null?void 0:Sr.className),Po={};$t&&(Po.textAlign=$t);var tr=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Ir),yn.style),Po),Sr==null?void 0:Sr.style),fr=Zr;return(0,Ee.Z)(fr)==="object"&&!Array.isArray(fr)&&!ie.isValidElement(fr)&&(fr=null),qe&&(rn||dn)&&(fr=ie.createElement("span",{className:"".concat(mn,"-content")},fr)),ie.createElement(dt,(0,se.Z)({},Sr,yn,{className:Lo,style:tr,title:yr,scope:nt,onMouseEnter:Hn,onMouseLeave:gr,colSpan:xn!==1?xn:null,rowSpan:Fn!==1?Fn:null}),Qn,fr)}var Wt=ie.memo(bt);function $e(De,Te,Ue,Xe,Ce,we){var Oe=Ue[De]||{},rt=Ue[Te]||{},We,dt;Oe.fixed==="left"?We=Xe.left[Ce==="rtl"?Te:De]:rt.fixed==="right"&&(dt=Xe.right[Ce==="rtl"?De:Te]);var Je=!1,qe=!1,nt=!1,pt=!1,Lt=Ue[Te+1],$t=Ue[De-1],jt=!(we!=null&&we.children);if(Ce==="rtl"){if(We!==void 0){var Zt=$t&&$t.fixed==="left";pt=!Zt&&jt}else if(dt!==void 0){var Nt=Lt&&Lt.fixed==="right";nt=!Nt&&jt}}else if(We!==void 0){var nn=Lt&&Lt.fixed==="left";Je=!nn&&jt}else if(dt!==void 0){var en=$t&&$t.fixed==="right";qe=!en&&jt}return{fixLeft:We,fixRight:dt,lastFixLeft:Je,firstFixRight:qe,lastFixRight:nt,firstFixLeft:pt,isSticky:Xe.isSticky}}var St=ie.createContext({}),xt=St;function sn(De){var Te=De.className,Ue=De.index,Xe=De.children,Ce=De.colSpan,we=Ce===void 0?1:Ce,Oe=De.rowSpan,rt=De.align,We=me(de,["prefixCls","direction"]),dt=We.prefixCls,Je=We.direction,qe=ie.useContext(xt),nt=qe.scrollColumnIndex,pt=qe.stickyOffsets,Lt=qe.flattenColumns,$t=qe.columns,jt=Ue+we-1,Zt=jt+1===nt?we+1:we,Nt=$e(Ue,Ue+Zt-1,Lt,pt,Je,$t==null?void 0:$t[Ue]);return ie.createElement(Wt,(0,se.Z)({className:Te,index:Ue,component:"td",prefixCls:dt,record:null,dataIndex:null,align:rt,colSpan:Zt,rowSpan:Oe,render:function(){return Xe}},Nt))}var Vt=ee(75931),st=["children"];function ct(De){var Te=De.children,Ue=(0,Vt.Z)(De,st);return ie.createElement("tr",Ue,Te)}function Ge(De){var Te=De.children;return Te}Ge.Row=ct,Ge.Cell=sn;var Be=Ge;function it(De){var Te=De.children,Ue=De.stickyOffsets,Xe=De.flattenColumns,Ce=De.columns,we=me(de,"prefixCls"),Oe=Xe.length-1,rt=Xe[Oe],We=ie.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:Xe,scrollColumnIndex:rt!=null&&rt.scrollbar?Oe:null,columns:Ce}},[rt,Xe,Oe,Ue,Ce]);return ie.createElement(xt.Provider,{value:We},ie.createElement("tfoot",{className:"".concat(we,"-summary")},Te))}var wt=z(it),Ae=Be,Re=ee(70425),Ke=ee(29301),ke=ee(29194),ze=ee(24514),at=ee(75152),It=ee(26112);function Dt(De,Te,Ue,Xe,Ce,we,Oe){De.push({record:Te,indent:Ue,index:Oe});var rt=we(Te),We=Ce==null?void 0:Ce.has(rt);if(Te&&Array.isArray(Te[Xe])&&We)for(var dt=0;dt<Te[Xe].length;dt+=1)Dt(De,Te[Xe][dt],Ue+1,Xe,Ce,we,dt)}function Ft(De,Te,Ue,Xe){var Ce=ie.useMemo(function(){if(Ue!=null&&Ue.size){for(var we=[],Oe=0;Oe<(De==null?void 0:De.length);Oe+=1){var rt=De[Oe];Dt(we,rt,0,Te,Ue,Xe,Oe)}return we}return De==null?void 0:De.map(function(We,dt){return{record:We,indent:0,index:dt}})},[De,Te,Ue,Xe]);return Ce}function Tt(De){var Te=De.prefixCls,Ue=De.children,Xe=De.component,Ce=De.cellComponent,we=De.className,Oe=De.expanded,rt=De.colSpan,We=De.isEmpty,dt=me(de,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Je=dt.scrollbarSize,qe=dt.fixHeader,nt=dt.fixColumn,pt=dt.componentWidth,Lt=dt.horizonScroll,$t=Ue;return(We?Lt&&pt:nt)&&($t=ie.createElement("div",{style:{width:pt-(qe?Je:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Te,"-expanded-row-fixed")},$t)),ie.createElement(Xe,{className:we,style:{display:Oe?null:"none"}},ie.createElement(Wt,{component:Ce,prefixCls:Te,colSpan:rt},$t))}var Gt=Tt;function yt(De,Te,Ue,Xe){var Ce=me(de,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),we=Ce.flattenColumns,Oe=Ce.expandableType,rt=Ce.expandedKeys,We=Ce.childrenColumnName,dt=Ce.onTriggerExpand,Je=Ce.rowExpandable,qe=Ce.onRow,nt=Ce.expandRowByClick,pt=Ce.rowClassName,Lt=Oe==="nest",$t=Oe==="row"&&(!Je||Je(De)),jt=$t||Lt,Zt=rt&&rt.has(Te),Nt=We&&De&&De[We],nn=(0,Re.useEvent)(dt),en=qe==null?void 0:qe(De,Ue),vn=en==null?void 0:en.onClick,Xt=function(fn){nt&&jt&&dt(De,fn);for(var Rt=arguments.length,rn=new Array(Rt>1?Rt-1:0),dn=1;dn<Rt;dn++)rn[dn-1]=arguments[dn];vn==null||vn.apply(void 0,[fn].concat(rn))},Bn;typeof pt=="string"?Bn=pt:typeof pt=="function"&&(Bn=pt(De,Ue,Xe));var En=Pt(we);return(0,je.Z)((0,je.Z)({},Ce),{},{columnsKey:En,nestExpandable:Lt,expanded:Zt,hasNestChildren:Nt,record:De,onTriggerExpand:nn,rowSupportExpand:$t,expandable:jt,rowProps:(0,je.Z)((0,je.Z)({},en),{},{className:Ye()(Bn,en==null?void 0:en.className),onClick:Xt})})}function un(De,Te,Ue,Xe,Ce){var we=De.record,Oe=De.prefixCls,rt=De.columnsKey,We=De.fixedInfoList,dt=De.expandIconColumnIndex,Je=De.nestExpandable,qe=De.indentSize,nt=De.expandIcon,pt=De.expanded,Lt=De.hasNestChildren,$t=De.onTriggerExpand,jt=rt[Ue],Zt=We[Ue],Nt;Ue===(dt||0)&&Je&&(Nt=ie.createElement(ie.Fragment,null,ie.createElement("span",{style:{paddingLeft:"".concat(qe*Xe,"px")},className:"".concat(Oe,"-row-indent indent-level-").concat(Xe)}),nt({prefixCls:Oe,expanded:pt,expandable:Lt,record:we,onExpand:$t})));var nn;return Te.onCell&&(nn=Te.onCell(we,Ce)),{key:jt,fixedInfo:Zt,appendCellNode:Nt,additionalCellProps:nn||{}}}function ln(De){var Te=De.className,Ue=De.style,Xe=De.record,Ce=De.index,we=De.renderIndex,Oe=De.rowKey,rt=De.indent,We=rt===void 0?0:rt,dt=De.rowComponent,Je=De.cellComponent,qe=De.scopeCellComponent,nt=yt(Xe,Oe,Ce,We),pt=nt.prefixCls,Lt=nt.flattenColumns,$t=nt.expandedRowClassName,jt=nt.expandedRowRender,Zt=nt.rowProps,Nt=nt.expanded,nn=nt.rowSupportExpand,en=ie.useState(!1),vn=(0,be.Z)(en,2),Xt=vn[0],Bn=vn[1];ie.useEffect(function(){Nt&&Bn(!0)},[Nt]);var En=ie.createElement(dt,(0,se.Z)({},Zt,{"data-row-key":Oe,className:Ye()(Te,"".concat(pt,"-row"),"".concat(pt,"-row-level-").concat(We),Zt==null?void 0:Zt.className),style:(0,je.Z)((0,je.Z)({},Ue),Zt==null?void 0:Zt.style)}),Lt.map(function(rn,dn){var An=rn.render,Qn=rn.dataIndex,tn=rn.className,yn=un(nt,rn,dn,We,Ce),gn=yn.key,mn=yn.fixedInfo,On=yn.appendCellNode,rr=yn.additionalCellProps;return ie.createElement(Wt,(0,se.Z)({className:tn,ellipsis:rn.ellipsis,align:rn.align,scope:rn.rowScope,component:rn.rowScope?qe:Je,prefixCls:pt,key:gn,record:Xe,index:Ce,renderIndex:we,dataIndex:Qn,render:An,shouldCellUpdate:rn.shouldCellUpdate},mn,{appendNode:On,additionalProps:rr}))})),qt;if(nn&&(Xt||Nt)){var fn=jt(Xe,Ce,We+1,Nt),Rt=$t&&$t(Xe,Ce,We);qt=ie.createElement(Gt,{expanded:Nt,className:Ye()("".concat(pt,"-expanded-row"),"".concat(pt,"-expanded-row-level-").concat(We+1),Rt),prefixCls:pt,component:dt,cellComponent:Je,colSpan:Lt.length,isEmpty:!1},fn)}return ie.createElement(ie.Fragment,null,En,qt)}ln.displayName="BodyRow";var Ct=z(ln);function pn(De){var Te=De.columnKey,Ue=De.onColumnResize,Xe=ie.useRef();return ie.useEffect(function(){Xe.current&&Ue(Te,Xe.current.offsetWidth)},[]),ie.createElement(Ke.Z,{data:Te},ie.createElement("td",{ref:Xe,style:{padding:0,border:0,height:0}},ie.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Sn(De){var Te=De.prefixCls,Ue=De.columnsKey,Xe=De.onColumnResize;return ie.createElement("tr",{"aria-hidden":"true",className:"".concat(Te,"-measure-row"),style:{height:0,fontSize:0}},ie.createElement(Ke.Z.Collection,{onBatchResize:function(we){we.forEach(function(Oe){var rt=Oe.data,We=Oe.size;Xe(rt,We.offsetWidth)})}},Ue.map(function(Ce){return ie.createElement(pn,{key:Ce,columnKey:Ce,onColumnResize:Xe})})))}function Gn(De){var Te=De.data,Ue=De.measureColumnWidth,Xe=me(de,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ce=Xe.prefixCls,we=Xe.getComponent,Oe=Xe.onColumnResize,rt=Xe.flattenColumns,We=Xe.getRowKey,dt=Xe.expandedKeys,Je=Xe.childrenColumnName,qe=Xe.emptyNode,nt=Ft(Te,Je,dt,We),pt=ie.useRef({renderWithProps:!1}),Lt=we(["body","wrapper"],"tbody"),$t=we(["body","row"],"tr"),jt=we(["body","cell"],"td"),Zt=we(["body","cell"],"th"),Nt;Te.length?Nt=nt.map(function(en,vn){var Xt=en.record,Bn=en.indent,En=en.index,qt=We(Xt,vn);return ie.createElement(Ct,{key:qt,rowKey:qt,record:Xt,index:vn,renderIndex:En,rowComponent:$t,cellComponent:jt,scopeCellComponent:Zt,getRowKey:We,indent:Bn})}):Nt=ie.createElement(Gt,{expanded:!0,className:"".concat(Ce,"-placeholder"),prefixCls:Ce,component:$t,cellComponent:jt,colSpan:rt.length,isEmpty:!0},qe);var nn=Pt(rt);return ie.createElement(ot.Provider,{value:pt.current},ie.createElement(Lt,{className:"".concat(Ce,"-tbody")},Ue&&ie.createElement(Sn,{prefixCls:Ce,columnsKey:nn,onColumnResize:Oe}),Nt))}Gn.displayName="Body";var Ln=z(Gn),Wn=["expandable"],Zn="RC_TABLE_INTERNAL_COL_DEFINE";function Jn(De){var Te=De.expandable,Ue=(0,Vt.Z)(De,Wn),Xe;return"expandable"in De?Xe=(0,je.Z)((0,je.Z)({},Ue),Te):Xe=Ue,Xe.showExpandColumn===!1&&(Xe.expandIconColumnIndex=-1),Xe}var Yn=["columnType"];function mr(De){for(var Te=De.colWidths,Ue=De.columns,Xe=De.columCount,Ce=[],we=Xe||Ue.length,Oe=!1,rt=we-1;rt>=0;rt-=1){var We=Te[rt],dt=Ue&&Ue[rt],Je=dt&&dt[Zn];if(We||Je||Oe){var qe=Je||{},nt=qe.columnType,pt=(0,Vt.Z)(qe,Yn);Ce.unshift(ie.createElement("col",(0,se.Z)({key:rt,style:{width:We}},pt))),Oe=!0}}return ie.createElement("colgroup",null,Ce)}var ar=mr,wn=ee(94480),Cr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function jn(De,Te){return(0,ie.useMemo)(function(){for(var Ue=[],Xe=0;Xe<Te;Xe+=1){var Ce=De[Xe];if(Ce!==void 0)Ue[Xe]=Ce;else return null}return Ue},[De.join("_"),Te])}var Tn=ie.forwardRef(function(De,Te){var Ue=De.className,Xe=De.noData,Ce=De.columns,we=De.flattenColumns,Oe=De.colWidths,rt=De.columCount,We=De.stickyOffsets,dt=De.direction,Je=De.fixHeader,qe=De.stickyTopOffset,nt=De.stickyBottomOffset,pt=De.stickyClassName,Lt=De.onScroll,$t=De.maxContentScroll,jt=De.children,Zt=(0,Vt.Z)(De,Cr),Nt=me(de,["prefixCls","scrollbarSize","isSticky"]),nn=Nt.prefixCls,en=Nt.scrollbarSize,vn=Nt.isSticky,Xt=vn&&!Je?0:en,Bn=ie.useRef(null),En=ie.useCallback(function(tn){(0,pe.mH)(Te,tn),(0,pe.mH)(Bn,tn)},[]);ie.useEffect(function(){var tn;function yn(gn){var mn=gn,On=mn.currentTarget,rr=mn.deltaX;rr&&(Lt({currentTarget:On,scrollLeft:On.scrollLeft+rr}),gn.preventDefault())}return(tn=Bn.current)===null||tn===void 0||tn.addEventListener("wheel",yn),function(){var gn;(gn=Bn.current)===null||gn===void 0||gn.removeEventListener("wheel",yn)}},[]);var qt=ie.useMemo(function(){return we.every(function(tn){return tn.width})},[we]),fn=we[we.length-1],Rt={fixed:fn?fn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(nn,"-cell-scrollbar")}}},rn=(0,ie.useMemo)(function(){return Xt?[].concat((0,wn.Z)(Ce),[Rt]):Ce},[Xt,Ce]),dn=(0,ie.useMemo)(function(){return Xt?[].concat((0,wn.Z)(we),[Rt]):we},[Xt,we]),An=(0,ie.useMemo)(function(){var tn=We.right,yn=We.left;return(0,je.Z)((0,je.Z)({},We),{},{left:dt==="rtl"?[].concat((0,wn.Z)(yn.map(function(gn){return gn+Xt})),[0]):yn,right:dt==="rtl"?tn:[].concat((0,wn.Z)(tn.map(function(gn){return gn+Xt})),[0]),isSticky:vn})},[Xt,We,vn]),Qn=jn(Oe,rt);return ie.createElement("div",{style:(0,je.Z)({overflow:"hidden"},vn?{top:qe,bottom:nt}:{}),ref:En,className:Ye()(Ue,(0,xe.Z)({},pt,!!pt))},ie.createElement("table",{style:{tableLayout:"fixed",visibility:Xe||Qn?null:"hidden"}},(!Xe||!$t||qt)&&ie.createElement(ar,{colWidths:Qn?[].concat((0,wn.Z)(Qn),[Xt]):[],columCount:rt+1,columns:dn}),jt((0,je.Z)((0,je.Z)({},Zt),{},{stickyOffsets:An,columns:rn,flattenColumns:dn}))))});Tn.displayName="FixedHolder";var or=ie.memo(Tn);function Dr(De){var Te=De.cells,Ue=De.stickyOffsets,Xe=De.flattenColumns,Ce=De.rowComponent,we=De.cellComponent,Oe=De.tdCellComponent,rt=De.onHeaderRow,We=De.index,dt=me(de,["prefixCls","direction"]),Je=dt.prefixCls,qe=dt.direction,nt;rt&&(nt=rt(Te.map(function(Lt){return Lt.column}),We));var pt=Pt(Te.map(function(Lt){return Lt.column}));return ie.createElement(Ce,nt,Te.map(function(Lt,$t){var jt=Lt.column,Zt=$e(Lt.colStart,Lt.colEnd,Xe,Ue,qe,jt),Nt;return jt&&jt.onHeaderCell&&(Nt=Lt.column.onHeaderCell(jt)),ie.createElement(Wt,(0,se.Z)({},Lt,{scope:jt.title?Lt.colSpan>1?"colgroup":"col":null,ellipsis:jt.ellipsis,align:jt.align,component:jt.title?we:Oe,prefixCls:Je,key:pt[$t]},Zt,{additionalProps:Nt,rowType:"header"}))}))}Dr.displayName="HeaderRow";var Nr=Dr;function Rr(De){var Te=[];function Ue(Oe,rt){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Te[We]=Te[We]||[];var dt=rt,Je=Oe.filter(Boolean).map(function(qe){var nt={key:qe.key,className:qe.className||"",children:qe.title,column:qe,colStart:dt},pt=1,Lt=qe.children;return Lt&&Lt.length>0&&(pt=Ue(Lt,dt,We+1).reduce(function($t,jt){return $t+jt},0),nt.hasSubColumns=!0),"colSpan"in qe&&(pt=qe.colSpan),"rowSpan"in qe&&(nt.rowSpan=qe.rowSpan),nt.colSpan=pt,nt.colEnd=nt.colStart+pt-1,Te[We].push(nt),dt+=pt,pt});return Je}Ue(De,0);for(var Xe=Te.length,Ce=function(rt){Te[rt].forEach(function(We){!("rowSpan"in We)&&!We.hasSubColumns&&(We.rowSpan=Xe-rt)})},we=0;we<Xe;we+=1)Ce(we);return Te}function Fr(De){var Te=De.stickyOffsets,Ue=De.columns,Xe=De.flattenColumns,Ce=De.onHeaderRow,we=me(de,["prefixCls","getComponent"]),Oe=we.prefixCls,rt=we.getComponent,We=ie.useMemo(function(){return Rr(Ue)},[Ue]),dt=rt(["header","wrapper"],"thead"),Je=rt(["header","row"],"tr"),qe=rt(["header","cell"],"th"),nt=rt(["header","cell"],"td");return ie.createElement(dt,{className:"".concat(Oe,"-thead")},We.map(function(pt,Lt){var $t=ie.createElement(Nr,{key:Lt,flattenColumns:Xe,cells:pt,stickyOffsets:Te,rowComponent:Je,cellComponent:qe,tdCellComponent:nt,onHeaderRow:Ce,index:Lt});return $t}))}var qn=z(Fr),sr=ee(11592);function Qt(De){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?De*parseFloat(Te)/100:null}function ae(De,Te){return ie.useMemo(function(){if(Te&&Te>0){var Ue=0,Xe=0;De.forEach(function(dt){var Je=Qt(Te,dt.width);Je?Ue+=Je:Xe+=1});var Ce=Te-Ue,we=Xe,Oe=Ce/Xe,rt=0,We=De.map(function(dt){var Je=(0,je.Z)({},dt),qe=Qt(Te,Je.width);if(qe)Je.width=qe;else{var nt=Math.floor(Oe);Je.width=we===1?Ce:nt,Ce-=nt,we-=1}return rt+=Je.width,Je});return[We,rt]}return[De,Te]},[De,Te])}var _e=["children"],Pe=["fixed"];function Ie(De){return(0,sr.Z)(De).filter(function(Te){return ie.isValidElement(Te)}).map(function(Te){var Ue=Te.key,Xe=Te.props,Ce=Xe.children,we=(0,Vt.Z)(Xe,_e),Oe=(0,je.Z)({key:Ue},we);return Ce&&(Oe.children=Ie(Ce)),Oe})}function Fe(De){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return De.filter(function(Ue){return Ue&&(0,Ee.Z)(Ue)==="object"}).reduce(function(Ue,Xe,Ce){var we=Xe.fixed,Oe=we===!0?"left":we,rt="".concat(Te,"-").concat(Ce),We=Xe.children;return We&&We.length>0?[].concat((0,wn.Z)(Ue),(0,wn.Z)(Fe(We,rt).map(function(dt){return(0,je.Z)({fixed:Oe},dt)}))):[].concat((0,wn.Z)(Ue),[(0,je.Z)((0,je.Z)({key:rt},Xe),{},{fixed:Oe})])},[])}function tt(De){for(var Te=!0,Ue=0;Ue<De.length;Ue+=1){var Xe=De[Ue];if(Te&&Xe.fixed!=="left")Te=!1;else if(!Te&&Xe.fixed==="left"){warning(!1,"Index ".concat(Ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ce=!0,we=De.length-1;we>=0;we-=1){var Oe=De[we];if(Ce&&Oe.fixed!=="right")Ce=!1;else if(!Ce&&Oe.fixed==="right"){warning(!1,"Index ".concat(we+1," of `columns` missing `fixed='right'` prop."));break}}}function ht(De){return De.map(function(Te){var Ue=Te.fixed,Xe=(0,Vt.Z)(Te,Pe),Ce=Ue;return Ue==="left"?Ce="right":Ue==="right"&&(Ce="left"),(0,je.Z)({fixed:Ce},Xe)})}function on(De,Te){var Ue=De.prefixCls,Xe=De.columns,Ce=De.children,we=De.expandable,Oe=De.expandedKeys,rt=De.columnTitle,We=De.getRowKey,dt=De.onTriggerExpand,Je=De.expandIcon,qe=De.rowExpandable,nt=De.expandIconColumnIndex,pt=De.direction,Lt=De.expandRowByClick,$t=De.columnWidth,jt=De.fixed,Zt=De.scrollWidth,Nt=ie.useMemo(function(){return Xe||Ie(Ce)},[Xe,Ce]),nn=ie.useMemo(function(){if(we){var fn,Rt=Nt.slice();if(!Rt.includes(te)){var rn=nt||0;rn>=0&&Rt.splice(rn,0,te)}var dn=Rt.indexOf(te);Rt=Rt.filter(function(yn,gn){return yn!==te||gn===dn});var An=Nt[dn],Qn;(jt==="left"||jt)&&!nt?Qn="left":(jt==="right"||jt)&&nt===Nt.length?Qn="right":Qn=An?An.fixed:null;var tn=(fn={},(0,xe.Z)(fn,Zn,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,xe.Z)(fn,"title",rt),(0,xe.Z)(fn,"fixed",Qn),(0,xe.Z)(fn,"className","".concat(Ue,"-row-expand-icon-cell")),(0,xe.Z)(fn,"width",$t),(0,xe.Z)(fn,"render",function(gn,mn,On){var rr=We(mn,On),Xn=Oe.has(rr),zr=qe?qe(mn):!0,er=Je({prefixCls:Ue,expanded:Xn,expandable:zr,record:mn,onExpand:dt});return Lt?ie.createElement("span",{onClick:function(Sr){return Sr.stopPropagation()}},er):er}),fn);return Rt.map(function(yn){return yn===te?tn:yn})}return Nt.filter(function(yn){return yn!==te})},[we,Nt,We,Oe,Je,pt]),en=ie.useMemo(function(){var fn=nn;return Te&&(fn=Te(fn)),fn.length||(fn=[{render:function(){return null}}]),fn},[Te,nn,pt]),vn=ie.useMemo(function(){return pt==="rtl"?ht(Fe(en)):Fe(en)},[en,pt,Zt]),Xt=ae(vn,Zt),Bn=(0,be.Z)(Xt,2),En=Bn[0],qt=Bn[1];return[en,En,qt]}var zt=on;function _t(De){var Te,Ue=De.prefixCls,Xe=De.record,Ce=De.onExpand,we=De.expanded,Oe=De.expandable,rt="".concat(Ue,"-row-expand-icon");if(!Oe)return ie.createElement("span",{className:Ye()(rt,"".concat(Ue,"-row-spaced"))});var We=function(Je){Ce(Xe,Je),Je.stopPropagation()};return ie.createElement("span",{className:Ye()(rt,(Te={},(0,xe.Z)(Te,"".concat(Ue,"-row-expanded"),we),(0,xe.Z)(Te,"".concat(Ue,"-row-collapsed"),!we),Te)),onClick:We})}function mt(De,Te,Ue){var Xe=[];function Ce(we){(we||[]).forEach(function(Oe,rt){Xe.push(Te(Oe,rt)),Ce(Oe[Ue])})}return Ce(De),Xe}function Bt(De,Te,Ue){var Xe=Jn(De),Ce=Xe.expandIcon,we=Xe.expandedRowKeys,Oe=Xe.defaultExpandedRowKeys,rt=Xe.defaultExpandAllRows,We=Xe.expandedRowRender,dt=Xe.onExpand,Je=Xe.onExpandedRowsChange,qe=Xe.childrenColumnName,nt=Ce||_t,pt=qe||"children",Lt=ie.useMemo(function(){return We?"row":De.expandable&&De.internalHooks===fe&&De.expandable.__PARENT_RENDER_ICON__||Te.some(function(vn){return vn&&(0,Ee.Z)(vn)==="object"&&vn[pt]})?"nest":!1},[!!We,Te]),$t=ie.useState(function(){return Oe||(rt?mt(Te,Ue,pt):[])}),jt=(0,be.Z)($t,2),Zt=jt[0],Nt=jt[1],nn=ie.useMemo(function(){return new Set(we||Zt||[])},[we,Zt]),en=ie.useCallback(function(vn){var Xt=Ue(vn,Te.indexOf(vn)),Bn,En=nn.has(Xt);En?(nn.delete(Xt),Bn=(0,wn.Z)(nn)):Bn=[].concat((0,wn.Z)(nn),[Xt]),Nt(Bn),dt&&dt(!En,vn),Je&&Je(Bn)},[Ue,nn,Te,dt,Je]);return[Xe,Lt,nn,nt,pt,en]}function ut(De,Te,Ue,Xe){var Ce=De.map(function(we,Oe){return $e(Oe,Oe,De,Te,Ue,Xe==null?void 0:Xe[Oe])});return(0,ft.Z)(function(){return Ce},[Ce],function(we,Oe){return!(0,ge.Z)(we,Oe)})}function Ht(De){var Te=(0,ie.useRef)(De),Ue=(0,ie.useState)({}),Xe=(0,be.Z)(Ue,2),Ce=Xe[1],we=(0,ie.useRef)(null),Oe=(0,ie.useRef)([]);function rt(We){Oe.current.push(We);var dt=Promise.resolve();we.current=dt,dt.then(function(){if(we.current===dt){var Je=Oe.current,qe=Te.current;Oe.current=[],Je.forEach(function(nt){Te.current=nt(Te.current)}),we.current=null,qe!==Te.current&&Ce({})}})}return(0,ie.useEffect)(function(){return function(){we.current=null}},[]),[Te.current,rt]}function Yt(De){var Te=(0,ie.useRef)(De||null),Ue=(0,ie.useRef)();function Xe(){window.clearTimeout(Ue.current)}function Ce(Oe){Te.current=Oe,Xe(),Ue.current=window.setTimeout(function(){Te.current=null,Ue.current=void 0},100)}function we(){return Te.current}return(0,ie.useEffect)(function(){return Xe},[]),[Ce,we]}function Ot(){var De=ie.useState(-1),Te=(0,be.Z)(De,2),Ue=Te[0],Xe=Te[1],Ce=ie.useState(-1),we=(0,be.Z)(Ce,2),Oe=we[0],rt=we[1],We=ie.useCallback(function(dt,Je){Xe(dt),rt(Je)},[]);return[Ue,Oe,We]}var kt=ee(47273),Jt=(0,kt.Z)()?window:null;function cn(De,Te){var Ue=(0,Ee.Z)(De)==="object"?De:{},Xe=Ue.offsetHeader,Ce=Xe===void 0?0:Xe,we=Ue.offsetSummary,Oe=we===void 0?0:we,rt=Ue.offsetScroll,We=rt===void 0?0:rt,dt=Ue.getContainer,Je=dt===void 0?function(){return Jt}:dt,qe=Je()||Jt;return ie.useMemo(function(){var nt=!!De;return{isSticky:nt,stickyClassName:nt?"".concat(Te,"-sticky-holder"):"",offsetHeader:Ce,offsetSummary:Oe,offsetScroll:We,container:qe}},[We,Ce,Oe,Te,qe])}function Mn(De,Te,Ue){var Xe=(0,ie.useMemo)(function(){for(var Ce=[],we=[],Oe=0,rt=0,We=0;We<Te;We+=1)if(Ue==="rtl"){we[We]=rt,rt+=De[We]||0;var dt=Te-We-1;Ce[dt]=Oe,Oe+=De[dt]||0}else{Ce[We]=Oe,Oe+=De[We]||0;var Je=Te-We-1;we[Je]=rt,rt+=De[Je]||0}return{left:Ce,right:we}},[De,Te,Ue]);return Xe}var zn=Mn;function Vn(De){var Te=De.className,Ue=De.children;return ie.createElement("div",{className:Te},Ue)}var hn=Vn,Nn=ee(8224),lr=ee(55468),ir=function(Te,Ue){var Xe,Ce,we=Te.scrollBodyRef,Oe=Te.onScroll,rt=Te.offsetScroll,We=Te.container,dt=me(de,"prefixCls"),Je=((Xe=we.current)===null||Xe===void 0?void 0:Xe.scrollWidth)||0,qe=((Ce=we.current)===null||Ce===void 0?void 0:Ce.clientWidth)||0,nt=Je&&qe*(qe/Je),pt=ie.useRef(),Lt=Ht({scrollLeft:0,isHiddenScrollBar:!1}),$t=(0,be.Z)(Lt,2),jt=$t[0],Zt=$t[1],Nt=ie.useRef({delta:0,x:0}),nn=ie.useState(!1),en=(0,be.Z)(nn,2),vn=en[0],Xt=en[1],Bn=function(){Xt(!1)},En=function(dn){dn.persist(),Nt.current.delta=dn.pageX-jt.scrollLeft,Nt.current.x=0,Xt(!0),dn.preventDefault()},qt=function(dn){var An,Qn=dn||((An=window)===null||An===void 0?void 0:An.event),tn=Qn.buttons;if(!vn||tn===0){vn&&Xt(!1);return}var yn=Nt.current.x+dn.pageX-Nt.current.x-Nt.current.delta;yn<=0&&(yn=0),yn+nt>=qe&&(yn=qe-nt),Oe({scrollLeft:yn/qe*(Je+2)}),Nt.current.x=dn.pageX},fn=function(){if(we.current){var dn=(0,lr.os)(we.current).top,An=dn+we.current.offsetHeight,Qn=We===window?document.documentElement.scrollTop+window.innerHeight:(0,lr.os)(We).top+We.clientHeight;An-(0,at.Z)()<=Qn||dn>=Qn-rt?Zt(function(tn){return(0,je.Z)((0,je.Z)({},tn),{},{isHiddenScrollBar:!0})}):Zt(function(tn){return(0,je.Z)((0,je.Z)({},tn),{},{isHiddenScrollBar:!1})})}},Rt=function(dn){Zt(function(An){return(0,je.Z)((0,je.Z)({},An),{},{scrollLeft:dn/Je*qe||0})})};return ie.useImperativeHandle(Ue,function(){return{setScrollLeft:Rt}}),ie.useEffect(function(){var rn=(0,Nn.Z)(document.body,"mouseup",Bn,!1),dn=(0,Nn.Z)(document.body,"mousemove",qt,!1);return fn(),function(){rn.remove(),dn.remove()}},[nt,vn]),ie.useEffect(function(){var rn=(0,Nn.Z)(We,"scroll",fn,!1),dn=(0,Nn.Z)(window,"resize",fn,!1);return function(){rn.remove(),dn.remove()}},[We]),ie.useEffect(function(){jt.isHiddenScrollBar||Zt(function(rn){var dn=we.current;return dn?(0,je.Z)((0,je.Z)({},rn),{},{scrollLeft:dn.scrollLeft/dn.scrollWidth*dn.clientWidth}):rn})},[jt.isHiddenScrollBar]),Je<=qe||!nt||jt.isHiddenScrollBar?null:ie.createElement("div",{style:{height:(0,at.Z)(),width:qe,bottom:rt},className:"".concat(dt,"-sticky-scroll")},ie.createElement("div",{onMouseDown:En,ref:pt,className:Ye()("".concat(dt,"-sticky-scroll-bar"),(0,xe.Z)({},"".concat(dt,"-sticky-scroll-bar-active"),vn)),style:{width:"".concat(nt,"px"),transform:"translate3d(".concat(jt.scrollLeft,"px, 0, 0)")}}))},Ut=ie.forwardRef(ir);function ur(De){return null}var to=ur;function Ar(De){return null}var Lr=Ar,Wr="rc-table",an=[],bn={};function Pn(){return"No Data"}function _n(De){var Te,Ue=(0,je.Z)({rowKey:"key",prefixCls:Wr,emptyText:Pn},De),Xe=Ue.prefixCls,Ce=Ue.className,we=Ue.rowClassName,Oe=Ue.style,rt=Ue.data,We=Ue.rowKey,dt=Ue.scroll,Je=Ue.tableLayout,qe=Ue.direction,nt=Ue.title,pt=Ue.footer,Lt=Ue.summary,$t=Ue.caption,jt=Ue.id,Zt=Ue.showHeader,Nt=Ue.components,nn=Ue.emptyText,en=Ue.onRow,vn=Ue.onHeaderRow,Xt=Ue.internalHooks,Bn=Ue.transformColumns,En=Ue.internalRefs,qt=Ue.tailor,fn=Ue.sticky,Rt=rt||an,rn=!!Rt.length,dn=Xt===fe,An=ie.useCallback(function(kr,eo){return(0,Me.Z)(Nt,kr)||eo},[Nt]),Qn=ie.useMemo(function(){return typeof We=="function"?We:function(kr){var eo=kr&&kr[We];return eo}},[We]),tn=An(["body"]),yn=Ot(),gn=(0,be.Z)(yn,3),mn=gn[0],On=gn[1],rr=gn[2],Xn=Bt(Ue,Rt,Qn),zr=(0,be.Z)(Xn,6),er=zr[0],Zr=zr[1],Sr=zr[2],Ir=zr[3],hr=zr[4],Kn=zr[5],xn=dt==null?void 0:dt.x,Fn=ie.useState(0),$n=(0,be.Z)(Fn,2),Rn=$n[0],Pr=$n[1],kn=zt((0,je.Z)((0,je.Z)((0,je.Z)({},Ue),er),{},{expandable:!!er.expandedRowRender,columnTitle:er.columnTitle,expandedKeys:Sr,getRowKey:Qn,onTriggerExpand:Kn,expandIcon:Ir,expandIconColumnIndex:er.expandIconColumnIndex,direction:qe,scrollWidth:dn&&qt&&typeof xn=="number"?xn:null}),dn?Bn:null),Hn=(0,be.Z)(kn,3),gr=Hn[0],yr=Hn[1],Lo=Hn[2],Po=Lo!=null?Lo:xn,tr=ie.useMemo(function(){return{columns:gr,flattenColumns:yr}},[gr,yr]),fr=ie.useRef(),Qr=ie.useRef(),Tr=ie.useRef(),wr=ie.useRef(),Fo=ie.useRef(),br=ie.useState(!1),xr=(0,be.Z)(br,2),Hr=xr[0],Yr=xr[1],co=ie.useState(!1),dr=(0,be.Z)(co,2),Oo=dr[0],jo=dr[1],Qo=Ht(new Map),mi=(0,be.Z)(Qo,2),gi=mi[0],ea=mi[1],Pi=Pt(yr),si=Pi.map(function(kr){return gi.get(kr)}),Wo=ie.useMemo(function(){return si},[si.join("_")]),Ho=zn(Wo,yr.length,qe),vo=dt&&Mt(dt.y),no=dt&&Mt(Po)||!!er.fixed,pi=no&&yr.some(function(kr){var eo=kr.fixed;return eo}),Ni=ie.useRef(),xi=cn(fn,Xe),vi=xi.isSticky,Pa=xi.offsetHeader,ns=xi.offsetSummary,Mr=xi.offsetScroll,Xr=xi.stickyClassName,Ro=xi.container,ro=ie.useMemo(function(){return Lt==null?void 0:Lt(Rt)},[Lt,Rt]),zo=(vo||vi)&&ie.isValidElement(ro)&&ro.type===Be&&ro.props.fixed,Ko,Vo,bi;vo&&(Vo={overflowY:"scroll",maxHeight:dt.y}),no&&(Ko={overflowX:"auto"},vo||(Vo={overflowY:"hidden"}),bi={width:Po===!0?"auto":Po,minWidth:"100%"});var Es=ie.useCallback(function(kr,eo){(0,ke.Z)(fr.current)&&ea(function(li){if(li.get(kr)!==eo){var Li=new Map(li);return Li.set(kr,eo),Li}return li})},[]),$s=Yt(null),ws=(0,be.Z)($s,2),Zs=ws[0],xs=ws[1];function ba(kr,eo){eo&&(typeof eo=="function"?eo(kr):eo.scrollLeft!==kr&&(eo.scrollLeft=kr,eo.scrollLeft!==kr&&setTimeout(function(){eo.scrollLeft=kr},0)))}var zi=(0,ye.Z)(function(kr){var eo=kr.currentTarget,li=kr.scrollLeft,Li=qe==="rtl",Mi=typeof li=="number"?li:eo.scrollLeft,Hs=eo||bn;if(!xs()||xs()===Hs){var ss;Zs(Hs),ba(Mi,Qr.current),ba(Mi,Tr.current),ba(Mi,Fo.current),ba(Mi,(ss=Ni.current)===null||ss===void 0?void 0:ss.setScrollLeft)}var ls=eo||Qr.current;if(ls){var cs=ls.scrollWidth,ds=ls.clientWidth;if(cs===ds){Yr(!1),jo(!1);return}Li?(Yr(-Mi<cs-ds),jo(-Mi>0)):(Yr(Mi>0),jo(Mi<cs-ds))}}),Ls=function(){no&&Tr.current?zi({currentTarget:Tr.current}):(Yr(!1),jo(!1))},Ws=function(eo){var li=eo.width;li!==Rn&&(Ls(),Pr(fr.current?fr.current.offsetWidth:li))},Ms=ie.useRef(!1);ie.useEffect(function(){Ms.current&&Ls()},[no,rt,gr.length]),ie.useEffect(function(){Ms.current=!0},[]);var Ks=ie.useState(0),Ds=(0,be.Z)(Ks,2),Ca=Ds[0],As=Ds[1],Vs=ie.useState(!0),Is=(0,be.Z)(Vs,2),Os=Is[0],Ys=Is[1];ie.useEffect(function(){(!qt||!dn)&&(Tr.current instanceof Element?As((0,at.o)(Tr.current).width):As((0,at.o)(wr.current).width)),Ys((0,ze.G)("position","sticky"))},[]),ie.useEffect(function(){dn&&En&&(En.body.current=Tr.current)});var Xs=ie.useCallback(function(kr){return ie.createElement(ie.Fragment,null,ie.createElement(qn,kr),zo==="top"&&ie.createElement(wt,kr,ro))},[zo,ro]),Qs=ie.useCallback(function(kr){return ie.createElement(wt,kr,ro)},[ro]),Rs=An(["table"],"table"),Ea=ie.useMemo(function(){return Je||(pi?Po==="max-content"?"auto":"fixed":vo||vi||yr.some(function(kr){var eo=kr.ellipsis;return eo})?"fixed":"auto")},[vo,pi,yr,Je,vi]),rs,os={colWidths:Wo,columCount:yr.length,stickyOffsets:Ho,onHeaderRow:vn,fixHeader:vo,scroll:dt},Ts=ie.useMemo(function(){return rn?null:typeof nn=="function"?nn():nn},[rn,nn]),Ns=ie.createElement(Ln,{data:Rt,measureColumnWidth:vo||no||vi}),Bs=ie.createElement(ar,{colWidths:yr.map(function(kr){var eo=kr.width;return eo}),columns:yr}),ks=$t!=null?ie.createElement("caption",{className:"".concat(Xe,"-caption")},$t):void 0,Js=(0,It.Z)(Ue,{data:!0}),Fs=(0,It.Z)(Ue,{aria:!0});if(vo||vi){var is;typeof tn=="function"?(is=tn(Rt,{scrollbarSize:Ca,ref:Tr,onScroll:zi}),os.colWidths=yr.map(function(kr,eo){var li=kr.width,Li=eo===yr.length-1?li-Ca:li;return typeof Li=="number"&&!Number.isNaN(Li)?Li:0})):is=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ko),Vo),onScroll:zi,ref:Tr,className:Ye()("".concat(Xe,"-body"))},ie.createElement(Rs,(0,se.Z)({style:(0,je.Z)((0,je.Z)({},bi),{},{tableLayout:Ea})},Fs),ks,Bs,Ns,!zo&&ro&&ie.createElement(wt,{stickyOffsets:Ho,flattenColumns:yr,columns:gr},ro)));var js=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Rt.length,maxContentScroll:no&&Po==="max-content"},os),tr),{},{direction:qe,stickyClassName:Xr,onScroll:zi});rs=ie.createElement(ie.Fragment,null,Zt!==!1&&ie.createElement(or,(0,se.Z)({},js,{stickyTopOffset:Pa,className:"".concat(Xe,"-header"),ref:Qr}),Xs),is,zo&&zo!=="top"&&ie.createElement(or,(0,se.Z)({},js,{stickyBottomOffset:ns,className:"".concat(Xe,"-summary"),ref:Fo}),Qs),vi&&ie.createElement(Ut,{ref:Ni,offsetScroll:Mr,scrollBodyRef:Tr,onScroll:zi,container:Ro}))}else rs=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Ko),Vo),className:Ye()("".concat(Xe,"-content")),onScroll:zi,ref:Tr},ie.createElement(Rs,(0,se.Z)({style:(0,je.Z)((0,je.Z)({},bi),{},{tableLayout:Ea})},Fs),ks,Bs,Zt!==!1&&ie.createElement(qn,(0,se.Z)({},os,tr)),Ns,ro&&ie.createElement(wt,{stickyOffsets:Ho,flattenColumns:yr,columns:gr},ro)));var as=ie.createElement("div",(0,se.Z)({className:Ye()(Xe,Ce,(Te={},(0,xe.Z)(Te,"".concat(Xe,"-rtl"),qe==="rtl"),(0,xe.Z)(Te,"".concat(Xe,"-ping-left"),Hr),(0,xe.Z)(Te,"".concat(Xe,"-ping-right"),Oo),(0,xe.Z)(Te,"".concat(Xe,"-layout-fixed"),Je==="fixed"),(0,xe.Z)(Te,"".concat(Xe,"-fixed-header"),vo),(0,xe.Z)(Te,"".concat(Xe,"-fixed-column"),pi),(0,xe.Z)(Te,"".concat(Xe,"-scroll-horizontal"),no),(0,xe.Z)(Te,"".concat(Xe,"-has-fix-left"),yr[0]&&yr[0].fixed),(0,xe.Z)(Te,"".concat(Xe,"-has-fix-right"),yr[yr.length-1]&&yr[yr.length-1].fixed==="right"),Te)),style:Oe,id:jt,ref:fr},Js),nt&&ie.createElement(hn,{className:"".concat(Xe,"-title")},nt(Rt)),ie.createElement("div",{ref:wr,className:"".concat(Xe,"-container")},rs),pt&&ie.createElement(hn,{className:"".concat(Xe,"-footer")},pt(Rt)));no&&(as=ie.createElement(Ke.Z,{onResize:Ws},as));var zs=ut(yr,Ho,qe,gr),qs=ie.useMemo(function(){return{scrollX:Po,prefixCls:Xe,getComponent:An,scrollbarSize:Ca,direction:qe,fixedInfoList:zs,isSticky:vi,supportSticky:Os,componentWidth:Rn,fixHeader:vo,fixColumn:pi,horizonScroll:no,tableLayout:Ea,rowClassName:we,expandedRowClassName:er.expandedRowClassName,expandIcon:Ir,expandableType:Zr,expandRowByClick:er.expandRowByClick,expandedRowRender:er.expandedRowRender,onTriggerExpand:Kn,expandIconColumnIndex:er.expandIconColumnIndex,indentSize:er.indentSize,allColumnsFixedLeft:yr.every(function(kr){return kr.fixed==="left"}),emptyNode:Ts,columns:gr,flattenColumns:yr,onColumnResize:Es,hoverStartRow:mn,hoverEndRow:On,onHover:rr,rowExpandable:er.rowExpandable,onRow:en,getRowKey:Qn,expandedKeys:Sr,childrenColumnName:hr}},[Po,Xe,An,Ca,qe,zs,vi,Os,Rn,vo,pi,no,Ea,we,er.expandedRowClassName,Ir,Zr,er.expandRowByClick,er.expandedRowRender,Kn,er.expandIconColumnIndex,er.indentSize,Ts,gr,yr,Es,mn,On,rr,er.rowExpandable,en,Qn,Sr,hr]);return ie.createElement(de.Provider,{value:qs},as)}function _r(De){return x(_n,De)}var pr=_r();pr.EXPAND_COLUMN=te,pr.INTERNAL_HOOKS=fe,pr.Column=to,pr.ColumnGroup=Lr,pr.Summary=Ae;var Or=pr,Kr=ee(48911),oo=ce(null),uo=ce(null);function bo(De,Te,Ue){var Xe=Te||1;return Ue[De+Xe]-(Ue[De]||0)}function ho(De){var Te=De.rowInfo,Ue=De.column,Xe=De.colIndex,Ce=De.indent,we=De.index,Oe=De.renderIndex,rt=De.record,We=De.style,dt=De.className,Je=De.inverse,qe=De.getHeight,nt=Ue.render,pt=Ue.dataIndex,Lt=Ue.className,$t=Ue.width,jt=me(uo,["columnsOffset"]),Zt=jt.columnsOffset,Nt=un(Te,Ue,Xe,Ce,we),nn=Nt.key,en=Nt.fixedInfo,vn=Nt.appendCellNode,Xt=Nt.additionalCellProps,Bn=Xt.style,En=Xt.colSpan,qt=En===void 0?1:En,fn=Xt.rowSpan,Rt=fn===void 0?1:fn,rn=Xe-1,dn=bo(rn,qt,Zt),An=qt>1?$t-dn:0,Qn=(0,je.Z)((0,je.Z)((0,je.Z)({},Bn),We),{},{flex:"0 0 ".concat(dn,"px"),width:"".concat(dn,"px"),marginRight:An,pointerEvents:"auto"}),tn=ie.useMemo(function(){return Je?Rt<=1:qt===0||Rt===0||Rt>1},[Rt,qt,Je]);tn?Qn.visibility="hidden":Je&&(Qn.height=qe==null?void 0:qe(Rt));var yn=tn?function(){return null}:nt,gn={};return(Rt===0||qt===0)&&(gn.rowSpan=1,gn.colSpan=1),ie.createElement(Wt,(0,se.Z)({className:Ye()(Lt,dt),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:"div",prefixCls:Te.prefixCls,key:nn,record:rt,index:we,renderIndex:Oe,dataIndex:pt,render:yn,shouldCellUpdate:Ue.shouldCellUpdate},en,{appendNode:vn,additionalProps:(0,je.Z)((0,je.Z)({},Xt),{},{style:Qn},gn)}))}var Mo=ho,Eo=["data","index","className","rowKey","style","extra","getHeight"],So=ie.forwardRef(function(De,Te){var Ue=De.data,Xe=De.index,Ce=De.className,we=De.rowKey,Oe=De.style,rt=De.extra,We=De.getHeight,dt=(0,Vt.Z)(De,Eo),Je=Ue.record,qe=Ue.indent,nt=Ue.index,pt=me(de,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Lt=pt.scrollX,$t=pt.flattenColumns,jt=pt.prefixCls,Zt=pt.fixColumn,Nt=pt.componentWidth,nn=yt(Je,we,Xe,qe),en=nn.rowSupportExpand,vn=nn.expanded,Xt=nn.rowProps,Bn=nn.expandedRowRender,En=nn.expandedRowClassName,qt;if(en&&vn){var fn=Bn(Je,Xe,qe+1,vn),Rt=En==null?void 0:En(Je,Xe,qe),rn={};Zt&&(rn={style:(0,xe.Z)({},"--virtual-width","".concat(Nt,"px"))});var dn="".concat(jt,"-expanded-row-cell");qt=ie.createElement("div",{className:Ye()("".concat(jt,"-expanded-row"),"".concat(jt,"-expanded-row-level-").concat(qe+1),Rt)},ie.createElement(Wt,{component:"div",prefixCls:jt,className:Ye()(dn,(0,xe.Z)({},"".concat(dn,"-fixed"),Zt)),additionalProps:rn},fn))}var An=(0,je.Z)((0,je.Z)({},Oe),{},{width:Lt});rt&&(An.position="absolute",An.pointerEvents="none");var Qn=ie.createElement("div",(0,se.Z)({},Xt,dt,{ref:en?null:Te,className:Ye()(Ce,"".concat(jt,"-row"),Xt==null?void 0:Xt.className,(0,xe.Z)({},"".concat(jt,"-row-extra"),rt)),style:(0,je.Z)((0,je.Z)({},An),Xt==null?void 0:Xt.style)}),$t.map(function(tn,yn){return ie.createElement(Mo,{key:yn,rowInfo:nn,column:tn,colIndex:yn,indent:qe,index:Xe,renderIndex:nt,record:Je,inverse:rt,getHeight:We})}));return en?ie.createElement("div",{ref:Te},Qn,qt):Qn}),To=z(So),Do=To,Er=ie.forwardRef(function(De,Te){var Ue=De.data,Xe=De.onScroll,Ce=me(de,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),we=Ce.flattenColumns,Oe=Ce.onColumnResize,rt=Ce.getRowKey,We=Ce.expandedKeys,dt=Ce.prefixCls,Je=Ce.childrenColumnName,qe=Ce.emptyNode,nt=Ce.scrollX,pt=me(oo),Lt=pt.scrollY,$t=pt.listItemHeight,jt=ie.useRef(),Zt=Ft(Ue,Je,We,rt),Nt=ie.useMemo(function(){var qt=0;return we.map(function(fn){var Rt=fn.width,rn=fn.key;return qt+=Rt,[rn,Rt,qt]})},[we]),nn=ie.useMemo(function(){return Nt.map(function(qt){return qt[2]})},[Nt]);ie.useEffect(function(){Nt.forEach(function(qt){var fn=(0,be.Z)(qt,2),Rt=fn[0],rn=fn[1];Oe(Rt,rn)})},[Nt]),ie.useImperativeHandle(Te,function(){var qt={};return Object.defineProperty(qt,"scrollLeft",{get:function(){var Rt;return((Rt=jt.current)===null||Rt===void 0?void 0:Rt.getScrollInfo().x)||0},set:function(Rt){var rn;(rn=jt.current)===null||rn===void 0||rn.scrollTo({left:Rt})}}),qt});var en=function(fn,Rt){var rn,dn=(rn=Zt[Rt])===null||rn===void 0?void 0:rn.record,An=fn.onCell;if(An){var Qn,tn=An(dn,Rt);return(Qn=tn==null?void 0:tn.rowSpan)!==null&&Qn!==void 0?Qn:1}return 1},vn=function(fn){var Rt=fn.start,rn=fn.end,dn=fn.getSize,An=fn.offsetY;if(rn<0)return null;for(var Qn=we.filter(function(xn){return en(xn,Rt)===0}),tn=Rt,yn=function(Fn){if(Qn=Qn.filter(function($n){return en($n,Fn)===0}),!Qn.length)return tn=Fn,"break"},gn=Rt;gn>=0;gn-=1){var mn=yn(gn);if(mn==="break")break}for(var On=we.filter(function(xn){return en(xn,rn)!==1}),rr=rn,Xn=function(Fn){if(On=On.filter(function($n){return en($n,Fn)!==1}),!On.length)return rr=Math.max(Fn-1,rn),"break"},zr=rn;zr<Zt.length;zr+=1){var er=Xn(zr);if(er==="break")break}for(var Zr=[],Sr=function(Fn){var $n=Zt[Fn];if(!$n)return"continue";we.some(function(Rn){return en(Rn,Fn)>1})&&Zr.push(Fn)},Ir=tn;Ir<=rr;Ir+=1)var hr=Sr(Ir);var Kn=Zr.map(function(xn){var Fn=Zt[xn],$n=rt(Fn.record,xn),Rn=function(Hn){var gr=xn+Hn-1,yr=rt(Zt[gr].record,gr),Lo=dn($n,yr);return Lo.bottom-Lo.top},Pr=dn($n);return ie.createElement(Do,{key:xn,data:Fn,rowKey:$n,index:xn,style:{top:-An+Pr.top},extra:!0,getHeight:Rn})});return Kn},Xt=ie.useMemo(function(){return{columnsOffset:nn}},[nn]),Bn="".concat(dt,"-tbody"),En;return Zt.length?En=ie.createElement(Kr.Z,{fullHeight:!1,ref:jt,className:Ye()(Bn,"".concat(Bn,"-virtual")),height:Lt,itemHeight:$t||24,data:Zt,itemKey:function(fn){return rt(fn.record)},scrollWidth:nt,onVirtualScroll:function(fn){var Rt=fn.x;Xe({scrollLeft:Rt})},extraRender:vn},function(qt,fn,Rt){var rn=rt(qt.record,fn);return ie.createElement(Do,(0,se.Z)({data:qt,rowKey:rn,index:fn},Rt))}):En=ie.createElement("div",{className:Ye()("".concat(dt,"-placeholder"))},ie.createElement(Wt,{component:"div",prefixCls:dt},qe)),ie.createElement(uo.Provider,{value:Xt},En)}),wo=z(Er),Vr=wo,Jr=function(Te,Ue){var Xe=Ue.ref,Ce=Ue.onScroll;return ie.createElement(Vr,{ref:Xe,data:Te,onScroll:Ce})},xo=100;function Ao(De){var Te=De.columns,Ue=De.scroll,Xe=De.prefixCls,Ce=Xe===void 0?Wr:Xe,we=De.className,Oe=De.listItemHeight,rt=Ue||{},We=rt.x,dt=rt.y;typeof We!="number"&&(We=((Te||[]).length+1)*xo),typeof dt!="number"&&(dt=500);var Je=ie.useMemo(function(){return{scrollY:dt,listItemHeight:Oe}},[dt,Oe]);return ie.createElement(oo.Provider,{value:Je},ie.createElement(Or,(0,se.Z)({},De,{className:Ye()(we,"".concat(Ce,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Ue),{},{x:We}),components:{body:Jr},columns:Te,internalHooks:fe,tailor:!0})))}function jr(De){return x(Ao,De)}var Go=jr(),io=null;function Uo(De){return null}var Io=Uo;function Yo(De){return null}var Jo=Yo,No=ee(2738),Co=ee(68031),mo=ee(36355),qo=ee(93891),Xo=ee(19716),ei=ee(8628),ni=ee(31724),ri=ee(58421),Si=ee(71418),Un=ee(88088);function Cn(De){return function(Ue){let{prefixCls:Xe,onExpand:Ce,record:we,expanded:Oe,expandable:rt}=Ue;const We=`${Xe}-row-expand-icon`;return ie.createElement("button",{type:"button",onClick:dt=>{Ce(we,dt),dt.stopPropagation()},className:Ye()(We,{[`${We}-spaced`]:!rt,[`${We}-expanded`]:rt&&Oe,[`${We}-collapsed`]:rt&&!Oe}),"aria-label":Oe?De.collapse:De.expand,"aria-expanded":Oe})}}var In=Cn;function Dn(De,Te){return"key"in De&&De.key!==void 0&&De.key!==null?De.key:De.dataIndex?Array.isArray(De.dataIndex)?De.dataIndex.join("."):De.dataIndex:Te}function vr(De,Te){return Te?`${Te}-${De}`:`${De}`}function Br(De,Te){return typeof De=="function"?De(Te):De}function ao(De,Te){const Ue=Br(De,Te);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue}var so={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"},lo=so,fo=ee(7657),$o=function(Te,Ue){return ie.createElement(fo.Z,(0,se.Z)({},Te,{ref:Ue,icon:lo}))},_o=ie.forwardRef($o),oi=_o,qr=ee(56762);function cr(De){const Te=ie.useRef(De),Ue=(0,qr.Z)();return[()=>Te.current,Xe=>{Te.current=Xe,Ue()}]}var ii=ee(3113),yo=ee(24905),Gr=ee(38854),Ur=ee(64165),ai=ee(20834),ti=ee(40875),_i=ee(5112),Di=ee(17574),ci=ee(47472),Bo=ee(92832);function Hi(De){let{value:Te,onChange:Ue,filterSearch:Xe,tablePrefixCls:Ce,locale:we}=De;return Xe?ie.createElement("div",{className:`${Ce}-filter-dropdown-search`},ie.createElement(Bo.default,{prefix:ie.createElement(ci.Z,null),placeholder:we.filterSearchPlaceholder,onChange:Ue,value:Te,htmlSize:1,className:`${Ce}-filter-dropdown-search-input`})):null}var Ai=Hi,Ii=ee(10228);const ta=De=>{const{keyCode:Te}=De;Te===Ii.Z.ENTER&&De.stopPropagation()};var wa=ie.forwardRef((De,Te)=>ie.createElement("div",{className:De.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:ta,ref:Te},De.children));function yi(De){let Te=[];return(De||[]).forEach(Ue=>{let{value:Xe,children:Ce}=Ue;Te.push(Xe),Ce&&(Te=[].concat((0,wn.Z)(Te),(0,wn.Z)(yi(Ce))))}),Te}function xa(De){return De.some(Te=>{let{children:Ue}=Te;return Ue})}function La(De,Te){return typeof Te=="string"||typeof Te=="number"?Te==null?void 0:Te.toString().toLowerCase().includes(De.trim().toLowerCase()):!1}function na(De){let{filters:Te,prefixCls:Ue,filteredKeys:Xe,filterMultiple:Ce,searchValue:we,filterSearch:Oe}=De;return Te.map((rt,We)=>{const dt=String(rt.value);if(rt.children)return{key:dt||We,label:rt.text,popupClassName:`${Ue}-dropdown-submenu`,children:na({filters:rt.children,prefixCls:Ue,filteredKeys:Xe,filterMultiple:Ce,searchValue:we,filterSearch:Oe})};const Je=Ce?yo.default:_i.ZP,qe={key:rt.value!==void 0?dt:We,label:ie.createElement(ie.Fragment,null,ie.createElement(Je,{checked:Xe.includes(dt)}),ie.createElement("span",null,rt.text))};return we.trim()?typeof Oe=="function"?Oe(we,rt)?qe:null:La(we,rt.text)?qe:null:qe})}function Ma(De){var Te,Ue;const{tablePrefixCls:Xe,prefixCls:Ce,column:we,dropdownPrefixCls:Oe,columnKey:rt,filterMultiple:We,filterMode:dt="menu",filterSearch:Je=!1,filterState:qe,triggerFilter:nt,locale:pt,children:Lt,getPopupContainer:$t}=De,{filterDropdownOpen:jt,onFilterDropdownOpenChange:Zt,filterResetToDefaultFilteredValue:Nt,defaultFilteredValue:nn,filterDropdownVisible:en,onFilterDropdownVisibleChange:vn}=we,[Xt,Bn]=ie.useState(!1),En=!!(qe&&(!((Te=qe.filteredKeys)===null||Te===void 0)&&Te.length||qe.forceFiltered)),qt=kn=>{Bn(kn),Zt==null||Zt(kn),vn==null||vn(kn)},fn=(Ue=jt!=null?jt:en)!==null&&Ue!==void 0?Ue:Xt,Rt=qe==null?void 0:qe.filteredKeys,[rn,dn]=cr(Rt||[]),An=kn=>{let{selectedKeys:Hn}=kn;dn(Hn)},Qn=(kn,Hn)=>{let{node:gr,checked:yr}=Hn;An(We?{selectedKeys:kn}:{selectedKeys:yr&&gr.key?[gr.key]:[]})};ie.useEffect(()=>{Xt&&An({selectedKeys:Rt||[]})},[Rt]);const[tn,yn]=ie.useState([]),gn=kn=>{yn(kn)},[mn,On]=ie.useState(""),rr=kn=>{const{value:Hn}=kn.target;On(Hn)};ie.useEffect(()=>{Xt||On("")},[Xt]);const Xn=kn=>{const Hn=kn&&kn.length?kn:null;if(Hn===null&&(!qe||!qe.filteredKeys)||(0,ge.Z)(Hn,qe==null?void 0:qe.filteredKeys,!0))return null;nt({column:we,key:rt,filteredKeys:Hn})},zr=()=>{qt(!1),Xn(rn())},er=function(){let{confirm:kn,closeDropdown:Hn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};kn&&Xn([]),Hn&&qt(!1),On(""),dn(Nt?(nn||[]).map(gr=>String(gr)):[])},Zr=function(){let{closeDropdown:kn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};kn&&qt(!1),Xn(rn())},Sr=kn=>{kn&&Rt!==void 0&&dn(Rt||[]),qt(kn),!kn&&!we.filterDropdown&&zr()},Ir=Ye()({[`${Oe}-menu-without-submenu`]:!xa(we.filters||[])}),hr=kn=>{if(kn.target.checked){const Hn=yi(we==null?void 0:we.filters).map(gr=>String(gr));dn(Hn)}else dn([])},Kn=kn=>{let{filters:Hn}=kn;return(Hn||[]).map((gr,yr)=>{const Lo=String(gr.value),Po={title:gr.text,key:gr.value!==void 0?Lo:yr};return gr.children&&(Po.children=Kn({filters:gr.children})),Po})},xn=kn=>{var Hn;return Object.assign(Object.assign({},kn),{text:kn.title,value:kn.key,children:((Hn=kn.children)===null||Hn===void 0?void 0:Hn.map(gr=>xn(gr)))||[]})};let Fn;if(typeof we.filterDropdown=="function")Fn=we.filterDropdown({prefixCls:`${Oe}-custom`,setSelectedKeys:kn=>An({selectedKeys:kn}),selectedKeys:rn(),confirm:Zr,clearFilters:er,filters:we.filters,visible:fn,close:()=>{qt(!1)}});else if(we.filterDropdown)Fn=we.filterDropdown;else{const kn=rn()||[],Hn=()=>(we.filters||[]).length===0?ie.createElement(Ur.Z,{image:Ur.Z.PRESENTED_IMAGE_SIMPLE,description:pt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):dt==="tree"?ie.createElement(ie.Fragment,null,ie.createElement(Ai,{filterSearch:Je,value:mn,onChange:rr,tablePrefixCls:Xe,locale:pt}),ie.createElement("div",{className:`${Xe}-filter-dropdown-tree`},We?ie.createElement(yo.default,{checked:kn.length===yi(we.filters).length,indeterminate:kn.length>0&&kn.length<yi(we.filters).length,className:`${Xe}-filter-dropdown-checkall`,onChange:hr},pt.filterCheckall):null,ie.createElement(Di.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:We,checkStrictly:!We,className:`${Oe}-menu`,onCheck:Qn,checkedKeys:kn,selectedKeys:kn,showIcon:!1,treeData:Kn({filters:we.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:mn.trim()?yr=>typeof Je=="function"?Je(mn,xn(yr)):La(mn,yr.title):void 0}))):ie.createElement(ie.Fragment,null,ie.createElement(Ai,{filterSearch:Je,value:mn,onChange:rr,tablePrefixCls:Xe,locale:pt}),ie.createElement(ai.default,{selectable:!0,multiple:We,prefixCls:`${Oe}-menu`,className:Ir,onSelect:An,onDeselect:An,selectedKeys:kn,getPopupContainer:$t,openKeys:tn,onOpenChange:gn,items:na({filters:we.filters||[],filterSearch:Je,prefixCls:Ce,filteredKeys:rn(),filterMultiple:We,searchValue:mn})})),gr=()=>Nt?(0,ge.Z)((nn||[]).map(yr=>String(yr)),kn,!0):kn.length===0;Fn=ie.createElement(ie.Fragment,null,Hn(),ie.createElement("div",{className:`${Ce}-dropdown-btns`},ie.createElement(ii.ZP,{type:"link",size:"small",disabled:gr(),onClick:()=>er()},pt.filterReset),ie.createElement(ii.ZP,{type:"primary",size:"small",onClick:zr},pt.filterConfirm)))}we.filterDropdown&&(Fn=ie.createElement(ti.J,{selectable:void 0},Fn));const $n=()=>ie.createElement(wa,{className:`${Ce}-dropdown`},Fn);let Rn;typeof we.filterIcon=="function"?Rn=we.filterIcon(En):we.filterIcon?Rn=we.filterIcon:Rn=ie.createElement(oi,null);const{direction:Pr}=ie.useContext(mo.E_);return ie.createElement("div",{className:`${Ce}-column`},ie.createElement("span",{className:`${Xe}-column-title`},Lt),ie.createElement(Gr.Z,{dropdownRender:$n,trigger:["click"],open:fn,onOpenChange:Sr,getPopupContainer:$t,placement:Pr==="rtl"?"bottomLeft":"bottomRight"},ie.createElement("span",{role:"button",tabIndex:-1,className:Ye()(`${Ce}-trigger`,{active:En}),onClick:kn=>{kn.stopPropagation()}},Rn)))}var ra=Ma;function Gi(De,Te,Ue){let Xe=[];return(De||[]).forEach((Ce,we)=>{var Oe;const rt=vr(we,Ue);if(Ce.filters||"filterDropdown"in Ce||"onFilter"in Ce)if("filteredValue"in Ce){let We=Ce.filteredValue;"filterDropdown"in Ce||(We=(Oe=We==null?void 0:We.map(String))!==null&&Oe!==void 0?Oe:We),Xe.push({column:Ce,key:Dn(Ce,rt),filteredKeys:We,forceFiltered:Ce.filtered})}else Xe.push({column:Ce,key:Dn(Ce,rt),filteredKeys:Te&&Ce.defaultFilteredValue?Ce.defaultFilteredValue:void 0,forceFiltered:Ce.filtered});"children"in Ce&&(Xe=[].concat((0,wn.Z)(Xe),(0,wn.Z)(Gi(Ce.children,Te,rt))))}),Xe}function oa(De,Te,Ue,Xe,Ce,we,Oe,rt){return Ue.map((We,dt)=>{const Je=vr(dt,rt),{filterMultiple:qe=!0,filterMode:nt,filterSearch:pt}=We;let Lt=We;if(Lt.filters||Lt.filterDropdown){const $t=Dn(Lt,Je),jt=Xe.find(Zt=>{let{key:Nt}=Zt;return $t===Nt});Lt=Object.assign(Object.assign({},Lt),{title:Zt=>ie.createElement(ra,{tablePrefixCls:De,prefixCls:`${De}-filter`,dropdownPrefixCls:Te,column:Lt,columnKey:$t,filterState:jt,filterMultiple:qe,filterMode:nt,filterSearch:pt,triggerFilter:we,locale:Ce,getPopupContainer:Oe},Br(We.title,Zt))})}return"children"in Lt&&(Lt=Object.assign(Object.assign({},Lt),{children:oa(De,Te,Lt.children,Xe,Ce,we,Oe,Je)})),Lt})}function Ui(De){const Te={};return De.forEach(Ue=>{let{key:Xe,filteredKeys:Ce,column:we}=Ue;const{filters:Oe,filterDropdown:rt}=we;if(rt)Te[Xe]=Ce||null;else if(Array.isArray(Ce)){const We=yi(Oe);Te[Xe]=We.filter(dt=>Ce.includes(String(dt)))}else Te[Xe]=null}),Te}function ia(De,Te){return Te.reduce((Ue,Xe)=>{const{column:{onFilter:Ce,filters:we},filteredKeys:Oe}=Xe;return Ce&&Oe&&Oe.length?Ue.filter(rt=>Oe.some(We=>{const dt=yi(we),Je=dt.findIndex(nt=>String(nt)===String(We)),qe=Je!==-1?dt[Je]:We;return Ce(qe,rt)})):Ue},De)}const Da=De=>De.flatMap(Te=>"children"in Te?[Te].concat((0,wn.Z)(Da(Te.children||[]))):[Te]);function aa(De){let{prefixCls:Te,dropdownPrefixCls:Ue,mergedColumns:Xe,onFilterChange:Ce,getPopupContainer:we,locale:Oe}=De;const rt=ie.useMemo(()=>Da(Xe||[]),[Xe]),[We,dt]=ie.useState(()=>Gi(rt,!0)),Je=ie.useMemo(()=>{const Lt=Gi(rt,!1);if(Lt.length===0)return Lt;let $t=!0,jt=!0;if(Lt.forEach(Zt=>{let{filteredKeys:Nt}=Zt;Nt!==void 0?$t=!1:jt=!1}),$t){const Zt=(rt||[]).map((Nt,nn)=>Dn(Nt,vr(nn)));return We.filter(Nt=>{let{key:nn}=Nt;return Zt.includes(nn)}).map(Nt=>{const nn=rt[Zt.findIndex(en=>en===Nt.key)];return Object.assign(Object.assign({},Nt),{column:Object.assign(Object.assign({},Nt.column),nn),forceFiltered:nn.filtered})})}return Lt},[rt,We]),qe=ie.useMemo(()=>Ui(Je),[Je]),nt=Lt=>{const $t=Je.filter(jt=>{let{key:Zt}=jt;return Zt!==Lt.key});$t.push(Lt),dt($t),Ce(Ui($t),$t)};return[Lt=>oa(Te,Ue,Lt,Je,Oe,nt,we),Je,qe]}var $i=aa;function sa(De,Te,Ue){const Xe=ie.useRef({});function Ce(we){if(!Xe.current||Xe.current.data!==De||Xe.current.childrenColumnName!==Te||Xe.current.getRowKey!==Ue){let rt=function(We){We.forEach((dt,Je)=>{const qe=Ue(dt,Je);Oe.set(qe,dt),dt&&typeof dt=="object"&&Te in dt&&rt(dt[Te]||[])})};const Oe=new Map;rt(De),Xe.current={data:De,childrenColumnName:Te,kvMap:Oe,getRowKey:Ue}}return Xe.current.kvMap.get(we)}return[Ce]}var Bi=ee(50371),di=function(De,Te){var Ue={};for(var Xe in De)Object.prototype.hasOwnProperty.call(De,Xe)&&Te.indexOf(Xe)<0&&(Ue[Xe]=De[Xe]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Xe=Object.getOwnPropertySymbols(De);Ce<Xe.length;Ce++)Te.indexOf(Xe[Ce])<0&&Object.prototype.propertyIsEnumerable.call(De,Xe[Ce])&&(Ue[Xe[Ce]]=De[Xe[Ce]]);return Ue};const la=10;function ca(De,Te){const Ue={current:De.current,pageSize:De.pageSize};return Object.keys(Te&&typeof Te=="object"?Te:{}).forEach(Ce=>{const we=De[Ce];typeof we!="function"&&(Ue[Ce]=we)}),Ue}function Aa(De,Te,Ue){const Xe=Ue&&typeof Ue=="object"?Ue:{},{total:Ce=0}=Xe,we=di(Xe,["total"]),[Oe,rt]=(0,ie.useState)(()=>({current:"defaultCurrent"in we?we.defaultCurrent:1,pageSize:"defaultPageSize"in we?we.defaultPageSize:la})),We=(0,Bi.Z)(Oe,we,{total:Ce>0?Ce:De}),dt=Math.ceil((Ce||De)/We.pageSize);We.current>dt&&(We.current=dt||1);const Je=(nt,pt)=>{rt({current:nt!=null?nt:1,pageSize:pt||We.pageSize})},qe=(nt,pt)=>{var Lt;Ue&&((Lt=Ue.onChange)===null||Lt===void 0||Lt.call(Ue,nt,pt)),Je(nt,pt),Te(nt,pt||(We==null?void 0:We.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},We),{onChange:qe}),Je]}var Ia=Aa,gs=ee(84105),da=ee(35654),Ci=ee(90782),fs=ee(71430),Oa=ee(18929);const fi={},Zi="SELECT_ALL",ki="SELECT_INVERT",Wi="SELECT_NONE",ua=[],Ki=(De,Te)=>{let Ue=[];return(Te||[]).forEach(Xe=>{Ue.push(Xe),Xe&&typeof Xe=="object"&&De in Xe&&(Ue=[].concat((0,wn.Z)(Ue),(0,wn.Z)(Ki(De,Xe[De]))))}),Ue};var Vi=(De,Te)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:Xe,defaultSelectedRowKeys:Ce,getCheckboxProps:we,onChange:Oe,onSelect:rt,onSelectAll:We,onSelectInvert:dt,onSelectNone:Je,onSelectMultiple:qe,columnWidth:nt,type:pt,selections:Lt,fixed:$t,renderCell:jt,hideSelectAll:Zt,checkStrictly:Nt=!0}=Te||{},{prefixCls:nn,data:en,pageData:vn,getRecordByKey:Xt,getRowKey:Bn,expandType:En,childrenColumnName:qt,locale:fn,getPopupContainer:Rt}=De,[rn,dn]=(0,Oa.Z)(Xe||Ce||ua,{value:Xe}),An=ie.useRef(new Map),Qn=(0,ie.useCallback)(xn=>{if(Ue){const Fn=new Map;xn.forEach($n=>{let Rn=Xt($n);!Rn&&An.current.has($n)&&(Rn=An.current.get($n)),Fn.set($n,Rn)}),An.current=Fn}},[Xt,Ue]);ie.useEffect(()=>{Qn(rn)},[rn]);const{keyEntities:tn}=(0,ie.useMemo)(()=>{if(Nt)return{keyEntities:null};let xn=en;if(Ue){const Fn=new Set(en.map((Rn,Pr)=>Bn(Rn,Pr))),$n=Array.from(An.current).reduce((Rn,Pr)=>{let[kn,Hn]=Pr;return Fn.has(kn)?Rn:Rn.concat(Hn)},[]);xn=[].concat((0,wn.Z)(xn),(0,wn.Z)($n))}return(0,fs.I8)(xn,{externalGetKey:Bn,childrenPropName:qt})},[en,Bn,Nt,qt,Ue]),yn=(0,ie.useMemo)(()=>Ki(qt,vn),[qt,vn]),gn=(0,ie.useMemo)(()=>{const xn=new Map;return yn.forEach((Fn,$n)=>{const Rn=Bn(Fn,$n),Pr=(we?we(Fn):null)||{};xn.set(Rn,Pr)}),xn},[yn,Bn,we]),mn=(0,ie.useCallback)(xn=>{var Fn;return!!(!((Fn=gn.get(Bn(xn)))===null||Fn===void 0)&&Fn.disabled)},[gn,Bn]),[On,rr]=(0,ie.useMemo)(()=>{if(Nt)return[rn||[],[]];const{checkedKeys:xn,halfCheckedKeys:Fn}=(0,Ci.S)(rn,!0,tn,mn);return[xn||[],Fn]},[rn,Nt,tn,mn]),Xn=(0,ie.useMemo)(()=>{const xn=pt==="radio"?On.slice(0,1):On;return new Set(xn)},[On,pt]),zr=(0,ie.useMemo)(()=>pt==="radio"?new Set:new Set(rr),[rr,pt]),[er,Zr]=(0,ie.useState)(null);ie.useEffect(()=>{Te||dn(ua)},[!!Te]);const Sr=(0,ie.useCallback)((xn,Fn)=>{let $n,Rn;Qn(xn),Ue?($n=xn,Rn=xn.map(Pr=>An.current.get(Pr))):($n=[],Rn=[],xn.forEach(Pr=>{const kn=Xt(Pr);kn!==void 0&&($n.push(Pr),Rn.push(kn))})),dn($n),Oe==null||Oe($n,Rn,{type:Fn})},[dn,Xt,Oe,Ue]),Ir=(0,ie.useCallback)((xn,Fn,$n,Rn)=>{if(rt){const Pr=$n.map(kn=>Xt(kn));rt(Xt(xn),Fn,Pr,Rn)}Sr($n,"single")},[rt,Xt,Sr]),hr=(0,ie.useMemo)(()=>!Lt||Zt?null:(Lt===!0?[Zi,ki,Wi]:Lt).map(Fn=>Fn===Zi?{key:"all",text:fn.selectionAll,onSelect(){Sr(en.map(($n,Rn)=>Bn($n,Rn)).filter($n=>{const Rn=gn.get($n);return!(Rn!=null&&Rn.disabled)||Xn.has($n)}),"all")}}:Fn===ki?{key:"invert",text:fn.selectInvert,onSelect(){const $n=new Set(Xn);vn.forEach((Pr,kn)=>{const Hn=Bn(Pr,kn),gr=gn.get(Hn);gr!=null&&gr.disabled||($n.has(Hn)?$n.delete(Hn):$n.add(Hn))});const Rn=Array.from($n);dt&&dt(Rn),Sr(Rn,"invert")}}:Fn===Wi?{key:"none",text:fn.selectNone,onSelect(){Je==null||Je(),Sr(Array.from(Xn).filter($n=>{const Rn=gn.get($n);return Rn==null?void 0:Rn.disabled}),"none")}}:Fn).map(Fn=>Object.assign(Object.assign({},Fn),{onSelect:function(){for(var $n,Rn,Pr=arguments.length,kn=new Array(Pr),Hn=0;Hn<Pr;Hn++)kn[Hn]=arguments[Hn];(Rn=Fn.onSelect)===null||Rn===void 0||($n=Rn).call.apply($n,[Fn].concat(kn)),Zr(null)}})),[Lt,Xn,vn,Bn,dt,Sr]);return[(0,ie.useCallback)(xn=>{var Fn;if(!Te)return xn.filter(br=>br!==fi);let $n=(0,wn.Z)(xn);const Rn=new Set(Xn),Pr=yn.map(Bn).filter(br=>!gn.get(br).disabled),kn=Pr.every(br=>Rn.has(br)),Hn=Pr.some(br=>Rn.has(br)),gr=()=>{const br=[];kn?Pr.forEach(Hr=>{Rn.delete(Hr),br.push(Hr)}):Pr.forEach(Hr=>{Rn.has(Hr)||(Rn.add(Hr),br.push(Hr))});const xr=Array.from(Rn);We==null||We(!kn,xr.map(Hr=>Xt(Hr)),br.map(Hr=>Xt(Hr))),Sr(xr,"all"),Zr(null)};let yr;if(pt!=="radio"){let br;if(hr){const dr={getPopupContainer:Rt,items:hr.map((Oo,jo)=>{const{key:Qo,text:mi,onSelect:gi}=Oo;return{key:Qo!=null?Qo:jo,onClick:()=>{gi==null||gi(Pr)},label:mi}})};br=ie.createElement("div",{className:`${nn}-selection-extra`},ie.createElement(Gr.Z,{menu:dr,getPopupContainer:Rt},ie.createElement("span",null,ie.createElement(gs.Z,null))))}const xr=yn.map((dr,Oo)=>{const jo=Bn(dr,Oo),Qo=gn.get(jo)||{};return Object.assign({checked:Rn.has(jo)},Qo)}).filter(dr=>{let{disabled:Oo}=dr;return Oo}),Hr=!!xr.length&&xr.length===yn.length,Yr=Hr&&xr.every(dr=>{let{checked:Oo}=dr;return Oo}),co=Hr&&xr.some(dr=>{let{checked:Oo}=dr;return Oo});yr=!Zt&&ie.createElement("div",{className:`${nn}-selection`},ie.createElement(yo.default,{checked:Hr?Yr:!!yn.length&&kn,indeterminate:Hr?!Yr&&co:!kn&&Hn,onChange:gr,disabled:yn.length===0||Hr,"aria-label":br?"Custom selection":"Select all",skipGroup:!0}),br)}let Lo;pt==="radio"?Lo=(br,xr,Hr)=>{const Yr=Bn(xr,Hr),co=Rn.has(Yr);return{node:ie.createElement(_i.ZP,Object.assign({},gn.get(Yr),{checked:co,onClick:dr=>dr.stopPropagation(),onChange:dr=>{Rn.has(Yr)||Ir(Yr,!0,[Yr],dr.nativeEvent)}})),checked:co}}:Lo=(br,xr,Hr)=>{var Yr;const co=Bn(xr,Hr),dr=Rn.has(co),Oo=zr.has(co),jo=gn.get(co);let Qo;return En==="nest"?Qo=Oo:Qo=(Yr=jo==null?void 0:jo.indeterminate)!==null&&Yr!==void 0?Yr:Oo,{node:ie.createElement(yo.default,Object.assign({},jo,{indeterminate:Qo,checked:dr,skipGroup:!0,onClick:mi=>mi.stopPropagation(),onChange:mi=>{let{nativeEvent:gi}=mi;const{shiftKey:ea}=gi;let Pi=-1,si=-1;if(ea&&Nt){const Wo=new Set([er,co]);Pr.some((Ho,vo)=>{if(Wo.has(Ho))if(Pi===-1)Pi=vo;else return si=vo,!0;return!1})}if(si!==-1&&Pi!==si&&Nt){const Wo=Pr.slice(Pi,si+1),Ho=[];dr?Wo.forEach(no=>{Rn.has(no)&&(Ho.push(no),Rn.delete(no))}):Wo.forEach(no=>{Rn.has(no)||(Ho.push(no),Rn.add(no))});const vo=Array.from(Rn);qe==null||qe(!dr,vo.map(no=>Xt(no)),Ho.map(no=>Xt(no))),Sr(vo,"multiple")}else{const Wo=On;if(Nt){const Ho=dr?(0,da._5)(Wo,co):(0,da.L0)(Wo,co);Ir(co,!dr,Ho,gi)}else{const Ho=(0,Ci.S)([].concat((0,wn.Z)(Wo),[co]),!0,tn,mn),{checkedKeys:vo,halfCheckedKeys:no}=Ho;let pi=vo;if(dr){const Ni=new Set(vo);Ni.delete(co),pi=(0,Ci.S)(Array.from(Ni),{checked:!1,halfCheckedKeys:no},tn,mn).checkedKeys}Ir(co,!dr,pi,gi)}}Zr(dr?null:co)}})),checked:dr}};const Po=(br,xr,Hr)=>{const{node:Yr,checked:co}=Lo(br,xr,Hr);return jt?jt(co,xr,Hr,Yr):Yr};if(!$n.includes(fi))if($n.findIndex(br=>{var xr;return((xr=br[Zn])===null||xr===void 0?void 0:xr.columnType)==="EXPAND_COLUMN"})===0){const[br,...xr]=$n;$n=[br,fi].concat((0,wn.Z)(xr))}else $n=[fi].concat((0,wn.Z)($n));const tr=$n.indexOf(fi);$n=$n.filter((br,xr)=>br!==fi||xr===tr);const fr=$n[tr-1],Qr=$n[tr+1];let Tr=$t;Tr===void 0&&((Qr==null?void 0:Qr.fixed)!==void 0?Tr=Qr.fixed:(fr==null?void 0:fr.fixed)!==void 0&&(Tr=fr.fixed)),Tr&&fr&&((Fn=fr[Zn])===null||Fn===void 0?void 0:Fn.columnType)==="EXPAND_COLUMN"&&fr.fixed===void 0&&(fr.fixed=Tr);const wr=Ye()(`${nn}-selection-col`,{[`${nn}-selection-col-with-dropdown`]:Lt&&pt==="checkbox"}),Fo={fixed:Tr,width:nt,className:`${nn}-selection-column`,title:Te.columnTitle||yr,render:Po,onCell:Te.onCell,[Zn]:{className:wr}};return $n.map(br=>br===fi?Fo:br)},[Bn,yn,Te,On,Xn,zr,nt,hr,En,er,gn,qe,Ir,mn]),Xn]},ms=ee(89489),Ra=ee(59477),Ta=ee(6848);const Oi="ascend",Yi="descend";function Fi(De){return typeof De.sorter=="object"&&typeof De.sorter.multiple=="number"?De.sorter.multiple:!1}function Xi(De){return typeof De=="function"?De:De&&typeof De=="object"&&De.compare?De.compare:!1}function Na(De,Te){return Te?De[De.indexOf(Te)+1]:De[0]}function ga(De,Te,Ue){let Xe=[];function Ce(we,Oe){Xe.push({column:we,key:Dn(we,Oe),multiplePriority:Fi(we),sortOrder:we.sortOrder})}return(De||[]).forEach((we,Oe)=>{const rt=vr(Oe,Ue);we.children?("sortOrder"in we&&Ce(we,rt),Xe=[].concat((0,wn.Z)(Xe),(0,wn.Z)(ga(we.children,Te,rt)))):we.sorter&&("sortOrder"in we?Ce(we,rt):Te&&we.defaultSortOrder&&Xe.push({column:we,key:Dn(we,rt),multiplePriority:Fi(we),sortOrder:we.defaultSortOrder}))}),Xe}function fa(De,Te,Ue,Xe,Ce,we,Oe,rt){return(Te||[]).map((We,dt)=>{const Je=vr(dt,rt);let qe=We;if(qe.sorter){const nt=qe.sortDirections||Ce,pt=qe.showSorterTooltip===void 0?Oe:qe.showSorterTooltip,Lt=Dn(qe,Je),$t=Ue.find(En=>{let{key:qt}=En;return qt===Lt}),jt=$t?$t.sortOrder:null,Zt=Na(nt,jt);let Nt;if(We.sortIcon)Nt=We.sortIcon({sortOrder:jt});else{const En=nt.includes(Oi)&&ie.createElement(Ra.Z,{className:Ye()(`${De}-column-sorter-up`,{active:jt===Oi})}),qt=nt.includes(Yi)&&ie.createElement(ms.Z,{className:Ye()(`${De}-column-sorter-down`,{active:jt===Yi})});Nt=ie.createElement("span",{className:Ye()(`${De}-column-sorter`,{[`${De}-column-sorter-full`]:!!(En&&qt)})},ie.createElement("span",{className:`${De}-column-sorter-inner`,"aria-hidden":"true"},En,qt))}const{cancelSort:nn,triggerAsc:en,triggerDesc:vn}=we||{};let Xt=nn;Zt===Yi?Xt=vn:Zt===Oi&&(Xt=en);const Bn=typeof pt=="object"?pt:{title:Xt};qe=Object.assign(Object.assign({},qe),{className:Ye()(qe.className,{[`${De}-column-sort`]:jt}),title:En=>{const qt=ie.createElement("div",{className:`${De}-column-sorters`},ie.createElement("span",{className:`${De}-column-title`},Br(We.title,En)),Nt);return pt?ie.createElement(Ta.Z,Object.assign({},Bn),qt):qt},onHeaderCell:En=>{const qt=We.onHeaderCell&&We.onHeaderCell(En)||{},fn=qt.onClick,Rt=qt.onKeyDown;qt.onClick=An=>{Xe({column:We,key:Lt,sortOrder:Zt,multiplePriority:Fi(We)}),fn==null||fn(An)},qt.onKeyDown=An=>{An.keyCode===Ii.Z.ENTER&&(Xe({column:We,key:Lt,sortOrder:Zt,multiplePriority:Fi(We)}),Rt==null||Rt(An))};const rn=ao(We.title,{}),dn=rn==null?void 0:rn.toString();return jt?qt["aria-sort"]=jt==="ascend"?"ascending":"descending":qt["aria-label"]=dn||"",qt.className=Ye()(qt.className,`${De}-column-has-sorters`),qt.tabIndex=0,We.ellipsis&&(qt.title=(rn!=null?rn:"").toString()),qt}})}return"children"in qe&&(qe=Object.assign(Object.assign({},qe),{children:fa(De,qe.children,Ue,Xe,Ce,we,Oe,Je)})),qe})}function ha(De){const{column:Te,sortOrder:Ue}=De;return{column:Te,order:Ue,field:Te.dataIndex,columnKey:Te.key}}function ma(De){const Te=De.filter(Ue=>{let{sortOrder:Xe}=Ue;return Xe}).map(ha);return Te.length===0&&De.length?Object.assign(Object.assign({},ha(De[De.length-1])),{column:void 0}):Te.length<=1?Te[0]||{}:Te}function Qi(De,Te,Ue){const Xe=Te.slice().sort((Oe,rt)=>rt.multiplePriority-Oe.multiplePriority),Ce=De.slice(),we=Xe.filter(Oe=>{let{column:{sorter:rt},sortOrder:We}=Oe;return Xi(rt)&&We});return we.length?Ce.sort((Oe,rt)=>{for(let We=0;We<we.length;We+=1){const dt=we[We],{column:{sorter:Je},sortOrder:qe}=dt,nt=Xi(Je);if(nt&&qe){const pt=nt(Oe,rt,qe);if(pt!==0)return qe===Oi?pt:-pt}}return 0}).map(Oe=>{const rt=Oe[Ue];return rt?Object.assign(Object.assign({},Oe),{[Ue]:Qi(rt,Te,Ue)}):Oe}):Ce}function Ba(De){let{prefixCls:Te,mergedColumns:Ue,onSorterChange:Xe,sortDirections:Ce,tableLocale:we,showSorterTooltip:Oe}=De;const[rt,We]=ie.useState(ga(Ue,!0)),dt=ie.useMemo(()=>{let Lt=!0;const $t=ga(Ue,!1);if(!$t.length)return rt;const jt=[];function Zt(nn){Lt?jt.push(nn):jt.push(Object.assign(Object.assign({},nn),{sortOrder:null}))}let Nt=null;return $t.forEach(nn=>{Nt===null?(Zt(nn),nn.sortOrder&&(nn.multiplePriority===!1?Lt=!1:Nt=!0)):(Nt&&nn.multiplePriority!==!1||(Lt=!1),Zt(nn))}),jt},[Ue,rt]),Je=ie.useMemo(()=>{const Lt=dt.map($t=>{let{column:jt,sortOrder:Zt}=$t;return{column:jt,order:Zt}});return{sortColumns:Lt,sortColumn:Lt[0]&&Lt[0].column,sortOrder:Lt[0]&&Lt[0].order}},[dt]);function qe(Lt){let $t;Lt.multiplePriority===!1||!dt.length||dt[0].multiplePriority===!1?$t=[Lt]:$t=[].concat((0,wn.Z)(dt.filter(jt=>{let{key:Zt}=jt;return Zt!==Lt.key})),[Lt]),We($t),Xe(ma($t),$t)}return[Lt=>fa(Te,Lt,dt,qe,Ce,we,Oe),dt,Je,()=>ma(dt)]}function pa(De,Te){return De.map(Ue=>{const Xe=Object.assign({},Ue);return Xe.title=Br(Ue.title,Te),"children"in Xe&&(Xe.children=pa(Xe.children,Te)),Xe})}function va(De){return[ie.useCallback(Ue=>pa(Ue,De),[De])]}var ka=_r((De,Te)=>{const{_renderTimes:Ue}=De,{_renderTimes:Xe}=Te;return Ue!==Xe}),Fa=jr((De,Te)=>{const{_renderTimes:Ue}=De,{_renderTimes:Xe}=Te;return Ue!==Xe}),Ei=ee(64993),ko=ee(17313),ja=ee(83116),wi=ee(37613),za=De=>{const{componentCls:Te}=De,Ue=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,Xe=(Ce,we,Oe)=>({[`&${Te}-${Ce}`]:{[`> ${Te}-container`]:{[`> ${Te}-content, > ${Te}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Te}-expanded-row-fixed`]:{margin:`-${we}px -${Oe+De.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:`-${De.tablePaddingVertical}px -${De.tablePaddingHorizontal+De.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:De.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}}}}}},Xe("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle)),Xe("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall)),{[`> ${Te}-footer`]:{border:Ue,borderTop:0}}),[`${Te}-cell`]:{[`${Te}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${De.lineWidth}px 0 ${De.lineWidth}px ${De.tableHeaderBg}`}},[`${Te}-bordered ${Te}-cell-scrollbar`]:{borderInlineEnd:Ue}}}},Ha=De=>{const{componentCls:Te}=De;return{[`${Te}-wrapper`]:{[`${Te}-cell-ellipsis`]:Object.assign(Object.assign({},ko.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"}})}}},Ga=De=>{const{componentCls:Te}=De;return{[`${Te}-wrapper`]:{[`${Te}-tbody > tr${Te}-placeholder`]:{textAlign:"center",color:De.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:De.colorBgContainer}}}}},Sa=ee(15969),Ua=De=>{const{componentCls:Te,antCls:Ue,controlInteractiveSize:Xe,motionDurationSlow:Ce,lineWidth:we,paddingXS:Oe,lineType:rt,tableBorderColor:We,tableExpandIconBg:dt,tableExpandColumnWidth:Je,borderRadius:qe,fontSize:nt,fontSizeSM:pt,lineHeight:Lt,tablePaddingVertical:$t,tablePaddingHorizontal:jt,tableExpandedRowBg:Zt,paddingXXS:Nt}=De,nn=Xe/2-we,en=nn*2+we*3,vn=`${we}px ${rt} ${We}`,Xt=Nt-we;return{[`${Te}-wrapper`]:{[`${Te}-expand-icon-col`]:{width:Je},[`${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,Sa.N)(De)),{position:"relative",float:"left",boxSizing:"border-box",width:en,height:en,padding:0,color:"inherit",lineHeight:`${en}px`,background:dt,border:vn,borderRadius:qe,transform:`scale(${Xe/en})`,transition:`all ${Ce}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ce} ease-out`,content:'""'},"&::before":{top:nn,insetInlineEnd:Xt,insetInlineStart:Xt,height:we},"&::after":{top:Xt,bottom:Xt,insetInlineStart:nn,width:we,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Te}-row-indent + ${Te}-row-expand-icon`]:{marginTop:(nt*Lt-we*3)/2-Math.ceil((pt*1.4-we*3)/2),marginInlineEnd:Oe},[`tr${Te}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Zt}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Te}-expanded-row-fixed`]:{position:"relative",margin:`-${$t}px -${jt}px`,padding:`${$t}px ${jt}px`}}}},hi=De=>{const{componentCls:Te,antCls:Ue,iconCls:Xe,tableFilterDropdownWidth:Ce,tableFilterDropdownSearchWidth:we,paddingXXS:Oe,paddingXS:rt,colorText:We,lineWidth:dt,lineType:Je,tableBorderColor:qe,tableHeaderIconColor:nt,fontSizeSM:pt,tablePaddingHorizontal:Lt,borderRadius:$t,motionDurationSlow:jt,colorTextDescription:Zt,colorPrimary:Nt,tableHeaderFilterActiveBg:nn,colorTextDisabled:en,tableFilterDropdownBg:vn,tableFilterDropdownHeight:Xt,controlItemBgHover:Bn,controlItemBgActive:En,boxShadowSecondary:qt,filterDropdownMenuBg:fn}=De,Rt=`${Ue}-dropdown`,rn=`${Te}-filter-dropdown`,dn=`${Ue}-tree`,An=`${dt}px ${Je} ${qe}`;return[{[`${Te}-wrapper`]:{[`${Te}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Te}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Oe,marginInline:`${Oe}px ${-Lt/2}px`,padding:`0 ${Oe}px`,color:nt,fontSize:pt,borderRadius:$t,cursor:"pointer",transition:`all ${jt}`,"&:hover":{color:Zt,background:nn},"&.active":{color:Nt}}}},{[`${Ue}-dropdown`]:{[rn]:Object.assign(Object.assign({},(0,ko.Wf)(De)),{minWidth:Ce,backgroundColor:vn,borderRadius:$t,boxShadow:qt,overflow:"hidden",[`${Rt}-menu`]:{maxHeight:Xt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:fn,"&:empty::after":{display:"block",padding:`${rt}px 0`,color:en,fontSize:pt,textAlign:"center",content:'"Not Found"'}},[`${rn}-tree`]:{paddingBlock:`${rt}px 0`,paddingInline:rt,[dn]:{padding:0},[`${dn}-treenode ${dn}-node-content-wrapper:hover`]:{backgroundColor:Bn},[`${dn}-treenode-checkbox-checked ${dn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:En}}},[`${rn}-search`]:{padding:rt,borderBottom:An,"&-input":{input:{minWidth:we},[Xe]:{color:en}}},[`${rn}-checkall`]:{width:"100%",marginBottom:Oe,marginInlineStart:Oe},[`${rn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${rt-dt}px ${rt}px`,overflow:"hidden",borderTop:An}})}},{[`${Ue}-dropdown ${rn}, ${rn}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:rt,color:We},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Ti=De=>{const{componentCls:Te,lineWidth:Ue,colorSplit:Xe,motionDurationSlow:Ce,zIndexTableFixed:we,tableBg:Oe,zIndexTableSticky:rt}=De,We=Xe;return{[`${Te}-wrapper`]:{[`
|
|
|
${Te}-cell-fix-left,
|
|
|
${Te}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:we,background:Oe},[`
|
|
|
${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 ${Ce}`,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 ${Ce}`,content:'""',pointerEvents:"none"},[`${Te}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:rt+1,width:30,transition:`box-shadow ${Ce}`,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 ${We}`}},[`
|
|
|
${Te}-cell-fix-left-first::after,
|
|
|
${Te}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${We}`},[`${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 ${We}`}},[`
|
|
|
${Te}-cell-fix-right-first::after,
|
|
|
${Te}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${We}`}}}}},Za=De=>{const{componentCls:Te,antCls:Ue}=De;return{[`${Te}-wrapper`]:{[`${Te}-pagination${Ue}-pagination`]:{margin:`${De.margin}px 0`},[`${Te}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:De.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Wa=De=>{const{componentCls:Te,tableRadius:Ue}=De;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`}}}}},Ka=De=>{const{componentCls:Te}=De;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"}}}}},Va=De=>{const{componentCls:Te,antCls:Ue,iconCls:Xe,fontSizeIcon:Ce,padding:we,paddingXS:Oe,tableHeaderIconColor:rt,tableHeaderIconColorHover:We,tableSelectionColumnWidth:dt}=De;return{[`${Te}-wrapper`]:{[`${Te}-selection-col`]:{width:dt,[`&${Te}-selection-col-with-dropdown`]:{width:dt+Ce+we/4}},[`${Te}-bordered ${Te}-selection-col`]:{width:dt+Oe*2,[`&${Te}-selection-col-with-dropdown`]:{width:dt+Ce+we/4+Oe*2}},[`
|
|
|
table tr th${Te}-selection-column,
|
|
|
table tr td${Te}-selection-column
|
|
|
`]:{paddingInlineEnd:De.paddingXS,paddingInlineStart:De.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Te}-selection-column${Te}-cell-fix-left`]:{zIndex:De.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 ${De.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${De.tablePaddingHorizontal/4}px`,[Xe]:{color:rt,fontSize:Ce,verticalAlign:"baseline","&:hover":{color:We}}}}}},Ya=De=>{const{componentCls:Te}=De,Ue=(Xe,Ce,we,Oe)=>({[`${Te}${Te}-${Xe}`]:{fontSize:Oe,[`
|
|
|
${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:`${Ce}px ${we}px`},[`${Te}-filter-trigger`]:{marginInlineEnd:`-${we/2}px`},[`${Te}-expanded-row-fixed`]:{margin:`-${Ce}px -${we}px`},[`${Te}-tbody`]:{[`${Te}-wrapper:only-child ${Te}`]:{marginBlock:`-${Ce}px`,marginInline:`${De.tableExpandColumnWidth-we}px -${we}px`}},[`${Te}-selection-column`]:{paddingInlineStart:`${we/4}px`}}});return{[`${Te}-wrapper`]:Object.assign(Object.assign({},Ue("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle,De.tableFontSizeMiddle)),Ue("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall,De.tableFontSizeSmall))}},Xa=De=>{const{componentCls:Te,marginXXS:Ue,fontSizeIcon:Xe,tableHeaderIconColor:Ce,tableHeaderIconColorHover:we}=De;return{[`${Te}-wrapper`]:{[`${Te}-thead th${Te}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${De.motionDurationSlow}`,"&:hover":{background:De.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:De.colorPrimary},[`
|
|
|
&${Te}-cell-fix-left:hover,
|
|
|
&${Te}-cell-fix-right:hover
|
|
|
`]:{background:De.tableFixedHeaderSortActiveBg}},[`${Te}-thead th${Te}-column-sort`]:{background:De.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Te}-column-sort`]:{background:De.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:Ce,fontSize:0,transition:`color ${De.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Xe,"&.active":{color:De.colorPrimary}},[`${Te}-column-sorter-up + ${Te}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Te}-column-sorters:hover ${Te}-column-sorter`]:{color:we}}}},Qa=De=>{const{componentCls:Te,opacityLoading:Ue,tableScrollThumbBg:Xe,tableScrollThumbBgHover:Ce,tableScrollThumbSize:we,tableScrollBg:Oe,zIndexTableSticky:rt,stickyScrollBarBorderRadius:We}=De,dt=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`;return{[`${Te}-wrapper`]:{[`${Te}-sticky`]:{"&-holder":{position:"sticky",zIndex:rt,background:De.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${we}px !important`,zIndex:rt,display:"flex",alignItems:"center",background:Oe,borderTop:dt,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:we,backgroundColor:Xe,borderRadius:We,transition:`all ${De.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ce}}}}}}},qi=De=>{const{componentCls:Te,lineWidth:Ue,tableBorderColor:Xe}=De,Ce=`${Ue}px ${De.lineType} ${Xe}`;return{[`${Te}-wrapper`]:{[`${Te}-summary`]:{position:"relative",zIndex:De.zIndexTableFixed,background:De.tableBg,"> tr":{"> th, > td":{borderBottom:Ce}}},[`div${Te}-summary`]:{boxShadow:`0 -${Ue}px 0 ${Xe}`}}}},ya=De=>{const{componentCls:Te}=De,Ue=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,Xe=`${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`]:{[`${Xe}${Xe}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${De.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:-De.lineWidth,borderInlineStart:Ue}}}}}}};const $r=De=>{const{componentCls:Te,fontWeightStrong:Ue,tablePaddingVertical:Xe,tablePaddingHorizontal:Ce,lineWidth:we,lineType:Oe,tableBorderColor:rt,tableFontSize:We,tableBg:dt,tableRadius:Je,tableHeaderTextColor:qe,motionDurationMid:nt,tableHeaderBg:pt,tableHeaderCellSplitColor:Lt,tableRowHoverBg:$t,tableSelectedRowBg:jt,tableSelectedRowHoverBg:Zt,tableFooterTextColor:Nt,tableFooterBg:nn,paddingContentVerticalLG:en}=De,vn=`${we}px ${Oe} ${rt}`;return{[`${Te}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ko.dF)()),{[Te]:Object.assign(Object.assign({},(0,ko.Wf)(De)),{fontSize:We,background:dt,borderRadius:`${Je}px ${Je}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Je}px ${Je}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:`${en}px ${Ce}px`,overflowWrap:"break-word"},[`${Te}-title`]:{padding:`${Xe}px ${Ce}px`},[`${Te}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:qe,fontWeight:Ue,textAlign:"start",background:pt,borderBottom:vn,transition:`background ${nt} 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:Lt,transform:"translateY(-50%)",transition:`background-color ${nt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Te}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${nt}, border-color ${nt}`,borderBottom:vn,[`
|
|
|
> ${Te}-wrapper:only-child,
|
|
|
> ${Te}-expanded-row-fixed > ${Te}-wrapper:only-child
|
|
|
`]:{[Te]:{marginBlock:`-${Xe}px`,marginInline:`${De.tableExpandColumnWidth-Ce}px -${Ce}px`,[`${Te}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:qe,fontWeight:Ue,textAlign:"start",background:pt,borderBottom:vn,transition:`background ${nt} ease`},[`
|
|
|
&${Te}-row:hover > th,
|
|
|
&${Te}-row:hover > td,
|
|
|
> th${Te}-cell-row-hover,
|
|
|
> td${Te}-cell-row-hover
|
|
|
`]:{background:$t},[`&${Te}-row-selected`]:{"> th, > td":{background:jt},"&:hover > th, &:hover > td":{background:Zt}}}},[`${Te}-footer`]:{padding:`${Xe}px ${Ce}px`,color:Nt,background:nn}})}};var po=(0,ja.Z)("Table",De=>{const{colorTextHeading:Te,colorSplit:Ue,colorIcon:Xe,colorIconHover:Ce,opacityLoading:we,colorBgContainer:Oe,controlInteractiveSize:rt,headerBg:We,headerColor:dt,headerSortActiveBg:Je,headerSortHoverBg:qe,bodySortBg:nt,rowHoverBg:pt,rowSelectedBg:Lt,rowSelectedHoverBg:$t,rowExpandedBg:jt,cellPaddingBlock:Zt,cellPaddingInline:Nt,cellPaddingBlockMD:nn,cellPaddingInlineMD:en,cellPaddingBlockSM:vn,cellPaddingInlineSM:Xt,borderColor:Bn,footerBg:En,footerColor:qt,headerBorderRadius:fn,cellFontSize:Rt,cellFontSizeMD:rn,cellFontSizeSM:dn,headerSplitColor:An,fixedHeaderSortActiveBg:Qn,headerFilterHoverBg:tn,filterDropdownBg:yn,expandIconBg:gn,selectionColumnWidth:mn,stickyScrollBarBg:On}=De,rr=new Ei.C(Xe),Xn=new Ei.C(Ce),zr=2,er=(0,wi.TS)(De,{tableFontSize:Rt,tableBg:Oe,tableRadius:fn,tablePaddingVertical:Zt,tablePaddingHorizontal:Nt,tablePaddingVerticalMiddle:nn,tablePaddingHorizontalMiddle:en,tablePaddingVerticalSmall:vn,tablePaddingHorizontalSmall:Xt,tableBorderColor:Bn,tableHeaderTextColor:dt,tableHeaderBg:We,tableFooterTextColor:qt,tableFooterBg:En,tableHeaderCellSplitColor:An,tableHeaderSortBg:Je,tableHeaderSortHoverBg:qe,tableHeaderIconColor:rr.clone().setAlpha(rr.getAlpha()*we).toRgbString(),tableHeaderIconColorHover:Xn.clone().setAlpha(Xn.getAlpha()*we).toRgbString(),tableBodySortBg:nt,tableFixedHeaderSortActiveBg:Qn,tableHeaderFilterActiveBg:tn,tableFilterDropdownBg:yn,tableRowHoverBg:pt,tableSelectedRowBg:Lt,tableSelectedRowHoverBg:$t,zIndexTableFixed:zr,zIndexTableSticky:zr+1,tableFontSizeMiddle:rn,tableFontSizeSmall:dn,tableSelectionColumnWidth:mn,tableExpandIconBg:gn,tableExpandColumnWidth:rt+2*De.padding,tableExpandedRowBg:jt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:On,tableScrollThumbBgHover:Te,tableScrollBg:Ue});return[$r(er),Za(er),qi(er),Xa(er),hi(er),za(er),Wa(er),Ua(er),qi(er),Ga(er),Va(er),Ti(er),Qa(er),Ha(er),Ya(er),Ka(er),ya(er)]},De=>{const{colorFillAlter:Te,colorBgContainer:Ue,colorTextHeading:Xe,colorFillSecondary:Ce,colorFillContent:we,controlItemBgActive:Oe,controlItemBgActiveHover:rt,padding:We,paddingSM:dt,paddingXS:Je,colorBorderSecondary:qe,borderRadiusLG:nt,fontSize:pt,controlHeight:Lt,colorTextPlaceholder:$t}=De,jt=new Ei.C(Ce).onBackground(Ue).toHexShortString(),Zt=new Ei.C(we).onBackground(Ue).toHexShortString(),Nt=new Ei.C(Te).onBackground(Ue).toHexShortString();return{headerBg:Nt,headerColor:Xe,headerSortActiveBg:jt,headerSortHoverBg:Zt,bodySortBg:Nt,rowHoverBg:Nt,rowSelectedBg:Oe,rowSelectedHoverBg:rt,rowExpandedBg:Te,cellPaddingBlock:We,cellPaddingInline:We,cellPaddingBlockMD:dt,cellPaddingInlineMD:Je,cellPaddingBlockSM:Je,cellPaddingInlineSM:Je,borderColor:qe,headerBorderRadius:nt,footerBg:Nt,footerColor:Xe,cellFontSize:pt,cellFontSizeMD:pt,cellFontSizeSM:pt,headerSplitColor:qe,fixedHeaderSortActiveBg:jt,headerFilterHoverBg:we,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:Lt,stickyScrollBarBg:$t,stickyScrollBarBorderRadius:100}});const qa=[],Zo=(De,Te)=>{const{prefixCls:Ue,className:Xe,rootClassName:Ce,style:we,size:Oe,bordered:rt,dropdownPrefixCls:We,dataSource:dt,pagination:Je,rowSelection:qe,rowKey:nt="key",rowClassName:pt,columns:Lt,children:$t,childrenColumnName:jt,onChange:Zt,getPopupContainer:Nt,loading:nn,expandIcon:en,expandable:vn,expandedRowRender:Xt,expandIconColumnIndex:Bn,indentSize:En,scroll:qt,sortDirections:fn,locale:Rt,showSorterTooltip:rn=!0,virtual:dn}=De,An=ie.useMemo(()=>Lt||Ie($t),[Lt,$t]),Qn=ie.useMemo(()=>An.some(Mr=>Mr.responsive),[An]),tn=(0,ei.Z)(Qn),yn=ie.useMemo(()=>{const Mr=new Set(Object.keys(tn).filter(Xr=>tn[Xr]));return An.filter(Xr=>!Xr.responsive||Xr.responsive.some(Ro=>Mr.has(Ro)))},[An,tn]),gn=(0,No.Z)(De,["className","style","columns"]),{locale:mn=ni.Z,direction:On,table:rr,renderEmpty:Xn,getPrefixCls:zr,getPopupContainer:er}=ie.useContext(mo.E_),Zr=(0,Xo.Z)(Oe),Sr=Object.assign(Object.assign({},mn.Table),Rt),Ir=dt||qa,hr=zr("table",Ue),Kn=zr("dropdown",We),xn=Object.assign({childrenColumnName:jt,expandIconColumnIndex:Bn},vn),{childrenColumnName:Fn="children"}=xn,$n=ie.useMemo(()=>Ir.some(Mr=>Mr==null?void 0:Mr[Fn])?"nest":Xt||vn&&vn.expandedRowRender?"row":null,[Ir]),Rn={body:ie.useRef()},Pr=ie.useMemo(()=>typeof nt=="function"?nt:Mr=>Mr==null?void 0:Mr[nt],[nt]),[kn]=sa(Ir,Fn,Pr),Hn={},gr=function(Mr,Xr){let Ro=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ro,zo,Ko;const Vo=Object.assign(Object.assign({},Hn),Mr);Ro&&((ro=Hn.resetPagination)===null||ro===void 0||ro.call(Hn),!((zo=Vo.pagination)===null||zo===void 0)&&zo.current&&(Vo.pagination.current=1),Je&&Je.onChange&&Je.onChange(1,(Ko=Vo.pagination)===null||Ko===void 0?void 0:Ko.pageSize)),qt&&qt.scrollToFirstRowOnChange!==!1&&Rn.body.current&&(0,Co.Z)(0,{getContainer:()=>Rn.body.current}),Zt==null||Zt(Vo.pagination,Vo.filters,Vo.sorter,{currentDataSource:ia(Qi(Ir,Vo.sorterStates,Fn),Vo.filterStates),action:Xr})},yr=(Mr,Xr)=>{gr({sorter:Mr,sorterStates:Xr},"sort",!1)},[Lo,Po,tr,fr]=Ba({prefixCls:hr,mergedColumns:yn,onSorterChange:yr,sortDirections:fn||["ascend","descend"],tableLocale:Sr,showSorterTooltip:rn}),Qr=ie.useMemo(()=>Qi(Ir,Po,Fn),[Ir,Po]);Hn.sorter=fr(),Hn.sorterStates=Po;const Tr=(Mr,Xr)=>{gr({filters:Mr,filterStates:Xr},"filter",!0)},[wr,Fo,br]=$i({prefixCls:hr,locale:Sr,dropdownPrefixCls:Kn,mergedColumns:yn,onFilterChange:Tr,getPopupContainer:Nt||er}),xr=ia(Qr,Fo);Hn.filters=br,Hn.filterStates=Fo;const Hr=ie.useMemo(()=>{const Mr={};return Object.keys(br).forEach(Xr=>{br[Xr]!==null&&(Mr[Xr]=br[Xr])}),Object.assign(Object.assign({},tr),{filters:Mr})},[tr,br]),[Yr]=va(Hr),co=(Mr,Xr)=>{gr({pagination:Object.assign(Object.assign({},Hn.pagination),{current:Mr,pageSize:Xr})},"paginate")},[dr,Oo]=Ia(xr.length,co,Je);Hn.pagination=Je===!1?{}:ca(dr,Je),Hn.resetPagination=Oo;const jo=ie.useMemo(()=>{if(Je===!1||!dr.pageSize)return xr;const{current:Mr=1,total:Xr,pageSize:Ro=la}=dr;return xr.length<Xr?xr.length>Ro?xr.slice((Mr-1)*Ro,Mr*Ro):xr:xr.slice((Mr-1)*Ro,Mr*Ro)},[!!Je,xr,dr&&dr.current,dr&&dr.pageSize,dr&&dr.total]),[Qo,mi]=Vi({prefixCls:hr,data:xr,pageData:jo,getRowKey:Pr,getRecordByKey:kn,expandType:$n,childrenColumnName:Fn,locale:Sr,getPopupContainer:Nt||er},qe),gi=(Mr,Xr,Ro)=>{let ro;return typeof pt=="function"?ro=Ye()(pt(Mr,Xr,Ro)):ro=Ye()(pt),Ye()({[`${hr}-row-selected`]:mi.has(Pr(Mr,Xr))},ro)};xn.__PARENT_RENDER_ICON__=xn.expandIcon,xn.expandIcon=xn.expandIcon||en||In(Sr),$n==="nest"&&xn.expandIconColumnIndex===void 0?xn.expandIconColumnIndex=qe?1:0:xn.expandIconColumnIndex>0&&qe&&(xn.expandIconColumnIndex-=1),typeof xn.indentSize!="number"&&(xn.indentSize=typeof En=="number"?En:15);const ea=ie.useCallback(Mr=>Yr(Qo(wr(Lo(Mr)))),[Lo,wr,Qo]);let Pi,si;if(Je!==!1&&(dr!=null&&dr.total)){let Mr;dr.size?Mr=dr.size:Mr=Zr==="small"||Zr==="middle"?"small":void 0;const Xr=zo=>ie.createElement(ri.Z,Object.assign({},dr,{className:Ye()(`${hr}-pagination ${hr}-pagination-${zo}`,dr.className),size:Mr})),Ro=On==="rtl"?"left":"right",{position:ro}=dr;if(ro!==null&&Array.isArray(ro)){const zo=ro.find(bi=>bi.includes("top")),Ko=ro.find(bi=>bi.includes("bottom")),Vo=ro.every(bi=>`${bi}`=="none");!zo&&!Ko&&!Vo&&(si=Xr(Ro)),zo&&(Pi=Xr(zo.toLowerCase().replace("top",""))),Ko&&(si=Xr(Ko.toLowerCase().replace("bottom","")))}else si=Xr(Ro)}let Wo;typeof nn=="boolean"?Wo={spinning:nn}:typeof nn=="object"&&(Wo=Object.assign({spinning:!0},nn));const[Ho,vo]=po(hr),[,no]=(0,Un.Z)(),pi=Ye()(`${hr}-wrapper`,rr==null?void 0:rr.className,{[`${hr}-wrapper-rtl`]:On==="rtl"},Xe,Ce,vo),Ni=Object.assign(Object.assign({},rr==null?void 0:rr.style),we),xi=Rt&&Rt.emptyText||(Xn==null?void 0:Xn("Table"))||ie.createElement(qo.Z,{componentName:"Table"}),vi=dn?Fa:ka,Pa={},ns=ie.useMemo(()=>{const{fontSize:Mr,lineHeight:Xr,padding:Ro,paddingXS:ro,paddingSM:zo}=no,Ko=Math.floor(Mr*Xr);switch(Zr){case"large":return Ro*2+Ko;case"small":return ro*2+Ko;default:return zo*2+Ko}},[no,Zr]);return dn&&(Pa.listItemHeight=ns),Ho(ie.createElement("div",{ref:Te,className:pi,style:Ni},ie.createElement(Si.Z,Object.assign({spinning:!1},Wo),Pi,ie.createElement(vi,Object.assign({},Pa,gn,{columns:yn,direction:On,expandable:xn,prefixCls:hr,className:Ye()({[`${hr}-middle`]:Zr==="middle",[`${hr}-small`]:Zr==="small",[`${hr}-bordered`]:rt,[`${hr}-empty`]:Ir.length===0}),data:jo,rowKey:Pr,rowClassName:gi,emptyText:xi,internalHooks:fe,internalRefs:Rn,transformColumns:ea})),si)))};var Cs=ie.forwardRef(Zo);const es=(De,Te)=>{const Ue=ie.useRef(0);return Ue.current+=1,ie.createElement(Cs,Object.assign({},De,{ref:Te,_renderTimes:Ue.current}))},ui=ie.forwardRef(es);ui.SELECTION_COLUMN=fi,ui.EXPAND_COLUMN=te,ui.SELECTION_ALL=Zi,ui.SELECTION_INVERT=ki,ui.SELECTION_NONE=Wi,ui.Column=Io,ui.ColumnGroup=Jo,ui.Summary=Ae;var ji=ui,ts=ji},12563:function(gt,Ve,ee){"use strict";ee.d(Ve,{default:function(){return je}});var te=ee(59301),fe=ee(99267),be=ee(92310),ye=ee.n(be),he=ee(36785),ge=ee(47729),ie=ee(14088),ue=ee(36355),ce=ee(17313),me=ee(37613),se=ee(83116);const pe=xe=>{const{paddingXXS:lt,lineWidth:Ye,tagPaddingHorizontal:ft,componentCls:Me}=xe,He=ft-Ye,Ne=lt-Ye;return{[Me]:Object.assign(Object.assign({},(0,ce.Wf)(xe)),{display:"inline-block",height:"auto",marginInlineEnd:xe.marginXS,paddingInline:He,fontSize:xe.tagFontSize,lineHeight:xe.tagLineHeight,whiteSpace:"nowrap",background:xe.defaultBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadiusSM,opacity:1,transition:`all ${xe.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Me}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:xe.defaultColor},[`${Me}-close-icon`]:{marginInlineStart:Ne,color:xe.colorTextDescription,fontSize:xe.tagIconSize,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,"&:hover":{color:xe.colorTextHeading}},[`&${Me}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${xe.iconCls}-close, ${xe.iconCls}-close:hover`]:{color:xe.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Me}-checkable-checked):hover`]:{color:xe.colorPrimary,backgroundColor:xe.colorFillSecondary},"&:active, &-checked":{color:xe.colorTextLightSolid},"&-checked":{backgroundColor:xe.colorPrimary,"&:hover":{backgroundColor:xe.colorPrimaryHover}},"&:active":{backgroundColor:xe.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${xe.iconCls} + span, > span + ${xe.iconCls}`]:{marginInlineStart:He}}),[`${Me}-borderless`]:{borderColor:"transparent",background:xe.tagBorderlessBg}}},oe=xe=>{const{lineWidth:lt,fontSizeIcon:Ye}=xe,ft=xe.fontSizeSM,Me=`${xe.lineHeightSM*ft}px`;return(0,me.TS)(xe,{tagFontSize:ft,tagLineHeight:Me,tagIconSize:Ye-2*lt,tagPaddingHorizontal:8,tagBorderlessBg:xe.colorFillTertiary})},ne=xe=>({defaultBg:xe.colorFillQuaternary,defaultColor:xe.colorText});var y=(0,se.Z)("Tag",xe=>{const lt=oe(xe);return pe(lt)},ne),a=function(xe,lt){var Ye={};for(var ft in xe)Object.prototype.hasOwnProperty.call(xe,ft)&<.indexOf(ft)<0&&(Ye[ft]=xe[ft]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,ft=Object.getOwnPropertySymbols(xe);Me<ft.length;Me++)lt.indexOf(ft[Me])<0&&Object.prototype.propertyIsEnumerable.call(xe,ft[Me])&&(Ye[ft[Me]]=xe[ft[Me]]);return Ye},b=xe=>{const{prefixCls:lt,style:Ye,className:ft,checked:Me,onChange:He,onClick:Ne}=xe,ot=a(xe,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ze,tag:vt}=te.useContext(ue.E_),Pt=Et=>{He==null||He(!Me),Ne==null||Ne(Et)},Mt=Ze("tag",lt),[At,et]=y(Mt),Qe=ye()(Mt,`${Mt}-checkable`,{[`${Mt}-checkable-checked`]:Me},vt==null?void 0:vt.className,ft,et);return At(te.createElement("span",Object.assign({},ot,{style:Object.assign(Object.assign({},Ye),vt==null?void 0:vt.style),className:Qe,onClick:Pt})))},x=ee(45157);const z=xe=>(0,x.Z)(xe,(lt,Ye)=>{let{textColor:ft,lightBorderColor:Me,lightColor:He,darkColor:Ne}=Ye;return{[`${xe.componentCls}-${lt}`]:{color:ft,background:He,borderColor:Me,"&-inverse":{color:xe.colorTextLightSolid,background:Ne,borderColor:Ne},[`&${xe.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,se.b)(["Tag","preset"],xe=>{const lt=oe(xe);return z(lt)},ne);function le(xe){return typeof xe!="string"?xe:xe.charAt(0).toUpperCase()+xe.slice(1)}const de=(xe,lt,Ye)=>{const ft=le(Ye);return{[`${xe.componentCls}-${lt}`]:{color:xe[`color${Ye}`],background:xe[`color${ft}Bg`],borderColor:xe[`color${ft}Border`],[`&${xe.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ve=(0,se.b)(["Tag","status"],xe=>{const lt=oe(xe);return[de(lt,"success","Success"),de(lt,"processing","Info"),de(lt,"error","Error"),de(lt,"warning","Warning")]},ne),Se=function(xe,lt){var Ye={};for(var ft in xe)Object.prototype.hasOwnProperty.call(xe,ft)&<.indexOf(ft)<0&&(Ye[ft]=xe[ft]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,ft=Object.getOwnPropertySymbols(xe);Me<ft.length;Me++)lt.indexOf(ft[Me])<0&&Object.prototype.propertyIsEnumerable.call(xe,ft[Me])&&(Ye[ft[Me]]=xe[ft[Me]]);return Ye};const Le=(xe,lt)=>{const{prefixCls:Ye,className:ft,rootClassName:Me,style:He,children:Ne,icon:ot,color:Ze,onClose:vt,closeIcon:Pt,closable:Mt,bordered:At=!0}=xe,et=Se(xe,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Qe,direction:Et,tag:Kt}=te.useContext(ue.E_),[bt,Wt]=te.useState(!0);te.useEffect(()=>{"visible"in et&&Wt(et.visible)},[et.visible]);const $e=(0,he.o2)(Ze),St=(0,he.yT)(Ze),xt=$e||St,sn=Object.assign(Object.assign({backgroundColor:Ze&&!xt?Ze:void 0},Kt==null?void 0:Kt.style),He),Vt=Qe("tag",Ye),[st,ct]=y(Vt),Ge=ye()(Vt,Kt==null?void 0:Kt.className,{[`${Vt}-${Ze}`]:xt,[`${Vt}-has-color`]:Ze&&!xt,[`${Vt}-hidden`]:!bt,[`${Vt}-rtl`]:Et==="rtl",[`${Vt}-borderless`]:!At},ft,Me,ct),Be=ke=>{ke.stopPropagation(),vt==null||vt(ke),!ke.defaultPrevented&&Wt(!1)},[,it]=(0,ge.Z)(Mt,Pt,ke=>ke===null?te.createElement(fe.Z,{className:`${Vt}-close-icon`,onClick:Be}):te.createElement("span",{className:`${Vt}-close-icon`,onClick:Be},ke),null,!1),wt=typeof et.onClick=="function"||Ne&&Ne.type==="a",Ae=ot||null,Re=Ae?te.createElement(te.Fragment,null,Ae,Ne&&te.createElement("span",null,Ne)):Ne,Ke=te.createElement("span",Object.assign({},et,{ref:lt,className:Ge,style:sn}),Re,it,$e&&te.createElement(re,{key:"preset",prefixCls:Vt}),St&&te.createElement(ve,{key:"status",prefixCls:Vt}));return st(wt?te.createElement(ie.Z,{component:"Tag"},Ke):Ke)},Ee=te.forwardRef(Le);Ee.CheckableTag=b;var je=Ee},17574:function(gt,Ve,ee){"use strict";ee.d(Ve,{default:function(){return Ze}});var te=ee(60091),fe=ee(94480),be=ee(52671),ye=ee(8657),he=ee(54476),ge=ee(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"},ue=ie,ce=ee(7657),me=function(Pt,Mt){return ge.createElement(ce.Z,(0,he.Z)({},Pt,{ref:Mt,icon:ue}))},se=ge.forwardRef(me),pe=se,oe=ee(92310),ne=ee.n(oe),y=ee(35654),a=ee(71430),E=ee(36355),b=ee(56082),x=ee(62892),z=ee(20648);const re=4;function le(vt){const{dropPosition:Pt,dropLevelOffset:Mt,prefixCls:At,indent:et,direction:Qe="ltr"}=vt,Et=Qe==="ltr"?"left":"right",Kt=Qe==="ltr"?"right":"left",bt={[Et]:-Mt*et+re,[Kt]:0};switch(Pt){case-1:bt.top=-3;break;case 1:bt.bottom=-3;break;default:bt.bottom=-3,bt[Et]=et+re;break}return ge.createElement("div",{style:bt,className:`${At}-drop-indicator`})}var de=ee(71997),Se=ge.forwardRef((vt,Pt)=>{const{getPrefixCls:Mt,direction:At,virtual:et,tree:Qe}=ge.useContext(E.E_),{prefixCls:Et,className:Kt,showIcon:bt=!1,showLine:Wt,switcherIcon:$e,blockNode:St=!1,children:xt,checkable:sn=!1,selectable:Vt=!0,draggable:st,motion:ct,style:Ge}=vt,Be=Mt("tree",Et),it=Mt(),wt=ct!=null?ct:Object.assign(Object.assign({},(0,x.Z)(it)),{motionAppear:!1}),Ae=Object.assign(Object.assign({},vt),{checkable:sn,selectable:Vt,showIcon:bt,motion:wt,blockNode:St,showLine:!!Wt,dropIndicatorRender:le}),[Re,Ke]=(0,z.ZP)(Be),ke=ge.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||ge.createElement(b.Z,null)),at},[st]),ze=at=>ge.createElement(de.Z,{prefixCls:Be,switcherIcon:$e,treeNodeProps:at,showLine:Wt});return Re(ge.createElement(te.Z,Object.assign({itemHeight:20,ref:Pt,virtual:et},Ae,{style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Ge),prefixCls:Be,className:ne()({[`${Be}-icon-hide`]:!bt,[`${Be}-block-node`]:St,[`${Be}-unselectable`]:!Vt,[`${Be}-rtl`]:At==="rtl"},Qe==null?void 0:Qe.className,Kt,Ke),direction:At,checkable:sn&&ge.createElement("span",{className:`${Be}-checkbox-inner`}),selectable:Vt,switcherIcon:ze,draggable:ke}),xt))}),Le;(function(vt){vt[vt.None=0]="None",vt[vt.Start=1]="Start",vt[vt.End=2]="End"})(Le||(Le={}));function Ee(vt,Pt){function Mt(At){const{key:et,children:Qe}=At;Pt(et,At)!==!1&&Ee(Qe||[],Pt)}vt.forEach(Mt)}function je(vt){let{treeData:Pt,expandedKeys:Mt,startKey:At,endKey:et}=vt;const Qe=[];let Et=Le.None;if(At&&At===et)return[At];if(!At||!et)return[];function Kt(bt){return bt===At||bt===et}return Ee(Pt,bt=>{if(Et===Le.End)return!1;if(Kt(bt)){if(Qe.push(bt),Et===Le.None)Et=Le.Start;else if(Et===Le.Start)return Et=Le.End,!1}else Et===Le.Start&&Qe.push(bt);return Mt.includes(bt)}),Qe}function xe(vt,Pt){const Mt=(0,fe.Z)(Pt),At=[];return Ee(vt,(et,Qe)=>{const Et=Mt.indexOf(et);return Et!==-1&&(At.push(Qe),Mt.splice(Et,1)),!!Mt.length}),At}var lt=function(vt,Pt){var Mt={};for(var At in vt)Object.prototype.hasOwnProperty.call(vt,At)&&Pt.indexOf(At)<0&&(Mt[At]=vt[At]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,At=Object.getOwnPropertySymbols(vt);et<At.length;et++)Pt.indexOf(At[et])<0&&Object.prototype.propertyIsEnumerable.call(vt,At[et])&&(Mt[At[et]]=vt[At[et]]);return Mt};function Ye(vt){const{isLeaf:Pt,expanded:Mt}=vt;return Pt?ge.createElement(be.Z,null):Mt?ge.createElement(ye.Z,null):ge.createElement(pe,null)}function ft(vt){let{treeData:Pt,children:Mt}=vt;return Pt||(0,a.zn)(Mt)}const Me=(vt,Pt)=>{var{defaultExpandAll:Mt,defaultExpandParent:At,defaultExpandedKeys:et}=vt,Qe=lt(vt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Et=ge.useRef(),Kt=ge.useRef(),bt=()=>{const{keyEntities:ke}=(0,a.I8)(ft(Qe));let ze;return Mt?ze=Object.keys(ke):At?ze=(0,y.r7)(Qe.expandedKeys||et||[],ke):ze=Qe.expandedKeys||et,ze},[Wt,$e]=ge.useState(Qe.selectedKeys||Qe.defaultSelectedKeys||[]),[St,xt]=ge.useState(()=>bt());ge.useEffect(()=>{"selectedKeys"in Qe&&$e(Qe.selectedKeys)},[Qe.selectedKeys]),ge.useEffect(()=>{"expandedKeys"in Qe&&xt(Qe.expandedKeys)},[Qe.expandedKeys]);const sn=(ke,ze)=>{var at;return"expandedKeys"in Qe||xt(ke),(at=Qe.onExpand)===null||at===void 0?void 0:at.call(Qe,ke,ze)},Vt=(ke,ze)=>{var at;const{multiple:It}=Qe,{node:Dt,nativeEvent:Ft}=ze,{key:Tt=""}=Dt,Gt=ft(Qe),yt=Object.assign(Object.assign({},ze),{selected:!0}),un=(Ft==null?void 0:Ft.ctrlKey)||(Ft==null?void 0:Ft.metaKey),ln=Ft==null?void 0:Ft.shiftKey;let Ct;It&&un?(Ct=ke,Et.current=Tt,Kt.current=Ct,yt.selectedNodes=xe(Gt,Ct)):It&&ln?(Ct=Array.from(new Set([].concat((0,fe.Z)(Kt.current||[]),(0,fe.Z)(je({treeData:Gt,expandedKeys:St,startKey:Tt,endKey:Et.current}))))),yt.selectedNodes=xe(Gt,Ct)):(Ct=[Tt],Et.current=Tt,Kt.current=Ct,yt.selectedNodes=xe(Gt,Ct)),(at=Qe.onSelect)===null||at===void 0||at.call(Qe,Ct,yt),"selectedKeys"in Qe||$e(Ct)},{getPrefixCls:st,direction:ct}=ge.useContext(E.E_),{prefixCls:Ge,className:Be,showIcon:it=!0,expandAction:wt="click"}=Qe,Ae=lt(Qe,["prefixCls","className","showIcon","expandAction"]),Re=st("tree",Ge),Ke=ne()(`${Re}-directory`,{[`${Re}-directory-rtl`]:ct==="rtl"},Be);return ge.createElement(Se,Object.assign({icon:Ye,ref:Pt,blockNode:!0},Ae,{showIcon:it,expandAction:wt,prefixCls:Re,className:Ke,expandedKeys:St,selectedKeys:Wt,onSelect:Vt,onExpand:sn}))};var Ne=ge.forwardRef(Me);const ot=Se;ot.DirectoryTree=Ne,ot.TreeNode=te.O;var Ze=ot},20648:function(gt,Ve,ee){"use strict";ee.d(Ve,{TM:function(){return oe},Yk:function(){return pe}});var te=ee(36237),fe=ee(98447),be=ee(17313),ye=ee(8378),he=ee(37613),ge=ee(83116);const ie=new te.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ue=(ne,y)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${y.motionDurationSlow}`}}}),ce=(ne,y)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:y.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${y.lineWidthBold}px solid ${y.colorPrimary}`,borderRadius:"50%",content:'""'}}}),me=(ne,y)=>{const{treeCls:a,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:z,nodeHoverBg:re}=y,le=y.paddingXS;return{[a]:Object.assign(Object.assign({},(0,be.Wf)(y)),{background:y.colorBgContainer,borderRadius:y.borderRadius,transition:`background-color ${y.motionDurationSlow}`,[`&${a}-rtl`]:{[`${a}-switcher`]:{"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${a}-active-focused)`]:Object.assign({},(0,be.oN)(y)),[`${a}-list-holder-inner`]:{alignItems:"flex-start"},[`&${a}-block-node`]:{[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-node-content-wrapper`]:{flex:"auto"},[`${E}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${y.colorPrimary}`,opacity:0,animationName:ie,animationDuration:y.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${E}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${a}-node-content-wrapper`]:{color:y.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${a}-node-content-wrapper`]:Object.assign({},(0,be.oN)(y)),[`&:not(${E}-disabled).filter-node ${a}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${a}-draggable-icon`]:{flexShrink:0,width:x,lineHeight:`${x}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${y.motionDurationSlow}`,[`${E}:hover &`]:{opacity:.45}},[`&${E}-disabled`]:{[`${a}-draggable-icon`]:{visibility:"hidden"}}}},[`${a}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${a}-draggable-icon`]:{visibility:"hidden"},[`${a}-switcher`]:Object.assign(Object.assign({},ue(ne,y)),{position:"relative",flex:"none",alignSelf:"stretch",width:x,margin:0,lineHeight:`${x}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:y.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:x/2*.8,height:x/2,borderBottom:`1px solid ${y.colorBorder}`,content:'""'}}}),[`${a}-checkbox`]:{top:"initial",marginInlineEnd:le},[`${a}-node-content-wrapper, ${a}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:x,margin:0,padding:`0 ${y.paddingXS/2}px`,color:"inherit",lineHeight:`${x}px`,background:"transparent",borderRadius:y.borderRadius,cursor:"pointer",transition:`all ${y.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:re},[`&${a}-node-selected`]:{backgroundColor:z},[`${a}-iconEle`]:{display:"inline-block",width:x,height:x,lineHeight:`${x}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${a}-unselectable ${a}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${a}-node-content-wrapper`]:Object.assign({lineHeight:`${x}px`,userSelect:"none"},ce(ne,y)),[`${E}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${y.colorPrimary}`}},"&-show-line":{[`${a}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${a}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${E}-leaf-last`]:{[`${a}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${x/2}px !important`}}}}})}},se=ne=>{const{treeCls:y,treeNodeCls:a,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:x}=ne;return{[`${y}${y}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:E,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${y}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${y}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${y}-node-selected`]:{color:x,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${y}-switcher`]:{color:x},[`${y}-node-content-wrapper`]:{color:x,background:"transparent"}}}}}},pe=(ne,y)=>{const a=`.${ne}`,E=`${a}-treenode`,b=y.paddingXS/2,x=(0,he.TS)(y,{treeCls:a,treeNodeCls:E,treeNodePadding:b});return[me(ne,x),se(x)]},oe=ne=>{const{controlHeightSM:y}=ne;return{titleHeight:y,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ve.ZP=(0,ge.Z)("Tree",(ne,y)=>{let{prefixCls:a}=y;return[{[ne.componentCls]:(0,fe.C2)(`${a}-checkbox`,ne)},pe(a,ne),(0,ye.Z)(ne)]},ne=>{const{colorTextLightSolid:y,colorPrimary:a}=ne;return Object.assign(Object.assign({},oe(ne)),{directoryNodeSelectedColor:y,directoryNodeSelectedBg:a})})},71997:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return E}});var te=ee(54476),fe=ee(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,he=ee(7657),ge=function(x,z){return fe.createElement(he.Z,(0,te.Z)({},x,{ref:z,icon:ye}))},ie=fe.forwardRef(ge),ue=ie,ce=ee(52671),me=ee(58617),se=ee(15075),pe=ee(43531),oe=ee(92310),ne=ee.n(oe),y=ee(92343),E=b=>{const{prefixCls:x,switcherIcon:z,treeNodeProps:re,showLine:le}=b,{isLeaf:de,expanded:ve,loading:Se}=re;if(Se)return fe.createElement(me.Z,{className:`${x}-switcher-loading-icon`});let Le;if(le&&typeof le=="object"&&(Le=le.showLeafIcon),de){if(!le)return null;if(typeof Le!="boolean"&&Le){const xe=typeof Le=="function"?Le(re):Le,lt=`${x}-switcher-line-custom-icon`;return(0,y.l$)(xe)?(0,y.Tm)(xe,{className:ne()(xe.props.className||"",lt)}):xe}return Le?fe.createElement(ce.Z,{className:`${x}-switcher-line-icon`}):fe.createElement("span",{className:`${x}-switcher-leaf-line`})}const Ee=`${x}-switcher-icon`,je=typeof z=="function"?z(re):z;return(0,y.l$)(je)?(0,y.Tm)(je,{className:ne()(je.props.className||"",Ee)}):je!==void 0?je:le?ve?fe.createElement(se.Z,{className:`${x}-switcher-line-icon`}):fe.createElement(pe.Z,{className:`${x}-switcher-line-icon`}):fe.createElement(ue,{className:Ee})}},3867:function(gt,Ve,ee){var te=ee(97671);(function(fe,be){gt.exports=be()})(this,function(){"use strict";function fe(Ae){var Re=typeof Ae;return Ae!==null&&(Re==="object"||Re==="function")}function be(Ae){return typeof Ae=="function"}var ye=void 0;Array.isArray?ye=Array.isArray:ye=function(Ae){return Object.prototype.toString.call(Ae)==="[object Array]"};var he=ye,ge=0,ie=void 0,ue=void 0,ce=function(Re,Ke){le[ge]=Re,le[ge+1]=Ke,ge+=2,ge===2&&(ue?ue(de):Se())};function me(Ae){ue=Ae}function se(Ae){ce=Ae}var pe=typeof window!="undefined"?window:void 0,oe=pe||{},ne=oe.MutationObserver||oe.WebKitMutationObserver,y=typeof self=="undefined"&&typeof te!="undefined"&&{}.toString.call(te)==="[object process]",a=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return te.nextTick(de)}}function b(){return typeof ie!="undefined"?function(){ie(de)}:re()}function x(){var Ae=0,Re=new ne(de),Ke=document.createTextNode("");return Re.observe(Ke,{characterData:!0}),function(){Ke.data=Ae=++Ae%2}}function z(){var Ae=new MessageChannel;return Ae.port1.onmessage=de,function(){return Ae.port2.postMessage(0)}}function re(){var Ae=setTimeout;return function(){return Ae(de,1)}}var le=new Array(1e3);function de(){for(var Ae=0;Ae<ge;Ae+=2){var Re=le[Ae],Ke=le[Ae+1];Re(Ke),le[Ae]=void 0,le[Ae+1]=void 0}ge=0}function ve(){try{var Ae=Function("return this")().require("vertx");return ie=Ae.runOnLoop||Ae.runOnContext,b()}catch(Re){return re()}}var Se=void 0;y?Se=E():ne?Se=x():a?Se=z():pe===void 0?Se=ve():Se=re();function Le(Ae,Re){var Ke=this,ke=new this.constructor(xe);ke[je]===void 0&&St(ke);var ze=Ke._state;if(ze){var at=arguments[ze-1];ce(function(){return Kt(ze,ke,at,Ke._result)})}else Qe(Ke,ke,Ae,Re);return ke}function Ee(Ae){var Re=this;if(Ae&&typeof Ae=="object"&&Ae.constructor===Re)return Ae;var Ke=new Re(xe);return Pt(Ke,Ae),Ke}var je=Math.random().toString(36).substring(2);function xe(){}var lt=void 0,Ye=1,ft=2;function Me(){return new TypeError("You cannot resolve a promise with itself")}function He(){return new TypeError("A promises callback cannot return that same promise.")}function Ne(Ae,Re,Ke,ke){try{Ae.call(Re,Ke,ke)}catch(ze){return ze}}function ot(Ae,Re,Ke){ce(function(ke){var ze=!1,at=Ne(Ke,Re,function(It){ze||(ze=!0,Re!==It?Pt(ke,It):At(ke,It))},function(It){ze||(ze=!0,et(ke,It))},"Settle: "+(ke._label||" unknown promise"));!ze&&at&&(ze=!0,et(ke,at))},Ae)}function Ze(Ae,Re){Re._state===Ye?At(Ae,Re._result):Re._state===ft?et(Ae,Re._result):Qe(Re,void 0,function(Ke){return Pt(Ae,Ke)},function(Ke){return et(Ae,Ke)})}function vt(Ae,Re,Ke){Re.constructor===Ae.constructor&&Ke===Le&&Re.constructor.resolve===Ee?Ze(Ae,Re):Ke===void 0?At(Ae,Re):be(Ke)?ot(Ae,Re,Ke):At(Ae,Re)}function Pt(Ae,Re){if(Ae===Re)et(Ae,Me());else if(fe(Re)){var Ke=void 0;try{Ke=Re.then}catch(ke){et(Ae,ke);return}vt(Ae,Re,Ke)}else At(Ae,Re)}function Mt(Ae){Ae._onerror&&Ae._onerror(Ae._result),Et(Ae)}function At(Ae,Re){Ae._state===lt&&(Ae._result=Re,Ae._state=Ye,Ae._subscribers.length!==0&&ce(Et,Ae))}function et(Ae,Re){Ae._state===lt&&(Ae._state=ft,Ae._result=Re,ce(Mt,Ae))}function Qe(Ae,Re,Ke,ke){var ze=Ae._subscribers,at=ze.length;Ae._onerror=null,ze[at]=Re,ze[at+Ye]=Ke,ze[at+ft]=ke,at===0&&Ae._state&&ce(Et,Ae)}function Et(Ae){var Re=Ae._subscribers,Ke=Ae._state;if(Re.length!==0){for(var ke=void 0,ze=void 0,at=Ae._result,It=0;It<Re.length;It+=3)ke=Re[It],ze=Re[It+Ke],ke?Kt(Ke,ke,ze,at):ze(at);Ae._subscribers.length=0}}function Kt(Ae,Re,Ke,ke){var ze=be(Ke),at=void 0,It=void 0,Dt=!0;if(ze){try{at=Ke(ke)}catch(Ft){Dt=!1,It=Ft}if(Re===at){et(Re,He());return}}else at=ke;Re._state!==lt||(ze&&Dt?Pt(Re,at):Dt===!1?et(Re,It):Ae===Ye?At(Re,at):Ae===ft&&et(Re,at))}function bt(Ae,Re){try{Re(function(ke){Pt(Ae,ke)},function(ke){et(Ae,ke)})}catch(Ke){et(Ae,Ke)}}var Wt=0;function $e(){return Wt++}function St(Ae){Ae[je]=Wt++,Ae._state=void 0,Ae._result=void 0,Ae._subscribers=[]}function xt(){return new Error("Array Methods must be provided an Array")}var sn=function(){function Ae(Re,Ke){this._instanceConstructor=Re,this.promise=new Re(xe),this.promise[je]||St(this.promise),he(Ke)?(this.length=Ke.length,this._remaining=Ke.length,this._result=new Array(this.length),this.length===0?At(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ke),this._remaining===0&&At(this.promise,this._result))):et(this.promise,xt())}return Ae.prototype._enumerate=function(Ke){for(var ke=0;this._state===lt&&ke<Ke.length;ke++)this._eachEntry(Ke[ke],ke)},Ae.prototype._eachEntry=function(Ke,ke){var ze=this._instanceConstructor,at=ze.resolve;if(at===Ee){var It=void 0,Dt=void 0,Ft=!1;try{It=Ke.then}catch(Gt){Ft=!0,Dt=Gt}if(It===Le&&Ke._state!==lt)this._settledAt(Ke._state,ke,Ke._result);else if(typeof It!="function")this._remaining--,this._result[ke]=Ke;else if(ze===it){var Tt=new ze(xe);Ft?et(Tt,Dt):vt(Tt,Ke,It),this._willSettleAt(Tt,ke)}else this._willSettleAt(new ze(function(Gt){return Gt(Ke)}),ke)}else this._willSettleAt(at(Ke),ke)},Ae.prototype._settledAt=function(Ke,ke,ze){var at=this.promise;at._state===lt&&(this._remaining--,Ke===ft?et(at,ze):this._result[ke]=ze),this._remaining===0&&At(at,this._result)},Ae.prototype._willSettleAt=function(Ke,ke){var ze=this;Qe(Ke,void 0,function(at){return ze._settledAt(Ye,ke,at)},function(at){return ze._settledAt(ft,ke,at)})},Ae}();function Vt(Ae){return new sn(this,Ae).promise}function st(Ae){var Re=this;return he(Ae)?new Re(function(Ke,ke){for(var ze=Ae.length,at=0;at<ze;at++)Re.resolve(Ae[at]).then(Ke,ke)}):new Re(function(Ke,ke){return ke(new TypeError("You must pass an array to race."))})}function ct(Ae){var Re=this,Ke=new Re(xe);return et(Ke,Ae),Ke}function Ge(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Be(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var it=function(){function Ae(Re){this[je]=$e(),this._result=this._state=void 0,this._subscribers=[],xe!==Re&&(typeof Re!="function"&&Ge(),this instanceof Ae?bt(this,Re):Be())}return Ae.prototype.catch=function(Ke){return this.then(null,Ke)},Ae.prototype.finally=function(Ke){var ke=this,ze=ke.constructor;return be(Ke)?ke.then(function(at){return ze.resolve(Ke()).then(function(){return at})},function(at){return ze.resolve(Ke()).then(function(){throw at})}):ke.then(Ke,Ke)},Ae}();it.prototype.then=Le,it.all=Vt,it.race=st,it.resolve=Ee,it.reject=ct,it._setScheduler=me,it._setAsap=se,it._asap=ce;function wt(){var Ae=void 0;if(typeof ee.g!="undefined")Ae=ee.g;else if(typeof self!="undefined")Ae=self;else try{Ae=Function("return this")()}catch(ke){throw new Error("polyfill failed because global object is unavailable in this environment")}var Re=Ae.Promise;if(Re){var Ke=null;try{Ke=Object.prototype.toString.call(Re.resolve())}catch(ke){}if(Ke==="[object Promise]"&&!Re.cast)return}Ae.Promise=it}return it.polyfill=wt,it.Promise=it,it})},86204:function(gt){"use strict";var Ve=typeof Reflect=="object"?Reflect:null,ee=Ve&&typeof Ve.apply=="function"?Ve.apply:function(z,re,le){return Function.prototype.apply.call(z,re,le)},te;Ve&&typeof Ve.ownKeys=="function"?te=Ve.ownKeys:Object.getOwnPropertySymbols?te=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:te=function(z){return Object.getOwnPropertyNames(z)};function fe(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(z){return z!==z};function ye(){ye.init.call(this)}gt.exports=ye,gt.exports.once=a,ye.EventEmitter=ye,ye.prototype._events=void 0,ye.prototype._eventsCount=0,ye.prototype._maxListeners=void 0;var he=10;function ge(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 he},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+".");he=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=[],le=1;le<arguments.length;le++)re.push(arguments[le]);var de=z==="error",ve=this._events;if(ve!==void 0)de=de&&ve.error===void 0;else if(!de)return!1;if(de){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=ve[z];if(Ee===void 0)return!1;if(typeof Ee=="function")ee(Ee,this,re);else for(var je=Ee.length,xe=oe(Ee,je),le=0;le<je;++le)ee(xe[le],this,re);return!0};function ue(x,z,re,le){var de,ve,Se;if(ge(re),ve=x._events,ve===void 0?(ve=x._events=Object.create(null),x._eventsCount=0):(ve.newListener!==void 0&&(x.emit("newListener",z,re.listener?re.listener:re),ve=x._events),Se=ve[z]),Se===void 0)Se=ve[z]=re,++x._eventsCount;else if(typeof Se=="function"?Se=ve[z]=le?[re,Se]:[Se,re]:le?Se.unshift(re):Se.push(re),de=ie(x),de>0&&Se.length>de&&!Se.warned){Se.warned=!0;var Le=new Error("Possible EventEmitter memory leak detected. "+Se.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");Le.name="MaxListenersExceededWarning",Le.emitter=x,Le.type=z,Le.count=Se.length,fe(Le)}return x}ye.prototype.addListener=function(z,re){return ue(this,z,re,!1)},ye.prototype.on=ye.prototype.addListener,ye.prototype.prependListener=function(z,re){return ue(this,z,re,!0)};function ce(){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 le={fired:!1,wrapFn:void 0,target:x,type:z,listener:re},de=ce.bind(le);return de.listener=re,le.wrapFn=de,de}ye.prototype.once=function(z,re){return ge(re),this.on(z,me(this,z,re)),this},ye.prototype.prependOnceListener=function(z,re){return ge(re),this.prependListener(z,me(this,z,re)),this},ye.prototype.removeListener=function(z,re){var le,de,ve,Se,Le;if(ge(re),de=this._events,de===void 0)return this;if(le=de[z],le===void 0)return this;if(le===re||le.listener===re)--this._eventsCount===0?this._events=Object.create(null):(delete de[z],de.removeListener&&this.emit("removeListener",z,le.listener||re));else if(typeof le!="function"){for(ve=-1,Se=le.length-1;Se>=0;Se--)if(le[Se]===re||le[Se].listener===re){Le=le[Se].listener,ve=Se;break}if(ve<0)return this;ve===0?le.shift():ne(le,ve),le.length===1&&(de[z]=le[0]),de.removeListener!==void 0&&this.emit("removeListener",z,Le||re)}return this},ye.prototype.off=ye.prototype.removeListener,ye.prototype.removeAllListeners=function(z){var re,le,de;if(le=this._events,le===void 0)return this;if(le.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):le[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete le[z]),this;if(arguments.length===0){var ve=Object.keys(le),Se;for(de=0;de<ve.length;++de)Se=ve[de],Se!=="removeListener"&&this.removeAllListeners(Se);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(re=le[z],typeof re=="function")this.removeListener(z,re);else if(re!==void 0)for(de=re.length-1;de>=0;de--)this.removeListener(z,re[de]);return this};function se(x,z,re){var le=x._events;if(le===void 0)return[];var de=le[z];return de===void 0?[]:typeof de=="function"?re?[de.listener||de]:[de]:re?y(de):oe(de,de.length)}ye.prototype.listeners=function(z){return se(this,z,!0)},ye.prototype.rawListeners=function(z){return se(this,z,!1)},ye.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):pe.call(x,z)},ye.prototype.listenerCount=pe;function pe(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?te(this._events):[]};function oe(x,z){for(var re=new Array(z),le=0;le<z;++le)re[le]=x[le];return re}function ne(x,z){for(;z+1<x.length;z++)x[z]=x[z+1];x.pop()}function y(x){for(var z=new Array(x.length),re=0;re<z.length;++re)z[re]=x[re].listener||x[re];return z}function a(x,z){return new Promise(function(re,le){function de(Se){x.removeListener(z,ve),le(Se)}function ve(){typeof x.removeListener=="function"&&x.removeListener("error",de),re([].slice.call(arguments))}b(x,z,ve,{once:!0}),z!=="error"&&E(x,de,{once:!0})})}function E(x,z,re){typeof x.on=="function"&&b(x,"error",z,re)}function b(x,z,re,le){if(typeof x.on=="function")le.once?x.once(z,re):x.on(z,re);else if(typeof x.addEventListener=="function")x.addEventListener(z,function de(ve){le.once&&x.removeEventListener(z,de),re(ve)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},24334:function(gt,Ve,ee){var te,fe;(function(be,ye){gt.exports=ye(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(be){"use strict";be=be||{};var ye=be.Base64,he="2.6.4",ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(Ye){for(var ft={},Me=0,He=Ye.length;Me<He;Me++)ft[Ye.charAt(Me)]=Me;return ft}(ge),ue=String.fromCharCode,ce=function(Ye){if(Ye.length<2){var ft=Ye.charCodeAt(0);return ft<128?Ye:ft<2048?ue(192|ft>>>6)+ue(128|ft&63):ue(224|ft>>>12&15)+ue(128|ft>>>6&63)+ue(128|ft&63)}else{var ft=65536+(Ye.charCodeAt(0)-55296)*1024+(Ye.charCodeAt(1)-56320);return ue(240|ft>>>18&7)+ue(128|ft>>>12&63)+ue(128|ft>>>6&63)+ue(128|ft&63)}},me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Ye){return Ye.replace(me,ce)},pe=function(Ye){var ft=[0,2,1][Ye.length%3],Me=Ye.charCodeAt(0)<<16|(Ye.length>1?Ye.charCodeAt(1):0)<<8|(Ye.length>2?Ye.charCodeAt(2):0),He=[ge.charAt(Me>>>18),ge.charAt(Me>>>12&63),ft>=2?"=":ge.charAt(Me>>>6&63),ft>=1?"=":ge.charAt(Me&63)];return He.join("")},oe=be.btoa&&typeof be.btoa=="function"?function(Ye){return be.btoa(Ye)}:function(Ye){if(Ye.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ye.replace(/[\s\S]{1,3}/g,pe)},ne=function(Ye){return oe(se(String(Ye)))},y=function(Ye){return Ye.replace(/[+\/]/g,function(ft){return ft=="+"?"-":"_"}).replace(/=/g,"")},a=function(Ye,ft){return ft?y(ne(Ye)):ne(Ye)},E=function(Ye){return a(Ye,!0)},b;be.Uint8Array&&(b=function(Ye,ft){for(var Me="",He=0,Ne=Ye.length;He<Ne;He+=3){var ot=Ye[He],Ze=Ye[He+1],vt=Ye[He+2],Pt=ot<<16|Ze<<8|vt;Me+=ge.charAt(Pt>>>18)+ge.charAt(Pt>>>12&63)+(typeof Ze!="undefined"?ge.charAt(Pt>>>6&63):"=")+(typeof vt!="undefined"?ge.charAt(Pt&63):"=")}return ft?y(Me):Me});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,z=function(Ye){switch(Ye.length){case 4:var ft=(7&Ye.charCodeAt(0))<<18|(63&Ye.charCodeAt(1))<<12|(63&Ye.charCodeAt(2))<<6|63&Ye.charCodeAt(3),Me=ft-65536;return ue((Me>>>10)+55296)+ue((Me&1023)+56320);case 3:return ue((15&Ye.charCodeAt(0))<<12|(63&Ye.charCodeAt(1))<<6|63&Ye.charCodeAt(2));default:return ue((31&Ye.charCodeAt(0))<<6|63&Ye.charCodeAt(1))}},re=function(Ye){return Ye.replace(x,z)},le=function(Ye){var ft=Ye.length,Me=ft%4,He=(ft>0?ie[Ye.charAt(0)]<<18:0)|(ft>1?ie[Ye.charAt(1)]<<12:0)|(ft>2?ie[Ye.charAt(2)]<<6:0)|(ft>3?ie[Ye.charAt(3)]:0),Ne=[ue(He>>>16),ue(He>>>8&255),ue(He&255)];return Ne.length-=[0,0,2,1][Me],Ne.join("")},de=be.atob&&typeof be.atob=="function"?function(Ye){return be.atob(Ye)}:function(Ye){return Ye.replace(/\S{1,4}/g,le)},ve=function(Ye){return de(String(Ye).replace(/[^A-Za-z0-9\+\/]/g,""))},Se=function(Ye){return re(de(Ye))},Le=function(Ye){return String(Ye).replace(/[-_]/g,function(ft){return ft=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Ye){return Se(Le(Ye))},je;be.Uint8Array&&(je=function(Ye){return Uint8Array.from(ve(Le(Ye)),function(ft){return ft.charCodeAt(0)})});var xe=function(){var Ye=be.Base64;return be.Base64=ye,Ye};if(be.Base64={VERSION:he,atob:ve,btoa:oe,fromBase64:Ee,toBase64:a,utob:se,encode:a,encodeURI:E,btou:re,decode:Ee,noConflict:xe,fromUint8Array:b,toUint8Array:je},typeof Object.defineProperty=="function"){var lt=function(Ye){return{value:Ye,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",lt(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",lt(function(Ye){return a(this,Ye)})),Object.defineProperty(String.prototype,"toBase64URI",lt(function(){return a(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),gt.exports?gt.exports.Base64=be.Base64:(te=[],fe=function(){return be.Base64}.apply(Ve,te),fe!==void 0&&(gt.exports=fe)),{Base64:be.Base64}})},39417:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return Se}});var te=ee(54476),fe=ee(20068),be=ee(75931),ye=ee(33885),he=ee(67732),ge=ee(83652),ie=ee(31226),ue=ee(42403),ce=ee(158),me=ee(92310),se=ee.n(me),pe=ee(26112),oe=ee(59301),ne=ee(39378),y=function(Ee){for(var je=Ee.prefixCls,xe=Ee.level,lt=Ee.isStart,Ye=Ee.isEnd,ft="".concat(je,"-indent-unit"),Me=[],He=0;He<xe;He+=1){var Ne;Me.push(oe.createElement("span",{key:He,className:se()(ft,(Ne={},(0,fe.Z)(Ne,"".concat(ft,"-start"),lt[He]),(0,fe.Z)(Ne,"".concat(ft,"-end"),Ye[He]),Ne))}))}return oe.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},Me)},a=oe.memo(y),E=ee(67841),b=ee(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",le="---",de=function(Le){(0,ue.Z)(je,Le);var Ee=(0,ce.Z)(je);function je(){var xe;(0,he.Z)(this,je);for(var lt=arguments.length,Ye=new Array(lt),ft=0;ft<lt;ft++)Ye[ft]=arguments[ft];return xe=Ee.call.apply(Ee,[this].concat(Ye)),xe.state={dragNodeHighlight:!1},xe.selectHandle=void 0,xe.cacheIndent=void 0,xe.onSelectorClick=function(Me){var He=xe.props.context.onNodeClick;He(Me,(0,b.F)(xe.props)),xe.isSelectable()?xe.onSelect(Me):xe.onCheck(Me)},xe.onSelectorDoubleClick=function(Me){var He=xe.props.context.onNodeDoubleClick;He(Me,(0,b.F)(xe.props))},xe.onSelect=function(Me){if(!xe.isDisabled()){var He=xe.props.context.onNodeSelect;He(Me,(0,b.F)(xe.props))}},xe.onCheck=function(Me){if(!xe.isDisabled()){var He=xe.props,Ne=He.disableCheckbox,ot=He.checked,Ze=xe.props.context.onNodeCheck;if(!(!xe.isCheckable()||Ne)){var vt=!ot;Ze(Me,(0,b.F)(xe.props),vt)}}},xe.onMouseEnter=function(Me){var He=xe.props.context.onNodeMouseEnter;He(Me,(0,b.F)(xe.props))},xe.onMouseLeave=function(Me){var He=xe.props.context.onNodeMouseLeave;He(Me,(0,b.F)(xe.props))},xe.onContextMenu=function(Me){var He=xe.props.context.onNodeContextMenu;He(Me,(0,b.F)(xe.props))},xe.onDragStart=function(Me){var He=xe.props.context.onNodeDragStart;Me.stopPropagation(),xe.setState({dragNodeHighlight:!0}),He(Me,(0,ie.Z)(xe));try{Me.dataTransfer.setData("text/plain","")}catch(Ne){}},xe.onDragEnter=function(Me){var He=xe.props.context.onNodeDragEnter;Me.preventDefault(),Me.stopPropagation(),He(Me,(0,ie.Z)(xe))},xe.onDragOver=function(Me){var He=xe.props.context.onNodeDragOver;Me.preventDefault(),Me.stopPropagation(),He(Me,(0,ie.Z)(xe))},xe.onDragLeave=function(Me){var He=xe.props.context.onNodeDragLeave;Me.stopPropagation(),He(Me,(0,ie.Z)(xe))},xe.onDragEnd=function(Me){var He=xe.props.context.onNodeDragEnd;Me.stopPropagation(),xe.setState({dragNodeHighlight:!1}),He(Me,(0,ie.Z)(xe))},xe.onDrop=function(Me){var He=xe.props.context.onNodeDrop;Me.preventDefault(),Me.stopPropagation(),xe.setState({dragNodeHighlight:!1}),He(Me,(0,ie.Z)(xe))},xe.onExpand=function(Me){var He=xe.props,Ne=He.loading,ot=He.context.onNodeExpand;Ne||ot(Me,(0,b.F)(xe.props))},xe.setSelectHandle=function(Me){xe.selectHandle=Me},xe.getNodeState=function(){var Me=xe.props.expanded;return xe.isLeaf()?null:Me?z:re},xe.hasChildren=function(){var Me=xe.props.eventKey,He=xe.props.context.keyEntities,Ne=(0,E.Z)(He,Me)||{},ot=Ne.children;return!!(ot||[]).length},xe.isLeaf=function(){var Me=xe.props,He=Me.isLeaf,Ne=Me.loaded,ot=xe.props.context.loadData,Ze=xe.hasChildren();return He===!1?!1:He||!ot&&!Ze||ot&&Ne&&!Ze},xe.isDisabled=function(){var Me=xe.props.disabled,He=xe.props.context.disabled;return!!(He||Me)},xe.isCheckable=function(){var Me=xe.props.checkable,He=xe.props.context.checkable;return!He||Me===!1?!1:He},xe.syncLoadData=function(Me){var He=Me.expanded,Ne=Me.loading,ot=Me.loaded,Ze=xe.props.context,vt=Ze.loadData,Pt=Ze.onNodeLoad;Ne||vt&&He&&!xe.isLeaf()&&!xe.hasChildren()&&!ot&&Pt((0,b.F)(xe.props))},xe.isDraggable=function(){var Me=xe.props,He=Me.data,Ne=Me.context.draggable;return!!(Ne&&(!Ne.nodeDraggable||Ne.nodeDraggable(He)))},xe.renderDragHandler=function(){var Me=xe.props.context,He=Me.draggable,Ne=Me.prefixCls;return He!=null&&He.icon?oe.createElement("span",{className:"".concat(Ne,"-draggable-icon")},He.icon):null},xe.renderSwitcherIconDom=function(Me){var He=xe.props.switcherIcon,Ne=xe.props.context.switcherIcon,ot=He||Ne;return typeof ot=="function"?ot((0,ye.Z)((0,ye.Z)({},xe.props),{},{isLeaf:Me})):ot},xe.renderSwitcher=function(){var Me=xe.props.expanded,He=xe.props.context.prefixCls;if(xe.isLeaf()){var Ne=xe.renderSwitcherIconDom(!0);return Ne!==!1?oe.createElement("span",{className:se()("".concat(He,"-switcher"),"".concat(He,"-switcher-noop"))},Ne):null}var ot=se()("".concat(He,"-switcher"),"".concat(He,"-switcher_").concat(Me?z:re)),Ze=xe.renderSwitcherIconDom(!1);return Ze!==!1?oe.createElement("span",{onClick:xe.onExpand,className:ot},Ze):null},xe.renderCheckbox=function(){var Me=xe.props,He=Me.checked,Ne=Me.halfChecked,ot=Me.disableCheckbox,Ze=xe.props.context.prefixCls,vt=xe.isDisabled(),Pt=xe.isCheckable();if(!Pt)return null;var Mt=typeof Pt!="boolean"?Pt:null;return oe.createElement("span",{className:se()("".concat(Ze,"-checkbox"),He&&"".concat(Ze,"-checkbox-checked"),!He&&Ne&&"".concat(Ze,"-checkbox-indeterminate"),(vt||ot)&&"".concat(Ze,"-checkbox-disabled")),onClick:xe.onCheck},Mt)},xe.renderIcon=function(){var Me=xe.props.loading,He=xe.props.context.prefixCls;return oe.createElement("span",{className:se()("".concat(He,"-iconEle"),"".concat(He,"-icon__").concat(xe.getNodeState()||"docu"),Me&&"".concat(He,"-icon_loading"))})},xe.renderSelector=function(){var Me=xe.state.dragNodeHighlight,He=xe.props,Ne=He.title,ot=Ne===void 0?le:Ne,Ze=He.selected,vt=He.icon,Pt=He.loading,Mt=He.data,At=xe.props.context,et=At.prefixCls,Qe=At.showIcon,Et=At.icon,Kt=At.loadData,bt=At.titleRender,Wt=xe.isDisabled(),$e="".concat(et,"-node-content-wrapper"),St;if(Qe){var xt=vt||Et;St=xt?oe.createElement("span",{className:se()("".concat(et,"-iconEle"),"".concat(et,"-icon__customize"))},typeof xt=="function"?xt(xe.props):xt):xe.renderIcon()}else Kt&&Pt&&(St=xe.renderIcon());var sn;typeof ot=="function"?sn=ot(Mt):bt?sn=bt(Mt):sn=ot;var Vt=oe.createElement("span",{className:"".concat(et,"-title")},sn);return oe.createElement("span",{ref:xe.setSelectHandle,title:typeof ot=="string"?ot:"",className:se()("".concat($e),"".concat($e,"-").concat(xe.getNodeState()||"normal"),!Wt&&(Ze||Me)&&"".concat(et,"-node-selected")),onMouseEnter:xe.onMouseEnter,onMouseLeave:xe.onMouseLeave,onContextMenu:xe.onContextMenu,onClick:xe.onSelectorClick,onDoubleClick:xe.onSelectorDoubleClick},St,Vt,xe.renderDropIndicator())},xe.renderDropIndicator=function(){var Me=xe.props,He=Me.disabled,Ne=Me.eventKey,ot=xe.props.context,Ze=ot.draggable,vt=ot.dropLevelOffset,Pt=ot.dropPosition,Mt=ot.prefixCls,At=ot.indent,et=ot.dropIndicatorRender,Qe=ot.dragOverNodeKey,Et=ot.direction,Kt=!!Ze,bt=!He&&Kt&&Qe===Ne,Wt=At!=null?At:xe.cacheIndent;return xe.cacheIndent=At,bt?et({dropPosition:Pt,dropLevelOffset:vt,indent:Wt,prefixCls:Mt,direction:Et}):null},xe}return(0,ge.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var lt=this.props.selectable,Ye=this.props.context.selectable;return typeof lt=="boolean"?lt:Ye}},{key:"render",value:function(){var lt,Ye=this.props,ft=Ye.eventKey,Me=Ye.className,He=Ye.style,Ne=Ye.dragOver,ot=Ye.dragOverGapTop,Ze=Ye.dragOverGapBottom,vt=Ye.isLeaf,Pt=Ye.isStart,Mt=Ye.isEnd,At=Ye.expanded,et=Ye.selected,Qe=Ye.checked,Et=Ye.halfChecked,Kt=Ye.loading,bt=Ye.domRef,Wt=Ye.active,$e=Ye.data,St=Ye.onMouseMove,xt=Ye.selectable,sn=(0,be.Z)(Ye,x),Vt=this.props.context,st=Vt.prefixCls,ct=Vt.filterTreeNode,Ge=Vt.keyEntities,Be=Vt.dropContainerKey,it=Vt.dropTargetKey,wt=Vt.draggingNodeKey,Ae=this.isDisabled(),Re=(0,pe.Z)(sn,{aria:!0,data:!0}),Ke=(0,E.Z)(Ge,ft)||{},ke=Ke.level,ze=Mt[Mt.length-1],at=this.isDraggable(),It=!Ae&&at,Dt=wt===ft,Ft=xt!==void 0?{"aria-selected":!!xt}:void 0;return oe.createElement("div",(0,te.Z)({ref:bt,className:se()(Me,"".concat(st,"-treenode"),(lt={},(0,fe.Z)(lt,"".concat(st,"-treenode-disabled"),Ae),(0,fe.Z)(lt,"".concat(st,"-treenode-switcher-").concat(At?"open":"close"),!vt),(0,fe.Z)(lt,"".concat(st,"-treenode-checkbox-checked"),Qe),(0,fe.Z)(lt,"".concat(st,"-treenode-checkbox-indeterminate"),Et),(0,fe.Z)(lt,"".concat(st,"-treenode-selected"),et),(0,fe.Z)(lt,"".concat(st,"-treenode-loading"),Kt),(0,fe.Z)(lt,"".concat(st,"-treenode-active"),Wt),(0,fe.Z)(lt,"".concat(st,"-treenode-leaf-last"),ze),(0,fe.Z)(lt,"".concat(st,"-treenode-draggable"),at),(0,fe.Z)(lt,"dragging",Dt),(0,fe.Z)(lt,"drop-target",it===ft),(0,fe.Z)(lt,"drop-container",Be===ft),(0,fe.Z)(lt,"drag-over",!Ae&&Ne),(0,fe.Z)(lt,"drag-over-gap-top",!Ae&&ot),(0,fe.Z)(lt,"drag-over-gap-bottom",!Ae&&Ze),(0,fe.Z)(lt,"filter-node",ct&&ct((0,b.F)(this.props))),lt)),style:He,draggable:It,"aria-grabbed":Dt,onDragStart:It?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:St},Ft,Re),oe.createElement(a,{prefixCls:st,level:ke,isStart:Pt,isEnd:Mt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(oe.Component),ve=function(Ee){return oe.createElement(ne.k.Consumer,null,function(je){return oe.createElement(de,(0,te.Z)({},Ee,{context:je}))})};ve.displayName="TreeNode",ve.isTreeNode=1;var Se=ve},39378:function(gt,Ve,ee){"use strict";ee.d(Ve,{k:function(){return fe}});var te=ee(59301),fe=te.createContext(null)},60091:function(gt,Ve,ee){"use strict";ee.d(Ve,{O:function(){return Se.Z},Z:function(){return Vt}});var te=ee(54476),fe=ee(20068),be=ee(76190),ye=ee(33885),he=ee(94480),ge=ee(67732),ie=ee(83652),ue=ee(31226),ce=ee(42403),me=ee(158),se=ee(92310),pe=ee.n(se),oe=ee(10228),ne=ee(26112),y=ee(48736),a=ee(59301),E=ee(39378);function b(st){var ct=st.dropPosition,Ge=st.dropLevelOffset,Be=st.indent,it={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ct){case-1:it.top=0,it.left=-Ge*Be;break;case 1:it.bottom=0,it.left=-Ge*Be;break;case 0:it.bottom=0,it.left=Be;break}return a.createElement("div",{style:it})}function x(st){if(st==null)throw new TypeError("Cannot destructure "+st)}var z=ee(42978),re=ee(75931),le=ee(34280),de=ee(48911),ve=ee(77900),Se=ee(39417);function Le(st,ct){var Ge=a.useState(!1),Be=(0,z.Z)(Ge,2),it=Be[0],wt=Be[1];a.useLayoutEffect(function(){if(it)return st(),function(){ct()}},[it]),a.useLayoutEffect(function(){return wt(!0),function(){wt(!1)}},[])}var Ee=ee(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],xe=function(ct,Ge){var Be=ct.className,it=ct.style,wt=ct.motion,Ae=ct.motionNodes,Re=ct.motionType,Ke=ct.onMotionStart,ke=ct.onMotionEnd,ze=ct.active,at=ct.treeNodeRequiredProps,It=(0,re.Z)(ct,je),Dt=a.useState(!0),Ft=(0,z.Z)(Dt,2),Tt=Ft[0],Gt=Ft[1],yt=a.useContext(E.k),un=yt.prefixCls,ln=Ae&&Re!=="hide";(0,le.Z)(function(){Ae&&ln!==Tt&&Gt(ln)},[Ae]);var Ct=function(){Ae&&Ke()},pn=a.useRef(!1),Sn=function(){Ae&&!pn.current&&(pn.current=!0,ke())};Le(Ct,Sn);var Gn=function(Wn){ln===Wn&&Sn()};return Ae?a.createElement(ve.default,(0,te.Z)({ref:Ge,visible:Tt},wt,{motionAppear:Re==="show",onVisibleChanged:Gn}),function(Ln,Wn){var Zn=Ln.className,Jn=Ln.style;return a.createElement("div",{ref:Wn,className:pe()("".concat(un,"-treenode-motion"),Zn),style:Jn},Ae.map(function(Yn){var mr=(0,te.Z)({},(x(Yn.data),Yn.data)),ar=Yn.title,wn=Yn.key,Cr=Yn.isStart,jn=Yn.isEnd;delete mr.children;var Tn=(0,Ee.H8)(wn,at);return a.createElement(Se.Z,(0,te.Z)({},mr,Tn,{title:ar,active:ze,data:Yn.data,key:wn,isStart:Cr,isEnd:jn}))}))}):a.createElement(Se.Z,(0,te.Z)({domRef:Ge,className:Be,style:it},It,{active:ze}))};xe.displayName="MotionTreeNode";var lt=a.forwardRef(xe),Ye=lt;function ft(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=st.length,Be=ct.length;if(Math.abs(Ge-Be)!==1)return{add:!1,key:null};function it(wt,Ae){var Re=new Map;wt.forEach(function(ke){Re.set(ke,!0)});var Ke=Ae.filter(function(ke){return!Re.has(ke)});return Ke.length===1?Ke[0]:null}return Ge<Be?{add:!0,key:it(st,ct)}:{add:!1,key:it(ct,st)}}function Me(st,ct,Ge){var Be=st.findIndex(function(Re){return Re.key===Ge}),it=st[Be+1],wt=ct.findIndex(function(Re){return Re.key===Ge});if(it){var Ae=ct.findIndex(function(Re){return Re.key===it.key});return ct.slice(wt+1,Ae)}return ct.slice(wt+1)}var He=["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"],Ne={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ot=function(){},Ze="RC_TREE_MOTION_".concat(Math.random()),vt={key:Ze},Pt={key:Ze,level:0,index:0,pos:"0",node:vt,nodes:[vt]},Mt={parent:null,children:[],pos:Pt.pos,data:vt,title:null,key:Ze,isStart:[],isEnd:[]};function At(st,ct,Ge,Be){return ct===!1||!Ge?st:st.slice(0,Math.ceil(Ge/Be)+1)}function et(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 Et=a.forwardRef(function(st,ct){var Ge=st.prefixCls,Be=st.data,it=st.selectable,wt=st.checkable,Ae=st.expandedKeys,Re=st.selectedKeys,Ke=st.checkedKeys,ke=st.loadedKeys,ze=st.loadingKeys,at=st.halfCheckedKeys,It=st.keyEntities,Dt=st.disabled,Ft=st.dragging,Tt=st.dragOverNodeKey,Gt=st.dropPosition,yt=st.motion,un=st.height,ln=st.itemHeight,Ct=st.virtual,pn=st.focusable,Sn=st.activeItem,Gn=st.focused,Ln=st.tabIndex,Wn=st.onKeyDown,Zn=st.onFocus,Jn=st.onBlur,Yn=st.onActiveChange,mr=st.onListChangeStart,ar=st.onListChangeEnd,wn=(0,re.Z)(st,He),Cr=a.useRef(null),jn=a.useRef(null);a.useImperativeHandle(ct,function(){return{scrollTo:function(kt){Cr.current.scrollTo(kt)},getIndentWidth:function(){return jn.current.offsetWidth}}});var Tn=a.useState(Ae),or=(0,z.Z)(Tn,2),Dr=or[0],Nr=or[1],Rr=a.useState(Be),Fr=(0,z.Z)(Rr,2),qn=Fr[0],sr=Fr[1],Qt=a.useState(Be),ae=(0,z.Z)(Qt,2),_e=ae[0],Pe=ae[1],Ie=a.useState([]),Fe=(0,z.Z)(Ie,2),tt=Fe[0],ht=Fe[1],on=a.useState(null),zt=(0,z.Z)(on,2),_t=zt[0],mt=zt[1],Bt=a.useRef(Be);Bt.current=Be;function ut(){var Ot=Bt.current;sr(Ot),Pe(Ot),ht([]),mt(null),ar()}(0,le.Z)(function(){Nr(Ae);var Ot=ft(Dr,Ae);if(Ot.key!==null)if(Ot.add){var kt=qn.findIndex(function(hn){var Nn=hn.key;return Nn===Ot.key}),Jt=At(Me(qn,Be,Ot.key),Ct,un,ln),cn=qn.slice();cn.splice(kt+1,0,Mt),Pe(cn),ht(Jt),mt("show")}else{var Mn=Be.findIndex(function(hn){var Nn=hn.key;return Nn===Ot.key}),zn=At(Me(Be,qn,Ot.key),Ct,un,ln),Vn=Be.slice();Vn.splice(Mn+1,0,Mt),Pe(Vn),ht(zn),mt("hide")}else qn!==Be&&(sr(Be),Pe(Be))},[Ae,Be]),a.useEffect(function(){Ft||ut()},[Ft]);var Ht=yt?_e:Be,Yt={expandedKeys:Ae,selectedKeys:Re,loadedKeys:ke,loadingKeys:ze,checkedKeys:Ke,halfCheckedKeys:at,dragOverNodeKey:Tt,dropPosition:Gt,keyEntities:It};return a.createElement(a.Fragment,null,Gn&&Sn&&a.createElement("span",{style:Ne,"aria-live":"assertive"},Qe(Sn)),a.createElement("div",null,a.createElement("input",{style:Ne,disabled:pn===!1||Dt,tabIndex:pn!==!1?Ln:null,onKeyDown:Wn,onFocus:Zn,onBlur:Jn,value:"",onChange:ot,"aria-label":"for screen reader"})),a.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},a.createElement("div",{className:"".concat(Ge,"-indent")},a.createElement("div",{ref:jn,className:"".concat(Ge,"-indent-unit")}))),a.createElement(de.Z,(0,te.Z)({},wn,{data:Ht,itemKey:et,height:un,fullHeight:!1,virtual:Ct,itemHeight:ln,prefixCls:"".concat(Ge,"-list"),ref:Cr,onVisibleChange:function(kt,Jt){var cn=new Set(kt),Mn=Jt.filter(function(zn){return!cn.has(zn)});Mn.some(function(zn){return et(zn)===Ze})&&ut()}}),function(Ot){var kt=Ot.pos,Jt=(0,te.Z)({},(x(Ot.data),Ot.data)),cn=Ot.title,Mn=Ot.key,zn=Ot.isStart,Vn=Ot.isEnd,hn=(0,Ee.km)(Mn,kt);delete Jt.key,delete Jt.children;var Nn=(0,Ee.H8)(hn,Yt);return a.createElement(Ye,(0,te.Z)({},Jt,Nn,{title:cn,active:!!Sn&&Mn===Sn.key,pos:kt,data:Ot.data,isStart:zn,isEnd:Vn,motion:yt,motionNodes:Mn===Ze?tt:null,motionType:_t,onMotionStart:mr,onMotionEnd:ut,treeNodeRequiredProps:Yt,onMouseMove:function(){Yn(null)}}))}))});Et.displayName="NodeList";var Kt=Et,bt=ee(35654),Wt=ee(90782),$e=ee(67841),St=10,xt=function(st){(0,ce.Z)(Ge,st);var ct=(0,me.Z)(Ge);function Ge(){var Be;(0,ge.Z)(this,Ge);for(var it=arguments.length,wt=new Array(it),Ae=0;Ae<it;Ae++)wt[Ae]=arguments[Ae];return Be=ct.call.apply(ct,[this].concat(wt)),Be.destroyed=!1,Be.delayedDragEnterLogic=void 0,Be.loadingRetryTimes={},Be.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$)()},Be.dragStartMousePosition=null,Be.dragNode=void 0,Be.currentMouseOverDroppableNodeKey=null,Be.listRef=a.createRef(),Be.onNodeDragStart=function(Re,Ke){var ke=Be.state,ze=ke.expandedKeys,at=ke.keyEntities,It=Be.props.onDragStart,Dt=Ke.props.eventKey;Be.dragNode=Ke,Be.dragStartMousePosition={x:Re.clientX,y:Re.clientY};var Ft=(0,bt._5)(ze,Dt);Be.setState({draggingNodeKey:Dt,dragChildrenKeys:(0,bt.wA)(Dt,at),indent:Be.listRef.current.getIndentWidth()}),Be.setExpandedKeys(Ft),window.addEventListener("dragend",Be.onWindowDragEnd),It==null||It({event:Re,node:(0,Ee.F)(Ke.props)})},Be.onNodeDragEnter=function(Re,Ke){var ke=Be.state,ze=ke.expandedKeys,at=ke.keyEntities,It=ke.dragChildrenKeys,Dt=ke.flattenNodes,Ft=ke.indent,Tt=Be.props,Gt=Tt.onDragEnter,yt=Tt.onExpand,un=Tt.allowDrop,ln=Tt.direction,Ct=Ke.props,pn=Ct.pos,Sn=Ct.eventKey,Gn=(0,ue.Z)(Be),Ln=Gn.dragNode;if(Be.currentMouseOverDroppableNodeKey!==Sn&&(Be.currentMouseOverDroppableNodeKey=Sn),!Ln){Be.resetDragState();return}var Wn=(0,bt.OM)(Re,Ln,Ke,Ft,Be.dragStartMousePosition,un,Dt,at,ze,ln),Zn=Wn.dropPosition,Jn=Wn.dropLevelOffset,Yn=Wn.dropTargetKey,mr=Wn.dropContainerKey,ar=Wn.dropTargetPos,wn=Wn.dropAllowed,Cr=Wn.dragOverNodeKey;if(It.indexOf(Yn)!==-1||!wn){Be.resetDragState();return}if(Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(jn){clearTimeout(Be.delayedDragEnterLogic[jn])}),Ln.props.eventKey!==Ke.props.eventKey&&(Re.persist(),Be.delayedDragEnterLogic[pn]=window.setTimeout(function(){if(Be.state.draggingNodeKey!==null){var jn=(0,he.Z)(ze),Tn=(0,$e.Z)(at,Ke.props.eventKey);Tn&&(Tn.children||[]).length&&(jn=(0,bt.L0)(ze,Ke.props.eventKey)),"expandedKeys"in Be.props||Be.setExpandedKeys(jn),yt==null||yt(jn,{node:(0,Ee.F)(Ke.props),expanded:!0,nativeEvent:Re.nativeEvent})}},800)),Ln.props.eventKey===Yn&&Jn===0){Be.resetDragState();return}Be.setState({dragOverNodeKey:Cr,dropPosition:Zn,dropLevelOffset:Jn,dropTargetKey:Yn,dropContainerKey:mr,dropTargetPos:ar,dropAllowed:wn}),Gt==null||Gt({event:Re,node:(0,Ee.F)(Ke.props),expandedKeys:ze})},Be.onNodeDragOver=function(Re,Ke){var ke=Be.state,ze=ke.dragChildrenKeys,at=ke.flattenNodes,It=ke.keyEntities,Dt=ke.expandedKeys,Ft=ke.indent,Tt=Be.props,Gt=Tt.onDragOver,yt=Tt.allowDrop,un=Tt.direction,ln=(0,ue.Z)(Be),Ct=ln.dragNode;if(Ct){var pn=(0,bt.OM)(Re,Ct,Ke,Ft,Be.dragStartMousePosition,yt,at,It,Dt,un),Sn=pn.dropPosition,Gn=pn.dropLevelOffset,Ln=pn.dropTargetKey,Wn=pn.dropContainerKey,Zn=pn.dropAllowed,Jn=pn.dropTargetPos,Yn=pn.dragOverNodeKey;ze.indexOf(Ln)!==-1||!Zn||(Ct.props.eventKey===Ln&&Gn===0?Be.state.dropPosition===null&&Be.state.dropLevelOffset===null&&Be.state.dropTargetKey===null&&Be.state.dropContainerKey===null&&Be.state.dropTargetPos===null&&Be.state.dropAllowed===!1&&Be.state.dragOverNodeKey===null||Be.resetDragState():Sn===Be.state.dropPosition&&Gn===Be.state.dropLevelOffset&&Ln===Be.state.dropTargetKey&&Wn===Be.state.dropContainerKey&&Jn===Be.state.dropTargetPos&&Zn===Be.state.dropAllowed&&Yn===Be.state.dragOverNodeKey||Be.setState({dropPosition:Sn,dropLevelOffset:Gn,dropTargetKey:Ln,dropContainerKey:Wn,dropTargetPos:Jn,dropAllowed:Zn,dragOverNodeKey:Yn}),Gt==null||Gt({event:Re,node:(0,Ee.F)(Ke.props)}))}},Be.onNodeDragLeave=function(Re,Ke){Be.currentMouseOverDroppableNodeKey===Ke.props.eventKey&&!Re.currentTarget.contains(Re.relatedTarget)&&(Be.resetDragState(),Be.currentMouseOverDroppableNodeKey=null);var ke=Be.props.onDragLeave;ke==null||ke({event:Re,node:(0,Ee.F)(Ke.props)})},Be.onWindowDragEnd=function(Re){Be.onNodeDragEnd(Re,null,!0),window.removeEventListener("dragend",Be.onWindowDragEnd)},Be.onNodeDragEnd=function(Re,Ke){var ke=Be.props.onDragEnd;Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),ke==null||ke({event:Re,node:(0,Ee.F)(Ke.props)}),Be.dragNode=null,window.removeEventListener("dragend",Be.onWindowDragEnd)},Be.onNodeDrop=function(Re,Ke){var ke,ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,at=Be.state,It=at.dragChildrenKeys,Dt=at.dropPosition,Ft=at.dropTargetKey,Tt=at.dropTargetPos,Gt=at.dropAllowed;if(Gt){var yt=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),Ft!==null){var un=(0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(Ft,Be.getTreeNodeRequiredProps())),{},{active:((ke=Be.getActiveItem())===null||ke===void 0?void 0:ke.key)===Ft,data:(0,$e.Z)(Be.state.keyEntities,Ft).node}),ln=It.indexOf(Ft)!==-1;(0,y.ZP)(!ln,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ct=(0,bt.yx)(Tt),pn={event:Re,node:(0,Ee.F)(un),dragNode:Be.dragNode?(0,Ee.F)(Be.dragNode.props):null,dragNodesKeys:[Be.dragNode.props.eventKey].concat(It),dropToGap:Dt!==0,dropPosition:Dt+Number(Ct[Ct.length-1])};ze||yt==null||yt(pn),Be.dragNode=null}}},Be.cleanDragState=function(){var Re=Be.state.draggingNodeKey;Re!==null&&Be.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Be.dragStartMousePosition=null,Be.currentMouseOverDroppableNodeKey=null},Be.triggerExpandActionExpand=function(Re,Ke){var ke=Be.state,ze=ke.expandedKeys,at=ke.flattenNodes,It=Ke.expanded,Dt=Ke.key,Ft=Ke.isLeaf;if(!(Ft||Re.shiftKey||Re.metaKey||Re.ctrlKey)){var Tt=at.filter(function(yt){return yt.key===Dt})[0],Gt=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(Dt,Be.getTreeNodeRequiredProps())),{},{data:Tt.data}));Be.setExpandedKeys(It?(0,bt._5)(ze,Dt):(0,bt.L0)(ze,Dt)),Be.onNodeExpand(Re,Gt)}},Be.onNodeClick=function(Re,Ke){var ke=Be.props,ze=ke.onClick,at=ke.expandAction;at==="click"&&Be.triggerExpandActionExpand(Re,Ke),ze==null||ze(Re,Ke)},Be.onNodeDoubleClick=function(Re,Ke){var ke=Be.props,ze=ke.onDoubleClick,at=ke.expandAction;at==="doubleClick"&&Be.triggerExpandActionExpand(Re,Ke),ze==null||ze(Re,Ke)},Be.onNodeSelect=function(Re,Ke){var ke=Be.state.selectedKeys,ze=Be.state,at=ze.keyEntities,It=ze.fieldNames,Dt=Be.props,Ft=Dt.onSelect,Tt=Dt.multiple,Gt=Ke.selected,yt=Ke[It.key],un=!Gt;un?Tt?ke=(0,bt.L0)(ke,yt):ke=[yt]:ke=(0,bt._5)(ke,yt);var ln=ke.map(function(Ct){var pn=(0,$e.Z)(at,Ct);return pn?pn.node:null}).filter(function(Ct){return Ct});Be.setUncontrolledState({selectedKeys:ke}),Ft==null||Ft(ke,{event:"select",selected:un,node:Ke,selectedNodes:ln,nativeEvent:Re.nativeEvent})},Be.onNodeCheck=function(Re,Ke,ke){var ze=Be.state,at=ze.keyEntities,It=ze.checkedKeys,Dt=ze.halfCheckedKeys,Ft=Be.props,Tt=Ft.checkStrictly,Gt=Ft.onCheck,yt=Ke.key,un,ln={event:"check",node:Ke,checked:ke,nativeEvent:Re.nativeEvent};if(Tt){var Ct=ke?(0,bt.L0)(It,yt):(0,bt._5)(It,yt),pn=(0,bt._5)(Dt,yt);un={checked:Ct,halfChecked:pn},ln.checkedNodes=Ct.map(function(Jn){return(0,$e.Z)(at,Jn)}).filter(function(Jn){return Jn}).map(function(Jn){return Jn.node}),Be.setUncontrolledState({checkedKeys:Ct})}else{var Sn=(0,Wt.S)([].concat((0,he.Z)(It),[yt]),!0,at),Gn=Sn.checkedKeys,Ln=Sn.halfCheckedKeys;if(!ke){var Wn=new Set(Gn);Wn.delete(yt);var Zn=(0,Wt.S)(Array.from(Wn),{checked:!1,halfCheckedKeys:Ln},at);Gn=Zn.checkedKeys,Ln=Zn.halfCheckedKeys}un=Gn,ln.checkedNodes=[],ln.checkedNodesPositions=[],ln.halfCheckedKeys=Ln,Gn.forEach(function(Jn){var Yn=(0,$e.Z)(at,Jn);if(Yn){var mr=Yn.node,ar=Yn.pos;ln.checkedNodes.push(mr),ln.checkedNodesPositions.push({node:mr,pos:ar})}}),Be.setUncontrolledState({checkedKeys:Gn},!1,{halfCheckedKeys:Ln})}Gt==null||Gt(un,ln)},Be.onNodeLoad=function(Re){var Ke=Re.key,ke=new Promise(function(ze,at){Be.setState(function(It){var Dt=It.loadedKeys,Ft=Dt===void 0?[]:Dt,Tt=It.loadingKeys,Gt=Tt===void 0?[]:Tt,yt=Be.props,un=yt.loadData,ln=yt.onLoad;if(!un||Ft.indexOf(Ke)!==-1||Gt.indexOf(Ke)!==-1)return null;var Ct=un(Re);return Ct.then(function(){var pn=Be.state.loadedKeys,Sn=(0,bt.L0)(pn,Ke);ln==null||ln(Sn,{event:"load",node:Re}),Be.setUncontrolledState({loadedKeys:Sn}),Be.setState(function(Gn){return{loadingKeys:(0,bt._5)(Gn.loadingKeys,Ke)}}),ze()}).catch(function(pn){if(Be.setState(function(Gn){return{loadingKeys:(0,bt._5)(Gn.loadingKeys,Ke)}}),Be.loadingRetryTimes[Ke]=(Be.loadingRetryTimes[Ke]||0)+1,Be.loadingRetryTimes[Ke]>=St){var Sn=Be.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,bt.L0)(Sn,Ke)}),ze()}at(pn)}),{loadingKeys:(0,bt.L0)(Gt,Ke)}})});return ke.catch(function(){}),ke},Be.onNodeMouseEnter=function(Re,Ke){var ke=Be.props.onMouseEnter;ke==null||ke({event:Re,node:Ke})},Be.onNodeMouseLeave=function(Re,Ke){var ke=Be.props.onMouseLeave;ke==null||ke({event:Re,node:Ke})},Be.onNodeContextMenu=function(Re,Ke){var ke=Be.props.onRightClick;ke&&(Re.preventDefault(),ke({event:Re,node:Ke}))},Be.onFocus=function(){var Re=Be.props.onFocus;Be.setState({focused:!0});for(var Ke=arguments.length,ke=new Array(Ke),ze=0;ze<Ke;ze++)ke[ze]=arguments[ze];Re==null||Re.apply(void 0,ke)},Be.onBlur=function(){var Re=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null);for(var Ke=arguments.length,ke=new Array(Ke),ze=0;ze<Ke;ze++)ke[ze]=arguments[ze];Re==null||Re.apply(void 0,ke)},Be.getTreeNodeRequiredProps=function(){var Re=Be.state,Ke=Re.expandedKeys,ke=Re.selectedKeys,ze=Re.loadedKeys,at=Re.loadingKeys,It=Re.checkedKeys,Dt=Re.halfCheckedKeys,Ft=Re.dragOverNodeKey,Tt=Re.dropPosition,Gt=Re.keyEntities;return{expandedKeys:Ke||[],selectedKeys:ke||[],loadedKeys:ze||[],loadingKeys:at||[],checkedKeys:It||[],halfCheckedKeys:Dt||[],dragOverNodeKey:Ft,dropPosition:Tt,keyEntities:Gt}},Be.setExpandedKeys=function(Re){var Ke=Be.state,ke=Ke.treeData,ze=Ke.fieldNames,at=(0,Ee.oH)(ke,Re,ze);Be.setUncontrolledState({expandedKeys:Re,flattenNodes:at},!0)},Be.onNodeExpand=function(Re,Ke){var ke=Be.state.expandedKeys,ze=Be.state,at=ze.listChanging,It=ze.fieldNames,Dt=Be.props,Ft=Dt.onExpand,Tt=Dt.loadData,Gt=Ke.expanded,yt=Ke[It.key];if(!at){var un=ke.indexOf(yt),ln=!Gt;if((0,y.ZP)(Gt&&un!==-1||!Gt&&un===-1,"Expand state not sync with index check"),ln?ke=(0,bt.L0)(ke,yt):ke=(0,bt._5)(ke,yt),Be.setExpandedKeys(ke),Ft==null||Ft(ke,{node:Ke,expanded:ln,nativeEvent:Re.nativeEvent}),ln&&Tt){var Ct=Be.onNodeLoad(Ke);Ct&&Ct.then(function(){var pn=(0,Ee.oH)(Be.state.treeData,ke,It);Be.setUncontrolledState({flattenNodes:pn})}).catch(function(){var pn=Be.state.expandedKeys,Sn=(0,bt._5)(pn,yt);Be.setExpandedKeys(Sn)})}}},Be.onListChangeStart=function(){Be.setUncontrolledState({listChanging:!0})},Be.onListChangeEnd=function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})},Be.onActiveChange=function(Re){var Ke=Be.state.activeKey,ke=Be.props.onActiveChange;Ke!==Re&&(Be.setState({activeKey:Re}),Re!==null&&Be.scrollTo({key:Re}),ke==null||ke(Re))},Be.getActiveItem=function(){var Re=Be.state,Ke=Re.activeKey,ke=Re.flattenNodes;return Ke===null?null:ke.find(function(ze){var at=ze.key;return at===Ke})||null},Be.offsetActiveKey=function(Re){var Ke=Be.state,ke=Ke.flattenNodes,ze=Ke.activeKey,at=ke.findIndex(function(Ft){var Tt=Ft.key;return Tt===ze});at===-1&&Re<0&&(at=ke.length),at=(at+Re+ke.length)%ke.length;var It=ke[at];if(It){var Dt=It.key;Be.onActiveChange(Dt)}else Be.onActiveChange(null)},Be.onKeyDown=function(Re){var Ke=Be.state,ke=Ke.activeKey,ze=Ke.expandedKeys,at=Ke.checkedKeys,It=Ke.fieldNames,Dt=Be.props,Ft=Dt.onKeyDown,Tt=Dt.checkable,Gt=Dt.selectable;switch(Re.which){case oe.Z.UP:{Be.offsetActiveKey(-1),Re.preventDefault();break}case oe.Z.DOWN:{Be.offsetActiveKey(1),Re.preventDefault();break}}var yt=Be.getActiveItem();if(yt&&yt.data){var un=Be.getTreeNodeRequiredProps(),ln=yt.data.isLeaf===!1||!!(yt.data[It.children]||[]).length,Ct=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(ke,un)),{},{data:yt.data,active:!0}));switch(Re.which){case oe.Z.LEFT:{ln&&ze.includes(ke)?Be.onNodeExpand({},Ct):yt.parent&&Be.onActiveChange(yt.parent.key),Re.preventDefault();break}case oe.Z.RIGHT:{ln&&!ze.includes(ke)?Be.onNodeExpand({},Ct):yt.children&&yt.children.length&&Be.onActiveChange(yt.children[0].key),Re.preventDefault();break}case oe.Z.ENTER:case oe.Z.SPACE:{Tt&&!Ct.disabled&&Ct.checkable!==!1&&!Ct.disableCheckbox?Be.onNodeCheck({},Ct,!at.includes(ke)):!Tt&&Gt&&!Ct.disabled&&Ct.selectable!==!1&&Be.onNodeSelect({},Ct);break}}}Ft==null||Ft(Re)},Be.setUncontrolledState=function(Re){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Be.destroyed){var ze=!1,at=!0,It={};Object.keys(Re).forEach(function(Dt){if(Dt in Be.props){at=!1;return}ze=!0,It[Dt]=Re[Dt]}),ze&&(!Ke||at)&&Be.setState((0,ye.Z)((0,ye.Z)({},It),ke))}},Be.scrollTo=function(Re){Be.listRef.current.scrollTo(Re)},Be}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 it=this.props.activeKey;it!==void 0&&it!==this.state.activeKey&&(this.setState({activeKey:it}),it!==null&&this.scrollTo({key:it}))}},{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 it,wt=this.state,Ae=wt.focused,Re=wt.flattenNodes,Ke=wt.keyEntities,ke=wt.draggingNodeKey,ze=wt.activeKey,at=wt.dropLevelOffset,It=wt.dropContainerKey,Dt=wt.dropTargetKey,Ft=wt.dropPosition,Tt=wt.dragOverNodeKey,Gt=wt.indent,yt=this.props,un=yt.prefixCls,ln=yt.className,Ct=yt.style,pn=yt.showLine,Sn=yt.focusable,Gn=yt.tabIndex,Ln=Gn===void 0?0:Gn,Wn=yt.selectable,Zn=yt.showIcon,Jn=yt.icon,Yn=yt.switcherIcon,mr=yt.draggable,ar=yt.checkable,wn=yt.checkStrictly,Cr=yt.disabled,jn=yt.motion,Tn=yt.loadData,or=yt.filterTreeNode,Dr=yt.height,Nr=yt.itemHeight,Rr=yt.virtual,Fr=yt.titleRender,qn=yt.dropIndicatorRender,sr=yt.onContextMenu,Qt=yt.onScroll,ae=yt.direction,_e=yt.rootClassName,Pe=yt.rootStyle,Ie=(0,ne.Z)(this.props,{aria:!0,data:!0}),Fe;return mr&&((0,be.Z)(mr)==="object"?Fe=mr:typeof mr=="function"?Fe={nodeDraggable:mr}:Fe={}),a.createElement(E.k.Provider,{value:{prefixCls:un,selectable:Wn,showIcon:Zn,icon:Jn,switcherIcon:Yn,draggable:Fe,draggingNodeKey:ke,checkable:ar,checkStrictly:wn,disabled:Cr,keyEntities:Ke,dropLevelOffset:at,dropContainerKey:It,dropTargetKey:Dt,dropPosition:Ft,dragOverNodeKey:Tt,indent:Gt,direction:ae,dropIndicatorRender:qn,loadData:Tn,filterTreeNode:or,titleRender:Fr,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}},a.createElement("div",{role:"tree",className:pe()(un,ln,_e,(it={},(0,fe.Z)(it,"".concat(un,"-show-line"),pn),(0,fe.Z)(it,"".concat(un,"-focused"),Ae),(0,fe.Z)(it,"".concat(un,"-active-focused"),ze!==null),it)),style:Pe},a.createElement(Kt,(0,te.Z)({ref:this.listRef,prefixCls:un,style:Ct,data:Re,disabled:Cr,selectable:Wn,checkable:!!ar,motion:jn,dragging:ke!==null,height:Dr,itemHeight:Nr,virtual:Rr,focusable:Sn,focused:Ae,tabIndex:Ln,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:sr,onScroll:Qt},this.getTreeNodeRequiredProps(),Ie))))}}],[{key:"getDerivedStateFromProps",value:function(it,wt){var Ae=wt.prevProps,Re={prevProps:it};function Ke(Sn){return!Ae&&Sn in it||Ae&&Ae[Sn]!==it[Sn]}var ke,ze=wt.fieldNames;if(Ke("fieldNames")&&(ze=(0,Ee.w$)(it.fieldNames),Re.fieldNames=ze),Ke("treeData")?ke=it.treeData:Ke("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ke=(0,Ee.zn)(it.children)),ke){Re.treeData=ke;var at=(0,Ee.I8)(ke,{fieldNames:ze});Re.keyEntities=(0,ye.Z)((0,fe.Z)({},Ze,Pt),at.keyEntities)}var It=Re.keyEntities||wt.keyEntities;if(Ke("expandedKeys")||Ae&&Ke("autoExpandParent"))Re.expandedKeys=it.autoExpandParent||!Ae&&it.defaultExpandParent?(0,bt.r7)(it.expandedKeys,It):it.expandedKeys;else if(!Ae&&it.defaultExpandAll){var Dt=(0,ye.Z)({},It);delete Dt[Ze],Re.expandedKeys=Object.keys(Dt).map(function(Sn){return Dt[Sn].key})}else!Ae&&it.defaultExpandedKeys&&(Re.expandedKeys=it.autoExpandParent||it.defaultExpandParent?(0,bt.r7)(it.defaultExpandedKeys,It):it.defaultExpandedKeys);if(Re.expandedKeys||delete Re.expandedKeys,ke||Re.expandedKeys){var Ft=(0,Ee.oH)(ke||wt.treeData,Re.expandedKeys||wt.expandedKeys,ze);Re.flattenNodes=Ft}if(it.selectable&&(Ke("selectedKeys")?Re.selectedKeys=(0,bt.BT)(it.selectedKeys,it):!Ae&&it.defaultSelectedKeys&&(Re.selectedKeys=(0,bt.BT)(it.defaultSelectedKeys,it))),it.checkable){var Tt;if(Ke("checkedKeys")?Tt=(0,bt.E6)(it.checkedKeys)||{}:!Ae&&it.defaultCheckedKeys?Tt=(0,bt.E6)(it.defaultCheckedKeys)||{}:ke&&(Tt=(0,bt.E6)(it.checkedKeys)||{checkedKeys:wt.checkedKeys,halfCheckedKeys:wt.halfCheckedKeys}),Tt){var Gt=Tt,yt=Gt.checkedKeys,un=yt===void 0?[]:yt,ln=Gt.halfCheckedKeys,Ct=ln===void 0?[]:ln;if(!it.checkStrictly){var pn=(0,Wt.S)(un,!0,It);un=pn.checkedKeys,Ct=pn.halfCheckedKeys}Re.checkedKeys=un,Re.halfCheckedKeys=Ct}}return Ke("loadedKeys")&&(Re.loadedKeys=it.loadedKeys),Re}}]),Ge}(a.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 sn=xt,Vt=sn},35654:function(gt,Ve,ee){"use strict";ee.d(Ve,{BT:function(){return a},E6:function(){return x},L0:function(){return me},OM:function(){return y},_5:function(){return ce},r7:function(){return z},wA:function(){return pe},yx:function(){return se}});var te=ee(94480),fe=ee(76190),be=ee(48736),ye=ee(59301),he=ee(39417),ge=ee(67841),ie=ee(71430),ue=null;function ce(re,le){if(!re)return[];var de=re.slice(),ve=de.indexOf(le);return ve>=0&&de.splice(ve,1),de}function me(re,le){var de=(re||[]).slice();return de.indexOf(le)===-1&&de.push(le),de}function se(re){return re.split("-")}function pe(re,le){var de=[],ve=(0,ge.Z)(le,re);function Se(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(Ee){var je=Ee.key,xe=Ee.children;de.push(je),Se(xe)})}return Se(ve.children),de}function oe(re){if(re.parent){var le=se(re.pos);return Number(le[le.length-1])===re.parent.children.length-1}return!1}function ne(re){var le=se(re.pos);return Number(le[le.length-1])===0}function y(re,le,de,ve,Se,Le,Ee,je,xe,lt){var Ye,ft=re.clientX,Me=re.clientY,He=re.target.getBoundingClientRect(),Ne=He.top,ot=He.height,Ze=(lt==="rtl"?-1:1)*(((Se==null?void 0:Se.x)||0)-ft),vt=(Ze-12)/ve,Pt=(0,ge.Z)(je,de.props.eventKey);if(Me<Ne+ot/2){var Mt=Ee.findIndex(function(Vt){return Vt.key===Pt.key}),At=Mt<=0?0:Mt-1,et=Ee[At].key;Pt=(0,ge.Z)(je,et)}var Qe=Pt.key,Et=Pt,Kt=Pt.key,bt=0,Wt=0;if(!xe.includes(Qe))for(var $e=0;$e<vt&&oe(Pt);$e+=1)Pt=Pt.parent,Wt+=1;var St=le.props.data,xt=Pt.node,sn=!0;return ne(Pt)&&Pt.level===0&&Me<Ne+ot/2&&Le({dragNode:St,dropNode:xt,dropPosition:-1})&&Pt.key===de.props.eventKey?bt=-1:(Et.children||[]).length&&xe.includes(Kt)?Le({dragNode:St,dropNode:xt,dropPosition:0})?bt=0:sn=!1:Wt===0?vt>-1.5?Le({dragNode:St,dropNode:xt,dropPosition:1})?bt=1:sn=!1:Le({dragNode:St,dropNode:xt,dropPosition:0})?bt=0:Le({dragNode:St,dropNode:xt,dropPosition:1})?bt=1:sn=!1:Le({dragNode:St,dropNode:xt,dropPosition:1})?bt=1:sn=!1,{dropPosition:bt,dropLevelOffset:Wt,dropTargetKey:Pt.key,dropTargetPos:Pt.pos,dragOverNodeKey:Kt,dropContainerKey:bt===0?null:((Ye=Pt.parent)===null||Ye===void 0?void 0:Ye.key)||null,dropAllowed:sn}}function a(re,le){if(re){var de=le.multiple;return de?re.slice():re.length?[re[0]]:re}}var E=function(le){return le};function b(re,le){if(!re)return[];var de=le||{},ve=de.processProps,Se=ve===void 0?E:ve,Le=Array.isArray(re)?re:[re];return Le.map(function(Ee){var je=Ee.children,xe=_objectWithoutProperties(Ee,ue),lt=b(je,le);return React.createElement(TreeNode,_extends({key:xe.key},Se(xe)),lt)})}function x(re){if(!re)return null;var le;if(Array.isArray(re))le={checkedKeys:re,halfCheckedKeys:void 0};else if((0,fe.Z)(re)==="object")le={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 le}function z(re,le){var de=new Set;function ve(Se){if(!de.has(Se)){var Le=(0,ge.Z)(le,Se);if(Le){de.add(Se);var Ee=Le.parent,je=Le.node;je.disabled||Ee&&ve(Ee.key)}}}return(re||[]).forEach(function(Se){ve(Se)}),(0,te.Z)(de)}},90782:function(gt,Ve,ee){"use strict";ee.d(Ve,{S:function(){return ie}});var te=ee(48736),fe=ee(67841);function be(ue,ce){var me=new Set;return ue.forEach(function(se){ce.has(se)||me.add(se)}),me}function ye(ue){var ce=ue||{},me=ce.disabled,se=ce.disableCheckbox,pe=ce.checkable;return!!(me||se)||pe===!1}function he(ue,ce,me,se){for(var pe=new Set(ue),oe=new Set,ne=0;ne<=me;ne+=1){var y=ce.get(ne)||new Set;y.forEach(function(x){var z=x.key,re=x.node,le=x.children,de=le===void 0?[]:le;pe.has(z)&&!se(re)&&de.filter(function(ve){return!se(ve.node)}).forEach(function(ve){pe.add(ve.key)})})}for(var a=new Set,E=me;E>=0;E-=1){var b=ce.get(E)||new Set;b.forEach(function(x){var z=x.parent,re=x.node;if(!(se(re)||!x.parent||a.has(x.parent.key))){if(se(x.parent.node)){a.add(z.key);return}var le=!0,de=!1;(z.children||[]).filter(function(ve){return!se(ve.node)}).forEach(function(ve){var Se=ve.key,Le=pe.has(Se);le&&!Le&&(le=!1),!de&&(Le||oe.has(Se))&&(de=!0)}),le&&pe.add(z.key),de&&oe.add(z.key),a.add(z.key)}})}return{checkedKeys:Array.from(pe),halfCheckedKeys:Array.from(be(oe,pe))}}function ge(ue,ce,me,se,pe){for(var oe=new Set(ue),ne=new Set(ce),y=0;y<=se;y+=1){var a=me.get(y)||new Set;a.forEach(function(z){var re=z.key,le=z.node,de=z.children,ve=de===void 0?[]:de;!oe.has(re)&&!ne.has(re)&&!pe(le)&&ve.filter(function(Se){return!pe(Se.node)}).forEach(function(Se){oe.delete(Se.key)})})}ne=new Set;for(var E=new Set,b=se;b>=0;b-=1){var x=me.get(b)||new Set;x.forEach(function(z){var re=z.parent,le=z.node;if(!(pe(le)||!z.parent||E.has(z.parent.key))){if(pe(z.parent.node)){E.add(re.key);return}var de=!0,ve=!1;(re.children||[]).filter(function(Se){return!pe(Se.node)}).forEach(function(Se){var Le=Se.key,Ee=oe.has(Le);de&&!Ee&&(de=!1),!ve&&(Ee||ne.has(Le))&&(ve=!0)}),de||oe.delete(re.key),ve&&ne.add(re.key),E.add(re.key)}})}return{checkedKeys:Array.from(oe),halfCheckedKeys:Array.from(be(ne,oe))}}function ie(ue,ce,me,se){var pe=[],oe;se?oe=se:oe=ye;var ne=new Set(ue.filter(function(b){var x=!!(0,fe.Z)(me,b);return x||pe.push(b),x})),y=new Map,a=0;Object.keys(me).forEach(function(b){var x=me[b],z=x.level,re=y.get(z);re||(re=new Set,y.set(z,re)),re.add(x),a=Math.max(a,z)}),(0,te.ZP)(!pe.length,"Tree missing follow keys: ".concat(pe.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return ce===!0?E=he(ne,y,a,oe):E=ge(ne,ce.halfCheckedKeys,y,a,oe),E}},67841:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return te}});function te(fe,be){return fe[be]}},71430:function(gt,Ve,ee){"use strict";ee.d(Ve,{F:function(){return z},H8:function(){return x},I8:function(){return b},km:function(){return pe},oH:function(){return a},w$:function(){return oe},zn:function(){return y}});var te=ee(76190),fe=ee(94480),be=ee(33885),ye=ee(75931),he=ee(11592),ge=ee(2738),ie=ee(48736),ue=ee(67841),ce=["children"];function me(re,le){return"".concat(re,"-").concat(le)}function se(re){return re&&re.type&&re.type.isTreeNode}function pe(re,le){return re!=null?re:le}function oe(re){var le=re||{},de=le.title,ve=le._title,Se=le.key,Le=le.children,Ee=de||"title";return{title:Ee,_title:ve||[Ee],key:Se||"key",children:Le||"children"}}function ne(re,le){var de=new Map;function ve(Se){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Se||[]).forEach(function(Ee){var je=Ee[le.key],xe=Ee[le.children];warning(je!=null,"Tree node must have a certain key: [".concat(Le).concat(je,"]"));var lt=String(je);warning(!de.has(lt)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(lt)),de.set(lt,!0),ve(xe,"".concat(Le).concat(lt," > "))})}ve(re)}function y(re){function le(de){var ve=(0,he.Z)(de);return ve.map(function(Se){if(!se(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,xe=(0,ye.Z)(Ee,ce),lt=(0,be.Z)({key:Le},xe),Ye=le(je);return Ye.length&&(lt.children=Ye),lt}).filter(function(Se){return Se})}return le(re)}function a(re,le,de){var ve=oe(de),Se=ve._title,Le=ve.key,Ee=ve.children,je=new Set(le===!0?[]:le),xe=[];function lt(Ye){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ye.map(function(Me,He){for(var Ne=me(ft?ft.pos:"0",He),ot=pe(Me[Le],Ne),Ze,vt=0;vt<Se.length;vt+=1){var Pt=Se[vt];if(Me[Pt]!==void 0){Ze=Me[Pt];break}}var Mt=(0,be.Z)((0,be.Z)({},(0,ge.Z)(Me,[].concat((0,fe.Z)(Se),[Le,Ee]))),{},{title:Ze,key:ot,parent:ft,pos:Ne,children:null,data:Me,isStart:[].concat((0,fe.Z)(ft?ft.isStart:[]),[He===0]),isEnd:[].concat((0,fe.Z)(ft?ft.isEnd:[]),[He===Ye.length-1])});return xe.push(Mt),le===!0||je.has(ot)?Mt.children=lt(Me[Ee]||[],Mt):Mt.children=[],Mt})}return lt(re),xe}function E(re,le,de){var ve={};(0,te.Z)(de)==="object"?ve=de:ve={externalGetKey:de},ve=ve||{};var Se=ve,Le=Se.childrenPropName,Ee=Se.externalGetKey,je=Se.fieldNames,xe=oe(je),lt=xe.key,Ye=xe.children,ft=Le||Ye,Me;Ee?typeof Ee=="string"?Me=function(ot){return ot[Ee]}:typeof Ee=="function"&&(Me=function(ot){return Ee(ot)}):Me=function(ot,Ze){return pe(ot[lt],Ze)};function He(Ne,ot,Ze,vt){var Pt=Ne?Ne[ft]:re,Mt=Ne?me(Ze.pos,ot):"0",At=Ne?[].concat((0,fe.Z)(vt),[Ne]):[];if(Ne){var et=Me(Ne,Mt),Qe={node:Ne,index:ot,pos:Mt,key:et,parentPos:Ze.node?Ze.pos:null,level:Ze.level+1,nodes:At};le(Qe)}Pt&&Pt.forEach(function(Et,Kt){He(Et,Kt,{node:Ne,pos:Mt,level:Ze?Ze.level+1:-1},At)})}He(null)}function b(re){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},de=le.initWrapper,ve=le.processEntity,Se=le.onProcessFinished,Le=le.externalGetKey,Ee=le.childrenPropName,je=le.fieldNames,xe=arguments.length>2?arguments[2]:void 0,lt=Le||xe,Ye={},ft={},Me={posEntities:Ye,keyEntities:ft};return de&&(Me=de(Me)||Me),E(re,function(He){var Ne=He.node,ot=He.index,Ze=He.pos,vt=He.key,Pt=He.parentPos,Mt=He.level,At=He.nodes,et={node:Ne,nodes:At,index:ot,key:vt,pos:Ze,level:Mt},Qe=pe(vt,Ze);Ye[Ze]=et,ft[Qe]=et,et.parent=Ye[Pt],et.parent&&(et.parent.children=et.parent.children||[],et.parent.children.push(et)),ve&&ve(et,Me)},{externalGetKey:lt,childrenPropName:Ee,fieldNames:je}),Se&&Se(Me),Me}function x(re,le){var de=le.expandedKeys,ve=le.selectedKeys,Se=le.loadedKeys,Le=le.loadingKeys,Ee=le.checkedKeys,je=le.halfCheckedKeys,xe=le.dragOverNodeKey,lt=le.dropPosition,Ye=le.keyEntities,ft=(0,ue.Z)(Ye,re),Me={eventKey:re,expanded:de.indexOf(re)!==-1,selected:ve.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(ft?ft.pos:""),dragOver:xe===re&<===0,dragOverGapTop:xe===re&<===-1,dragOverGapBottom:xe===re&<===1};return Me}function z(re){var le=re.data,de=re.expanded,ve=re.selected,Se=re.checked,Le=re.loaded,Ee=re.loading,je=re.halfChecked,xe=re.dragOver,lt=re.dragOverGapTop,Ye=re.dragOverGapBottom,ft=re.pos,Me=re.active,He=re.eventKey,Ne=(0,be.Z)((0,be.Z)({},le),{},{expanded:de,selected:ve,checked:Se,loaded:Le,loading:Ee,halfChecked:je,dragOver:xe,dragOverGapTop:lt,dragOverGapBottom:Ye,pos:ft,active:Me,key:He});return"props"in Ne||Object.defineProperty(Ne,"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}}),Ne}},8224:function(gt,Ve,ee){"use strict";ee.d(Ve,{Z:function(){return fe}});var te=ee(4676);function fe(be,ye,he,ge){var ie=te.unstable_batchedUpdates?function(ce){te.unstable_batchedUpdates(he,ce)}:he;return be!=null&&be.addEventListener&&be.addEventListener(ye,ie,ge),{remove:function(){be!=null&&be.removeEventListener&&be.removeEventListener(ye,ie,ge)}}}},55468:function(gt,Ve,ee){"use strict";ee.d(Ve,{g1:function(){return se},os:function(){return oe}});var te=/margin|padding|width|height|max|min|offset/,fe={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 he(ne,y,a){if(y=y.toLowerCase(),a==="auto"){if(y==="height")return ne.offsetHeight;if(y==="width")return ne.offsetWidth}return y in fe||(fe[y]=te.test(y)),fe[y]?parseFloat(a)||0:a}function ge(ne,y){var a=arguments.length,E=ye(ne);return y=be[y]?"cssFloat"in ne.style?"cssFloat":"styleFloat":y,a===1?E:he(ne,y,E[y]||ne.style[y])}function ie(ne,y,a){var E=arguments.length;if(y=be[y]?"cssFloat"in ne.style?"cssFloat":"styleFloat":y,E===3)return typeof a=="number"&&te.test(y)&&(a="".concat(a,"px")),ne.style[y]=a,a;for(var b in y)y.hasOwnProperty(b)&&ie(ne,b,y[b]);return ye(ne)}function ue(ne){return ne===document.body?document.documentElement.clientWidth:ne.offsetWidth}function ce(ne){return ne===document.body?window.innerHeight||document.documentElement.clientHeight:ne.offsetHeight}function me(){var ne=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),y=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ne,height:y}}function se(){var ne=document.documentElement.clientWidth,y=window.innerHeight||document.documentElement.clientHeight;return{width:ne,height:y}}function pe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(ne){var y=ne.getBoundingClientRect(),a=document.documentElement;return{left:y.left+(window.pageXOffset||a.scrollLeft)-(a.clientLeft||document.body.clientLeft||0),top:y.top+(window.pageYOffset||a.scrollTop)-(a.clientTop||document.body.clientTop||0)}}},24514:function(gt,Ve,ee){"use strict";ee.d(Ve,{G:function(){return ye}});var te=ee(47273),fe=function(ge){if((0,te.Z)()&&window.document.documentElement){var ie=Array.isArray(ge)?ge:[ge],ue=window.document.documentElement;return ie.some(function(ce){return ce in ue.style})}return!1},be=function(ge,ie){if(!fe(ge))return!1;var ue=document.createElement("div"),ce=ue.style[ge];return ue.style[ge]=ie,ue.style[ge]!==ce};function ye(he,ge){return!Array.isArray(he)&&ge!==void 0?be(he,ge):fe(he)}},7062:function(gt,Ve,ee){var te=ee(19637),fe=ee(97573),be=[ee(96627)];gt.exports=te.createStore(fe,be)},96627:function(gt,Ve,ee){gt.exports=te;function te(){return ee(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(gt){return gt<10?"0"+gt:gt}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(gt){return rx_escapable.lastIndex=0,rx_escapable.test(gt)?'"'+gt.replace(rx_escapable,function(Ve){var ee=meta[Ve];return typeof ee=="string"?ee:"\\u"+("0000"+Ve.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+gt+'"'}function str(gt,Ve){var ee,te,fe,be,ye=gap,he,ge=Ve[gt];switch(ge&&typeof ge=="object"&&typeof ge.toJSON=="function"&&(ge=ge.toJSON(gt)),typeof rep=="function"&&(ge=rep.call(Ve,gt,ge)),typeof ge){case"string":return quote(ge);case"number":return isFinite(ge)?String(ge):"null";case"boolean":case"null":return String(ge);case"object":if(!ge)return"null";if(gap+=indent,he=[],Object.prototype.toString.apply(ge)==="[object Array]"){for(be=ge.length,ee=0;ee<be;ee+=1)he[ee]=str(ee,ge)||"null";return fe=he.length===0?"[]":gap?`[
|
|
|
`+gap+he.join(`,
|
|
|
`+gap)+`
|
|
|
`+ye+"]":"["+he.join(",")+"]",gap=ye,fe}if(rep&&typeof rep=="object")for(be=rep.length,ee=0;ee<be;ee+=1)typeof rep[ee]=="string"&&(te=rep[ee],fe=str(te,ge),fe&&he.push(quote(te)+(gap?": ":":")+fe));else for(te in ge)Object.prototype.hasOwnProperty.call(ge,te)&&(fe=str(te,ge),fe&&he.push(quote(te)+(gap?": ":":")+fe));return fe=he.length===0?"{}":gap?`{
|
|
|
`+gap+he.join(`,
|
|
|
`+gap)+`
|
|
|
`+ye+"}":"{"+he.join(",")+"}",gap=ye,fe}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(gt,Ve,ee){var te;if(gap="",indent="",typeof ee=="number")for(te=0;te<ee;te+=1)indent+=" ";else typeof ee=="string"&&(indent=ee);if(rep=Ve,Ve&&typeof Ve!="function"&&(typeof Ve!="object"||typeof Ve.length!="number"))throw new Error("JSON.stringify");return str("",{"":gt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(gt,Ve){var ee,te,fe=gt[Ve];if(fe&&typeof fe=="object")for(ee in fe)Object.prototype.hasOwnProperty.call(fe,ee)&&(te=walk(fe,ee),te!==void 0?fe[ee]=te:delete fe[ee]);return reviver.call(gt,Ve,fe)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(gt){return"\\u"+("0000"+gt.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(gt,Ve,ee){var te=ee(67039),fe=te.slice,be=te.pluck,ye=te.each,he=te.bind,ge=te.create,ie=te.isList,ue=te.isFunction,ce=te.isObject;gt.exports={createStore:pe};var me={version:"2.0.12",enabled:!1,get:function(oe,ne){var y=this.storage.read(this._namespacePrefix+oe);return this._deserialize(y,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(y,a){oe.call(ne,ne._deserialize(y),(a||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(oe){return this._namespacePrefix=="__storejs_"+oe+"_"},createStore:function(){return pe.apply(this,arguments)},addPlugin:function(oe){this._addPlugin(oe)},namespace:function(oe){return pe(this.storage,this.plugins,oe)}};function se(){var oe=typeof console=="undefined"?null:console;if(oe){var ne=oe.warn?oe.warn:oe.log;ne.apply(oe,arguments)}}function pe(oe,ne,y){y||(y=""),oe&&!ie(oe)&&(oe=[oe]),ne&&!ie(ne)&&(ne=[ne]);var a=y?"__storejs_"+y+"_":"",E=y?new RegExp("^"+a):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(y))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var x={_namespacePrefix:a,_namespaceRegexp:E,_testStorage:function(re){try{var le="__storejs__test__";re.write(le,le);var de=re.read(le)===le;return re.remove(le),de}catch(ve){return!1}},_assignPluginFnProp:function(re,le){var de=this[le];this[le]=function(){var Se=fe(arguments,0),Le=this;function Ee(){if(de)return ye(arguments,function(xe,lt){Se[lt]=xe}),de.apply(Le,Se)}var je=[Ee].concat(Se);return re.apply(Le,je)}},_serialize:function(re){return JSON.stringify(re)},_deserialize:function(re,le){if(!re)return le;var de="";try{de=JSON.parse(re)}catch(ve){de=re}return de!==void 0?de:le},_addStorage:function(re){this.enabled||this._testStorage(re)&&(this.storage=re,this.enabled=!0)},_addPlugin:function(re){var le=this;if(ie(re)){ye(re,function(Se){le._addPlugin(Se)});return}var de=be(this.plugins,function(Se){return re===Se});if(!de){if(this.plugins.push(re),!ue(re))throw new Error("Plugins must be function values that return objects");var ve=re.call(this);if(!ce(ve))throw new Error("Plugins must return an object of function properties");ye(ve,function(Se,Le){if(!ue(Se))throw new Error("Bad plugin property: "+Le+" from plugin "+re.name+". Plugins should only return functions.");le._assignPluginFnProp(Se,Le)})}},addStorage:function(re){se("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(re)}},z=ge(x,me,{plugins:[]});return z.raw={},ye(z,function(re,le){ue(re)&&(z.raw[le]=he(z,re))}),ye(oe,function(re){z._addStorage(re)}),ye(ne,function(re){z._addPlugin(re)}),z}},67039:function(gt,Ve,ee){var te=he(),fe=ge(),be=ie(),ye=typeof window!="undefined"?window:ee.g;gt.exports={assign:te,create:fe,trim:be,bind:ue,slice:ce,each:me,map:se,pluck:pe,isList:oe,isFunction:ne,isObject:y,Global:ye};function he(){return Object.assign?Object.assign:function(E,b,x,z){for(var re=1;re<arguments.length;re++)me(Object(arguments[re]),function(le,de){E[de]=le});return E}}function ge(){if(Object.create)return function(b,x,z,re){var le=ce(arguments,1);return te.apply(this,[Object.create(b)].concat(le))};{let E=function(){};var a=E;return function(x,z,re,le){var de=ce(arguments,1);return E.prototype=x,te.apply(this,[new E].concat(de))}}}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 ue(a,E){return function(){return E.apply(a,Array.prototype.slice.call(arguments,0))}}function ce(a,E){return Array.prototype.slice.call(a,E||0)}function me(a,E){pe(a,function(b,x){return E(b,x),!1})}function se(a,E){var b=oe(a)?[]:{};return pe(a,function(x,z){return b[z]=E(x,z),!1}),b}function pe(a,E){if(oe(a)){for(var b=0;b<a.length;b++)if(E(a[b],b))return a[b]}else for(var x in a)if(a.hasOwnProperty(x)&&E(a[x],x))return a[x]}function oe(a){return a!=null&&typeof a!="function"&&typeof a.length=="number"}function ne(a){return a&&{}.toString.call(a)==="[object Function]"}function y(a){return a&&{}.toString.call(a)==="[object Object]"}},97573:function(gt,Ve,ee){gt.exports=[ee(52496),ee(16436),ee(76673),ee(35701),ee(65578),ee(65300)]},35701:function(gt,Ve,ee){var te=ee(67039),fe=te.Global,be=te.trim;gt.exports={name:"cookieStorage",read:he,write:ie,each:ge,remove:ue,clearAll:ce};var ye=fe.document;function he(se){if(!se||!me(se))return null;var pe="(?:^|.*;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ye.cookie.replace(new RegExp(pe),"$1"))}function ge(se){for(var pe=ye.cookie.split(/; ?/g),oe=pe.length-1;oe>=0;oe--)if(be(pe[oe])){var ne=pe[oe].split("="),y=unescape(ne[0]),a=unescape(ne[1]);se(a,y)}}function ie(se,pe){se&&(ye.cookie=escape(se)+"="+escape(pe)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ue(se){!se||!me(se)||(ye.cookie=escape(se)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ce(){ge(function(se,pe){ue(pe)})}function me(se){return new RegExp("(?:^|;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ye.cookie)}},52496:function(gt,Ve,ee){var te=ee(67039),fe=te.Global;gt.exports={name:"localStorage",read:ye,write:he,each:ge,remove:ie,clearAll:ue};function be(){return fe.localStorage}function ye(ce){return be().getItem(ce)}function he(ce,me){return be().setItem(ce,me)}function ge(ce){for(var me=be().length-1;me>=0;me--){var se=be().key(me);ce(ye(se),se)}}function ie(ce){return be().removeItem(ce)}function ue(){return be().clear()}},65300:function(gt){gt.exports={name:"memoryStorage",read:ee,write:te,each:fe,remove:be,clearAll:ye};var Ve={};function ee(he){return Ve[he]}function te(he,ge){Ve[he]=ge}function fe(he){for(var ge in Ve)Ve.hasOwnProperty(ge)&&he(Ve[ge],ge)}function be(he){delete Ve[he]}function ye(he){Ve={}}},16436:function(gt,Ve,ee){var te=ee(67039),fe=te.Global;gt.exports={name:"oldFF-globalStorage",read:ye,write:he,each:ge,remove:ie,clearAll:ue};var be=fe.globalStorage;function ye(ce){return be[ce]}function he(ce,me){be[ce]=me}function ge(ce){for(var me=be.length-1;me>=0;me--){var se=be.key(me);ce(be[se],se)}}function ie(ce){return be.removeItem(ce)}function ue(){ge(function(ce,me){delete be[ce]})}},76673:function(gt,Ve,ee){var te=ee(67039),fe=te.Global;gt.exports={name:"oldIE-userDataStorage",write:ie,read:ue,each:ce,remove:me,clearAll:se};var be="storejs",ye=fe.document,he=ne(),ge=(fe.navigator?fe.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ie(y,a){if(!ge){var E=oe(y);he(function(b){b.setAttribute(E,a),b.save(be)})}}function ue(y){if(!ge){var a=oe(y),E=null;return he(function(b){E=b.getAttribute(a)}),E}}function ce(y){he(function(a){for(var E=a.XMLDocument.documentElement.attributes,b=E.length-1;b>=0;b--){var x=E[b];y(a.getAttribute(x.name),x.name)}})}function me(y){var a=oe(y);he(function(E){E.removeAttribute(a),E.save(be)})}function se(){he(function(y){var a=y.XMLDocument.documentElement.attributes;y.load(be);for(var E=a.length-1;E>=0;E--)y.removeAttribute(a[E].name);y.save(be)})}var pe=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function oe(y){return y.replace(/^\d/,"___$&").replace(pe,"___")}function ne(){if(!ye||!ye.documentElement||!ye.documentElement.addBehavior)return null;var y="script",a,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+y+">document.w=window</"+y+'><iframe src="/favicon.ico"></iframe>'),E.close(),a=E.w.frames[0].document,b=a.createElement("div")}catch(x){b=ye.createElement("div"),a=ye.body}return function(x){var z=[].slice.call(arguments,0);z.unshift(b),a.appendChild(b),b.addBehavior("#default#userData"),b.load(be),x.apply(this,z),a.removeChild(b)}}},65578:function(gt,Ve,ee){var te=ee(67039),fe=te.Global;gt.exports={name:"sessionStorage",read:ye,write:he,each:ge,remove:ie,clearAll:ue};function be(){return fe.sessionStorage}function ye(ce){return be().getItem(ce)}function he(ce,me){return be().setItem(ce,me)}function ge(ce){for(var me=be().length-1;me>=0;me--){var se=be().key(me);ce(ye(se),se)}}function ie(ce){return be().removeItem(ce)}function ue(){return be().clear()}},82059:function(gt){var Ve=arguments[3],ee=arguments[4],te=arguments[5],fe=JSON.stringify;gt.exports=function(be,ye){for(var he,ge=Object.keys(te),ie=0,ue=ge.length;ie<ue;ie++){var ce=ge[ie],me=te[ce].exports;if(me===be||me&&me.default===be){he=ce;break}}if(!he){he=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var se={},ie=0,ue=ge.length;ie<ue;ie++){var ce=ge[ie];se[ce]=ce}ee[he]=["function(require,module,exports){"+be+"(self); }",se]}var pe=Math.floor(Math.pow(16,8)*Math.random()).toString(16),oe={};oe[he]=he,ee[pe]=["function(require,module,exports){var f = require("+fe(he)+");(f.default ? f.default : f)(self);}",oe];var ne={};y(pe);function y(re){ne[re]=!0;for(var le in ee[re][1]){var de=ee[re][1][le];ne[de]||y(de)}}var a="("+Ve+")({"+Object.keys(ne).map(function(re){return fe(re)+":["+ee[re][0]+","+fe(ee[re][1])+"]"}).join(",")+"},{},["+fe(pe)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([a],{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(gt){(function(Ve,ee){if(1)gt.exports=ee();else var te,fe})(window,function(){return function(Ve){var ee={};function te(fe){if(ee[fe])return ee[fe].exports;var be=ee[fe]={i:fe,l:!1,exports:{}};return Ve[fe].call(be.exports,be,be.exports,te),be.l=!0,be.exports}return te.m=Ve,te.c=ee,te.d=function(fe,be,ye){te.o(fe,be)||Object.defineProperty(fe,be,{enumerable:!0,get:ye})},te.r=function(fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(fe,"__esModule",{value:!0})},te.t=function(fe,be){if(1&be&&(fe=te(fe)),8&be||4&be&&typeof fe=="object"&&fe&&fe.__esModule)return fe;var ye=Object.create(null);if(te.r(ye),Object.defineProperty(ye,"default",{enumerable:!0,value:fe}),2&be&&typeof fe!="string")for(var he in fe)te.d(ye,he,function(ge){return fe[ge]}.bind(null,he));return ye},te.n=function(fe){var be=fe&&fe.__esModule?function(){return fe.default}:function(){return fe};return te.d(be,"a",be),be},te.o=function(fe,be){return Object.prototype.hasOwnProperty.call(fe,be)},te.p="",te(te.s=34)}([function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.forwardEvent=ee.EventEmitter=void 0;var fe=function(){function be(){this._listeners=[],this._disposed=!1}return Object.defineProperty(be.prototype,"event",{get:function(){var ye=this;return this._event||(this._event=function(he){return ye._listeners.push(he),{dispose:function(){if(!ye._disposed){for(var ge=0;ge<ye._listeners.length;ge++)if(ye._listeners[ge]===he)return void ye._listeners.splice(ge,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(ye,he){for(var ge=[],ie=0;ie<this._listeners.length;ie++)ge.push(this._listeners[ie]);for(ie=0;ie<ge.length;ie++)ge[ie].call(void 0,ye,he)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();ee.EventEmitter=fe,ee.forwardEvent=function(be,ye){return be(function(he){return ye.fire(he)})}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.IUnicodeService=ee.IOptionsService=ee.ILogService=ee.IInstantiationService=ee.IDirtyRowService=ee.ICharsetService=ee.ICoreService=ee.ICoreMouseService=ee.IBufferService=void 0;var fe=te(14);ee.IBufferService=fe.createDecorator("BufferService"),ee.ICoreMouseService=fe.createDecorator("CoreMouseService"),ee.ICoreService=fe.createDecorator("CoreService"),ee.ICharsetService=fe.createDecorator("CharsetService"),ee.IDirtyRowService=fe.createDecorator("DirtyRowService"),ee.IInstantiationService=fe.createDecorator("InstantiationService"),ee.ILogService=fe.createDecorator("LogService"),ee.IOptionsService=fe.createDecorator("OptionsService"),ee.IUnicodeService=fe.createDecorator("UnicodeService")},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.getDisposeArrayDisposable=ee.disposeArray=ee.Disposable=void 0;var fe=function(){function ye(){this._disposables=[],this._isDisposed=!1}return ye.prototype.dispose=function(){this._isDisposed=!0;for(var he=0,ge=this._disposables;he<ge.length;he++)ge[he].dispose();this._disposables.length=0},ye.prototype.register=function(he){return this._disposables.push(he),he},ye.prototype.unregister=function(he){var ge=this._disposables.indexOf(he);ge!==-1&&this._disposables.splice(ge,1)},ye}();function be(ye){for(var he=0,ge=ye;he<ge.length;he++)ge[he].dispose();ye.length=0}ee.Disposable=fe,ee.disposeArray=be,ee.getDisposeArrayDisposable=function(ye){return{dispose:function(){return be(ye)}}}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WHITESPACE_CELL_CODE=ee.WHITESPACE_CELL_WIDTH=ee.WHITESPACE_CELL_CHAR=ee.NULL_CELL_CODE=ee.NULL_CELL_WIDTH=ee.NULL_CELL_CHAR=ee.CHAR_DATA_CODE_INDEX=ee.CHAR_DATA_WIDTH_INDEX=ee.CHAR_DATA_CHAR_INDEX=ee.CHAR_DATA_ATTR_INDEX=ee.DEFAULT_ATTR=ee.DEFAULT_COLOR=void 0,ee.DEFAULT_COLOR=256,ee.DEFAULT_ATTR=256|ee.DEFAULT_COLOR<<9,ee.CHAR_DATA_ATTR_INDEX=0,ee.CHAR_DATA_CHAR_INDEX=1,ee.CHAR_DATA_WIDTH_INDEX=2,ee.CHAR_DATA_CODE_INDEX=3,ee.NULL_CELL_CHAR="",ee.NULL_CELL_WIDTH=1,ee.NULL_CELL_CODE=0,ee.WHITESPACE_CELL_CHAR=" ",ee.WHITESPACE_CELL_WIDTH=1,ee.WHITESPACE_CELL_CODE=32},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ue,ce){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,se){me.__proto__=se}||function(me,se){for(var pe in se)se.hasOwnProperty(pe)&&(me[pe]=se[pe])})(ue,ce)},function(ue,ce){function me(){this.constructor=ue}fe(ue,ce),ue.prototype=ce===null?Object.create(ce):(me.prototype=ce.prototype,new me)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CellData=void 0;var ye=te(8),he=te(3),ge=te(6),ie=function(ue){function ce(){var me=ue!==null&&ue.apply(this,arguments)||this;return me.content=0,me.fg=0,me.bg=0,me.extended=new ge.ExtendedAttrs,me.combinedData="",me}return be(ce,ue),ce.fromCharData=function(me){var se=new ce;return se.setFromCharData(me),se},ce.prototype.isCombined=function(){return 2097152&this.content},ce.prototype.getWidth=function(){return this.content>>22},ce.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?ye.stringFromCodePoint(2097151&this.content):""},ce.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},ce.prototype.setFromCharData=function(me){this.fg=me[he.CHAR_DATA_ATTR_INDEX],this.bg=0;var se=!1;if(me[he.CHAR_DATA_CHAR_INDEX].length>2)se=!0;else if(me[he.CHAR_DATA_CHAR_INDEX].length===2){var pe=me[he.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=pe&&pe<=56319){var oe=me[he.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=oe&&oe<=57343?this.content=1024*(pe-55296)+oe-56320+65536|me[he.CHAR_DATA_WIDTH_INDEX]<<22:se=!0}else se=!0}else this.content=me[he.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|me[he.CHAR_DATA_WIDTH_INDEX]<<22;se&&(this.combinedData=me[he.CHAR_DATA_CHAR_INDEX],this.content=2097152|me[he.CHAR_DATA_WIDTH_INDEX]<<22)},ce.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ce}(ge.AttributeData);ee.CellData=ie},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ISoundService=ee.ISelectionService=ee.IRenderService=ee.IMouseService=ee.ICoreBrowserService=ee.ICharSizeService=void 0;var fe=te(14);ee.ICharSizeService=fe.createDecorator("CharSizeService"),ee.ICoreBrowserService=fe.createDecorator("CoreBrowserService"),ee.IMouseService=fe.createDecorator("MouseService"),ee.IRenderService=fe.createDecorator("RenderService"),ee.ISelectionService=fe.createDecorator("SelectionService"),ee.ISoundService=fe.createDecorator("SoundService")},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ExtendedAttrs=ee.AttributeData=void 0;var fe=function(){function ye(){this.fg=0,this.bg=0,this.extended=new be}return ye.toColorRGB=function(he){return[he>>>16&255,he>>>8&255,255&he]},ye.fromColorRGB=function(he){return(255&he[0])<<16|(255&he[1])<<8|255&he[2]},ye.prototype.clone=function(){var he=new ye;return he.fg=this.fg,he.bg=this.bg,he.extended=this.extended.clone(),he},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}();ee.AttributeData=fe;var be=function(){function ye(he,ge){he===void 0&&(he=0),ge===void 0&&(ge=-1),this.underlineStyle=he,this.underlineColor=ge}return ye.prototype.clone=function(){return new ye(this.underlineStyle,this.underlineColor)},ye.prototype.isEmpty=function(){return this.underlineStyle===0},ye}();ee.ExtendedAttrs=be},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.addDisposableDomListener=void 0,ee.addDisposableDomListener=function(fe,be,ye,he){fe.addEventListener(be,ye,he);var ge=!1;return{dispose:function(){ge||(ge=!0,fe.removeEventListener(be,ye,he))}}}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Utf8ToUtf32=ee.StringToUtf32=ee.utf32ToString=ee.stringFromCodePoint=void 0,ee.stringFromCodePoint=function(ye){return ye>65535?(ye-=65536,String.fromCharCode(55296+(ye>>10))+String.fromCharCode(ye%1024+56320)):String.fromCharCode(ye)},ee.utf32ToString=function(ye,he,ge){he===void 0&&(he=0),ge===void 0&&(ge=ye.length);for(var ie="",ue=he;ue<ge;++ue){var ce=ye[ue];ce>65535?(ce-=65536,ie+=String.fromCharCode(55296+(ce>>10))+String.fromCharCode(ce%1024+56320)):ie+=String.fromCharCode(ce)}return ie};var fe=function(){function ye(){this._interim=0}return ye.prototype.clear=function(){this._interim=0},ye.prototype.decode=function(he,ge){var ie=he.length;if(!ie)return 0;var ue=0,ce=0;this._interim&&(56320<=(pe=he.charCodeAt(ce++))&&pe<=57343?ge[ue++]=1024*(this._interim-55296)+pe-56320+65536:(ge[ue++]=this._interim,ge[ue++]=pe),this._interim=0);for(var me=ce;me<ie;++me){var se=he.charCodeAt(me);if(55296<=se&&se<=56319){if(++me>=ie)return this._interim=se,ue;var pe;56320<=(pe=he.charCodeAt(me))&&pe<=57343?ge[ue++]=1024*(se-55296)+pe-56320+65536:(ge[ue++]=se,ge[ue++]=pe)}else ge[ue++]=se}return ue},ye}();ee.StringToUtf32=fe;var be=function(){function ye(){this.interim=new Uint8Array(3)}return ye.prototype.clear=function(){this.interim.fill(0)},ye.prototype.decode=function(he,ge){var ie=he.length;if(!ie)return 0;var ue,ce,me,se,pe=0,oe=0,ne=0;if(this.interim[0]){var y=!1,a=this.interim[0];a&=(224&a)==192?31:(240&a)==224?15:7;for(var E=0,b=void 0;(b=63&this.interim[++E])&&E<4;)a<<=6,a|=b;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,z=x-E;ne<z;){if(ne>=ie)return 0;if((192&(b=he[ne++]))!=128){ne--,y=!0;break}this.interim[E++]=b,a<<=6,a|=63&b}y||(x===2?a<128?ne--:ge[pe++]=a:x===3?a<2048||a>=55296&&a<=57343||(ge[pe++]=a):a<65536||a>1114111||(ge[pe++]=a)),this.interim.fill(0)}for(var re=ie-4,le=ne;le<ie;){for(;!(!(le<re)||128&(ue=he[le])||128&(ce=he[le+1])||128&(me=he[le+2])||128&(se=he[le+3]));)ge[pe++]=ue,ge[pe++]=ce,ge[pe++]=me,ge[pe++]=se,le+=4;if((ue=he[le++])<128)ge[pe++]=ue;else if((224&ue)==192){if(le>=ie)return this.interim[0]=ue,pe;if((192&(ce=he[le++]))!=128){le--;continue}if((oe=(31&ue)<<6|63&ce)<128){le--;continue}ge[pe++]=oe}else if((240&ue)==224){if(le>=ie)return this.interim[0]=ue,pe;if((192&(ce=he[le++]))!=128){le--;continue}if(le>=ie)return this.interim[0]=ue,this.interim[1]=ce,pe;if((192&(me=he[le++]))!=128){le--;continue}if((oe=(15&ue)<<12|(63&ce)<<6|63&me)<2048||oe>=55296&&oe<=57343)continue;ge[pe++]=oe}else if((248&ue)==240){if(le>=ie)return this.interim[0]=ue,pe;if((192&(ce=he[le++]))!=128){le--;continue}if(le>=ie)return this.interim[0]=ue,this.interim[1]=ce,pe;if((192&(me=he[le++]))!=128){le--;continue}if(le>=ie)return this.interim[0]=ue,this.interim[1]=ce,this.interim[2]=me,pe;if((192&(se=he[le++]))!=128){le--;continue}if((oe=(7&ue)<<18|(63&ce)<<12|(63&me)<<6|63&se)<65536||oe>1114111)continue;ge[pe++]=oe}}return pe},ye}();ee.Utf8ToUtf32=be},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CHAR_ATLAS_CELL_SPACING=ee.DIM_OPACITY=ee.INVERTED_DEFAULT_COLOR=void 0,ee.INVERTED_DEFAULT_COLOR=257,ee.DIM_OPACITY=.5,ee.CHAR_ATLAS_CELL_SPACING=1},function(Ve,ee,te){"use strict";var fe,be,ye,he;function ge(ue){var ce=ue.toString(16);return ce.length<2?"0"+ce:ce}function ie(ue,ce){return ue<ce?(ce+.05)/(ue+.05):(ue+.05)/(ce+.05)}Object.defineProperty(ee,"__esModule",{value:!0}),ee.contrastRatio=ee.toPaddedHex=ee.rgba=ee.rgb=ee.css=ee.color=ee.channels=void 0,function(ue){ue.toCss=function(ce,me,se,pe){return pe!==void 0?"#"+ge(ce)+ge(me)+ge(se)+ge(pe):"#"+ge(ce)+ge(me)+ge(se)},ue.toRgba=function(ce,me,se,pe){return pe===void 0&&(pe=255),(ce<<24|me<<16|se<<8|pe)>>>0}}(fe=ee.channels||(ee.channels={})),(be=ee.color||(ee.color={})).blend=function(ue,ce){var me=(255&ce.rgba)/255;if(me===1)return{css:ce.css,rgba:ce.rgba};var se=ce.rgba>>24&255,pe=ce.rgba>>16&255,oe=ce.rgba>>8&255,ne=ue.rgba>>24&255,y=ue.rgba>>16&255,a=ue.rgba>>8&255,E=ne+Math.round((se-ne)*me),b=y+Math.round((pe-y)*me),x=a+Math.round((oe-a)*me);return{css:fe.toCss(E,b,x),rgba:fe.toRgba(E,b,x)}},be.isOpaque=function(ue){return(255&ue.rgba)==255},be.ensureContrastRatio=function(ue,ce,me){var se=he.ensureContrastRatio(ue.rgba,ce.rgba,me);if(se)return he.toColor(se>>24&255,se>>16&255,se>>8&255)},be.opaque=function(ue){var ce=(255|ue.rgba)>>>0,me=he.toChannels(ce),se=me[0],pe=me[1],oe=me[2];return{css:fe.toCss(se,pe,oe),rgba:ce}},be.opacity=function(ue,ce){var me=Math.round(255*ce),se=he.toChannels(ue.rgba),pe=se[0],oe=se[1],ne=se[2];return{css:fe.toCss(pe,oe,ne,me),rgba:fe.toRgba(pe,oe,ne,me)}},(ee.css||(ee.css={})).toColor=function(ue){switch(ue.length){case 7:return{css:ue,rgba:(parseInt(ue.slice(1),16)<<8|255)>>>0};case 9:return{css:ue,rgba:parseInt(ue.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(ue){function ce(me,se,pe){var oe=me/255,ne=se/255,y=pe/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*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))}ue.relativeLuminance=function(me){return ce(me>>16&255,me>>8&255,255&me)},ue.relativeLuminance2=ce}(ye=ee.rgb||(ee.rgb={})),function(ue){function ce(se,pe,oe){for(var ne=se>>24&255,y=se>>16&255,a=se>>8&255,E=pe>>24&255,b=pe>>16&255,x=pe>>8&255,z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,y,a));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,y,a));return(E<<24|b<<16|x<<8|255)>>>0}function me(se,pe,oe){for(var ne=se>>24&255,y=se>>16&255,a=se>>8&255,E=pe>>24&255,b=pe>>16&255,x=pe>>8&255,z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,y,a));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,y,a));return(E<<24|b<<16|x<<8|255)>>>0}ue.ensureContrastRatio=function(se,pe,oe){var ne=ye.relativeLuminance(se>>8),y=ye.relativeLuminance(pe>>8);if(ie(ne,y)<oe)return y<ne?ce(se,pe,oe):me(se,pe,oe)},ue.reduceLuminance=ce,ue.increaseLuminance=me,ue.toChannels=function(se){return[se>>24&255,se>>16&255,se>>8&255,255&se]},ue.toColor=function(se,pe,oe){return{css:fe.toCss(se,pe,oe),rgba:fe.toRgba(se,pe,oe)}}}(he=ee.rgba||(ee.rgba={})),ee.toPaddedHex=ge,ee.contrastRatio=ie},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isLinux=ee.isWindows=ee.isIphone=ee.isIpad=ee.isMac=ee.isSafari=ee.isFirefox=void 0;var fe=typeof navigator=="undefined",be=fe?"node":navigator.userAgent,ye=fe?"node":navigator.platform;function he(ge,ie){return ge.indexOf(ie)>=0}ee.isFirefox=!!~be.indexOf("Firefox"),ee.isSafari=/^((?!chrome|android).)*safari/i.test(be),ee.isMac=he(["Macintosh","MacIntel","MacPPC","Mac68K"],ye),ee.isIpad=ye==="iPad",ee.isIphone=ye==="iPhone",ee.isWindows=he(["Windows","Win16","Win32","WinCE"],ye),ee.isLinux=ye.indexOf("Linux")>=0},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.C1=ee.C0=void 0,function(fe){fe.NUL="\0",fe.SOH="",fe.STX="",fe.ETX="",fe.EOT="",fe.ENQ="",fe.ACK="",fe.BEL="\x07",fe.BS="\b",fe.HT=" ",fe.LF=`
|
|
|
`,fe.VT="\v",fe.FF="\f",fe.CR="\r",fe.SO="",fe.SI="",fe.DLE="",fe.DC1="",fe.DC2="",fe.DC3="",fe.DC4="",fe.NAK="",fe.SYN="",fe.ETB="",fe.CAN="",fe.EM="",fe.SUB="",fe.ESC="\x1B",fe.FS="",fe.GS="",fe.RS="",fe.US="",fe.SP=" ",fe.DEL="\x7F"}(ee.C0||(ee.C0={})),function(fe){fe.PAD="\x80",fe.HOP="\x81",fe.BPH="\x82",fe.NBH="\x83",fe.IND="\x84",fe.NEL="\x85",fe.SSA="\x86",fe.ESA="\x87",fe.HTS="\x88",fe.HTJ="\x89",fe.VTS="\x8A",fe.PLD="\x8B",fe.PLU="\x8C",fe.RI="\x8D",fe.SS2="\x8E",fe.SS3="\x8F",fe.DCS="\x90",fe.PU1="\x91",fe.PU2="\x92",fe.STS="\x93",fe.CCH="\x94",fe.MW="\x95",fe.SPA="\x96",fe.EPA="\x97",fe.SOS="\x98",fe.SGCI="\x99",fe.SCI="\x9A",fe.CSI="\x9B",fe.ST="\x9C",fe.OSC="\x9D",fe.PM="\x9E",fe.APC="\x9F"}(ee.C1||(ee.C1={}))},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseRenderLayer=void 0;var fe=te(3),be=te(9),ye=te(25),he=te(6),ge=te(28),ie=te(10),ue=te(17),ce=function(){function me(se,pe,oe,ne,y,a,E,b){this._container=se,this._alpha=ne,this._colors=y,this._rendererId=a,this._bufferService=E,this._optionsService=b,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+pe+"-layer"),this._canvas.style.zIndex=oe.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return me.prototype.dispose=function(){var se;ue.removeElementFromParent(this._canvas),(se=this._charAtlas)===null||se===void 0||se.dispose()},me.prototype._initCanvas=function(){this._ctx=ge.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(se,pe){},me.prototype.onSelectionChanged=function(se,pe,oe){oe===void 0&&(oe=!1)},me.prototype.setColors=function(se){this._refreshCharAtlas(se)},me.prototype._setTransparency=function(se){if(se!==this._alpha){var pe=this._canvas;this._alpha=se,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,pe),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},me.prototype._refreshCharAtlas=function(se){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=ye.acquireCharAtlas(this._optionsService.options,this._rendererId,se,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},me.prototype.resize=function(se){this._scaledCellWidth=se.scaledCellWidth,this._scaledCellHeight=se.scaledCellHeight,this._scaledCharWidth=se.scaledCharWidth,this._scaledCharHeight=se.scaledCharHeight,this._scaledCharLeft=se.scaledCharLeft,this._scaledCharTop=se.scaledCharTop,this._canvas.width=se.scaledCanvasWidth,this._canvas.height=se.scaledCanvasHeight,this._canvas.style.width=se.canvasWidth+"px",this._canvas.style.height=se.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},me.prototype._fillCells=function(se,pe,oe,ne){this._ctx.fillRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight)},me.prototype._fillBottomLineAtCells=function(se,pe,oe){oe===void 0&&(oe=1),this._ctx.fillRect(se*this._scaledCellWidth,(pe+1)*this._scaledCellHeight-window.devicePixelRatio-1,oe*this._scaledCellWidth,window.devicePixelRatio)},me.prototype._fillLeftLineAtCell=function(se,pe,oe){this._ctx.fillRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,window.devicePixelRatio*oe,this._scaledCellHeight)},me.prototype._strokeRectAtCell=function(se,pe,oe,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(se*this._scaledCellWidth+window.devicePixelRatio/2,pe*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(se,pe,oe,ne){this._alpha?this._ctx.clearRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(se*this._scaledCellWidth,pe*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight))},me.prototype._fillCharTrueColor=function(se,pe,oe){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(oe),this._ctx.fillText(se.getChars(),pe*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},me.prototype._drawChars=function(se,pe,oe){var ne,y,a=this._getContrastColor(se);a||se.isFgRGB()||se.isBgRGB()?this._drawUncachedChars(se,pe,oe,a):(se.isInverse()?(ne=se.isBgDefault()?be.INVERTED_DEFAULT_COLOR:se.getBgColor(),y=se.isFgDefault()?be.INVERTED_DEFAULT_COLOR:se.getFgColor()):(y=se.isBgDefault()?fe.DEFAULT_COLOR:se.getBgColor(),ne=se.isFgDefault()?fe.DEFAULT_COLOR:se.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=se.getChars()||fe.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=se.getCode()||fe.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=y,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!se.isBold(),this._currentGlyphIdentifier.dim=!!se.isDim(),this._currentGlyphIdentifier.italic=!!se.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,pe*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(se,pe,oe))},me.prototype._drawUncachedChars=function(se,pe,oe,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!se.isBold(),!!se.isItalic()),this._ctx.textBaseline="middle",se.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(se.isBgDefault())this._ctx.fillStyle=ie.color.opaque(this._colors.background).css;else if(se.isBgRGB())this._ctx.fillStyle="rgb("+he.AttributeData.toColorRGB(se.getBgColor()).join(",")+")";else{var y=se.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}else if(ne)this._ctx.fillStyle=ne.css;else if(se.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(se.isFgRGB())this._ctx.fillStyle="rgb("+he.AttributeData.toColorRGB(se.getFgColor()).join(",")+")";else{var a=se.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(oe),se.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(se.getChars(),pe*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},me.prototype._clipRow=function(se){this._ctx.beginPath(),this._ctx.rect(0,se*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},me.prototype._getFont=function(se,pe){return(pe?"italic":"")+" "+(se?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},me.prototype._getContrastColor=function(se){if(this._optionsService.options.minimumContrastRatio!==1){var pe=this._colors.contrastCache.getColor(se.bg,se.fg);if(pe!==void 0)return pe||void 0;var oe=se.getFgColor(),ne=se.getFgColorMode(),y=se.getBgColor(),a=se.getBgColorMode(),E=!!se.isInverse(),b=!!se.isInverse();if(E){var x=oe;oe=y,y=x;var z=ne;ne=a,a=z}var re=this._resolveBackgroundRgba(a,y,E),le=this._resolveForegroundRgba(ne,oe,E,b),de=ie.rgba.ensureContrastRatio(re,le,this._optionsService.options.minimumContrastRatio);if(de){var ve={css:ie.channels.toCss(de>>24&255,de>>16&255,de>>8&255),rgba:de};return this._colors.contrastCache.setColor(se.bg,se.fg,ve),ve}this._colors.contrastCache.setColor(se.bg,se.fg,null)}},me.prototype._resolveBackgroundRgba=function(se,pe,oe){switch(se){case 16777216:case 33554432:return this._colors.ansi[pe].rgba;case 50331648:return pe<<8;case 0:default:return oe?this._colors.foreground.rgba:this._colors.background.rgba}},me.prototype._resolveForegroundRgba=function(se,pe,oe,ne){switch(se){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&pe<8&&(pe+=8),this._colors.ansi[pe].rgba;case 50331648:return pe<<8;case 0:default:return oe?this._colors.background.rgba:this._colors.foreground.rgba}},me}();ee.BaseRenderLayer=ce},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createDecorator=ee.getServiceDependencies=ee.serviceRegistry=void 0;function fe(be,ye,he){ye.di$target===ye?ye.di$dependencies.push({id:be,index:he}):(ye.di$dependencies=[{id:be,index:he}],ye.di$target=ye)}ee.serviceRegistry=new Map,ee.getServiceDependencies=function(be){return be.di$dependencies||[]},ee.createDecorator=function(be){if(ee.serviceRegistry.has(be))return ee.serviceRegistry.get(be);var ye=function(he,ge,ie){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");fe(ye,he,ie)};return ye.toString=function(){return be},ee.serviceRegistry.set(be,ye),ye}},function(Ve,ee,te){"use strict";function fe(be,ye,he,ge){if(he===void 0&&(he=0),ge===void 0&&(ge=be.length),he>=be.length)return be;he=(be.length+he)%be.length,ge=ge>=be.length?be.length:(be.length+ge)%be.length;for(var ie=he;ie<ge;++ie)be[ie]=ye;return be}Object.defineProperty(ee,"__esModule",{value:!0}),ee.concat=ee.fillFallback=ee.fill=void 0,ee.fill=function(be,ye,he,ge){return be.fill?be.fill(ye,he,ge):fe(be,ye,he,ge)},ee.fillFallback=fe,ee.concat=function(be,ye){var he=new be.constructor(be.length+ye.length);return he.set(be),he.set(ye,be.length),he}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferLine=ee.DEFAULT_ATTR_DATA=void 0;var fe=te(8),be=te(3),ye=te(4),he=te(6);ee.DEFAULT_ATTR_DATA=Object.freeze(new he.AttributeData);var ge=function(){function ie(ue,ce,me){me===void 0&&(me=!1),this.isWrapped=me,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*ue);for(var se=ce||ye.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),pe=0;pe<ue;++pe)this.setCell(pe,se);this.length=ue}return ie.prototype.get=function(ue){var ce=this._data[3*ue+0],me=2097151&ce;return[this._data[3*ue+1],2097152&ce?this._combined[ue]:me?fe.stringFromCodePoint(me):"",ce>>22,2097152&ce?this._combined[ue].charCodeAt(this._combined[ue].length-1):me]},ie.prototype.set=function(ue,ce){this._data[3*ue+1]=ce[be.CHAR_DATA_ATTR_INDEX],ce[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[ue]=ce[1],this._data[3*ue+0]=2097152|ue|ce[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*ue+0]=ce[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ce[be.CHAR_DATA_WIDTH_INDEX]<<22},ie.prototype.getWidth=function(ue){return this._data[3*ue+0]>>22},ie.prototype.hasWidth=function(ue){return 12582912&this._data[3*ue+0]},ie.prototype.getFg=function(ue){return this._data[3*ue+1]},ie.prototype.getBg=function(ue){return this._data[3*ue+2]},ie.prototype.hasContent=function(ue){return 4194303&this._data[3*ue+0]},ie.prototype.getCodePoint=function(ue){var ce=this._data[3*ue+0];return 2097152&ce?this._combined[ue].charCodeAt(this._combined[ue].length-1):2097151&ce},ie.prototype.isCombined=function(ue){return 2097152&this._data[3*ue+0]},ie.prototype.getString=function(ue){var ce=this._data[3*ue+0];return 2097152&ce?this._combined[ue]:2097151&ce?fe.stringFromCodePoint(2097151&ce):""},ie.prototype.loadCell=function(ue,ce){var me=3*ue;return ce.content=this._data[me+0],ce.fg=this._data[me+1],ce.bg=this._data[me+2],2097152&ce.content&&(ce.combinedData=this._combined[ue]),268435456&ce.bg&&(ce.extended=this._extendedAttrs[ue]),ce},ie.prototype.setCell=function(ue,ce){2097152&ce.content&&(this._combined[ue]=ce.combinedData),268435456&ce.bg&&(this._extendedAttrs[ue]=ce.extended),this._data[3*ue+0]=ce.content,this._data[3*ue+1]=ce.fg,this._data[3*ue+2]=ce.bg},ie.prototype.setCellFromCodePoint=function(ue,ce,me,se,pe,oe){268435456&pe&&(this._extendedAttrs[ue]=oe),this._data[3*ue+0]=ce|me<<22,this._data[3*ue+1]=se,this._data[3*ue+2]=pe},ie.prototype.addCodepointToCell=function(ue,ce){var me=this._data[3*ue+0];2097152&me?this._combined[ue]+=fe.stringFromCodePoint(ce):(2097151&me?(this._combined[ue]=fe.stringFromCodePoint(2097151&me)+fe.stringFromCodePoint(ce),me&=-2097152,me|=2097152):me=ce|1<<22,this._data[3*ue+0]=me)},ie.prototype.insertCells=function(ue,ce,me,se){if((ue%=this.length)&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),ce<this.length-ue){for(var pe=new ye.CellData,oe=this.length-ue-ce-1;oe>=0;--oe)this.setCell(ue+ce+oe,this.loadCell(ue+oe,pe));for(oe=0;oe<ce;++oe)this.setCell(ue+oe,me)}else for(oe=ue;oe<this.length;++oe)this.setCell(oe,me);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs)},ie.prototype.deleteCells=function(ue,ce,me,se){if(ue%=this.length,ce<this.length-ue){for(var pe=new ye.CellData,oe=0;oe<this.length-ue-ce;++oe)this.setCell(ue+oe,this.loadCell(ue+ce+oe,pe));for(oe=this.length-ce;oe<this.length;++oe)this.setCell(oe,me)}else for(oe=ue;oe<this.length;++oe)this.setCell(oe,me);ue&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),this.getWidth(ue)!==0||this.hasContent(ue)||this.setCellFromCodePoint(ue,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs)},ie.prototype.replaceCells=function(ue,ce,me,se){for(ue&&this.getWidth(ue-1)===2&&this.setCellFromCodePoint(ue-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),ce<this.length&&this.getWidth(ce-1)===2&&this.setCellFromCodePoint(ce,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs);ue<ce&&ue<this.length;)this.setCell(ue++,me)},ie.prototype.resize=function(ue,ce){if(ue!==this.length){if(ue>this.length){var me=new Uint32Array(3*ue);this.length&&(3*ue<this._data.length?me.set(this._data.subarray(0,3*ue)):me.set(this._data)),this._data=me;for(var se=this.length;se<ue;++se)this.setCell(se,ce)}else if(ue){(me=new Uint32Array(3*ue)).set(this._data.subarray(0,3*ue)),this._data=me;var pe=Object.keys(this._combined);for(se=0;se<pe.length;se++){var oe=parseInt(pe[se],10);oe>=ue&&delete this._combined[oe]}}else this._data=new Uint32Array(0),this._combined={};this.length=ue}},ie.prototype.fill=function(ue){this._combined={},this._extendedAttrs={};for(var ce=0;ce<this.length;++ce)this.setCell(ce,ue)},ie.prototype.copyFrom=function(ue){for(var ce in this.length!==ue.length?this._data=new Uint32Array(ue._data):this._data.set(ue._data),this.length=ue.length,this._combined={},ue._combined)this._combined[ce]=ue._combined[ce];for(var ce in this._extendedAttrs={},ue._extendedAttrs)this._extendedAttrs[ce]=ue._extendedAttrs[ce];this.isWrapped=ue.isWrapped},ie.prototype.clone=function(){var ue=new ie(0);for(var ce in ue._data=new Uint32Array(this._data),ue.length=this.length,this._combined)ue._combined[ce]=this._combined[ce];for(var ce in this._extendedAttrs)ue._extendedAttrs[ce]=this._extendedAttrs[ce];return ue.isWrapped=this.isWrapped,ue},ie.prototype.getTrimmedLength=function(){for(var ue=this.length-1;ue>=0;--ue)if(4194303&this._data[3*ue+0])return ue+(this._data[3*ue+0]>>22);return 0},ie.prototype.copyCellsFrom=function(ue,ce,me,se,pe){var oe=ue._data;if(pe)for(var ne=se-1;ne>=0;ne--)for(var y=0;y<3;y++)this._data[3*(me+ne)+y]=oe[3*(ce+ne)+y];else for(ne=0;ne<se;ne++)for(y=0;y<3;y++)this._data[3*(me+ne)+y]=oe[3*(ce+ne)+y];var a=Object.keys(ue._combined);for(y=0;y<a.length;y++){var E=parseInt(a[y],10);E>=ce&&(this._combined[E-ce+me]=ue._combined[E])}},ie.prototype.translateToString=function(ue,ce,me){ue===void 0&&(ue=!1),ce===void 0&&(ce=0),me===void 0&&(me=this.length),ue&&(me=Math.min(me,this.getTrimmedLength()));for(var se="";ce<me;){var pe=this._data[3*ce+0],oe=2097151&pe;se+=2097152&pe?this._combined[ce]:oe?fe.stringFromCodePoint(oe):be.WHITESPACE_CELL_CHAR,ce+=pe>>22||1}return se},ie}();ee.BufferLine=ge},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeElementFromParent=void 0,ee.removeElementFromParent=function(){for(var fe,be=[],ye=0;ye<arguments.length;ye++)be[ye]=arguments[ye];for(var he=0,ge=be;he<ge.length;he++){var ie=ge[he];(fe=ie==null?void 0:ie.parentElement)===null||fe===void 0||fe.removeChild(ie)}}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.tooMuchOutput=ee.promptLabel=void 0,ee.promptLabel="Terminal input",ee.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,de){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Se){ve.__proto__=Se}||function(ve,Se){for(var Le in Se)Se.hasOwnProperty(Le)&&(ve[Le]=Se[Le])})(le,de)},function(le,de){function ve(){this.constructor=le}fe(le,de),le.prototype=de===null?Object.create(de):(ve.prototype=de.prototype,new ve)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.InputHandler=ee.WindowsOptionsReportType=void 0;var ye,he=te(12),ge=te(20),ie=te(39),ue=te(2),ce=te(15),me=te(8),se=te(16),pe=te(0),oe=te(3),ne=te(4),y=te(6),a=te(22),E=te(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(le,de){if(le>24)return de.setWinLines||!1;switch(le){case 1:return!!de.restoreWin;case 2:return!!de.minimizeWin;case 3:return!!de.setWinPosition;case 4:return!!de.setWinSizePixels;case 5:return!!de.raiseWin;case 6:return!!de.lowerWin;case 7:return!!de.refreshWin;case 8:return!!de.setWinSizeChars;case 9:return!!de.maximizeWin;case 10:return!!de.fullscreenWin;case 11:return!!de.getWinState;case 13:return!!de.getWinPosition;case 14:return!!de.getWinSizePixels;case 15:return!!de.getScreenSizePixels;case 16:return!!de.getCellSizePixels;case 18:return!!de.getWinSizeChars;case 19:return!!de.getScreenSizeChars;case 20:return!!de.getIconTitle;case 21:return!!de.getWinTitle;case 22:return!!de.pushTitle;case 23:return!!de.popTitle;case 24:return!!de.setWinLines}return!1}(function(le){le[le.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",le[le.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(ye=ee.WindowsOptionsReportType||(ee.WindowsOptionsReportType={}));var z=function(){function le(de,ve,Se,Le){this._bufferService=de,this._coreService=ve,this._logService=Se,this._optionsService=Le,this._data=new Uint32Array(0)}return le.prototype.hook=function(de){this._data=new Uint32Array(0)},le.prototype.put=function(de,ve,Se){this._data=ce.concat(this._data,de.subarray(ve,Se))},le.prototype.unhook=function(de){if(de){var ve=me.utf32ToString(this._data);switch(this._data=new Uint32Array(0),ve){case'"q':return this._coreService.triggerDataEvent(he.C0.ESC+'P1$r0"q'+he.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(he.C0.ESC+'P1$r61;1"p'+he.C0.ESC+"\\");case"r":var Se=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(he.C0.ESC+"P1$r"+Se+he.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(he.C0.ESC+"P1$r0m"+he.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(he.C0.ESC+"P1$r"+Le+" q"+he.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",ve),this._coreService.triggerDataEvent(he.C0.ESC+"P0$r"+he.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},le}(),re=function(le){function de(ve,Se,Le,Ee,je,xe,lt,Ye,ft){ft===void 0&&(ft=new ie.EscapeSequenceParser);var Me=le.call(this)||this;Me._bufferService=ve,Me._charsetService=Se,Me._coreService=Le,Me._dirtyRowService=Ee,Me._logService=je,Me._optionsService=xe,Me._coreMouseService=lt,Me._unicodeService=Ye,Me._parser=ft,Me._parseBuffer=new Uint32Array(4096),Me._stringDecoder=new me.StringToUtf32,Me._utf8Decoder=new me.Utf8ToUtf32,Me._workCell=new ne.CellData,Me._windowTitle="",Me._iconName="",Me._windowTitleStack=[],Me._iconNameStack=[],Me._curAttrData=se.DEFAULT_ATTR_DATA.clone(),Me._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone(),Me._onRequestBell=new pe.EventEmitter,Me._onRequestRefreshRows=new pe.EventEmitter,Me._onRequestReset=new pe.EventEmitter,Me._onRequestScroll=new pe.EventEmitter,Me._onRequestSyncScrollBar=new pe.EventEmitter,Me._onRequestWindowsOptionsReport=new pe.EventEmitter,Me._onA11yChar=new pe.EventEmitter,Me._onA11yTab=new pe.EventEmitter,Me._onCursorMove=new pe.EventEmitter,Me._onLineFeed=new pe.EventEmitter,Me._onScroll=new pe.EventEmitter,Me._onTitleChange=new pe.EventEmitter,Me.register(Me._parser),Me._parser.setCsiHandlerFallback(function(Ze,vt){Me._logService.debug("Unknown CSI code: ",{identifier:Me._parser.identToString(Ze),params:vt.toArray()})}),Me._parser.setEscHandlerFallback(function(Ze){Me._logService.debug("Unknown ESC code: ",{identifier:Me._parser.identToString(Ze)})}),Me._parser.setExecuteHandlerFallback(function(Ze){Me._logService.debug("Unknown EXECUTE code: ",{code:Ze})}),Me._parser.setOscHandlerFallback(function(Ze,vt,Pt){Me._logService.debug("Unknown OSC code: ",{identifier:Ze,action:vt,data:Pt})}),Me._parser.setDcsHandlerFallback(function(Ze,vt,Pt){vt==="HOOK"&&(Pt=Pt.toArray()),Me._logService.debug("Unknown DCS code: ",{identifier:Me._parser.identToString(Ze),action:vt,payload:Pt})}),Me._parser.setPrintHandler(function(Ze,vt,Pt){return Me.print(Ze,vt,Pt)}),Me._parser.setCsiHandler({final:"@"},function(Ze){return Me.insertChars(Ze)}),Me._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ze){return Me.scrollLeft(Ze)}),Me._parser.setCsiHandler({final:"A"},function(Ze){return Me.cursorUp(Ze)}),Me._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ze){return Me.scrollRight(Ze)}),Me._parser.setCsiHandler({final:"B"},function(Ze){return Me.cursorDown(Ze)}),Me._parser.setCsiHandler({final:"C"},function(Ze){return Me.cursorForward(Ze)}),Me._parser.setCsiHandler({final:"D"},function(Ze){return Me.cursorBackward(Ze)}),Me._parser.setCsiHandler({final:"E"},function(Ze){return Me.cursorNextLine(Ze)}),Me._parser.setCsiHandler({final:"F"},function(Ze){return Me.cursorPrecedingLine(Ze)}),Me._parser.setCsiHandler({final:"G"},function(Ze){return Me.cursorCharAbsolute(Ze)}),Me._parser.setCsiHandler({final:"H"},function(Ze){return Me.cursorPosition(Ze)}),Me._parser.setCsiHandler({final:"I"},function(Ze){return Me.cursorForwardTab(Ze)}),Me._parser.setCsiHandler({final:"J"},function(Ze){return Me.eraseInDisplay(Ze)}),Me._parser.setCsiHandler({prefix:"?",final:"J"},function(Ze){return Me.eraseInDisplay(Ze)}),Me._parser.setCsiHandler({final:"K"},function(Ze){return Me.eraseInLine(Ze)}),Me._parser.setCsiHandler({prefix:"?",final:"K"},function(Ze){return Me.eraseInLine(Ze)}),Me._parser.setCsiHandler({final:"L"},function(Ze){return Me.insertLines(Ze)}),Me._parser.setCsiHandler({final:"M"},function(Ze){return Me.deleteLines(Ze)}),Me._parser.setCsiHandler({final:"P"},function(Ze){return Me.deleteChars(Ze)}),Me._parser.setCsiHandler({final:"S"},function(Ze){return Me.scrollUp(Ze)}),Me._parser.setCsiHandler({final:"T"},function(Ze){return Me.scrollDown(Ze)}),Me._parser.setCsiHandler({final:"X"},function(Ze){return Me.eraseChars(Ze)}),Me._parser.setCsiHandler({final:"Z"},function(Ze){return Me.cursorBackwardTab(Ze)}),Me._parser.setCsiHandler({final:"`"},function(Ze){return Me.charPosAbsolute(Ze)}),Me._parser.setCsiHandler({final:"a"},function(Ze){return Me.hPositionRelative(Ze)}),Me._parser.setCsiHandler({final:"b"},function(Ze){return Me.repeatPrecedingCharacter(Ze)}),Me._parser.setCsiHandler({final:"c"},function(Ze){return Me.sendDeviceAttributesPrimary(Ze)}),Me._parser.setCsiHandler({prefix:">",final:"c"},function(Ze){return Me.sendDeviceAttributesSecondary(Ze)}),Me._parser.setCsiHandler({final:"d"},function(Ze){return Me.linePosAbsolute(Ze)}),Me._parser.setCsiHandler({final:"e"},function(Ze){return Me.vPositionRelative(Ze)}),Me._parser.setCsiHandler({final:"f"},function(Ze){return Me.hVPosition(Ze)}),Me._parser.setCsiHandler({final:"g"},function(Ze){return Me.tabClear(Ze)}),Me._parser.setCsiHandler({final:"h"},function(Ze){return Me.setMode(Ze)}),Me._parser.setCsiHandler({prefix:"?",final:"h"},function(Ze){return Me.setModePrivate(Ze)}),Me._parser.setCsiHandler({final:"l"},function(Ze){return Me.resetMode(Ze)}),Me._parser.setCsiHandler({prefix:"?",final:"l"},function(Ze){return Me.resetModePrivate(Ze)}),Me._parser.setCsiHandler({final:"m"},function(Ze){return Me.charAttributes(Ze)}),Me._parser.setCsiHandler({final:"n"},function(Ze){return Me.deviceStatus(Ze)}),Me._parser.setCsiHandler({prefix:"?",final:"n"},function(Ze){return Me.deviceStatusPrivate(Ze)}),Me._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ze){return Me.softReset(Ze)}),Me._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ze){return Me.setCursorStyle(Ze)}),Me._parser.setCsiHandler({final:"r"},function(Ze){return Me.setScrollRegion(Ze)}),Me._parser.setCsiHandler({final:"s"},function(Ze){return Me.saveCursor(Ze)}),Me._parser.setCsiHandler({final:"t"},function(Ze){return Me.windowOptions(Ze)}),Me._parser.setCsiHandler({final:"u"},function(Ze){return Me.restoreCursor(Ze)}),Me._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ze){return Me.insertColumns(Ze)}),Me._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ze){return Me.deleteColumns(Ze)}),Me._parser.setExecuteHandler(he.C0.BEL,function(){return Me.bell()}),Me._parser.setExecuteHandler(he.C0.LF,function(){return Me.lineFeed()}),Me._parser.setExecuteHandler(he.C0.VT,function(){return Me.lineFeed()}),Me._parser.setExecuteHandler(he.C0.FF,function(){return Me.lineFeed()}),Me._parser.setExecuteHandler(he.C0.CR,function(){return Me.carriageReturn()}),Me._parser.setExecuteHandler(he.C0.BS,function(){return Me.backspace()}),Me._parser.setExecuteHandler(he.C0.HT,function(){return Me.tab()}),Me._parser.setExecuteHandler(he.C0.SO,function(){return Me.shiftOut()}),Me._parser.setExecuteHandler(he.C0.SI,function(){return Me.shiftIn()}),Me._parser.setExecuteHandler(he.C1.IND,function(){return Me.index()}),Me._parser.setExecuteHandler(he.C1.NEL,function(){return Me.nextLine()}),Me._parser.setExecuteHandler(he.C1.HTS,function(){return Me.tabSet()}),Me._parser.setOscHandler(0,new a.OscHandler(function(Ze){Me.setTitle(Ze),Me.setIconName(Ze)})),Me._parser.setOscHandler(1,new a.OscHandler(function(Ze){return Me.setIconName(Ze)})),Me._parser.setOscHandler(2,new a.OscHandler(function(Ze){return Me.setTitle(Ze)})),Me._parser.setEscHandler({final:"7"},function(){return Me.saveCursor()}),Me._parser.setEscHandler({final:"8"},function(){return Me.restoreCursor()}),Me._parser.setEscHandler({final:"D"},function(){return Me.index()}),Me._parser.setEscHandler({final:"E"},function(){return Me.nextLine()}),Me._parser.setEscHandler({final:"H"},function(){return Me.tabSet()}),Me._parser.setEscHandler({final:"M"},function(){return Me.reverseIndex()}),Me._parser.setEscHandler({final:"="},function(){return Me.keypadApplicationMode()}),Me._parser.setEscHandler({final:">"},function(){return Me.keypadNumericMode()}),Me._parser.setEscHandler({final:"c"},function(){return Me.fullReset()}),Me._parser.setEscHandler({final:"n"},function(){return Me.setgLevel(2)}),Me._parser.setEscHandler({final:"o"},function(){return Me.setgLevel(3)}),Me._parser.setEscHandler({final:"|"},function(){return Me.setgLevel(3)}),Me._parser.setEscHandler({final:"}"},function(){return Me.setgLevel(2)}),Me._parser.setEscHandler({final:"~"},function(){return Me.setgLevel(1)}),Me._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Me.selectDefaultCharset()}),Me._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Me.selectDefaultCharset()});var He=function(Ze){Ne._parser.setEscHandler({intermediates:"(",final:Ze},function(){return Me.selectCharset("("+Ze)}),Ne._parser.setEscHandler({intermediates:")",final:Ze},function(){return Me.selectCharset(")"+Ze)}),Ne._parser.setEscHandler({intermediates:"*",final:Ze},function(){return Me.selectCharset("*"+Ze)}),Ne._parser.setEscHandler({intermediates:"+",final:Ze},function(){return Me.selectCharset("+"+Ze)}),Ne._parser.setEscHandler({intermediates:"-",final:Ze},function(){return Me.selectCharset("-"+Ze)}),Ne._parser.setEscHandler({intermediates:".",final:Ze},function(){return Me.selectCharset("."+Ze)}),Ne._parser.setEscHandler({intermediates:"/",final:Ze},function(){return Me.selectCharset("/"+Ze)})},Ne=this;for(var ot in ge.CHARSETS)He(ot);return Me._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Me.screenAlignmentPattern()}),Me._parser.setErrorHandler(function(Ze){return Me._logService.error("Parsing error: ",Ze),Ze}),Me._parser.setDcsHandler({intermediates:"$",final:"q"},new z(Me._bufferService,Me._coreService,Me._logService,Me._optionsService)),Me}return be(de,le),Object.defineProperty(de.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){le.prototype.dispose.call(this)},de.prototype.parse=function(ve){var Se=this._bufferService.buffer,Le=Se.x,Ee=Se.y;if(this._logService.debug("parsing data",ve),this._parseBuffer.length<ve.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(ve.length,131072))),this._dirtyRowService.clearRange(),ve.length>131072)for(var je=0;je<ve.length;je+=131072){var xe=je+131072<ve.length?je+131072:ve.length,lt=typeof ve=="string"?this._stringDecoder.decode(ve.substring(je,xe),this._parseBuffer):this._utf8Decoder.decode(ve.subarray(je,xe),this._parseBuffer);this._parser.parse(this._parseBuffer,lt)}else lt=typeof ve=="string"?this._stringDecoder.decode(ve,this._parseBuffer):this._utf8Decoder.decode(ve,this._parseBuffer),this._parser.parse(this._parseBuffer,lt);(Se=this._bufferService.buffer).x===Le&&Se.y===Ee||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},de.prototype.print=function(ve,Se,Le){var Ee,je,xe=this._bufferService.buffer,lt=this._charsetService.charset,Ye=this._optionsService.options.screenReaderMode,ft=this._bufferService.cols,Me=this._coreService.decPrivateModes.wraparound,He=this._coreService.modes.insertMode,Ne=this._curAttrData,ot=xe.lines.get(xe.ybase+xe.y);this._dirtyRowService.markDirty(xe.y),xe.x&&Le-Se>0&&ot.getWidth(xe.x-1)===2&&ot.setCellFromCodePoint(xe.x-1,0,1,Ne.fg,Ne.bg,Ne.extended);for(var Ze=Se;Ze<Le;++Ze){if(Ee=ve[Ze],je=this._unicodeService.wcwidth(Ee),Ee<127&<){var vt=lt[String.fromCharCode(Ee)];vt&&(Ee=vt.charCodeAt(0))}if(Ye&&this._onA11yChar.fire(me.stringFromCodePoint(Ee)),je||!xe.x){if(xe.x+je-1>=ft){if(Me){for(;xe.x<ft;)ot.setCellFromCodePoint(xe.x++,0,1,Ne.fg,Ne.bg,Ne.extended);xe.x=0,xe.y++,xe.y===xe.scrollBottom+1?(xe.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(xe.y>=this._bufferService.rows&&(xe.y=this._bufferService.rows-1),xe.lines.get(xe.ybase+xe.y).isWrapped=!0),ot=xe.lines.get(xe.ybase+xe.y)}else if(xe.x=ft-1,je===2)continue}if(He&&(ot.insertCells(xe.x,je,xe.getNullCell(Ne),Ne),ot.getWidth(ft-1)===2&&ot.setCellFromCodePoint(ft-1,oe.NULL_CELL_CODE,oe.NULL_CELL_WIDTH,Ne.fg,Ne.bg,Ne.extended)),ot.setCellFromCodePoint(xe.x++,Ee,je,Ne.fg,Ne.bg,Ne.extended),je>0)for(;--je;)ot.setCellFromCodePoint(xe.x++,0,0,Ne.fg,Ne.bg,Ne.extended)}else ot.getWidth(xe.x-1)?ot.addCodepointToCell(xe.x-1,Ee):ot.addCodepointToCell(xe.x-2,Ee)}Le-Se>0&&(ot.loadCell(xe.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),xe.x<ft&&Le-Se>0&&ot.getWidth(xe.x)===0&&!ot.hasContent(xe.x)&&ot.setCellFromCodePoint(xe.x,0,1,Ne.fg,Ne.bg,Ne.extended),this._dirtyRowService.markDirty(xe.y)},de.prototype.addCsiHandler=function(ve,Se){var Le=this;return ve.final!=="t"||ve.prefix||ve.intermediates?this._parser.addCsiHandler(ve,Se):this._parser.addCsiHandler(ve,function(Ee){return!x(Ee.params[0],Le._optionsService.options.windowOptions)||Se(Ee)})},de.prototype.addDcsHandler=function(ve,Se){return this._parser.addDcsHandler(ve,new E.DcsHandler(Se))},de.prototype.addEscHandler=function(ve,Se){return this._parser.addEscHandler(ve,Se)},de.prototype.addOscHandler=function(ve,Se){return this._parser.addOscHandler(ve,new a.OscHandler(Se))},de.prototype.bell=function(){this._onRequestBell.fire()},de.prototype.lineFeed=function(){var ve=this._bufferService.buffer;this._dirtyRowService.markDirty(ve.y),this._optionsService.options.convertEol&&(ve.x=0),ve.y++,ve.y===ve.scrollBottom+1?(ve.y--,this._onRequestScroll.fire(this._eraseAttrData())):ve.y>=this._bufferService.rows&&(ve.y=this._bufferService.rows-1),ve.x>=this._bufferService.cols&&ve.x--,this._dirtyRowService.markDirty(ve.y),this._onLineFeed.fire()},de.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},de.prototype.backspace=function(){var ve,Se=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Se.x>0&&Se.x--);if(this._restrictCursor(this._bufferService.cols),Se.x>0)Se.x--;else if(Se.x===0&&Se.y>Se.scrollTop&&Se.y<=Se.scrollBottom&&(!((ve=Se.lines.get(Se.ybase+Se.y))===null||ve===void 0)&&ve.isWrapped)){Se.lines.get(Se.ybase+Se.y).isWrapped=!1,Se.y--,Se.x=this._bufferService.cols-1;var Le=Se.lines.get(Se.ybase+Se.y);Le.hasWidth(Se.x)&&!Le.hasContent(Se.x)&&Se.x--}this._restrictCursor()},de.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var ve=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-ve)}},de.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},de.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},de.prototype._restrictCursor=function(ve){ve===void 0&&(ve=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(ve,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype._setCursor=function(ve,Se){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=ve,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Se):(this._bufferService.buffer.x=ve,this._bufferService.buffer.y=Se),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype._moveCursor=function(ve,Se){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+ve,this._bufferService.buffer.y+Se)},de.prototype.cursorUp=function(ve){var Se=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Se>=0?this._moveCursor(0,-Math.min(Se,ve.params[0]||1)):this._moveCursor(0,-(ve.params[0]||1))},de.prototype.cursorDown=function(ve){var Se=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Se>=0?this._moveCursor(0,Math.min(Se,ve.params[0]||1)):this._moveCursor(0,ve.params[0]||1)},de.prototype.cursorForward=function(ve){this._moveCursor(ve.params[0]||1,0)},de.prototype.cursorBackward=function(ve){this._moveCursor(-(ve.params[0]||1),0)},de.prototype.cursorNextLine=function(ve){this.cursorDown(ve),this._bufferService.buffer.x=0},de.prototype.cursorPrecedingLine=function(ve){this.cursorUp(ve),this._bufferService.buffer.x=0},de.prototype.cursorCharAbsolute=function(ve){this._setCursor((ve.params[0]||1)-1,this._bufferService.buffer.y)},de.prototype.cursorPosition=function(ve){this._setCursor(ve.length>=2?(ve.params[1]||1)-1:0,(ve.params[0]||1)-1)},de.prototype.charPosAbsolute=function(ve){this._setCursor((ve.params[0]||1)-1,this._bufferService.buffer.y)},de.prototype.hPositionRelative=function(ve){this._moveCursor(ve.params[0]||1,0)},de.prototype.linePosAbsolute=function(ve){this._setCursor(this._bufferService.buffer.x,(ve.params[0]||1)-1)},de.prototype.vPositionRelative=function(ve){this._moveCursor(0,ve.params[0]||1)},de.prototype.hVPosition=function(ve){this.cursorPosition(ve)},de.prototype.tabClear=function(ve){var Se=ve.params[0];Se===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Se===3&&(this._bufferService.buffer.tabs={})},de.prototype.cursorForwardTab=function(ve){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=ve.params[0]||1;Se--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},de.prototype.cursorBackwardTab=function(ve){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.x=Le.prevStop()},de.prototype._eraseInBufferLine=function(ve,Se,Le,Ee){Ee===void 0&&(Ee=!1);var je=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ve);je.replaceCells(Se,Le,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ee&&(je.isWrapped=!1)},de.prototype._resetBufferLine=function(ve){var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ve);Se.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Se.isWrapped=!1},de.prototype.eraseInDisplay=function(ve){var Se;switch(this._restrictCursor(),ve.params[0]){case 0:for(Se=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Se),this._eraseInBufferLine(Se++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Se<this._bufferService.rows;Se++)this._resetBufferLine(Se);this._dirtyRowService.markDirty(Se);break;case 1:for(Se=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Se),this._eraseInBufferLine(Se,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Se+1).isWrapped=!1);Se--;)this._resetBufferLine(Se);this._dirtyRowService.markDirty(0);break;case 2:for(Se=this._bufferService.rows,this._dirtyRowService.markDirty(Se-1);Se--;)this._resetBufferLine(Se);this._dirtyRowService.markDirty(0);break;case 3:var Le=this._bufferService.buffer.lines.length-this._bufferService.rows;Le>0&&(this._bufferService.buffer.lines.trimStart(Le),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-Le,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-Le,0),this._onScroll.fire(0))}},de.prototype.eraseInLine=function(ve){switch(this._restrictCursor(),ve.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},de.prototype.insertLines=function(ve){this._restrictCursor();var Se=ve.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){for(var Ee=Le.ybase+Le.y,je=this._bufferService.rows-1-Le.scrollBottom,xe=this._bufferService.rows-1+Le.ybase-je+1;Se--;)Le.lines.splice(xe-1,1),Le.lines.splice(Ee,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.y,Le.scrollBottom),Le.x=0}},de.prototype.deleteLines=function(ve){this._restrictCursor();var Se=ve.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){var 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}},de.prototype.insertChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.insertCells(this._bufferService.buffer.x,ve.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},de.prototype.deleteChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.deleteCells(this._bufferService.buffer.x,ve.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},de.prototype.scrollUp=function(ve){for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.lines.splice(Le.ybase+Le.scrollTop,1),Le.lines.splice(Le.ybase+Le.scrollBottom,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.scrollTop,Le.scrollBottom)},de.prototype.scrollDown=function(ve){for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.lines.splice(Le.ybase+Le.scrollBottom,1),Le.lines.splice(Le.ybase+Le.scrollTop,0,Le.getBlankLine(se.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(Le.scrollTop,Le.scrollBottom)},de.prototype.scrollLeft=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,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)}},de.prototype.scrollRight=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,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)}},de.prototype.insertColumns=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,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)}},de.prototype.deleteColumns=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,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)}},de.prototype.eraseChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(ve.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},de.prototype.repeatPrecedingCharacter=function(ve){if(this._parser.precedingCodepoint){for(var Se=ve.params[0]||1,Le=new Uint32Array(Se),Ee=0;Ee<Se;++Ee)Le[Ee]=this._parser.precedingCodepoint;this.print(Le,0,Le.length)}},de.prototype.sendDeviceAttributesPrimary=function(ve){ve.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(he.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(he.C0.ESC+"[?6c"))},de.prototype.sendDeviceAttributesSecondary=function(ve){ve.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(he.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(he.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ve.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(he.C0.ESC+"[>83;40003;0c"))},de.prototype._is=function(ve){return(this._optionsService.options.termName+"").indexOf(ve)===0},de.prototype.setMode=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 4:this._coreService.modes.insertMode=!0}},de.prototype.setModePrivate=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,ge.DEFAULT_CHARSET),this._charsetService.setgCharset(1,ge.DEFAULT_CHARSET),this._charsetService.setgCharset(2,ge.DEFAULT_CHARSET),this._charsetService.setgCharset(3,ge.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}},de.prototype.resetMode=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 4:this._coreService.modes.insertMode=!1}},de.prototype.resetModePrivate=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),ve.params[Se]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},de.prototype._updateAttrColor=function(ve,Se,Le,Ee,je){return Se===2?(ve|=50331648,ve&=-16777216,ve|=y.AttributeData.fromColorRGB([Le,Ee,je])):Se===5&&(ve&=-50331904,ve|=33554432|255&Le),ve},de.prototype._extractColor=function(ve,Se,Le){var Ee=[0,0,-1,0,0,0],je=0,xe=0;do{if(Ee[xe+je]=ve.params[Se+xe],ve.hasSubParams(Se+xe)){var lt=ve.getSubParams(Se+xe),Ye=0;do Ee[1]===5&&(je=1),Ee[xe+Ye+1+je]=lt[Ye];while(++Ye<lt.length&&Ye+xe+1+je<Ee.length);break}if(Ee[1]===5&&xe+je>=2||Ee[1]===2&&xe+je>=5)break;Ee[1]&&(je=1)}while(++xe+Se<ve.length&&xe+je<Ee.length);for(Ye=2;Ye<Ee.length;++Ye)Ee[Ye]===-1&&(Ee[Ye]=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 xe},de.prototype._processUnderline=function(ve,Se){Se.extended=Se.extended.clone(),(!~ve||ve>5)&&(ve=1),Se.extended.underlineStyle=ve,Se.fg|=268435456,ve===0&&(Se.fg&=-268435457),Se.updateExtended()},de.prototype.charAttributes=function(ve){if(ve.length===1&&ve.params[0]===0)return this._curAttrData.fg=se.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=se.DEFAULT_ATTR_DATA.bg);for(var Se,Le=ve.length,Ee=this._curAttrData,je=0;je<Le;je++)(Se=ve.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=se.DEFAULT_ATTR_DATA.fg,Ee.bg=se.DEFAULT_ATTR_DATA.bg):Se===1?Ee.fg|=134217728:Se===3?Ee.bg|=67108864:Se===4?(Ee.fg|=268435456,this._processUnderline(ve.hasSubParams(je)?ve.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&se.DEFAULT_ATTR_DATA.fg):Se===49?(Ee.bg&=-67108864,Ee.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):Se===38||Se===48||Se===58?je+=this._extractColor(ve,je,Ee):Se===59?(Ee.extended=Ee.extended.clone(),Ee.extended.underlineColor=-1,Ee.updateExtended()):Se===100?(Ee.fg&=-67108864,Ee.fg|=16777215&se.DEFAULT_ATTR_DATA.fg,Ee.bg&=-67108864,Ee.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Se)},de.prototype.deviceStatus=function(ve){switch(ve.params[0]){case 5:this._coreService.triggerDataEvent(he.C0.ESC+"[0n");break;case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(he.C0.ESC+"["+Se+";"+Le+"R")}},de.prototype.deviceStatusPrivate=function(ve){switch(ve.params[0]){case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(he.C0.ESC+"[?"+Se+";"+Le+"R")}},de.prototype.softReset=function(ve){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=se.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},de.prototype.setCursorStyle=function(ve){var Se=ve.params[0]||1;switch(Se){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var Le=Se%2==1;this._optionsService.options.cursorBlink=Le},de.prototype.setScrollRegion=function(ve){var Se,Le=ve.params[0]||1;(ve.length<2||(Se=ve.params[1])>this._bufferService.rows||Se===0)&&(Se=this._bufferService.rows),Se>Le&&(this._bufferService.buffer.scrollTop=Le-1,this._bufferService.buffer.scrollBottom=Se-1,this._setCursor(0,0))},de.prototype.windowOptions=function(ve){if(x(ve.params[0],this._optionsService.options.windowOptions)){var Se=ve.length>1?ve.params[1]:0;switch(ve.params[0]){case 14:Se!==2&&this._onRequestWindowsOptionsReport.fire(ye.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(ye.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(he.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())}}},de.prototype.saveCursor=function(ve){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},de.prototype.restoreCursor=function(ve){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},de.prototype.setTitle=function(ve){this._windowTitle=ve,this._onTitleChange.fire(ve)},de.prototype.setIconName=function(ve){this._iconName=ve},de.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},de.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},de.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},de.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,ge.DEFAULT_CHARSET)},de.prototype.selectCharset=function(ve){ve.length===2?ve[0]!=="/"&&this._charsetService.setgCharset(b[ve[0]],ge.CHARSETS[ve[1]]||ge.DEFAULT_CHARSET):this.selectDefaultCharset()},de.prototype.index=function(){this._restrictCursor();var ve=this._bufferService.buffer;this._bufferService.buffer.y++,ve.y===ve.scrollBottom+1?(ve.y--,this._onRequestScroll.fire(this._eraseAttrData())):ve.y>=this._bufferService.rows&&(ve.y=this._bufferService.rows-1),this._restrictCursor()},de.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},de.prototype.reverseIndex=function(){this._restrictCursor();var ve=this._bufferService.buffer;if(ve.y===ve.scrollTop){var Se=ve.scrollBottom-ve.scrollTop;ve.lines.shiftElements(ve.ybase+ve.y,Se,1),ve.lines.set(ve.ybase+ve.y,ve.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(ve.scrollTop,ve.scrollBottom)}else ve.y--,this._restrictCursor()},de.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},de.prototype.reset=function(){this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone()},de.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},de.prototype.setgLevel=function(ve){this._charsetService.setgLevel(ve)},de.prototype.screenAlignmentPattern=function(){var ve=new ne.CellData;ve.content=1<<22|69,ve.fg=this._curAttrData.fg,ve.bg=this._curAttrData.bg;var Se=this._bufferService.buffer;this._setCursor(0,0);for(var Le=0;Le<this._bufferService.rows;++Le){var Ee=Se.ybase+Se.y+Le,je=Se.lines.get(Ee);je&&(je.fill(ve),je.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},de}(ue.Disposable);ee.InputHandler=re},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DEFAULT_CHARSET=ee.CHARSETS=void 0,ee.CHARSETS={},ee.DEFAULT_CHARSET=ee.CHARSETS.B,ee.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},ee.CHARSETS.A={"#":"\xA3"},ee.CHARSETS.B=void 0,ee.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},ee.CHARSETS.C=ee.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},ee.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},ee.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},ee.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},ee.CHARSETS.E=ee.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},ee.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},ee.CHARSETS.H=ee.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Params=void 0;var fe=function(){function be(ye,he){if(ye===void 0&&(ye=32),he===void 0&&(he=32),this.maxLength=ye,this.maxSubParamsLength=he,he>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(ye),this.length=0,this._subParams=new Int32Array(he),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(ye),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(ye){var he=new be;if(!ye.length)return he;for(var ge=ye[0]instanceof Array?1:0;ge<ye.length;++ge){var ie=ye[ge];if(ie instanceof Array)for(var ue=0;ue<ie.length;++ue)he.addSubParam(ie[ue]);else he.addParam(ie)}return he},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=[],he=0;he<this.length;++he){ye.push(this.params[he]);var ge=this._subParamsIdx[he]>>8,ie=255&this._subParamsIdx[he];ie-ge>0&&ye.push(Array.prototype.slice.call(this._subParams,ge,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 he=this._subParamsIdx[ye]>>8,ge=255&this._subParamsIdx[ye];return ge-he>0?this._subParams.subarray(he,ge):null},be.prototype.getSubParamsAll=function(){for(var ye={},he=0;he<this.length;++he){var ge=this._subParamsIdx[he]>>8,ie=255&this._subParamsIdx[he];ie-ge>0&&(ye[he]=this._subParams.slice(ge,ie))}return ye},be.prototype.addDigit=function(ye){var he;if(!(this._rejectDigits||!(he=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var ge=this._digitIsSub?this._subParams:this.params,ie=ge[he-1];ge[he-1]=~ie?Math.min(10*ie+ye,2147483647):ye}},be}();ee.Params=fe},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OscHandler=ee.OscParser=void 0;var fe=te(23),be=te(8),ye=function(){function ge(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return ge.prototype.addHandler=function(ie,ue){this._handlers[ie]===void 0&&(this._handlers[ie]=[]);var ce=this._handlers[ie];return ce.push(ue),{dispose:function(){var me=ce.indexOf(ue);me!==-1&&ce.splice(me,1)}}},ge.prototype.setHandler=function(ie,ue){this._handlers[ie]=[ue]},ge.prototype.clearHandler=function(ie){this._handlers[ie]&&delete this._handlers[ie]},ge.prototype.setHandlerFallback=function(ie){this._handlerFb=ie},ge.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ge.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},ge.prototype._start=function(){var ie=this._handlers[this._id];if(ie)for(var ue=ie.length-1;ue>=0;ue--)ie[ue].start();else this._handlerFb(this._id,"START")},ge.prototype._put=function(ie,ue,ce){var me=this._handlers[this._id];if(me)for(var se=me.length-1;se>=0;se--)me[se].put(ie,ue,ce);else this._handlerFb(this._id,"PUT",be.utf32ToString(ie,ue,ce))},ge.prototype._end=function(ie){var ue=this._handlers[this._id];if(ue){for(var ce=ue.length-1;ce>=0&&ue[ce].end(ie)===!1;ce--);for(ce--;ce>=0;ce--)ue[ce].end(!1)}else this._handlerFb(this._id,"END",ie)},ge.prototype.start=function(){this.reset(),this._id=-1,this._state=1},ge.prototype.put=function(ie,ue,ce){if(this._state!==3){if(this._state===1)for(;ue<ce;){var me=ie[ue++];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&&ce-ue>0&&this._put(ie,ue,ce)}},ge.prototype.end=function(ie){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ie)),this._id=-1,this._state=0)},ge}();ee.OscParser=ye;var he=function(){function ge(ie){this._handler=ie,this._data="",this._hitLimit=!1}return ge.prototype.start=function(){this._data="",this._hitLimit=!1},ge.prototype.put=function(ie,ue,ce){this._hitLimit||(this._data+=be.utf32ToString(ie,ue,ce),this._data.length>fe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ge.prototype.end=function(ie){var ue;return this._hitLimit?ue=!1:ie&&(ue=this._handler(this._data)),this._data="",this._hitLimit=!1,ue},ge}();ee.OscHandler=he},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.PAYLOAD_LIMIT=void 0,ee.PAYLOAD_LIMIT=1e7},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DcsHandler=ee.DcsParser=void 0;var fe=te(8),be=te(21),ye=te(23),he=[],ge=function(){function ue(){this._handlers=Object.create(null),this._active=he,this._ident=0,this._handlerFb=function(){}}return ue.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ue.prototype.addHandler=function(ce,me){this._handlers[ce]===void 0&&(this._handlers[ce]=[]);var se=this._handlers[ce];return se.push(me),{dispose:function(){var pe=se.indexOf(me);pe!==-1&&se.splice(pe,1)}}},ue.prototype.setHandler=function(ce,me){this._handlers[ce]=[me]},ue.prototype.clearHandler=function(ce){this._handlers[ce]&&delete this._handlers[ce]},ue.prototype.setHandlerFallback=function(ce){this._handlerFb=ce},ue.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=he,this._ident=0},ue.prototype.hook=function(ce,me){if(this.reset(),this._ident=ce,this._active=this._handlers[ce]||he,this._active.length)for(var se=this._active.length-1;se>=0;se--)this._active[se].hook(me);else this._handlerFb(this._ident,"HOOK",me)},ue.prototype.put=function(ce,me,se){if(this._active.length)for(var pe=this._active.length-1;pe>=0;pe--)this._active[pe].put(ce,me,se);else this._handlerFb(this._ident,"PUT",fe.utf32ToString(ce,me,se))},ue.prototype.unhook=function(ce){if(this._active.length){for(var me=this._active.length-1;me>=0&&this._active[me].unhook(ce)===!1;me--);for(me--;me>=0;me--)this._active[me].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",ce);this._active=he,this._ident=0},ue}();ee.DcsParser=ge;var ie=function(){function ue(ce){this._handler=ce,this._data="",this._hitLimit=!1}return ue.prototype.hook=function(ce){this._params=ce.clone(),this._data="",this._hitLimit=!1},ue.prototype.put=function(ce,me,se){this._hitLimit||(this._data+=fe.utf32ToString(ce,me,se),this._data.length>ye.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ue.prototype.unhook=function(ce){var me;return this._hitLimit?me=!1:ce&&(me=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,me},ue}();ee.DcsHandler=ie},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeTerminalFromCache=ee.acquireCharAtlas=void 0;var fe=te(26),be=te(43),ye=[];ee.acquireCharAtlas=function(he,ge,ie,ue,ce){for(var me=fe.generateConfig(ue,ce,he,ie),se=0;se<ye.length;se++){var pe=(oe=ye[se]).ownedBy.indexOf(ge);if(pe>=0){if(fe.configEquals(oe.config,me))return oe.atlas;oe.ownedBy.length===1?(oe.atlas.dispose(),ye.splice(se,1)):oe.ownedBy.splice(pe,1);break}}for(se=0;se<ye.length;se++){var oe=ye[se];if(fe.configEquals(oe.config,me))return oe.ownedBy.push(ge),oe.atlas}var ne={atlas:new be.DynamicCharAtlas(document,me),config:me,ownedBy:[ge]};return ye.push(ne),ne.atlas},ee.removeTerminalFromCache=function(he){for(var ge=0;ge<ye.length;ge++){var ie=ye[ge].ownedBy.indexOf(he);if(ie!==-1){ye[ge].ownedBy.length===1?(ye[ge].atlas.dispose(),ye.splice(ge,1)):ye[ge].ownedBy.splice(ie,1);break}}}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.is256Color=ee.configEquals=ee.generateConfig=void 0;var fe=te(3);ee.generateConfig=function(be,ye,he,ge){var ie={foreground:ge.foreground,background:ge.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:ge.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:ye,fontFamily:he.fontFamily,fontSize:he.fontSize,fontWeight:he.fontWeight,fontWeightBold:he.fontWeightBold,allowTransparency:he.allowTransparency,colors:ie}},ee.configEquals=function(be,ye){for(var he=0;he<be.colors.ansi.length;he++)if(be.colors.ansi[he].rgba!==ye.colors.ansi[he].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},ee.is256Color=function(be){return be<fe.DEFAULT_COLOR}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorManager=ee.DEFAULT_ANSI_COLORS=void 0;var fe=te(10),be=te(45),ye=fe.css.toColor("#ffffff"),he=fe.css.toColor("#000000"),ge=fe.css.toColor("#ffffff"),ie=fe.css.toColor("#000000"),ue={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};ee.DEFAULT_ANSI_COLORS=function(){for(var me=[fe.css.toColor("#2e3436"),fe.css.toColor("#cc0000"),fe.css.toColor("#4e9a06"),fe.css.toColor("#c4a000"),fe.css.toColor("#3465a4"),fe.css.toColor("#75507b"),fe.css.toColor("#06989a"),fe.css.toColor("#d3d7cf"),fe.css.toColor("#555753"),fe.css.toColor("#ef2929"),fe.css.toColor("#8ae234"),fe.css.toColor("#fce94f"),fe.css.toColor("#729fcf"),fe.css.toColor("#ad7fa8"),fe.css.toColor("#34e2e2"),fe.css.toColor("#eeeeec")],se=[0,95,135,175,215,255],pe=0;pe<216;pe++){var oe=se[pe/36%6|0],ne=se[pe/6%6|0],y=se[pe%6];me.push({css:fe.channels.toCss(oe,ne,y),rgba:fe.channels.toRgba(oe,ne,y)})}for(pe=0;pe<24;pe++){var a=8+10*pe;me.push({css:fe.channels.toCss(a,a,a),rgba:fe.channels.toRgba(a,a,a)})}return me}();var ce=function(){function me(se,pe){this.allowTransparency=pe;var oe=se.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:he,cursor:ge,cursorAccent:ie,selectionTransparent:ue,selectionOpaque:fe.color.blend(he,ue),ansi:ee.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return me.prototype.onOptionsChange=function(se){se==="minimumContrastRatio"&&this._contrastCache.clear()},me.prototype.setTheme=function(se){se===void 0&&(se={}),this.colors.foreground=this._parseColor(se.foreground,ye),this.colors.background=this._parseColor(se.background,he),this.colors.cursor=this._parseColor(se.cursor,ge,!0),this.colors.cursorAccent=this._parseColor(se.cursorAccent,ie,!0),this.colors.selectionTransparent=this._parseColor(se.selection,ue,!0),this.colors.selectionOpaque=fe.color.blend(this.colors.background,this.colors.selectionTransparent),fe.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=fe.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(se.black,ee.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(se.red,ee.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(se.green,ee.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(se.yellow,ee.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(se.blue,ee.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(se.magenta,ee.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(se.cyan,ee.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(se.white,ee.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(se.brightBlack,ee.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(se.brightRed,ee.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(se.brightGreen,ee.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(se.brightYellow,ee.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(se.brightBlue,ee.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(se.brightMagenta,ee.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(se.brightCyan,ee.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(se.brightWhite,ee.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},me.prototype._parseColor=function(se,pe,oe){if(oe===void 0&&(oe=this.allowTransparency),se===void 0)return pe;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=se,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+se+" is invalid using fallback "+pe.css),pe;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: "+se+" is using transparency, but allowTransparency is false. Using fallback "+pe.css+"."),pe;var y=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(re){return Number(re)}),a=y[0],E=y[1],b=y[2],x=y[3],z=Math.round(255*x);return{rgba:fe.channels.toRgba(a,E,b,z),css:se}}return{css:this._ctx.fillStyle,rgba:fe.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},me}();ee.ColorManager=ce},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.throwIfFalsy=void 0,ee.throwIfFalsy=function(fe){if(!fe)throw new Error("value must not be falsy");return fe}},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ce,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,pe){se.__proto__=pe}||function(se,pe){for(var oe in pe)pe.hasOwnProperty(oe)&&(se[oe]=pe[oe])})(ce,me)},function(ce,me){function se(){this.constructor=ce}fe(ce,me),ce.prototype=me===null?Object.create(me):(se.prototype=me.prototype,new se)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharacterJoinerRegistry=ee.JoinedCellData=void 0;var ye=te(6),he=te(3),ge=te(4),ie=function(ce){function me(se,pe,oe){var ne=ce.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=se.fg,ne.bg=se.bg,ne.combinedData=pe,ne._width=oe,ne}return be(me,ce),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(se){throw new Error("not implemented")},me.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},me}(ye.AttributeData);ee.JoinedCellData=ie;var ue=function(){function ce(me){this._bufferService=me,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new ge.CellData}return ce.prototype.registerCharacterJoiner=function(me){var se={id:this._nextCharacterJoinerId++,handler:me};return this._characterJoiners.push(se),se.id},ce.prototype.deregisterCharacterJoiner=function(me){for(var se=0;se<this._characterJoiners.length;se++)if(this._characterJoiners[se].id===me)return this._characterJoiners.splice(se,1),!0;return!1},ce.prototype.getJoinedCharacters=function(me){if(this._characterJoiners.length===0)return[];var se=this._bufferService.buffer.lines.get(me);if(!se||se.length===0)return[];for(var pe=[],oe=se.translateToString(!0),ne=0,y=0,a=0,E=se.getFg(0),b=se.getBg(0),x=0;x<se.getTrimmedLength();x++)if(se.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,a,y,se,ne),re=0;re<z.length;re++)pe.push(z[re]);ne=x,a=y,E=this._workCell.fg,b=this._workCell.bg}y+=this._workCell.getChars().length||he.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(z=this._getJoinedRanges(oe,a,y,se,ne),re=0;re<z.length;re++)pe.push(z[re]);return pe},ce.prototype._getJoinedRanges=function(me,se,pe,oe,ne){for(var y=me.substring(se,pe),a=this._characterJoiners[0].handler(y),E=1;E<this._characterJoiners.length;E++)for(var b=this._characterJoiners[E].handler(y),x=0;x<b.length;x++)ce._mergeRanges(a,b[x]);return this._stringRangesToCellRanges(a,oe,ne),a},ce.prototype._stringRangesToCellRanges=function(me,se,pe){var oe=0,ne=!1,y=0,a=me[oe];if(a){for(var E=pe;E<this._bufferService.cols;E++){var b=se.getWidth(E),x=se.getString(E).length||he.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!ne&&a[0]<=y&&(a[0]=E,ne=!0),a[1]<=y){if(a[1]=E,!(a=me[++oe]))break;a[0]<=y?(a[0]=E,ne=!0):ne=!1}y+=x}}a&&(a[1]=this._bufferService.cols)}},ce._mergeRanges=function(me,se){for(var pe=!1,oe=0;oe<me.length;oe++){var ne=me[oe];if(pe){if(se[1]<=ne[0])return me[oe-1][1]=se[1],me;if(se[1]<=ne[1])return me[oe-1][1]=Math.max(se[1],ne[1]),me.splice(oe,1),me;me.splice(oe,1),oe--}else{if(se[1]<=ne[0])return me.splice(oe,0,se),me;if(se[1]<=ne[1])return ne[0]=Math.min(se[0],ne[0]),me;se[0]<ne[1]&&(ne[0]=Math.min(se[0],ne[0]),pe=!0)}}return pe?me[me.length-1][1]=se[1]:me.push(se),me},ce}();ee.CharacterJoinerRegistry=ue},function(Ve,ee,te){"use strict";function fe(be,ye){var he=ye.getBoundingClientRect();return[be.clientX-he.left,be.clientY-he.top]}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getRawByteCoords=ee.getCoords=ee.getCoordsRelativeToElement=void 0,ee.getCoordsRelativeToElement=fe,ee.getCoords=function(be,ye,he,ge,ie,ue,ce,me){if(ie){var se=fe(be,ye);if(se)return se[0]=Math.ceil((se[0]+(me?ue/2:0))/ue),se[1]=Math.ceil(se[1]/ce),se[0]=Math.min(Math.max(se[0],1),he+(me?1:0)),se[1]=Math.min(Math.max(se[1],1),ge),se}},ee.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderDebouncer=void 0;var fe=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,he,ge){var ie=this;this._rowCount=ge,ye=ye!==void 0?ye:0,he=he!==void 0?he: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,he):he,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),he=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(ye,he)}},be}();ee.RenderDebouncer=fe},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(he,ge){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ue){ie.__proto__=ue}||function(ie,ue){for(var ce in ue)ue.hasOwnProperty(ce)&&(ie[ce]=ue[ce])})(he,ge)},function(he,ge){function ie(){this.constructor=he}fe(he,ge),he.prototype=ge===null?Object.create(ge):(ie.prototype=ge.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.ScreenDprMonitor=void 0;var ye=function(he){function ge(){var ie=he!==null&&he.apply(this,arguments)||this;return ie._currentDevicePixelRatio=window.devicePixelRatio,ie}return be(ge,he),ge.prototype.setListener=function(ie){var ue=this;this._listener&&this.clearListener(),this._listener=ie,this._outerListener=function(){ue._listener&&(ue._listener(window.devicePixelRatio,ue._currentDevicePixelRatio),ue._updateDpr())},this._updateDpr()},ge.prototype.dispose=function(){he.prototype.dispose.call(this),this.clearListener()},ge.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))},ge.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)},ge}(te(2).Disposable);ee.ScreenDprMonitor=ye},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.clone=void 0,ee.clone=function fe(be,ye){if(ye===void 0&&(ye=5),typeof be!="object")return be;var he=Array.isArray(be)?[]:{};for(var ge in be)he[ge]=ye<=1?be[ge]:be[ge]?fe(be[ge],ye-1):be[ge];return he}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var fe=te(4),be=te(35),ye=te(18),he=te(0),ge=te(83),ie=function(){function oe(ne){this._core=new be.Terminal(ne),this._addonManager=new ge.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 se(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"unicode",{get:function(){return this._checkProposedApi(),new pe(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 ce(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,y){this._verifyIntegers(ne,y),this._core.resize(ne,y)},oe.prototype.open=function(ne){this._core.open(ne)},oe.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},oe.prototype.registerLinkMatcher=function(ne,y,a){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,y,a)},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,y,a){this._verifyIntegers(ne,y,a),this._core.select(ne,y,a)},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,y){this._verifyIntegers(ne,y),this._core.selectLines(ne,y)},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,y){this._core.write(ne,y)},oe.prototype.writeUtf8=function(ne,y){this._core.write(ne,y)},oe.prototype.writeln=function(ne,y){this._core.write(ne),this._core.write(`\r
|
|
|
`,y)},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,y){this._core.optionsService.setOption(ne,y)},oe.prototype.refresh=function(ne,y){this._verifyIntegers(ne,y),this._core.refresh(ne,y)},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=[],y=0;y<arguments.length;y++)ne[y]=arguments[y];for(var a=0,E=ne;a<E.length;a++){var b=E[a];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},oe}();ee.Terminal=ie;var ue=function(){function oe(ne,y){this._buffer=ne,this.type=y}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 y=this._buffer.lines.get(ne);if(y)return new me(y)},oe.prototype.getNullCell=function(){return new fe.CellData},oe}(),ce=function(){function oe(ne){var y=this;this._buffers=ne,this._onBufferChange=new he.EventEmitter,this._normal=new ue(this._buffers.normal,"normal"),this._alternate=new ue(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return y._onBufferChange.fire(y.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,y){if(!(ne<0||ne>=this._line.length))return y?(this._line.loadCell(ne,y),y):this._line.loadCell(ne,new fe.CellData)},oe.prototype.translateToString=function(ne,y,a){return this._line.translateToString(ne,y,a)},oe}(),se=function(){function oe(ne){this._core=ne}return oe.prototype.registerCsiHandler=function(ne,y){return this._core.addCsiHandler(ne,function(a){return y(a.toArray())})},oe.prototype.addCsiHandler=function(ne,y){return this.registerCsiHandler(ne,y)},oe.prototype.registerDcsHandler=function(ne,y){return this._core.addDcsHandler(ne,function(a,E){return y(a,E.toArray())})},oe.prototype.addDcsHandler=function(ne,y){return this.registerDcsHandler(ne,y)},oe.prototype.registerEscHandler=function(ne,y){return this._core.addEscHandler(ne,y)},oe.prototype.addEscHandler=function(ne,y){return this.registerEscHandler(ne,y)},oe.prototype.registerOscHandler=function(ne,y){return this._core.addOscHandler(ne,y)},oe.prototype.addOscHandler=function(ne,y){return this.registerOscHandler(ne,y)},oe}(),pe=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,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ft,Me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,Ne){He.__proto__=Ne}||function(He,Ne){for(var ot in Ne)Ne.hasOwnProperty(ot)&&(He[ot]=Ne[ot])})(ft,Me)},function(ft,Me){function He(){this.constructor=ft}fe(ft,Me),ft.prototype=Me===null?Object.create(Me):(He.prototype=Me.prototype,new He)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var ye=te(36),he=te(37),ge=te(38),ie=te(12),ue=te(19),ce=te(40),me=te(50),se=te(51),pe=te(11),oe=te(7),ne=te(18),y=te(54),a=te(55),E=te(56),b=te(57),x=te(59),z=te(0),re=te(16),le=te(27),de=te(60),ve=te(5),Se=te(61),Le=te(62),Ee=te(63),je=te(64),xe=te(65),lt=typeof window!="undefined"?window.document:null,Ye=function(ft){function Me(He){He===void 0&&(He={});var Ne=ft.call(this,He)||this;return Ne.browser=pe,Ne._keyDownHandled=!1,Ne._onCursorMove=new z.EventEmitter,Ne._onKey=new z.EventEmitter,Ne._onRender=new z.EventEmitter,Ne._onSelectionChange=new z.EventEmitter,Ne._onTitleChange=new z.EventEmitter,Ne._onFocus=new z.EventEmitter,Ne._onBlur=new z.EventEmitter,Ne._onA11yCharEmitter=new z.EventEmitter,Ne._onA11yTabEmitter=new z.EventEmitter,Ne._setup(),Ne.linkifier=Ne._instantiationService.createInstance(me.Linkifier),Ne.linkifier2=Ne.register(Ne._instantiationService.createInstance(Ee.Linkifier2)),Ne.register(Ne._inputHandler.onRequestBell(function(){return Ne.bell()})),Ne.register(Ne._inputHandler.onRequestRefreshRows(function(ot,Ze){return Ne.refresh(ot,Ze)})),Ne.register(Ne._inputHandler.onRequestReset(function(){return Ne.reset()})),Ne.register(Ne._inputHandler.onRequestScroll(function(ot,Ze){return Ne.scroll(ot,Ze||void 0)})),Ne.register(Ne._inputHandler.onRequestWindowsOptionsReport(function(ot){return Ne._reportWindowsOptions(ot)})),Ne.register(z.forwardEvent(Ne._inputHandler.onCursorMove,Ne._onCursorMove)),Ne.register(z.forwardEvent(Ne._inputHandler.onTitleChange,Ne._onTitleChange)),Ne.register(z.forwardEvent(Ne._inputHandler.onA11yChar,Ne._onA11yCharEmitter)),Ne.register(z.forwardEvent(Ne._inputHandler.onA11yTab,Ne._onA11yTabEmitter)),Ne.register(Ne._bufferService.onResize(function(ot){return Ne._afterResize(ot.cols,ot.rows)})),Ne}return be(Me,ft),Object.defineProperty(Me.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Me.prototype.dispose=function(){var He,Ne,ot;this._isDisposed||(ft.prototype.dispose.call(this),(He=this._renderService)===null||He===void 0||He.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(ot=(Ne=this.element)===null||Ne===void 0?void 0:Ne.parentNode)===null||ot===void 0||ot.removeChild(this.element))},Me.prototype._setup=function(){ft.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Me.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Me.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Me.prototype._updateOptions=function(He){var Ne,ot,Ze,vt;switch(ft.prototype._updateOptions.call(this,He),He){case"fontFamily":case"fontSize":(Ne=this._renderService)===null||Ne===void 0||Ne.clear(),(ot=this._charSizeService)===null||ot===void 0||ot.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":(Ze=this.viewport)===null||Ze===void 0||Ze.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((vt=this._accessibilityManager)===null||vt===void 0||vt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Me.prototype._onTextAreaFocus=function(He){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[I"),this.updateCursorStyle(He),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Me.prototype.blur=function(){var He;return(He=this.textarea)===null||He===void 0?void 0:He.blur()},Me.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()},Me.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var He=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Ne=this._bufferService.buffer.y*He,ot=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=ot+"px",this.textarea.style.top=Ne+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=He+"px",this.textarea.style.lineHeight=He+"px",this.textarea.style.zIndex="-5"}},Me.prototype._initGlobal=function(){var He=this;this._bindKeys(),this.register(oe.addDisposableDomListener(this.element,"copy",function(ot){He.hasSelection()&&ge.copyHandler(ot,He._selectionService)}));var Ne=function(ot){return ge.handlePasteEvent(ot,He.textarea,He._coreService)};this.register(oe.addDisposableDomListener(this.textarea,"paste",Ne)),this.register(oe.addDisposableDomListener(this.element,"paste",Ne)),pe.isFirefox?this.register(oe.addDisposableDomListener(this.element,"mousedown",function(ot){ot.button===2&&ge.rightClickHandler(ot,He.textarea,He.screenElement,He._selectionService,He.options.rightClickSelectsWord)})):this.register(oe.addDisposableDomListener(this.element,"contextmenu",function(ot){ge.rightClickHandler(ot,He.textarea,He.screenElement,He._selectionService,He.options.rightClickSelectsWord)})),pe.isLinux&&this.register(oe.addDisposableDomListener(this.element,"auxclick",function(ot){ot.button===1&&ge.moveTextAreaUnderMouseCursor(ot,He.textarea,He.screenElement)}))},Me.prototype._bindKeys=function(){var He=this;this.register(oe.addDisposableDomListener(this.textarea,"keyup",function(Ne){return He._keyUp(Ne)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keydown",function(Ne){return He._keyDown(Ne)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keypress",function(Ne){return He._keyPress(Ne)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"compositionstart",function(){return He._compositionHelper.compositionstart()})),this.register(oe.addDisposableDomListener(this.textarea,"compositionupdate",function(Ne){return He._compositionHelper.compositionupdate(Ne)})),this.register(oe.addDisposableDomListener(this.textarea,"compositionend",function(){return He._compositionHelper.compositionend()})),this.register(this.onRender(function(){return He._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Ne){return He._queueLinkification(Ne.start,Ne.end)}))},Me.prototype.open=function(He){var Ne=this;if(!He)throw new Error("Terminal requires a parent element.");lt.body.contains(He)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=He.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"),He.appendChild(this.element);var ot=lt.createDocumentFragment();this._viewportElement=lt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ot.appendChild(this._viewportElement),this._viewportScrollArea=lt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=lt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=lt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ot.appendChild(this.screenElement),this.textarea=lt.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(Pt){return Ne._onTextAreaFocus(Pt)})),this.register(oe.addDisposableDomListener(this.textarea,"blur",function(){return Ne._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ze=this._instantiationService.createInstance(je.CoreBrowserService,this.textarea);this._instantiationService.setService(ve.ICoreBrowserService,Ze),this._charSizeService=this._instantiationService.createInstance(Se.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ve.ICharSizeService,this._charSizeService),this._compositionView=lt.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(ot),this._theme=this.options.theme||this._theme,this._colorManager=new le.ColorManager(lt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Pt){return Ne._colorManager.onOptionsChange(Pt)})),this._colorManager.setTheme(this._theme);var vt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(de.RenderService,vt,this.rows,this.screenElement)),this._instantiationService.setService(ve.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Pt){return Ne._onRender.fire(Pt)})),this.onResize(function(Pt){return Ne._renderService.resize(Pt.cols,Pt.rows)}),this._soundService=this._instantiationService.createInstance(y.SoundService),this._instantiationService.setService(ve.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(Le.MouseService),this._instantiationService.setService(ve.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(he.Viewport,function(Pt,Mt){return Ne.scrollLines(Pt,Mt)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Ne.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Ne._renderService.onCursorMove(),Ne._syncTextArea()})),this.register(this.onResize(function(){return Ne._renderService.onResize(Ne.cols,Ne.rows)})),this.register(this.onBlur(function(){return Ne._renderService.onBlur()})),this.register(this.onFocus(function(){return Ne._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Ne.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(se.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(ve.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Pt){return Ne.scrollLines(Pt.amount,Pt.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Ne._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Pt){return Ne._renderService.onSelectionChanged(Pt.start,Pt.end,Pt.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Pt){Ne.textarea.value=Pt,Ne.textarea.focus(),Ne.textarea.select()})),this.register(this.onScroll(function(){Ne.viewport.syncScrollArea(),Ne._selectionService.refresh()})),this.register(oe.addDisposableDomListener(this._viewportElement,"scroll",function(){return Ne._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(a.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Ne._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(Pt){return Ne._selectionService.onMouseDown(Pt)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Me.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(ce.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Me.prototype._setTheme=function(He){var Ne,ot,Ze;this._theme=He,(Ne=this._colorManager)===null||Ne===void 0||Ne.setTheme(He),(ot=this._renderService)===null||ot===void 0||ot.setColors(this._colorManager.colors),(Ze=this.viewport)===null||Ze===void 0||Ze.onThemeChange(this._colorManager.colors)},Me.prototype.bindMouse=function(){var He=this,Ne=this,ot=this.element;function Ze(Qe){var Et,Kt,bt=Ne._mouseService.getRawByteCoords(Qe,Ne.screenElement,Ne.cols,Ne.rows);if(!bt)return!1;switch(Qe.overrideType||Qe.type){case"mousemove":Kt=32,Qe.buttons===void 0?(Et=3,Qe.button!==void 0&&(Et=Qe.button<3?Qe.button:3)):Et=1&Qe.buttons?0:4&Qe.buttons?1:2&Qe.buttons?2:3;break;case"mouseup":Kt=0,Et=Qe.button<3?Qe.button:3;break;case"mousedown":Kt=1,Et=Qe.button<3?Qe.button:3;break;case"wheel":Qe.deltaY!==0&&(Kt=Qe.deltaY<0?0:1),Et=4;break;default:return!1}return!(Kt===void 0||Et===void 0||Et>4)&&Ne._coreMouseService.triggerMouseEvent({col:bt.x-33,row:bt.y-33,button:Et,action:Kt,ctrl:Qe.ctrlKey,alt:Qe.altKey,shift:Qe.shiftKey})}var vt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Pt=function(Qe){return Ze(Qe),Qe.buttons||(He._document.removeEventListener("mouseup",vt.mouseup),vt.mousedrag&&He._document.removeEventListener("mousemove",vt.mousedrag)),He.cancel(Qe)},Mt=function(Qe){return Ze(Qe),Qe.preventDefault(),He.cancel(Qe)},At=function(Qe){Qe.buttons&&Ze(Qe)},et=function(Qe){Qe.buttons||Ze(Qe)};this.register(this._coreMouseService.onProtocolChange(function(Qe){Qe?(He.optionsService.options.logLevel==="debug"&&He._logService.debug("Binding to mouse events:",He._coreMouseService.explainEvents(Qe)),He.element.classList.add("enable-mouse-events"),He._selectionService.disable()):(He._logService.debug("Unbinding from mouse events."),He.element.classList.remove("enable-mouse-events"),He._selectionService.enable()),8&Qe?vt.mousemove||(ot.addEventListener("mousemove",et),vt.mousemove=et):(ot.removeEventListener("mousemove",vt.mousemove),vt.mousemove=null),16&Qe?vt.wheel||(ot.addEventListener("wheel",Mt,{passive:!1}),vt.wheel=Mt):(ot.removeEventListener("wheel",vt.wheel),vt.wheel=null),2&Qe?vt.mouseup||(vt.mouseup=Pt):(He._document.removeEventListener("mouseup",vt.mouseup),vt.mouseup=null),4&Qe?vt.mousedrag||(vt.mousedrag=At):(He._document.removeEventListener("mousemove",vt.mousedrag),vt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(oe.addDisposableDomListener(ot,"mousedown",function(Qe){if(Qe.preventDefault(),He.focus(),He._coreMouseService.areMouseEventsActive&&!He._selectionService.shouldForceSelection(Qe))return Ze(Qe),vt.mouseup&&He._document.addEventListener("mouseup",vt.mouseup),vt.mousedrag&&He._document.addEventListener("mousemove",vt.mousedrag),He.cancel(Qe)})),this.register(oe.addDisposableDomListener(ot,"wheel",function(Qe){if(!vt.wheel){if(!He.buffer.hasScrollback){var Et=He.viewport.getLinesScrolled(Qe);if(Et===0)return;for(var Kt=ie.C0.ESC+(He._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Qe.deltaY<0?"A":"B"),bt="",Wt=0;Wt<Math.abs(Et);Wt++)bt+=Kt;He._coreService.triggerDataEvent(bt,!0)}}},{passive:!0})),this.register(oe.addDisposableDomListener(ot,"wheel",function(Qe){if(!vt.wheel)return He.viewport.onWheel(Qe)?void 0:He.cancel(Qe)},{passive:!1})),this.register(oe.addDisposableDomListener(ot,"touchstart",function(Qe){if(!He._coreMouseService.areMouseEventsActive)return He.viewport.onTouchStart(Qe),He.cancel(Qe)},{passive:!0})),this.register(oe.addDisposableDomListener(ot,"touchmove",function(Qe){if(!He._coreMouseService.areMouseEventsActive)return He.viewport.onTouchMove(Qe)?void 0:He.cancel(Qe)},{passive:!1}))},Me.prototype.refresh=function(He,Ne){var ot;(ot=this._renderService)===null||ot===void 0||ot.refreshRows(He,Ne)},Me.prototype._queueLinkification=function(He,Ne){var ot;(ot=this.linkifier)===null||ot===void 0||ot.linkifyRows(He,Ne)},Me.prototype.updateCursorStyle=function(He){this._selectionService&&this._selectionService.shouldColumnSelect(He)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Me.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Me.prototype.scrollLines=function(He,Ne){ft.prototype.scrollLines.call(this,He,Ne),this.refresh(0,this.rows-1)},Me.prototype.paste=function(He){ge.paste(He,this.textarea,this._coreService)},Me.prototype.attachCustomKeyEventHandler=function(He){this._customKeyEventHandler=He},Me.prototype.registerLinkMatcher=function(He,Ne,ot){var Ze=this.linkifier.registerLinkMatcher(He,Ne,ot);return this.refresh(0,this.rows-1),Ze},Me.prototype.deregisterLinkMatcher=function(He){this.linkifier.deregisterLinkMatcher(He)&&this.refresh(0,this.rows-1)},Me.prototype.registerLinkProvider=function(He){return this.linkifier2.registerLinkProvider(He)},Me.prototype.registerCharacterJoiner=function(He){var Ne=this._renderService.registerCharacterJoiner(He);return this.refresh(0,this.rows-1),Ne},Me.prototype.deregisterCharacterJoiner=function(He){this._renderService.deregisterCharacterJoiner(He)&&this.refresh(0,this.rows-1)},Object.defineProperty(Me.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Me.prototype.addMarker=function(He){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+He)},Me.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Me.prototype.select=function(He,Ne,ot){this._selectionService.setSelection(He,Ne,ot)},Me.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Me.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Me.prototype.clearSelection=function(){var He;(He=this._selectionService)===null||He===void 0||He.clearSelection()},Me.prototype.selectAll=function(){var He;(He=this._selectionService)===null||He===void 0||He.selectAll()},Me.prototype.selectLines=function(He,Ne){var ot;(ot=this._selectionService)===null||ot===void 0||ot.selectLines(He,Ne)},Me.prototype._keyDown=function(He){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(He)===!1)return!1;if(!this._compositionHelper.keydown(He))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var Ne=x.evaluateKeyboardEvent(He,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(He),Ne.type===3||Ne.type===2){var ot=this.rows-1;return this.scrollLines(Ne.type===2?-ot:ot),this.cancel(He,!0)}return Ne.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,He)||(Ne.cancel&&this.cancel(He,!0),!Ne.key||(Ne.key!==ie.C0.ETX&&Ne.key!==ie.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Ne.key,domEvent:He}),this._showCursor(),this._coreService.triggerDataEvent(Ne.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(He,!0)))},Me.prototype._isThirdLevelShift=function(He,Ne){var ot=He.isMac&&!this.options.macOptionIsMeta&&Ne.altKey&&!Ne.ctrlKey&&!Ne.metaKey||He.isWindows&&Ne.altKey&&Ne.ctrlKey&&!Ne.metaKey;return Ne.type==="keypress"?ot:ot&&(!Ne.keyCode||Ne.keyCode>47)},Me.prototype._keyUp=function(He){this._customKeyEventHandler&&this._customKeyEventHandler(He)===!1||(function(Ne){return Ne.keyCode===16||Ne.keyCode===17||Ne.keyCode===18}(He)||this.focus(),this.updateCursorStyle(He))},Me.prototype._keyPress=function(He){var Ne;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(He)===!1)return!1;if(this.cancel(He),He.charCode)Ne=He.charCode;else if(He.which===null||He.which===void 0)Ne=He.keyCode;else{if(He.which===0||He.charCode===0)return!1;Ne=He.which}return!(!Ne||(He.altKey||He.ctrlKey||He.metaKey)&&!this._isThirdLevelShift(this.browser,He))&&(Ne=String.fromCharCode(Ne),this._onKey.fire({key:Ne,domEvent:He}),this._showCursor(),this._coreService.triggerDataEvent(Ne,!0),!0)},Me.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Me.prototype.resize=function(He,Ne){He!==this.cols||Ne!==this.rows?ft.prototype.resize.call(this,He,Ne):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Me.prototype._afterResize=function(He,Ne){var ot,Ze;(ot=this._charSizeService)===null||ot===void 0||ot.measure(),(Ze=this.viewport)===null||Ze===void 0||Ze.syncScrollArea(!0)},Me.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var He=1;He<this.rows;He++)this.buffer.lines.push(this.buffer.getBlankLine(re.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Me.prototype.reset=function(){var He,Ne;this.options.rows=this.rows,this.options.cols=this.cols;var ot=this._customKeyEventHandler;this._setup(),ft.prototype.reset.call(this),(He=this._selectionService)===null||He===void 0||He.reset(),this._customKeyEventHandler=ot,this.refresh(0,this.rows-1),(Ne=this.viewport)===null||Ne===void 0||Ne.syncScrollArea()},Me.prototype._reportWindowsOptions=function(He){if(this._renderService)switch(He){case ue.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Ne=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ot=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[4;"+ot+";"+Ne+"t");break;case ue.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ze=this._renderService.dimensions.scaledCellWidth.toFixed(0),vt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[6;"+vt+";"+Ze+"t")}},Me.prototype.cancel=function(He,Ne){if(this.options.cancelEvents||Ne)return He.preventDefault(),He.stopPropagation(),!1},Me.prototype._visualBell=function(){return!1},Me.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Me}(xe.CoreTerminal);ee.Terminal=Ye},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(ie,ue,ce,me){var se,pe=arguments.length,oe=pe<3?ue:me===null?me=Object.getOwnPropertyDescriptor(ue,ce):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,ue,ce,me);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(oe=(pe<3?se(oe):pe>3?se(ue,ce,oe):se(ue,ce))||oe);return pe>3&&oe&&Object.defineProperty(ue,ce,oe),oe},be=this&&this.__param||function(ie,ue){return function(ce,me){ue(ce,me,ie)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CompositionHelper=void 0;var ye=te(5),he=te(1),ge=function(){function ie(ue,ce,me,se,pe,oe){this._textarea=ue,this._compositionView=ce,this._bufferService=me,this._optionsService=se,this._charSizeService=pe,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(ue){var ce=this;this._compositionView.textContent=ue.data,this.updateCompositionElements(),setTimeout(function(){ce._compositionPosition.end=ce._textarea.value.length},0)},ie.prototype.compositionend=function(){this._finalizeComposition(!0)},ie.prototype.keydown=function(ue){if(this._isComposing||this._isSendingComposition){if(ue.keyCode===229||ue.keyCode===16||ue.keyCode===17||ue.keyCode===18)return!1;this._finalizeComposition(!1)}return ue.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ie.prototype._finalizeComposition=function(ue){var ce=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,ue){var me={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(ce._isSendingComposition){ce._isSendingComposition=!1;var pe=void 0;pe=ce._isComposing?ce._textarea.value.substring(me.start,me.end):ce._textarea.value.substring(me.start),ce._coreService.triggerDataEvent(pe,!0)}},0)}else{this._isSendingComposition=!1;var se=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(se,!0)}},ie.prototype._handleAnyTextareaChanges=function(){var ue=this,ce=this._textarea.value;setTimeout(function(){if(!ue._isComposing){var me=ue._textarea.value.replace(ce,"");me.length>0&&ue._coreService.triggerDataEvent(me,!0)}},0)},ie.prototype.updateCompositionElements=function(ue){var ce=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var me=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),se=this._bufferService.buffer.y*me,pe=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=pe+"px",this._compositionView.style.top=se+"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=pe+"px",this._textarea.style.top=se+"px",this._textarea.style.width=oe.width+"px",this._textarea.style.height=oe.height+"px",this._textarea.style.lineHeight=oe.height+"px"}ue||setTimeout(function(){return ce.updateCompositionElements(!0)},0)}},ie=fe([be(2,he.IBufferService),be(3,he.IOptionsService),be(4,ye.ICharSizeService),be(5,he.ICoreService)],ie)}();ee.CompositionHelper=ge},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var y in ne)ne.hasOwnProperty(y)&&(oe[y]=ne[y])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var y,a=arguments.length,E=a<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(y=se[b])&&(E=(a<3?y(E):a>3?y(pe,oe,E):y(pe,oe))||E);return a>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Viewport=void 0;var ge=te(2),ie=te(7),ue=te(5),ce=te(1),me=function(se){function pe(oe,ne,y,a,E,b,x){var z=se.call(this)||this;return z._scrollLines=oe,z._viewportElement=ne,z._scrollArea=y,z._bufferService=a,z._optionsService=E,z._charSizeService=b,z._renderService=x,z.scrollBarWidth=0,z._currentRowHeight=0,z._lastRecordedBufferLength=0,z._lastRecordedViewportHeight=0,z._lastRecordedBufferHeight=0,z._lastTouchY=0,z._lastScrollTop=0,z._wheelPartialScroll=0,z._refreshAnimationFrame=null,z._ignoreNextScrollEvent=!1,z.scrollBarWidth=z._viewportElement.offsetWidth-z._scrollArea.offsetWidth||15,z.register(ie.addDisposableDomListener(z._viewportElement,"scroll",z._onScroll.bind(z))),setTimeout(function(){return z.syncScrollArea()},0),z}return be(pe,se),pe.prototype.onThemeChange=function(oe){this._viewportElement.style.backgroundColor=oe.background.css},pe.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()}))},pe.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},pe.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)},pe.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)}},pe.prototype._bubbleScroll=function(oe,ne){var y=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&y<this._lastRecordedBufferHeight)||(oe.cancelable&&oe.preventDefault(),!1)},pe.prototype.onWheel=function(oe){var ne=this._getPixelsScrolled(oe);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},pe.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},pe.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},pe.prototype._applyScrollModifier=function(oe,ne){var y=this._optionsService.options.fastScrollModifier;return y==="alt"&&ne.altKey||y==="ctrl"&&ne.ctrlKey||y==="shift"&&ne.shiftKey?oe*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:oe*this._optionsService.options.scrollSensitivity},pe.prototype.onTouchStart=function(oe){this._lastTouchY=oe.touches[0].pageY},pe.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))},pe=ye([he(3,ce.IBufferService),he(4,ce.IOptionsService),he(5,ue.ICharSizeService),he(6,ue.IRenderService)],pe)}(ge.Disposable);ee.Viewport=me},function(Ve,ee,te){"use strict";function fe(ge){return ge.replace(/\r?\n/g,"\r")}function be(ge,ie){return ie?"\x1B[200~"+ge+"\x1B[201~":ge}function ye(ge,ie,ue){ge=be(ge=fe(ge),ue.decPrivateModes.bracketedPasteMode),ue.triggerDataEvent(ge,!0),ie.value=""}function he(ge,ie,ue){var ce=ue.getBoundingClientRect(),me=ge.clientX-ce.left-10,se=ge.clientY-ce.top-10;ie.style.width="20px",ie.style.height="20px",ie.style.left=me+"px",ie.style.top=se+"px",ie.style.zIndex="1000",ie.focus()}Object.defineProperty(ee,"__esModule",{value:!0}),ee.rightClickHandler=ee.moveTextAreaUnderMouseCursor=ee.paste=ee.handlePasteEvent=ee.copyHandler=ee.bracketTextForPaste=ee.prepareTextForTerminal=void 0,ee.prepareTextForTerminal=fe,ee.bracketTextForPaste=be,ee.copyHandler=function(ge,ie){ge.clipboardData&&ge.clipboardData.setData("text/plain",ie.selectionText),ge.preventDefault()},ee.handlePasteEvent=function(ge,ie,ue){ge.stopPropagation(),ge.clipboardData&&ye(ge.clipboardData.getData("text/plain"),ie,ue)},ee.paste=ye,ee.moveTextAreaUnderMouseCursor=he,ee.rightClickHandler=function(ge,ie,ue,ce,me){he(ge,ie,ue),me&&!ce.isClickInSelection(ge)&&ce.selectWordAtCursor(ge),ie.value=ce.selectionText,ie.select()}},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var y in ne)ne.hasOwnProperty(y)&&(oe[y]=ne[y])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.EscapeSequenceParser=ee.VT500_TRANSITION_TABLE=ee.TransitionTable=void 0;var ye=te(2),he=te(15),ge=te(21),ie=te(22),ue=te(24),ce=function(){function se(pe){this.table=new Uint8Array(pe)}return se.prototype.setDefault=function(pe,oe){he.fill(this.table,pe<<4|oe)},se.prototype.add=function(pe,oe,ne,y){this.table[oe<<8|pe]=ne<<4|y},se.prototype.addMany=function(pe,oe,ne,y){for(var a=0;a<pe.length;a++)this.table[oe<<8|pe[a]]=ne<<4|y},se}();ee.TransitionTable=ce,ee.VT500_TRANSITION_TABLE=function(){var se=new ce(4095),pe=Array.apply(null,Array(256)).map(function(b,x){return x}),oe=function(b,x){return pe.slice(b,x)},ne=oe(32,127),y=oe(0,24);y.push(25),y.push.apply(y,oe(28,32));var a,E=oe(0,14);for(a in se.setDefault(1,0),se.addMany(ne,0,2,0),E)se.addMany([24,26,153,154],a,3,0),se.addMany(oe(128,144),a,3,0),se.addMany(oe(144,152),a,3,0),se.add(156,a,0,0),se.add(27,a,11,1),se.add(157,a,4,8),se.addMany([152,158,159],a,0,7),se.add(155,a,11,3),se.add(144,a,11,9);return se.addMany(y,0,3,0),se.addMany(y,1,3,1),se.add(127,1,0,1),se.addMany(y,8,0,8),se.addMany(y,3,3,3),se.add(127,3,0,3),se.addMany(y,4,3,4),se.add(127,4,0,4),se.addMany(y,6,3,6),se.addMany(y,5,3,5),se.add(127,5,0,5),se.addMany(y,2,3,2),se.add(127,2,0,2),se.add(93,1,4,8),se.addMany(ne,8,5,8),se.add(127,8,5,8),se.addMany([156,27,24,26,7],8,6,0),se.addMany(oe(28,32),8,0,8),se.addMany([88,94,95],1,0,7),se.addMany(ne,7,0,7),se.addMany(y,7,0,7),se.add(156,7,0,0),se.add(127,7,0,7),se.add(91,1,11,3),se.addMany(oe(64,127),3,7,0),se.addMany(oe(48,60),3,8,4),se.addMany([60,61,62,63],3,9,4),se.addMany(oe(48,60),4,8,4),se.addMany(oe(64,127),4,7,0),se.addMany([60,61,62,63],4,0,6),se.addMany(oe(32,64),6,0,6),se.add(127,6,0,6),se.addMany(oe(64,127),6,0,0),se.addMany(oe(32,48),3,9,5),se.addMany(oe(32,48),5,9,5),se.addMany(oe(48,64),5,0,6),se.addMany(oe(64,127),5,7,0),se.addMany(oe(32,48),4,9,5),se.addMany(oe(32,48),1,9,2),se.addMany(oe(32,48),2,9,2),se.addMany(oe(48,127),2,10,0),se.addMany(oe(48,80),1,10,0),se.addMany(oe(81,88),1,10,0),se.addMany([89,90,92],1,10,0),se.addMany(oe(96,127),1,10,0),se.add(80,1,11,9),se.addMany(y,9,0,9),se.add(127,9,0,9),se.addMany(oe(28,32),9,0,9),se.addMany(oe(32,48),9,9,12),se.addMany(oe(48,60),9,8,10),se.addMany([60,61,62,63],9,9,10),se.addMany(y,11,0,11),se.addMany(oe(32,128),11,0,11),se.addMany(oe(28,32),11,0,11),se.addMany(y,10,0,10),se.add(127,10,0,10),se.addMany(oe(28,32),10,0,10),se.addMany(oe(48,60),10,8,10),se.addMany([60,61,62,63],10,0,11),se.addMany(oe(32,48),10,9,12),se.addMany(y,12,0,12),se.add(127,12,0,12),se.addMany(oe(28,32),12,0,12),se.addMany(oe(32,48),12,9,12),se.addMany(oe(48,64),12,0,11),se.addMany(oe(64,127),12,12,13),se.addMany(oe(64,127),10,12,13),se.addMany(oe(64,127),9,12,13),se.addMany(y,13,13,13),se.addMany(ne,13,13,13),se.add(127,13,0,13),se.addMany([27,156,24,26],13,14,0),se.add(160,0,2,0),se.add(160,8,5,8),se.add(160,6,0,6),se.add(160,11,0,11),se.add(160,13,13,13),se}();var me=function(se){function pe(oe){oe===void 0&&(oe=ee.VT500_TRANSITION_TABLE);var ne=se.call(this)||this;return ne._transitions=oe,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new ge.Params,ne._params.addParam(0),ne._collect=0,ne.precedingCodepoint=0,ne._printHandlerFb=function(y,a,E){},ne._executeHandlerFb=function(y){},ne._csiHandlerFb=function(y,a){},ne._escHandlerFb=function(y){},ne._errorHandlerFb=function(y){return y},ne._printHandler=ne._printHandlerFb,ne._executeHandlers=Object.create(null),ne._csiHandlers=Object.create(null),ne._escHandlers=Object.create(null),ne._oscParser=new ie.OscParser,ne._dcsParser=new ue.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return be(pe,se),pe.prototype._identifier=function(oe,ne){ne===void 0&&(ne=[64,126]);var y=0;if(oe.prefix){if(oe.prefix.length>1)throw new Error("only one byte as prefix supported");if((y=oe.prefix.charCodeAt(0))&&60>y||y>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 a=0;a<oe.intermediates.length;++a){var E=oe.intermediates.charCodeAt(a);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");y<<=8,y|=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 y<<=8,y|=b},pe.prototype.identToString=function(oe){for(var ne=[];oe;)ne.push(String.fromCharCode(255&oe)),oe>>=8;return ne.reverse().join("")},pe.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},pe.prototype.setPrintHandler=function(oe){this._printHandler=oe},pe.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},pe.prototype.addEscHandler=function(oe,ne){var y=this._identifier(oe,[48,126]);this._escHandlers[y]===void 0&&(this._escHandlers[y]=[]);var a=this._escHandlers[y];return a.push(ne),{dispose:function(){var E=a.indexOf(ne);E!==-1&&a.splice(E,1)}}},pe.prototype.setEscHandler=function(oe,ne){this._escHandlers[this._identifier(oe,[48,126])]=[ne]},pe.prototype.clearEscHandler=function(oe){this._escHandlers[this._identifier(oe,[48,126])]&&delete this._escHandlers[this._identifier(oe,[48,126])]},pe.prototype.setEscHandlerFallback=function(oe){this._escHandlerFb=oe},pe.prototype.setExecuteHandler=function(oe,ne){this._executeHandlers[oe.charCodeAt(0)]=ne},pe.prototype.clearExecuteHandler=function(oe){this._executeHandlers[oe.charCodeAt(0)]&&delete this._executeHandlers[oe.charCodeAt(0)]},pe.prototype.setExecuteHandlerFallback=function(oe){this._executeHandlerFb=oe},pe.prototype.addCsiHandler=function(oe,ne){var y=this._identifier(oe);this._csiHandlers[y]===void 0&&(this._csiHandlers[y]=[]);var a=this._csiHandlers[y];return a.push(ne),{dispose:function(){var E=a.indexOf(ne);E!==-1&&a.splice(E,1)}}},pe.prototype.setCsiHandler=function(oe,ne){this._csiHandlers[this._identifier(oe)]=[ne]},pe.prototype.clearCsiHandler=function(oe){this._csiHandlers[this._identifier(oe)]&&delete this._csiHandlers[this._identifier(oe)]},pe.prototype.setCsiHandlerFallback=function(oe){this._csiHandlerFb=oe},pe.prototype.addDcsHandler=function(oe,ne){return this._dcsParser.addHandler(this._identifier(oe),ne)},pe.prototype.setDcsHandler=function(oe,ne){this._dcsParser.setHandler(this._identifier(oe),ne)},pe.prototype.clearDcsHandler=function(oe){this._dcsParser.clearHandler(this._identifier(oe))},pe.prototype.setDcsHandlerFallback=function(oe){this._dcsParser.setHandlerFallback(oe)},pe.prototype.addOscHandler=function(oe,ne){return this._oscParser.addHandler(oe,ne)},pe.prototype.setOscHandler=function(oe,ne){this._oscParser.setHandler(oe,ne)},pe.prototype.clearOscHandler=function(oe){this._oscParser.clearHandler(oe)},pe.prototype.setOscHandlerFallback=function(oe){this._oscParser.setHandlerFallback(oe)},pe.prototype.setErrorHandler=function(oe){this._errorHandler=oe},pe.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},pe.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},pe.prototype.parse=function(oe,ne){for(var y=0,a=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,z=this._collect,re=this._params,le=this._transitions.table,de=0;de<ne;++de){switch((a=le[E<<8|((y=oe[de])<160?y:160)])>>4){case 2:for(var ve=de+1;;++ve){if(ve>=ne||(y=oe[ve])<32||y>126&&y<160){this._printHandler(oe,de,ve),de=ve-1;break}if(++ve>=ne||(y=oe[ve])<32||y>126&&y<160){this._printHandler(oe,de,ve),de=ve-1;break}if(++ve>=ne||(y=oe[ve])<32||y>126&&y<160){this._printHandler(oe,de,ve),de=ve-1;break}if(++ve>=ne||(y=oe[ve])<32||y>126&&y<160){this._printHandler(oe,de,ve),de=ve-1;break}}break;case 3:this._executeHandlers[y]?this._executeHandlers[y]():this._executeHandlerFb(y),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:de,code:y,currentState:E,collect:z,params:re,abort:!1}).abort)return;break;case 7:for(var Se=this._csiHandlers[z<<8|y],Le=Se?Se.length-1:-1;Le>=0&&Se[Le](re)===!1;Le--);Le<0&&this._csiHandlerFb(z<<8|y,re),this.precedingCodepoint=0;break;case 8:do switch(y){case 59:re.addParam(0);break;case 58:re.addSubParam(-1);break;default:re.addDigit(y-48)}while(++de<ne&&(y=oe[de])>47&&y<60);de--;break;case 9:z<<=8,z|=y;break;case 10:for(var Ee=this._escHandlers[z<<8|y],je=Ee?Ee.length-1:-1;je>=0&&Ee[je]()===!1;je--);je<0&&this._escHandlerFb(z<<8|y),this.precedingCodepoint=0;break;case 11:re.reset(),re.addParam(0),z=0;break;case 12:x.hook(z<<8|y,re);break;case 13:for(var xe=de+1;;++xe)if(xe>=ne||(y=oe[xe])===24||y===26||y===27||y>127&&y<160){x.put(oe,de,xe),de=xe-1;break}break;case 14:x.unhook(y!==24&&y!==26),y===27&&(a|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var lt=de+1;;lt++)if(lt>=ne||(y=oe[lt])<32||y>127&&y<=159){b.put(oe,de,lt),de=lt-1;break}break;case 6:b.end(y!==24&&y!==26),y===27&&(a|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0}E=15&a}this._collect=z,this.currentState=E},pe}(ye.Disposable);ee.EscapeSequenceParser=me},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var le in re)re.hasOwnProperty(le)&&(z[le]=re[le])})(b,x)},function(b,x){function z(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ye=this&&this.__decorate||function(b,x,z,re){var le,de=arguments.length,ve=de<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,x,z,re);else for(var Se=b.length-1;Se>=0;Se--)(le=b[Se])&&(ve=(de<3?le(ve):de>3?le(x,z,ve):le(x,z))||ve);return de>3&&ve&&Object.defineProperty(x,z,ve),ve},he=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Renderer=void 0;var ge=te(41),ie=te(47),ue=te(48),ce=te(49),me=te(29),se=te(2),pe=te(5),oe=te(1),ne=te(25),y=te(0),a=1,E=function(b){function x(z,re,le,de,ve,Se,Le,Ee,je){var xe=b.call(this)||this;xe._colors=z,xe._screenElement=re,xe._bufferService=ve,xe._charSizeService=Se,xe._optionsService=Le,xe._id=a++,xe._onRequestRedraw=new y.EventEmitter;var lt=xe._optionsService.options.allowTransparency;return xe._characterJoinerRegistry=new me.CharacterJoinerRegistry(xe._bufferService),xe._renderLayers=[new ge.TextRenderLayer(xe._screenElement,0,xe._colors,xe._characterJoinerRegistry,lt,xe._id,xe._bufferService,Le),new ie.SelectionRenderLayer(xe._screenElement,1,xe._colors,xe._id,xe._bufferService,Le),new ce.LinkRenderLayer(xe._screenElement,2,xe._colors,xe._id,le,de,xe._bufferService,Le),new ue.CursorRenderLayer(xe._screenElement,3,xe._colors,xe._id,xe._onRequestRedraw,xe._bufferService,Le,Ee,je)],xe.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},xe._devicePixelRatio=window.devicePixelRatio,xe._updateDimensions(),xe.onOptionsChanged(),xe}return be(x,b),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){for(var z=0,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,le=this._renderLayers;re<le.length;re++){var de=le[re];de.setColors(this._colors),de.reset()}},x.prototype.onResize=function(z,re){this._updateDimensions();for(var le=0,de=this._renderLayers;le<de.length;le++)de[le].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,le){le===void 0&&(le=!1),this._runOperation(function(de){return de.onSelectionChanged(z,re,le)})},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,le=this._renderLayers;re<le.length;re++)z(le[re])},x.prototype.renderRows=function(z,re){for(var le=0,de=this._renderLayers;le<de.length;le++)de[le].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([he(4,oe.IBufferService),he(5,pe.ICharSizeService),he(6,oe.IOptionsService),he(7,oe.ICoreService),he(8,pe.ICoreBrowserService)],x)}(se.Disposable);ee.Renderer=E},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var y in ne)ne.hasOwnProperty(y)&&(oe[y]=ne[y])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.TextRenderLayer=void 0;var ye=te(42),he=te(13),ge=te(6),ie=te(3),ue=te(29),ce=te(4),me=function(se){function pe(oe,ne,y,a,E,b,x,z){var re=se.call(this,oe,"text",ne,E,y,b,x,z)||this;return re._characterWidth=0,re._characterFont="",re._characterOverlapCache={},re._workCell=new ce.CellData,re._state=new ye.GridCache,re._characterJoinerRegistry=a,re}return be(pe,se),pe.prototype.resize=function(oe){se.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)},pe.prototype.reset=function(){this._state.clear(),this._clearAll()},pe.prototype._forEachCell=function(oe,ne,y,a){for(var E=oe;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),z=y?y.getJoinedCharacters(b):[],re=0;re<this._bufferService.cols;re++){x.loadCell(re,this._workCell);var le=this._workCell,de=!1,ve=re;if(le.getWidth()!==0){if(z.length>0&&re===z[0][0]){de=!0;var Se=z.shift();le=new ue.JoinedCellData(this._workCell,x.translateToString(!0,Se[0],Se[1]),Se[1]-Se[0]),ve=Se[1]-1}!de&&this._isOverlapping(le)&&ve<x.length-1&&x.getCodePoint(ve+1)===ie.NULL_CELL_CODE&&(le.content&=-12582913,le.content|=2<<22),a(le,re,E),re=ve}}},pe.prototype._drawBackground=function(oe,ne){var y=this,a=this._ctx,E=this._bufferService.cols,b=0,x=0,z=null;a.save(),this._forEachCell(oe,ne,null,function(re,le,de){var ve=null;re.isInverse()?ve=re.isFgDefault()?y._colors.foreground.css:re.isFgRGB()?"rgb("+ge.AttributeData.toColorRGB(re.getFgColor()).join(",")+")":y._colors.ansi[re.getFgColor()].css:re.isBgRGB()?ve="rgb("+ge.AttributeData.toColorRGB(re.getBgColor()).join(",")+")":re.isBgPalette()&&(ve=y._colors.ansi[re.getBgColor()].css),z===null&&(b=le,x=de),de!==x?(a.fillStyle=z||"",y._fillCells(b,x,E-b,1),b=le,x=de):z!==ve&&(a.fillStyle=z||"",y._fillCells(b,x,le-b,1),b=le,x=de),z=ve}),z!==null&&(a.fillStyle=z,this._fillCells(b,x,E-b,1)),a.restore()},pe.prototype._drawForeground=function(oe,ne){var y=this;this._forEachCell(oe,ne,this._characterJoinerRegistry,function(a,E,b){if(!a.isInvisible()&&(y._drawChars(a,E,b),a.isUnderline())){if(y._ctx.save(),a.isInverse())if(a.isBgDefault())y._ctx.fillStyle=y._colors.background.css;else if(a.isBgRGB())y._ctx.fillStyle="rgb("+ge.AttributeData.toColorRGB(a.getBgColor()).join(",")+")";else{var x=a.getBgColor();y._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&x<8&&(x+=8),y._ctx.fillStyle=y._colors.ansi[x].css}else if(a.isFgDefault())y._ctx.fillStyle=y._colors.foreground.css;else if(a.isFgRGB())y._ctx.fillStyle="rgb("+ge.AttributeData.toColorRGB(a.getFgColor()).join(",")+")";else{var z=a.getFgColor();y._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&z<8&&(z+=8),y._ctx.fillStyle=y._colors.ansi[z].css}y._fillBottomLineAtCells(E,b,a.getWidth()),y._ctx.restore()}})},pe.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))},pe.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},pe.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 y=Math.floor(this._ctx.measureText(ne).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=y,y},pe}(he.BaseRenderLayer);ee.TextRenderLayer=me},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.GridCache=void 0;var fe=function(){function be(){this.cache=[]}return be.prototype.resize=function(ye,he){for(var ge=0;ge<ye;ge++){this.cache.length<=ge&&this.cache.push([]);for(var ie=this.cache[ge].length;ie<he;ie++)this.cache[ge].push(void 0);this.cache[ge].length=he}this.cache.length=ye},be.prototype.clear=function(){for(var ye=0;ye<this.cache.length;ye++)for(var he=0;he<this.cache[ye].length;he++)this.cache[ye][he]=void 0},be}();ee.GridCache=fe},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(y,a){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,b){E.__proto__=b}||function(E,b){for(var x in b)b.hasOwnProperty(x)&&(E[x]=b[x])})(y,a)},function(y,a){function E(){this.constructor=y}fe(y,a),y.prototype=a===null?Object.create(a):(E.prototype=a.prototype,new E)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.NoneCharAtlas=ee.DynamicCharAtlas=ee.getGlyphCacheKey=void 0;var ye=te(9),he=te(44),ge=te(27),ie=te(46),ue=te(11),ce=te(28),me=te(10),se={css:"rgba(0, 0, 0, 0)",rgba:0};function pe(y){return y.code<<21|y.bg<<12|y.fg<<3|(y.bold?0:4)+(y.dim?0:2)+(y.italic?0:1)}ee.getGlyphCacheKey=pe;var oe=function(y){function a(E,b){var x=y.call(this)||this;x._config=b,x._drawToCacheCount=0,x._glyphsWaitingOnBitmap=[],x._bitmapCommitTimeout=null,x._bitmap=null,x._cacheCanvas=E.createElement("canvas"),x._cacheCanvas.width=1024,x._cacheCanvas.height=1024,x._cacheCtx=ce.throwIfFalsy(x._cacheCanvas.getContext("2d",{alpha:!0}));var z=E.createElement("canvas");z.width=x._config.scaledCharWidth,z.height=x._config.scaledCharHeight,x._tmpCtx=ce.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(a,y),a.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},a.prototype.beginFrame=function(){this._drawToCacheCount=0},a.prototype.draw=function(E,b,x,z){if(b.code===32)return!0;if(!this._canCache(b))return!1;var re=pe(b),le=this._cacheMap.get(re);if(le!=null)return this._drawFromCache(E,le,x,z),!0;if(this._drawToCacheCount<100){var de=void 0;de=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ve=this._drawToCache(b,de);return this._cacheMap.set(re,ve),this._drawFromCache(E,ve,x,z),!0}return!1},a.prototype._canCache=function(E){return E.code<256},a.prototype._toCoordinateX=function(E){return E%this._width*this._config.scaledCharWidth},a.prototype._toCoordinateY=function(E){return Math.floor(E/this._width)*this._config.scaledCharHeight},a.prototype._drawFromCache=function(E,b,x,z){if(!b.isEmpty){var re=this._toCoordinateX(b.index),le=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,re,le,this._config.scaledCharWidth,this._config.scaledCharHeight,x,z,this._config.scaledCharWidth,this._config.scaledCharHeight)}},a.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:ge.DEFAULT_ANSI_COLORS[E]},a.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?se:E.bg===ye.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:E.bg<256?this._getColorFromAnsiIndex(E.bg):this._config.colors.background},a.prototype._getForegroundColor=function(E){return E.fg===ye.INVERTED_DEFAULT_COLOR?me.color.opaque(this._config.colors.background):E.fg<256?this._getColorFromAnsiIndex(E.fg):this._config.colors.foreground},a.prototype._drawToCache=function(E,b){this._drawToCacheCount++,this._tmpCtx.save();var x=this._getBackgroundColor(E);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=x.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var z=E.bold?this._config.fontWeightBold:this._config.fontWeight,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 le=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),de=!1;this._config.allowTransparency||(de=function(Ee,je){for(var xe=!0,lt=je.rgba>>>24,Ye=je.rgba>>>16&255,ft=je.rgba>>>8&255,Me=0;Me<Ee.data.length;Me+=4)Ee.data[Me]===lt&&Ee.data[Me+1]===Ye&&Ee.data[Me+2]===ft?Ee.data[Me+3]=0:xe=!1;return xe}(le,x));var ve=this._toCoordinateX(b),Se=this._toCoordinateY(b);this._cacheCtx.putImageData(le,ve,Se);var Le={index:b,isEmpty:de,inBitmap:!1};return this._addGlyphToBitmap(Le),Le},a.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||ue.isFirefox||ue.isSafari||(this._glyphsWaitingOnBitmap.push(E),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},a.prototype._generateBitmap=function(){var E=this,b=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(x){E._bitmap=x;for(var z=0;z<b.length;z++)b[z].inBitmap=!0}),this._bitmapCommitTimeout=null},a}(he.BaseCharAtlas);ee.DynamicCharAtlas=oe;var ne=function(y){function a(E,b){return y.call(this)||this}return be(a,y),a.prototype.draw=function(E,b,x,z){return!1},a}(he.BaseCharAtlas);ee.NoneCharAtlas=ne},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseCharAtlas=void 0;var fe=function(){function be(){this._didWarmUp=!1}return be.prototype.dispose=function(){},be.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},be.prototype._doWarmUp=function(){},be.prototype.beginFrame=function(){},be}();ee.BaseCharAtlas=fe},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorContrastCache=void 0;var fe=function(){function be(){this._color={},this._rgba={}}return be.prototype.clear=function(){this._color={},this._rgba={}},be.prototype.setCss=function(ye,he,ge){this._rgba[ye]||(this._rgba[ye]={}),this._rgba[ye][he]=ge},be.prototype.getCss=function(ye,he){return this._rgba[ye]?this._rgba[ye][he]:void 0},be.prototype.setColor=function(ye,he,ge){this._color[ye]||(this._color[ye]={}),this._color[ye][he]=ge},be.prototype.getColor=function(ye,he){return this._color[ye]?this._color[ye][he]:void 0},be}();ee.ColorContrastCache=fe},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.LRUMap=void 0;var fe=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 he=ye.prev,ge=ye.next;ye===this._head&&(this._head=ge),ye===this._tail&&(this._tail=he),he!==null&&(he.next=ge),ge!==null&&(ge.prev=he)},be.prototype._appendNode=function(ye){var he=this._tail;he!==null&&(he.next=ye),ye.prev=he,ye.next=null,this._tail=ye,this._head===null&&(this._head=ye)},be.prototype.prealloc=function(ye){for(var he=this._nodePool,ge=0;ge<ye;ge++)he.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(ye){var he=this._map[ye];return he!==void 0?(this._unlinkNode(he),this._appendNode(he),he.value):null},be.prototype.peekValue=function(ye){var he=this._map[ye];return he!==void 0?he.value:null},be.prototype.peek=function(){var ye=this._head;return ye===null?null:ye.value},be.prototype.set=function(ye,he){var ge=this._map[ye];if(ge!==void 0)ge=this._map[ye],this._unlinkNode(ge),ge.value=he;else if(this.size>=this.capacity)ge=this._head,this._unlinkNode(ge),delete this._map[ge.key],ge.key=ye,ge.value=he,this._map[ye]=ge;else{var ie=this._nodePool;ie.length>0?((ge=ie.pop()).key=ye,ge.value=he):ge={prev:null,next:null,key:ye,value:he},this._map[ye]=ge,this.size++}this._appendNode(ge)},be}();ee.LRUMap=fe},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(he,ge){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ue){ie.__proto__=ue}||function(ie,ue){for(var ce in ue)ue.hasOwnProperty(ce)&&(ie[ce]=ue[ce])})(he,ge)},function(he,ge){function ie(){this.constructor=he}fe(he,ge),he.prototype=ge===null?Object.create(ge):(ie.prototype=ge.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionRenderLayer=void 0;var ye=function(he){function ge(ie,ue,ce,me,se,pe){var oe=he.call(this,ie,"selection",ue,!0,ce,me,se,pe)||this;return oe._clearState(),oe}return be(ge,he),ge.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},ge.prototype.resize=function(ie){he.prototype.resize.call(this,ie),this._clearState()},ge.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},ge.prototype.onSelectionChanged=function(ie,ue,ce){if(this._didStateChange(ie,ue,ce,this._bufferService.buffer.ydisp))if(this._clearAll(),ie&&ue){var me=ie[1]-this._bufferService.buffer.ydisp,se=ue[1]-this._bufferService.buffer.ydisp,pe=Math.max(me,0),oe=Math.min(se,this._bufferService.rows-1);if(!(pe>=this._bufferService.rows||oe<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,ce){var ne=ie[0],y=ue[0]-ne,a=oe-pe+1;this._fillCells(ne,pe,y,a)}else{ne=me===pe?ie[0]:0;var E=pe===oe?ue[0]:this._bufferService.cols;this._fillCells(ne,pe,E-ne,1);var b=Math.max(oe-pe-1,0);if(this._fillCells(0,pe+1,this._bufferService.cols,b),pe!==oe){var x=se===oe?ue[0]:this._bufferService.cols;this._fillCells(0,oe,x,1)}}this._state.start=[ie[0],ie[1]],this._state.end=[ue[0],ue[1]],this._state.columnSelectMode=ce,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},ge.prototype._didStateChange=function(ie,ue,ce,me){return!this._areCoordinatesEqual(ie,this._state.start)||!this._areCoordinatesEqual(ue,this._state.end)||ce!==this._state.columnSelectMode||me!==this._state.ydisp},ge.prototype._areCoordinatesEqual=function(ie,ue){return!(!ie||!ue)&&ie[0]===ue[0]&&ie[1]===ue[1]},ge}(te(13).BaseRenderLayer);ee.SelectionRenderLayer=ye},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ue,ce){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,se){me.__proto__=se}||function(me,se){for(var pe in se)se.hasOwnProperty(pe)&&(me[pe]=se[pe])})(ue,ce)},function(ue,ce){function me(){this.constructor=ue}fe(ue,ce),ue.prototype=ce===null?Object.create(ce):(me.prototype=ce.prototype,new me)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CursorRenderLayer=void 0;var ye=te(13),he=te(4),ge=function(ue){function ce(me,se,pe,oe,ne,y,a,E,b){var x=ue.call(this,me,"cursor",se,!0,pe,oe,y,a)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new he.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(ce,ue),ce.prototype.resize=function(me){ue.prototype.resize.call(this,me),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},ce.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},ce.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onOptionsChanged=function(){var me,se=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ie(this._coreBrowserService.isFocused,function(){se._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})},ce.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype.onGridChanged=function(me,se){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype._render=function(me){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var se=this._bufferService.buffer.ybase+this._bufferService.buffer.y,pe=se-this._bufferService.buffer.ydisp;if(pe<0||pe>=this._bufferService.rows)this._clearCursor();else{var oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(se).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,pe,this._cell):this._renderBlurCursor(oe,pe,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=pe,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===pe&&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,pe,this._cell),this._ctx.restore(),this._state.x=oe,this._state.y=pe,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},ce.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})},ce.prototype._renderBarCursor=function(me,se,pe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(me,se,this._optionsService.options.cursorWidth),this._ctx.restore()},ce.prototype._renderBlockCursor=function(me,se,pe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(me,se,pe.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(pe,me,se),this._ctx.restore()},ce.prototype._renderUnderlineCursor=function(me,se,pe){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(me,se),this._ctx.restore()},ce.prototype._renderBlurCursor=function(me,se,pe){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(me,se,pe.getWidth(),1),this._ctx.restore()},ce}(ye.BaseRenderLayer);ee.CursorRenderLayer=ge;var ie=function(){function ue(ce,me){this._renderCallback=me,this.isCursorVisible=!0,ce&&this._restartInterval()}return Object.defineProperty(ue.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),ue.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)},ue.prototype.restartBlinkAnimation=function(){var ce=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){ce._renderCallback(),ce._animationFrame=void 0})))},ue.prototype._restartInterval=function(ce){var me=this;ce===void 0&&(ce=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(me._animationTimeRestarted){var se=600-(Date.now()-me._animationTimeRestarted);if(me._animationTimeRestarted=void 0,se>0)return void me._restartInterval(se)}me.isCursorVisible=!1,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0}),me._blinkInterval=window.setInterval(function(){if(me._animationTimeRestarted){var pe=600-(Date.now()-me._animationTimeRestarted);return me._animationTimeRestarted=void 0,void me._restartInterval(pe)}me.isCursorVisible=!me.isCursorVisible,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0})},600)},ce)},ue.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)},ue.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},ue}()},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ue,ce){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,se){me.__proto__=se}||function(me,se){for(var pe in se)se.hasOwnProperty(pe)&&(me[pe]=se[pe])})(ue,ce)},function(ue,ce){function me(){this.constructor=ue}fe(ue,ce),ue.prototype=ce===null?Object.create(ce):(me.prototype=ce.prototype,new me)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.LinkRenderLayer=void 0;var ye=te(13),he=te(9),ge=te(26),ie=function(ue){function ce(me,se,pe,oe,ne,y,a,E){var b=ue.call(this,me,"link",se,!0,pe,oe,a,E)||this;return ne.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),ne.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),y.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),y.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),b}return be(ce,ue),ce.prototype.resize=function(me){ue.prototype.resize.call(this,me),this._state=void 0},ce.prototype.reset=function(){this._clearCurrentLink()},ce.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}},ce.prototype._onShowLinkUnderline=function(me){if(me.fg===he.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:me.fg&&ge.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 se=me.y1+1;se<me.y2;se++)this._fillBottomLineAtCells(0,se,me.cols);this._fillBottomLineAtCells(0,me.y2,me.x2)}this._state=me},ce.prototype._onHideLinkUnderline=function(me){this._clearCurrentLink()},ce}(ye.BaseRenderLayer);ee.LinkRenderLayer=ie},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(ue,ce,me,se){var pe,oe=arguments.length,ne=oe<3?ce:se===null?se=Object.getOwnPropertyDescriptor(ce,me):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(ue,ce,me,se);else for(var y=ue.length-1;y>=0;y--)(pe=ue[y])&&(ne=(oe<3?pe(ne):oe>3?pe(ce,me,ne):pe(ce,me))||ne);return oe>3&&ne&&Object.defineProperty(ce,me,ne),ne},be=this&&this.__param||function(ue,ce){return function(me,se){ce(me,se,ue)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZone=ee.Linkifier=void 0;var ye=te(0),he=te(1),ge=function(){function ue(ce,me,se){this._bufferService=ce,this._logService=me,this._unicodeService=se,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(ue.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),ue.prototype.attachToDom=function(ce,me){this._element=ce,this._mouseZoneManager=me},ue.prototype.linkifyRows=function(ce,me){var se=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=ce,this._rowsToLinkify.end=me):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,ce),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,me)),this._mouseZoneManager.clearAll(ce,me),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return se._linkifyRows()},ue._timeBeforeLatency))},ue.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var ce=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var me=ce.ydisp+this._rowsToLinkify.start;if(!(me>=ce.lines.length)){for(var se=ce.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,pe=Math.ceil(2e3/this._bufferService.cols),oe=this._bufferService.buffer.iterator(!1,me,se,pe,pe);oe.hasNext();)for(var ne=oe.next(),y=0;y<this._linkMatchers.length;y++)this._doLinkifyRow(ne.range.first,ne.content,this._linkMatchers[y]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},ue.prototype.registerLinkMatcher=function(ce,me,se){if(se===void 0&&(se={}),!me)throw new Error("handler must be defined");var pe={id:this._nextLinkMatcherId++,regex:ce,handler:me,matchIndex:se.matchIndex,validationCallback:se.validationCallback,hoverTooltipCallback:se.tooltipCallback,hoverLeaveCallback:se.leaveCallback,willLinkActivate:se.willLinkActivate,priority:se.priority||0};return this._addLinkMatcherToList(pe),pe.id},ue.prototype._addLinkMatcherToList=function(ce){if(this._linkMatchers.length!==0){for(var me=this._linkMatchers.length-1;me>=0;me--)if(ce.priority<=this._linkMatchers[me].priority)return void this._linkMatchers.splice(me+1,0,ce);this._linkMatchers.splice(0,0,ce)}else this._linkMatchers.push(ce)},ue.prototype.deregisterLinkMatcher=function(ce){for(var me=0;me<this._linkMatchers.length;me++)if(this._linkMatchers[me].id===ce)return this._linkMatchers.splice(me,1),!0;return!1},ue.prototype._doLinkifyRow=function(ce,me,se){for(var pe,oe=this,ne=new RegExp(se.regex.source,(se.regex.flags||"")+"g"),y=-1,a=function(){var b=pe[typeof se.matchIndex!="number"?0:se.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",pe,se),"break";if(y=me.indexOf(b,y+1),ne.lastIndex=y+b.length,y<0)return"break";var x=E._bufferService.buffer.stringIndexToBufferIndex(ce,y);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]),le=re?re>>9&511:void 0;se.validationCallback?se.validationCallback(b,function(de){oe._rowsTimeoutId||de&&oe._addLink(x[1],x[0]-oe._bufferService.buffer.ydisp,b,se,le)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,se,le)},E=this;(pe=ne.exec(me))!==null&&a()!=="break";);},ue.prototype._addLink=function(ce,me,se,pe,oe){var ne=this;if(this._mouseZoneManager&&this._element){var y=this._unicodeService.getStringCellWidth(se),a=ce%this._bufferService.cols,E=me+Math.floor(ce/this._bufferService.cols),b=(a+y)%this._bufferService.cols,x=E+Math.floor((a+y)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,x--),this._mouseZoneManager.add(new ie(a+1,E+1,b+1,x+1,function(z){if(pe.handler)return pe.handler(z,se);var re=window.open();re?(re.opener=null,re.location.href=se):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(a,E,b,x,oe)),ne._element.classList.add("xterm-cursor-pointer")},function(z){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(a,E,b,x,oe)),pe.hoverTooltipCallback&&pe.hoverTooltipCallback(z,se,{start:{x:a,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(a,E,b,x,oe)),ne._element.classList.remove("xterm-cursor-pointer"),pe.hoverLeaveCallback&&pe.hoverLeaveCallback()},function(z){return!pe.willLinkActivate||pe.willLinkActivate(z,se)}))}},ue.prototype._createLinkHoverEvent=function(ce,me,se,pe,oe){return{x1:ce,y1:me,x2:se,y2:pe,cols:this._bufferService.cols,fg:oe}},ue._timeBeforeLatency=200,ue=fe([be(0,he.IBufferService),be(1,he.ILogService),be(2,he.IUnicodeService)],ue)}();ee.Linkifier=ge;var ie=function(ue,ce,me,se,pe,oe,ne,y,a){this.x1=ue,this.y1=ce,this.x2=me,this.y2=se,this.clickCallback=pe,this.hoverCallback=oe,this.tooltipCallback=ne,this.leaveCallback=y,this.willLinkActivate=a};ee.MouseZone=ie},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var le in re)re.hasOwnProperty(le)&&(z[le]=re[le])})(b,x)},function(b,x){function z(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ye=this&&this.__decorate||function(b,x,z,re){var le,de=arguments.length,ve=de<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,x,z,re);else for(var Se=b.length-1;Se>=0;Se--)(le=b[Se])&&(ve=(de<3?le(ve):de>3?le(x,z,ve):le(x,z))||ve);return de>3&&ve&&Object.defineProperty(x,z,ve),ve},he=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionService=void 0;var ge=te(11),ie=te(52),ue=te(4),ce=te(0),me=te(5),se=te(1),pe=te(30),oe=te(53),ne=te(2),y="\xA0",a=new RegExp(y,"g"),E=function(b){function x(z,re,le,de,ve,Se,Le){var Ee=b.call(this)||this;return Ee._element=z,Ee._screenElement=re,Ee._bufferService=le,Ee._coreService=de,Ee._mouseService=ve,Ee._optionsService=Se,Ee._renderService=Le,Ee._dragScrollAmount=0,Ee._enabled=!0,Ee._workCell=new ue.CellData,Ee._mouseDownTimeStamp=0,Ee._onLinuxMouseSelection=Ee.register(new ce.EventEmitter),Ee._onRedrawRequest=Ee.register(new ce.EventEmitter),Ee._onSelectionChange=Ee.register(new ce.EventEmitter),Ee._onRequestScrollLines=Ee.register(new ce.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 le=this._bufferService.buffer,de=[];if(this._activeSelectionMode===3){if(z[0]===re[0])return"";for(var ve=z[1];ve<=re[1];ve++){var Se=le.translateBufferLineToString(ve,!0,z[0],re[0]);de.push(Se)}}else{var Le=z[1]===re[1]?re[0]:void 0;for(de.push(le.translateBufferLineToString(z[1],!0,z[0],Le)),ve=z[1]+1;ve<=re[1]-1;ve++){var Ee=le.lines.get(ve);Se=le.translateBufferLineToString(ve,!0),Ee&&Ee.isWrapped?de[de.length-1]+=Se:de.push(Se)}z[1]!==re[1]&&(Ee=le.lines.get(re[1]),Se=le.translateBufferLineToString(re[1],!0,0,re[0]),Ee&&Ee.isWrapped?de[de.length-1]+=Se:de.push(Se))}return de.map(function(je){return je.replace(a," ")}).join(ge.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()})),ge.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),le=this._model.finalSelectionStart,de=this._model.finalSelectionEnd;return!!(le&&de&&re)&&this._areCoordsInSelection(re,le,de)},x.prototype._areCoordsInSelection=function(z,re,le){return z[1]>re[1]&&z[1]<le[1]||re[1]===le[1]&&z[1]===re[1]&&z[0]>=re[0]&&z[0]<le[0]||re[1]<le[1]&&z[1]===le[1]&&z[0]<le[0]||re[1]<le[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=pe.getCoordsRelativeToElement(z,this._screenElement)[1],le=this._renderService.dimensions.canvasHeight;return re>=0&&re<=le?0:(re>le&&(re-=le),re=Math.min(Math.max(re,-50),50),(re/=50)/Math.abs(re)+Math.round(14*re))},x.prototype.shouldForceSelection=function(z){return ge.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&&!(ge.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 le=this._bufferService.buffer;if(this._model.selectionEnd[1]<le.lines.length){var de=le.lines.get(this._model.selectionEnd[1]);de&&de.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 le=this._mouseService.getCoords(z,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(le&&le[0]!==void 0&&le[1]!==void 0){var de=oe.moveToCellSequence(le[0]-1,le[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(de,!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(le){return re._onTrim(le)})},x.prototype._convertViewportColToCharacterIndex=function(z,re){for(var le=re[0],de=0;re[0]>=de;de++){var ve=z.loadCell(de,this._workCell).getChars().length;this._workCell.getWidth()===0?le--:ve>1&&re[0]!==de&&(le+=ve-1)}return le},x.prototype.setSelection=function(z,re,le){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[z,re],this._model.selectionStartLength=le,this.refresh()},x.prototype._getWordAt=function(z,re,le,de){if(le===void 0&&(le=!0),de===void 0&&(de=!0),!(z[0]>=this._bufferService.cols)){var ve=this._bufferService.buffer,Se=ve.lines.get(z[1]);if(Se){var Le=ve.translateBufferLineToString(z[1],!1),Ee=this._convertViewportColToCharacterIndex(Se,z),je=Ee,xe=z[0]-Ee,lt=0,Ye=0,ft=0,Me=0;if(Le.charAt(Ee)===" "){for(;Ee>0&&Le.charAt(Ee-1)===" ";)Ee--;for(;je<Le.length&&Le.charAt(je+1)===" ";)je++}else{var He=z[0],Ne=z[0];Se.getWidth(He)===0&&(lt++,He--),Se.getWidth(Ne)===2&&(Ye++,Ne++);var ot=Se.getString(Ne).length;for(ot>1&&(Me+=ot-1,je+=ot-1);He>0&&Ee>0&&!this._isCharWordSeparator(Se.loadCell(He-1,this._workCell));){Se.loadCell(He-1,this._workCell);var Ze=this._workCell.getChars().length;this._workCell.getWidth()===0?(lt++,He--):Ze>1&&(ft+=Ze-1,Ee-=Ze-1),Ee--,He--}for(;Ne<Se.length&&je+1<Le.length&&!this._isCharWordSeparator(Se.loadCell(Ne+1,this._workCell));){Se.loadCell(Ne+1,this._workCell);var vt=this._workCell.getChars().length;this._workCell.getWidth()===2?(Ye++,Ne++):vt>1&&(Me+=vt-1,je+=vt-1),je++,Ne++}}je++;var Pt=Ee+xe-lt+ft,Mt=Math.min(this._bufferService.cols,je-Ee+lt+Ye-ft-Me);if(re||Le.slice(Ee,je).trim()!==""){if(le&&Pt===0&&Se.getCodePoint(0)!==32){var At=ve.lines.get(z[1]-1);if(At&&Se.isWrapped&&At.getCodePoint(this._bufferService.cols-1)!==32){var et=this._getWordAt([this._bufferService.cols-1,z[1]-1],!1,!0,!1);if(et){var Qe=this._bufferService.cols-et.start;Pt-=Qe,Mt+=Qe}}}if(de&&Pt+Mt===this._bufferService.cols&&Se.getCodePoint(this._bufferService.cols-1)!==32){var Et=ve.lines.get(z[1]+1);if(Et&&Et.isWrapped&&Et.getCodePoint(0)!==32){var Kt=this._getWordAt([0,z[1]+1],!1,!1,!0);Kt&&(Mt+=Kt.length)}}return{start:Pt,length:Mt}}}}},x.prototype._selectWordAt=function(z,re){var le=this._getWordAt(z,re);if(le){for(;le.start<0;)le.start+=this._bufferService.cols,z[1]--;this._model.selectionStart=[le.start,z[1]],this._model.selectionStartLength=le.length}},x.prototype._selectToWordAt=function(z){var re=this._getWordAt(z,!0);if(re){for(var le=z[1];re.start<0;)re.start+=this._bufferService.cols,le--;if(!this._model.areSelectionValuesReversed())for(;re.start+re.length>this._bufferService.cols;)re.length-=this._bufferService.cols,le++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?re.start:re.start+re.length,le]}},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([he(2,se.IBufferService),he(3,se.ICoreService),he(4,me.IMouseService),he(5,se.IOptionsService),he(6,me.IRenderService)],x)}(ne.Disposable);ee.SelectionService=E},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionModel=void 0;var fe=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,he=this.selectionEnd;return!(!ye||!he)&&(ye[1]>he[1]||ye[1]===he[1]&&ye[0]>he[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}();ee.SelectionModel=fe},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.moveToCellSequence=void 0;var fe=te(12);function be(ce,me,se,pe){var oe=ce-ye(se,ce),ne=me-ye(se,me);return ue(Math.abs(oe-ne)-function(y,a,E){for(var b=0,x=y-ye(E,y),z=a-ye(E,a),re=0;re<Math.abs(x-z);re++){var le=he(y,a)==="A"?-1:1,de=E.buffer.lines.get(x+le*re);de&&de.isWrapped&&b++}return b}(ce,me,se),ie(he(ce,me),pe))}function ye(ce,me){for(var se=0,pe=ce.buffer.lines.get(me),oe=pe&&pe.isWrapped;oe&&me>=0&&me<ce.rows;)se++,oe=(pe=ce.buffer.lines.get(--me))&&pe.isWrapped;return se}function he(ce,me){return ce>me?"A":"B"}function ge(ce,me,se,pe,oe,ne){for(var y=ce,a=me,E="";y!==se||a!==pe;)y+=oe?1:-1,oe&&y>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(a,!1,ce,y),y=0,ce=0,a++):!oe&&y<0&&(E+=ne.buffer.translateBufferLineToString(a,!1,0,ce+1),ce=y=ne.cols-1,a--);return E+ne.buffer.translateBufferLineToString(a,!1,ce,y)}function ie(ce,me){var se=me?"O":"[";return fe.C0.ESC+se+ce}function ue(ce,me){ce=Math.floor(ce);for(var se="",pe=0;pe<ce;pe++)se+=me;return se}ee.moveToCellSequence=function(ce,me,se,pe){var oe,ne=se.buffer.x,y=se.buffer.y;if(!se.buffer.hasScrollback)return function(E,b,x,z,re,le){return be(b,z,re,le).length===0?"":ue(ge(E,b,E,b-ye(re,b),!1,re).length,ie("D",le))}(ne,y,0,me,se,pe)+be(y,me,se,pe)+function(E,b,x,z,re,le){var de;de=be(b,z,re,le).length>0?z-ye(re,z):b;var ve=z,Se=function(Le,Ee,je,xe,lt,Ye){var ft;return ft=be(je,xe,lt,Ye).length>0?xe-ye(lt,xe):Ee,Le<je&&ft<=xe||Le>=je&&ft<xe?"C":"D"}(E,b,x,z,re,le);return ue(ge(E,de,x,ve,Se==="C",re).length,ie(Se,le))}(ne,y,ce,me,se,pe);if(y===me)return oe=ne>ce?"D":"C",ue(Math.abs(ne-ce),ie(oe,pe));oe=y>me?"D":"C";var a=Math.abs(y-me);return ue(function(E,b){return b.cols-E}(y>me?ce:ne,se)+(a-1)*se.cols+1+((y>me?ne:ce)-1),ie(oe,pe))}},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(ge,ie,ue,ce){var me,se=arguments.length,pe=se<3?ie:ce===null?ce=Object.getOwnPropertyDescriptor(ie,ue):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(ge,ie,ue,ce);else for(var oe=ge.length-1;oe>=0;oe--)(me=ge[oe])&&(pe=(se<3?me(pe):se>3?me(ie,ue,pe):me(ie,ue))||pe);return se>3&&pe&&Object.defineProperty(ie,ue,pe),pe},be=this&&this.__param||function(ge,ie){return function(ue,ce){ie(ue,ce,ge)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SoundService=void 0;var ye=te(1),he=function(){function ge(ie){this._optionsService=ie}return Object.defineProperty(ge,"audioContext",{get:function(){if(!ge._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;ge._audioContext=new ie}return ge._audioContext},enumerable:!1,configurable:!0}),ge.prototype.playBellSound=function(){var ie=ge.audioContext;if(ie){var ue=ie.createBufferSource();ie.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(ce){ue.buffer=ce,ue.connect(ie.destination),ue.start(0)})}},ge.prototype._base64ToArrayBuffer=function(ie){for(var ue=window.atob(ie),ce=ue.length,me=new Uint8Array(ce),se=0;se<ce;se++)me[se]=ue.charCodeAt(se);return me.buffer},ge.prototype._removeMimeType=function(ie){return ie.split(",")[1]},ge=fe([be(0,ye.IOptionsService)],ge)}();ee.SoundService=he},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var y in ne)ne.hasOwnProperty(y)&&(oe[y]=ne[y])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var y,a=arguments.length,E=a<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(y=se[b])&&(E=(a<3?y(E):a>3?y(pe,oe,E):y(pe,oe))||E);return a>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZoneManager=void 0;var ge=te(2),ie=te(7),ue=te(5),ce=te(1),me=function(se){function pe(oe,ne,y,a,E,b){var x=se.call(this)||this;return x._element=oe,x._screenElement=ne,x._bufferService=y,x._mouseService=a,x._selectionService=E,x._optionsService=b,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(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(pe,se),pe.prototype.dispose=function(){se.prototype.dispose.call(this),this._deactivate()},pe.prototype.add=function(oe){this._zones.push(oe),this._zones.length===1&&this._activate()},pe.prototype.clearAll=function(oe,ne){if(this._zones.length!==0){oe&&ne||(oe=0,ne=this._bufferService.rows-1);for(var y=0;y<this._zones.length;y++){var a=this._zones[y];(a.y1>oe&&a.y1<=ne+1||a.y2>oe&&a.y2<=ne+1||a.y1<oe&&a.y2>ne+1)&&(this._currentZone&&this._currentZone===a&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(y--,1))}this._zones.length===0&&this._deactivate()}},pe.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))},pe.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))},pe.prototype._onMouseMove=function(oe){this._lastHoverCoords[0]===oe.pageX&&this._lastHoverCoords[1]===oe.pageY||(this._onHover(oe),this._lastHoverCoords=[oe.pageX,oe.pageY])},pe.prototype._onHover=function(oe){var ne=this,y=this._findZoneEventAt(oe);y!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),y&&(this._currentZone=y,y.hoverCallback&&y.hoverCallback(oe),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(oe)},this._optionsService.options.linkTooltipHoverDuration)))},pe.prototype._onTooltip=function(oe){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(oe);ne&&ne.tooltipCallback&&ne.tooltipCallback(oe)},pe.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())}},pe.prototype._onMouseLeave=function(oe){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},pe.prototype._onClick=function(oe){var ne=this._findZoneEventAt(oe),y=this._getSelectionLength();ne&&y===this._initialSelectionLength&&(ne.clickCallback(oe),oe.preventDefault(),oe.stopImmediatePropagation())},pe.prototype._getSelectionLength=function(){var oe=this._selectionService.selectionText;return oe?oe.length:0},pe.prototype._findZoneEventAt=function(oe){var ne=this._mouseService.getCoords(oe,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var y=ne[0],a=ne[1],E=0;E<this._zones.length;E++){var b=this._zones[E];if(b.y1===b.y2){if(a===b.y1&&y>=b.x1&&y<b.x2)return b}else if(a===b.y1&&y>=b.x1||a===b.y2&&y<b.x2||a>b.y1&&a<b.y2)return b}},pe=ye([he(2,ce.IBufferService),he(3,ue.IMouseService),he(4,ue.ISelectionService),he(5,ce.IOptionsService)],pe)}(ge.Disposable);ee.MouseZoneManager=me},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(pe,oe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,y){ne.__proto__=y}||function(ne,y){for(var a in y)y.hasOwnProperty(a)&&(ne[a]=y[a])})(pe,oe)},function(pe,oe){function ne(){this.constructor=pe}fe(pe,oe),pe.prototype=oe===null?Object.create(oe):(ne.prototype=oe.prototype,new ne)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AccessibilityManager=void 0;var ye=te(18),he=te(11),ge=te(31),ie=te(7),ue=te(2),ce=te(32),me=te(17),se=function(pe){function oe(ne,y){var a=pe.call(this)||this;a._terminal=ne,a._renderService=y,a._liveRegionLineCount=0,a._charsToConsume=[],a._charsToAnnounce="",a._accessibilityTreeRoot=document.createElement("div"),a._accessibilityTreeRoot.classList.add("xterm-accessibility"),a._rowContainer=document.createElement("div"),a._rowContainer.classList.add("xterm-accessibility-tree"),a._rowContainer.setAttribute("role","list"),a._rowElements=[];for(var E=0;E<a._terminal.rows;E++)a._rowElements[E]=a._createAccessibilityTreeNode(),a._rowContainer.appendChild(a._rowElements[E]);if(a._topBoundaryFocusListener=function(b){return a._onBoundaryFocus(b,0)},a._bottomBoundaryFocusListener=function(b){return a._onBoundaryFocus(b,1)},a._rowElements[0].addEventListener("focus",a._topBoundaryFocusListener),a._rowElements[a._rowElements.length-1].addEventListener("focus",a._bottomBoundaryFocusListener),a._refreshRowsDimensions(),a._accessibilityTreeRoot.appendChild(a._rowContainer),a._renderRowsDebouncer=new ge.RenderDebouncer(a._renderRows.bind(a)),a._refreshRows(),a._liveRegion=document.createElement("div"),a._liveRegion.classList.add("live-region"),a._liveRegion.setAttribute("aria-live","assertive"),a._accessibilityTreeRoot.appendChild(a._liveRegion),!a._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return a._terminal.element.insertAdjacentElement("afterbegin",a._accessibilityTreeRoot),a.register(a._renderRowsDebouncer),a.register(a._terminal.onResize(function(b){return a._onResize(b.rows)})),a.register(a._terminal.onRender(function(b){return a._refreshRows(b.start,b.end)})),a.register(a._terminal.onScroll(function(){return a._refreshRows()})),a.register(a._terminal.onA11yChar(function(b){return a._onChar(b)})),a.register(a._terminal.onLineFeed(function(){return a._onChar(`
|
|
|
`)})),a.register(a._terminal.onA11yTab(function(b){return a._onTab(b)})),a.register(a._terminal.onKey(function(b){return a._onKey(b.key)})),a.register(a._terminal.onBlur(function(){return a._clearLiveRegion()})),a.register(a._renderService.onDimensionsChange(function(){return a._refreshRowsDimensions()})),a._screenDprMonitor=new ce.ScreenDprMonitor,a.register(a._screenDprMonitor),a._screenDprMonitor.setListener(function(){return a._refreshRowsDimensions()}),a.register(ie.addDisposableDomListener(window,"resize",function(){return a._refreshRowsDimensions()})),a}return be(oe,pe),oe.prototype.dispose=function(){pe.prototype.dispose.call(this),me.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},oe.prototype._onBoundaryFocus=function(ne,y){var a=ne.target,E=this._rowElements[y===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")!==(y===0?"1":""+this._terminal.buffer.lines.length)&&ne.relatedTarget===E){var b,x;if(y===0?(b=a,x=this._rowElements.pop(),this._rowContainer.removeChild(x)):(b=this._rowElements.shift(),x=a,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),x.removeEventListener("focus",this._bottomBoundaryFocusListener),y===0){var z=this._createAccessibilityTreeNode();this._rowElements.unshift(z),this._rowContainer.insertAdjacentElement("afterbegin",z)}else z=this._createAccessibilityTreeNode(),this._rowElements.push(z),this._rowContainer.appendChild(z);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(y===0?-1:1),this._rowElements[y===0?1:this._rowElements.length-2].focus(),ne.preventDefault(),ne.stopImmediatePropagation()}},oe.prototype._onResize=function(ne){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var y=this._rowContainer.children.length;y<this._terminal.rows;y++)this._rowElements[y]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[y]);for(;this._rowElements.length>ne;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},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 y=0;y<ne;y++)this._onChar(" ")},oe.prototype._onChar=function(ne){var y=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==ne&&(this._charsToAnnounce+=ne):this._charsToAnnounce+=ne,ne===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=ye.tooMuchOutput)),he.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){y._accessibilityTreeRoot.appendChild(y._liveRegion)},0))},oe.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,he.isMac&&me.removeElementFromParent(this._liveRegion)},oe.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},oe.prototype._refreshRows=function(ne,y){this._renderRowsDebouncer.refresh(ne,y,this._terminal.rows)},oe.prototype._renderRows=function(ne,y){for(var a=this._terminal.buffer,E=a.lines.length.toString(),b=ne;b<=y;b++){var x=a.translateBufferLineToString(a.ydisp+b,!0),z=(a.ydisp+b+1).toString(),re=this._rowElements[b];re&&(x.length===0?re.innerHTML=" ":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}(ue.Disposable);ee.AccessibilityManager=se},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(a,E){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var z in x)x.hasOwnProperty(z)&&(b[z]=x[z])})(a,E)},function(a,E){function b(){this.constructor=a}fe(a,E),a.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),ye=this&&this.__decorate||function(a,E,b,x){var z,re=arguments.length,le=re<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")le=Reflect.decorate(a,E,b,x);else for(var de=a.length-1;de>=0;de--)(z=a[de])&&(le=(re<3?z(le):re>3?z(E,b,le):z(E,b))||le);return re>3&&le&&Object.defineProperty(E,b,le),le},he=this&&this.__param||function(a,E){return function(b,x){E(b,x,a)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRenderer=void 0;var ge=te(58),ie=te(9),ue=te(2),ce=te(5),me=te(1),se=te(0),pe=te(10),oe=te(17),ne=1,y=function(a){function E(b,x,z,re,le,de,ve,Se,Le){var Ee=a.call(this)||this;return Ee._colors=b,Ee._element=x,Ee._screenElement=z,Ee._viewportElement=re,Ee._linkifier=le,Ee._linkifier2=de,Ee._charSizeService=ve,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 ge.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,a),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new se.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),a.prototype.dispose.call(this)},E.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var b=0,x=this._rowElements;b<x.length;b++){var z=x[b];z.style.width=this.dimensions.canvasWidth+"px",z.style.height=this.dimensions.actualCellHeight+"px",z.style.lineHeight=this.dimensions.actualCellHeight+"px",z.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var 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(."+ge.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+ge.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+ge.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) ."+ge.CURSOR_CLASS+"."+ge.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ge.CURSOR_CLASS+"."+ge.CURSOR_BLINK_CLASS+":not(."+ge.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ge.CURSOR_CLASS+"."+ge.CURSOR_BLINK_CLASS+"."+ge.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ge.CURSOR_CLASS+"."+ge.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+ge.CURSOR_CLASS+"."+ge.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+ge.CURSOR_CLASS+"."+ge.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: "+pe.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,le=x[1]-this._bufferService.buffer.ydisp,de=Math.max(re,0),ve=Math.min(le,this._bufferService.rows-1);if(!(de>=this._bufferService.rows||ve<0)){var Se=document.createDocumentFragment();if(z)Se.appendChild(this._createSelectionElement(de,b[0],x[0],ve-de+1));else{var Le=re===de?b[0]:0,Ee=de===ve?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(de,Le,Ee));var je=ve-de-1;if(Se.appendChild(this._createSelectionElement(de+1,0,this._bufferService.cols,je)),de!==ve){var xe=le===ve?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(ve,0,xe))}}this._selectionContainer.appendChild(Se)}}},E.prototype._createSelectionElement=function(b,x,z,re){re===void 0&&(re=1);var le=document.createElement("div");return le.style.height=re*this.dimensions.actualCellHeight+"px",le.style.top=b*this.dimensions.actualCellHeight+"px",le.style.left=x*this.dimensions.actualCellWidth+"px",le.style.width=this.dimensions.actualCellWidth*(z-x)+"px",le},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),le=this._optionsService.options.cursorBlink,de=b;de<=x;de++){var ve=this._rowElements[de];ve.innerHTML="";var Se=de+this._bufferService.buffer.ydisp,Le=this._bufferService.buffer.lines.get(Se),Ee=this._optionsService.options.cursorStyle;ve.appendChild(this._rowFactory.createRow(Le,Se===z,Ee,re,le,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,le,de){for(;b!==x||z!==re;){var ve=this._rowElements[z];if(!ve)return;var Se=ve.children[b];Se&&(Se.style.textDecoration=de?"underline":"none"),++b>=le&&(b=0,z++)}},E=ye([he(6,ce.ICharSizeService),he(7,me.IOptionsService),he(8,me.IBufferService)],E)}(ue.Disposable);ee.DomRenderer=y},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRendererRowFactory=ee.CURSOR_STYLE_UNDERLINE_CLASS=ee.CURSOR_STYLE_BAR_CLASS=ee.CURSOR_STYLE_BLOCK_CLASS=ee.CURSOR_BLINK_CLASS=ee.CURSOR_CLASS=ee.UNDERLINE_CLASS=ee.ITALIC_CLASS=ee.DIM_CLASS=ee.BOLD_CLASS=void 0;var fe=te(9),be=te(3),ye=te(4),he=te(10);ee.BOLD_CLASS="xterm-bold",ee.DIM_CLASS="xterm-dim",ee.ITALIC_CLASS="xterm-italic",ee.UNDERLINE_CLASS="xterm-underline",ee.CURSOR_CLASS="xterm-cursor",ee.CURSOR_BLINK_CLASS="xterm-cursor-blink",ee.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",ee.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",ee.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var ge=function(){function ue(ce,me,se){this._document=ce,this._optionsService=me,this._colors=se,this._workCell=new ye.CellData}return ue.prototype.setColors=function(ce){this._colors=ce},ue.prototype.createRow=function(ce,me,se,pe,oe,ne,y){for(var a=this._document.createDocumentFragment(),E=0,b=Math.min(ce.length,y)-1;b>=0;b--)if(ce.loadCell(b,this._workCell).getCode()!==be.NULL_CELL_CODE||me&&b===pe){E=b+1;break}for(b=0;b<E;b++){ce.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===pe)switch(z.classList.add(ee.CURSOR_CLASS),oe&&z.classList.add(ee.CURSOR_BLINK_CLASS),se){case"bar":z.classList.add(ee.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(ee.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(ee.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&z.classList.add(ee.BOLD_CLASS),this._workCell.isItalic()&&z.classList.add(ee.ITALIC_CLASS),this._workCell.isDim()&&z.classList.add(ee.DIM_CLASS),this._workCell.isUnderline()&&z.classList.add(ee.UNDERLINE_CLASS),this._workCell.isInvisible()?z.textContent=be.WHITESPACE_CELL_CHAR:z.textContent=this._workCell.getChars()||be.WHITESPACE_CELL_CHAR;var re=this._workCell.getFgColor(),le=this._workCell.getFgColorMode(),de=this._workCell.getBgColor(),ve=this._workCell.getBgColorMode(),Se=!!this._workCell.isInverse();if(Se){var Le=re;re=de,de=Le;var Ee=le;le=ve,ve=Ee}switch(le){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=he.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-"+fe.INVERTED_DEFAULT_COLOR)}switch(ve){case 16777216:case 33554432:z.classList.add("xterm-bg-"+de);break;case 50331648:this._addStyle(z,"background-color:#"+ie(de.toString(16),"0",6));break;case 0:default:Se&&z.classList.add("xterm-bg-"+fe.INVERTED_DEFAULT_COLOR)}a.appendChild(z)}}return a},ue.prototype._applyMinimumContrast=function(ce,me,se){if(this._optionsService.options.minimumContrastRatio===1)return!1;var pe=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return pe===void 0&&(pe=he.color.ensureContrastRatio(me,se,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,pe!=null?pe:null)),!!pe&&(this._addStyle(ce,"color:"+pe.css),!0)},ue.prototype._addStyle=function(ce,me){ce.setAttribute("style",""+(ce.getAttribute("style")||"")+me+";")},ue}();function ie(ue,ce,me){for(;ue.length<me;)ue=ce+ue;return ue}ee.DomRendererRowFactory=ge},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.evaluateKeyboardEvent=void 0;var fe=te(12),be={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};ee.evaluateKeyboardEvent=function(ye,he,ge,ie){var ue={type:0,cancel:!1,key:void 0},ce=(ye.shiftKey?1:0)|(ye.altKey?2:0)|(ye.ctrlKey?4:0)|(ye.metaKey?8:0);switch(ye.keyCode){case 0:ye.key==="UIKeyInputUpArrow"?ue.key=he?fe.C0.ESC+"OA":fe.C0.ESC+"[A":ye.key==="UIKeyInputLeftArrow"?ue.key=he?fe.C0.ESC+"OD":fe.C0.ESC+"[D":ye.key==="UIKeyInputRightArrow"?ue.key=he?fe.C0.ESC+"OC":fe.C0.ESC+"[C":ye.key==="UIKeyInputDownArrow"&&(ue.key=he?fe.C0.ESC+"OB":fe.C0.ESC+"[B");break;case 8:if(ye.shiftKey){ue.key=fe.C0.BS;break}if(ye.altKey){ue.key=fe.C0.ESC+fe.C0.DEL;break}ue.key=fe.C0.DEL;break;case 9:if(ye.shiftKey){ue.key=fe.C0.ESC+"[Z";break}ue.key=fe.C0.HT,ue.cancel=!0;break;case 13:ue.key=ye.altKey?fe.C0.ESC+fe.C0.CR:fe.C0.CR,ue.cancel=!0;break;case 27:ue.key=fe.C0.ESC,ye.altKey&&(ue.key=fe.C0.ESC+fe.C0.ESC),ue.cancel=!0;break;case 37:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"D",ue.key===fe.C0.ESC+"[1;3D"&&(ue.key=fe.C0.ESC+(ge?"b":"[1;5D"))):ue.key=he?fe.C0.ESC+"OD":fe.C0.ESC+"[D";break;case 39:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"C",ue.key===fe.C0.ESC+"[1;3C"&&(ue.key=fe.C0.ESC+(ge?"f":"[1;5C"))):ue.key=he?fe.C0.ESC+"OC":fe.C0.ESC+"[C";break;case 38:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"A",ge||ue.key!==fe.C0.ESC+"[1;3A"||(ue.key=fe.C0.ESC+"[1;5A")):ue.key=he?fe.C0.ESC+"OA":fe.C0.ESC+"[A";break;case 40:if(ye.metaKey)break;ce?(ue.key=fe.C0.ESC+"[1;"+(ce+1)+"B",ge||ue.key!==fe.C0.ESC+"[1;3B"||(ue.key=fe.C0.ESC+"[1;5B")):ue.key=he?fe.C0.ESC+"OB":fe.C0.ESC+"[B";break;case 45:ye.shiftKey||ye.ctrlKey||(ue.key=fe.C0.ESC+"[2~");break;case 46:ue.key=ce?fe.C0.ESC+"[3;"+(ce+1)+"~":fe.C0.ESC+"[3~";break;case 36:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"H":he?fe.C0.ESC+"OH":fe.C0.ESC+"[H";break;case 35:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"F":he?fe.C0.ESC+"OF":fe.C0.ESC+"[F";break;case 33:ye.shiftKey?ue.type=2:ue.key=fe.C0.ESC+"[5~";break;case 34:ye.shiftKey?ue.type=3:ue.key=fe.C0.ESC+"[6~";break;case 112:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"P":fe.C0.ESC+"OP";break;case 113:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"Q":fe.C0.ESC+"OQ";break;case 114:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"R":fe.C0.ESC+"OR";break;case 115:ue.key=ce?fe.C0.ESC+"[1;"+(ce+1)+"S":fe.C0.ESC+"OS";break;case 116:ue.key=ce?fe.C0.ESC+"[15;"+(ce+1)+"~":fe.C0.ESC+"[15~";break;case 117:ue.key=ce?fe.C0.ESC+"[17;"+(ce+1)+"~":fe.C0.ESC+"[17~";break;case 118:ue.key=ce?fe.C0.ESC+"[18;"+(ce+1)+"~":fe.C0.ESC+"[18~";break;case 119:ue.key=ce?fe.C0.ESC+"[19;"+(ce+1)+"~":fe.C0.ESC+"[19~";break;case 120:ue.key=ce?fe.C0.ESC+"[20;"+(ce+1)+"~":fe.C0.ESC+"[20~";break;case 121:ue.key=ce?fe.C0.ESC+"[21;"+(ce+1)+"~":fe.C0.ESC+"[21~";break;case 122:ue.key=ce?fe.C0.ESC+"[23;"+(ce+1)+"~":fe.C0.ESC+"[23~";break;case 123:ue.key=ce?fe.C0.ESC+"[24;"+(ce+1)+"~":fe.C0.ESC+"[24~";break;default:if(!ye.ctrlKey||ye.shiftKey||ye.altKey||ye.metaKey)if(ge&&!ie||!ye.altKey||ye.metaKey)ge&&!ye.altKey&&!ye.ctrlKey&&ye.metaKey?ye.keyCode===65&&(ue.type=1):ye.key&&!ye.ctrlKey&&!ye.altKey&&!ye.metaKey&&ye.keyCode>=48&&ye.key.length===1?ue.key=ye.key:ye.key&&ye.ctrlKey&&ye.key==="_"&&(ue.key=fe.C0.US);else{var me=be[ye.keyCode],se=me&&me[ye.shiftKey?1:0];if(se)ue.key=fe.C0.ESC+se;else if(ye.keyCode>=65&&ye.keyCode<=90){var pe=ye.ctrlKey?ye.keyCode-64:ye.keyCode+32;ue.key=fe.C0.ESC+String.fromCharCode(pe)}}else ye.keyCode>=65&&ye.keyCode<=90?ue.key=String.fromCharCode(ye.keyCode-64):ye.keyCode===32?ue.key=fe.C0.NUL:ye.keyCode>=51&&ye.keyCode<=55?ue.key=String.fromCharCode(ye.keyCode-51+27):ye.keyCode===56?ue.key=fe.C0.DEL:ye.keyCode===219?ue.key=fe.C0.ESC:ye.keyCode===220?ue.key=fe.C0.FS:ye.keyCode===221&&(ue.key=fe.C0.GS)}return ue}},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ne,y){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,E){a.__proto__=E}||function(a,E){for(var b in E)E.hasOwnProperty(b)&&(a[b]=E[b])})(ne,y)},function(ne,y){function a(){this.constructor=ne}fe(ne,y),ne.prototype=y===null?Object.create(y):(a.prototype=y.prototype,new a)}),ye=this&&this.__decorate||function(ne,y,a,E){var b,x=arguments.length,z=x<3?y:E===null?E=Object.getOwnPropertyDescriptor(y,a):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(ne,y,a,E);else for(var re=ne.length-1;re>=0;re--)(b=ne[re])&&(z=(x<3?b(z):x>3?b(y,a,z):b(y,a))||z);return x>3&&z&&Object.defineProperty(y,a,z),z},he=this&&this.__param||function(ne,y){return function(a,E){y(a,E,ne)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderService=void 0;var ge=te(31),ie=te(0),ue=te(2),ce=te(32),me=te(7),se=te(1),pe=te(5),oe=function(ne){function y(a,E,b,x,z,re){var le=ne.call(this)||this;if(le._renderer=a,le._rowCount=E,le._isPaused=!1,le._needsFullRefresh=!1,le._isNextRenderRedrawOnly=!0,le._needsSelectionRefresh=!1,le._canvasWidth=0,le._canvasHeight=0,le._selectionState={start:void 0,end:void 0,columnSelectMode:!1},le._onDimensionsChange=new ie.EventEmitter,le._onRender=new ie.EventEmitter,le._onRefreshRequest=new ie.EventEmitter,le.register({dispose:function(){return le._renderer.dispose()}}),le._renderDebouncer=new ge.RenderDebouncer(function(ve,Se){return le._renderRows(ve,Se)}),le.register(le._renderDebouncer),le._screenDprMonitor=new ce.ScreenDprMonitor,le._screenDprMonitor.setListener(function(){return le.onDevicePixelRatioChange()}),le.register(le._screenDprMonitor),le.register(re.onResize(function(ve){return le._fullRefresh()})),le.register(x.onOptionChange(function(){return le._renderer.onOptionsChanged()})),le.register(z.onCharSizeChange(function(){return le.onCharSizeChanged()})),le._renderer.onRequestRedraw(function(ve){return le.refreshRows(ve.start,ve.end,!0)}),le.register(me.addDisposableDomListener(window,"resize",function(){return le.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var de=new IntersectionObserver(function(ve){return le._onIntersectionChange(ve[ve.length-1])},{threshold:0});de.observe(b),le.register({dispose:function(){return de.disconnect()}})}return le}return be(y,ne),Object.defineProperty(y.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),y.prototype._onIntersectionChange=function(a){this._isPaused=a.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},y.prototype.refreshRows=function(a,E,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(a,E,this._rowCount))},y.prototype._renderRows=function(a,E){this._renderer.renderRows(a,E),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:a,end:E}),this._isNextRenderRedrawOnly=!0},y.prototype.resize=function(a,E){this._rowCount=E,this._fireOnCanvasResize()},y.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},y.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},y.prototype.dispose=function(){ne.prototype.dispose.call(this)},y.prototype.setRenderer=function(a){var E=this;this._renderer.dispose(),this._renderer=a,this._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},y.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},y.prototype.setColors=function(a){this._renderer.setColors(a),this._fullRefresh()},y.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},y.prototype.onResize=function(a,E){this._renderer.onResize(a,E),this._fullRefresh()},y.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},y.prototype.onBlur=function(){this._renderer.onBlur()},y.prototype.onFocus=function(){this._renderer.onFocus()},y.prototype.onSelectionChanged=function(a,E,b){this._selectionState.start=a,this._selectionState.end=E,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(a,E,b)},y.prototype.onCursorMove=function(){this._renderer.onCursorMove()},y.prototype.clear=function(){this._renderer.clear()},y.prototype.registerCharacterJoiner=function(a){return this._renderer.registerCharacterJoiner(a)},y.prototype.deregisterCharacterJoiner=function(a){return this._renderer.deregisterCharacterJoiner(a)},y=ye([he(3,se.IOptionsService),he(4,pe.ICharSizeService),he(5,se.IBufferService)],y)}(ue.Disposable);ee.RenderService=oe},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(ue,ce,me,se){var pe,oe=arguments.length,ne=oe<3?ce:se===null?se=Object.getOwnPropertyDescriptor(ce,me):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(ue,ce,me,se);else for(var y=ue.length-1;y>=0;y--)(pe=ue[y])&&(ne=(oe<3?pe(ne):oe>3?pe(ce,me,ne):pe(ce,me))||ne);return oe>3&&ne&&Object.defineProperty(ce,me,ne),ne},be=this&&this.__param||function(ue,ce){return function(me,se){ce(me,se,ue)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharSizeService=void 0;var ye=te(1),he=te(0),ge=function(){function ue(ce,me,se){this._optionsService=se,this.width=0,this.height=0,this._onCharSizeChange=new he.EventEmitter,this._measureStrategy=new ie(ce,me,this._optionsService)}return Object.defineProperty(ue.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),ue.prototype.measure=function(){var ce=this._measureStrategy.measure();ce.width===this.width&&ce.height===this.height||(this.width=ce.width,this.height=ce.height,this._onCharSizeChange.fire())},ue=fe([be(2,ye.IOptionsService)],ue)}();ee.CharSizeService=ge;var ie=function(){function ue(ce,me,se){this._document=ce,this._parentElement=me,this._optionsService=se,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 ue.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var ce=this._measureElement.getBoundingClientRect();return ce.width!==0&&ce.height!==0&&(this._result.width=ce.width,this._result.height=Math.ceil(ce.height)),this._result},ue}()},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(ie,ue,ce,me){var se,pe=arguments.length,oe=pe<3?ue:me===null?me=Object.getOwnPropertyDescriptor(ue,ce):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,ue,ce,me);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(oe=(pe<3?se(oe):pe>3?se(ue,ce,oe):se(ue,ce))||oe);return pe>3&&oe&&Object.defineProperty(ue,ce,oe),oe},be=this&&this.__param||function(ie,ue){return function(ce,me){ue(ce,me,ie)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseService=void 0;var ye=te(5),he=te(30),ge=function(){function ie(ue,ce){this._renderService=ue,this._charSizeService=ce}return ie.prototype.getCoords=function(ue,ce,me,se,pe){return he.getCoords(ue,ce,me,se,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,pe)},ie.prototype.getRawByteCoords=function(ue,ce,me,se){var pe=this.getCoords(ue,ce,me,se);return he.getRawByteCoords(pe)},ie=fe([be(0,ye.IRenderService),be(1,ye.ICharSizeService)],ie)}();ee.MouseService=ge},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var y in ne)ne.hasOwnProperty(y)&&(oe[y]=ne[y])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var y,a=arguments.length,E=a<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(y=se[b])&&(E=(a<3?y(E):a>3?y(pe,oe,E):y(pe,oe))||E);return a>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Linkifier2=void 0;var ge=te(1),ie=te(0),ue=te(2),ce=te(7),me=function(se){function pe(oe){var ne=se.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(ue.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return be(pe,se),Object.defineProperty(pe.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),pe.prototype.registerLinkProvider=function(oe){var ne=this;return this._linkProviders.push(oe),{dispose:function(){var y=ne._linkProviders.indexOf(oe);y!==-1&&ne._linkProviders.splice(y,1)}}},pe.prototype.attachToDom=function(oe,ne,y){var a=this;this._element=oe,this._mouseService=ne,this._renderService=y,this.register(ce.addDisposableDomListener(this._element,"mouseleave",function(){a._isMouseOut=!0,a._clearCurrentLink()})),this.register(ce.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(ce.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},pe.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 y=oe.composedPath(),a=0;a<y.length;a++){var E=y[a];if(E.classList.contains("xterm"))break;if(E.classList.contains("xterm-hover"))return}this._lastBufferCell&&ne.x===this._lastBufferCell.x&&ne.y===this._lastBufferCell.y||(this._onHover(ne),this._lastBufferCell=ne)}}},pe.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))},pe.prototype._askForLink=function(oe,ne){var y=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=oe.y);var a=!1;this._linkProviders.forEach(function(E,b){var x;ne?!((x=y._activeProviderReplies)===null||x===void 0)&&x.get(b)&&(a=y._checkLinkProviderResult(b,oe,a)):E.provideLinks(oe.y,function(z){var re,le;if(!y._isMouseOut){var de=z==null?void 0:z.map(function(ve){return{link:ve}});(re=y._activeProviderReplies)===null||re===void 0||re.set(b,de),a=y._checkLinkProviderResult(b,oe,a),((le=y._activeProviderReplies)===null||le===void 0?void 0:le.size)===y._linkProviders.length&&y._removeIntersectingLinks(oe.y,y._activeProviderReplies)}})})},pe.prototype._removeIntersectingLinks=function(oe,ne){for(var y=new Set,a=0;a<ne.size;a++){var E=ne.get(a);if(E)for(var b=0;b<E.length;b++)for(var x=E[b],z=x.link.range.start.y<oe?0:x.link.range.start.x,re=x.link.range.end.y>oe?this._bufferService.cols:x.link.range.end.x,le=z;le<=re;le++){if(y.has(le)){E.splice(b--,1);break}y.add(le)}}},pe.prototype._checkLinkProviderResult=function(oe,ne,y){var a,E=this;if(!this._activeProviderReplies)return y;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(de){return E._linkAtPosition(de.link,ne)});re&&(y=!0,this._handleNewLink(re))}if(this._activeProviderReplies.size===this._linkProviders.length&&!y)for(z=0;z<this._activeProviderReplies.size;z++){var le=(a=this._activeProviderReplies.get(z))===null||a===void 0?void 0:a.find(function(de){return E._linkAtPosition(de.link,ne)});if(le){y=!0,this._handleNewLink(le);break}}return y},pe.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)}},pe.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,ue.disposeArray(this._linkCacheDisposables))},pe.prototype._handleNewLink=function(oe){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var y=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);y&&this._linkAtPosition(oe.link,y)&&(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 a,E;return(E=(a=ne._currentLink)===null||a===void 0?void 0:a.state)===null||E===void 0?void 0:E.decorations.pointerCursor},set:function(a){var E,b;!((E=ne._currentLink)===null||E===void 0)&&E.state&&ne._currentLink.state.decorations.pointerCursor!==a&&(ne._currentLink.state.decorations.pointerCursor=a,ne._currentLink.state.isHovered&&((b=ne._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",a)))}},underline:{get:function(){var a,E;return(E=(a=ne._currentLink)===null||a===void 0?void 0:a.state)===null||E===void 0?void 0:E.decorations.underline},set:function(a){var E,b,x;!((E=ne._currentLink)===null||E===void 0)&&E.state&&((x=(b=ne._currentLink)===null||b===void 0?void 0:b.state)===null||x===void 0?void 0:x.decorations.underline)!==a&&(ne._currentLink.state.decorations.underline=a,ne._currentLink.state.isHovered&&ne._fireUnderlineEvent(oe.link,a))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(a){var E=a.start===0?0:a.start+1+ne._bufferService.buffer.ydisp;ne._clearCurrentLink(E,a.end+1+ne._bufferService.buffer.ydisp)})))}},pe.prototype._linkHover=function(oe,ne,y){var a;!((a=this._currentLink)===null||a===void 0)&&a.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!0),this._currentLink.state.decorations.pointerCursor&&oe.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(y,ne.text)},pe.prototype._fireUnderlineEvent=function(oe,ne){var y=oe.range,a=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(y.start.x-1,y.start.y-a-1,y.end.x,y.end.y-a-1,void 0);(ne?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)},pe.prototype._linkLeave=function(oe,ne,y){var a;!((a=this._currentLink)===null||a===void 0)&&a.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!1),this._currentLink.state.decorations.pointerCursor&&oe.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(y,ne.text)},pe.prototype._linkAtPosition=function(oe,ne){var y=oe.range.start.y===oe.range.end.y,a=oe.range.start.y<ne.y,E=oe.range.end.y>ne.y;return(y&&oe.range.start.x<=ne.x&&oe.range.end.x>=ne.x||a&&oe.range.end.x>=ne.x||E&&oe.range.start.x<=ne.x||a&&E)&&oe.range.start.y<=ne.y&&oe.range.end.y>=ne.y},pe.prototype._positionFromMouseEvent=function(oe,ne,y){var a=y.getCoords(oe,ne,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}},pe.prototype._createLinkUnderlineEvent=function(oe,ne,y,a,E){return{x1:oe,y1:ne,x2:y,y2:a,cols:this._bufferService.cols,fg:E}},pe=ye([he(0,ge.IBufferService)],pe)}(ue.Disposable);ee.Linkifier2=me},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreBrowserService=void 0;var fe=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}();ee.CoreBrowserService=fe},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(z,re){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,de){le.__proto__=de}||function(le,de){for(var ve in de)de.hasOwnProperty(ve)&&(le[ve]=de[ve])})(z,re)},function(z,re){function le(){this.constructor=z}fe(z,re),z.prototype=re===null?Object.create(re):(le.prototype=re.prototype,new le)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreTerminal=void 0;var ye=te(2),he=te(1),ge=te(66),ie=te(67),ue=te(68),ce=te(74),me=te(75),se=te(0),pe=te(76),oe=te(77),ne=te(78),y=te(80),a=te(81),E=te(19),b=te(82),x=function(z){function re(le){var de=z.call(this)||this;return de._onBinary=new se.EventEmitter,de._onData=new se.EventEmitter,de._onLineFeed=new se.EventEmitter,de._onResize=new se.EventEmitter,de._onScroll=new se.EventEmitter,de._instantiationService=new ge.InstantiationService,de.optionsService=new ce.OptionsService(le),de._instantiationService.setService(he.IOptionsService,de.optionsService),de._bufferService=de.register(de._instantiationService.createInstance(ue.BufferService)),de._instantiationService.setService(he.IBufferService,de._bufferService),de._logService=de._instantiationService.createInstance(ie.LogService),de._instantiationService.setService(he.ILogService,de._logService),de._coreService=de.register(de._instantiationService.createInstance(me.CoreService,function(){return de.scrollToBottom()})),de._instantiationService.setService(he.ICoreService,de._coreService),de._coreMouseService=de._instantiationService.createInstance(pe.CoreMouseService),de._instantiationService.setService(he.ICoreMouseService,de._coreMouseService),de._dirtyRowService=de._instantiationService.createInstance(oe.DirtyRowService),de._instantiationService.setService(he.IDirtyRowService,de._dirtyRowService),de.unicodeService=de._instantiationService.createInstance(ne.UnicodeService),de._instantiationService.setService(he.IUnicodeService,de.unicodeService),de._charsetService=de._instantiationService.createInstance(y.CharsetService),de._instantiationService.setService(he.ICharsetService,de._charsetService),de._inputHandler=new E.InputHandler(de._bufferService,de._charsetService,de._coreService,de._dirtyRowService,de._logService,de.optionsService,de._coreMouseService,de.unicodeService),de.register(se.forwardEvent(de._inputHandler.onLineFeed,de._onLineFeed)),de.register(de._inputHandler),de.register(se.forwardEvent(de._bufferService.onResize,de._onResize)),de.register(se.forwardEvent(de._coreService.onData,de._onData)),de.register(se.forwardEvent(de._coreService.onBinary,de._onBinary)),de.register(de.optionsService.onOptionChange(function(ve){return de._updateOptions(ve)})),de._writeBuffer=new b.WriteBuffer(function(ve){return de._inputHandler.parse(ve)}),de}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 le;this._isDisposed||(z.prototype.dispose.call(this),(le=this._windowsMode)===null||le===void 0||le.dispose(),this._windowsMode=void 0)},re.prototype.write=function(le,de){this._writeBuffer.write(le,de)},re.prototype.writeSync=function(le){this._writeBuffer.writeSync(le)},re.prototype.resize=function(le,de){isNaN(le)||isNaN(de)||(le=Math.max(le,ue.MINIMUM_COLS),de=Math.max(de,ue.MINIMUM_ROWS),this._bufferService.resize(le,de))},re.prototype.scroll=function(le,de){de===void 0&&(de=!1);var ve,Se=this._bufferService.buffer;(ve=this._cachedBlankLine)&&ve.length===this.cols&&ve.getFg(0)===le.fg&&ve.getBg(0)===le.bg||(ve=Se.getBlankLine(le,de),this._cachedBlankLine=ve),ve.isWrapped=de;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(ve):Se.lines.push(ve.clone()):Se.lines.splice(Ee+1,0,ve.clone()),je?this._bufferService.isUserScrolling&&(Se.ydisp=Math.max(Se.ydisp-1,0)):(Se.ybase++,this._bufferService.isUserScrolling||Se.ydisp++)}else{var xe=Ee-Le+1;Se.lines.shiftElements(Le+1,xe-1,-1),Se.lines.set(Ee,ve.clone())}this._bufferService.isUserScrolling||(Se.ydisp=Se.ybase),this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom),this._onScroll.fire(Se.ydisp)},re.prototype.scrollLines=function(le,de){var ve=this._bufferService.buffer;if(le<0){if(ve.ydisp===0)return;this._bufferService.isUserScrolling=!0}else le+ve.ydisp>=ve.ybase&&(this._bufferService.isUserScrolling=!1);var Se=ve.ydisp;ve.ydisp=Math.max(Math.min(ve.ydisp+le,ve.ybase),0),Se!==ve.ydisp&&(de||this._onScroll.fire(ve.ydisp))},re.prototype.scrollPages=function(le){this.scrollLines(le*(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(le){var de=le-this._bufferService.buffer.ydisp;de!==0&&this.scrollLines(de)},re.prototype.addEscHandler=function(le,de){return this._inputHandler.addEscHandler(le,de)},re.prototype.addDcsHandler=function(le,de){return this._inputHandler.addDcsHandler(le,de)},re.prototype.addCsiHandler=function(le,de){return this._inputHandler.addCsiHandler(le,de)},re.prototype.addOscHandler=function(le,de){return this._inputHandler.addOscHandler(le,de)},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(le){var de;switch(le){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((de=this._windowsMode)===null||de===void 0||de.dispose(),this._windowsMode=void 0)}},re.prototype._enableWindowsMode=function(){var le=this;if(!this._windowsMode){var de=[];de.push(this.onLineFeed(a.updateWindowsModeWrappedState.bind(null,this._bufferService))),de.push(this.addCsiHandler({final:"H"},function(){return a.updateWindowsModeWrappedState(le._bufferService),!1})),this._windowsMode={dispose:function(){for(var ve=0,Se=de;ve<Se.length;ve++)Se[ve].dispose()}}}},re}(ye.Disposable);ee.CoreTerminal=x},function(Ve,ee,te){"use strict";var fe=this&&this.__spreadArrays||function(){for(var ie=0,ue=0,ce=arguments.length;ue<ce;ue++)ie+=arguments[ue].length;var me=Array(ie),se=0;for(ue=0;ue<ce;ue++)for(var pe=arguments[ue],oe=0,ne=pe.length;oe<ne;oe++,se++)me[se]=pe[oe];return me};Object.defineProperty(ee,"__esModule",{value:!0}),ee.InstantiationService=ee.ServiceCollection=void 0;var be=te(1),ye=te(14),he=function(){function ie(){for(var ue=[],ce=0;ce<arguments.length;ce++)ue[ce]=arguments[ce];this._entries=new Map;for(var me=0,se=ue;me<se.length;me++){var pe=se[me],oe=pe[0],ne=pe[1];this.set(oe,ne)}}return ie.prototype.set=function(ue,ce){var me=this._entries.get(ue);return this._entries.set(ue,ce),me},ie.prototype.forEach=function(ue){this._entries.forEach(function(ce,me){return ue(me,ce)})},ie.prototype.has=function(ue){return this._entries.has(ue)},ie.prototype.get=function(ue){return this._entries.get(ue)},ie}();ee.ServiceCollection=he;var ge=function(){function ie(){this._services=new he,this._services.set(be.IInstantiationService,this)}return ie.prototype.setService=function(ue,ce){this._services.set(ue,ce)},ie.prototype.getService=function(ue){return this._services.get(ue)},ie.prototype.createInstance=function(ue){for(var ce=[],me=1;me<arguments.length;me++)ce[me-1]=arguments[me];for(var se=ye.getServiceDependencies(ue).sort(function(b,x){return b.index-x.index}),pe=[],oe=0,ne=se;oe<ne.length;oe++){var y=ne[oe],a=this._services.get(y.id);if(!a)throw new Error("[createInstance] "+ue.name+" depends on UNKNOWN service "+y.id+".");pe.push(a)}var E=se.length>0?se[0].index:ce.length;if(ce.length!==E)throw new Error("[createInstance] First service dependency of "+ue.name+" at position "+(E+1)+" conflicts with "+ce.length+" static arguments");return new(ue.bind.apply(ue,fe([void 0],fe(ce,pe))))},ie}();ee.InstantiationService=ge},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(ce,me,se,pe){var oe,ne=arguments.length,y=ne<3?me:pe===null?pe=Object.getOwnPropertyDescriptor(me,se):pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(ce,me,se,pe);else for(var a=ce.length-1;a>=0;a--)(oe=ce[a])&&(y=(ne<3?oe(y):ne>3?oe(me,se,y):oe(me,se))||y);return ne>3&&y&&Object.defineProperty(me,se,y),y},be=this&&this.__param||function(ce,me){return function(se,pe){me(se,pe,ce)}},ye=this&&this.__spreadArrays||function(){for(var ce=0,me=0,se=arguments.length;me<se;me++)ce+=arguments[me].length;var pe=Array(ce),oe=0;for(me=0;me<se;me++)for(var ne=arguments[me],y=0,a=ne.length;y<a;y++,oe++)pe[oe]=ne[y];return pe};Object.defineProperty(ee,"__esModule",{value:!0}),ee.LogService=ee.LogLevel=void 0;var he,ge=te(1);(function(ce){ce[ce.DEBUG=0]="DEBUG",ce[ce.INFO=1]="INFO",ce[ce.WARN=2]="WARN",ce[ce.ERROR=3]="ERROR",ce[ce.OFF=4]="OFF"})(he=ee.LogLevel||(ee.LogLevel={}));var ie={debug:he.DEBUG,info:he.INFO,warn:he.WARN,error:he.ERROR,off:he.OFF},ue=function(){function ce(me){var se=this;this._optionsService=me,this._updateLogLevel(),this._optionsService.onOptionChange(function(pe){pe==="logLevel"&&se._updateLogLevel()})}return ce.prototype._updateLogLevel=function(){this._logLevel=ie[this._optionsService.options.logLevel]},ce.prototype._evalLazyOptionalParams=function(me){for(var se=0;se<me.length;se++)typeof me[se]=="function"&&(me[se]=me[se]())},ce.prototype._log=function(me,se,pe){this._evalLazyOptionalParams(pe),me.call.apply(me,ye([console,"xterm.js: "+se],pe))},ce.prototype.debug=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.DEBUG&&this._log(console.log,me,se)},ce.prototype.info=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.INFO&&this._log(console.info,me,se)},ce.prototype.warn=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.WARN&&this._log(console.warn,me,se)},ce.prototype.error=function(me){for(var se=[],pe=1;pe<arguments.length;pe++)se[pe-1]=arguments[pe];this._logLevel<=he.ERROR&&this._log(console.error,me,se)},ce=fe([be(0,ge.IOptionsService)],ce)}();ee.LogService=ue},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(se,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var y in ne)ne.hasOwnProperty(y)&&(oe[y]=ne[y])})(se,pe)},function(se,pe){function oe(){this.constructor=se}fe(se,pe),se.prototype=pe===null?Object.create(pe):(oe.prototype=pe.prototype,new oe)}),ye=this&&this.__decorate||function(se,pe,oe,ne){var y,a=arguments.length,E=a<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(y=se[b])&&(E=(a<3?y(E):a>3?y(pe,oe,E):y(pe,oe))||E);return a>3&&E&&Object.defineProperty(pe,oe,E),E},he=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferService=ee.MINIMUM_ROWS=ee.MINIMUM_COLS=void 0;var ge=te(1),ie=te(69),ue=te(0),ce=te(2);ee.MINIMUM_COLS=2,ee.MINIMUM_ROWS=1;var me=function(se){function pe(oe){var ne=se.call(this)||this;return ne._optionsService=oe,ne.isUserScrolling=!1,ne._onResize=new ue.EventEmitter,ne.cols=Math.max(oe.options.cols,ee.MINIMUM_COLS),ne.rows=Math.max(oe.options.rows,ee.MINIMUM_ROWS),ne.buffers=new ie.BufferSet(oe,ne),ne}return be(pe,se),Object.defineProperty(pe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),pe.prototype.dispose=function(){se.prototype.dispose.call(this),this.buffers.dispose()},pe.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})},pe.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ie.BufferSet(this._optionsService,this),this.isUserScrolling=!1},pe=ye([he(0,ge.IOptionsService)],pe)}(ce.Disposable);ee.BufferService=me},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ie,ue){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,me){ce.__proto__=me}||function(ce,me){for(var se in me)me.hasOwnProperty(se)&&(ce[se]=me[se])})(ie,ue)},function(ie,ue){function ce(){this.constructor=ie}fe(ie,ue),ie.prototype=ue===null?Object.create(ue):(ce.prototype=ue.prototype,new ce)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferSet=void 0;var ye=te(70),he=te(0),ge=function(ie){function ue(ce,me){var se=ie.call(this)||this;return se._onBufferActivate=se.register(new he.EventEmitter),se._normal=new ye.Buffer(!0,ce,me),se._normal.fillViewportRows(),se._alt=new ye.Buffer(!1,ce,me),se._activeBuffer=se._normal,se.setupTabStops(),se}return be(ue,ie),Object.defineProperty(ue.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),ue.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}))},ue.prototype.activateAltBuffer=function(ce){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(ce),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}))},ue.prototype.resize=function(ce,me){this._normal.resize(ce,me),this._alt.resize(ce,me)},ue.prototype.setupTabStops=function(ce){this._normal.setupTabStops(ce),this._alt.setupTabStops(ce)},ue}(te(2).Disposable);ee.BufferSet=ge},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferStringIterator=ee.Buffer=ee.MAX_BUFFER_SIZE=void 0;var fe=te(71),be=te(16),ye=te(4),he=te(3),ge=te(72),ie=te(73),ue=te(20),ce=te(6);ee.MAX_BUFFER_SIZE=4294967295;var me=function(){function pe(oe,ne,y){this._hasScrollback=oe,this._optionsService=ne,this._bufferService=y,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=be.DEFAULT_ATTR_DATA.clone(),this.savedCharset=ue.DEFAULT_CHARSET,this.markers=[],this._nullCell=ye.CellData.fromCharData([0,he.NULL_CELL_CHAR,he.NULL_CELL_WIDTH,he.NULL_CELL_CODE]),this._whitespaceCell=ye.CellData.fromCharData([0,he.WHITESPACE_CELL_CHAR,he.WHITESPACE_CELL_WIDTH,he.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return pe.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 ce.ExtendedAttrs),this._nullCell},pe.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 ce.ExtendedAttrs),this._whitespaceCell},pe.prototype.getBlankLine=function(oe,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(oe),ne)},Object.defineProperty(pe.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"isCursorInViewport",{get:function(){var oe=this.ybase+this.y-this.ydisp;return oe>=0&&oe<this._rows},enumerable:!1,configurable:!0}),pe.prototype._getCorrectBufferLength=function(oe){if(!this._hasScrollback)return oe;var ne=oe+this._optionsService.options.scrollback;return ne>ee.MAX_BUFFER_SIZE?ee.MAX_BUFFER_SIZE:ne},pe.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))}},pe.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},pe.prototype.resize=function(oe,ne){var y=this.getNullCell(be.DEFAULT_ATTR_DATA),a=this._getCorrectBufferLength(ne);if(a>this.lines.maxLength&&(this.lines.maxLength=a),this.lines.length>0){if(this._cols<oe)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(oe,y);var b=0;if(this._rows<ne)for(var x=this._rows;x<ne;x++)this.lines.length<ne+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new be.BufferLine(oe,y)):this.ybase>0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new be.BufferLine(oe,y)));else for(x=this._rows;x>ne;x--)this.lines.length>ne+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(a<this.lines.maxLength){var z=this.lines.length-a;z>0&&(this.lines.trimStart(z),this.ybase=Math.max(this.ybase-z,0),this.ydisp=Math.max(this.ydisp-z,0),this.savedY=Math.max(this.savedY-z,0)),this.lines.maxLength=a}this.x=Math.min(this.x,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,y);this._cols=oe,this._rows=ne},Object.defineProperty(pe.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),pe.prototype._reflow=function(oe,ne){this._cols!==oe&&(oe>this._cols?this._reflowLarger(oe,ne):this._reflowSmaller(oe,ne))},pe.prototype._reflowLarger=function(oe,ne){var y=ge.reflowLargerGetLinesToRemove(this.lines,this._cols,oe,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(y.length>0){var a=ge.reflowLargerCreateNewLayout(this.lines,y);ge.reflowLargerApplyNewLayout(this.lines,a.layout),this._reflowLargerAdjustViewport(oe,ne,a.countRemoved)}},pe.prototype._reflowLargerAdjustViewport=function(oe,ne,y){for(var a=this.getNullCell(be.DEFAULT_ATTR_DATA),E=y;E-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<ne&&this.lines.push(new be.BufferLine(oe,a))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-y,0)},pe.prototype._reflowSmaller=function(oe,ne){for(var y=this.getNullCell(be.DEFAULT_ATTR_DATA),a=[],E=0,b=this.lines.length-1;b>=0;b--){var x=this.lines.get(b);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=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 le=z[z.length-1].getTrimmedLength(),de=ge.reflowSmallerGetNewLineLengths(z,this._cols,oe),ve=de.length-z.length,Se=void 0;Se=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ve):Math.max(0,this.lines.length-this.lines.maxLength+ve);for(var Le=[],Ee=0;Ee<ve;Ee++){var je=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);Le.push(je)}Le.length>0&&(a.push({start:b+z.length+E,newLines:Le}),E+=Le.length),z.push.apply(z,Le);var xe=de.length-1,lt=de[xe];lt===0&&(lt=de[--xe]);for(var Ye=z.length-ve-1,ft=le;Ye>=0;){var Me=Math.min(ft,lt);if(z[xe].copyCellsFrom(z[Ye],ft-Me,lt-Me,Me,!0),(lt-=Me)===0&&(lt=de[--xe]),(ft-=Me)===0){Ye--;var He=Math.max(Ye,0);ft=ge.getWrappedLineTrimmedLength(z,He,this._cols)}}for(Ee=0;Ee<z.length;Ee++)de[Ee]<oe&&z[Ee].setCell(de[Ee],y);for(var Ne=ve-Se;Ne-- >0;)this.ybase===0?this.y<ne-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+E)-ne&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ve,this.ybase+ne-1)}}}if(a.length>0){var ot=[],Ze=[];for(Ee=0;Ee<this.lines.length;Ee++)Ze.push(this.lines.get(Ee));var vt=this.lines.length,Pt=vt-1,Mt=0,At=a[Mt];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var et=0;for(Ee=Math.min(this.lines.maxLength-1,vt+E-1);Ee>=0;Ee--)if(At&&At.start>Pt+et){for(var Qe=At.newLines.length-1;Qe>=0;Qe--)this.lines.set(Ee--,At.newLines[Qe]);Ee++,ot.push({index:Pt+1,amount:At.newLines.length}),et+=At.newLines.length,At=a[++Mt]}else this.lines.set(Ee,Ze[Pt--]);var Et=0;for(Ee=ot.length-1;Ee>=0;Ee--)ot[Ee].index+=Et,this.lines.onInsertEmitter.fire(ot[Ee]),Et+=ot[Ee].amount;var Kt=Math.max(0,vt+E-this.lines.maxLength);Kt>0&&this.lines.onTrimEmitter.fire(Kt)}},pe.prototype.stringIndexToBufferIndex=function(oe,ne,y){for(y===void 0&&(y=!1);ne;){var a=this.lines.get(oe);if(!a)return[-1,-1];for(var E=y?a.getTrimmedLength():a.length,b=0;b<E;++b)if(a.get(b)[he.CHAR_DATA_WIDTH_INDEX]&&(ne-=a.get(b)[he.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[oe,b];oe++}return[oe,0]},pe.prototype.translateBufferLineToString=function(oe,ne,y,a){y===void 0&&(y=0);var E=this.lines.get(oe);return E?E.translateToString(ne,y,a):""},pe.prototype.getWrappedRangeForLine=function(oe){for(var ne=oe,y=oe;ne>0&&this.lines.get(ne).isWrapped;)ne--;for(;y+1<this.lines.length&&this.lines.get(y+1).isWrapped;)y++;return{first:ne,last:y}},pe.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},pe.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},pe.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},pe.prototype.addMarker=function(oe){var ne=this,y=new ie.Marker(oe);return this.markers.push(y),y.register(this.lines.onTrim(function(a){y.line-=a,y.line<0&&y.dispose()})),y.register(this.lines.onInsert(function(a){y.line>=a.index&&(y.line+=a.amount)})),y.register(this.lines.onDelete(function(a){y.line>=a.index&&y.line<a.index+a.amount&&y.dispose(),y.line>a.index&&(y.line-=a.amount)})),y.register(y.onDispose(function(){return ne._removeMarker(y)})),y},pe.prototype._removeMarker=function(oe){this.markers.splice(this.markers.indexOf(oe),1)},pe.prototype.iterator=function(oe,ne,y,a,E){return new se(this,oe,ne,y,a,E)},pe}();ee.Buffer=me;var se=function(){function pe(oe,ne,y,a,E,b){y===void 0&&(y=0),a===void 0&&(a=oe.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=oe,this._trimRight=ne,this._startIndex=y,this._endIndex=a,this._startOverscan=E,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return pe.prototype.hasNext=function(){return this._current<this._endIndex},pe.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="",y=oe.first;y<=oe.last;++y)ne+=this._buffer.translateBufferLineToString(y,this._trimRight);return this._current=oe.last+1,{range:oe,content:ne}},pe}();ee.BufferStringIterator=se},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CircularList=void 0;var fe=te(0),be=function(){function ye(he){this._maxLength=he,this.onDeleteEmitter=new fe.EventEmitter,this.onInsertEmitter=new fe.EventEmitter,this.onTrimEmitter=new fe.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(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(he){if(this._maxLength!==he){for(var ge=new Array(he),ie=0;ie<Math.min(he,this.length);ie++)ge[ie]=this._array[this._getCyclicIndex(ie)];this._array=ge,this._maxLength=he,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"length",{get:function(){return this._length},set:function(he){if(he>this._length)for(var ge=this._length;ge<he;ge++)this._array[ge]=void 0;this._length=he},enumerable:!1,configurable:!0}),ye.prototype.get=function(he){return this._array[this._getCyclicIndex(he)]},ye.prototype.set=function(he,ge){this._array[this._getCyclicIndex(he)]=ge},ye.prototype.push=function(he){this._array[this._getCyclicIndex(this._length)]=he,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(he,ge){for(var ie=[],ue=2;ue<arguments.length;ue++)ie[ue-2]=arguments[ue];if(ge){for(var ce=he;ce<this._length-ge;ce++)this._array[this._getCyclicIndex(ce)]=this._array[this._getCyclicIndex(ce+ge)];this._length-=ge}for(ce=this._length-1;ce>=he;ce--)this._array[this._getCyclicIndex(ce+ie.length)]=this._array[this._getCyclicIndex(ce)];for(ce=0;ce<ie.length;ce++)this._array[this._getCyclicIndex(he+ce)]=ie[ce];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(he){he>this._length&&(he=this._length),this._startIndex+=he,this._length-=he,this.onTrimEmitter.fire(he)},ye.prototype.shiftElements=function(he,ge,ie){if(!(ge<=0)){if(he<0||he>=this._length)throw new Error("start argument out of range");if(he+ie<0)throw new Error("Cannot shift elements in list beyond index 0");if(ie>0){for(var ue=ge-1;ue>=0;ue--)this.set(he+ue+ie,this.get(he+ue));var ce=he+ge+ie-this._length;if(ce>0)for(this._length+=ce;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(ue=0;ue<ge;ue++)this.set(he+ue+ie,this.get(he+ue))}},ye.prototype._getCyclicIndex=function(he){return(this._startIndex+he)%this._maxLength},ye}();ee.CircularList=be},function(Ve,ee,te){"use strict";function fe(be,ye,he){if(ye===be.length-1)return be[ye].getTrimmedLength();var ge=!be[ye].hasContent(he-1)&&be[ye].getWidth(he-1)===1,ie=be[ye+1].getWidth(0)===2;return ge&&ie?he-1:he}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getWrappedLineTrimmedLength=ee.reflowSmallerGetNewLineLengths=ee.reflowLargerApplyNewLayout=ee.reflowLargerCreateNewLayout=ee.reflowLargerGetLinesToRemove=void 0,ee.reflowLargerGetLinesToRemove=function(be,ye,he,ge,ie){for(var ue=[],ce=0;ce<be.length-1;ce++){var me=ce,se=be.get(++me);if(se.isWrapped){for(var pe=[be.get(ce)];me<be.length&&se.isWrapped;)pe.push(se),se=be.get(++me);if(ge>=ce&&ge<me)ce+=pe.length-1;else{for(var oe=0,ne=fe(pe,oe,ye),y=1,a=0;y<pe.length;){var E=fe(pe,y,ye),b=E-a,x=he-ne,z=Math.min(b,x);pe[oe].copyCellsFrom(pe[y],a,ne,z,!1),(ne+=z)===he&&(oe++,ne=0),(a+=z)===E&&(y++,a=0),ne===0&&oe!==0&&pe[oe-1].getWidth(he-1)===2&&(pe[oe].copyCellsFrom(pe[oe-1],he-1,ne++,1,!1),pe[oe-1].setCell(he-1,ie))}pe[oe].replaceCells(ne,he,ie);for(var re=0,le=pe.length-1;le>0&&(le>oe||pe[le].getTrimmedLength()===0);le--)re++;re>0&&(ue.push(ce+pe.length-re),ue.push(re)),ce+=pe.length-1}}}return ue},ee.reflowLargerCreateNewLayout=function(be,ye){for(var he=[],ge=0,ie=ye[ge],ue=0,ce=0;ce<be.length;ce++)if(ie===ce){var me=ye[++ge];be.onDeleteEmitter.fire({index:ce-ue,amount:me}),ce+=me-1,ue+=me,ie=ye[++ge]}else he.push(ce);return{layout:he,countRemoved:ue}},ee.reflowLargerApplyNewLayout=function(be,ye){for(var he=[],ge=0;ge<ye.length;ge++)he.push(be.get(ye[ge]));for(ge=0;ge<he.length;ge++)be.set(ge,he[ge]);be.length=ye.length},ee.reflowSmallerGetNewLineLengths=function(be,ye,he){for(var ge=[],ie=be.map(function(ne,y){return fe(be,y,ye)}).reduce(function(ne,y){return ne+y}),ue=0,ce=0,me=0;me<ie;){if(ie-me<he){ge.push(ie-me);break}ue+=he;var se=fe(be,ce,ye);ue>se&&(ue-=se,ce++);var pe=be[ce].getWidth(ue-1)===2;pe&&ue--;var oe=pe?he-1:he;ge.push(oe),me+=oe}return ge},ee.getWrappedLineTrimmedLength=fe},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ge,ie){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,ce){ue.__proto__=ce}||function(ue,ce){for(var me in ce)ce.hasOwnProperty(me)&&(ue[me]=ce[me])})(ge,ie)},function(ge,ie){function ue(){this.constructor=ge}fe(ge,ie),ge.prototype=ie===null?Object.create(ie):(ue.prototype=ie.prototype,new ue)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Marker=void 0;var ye=te(0),he=function(ge){function ie(ue){var ce=ge.call(this)||this;return ce.line=ue,ce._id=ie._nextId++,ce.isDisposed=!1,ce._onDispose=new ye.EventEmitter,ce}return be(ie,ge),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}(te(2).Disposable);ee.Marker=he},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OptionsService=ee.DEFAULT_OPTIONS=ee.DEFAULT_BELL_SOUND=void 0;var fe=te(0),be=te(11),ye=te(33);ee.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",ee.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:ee.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:be.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var he=["cols","rows"],ge=function(){function ie(ue){this._onOptionChange=new fe.EventEmitter,this.options=ye.clone(ee.DEFAULT_OPTIONS);for(var ce=0,me=Object.keys(ue);ce<me.length;ce++){var se=me[ce];if(se in this.options){var pe=ue[se];this.options[se]=pe}}}return Object.defineProperty(ie.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ie.prototype.setOption=function(ue,ce){if(!(ue in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+ue+'"');if(he.indexOf(ue)!==-1)throw new Error('Option "'+ue+'" can only be set in the constructor');this.options[ue]!==ce&&(ce=this._sanitizeAndValidateOption(ue,ce),this.options[ue]!==ce&&(this.options[ue]=ce,this._onOptionChange.fire(ue)))},ie.prototype._sanitizeAndValidateOption=function(ue,ce){switch(ue){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":ce||(ce=ee.DEFAULT_OPTIONS[ue]);break;case"cursorWidth":ce=Math.floor(ce);case"lineHeight":case"tabStopWidth":if(ce<1)throw new Error(ue+" cannot be less than 1, value: "+ce);break;case"minimumContrastRatio":ce=Math.max(1,Math.min(21,Math.round(10*ce)/10));break;case"scrollback":if((ce=Math.min(ce,4294967295))<0)throw new Error(ue+" cannot be less than 0, value: "+ce);break;case"fastScrollSensitivity":case"scrollSensitivity":if(ce<=0)throw new Error(ue+" cannot be less than or equal to 0, value: "+ce)}return ce},ie.prototype.getOption=function(ue){if(!(ue in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+ue+'"');return this.options[ue]},ie}();ee.OptionsService=ge},function(Ve,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(oe,ne){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,a){y.__proto__=a}||function(y,a){for(var E in a)a.hasOwnProperty(E)&&(y[E]=a[E])})(oe,ne)},function(oe,ne){function y(){this.constructor=oe}fe(oe,ne),oe.prototype=ne===null?Object.create(ne):(y.prototype=ne.prototype,new y)}),ye=this&&this.__decorate||function(oe,ne,y,a){var E,b=arguments.length,x=b<3?ne:a===null?a=Object.getOwnPropertyDescriptor(ne,y):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(oe,ne,y,a);else for(var z=oe.length-1;z>=0;z--)(E=oe[z])&&(x=(b<3?E(x):b>3?E(ne,y,x):E(ne,y))||x);return b>3&&x&&Object.defineProperty(ne,y,x),x},he=this&&this.__param||function(oe,ne){return function(y,a){ne(y,a,oe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreService=void 0;var ge=te(1),ie=te(0),ue=te(33),ce=te(2),me=Object.freeze({insertMode:!1}),se=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),pe=function(oe){function ne(y,a,E,b){var x=oe.call(this)||this;return x._bufferService=a,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=y,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=ue.clone(me),x.decPrivateModes=ue.clone(se),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=ue.clone(me),this.decPrivateModes=ue.clone(se)},ne.prototype.triggerDataEvent=function(y,a){if(a===void 0&&(a=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),a&&this._onUserInput.fire(),this._logService.debug('sending data "'+y+'"',function(){return y.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(y)}},ne.prototype.triggerBinaryEvent=function(y){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+y+'"',function(){return y.split("").map(function(a){return a.charCodeAt(0)})}),this._onBinary.fire(y))},ne=ye([he(1,ge.IBufferService),he(2,ge.ILogService),he(3,ge.IOptionsService)],ne)}(ce.Disposable);ee.CoreService=pe},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(se,pe,oe,ne){var y,a=arguments.length,E=a<3?pe:ne===null?ne=Object.getOwnPropertyDescriptor(pe,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,pe,oe,ne);else for(var b=se.length-1;b>=0;b--)(y=se[b])&&(E=(a<3?y(E):a>3?y(pe,oe,E):y(pe,oe))||E);return a>3&&E&&Object.defineProperty(pe,oe,E),E},be=this&&this.__param||function(se,pe){return function(oe,ne){pe(oe,ne,se)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreMouseService=void 0;var ye=te(1),he=te(0),ge={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(se){return se.button!==4&&se.action===1&&(se.ctrl=!1,se.alt=!1,se.shift=!1,!0)}},VT200:{events:19,restrict:function(se){return se.action!==32}},DRAG:{events:23,restrict:function(se){return se.action!==32||se.button!==3}},ANY:{events:31,restrict:function(se){return!0}}};function ie(se,pe){var oe=(se.ctrl?16:0)|(se.shift?4:0)|(se.alt?8:0);return se.button===4?(oe|=64,oe|=se.action):(oe|=3&se.button,4&se.button&&(oe|=64),8&se.button&&(oe|=128),se.action===32?oe|=32:se.action!==0||pe||(oe|=3)),oe}var ue=String.fromCharCode,ce={DEFAULT:function(se){var pe=[ie(se,!1)+32,se.col+32,se.row+32];return pe[0]>255||pe[1]>255||pe[2]>255?"":"\x1B[M"+ue(pe[0])+ue(pe[1])+ue(pe[2])},SGR:function(se){var pe=se.action===0&&se.button!==4?"m":"M";return"\x1B[<"+ie(se,!0)+";"+se.col+";"+se.row+pe}},me=function(){function se(pe,oe){this._bufferService=pe,this._coreService=oe,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new he.EventEmitter,this._lastEvent=null;for(var ne=0,y=Object.keys(ge);ne<y.length;ne++){var a=y[ne];this.addProtocol(a,ge[a])}for(var E=0,b=Object.keys(ce);E<b.length;E++){var x=b[E];this.addEncoding(x,ce[x])}this.reset()}return se.prototype.addProtocol=function(pe,oe){this._protocols[pe]=oe},se.prototype.addEncoding=function(pe,oe){this._encodings[pe]=oe},Object.defineProperty(se.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(pe){if(!this._protocols[pe])throw new Error('unknown protocol "'+pe+'"');this._activeProtocol=pe,this._onProtocolChange.fire(this._protocols[pe].events)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(pe){if(!this._encodings[pe])throw new Error('unknown encoding "'+pe+'"');this._activeEncoding=pe},enumerable:!1,configurable:!0}),se.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(se.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),se.prototype.triggerMouseEvent=function(pe){if(pe.col<0||pe.col>=this._bufferService.cols||pe.row<0||pe.row>=this._bufferService.rows||pe.button===4&&pe.action===32||pe.button===3&&pe.action!==32||pe.button!==4&&(pe.action===2||pe.action===3)||(pe.col++,pe.row++,pe.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,pe))||!this._protocols[this._activeProtocol].restrict(pe))return!1;var oe=this._encodings[this._activeEncoding](pe);return oe&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(oe):this._coreService.triggerDataEvent(oe,!0)),this._lastEvent=pe,!0},se.prototype.explainEvents=function(pe){return{down:!!(1&pe),up:!!(2&pe),drag:!!(4&pe),move:!!(8&pe),wheel:!!(16&pe)}},se.prototype._compareEvents=function(pe,oe){return pe.col===oe.col&&pe.row===oe.row&&pe.button===oe.button&&pe.action===oe.action&&pe.ctrl===oe.ctrl&&pe.alt===oe.alt&&pe.shift===oe.shift},se=fe([be(0,ye.IBufferService),be(1,ye.ICoreService)],se)}();ee.CoreMouseService=me},function(Ve,ee,te){"use strict";var fe=this&&this.__decorate||function(ge,ie,ue,ce){var me,se=arguments.length,pe=se<3?ie:ce===null?ce=Object.getOwnPropertyDescriptor(ie,ue):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(ge,ie,ue,ce);else for(var oe=ge.length-1;oe>=0;oe--)(me=ge[oe])&&(pe=(se<3?me(pe):se>3?me(ie,ue,pe):me(ie,ue))||pe);return se>3&&pe&&Object.defineProperty(ie,ue,pe),pe},be=this&&this.__param||function(ge,ie){return function(ue,ce){ie(ue,ce,ge)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DirtyRowService=void 0;var ye=te(1),he=function(){function ge(ie){this._bufferService=ie,this.clearRange()}return Object.defineProperty(ge.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),ge.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},ge.prototype.markDirty=function(ie){ie<this._start?this._start=ie:ie>this._end&&(this._end=ie)},ge.prototype.markRangeDirty=function(ie,ue){if(ie>ue){var ce=ie;ie=ue,ue=ce}ie<this._start&&(this._start=ie),ue>this._end&&(this._end=ue)},ge.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},ge=fe([be(0,ye.IBufferService)],ge)}();ee.DirtyRowService=he},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeService=void 0;var fe=te(0),be=te(79),ye=function(){function he(){this._providers=Object.create(null),this._active="",this._onChange=new fe.EventEmitter;var ge=new be.UnicodeV6;this.register(ge),this._active=ge.version,this._activeProvider=ge}return Object.defineProperty(he.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"activeVersion",{get:function(){return this._active},set:function(ge){if(!this._providers[ge])throw new Error('unknown Unicode version "'+ge+'"');this._active=ge,this._activeProvider=this._providers[ge],this._onChange.fire(ge)},enumerable:!1,configurable:!0}),he.prototype.register=function(ge){this._providers[ge.version]=ge},he.prototype.wcwidth=function(ge){return this._activeProvider.wcwidth(ge)},he.prototype.getStringCellWidth=function(ge){for(var ie=0,ue=ge.length,ce=0;ce<ue;++ce){var me=ge.charCodeAt(ce);if(55296<=me&&me<=56319){if(++ce>=ue)return ie+this.wcwidth(me);var se=ge.charCodeAt(ce);56320<=se&&se<=57343?me=1024*(me-55296)+se-56320+65536:ie+=this.wcwidth(se)}ie+=this.wcwidth(me)}return ie},he}();ee.UnicodeService=ye},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeV6=void 0;var fe,be=te(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]],he=[[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]],ge=function(){function ie(){if(this.version="6",!fe){fe=new Uint8Array(65536),be.fill(fe,1),fe[0]=0,be.fill(fe,0,1,32),be.fill(fe,0,127,160),be.fill(fe,2,4352,4448),fe[9001]=2,fe[9002]=2,be.fill(fe,2,11904,42192),fe[12351]=1,be.fill(fe,2,44032,55204),be.fill(fe,2,63744,64256),be.fill(fe,2,65040,65050),be.fill(fe,2,65072,65136),be.fill(fe,2,65280,65377),be.fill(fe,2,65504,65511);for(var ue=0;ue<ye.length;++ue)be.fill(fe,0,ye[ue][0],ye[ue][1]+1)}}return ie.prototype.wcwidth=function(ue){return ue<32?0:ue<127?1:ue<65536?fe[ue]:function(ce,me){var se,pe=0,oe=me.length-1;if(ce<me[0][0]||ce>me[oe][1])return!1;for(;oe>=pe;)if(ce>me[se=pe+oe>>1][1])pe=se+1;else{if(!(ce<me[se][0]))return!0;oe=se-1}return!1}(ue,he)?0:ue>=131072&&ue<=196605||ue>=196608&&ue<=262141?2:1},ie}();ee.UnicodeV6=ge},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharsetService=void 0;var fe=function(){function be(){this.glevel=0,this._charsets=[]}return be.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},be.prototype.setgLevel=function(ye){this.glevel=ye,this.charset=this._charsets[ye]},be.prototype.setgCharset=function(ye,he){this._charsets[ye]=he,this.glevel===ye&&(this.charset=he)},be}();ee.CharsetService=fe},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.updateWindowsModeWrappedState=void 0;var fe=te(3);ee.updateWindowsModeWrappedState=function(be){var ye=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),he=ye==null?void 0:ye.get(be.cols-1),ge=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);ge&&he&&(ge.isWrapped=he[fe.CHAR_DATA_CODE_INDEX]!==fe.NULL_CELL_CODE&&he[fe.CHAR_DATA_CODE_INDEX]!==fe.WHITESPACE_CELL_CODE)}},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WriteBuffer=void 0;var fe=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 he=this._bufferOffset;he<this._writeBuffer.length;++he){var ge=this._writeBuffer[he],ie=this._callbacks[he];this._action(ge),ie&&ie()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(ye)},be.prototype.write=function(ye,he){var ge=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 ge._innerWrite()})),this._pendingData+=ye.length,this._writeBuffer.push(ye),this._callbacks.push(he)},be.prototype._innerWrite=function(){for(var ye=this,he=Date.now();this._writeBuffer.length>this._bufferOffset;){var ge=this._writeBuffer[this._bufferOffset],ie=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(ge),this._pendingData-=ge.length,ie&&ie(),Date.now()-he>=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}();ee.WriteBuffer=fe},function(Ve,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.AddonManager=void 0;var fe=function(){function be(){this._addons=[]}return be.prototype.dispose=function(){for(var ye=this._addons.length-1;ye>=0;ye--)this._addons[ye].instance.dispose()},be.prototype.loadAddon=function(ye,he){var ge=this,ie={instance:he,dispose:he.dispose,isDisposed:!1};this._addons.push(ie),he.dispose=function(){return ge._wrappedAddonDispose(ie)},he.activate(ye)},be.prototype._wrappedAddonDispose=function(ye){if(!ye.isDisposed){for(var he=-1,ge=0;ge<this._addons.length;ge++)if(this._addons[ge]===ye){he=ge;break}if(he===-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(he,1)}},be}();ee.AddonManager=fe}])})},62522:function(gt){"use strict";gt.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="}}]);
|