(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},28575:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},18699:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},81893:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},55304:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},73148:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},56747:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},53555:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},50881:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},22751:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},34182:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},74664:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},32693:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},91034:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ie}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},ve=be,fe=ee(74643),pe=function(le,ce){return ge.createElement(fe.Z,(0,z.Z)({},le,{ref:ce,icon:ve}))},ie=ge.forwardRef(pe)},71736:function(at,We){"use strict";We.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77969:function(at,We){"use strict";We.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},12867:function(){"use strict"},22707:function(at,We,ee){"use strict";var z=ee(67294),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(le,ce,se)=>ce in le?ge(le,ce,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ce]=se,ie=(le,ce)=>{for(var se in ce||(ce={}))ve.call(ce,se)&&pe(le,se,ce[se]);if(be)for(var se of be(ce))fe.call(ce,se)&&pe(le,se,ce[se]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));We.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},8861:function(at,We,ee){"use strict";var z=ee(67294),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,pe=(le,ce,se)=>ce in le?ge(le,ce,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ce]=se,ie=(le,ce)=>{for(var se in ce||(ce={}))ve.call(ce,se)&&pe(le,se,ce[se]);if(be)for(var se of be(ce))fe.call(ce,se)&&pe(le,se,ce[se]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));We.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},18023:function(){"use strict";function at(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(at.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(at.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(at.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(at.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof at))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var We=[];function ee(ne,a){var y=We.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function z(){var ne=We.pop();return ne===void 0?new go.Point:ne}function ge(ne){We.push(ne)}function be(ne,a,y,E,b,x,te,oe,ae){ae||(ae=new go.Point);var ue=ne-y,ye=b-te,_e=NaN,xe=NaN;if(ue===0)if(ye===0)ne===y&&(_e=ne,xe=a);else{var Ce=(x-oe)/ye,Be=x-Ce*b;_e=ne,xe=Ce*_e+Be}else if(ye===0){var Me=(a-E)/ue,mt=a-Me*ne;_e=b,xe=Me*_e+mt}else{var Me=(a-E)/ue,Ce=(x-oe)/ye,mt=a-Me*ne,Be=x-Ce*b;_e=(Be-mt)/(Me-Ce),xe=Me*_e+mt}return ae.x=_e,ae.y=xe,ae}function ve(ne,a,y,E,b,x,te,oe,ae,ue,ye,_e,xe,Ce){var Be=1-ae,Me=ae,mt=ne*Be+y*Me,Qe=a*Be+E*Me,pt=y*Be+b*Me,Ae=E*Be+x*Me,De=b*Be+te*Me,Fe=x*Be+oe*Me,tt=mt*Be+pt*Me,Ve=Qe*Be+Ae*Me,Ct=pt*Be+De*Me,Mt=Ae*Be+Fe*Me,en=tt*Be+Ct*Me,nn=Ve*Be+Mt*Me;ue.x=mt,ue.y=Qe,ye.x=tt,ye.y=Ve,_e.x=en,_e.y=nn,xe.x=Ct,xe.y=Mt,Ce.x=De,Ce.y=Fe}var fe=new go.Spot(.156,.156),pe=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new at("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=fe,b.spot2=pe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ie*a,0,a,(1-ie)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ie*y,(1-ie)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ie*y,ie*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ie)*a,0,0,(1-ie)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new at("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b0&&(te.add(new go.PathSegment(go.PathSegment.Move,a/2+oe,a/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,oe,oe).close())),x.spot1=fe,x.spot2=pe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new at("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new at("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var te=b%360,oe=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,x,te,oe,oe,oe,oe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ie/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new at("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,te+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,te-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new at("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,te=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te-b)).add(new go.PathSegment(go.PathSegment.Line,a,te+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,te+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te+b)).add(new go.PathSegment(go.PathSegment.Line,0,te-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,te-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new at("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,te=y/2,oe=Math.atan2(y,a),ae=E-Math.min(Math.cos(oe)*E/2,x),ue=E-Math.min(Math.sin(oe)*E/2,te),b=new go.Geometry,ye=new go.PathFigure(ae,0,!0);return b.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ye.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),ye.add(new go.PathSegment(go.PathSegment.Line,a,ue)),ye.add(new go.PathSegment(go.PathSegment.Line,.8*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,a,y-ue)),ye.add(new go.PathSegment(go.PathSegment.Line,a-ae,y)),ye.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,ae,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,y-ue)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ue).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new at("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new at("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new at("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ie*a,0,a,(.5-ie/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ie/2)*y,ie*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,te=.3,oe=0,ae=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+x+oe)*y,(.5-x+te)*a,(.5+ae+oe)*y,(.5-ae+te)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+te)*a,(.5+oe)*y,(.5+ae+te)*a,(.5+x+oe)*y,(.5+x+te)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-x+oe)*y,(1-.5+x+te)*a,(.5-ae+oe)*y,(.5+ae+te)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ae+te)*a,(.5-x+oe)*y,(.5-x+te+.05)*a,(.5-ae+oe-.02)*y)),x=.2,te=0,oe=-.3,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+te)*a,(.5+oe)*y,(.5+ae+te)*a,(.5+x+oe)*y,(.5+x+te)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-x+oe)*y,(1-.5+x+te)*a,(.5-ae+oe)*y,(.5+ae+te)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+te)*a,(.5+oe)*y,(.5-ae+te)*a,(.5-x+oe)*y,(.5-x+te)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+te)*a,(.5+x+oe)*y,(.5-x+te)*a,(.5+ae+oe)*y,(.5-ae+te)*a,(.5+x+oe)*y)),x=.2,te=-.3,oe=0,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5-x+oe)*y,(1-.5+x+te-.05)*a,(.5-ae+oe-.02)*y,(.5+ae+te)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+te)*a,(.5+oe)*y,(.5-ae+te)*a,(.5-x+oe)*y,(.5-x+te)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*a,(.5+x+oe)*y,(.5-x+te)*a,(.5+ae+oe)*y,(.5-ae+te)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ae+te)*a,(.5+x+oe)*y,(.5+x+te)*a,(.5+ae+oe)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,te=.5,oe=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(te+x)*a,oe*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*te,y*oe,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),oe=.75,b=new go.PathFigure((te+x)*a,oe*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*te,y*oe,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,te=.5,oe=.5,ae=new go.PathFigure(te*a,(oe-x)*y);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),x=.4,b=ie*.4;var ue=z(),ye=z(),_e=z(),xe=z();ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.42,ue,ye,_e,xe,xe);var Ce=z(),Be=z(),Me=z();ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.58,xe,xe,Me,Ce,Be);var mt=z(),Qe=z(),pt=z();ve(te,oe+x,te-b,oe+x,te-x,oe+b,te-x,oe,.42,mt,Qe,pt,xe,xe);var Ae=z(),De=z(),Fe=z();return ve(te,oe+x,te-b,oe+x,te-x,oe+b,te-x,oe,.58,xe,xe,Fe,Ae,De),ae.add(new go.PathSegment(go.PathSegment.Move,Fe.x*a,Fe.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,Ae.x*a,Ae.y*y,De.x*a,De.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,_e.x*a,_e.y*y,ue.x*a,ue.y*y,ye.x*a,ye.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,pt.x*a,pt.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,Ce.x*a,Ce.y*y,Be.x*a,Be.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,pt.x*a,pt.y*y,mt.x*a,mt.y*y,Qe.x*a,Qe.y*y).close()),ge(ue),ge(ye),ge(_e),ge(xe),ge(Ce),ge(Be),ge(Me),ge(mt),ge(Qe),ge(pt),ge(Ae),ge(De),ge(Fe),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new at("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,te=.5,oe=.5,ae=z(),ue=z(),ye=z(),_e=z(),xe=new go.PathFigure((te-x)*a,oe*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.44,ye,_e,ue,ae,ae),xe.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*a,ue.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y));var Ce=ee(ue.x,ue.y);ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.56,ae,ae,ue,ye,_e);var Be=ee(ue.x,ue.y);xe.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.95*.9)*a,Ce.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ce.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,0)),xe.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),xe.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),x=.35,b=ie*.35;var Me=new go.PathFigure(te*a,(oe-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y));var mt=new go.PathFigure((te-x)*a,oe*y,!1);return E.add(mt),ge(ae),ge(ue),ge(ye),ge(_e),ge(Ce),ge(Be),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,te=-.125,oe=b*ie,ae=new go.PathFigure((.525+x)*a,(.5+b+te)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+te)*y,(.5+oe+x)*a,(.5+b+te)*y,(.5+b+x)*a,(.5+oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+te)*y,(1-.5+b+x)*a,(.5-oe+te)*y,(.5+oe+x)*a,(.5-b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+te)*y,(.5-oe+x)*a,(.5-b+te)*y,(.5-b+x)*a,(.5-oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+te)*y,(.5-b+x)*a,(.5+oe+te)*y,(.5-oe+x)*a,(.5+b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,te=-.125,oe=b*ie;var ae=new go.PathFigure((1-.5+b+x)*a,(.5+te)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+te)*y,(.5+b+x)*a,(.5+oe+te)*y,(.5+oe+x)*a,(.5+b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+te)*y,(.5-oe+x)*a,(.5+b+te)*y,(.5-b+x)*a,(.5+oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+te)*y,(.5-b+x)*a,(.5-oe+te)*y,(.5-oe+x)*a,(.5-b+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+te)*y,(.5+oe+x)*a,(.5-b+te)*y,(1-.5+b+x)*a,(.5-oe+te)*y));var ae=new go.PathFigure((.525+x)*a,(.5+b+te)*y,!1);return E.add(ae),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new at("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new at("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,te=(.5-b/2)*y,oe=(.5+b/2)*y,ae=new go.Geometry,ue=new go.PathFigure(0,te,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,te)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,te/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(ye.x,ye.y),ge(ye),ae}),go.Shape.setFigureParameter("Arrow2",0,new at("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new at("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,te=(y-b)/2,oe=te+b,ae=new go.Geometry,ue=new go.PathFigure(0,te,!0);ae.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,te)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,y)),ue.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,te/y);var ye=be(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(ye.x,ye.y),ge(ye),ae}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new at("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ae=be(0,.5,.3,0,0,b/y,.1,b/y,z());return te.spot1=new go.Spot(ae.x,ae.y),ae=be(.7,1,1,.5,0,x/y,1,x/y,ae),te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new at("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new at("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,te=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,te=x+E,oe=0,ae=y):(x=0,te=y,oe=0,ae=y));var ue=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close());var _e=be(0,.5,.3,oe/y,0,x/y,1,x/y,z());return ue.spot1=new go.Spot(_e.x,_e.y),_e=be(.7,ae/y,1,.5,0,te/y,1,te/y,_e),ue.spot2=new go.Spot(_e.x,_e.y),ge(_e),ue}),go.Shape.setFigureParameter("IBeamArrow",0,new at("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(0,b/y);var ae=be(.7,1,1,.5,0,x/y,1,x/y,z());return te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new at("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new at("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,te=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,te=x+E,oe=0,ae=y):(x=0,te=y,oe=0,ae=y));var ue=new go.Geometry,ye=new go.PathFigure(a,.5*y,!0);ue.add(ye),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,0,ae)),ye.add(new go.PathSegment(go.PathSegment.Line,0,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,oe)),ye.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ye.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close()),ue.spot1=new go.Spot(0,x/y);var _e=be(.7,ae/y,1,.5,0,te/y,1,te/y,z());return ue.spot2=new go.Spot(_e.x,_e.y),ge(_e),ue}),go.Shape.setFigureParameter("Pointer",0,new at("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var te=be(.2,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(te.x,te.y),ge(te),b}),go.Shape.setFigureParameter("RoundedPointer",0,new at("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var te=be(0,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(te.x,te.y),ge(te),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new at("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,.3);var ae=be(.7,1,1,.5,0,x/y,1,x/y,z());return te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new at("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var te=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),te.spot1=new go.Spot(.2,b/y);var ae=be(.7,1,1,.5,0,x/y,1,x/y,z());return te.spot2=new go.Spot(ae.x,ae.y),ge(ae),te}),go.Shape.setFigureParameter("SquareArrow",0,new at("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,te=new go.PathFigure(0,.9*y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,te=new go.PathFigure(0,E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ie*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ie*E,(.5+x)*a,1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ie*E)),te.add(new go.PathSegment(go.PathSegment.Line,0,E));var oe=new go.PathFigure(a,E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ie*E,(.5+x)*a,2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ie*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,te=new go.PathFigure(0,y-E,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ie*E)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ie*E,(.5+x)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ie*E));var oe=new go.PathFigure(0,y-E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ie*E,(.5-x)*a,y-2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ie*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,te=new go.PathFigure(E,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0));var oe=new go.PathFigure(E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ie*E,0,2*E,(.5-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ie*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,te=new go.PathFigure(a-E,0,!0);b.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),te.add(new go.PathSegment(go.PathSegment.Line,E,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var oe=new go.PathFigure(a-E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ie*E,0,a-2*E,(.5-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ie*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,te=ie*b,oe=ie*x,ae=.5,ue=.1,ye=new go.PathFigure(ae*a,(ue+x)*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae-b)*a,ue*y,(ae-te)*a,(ue+x)*y,(ae-b)*a,(ue+oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-x)*y,(ae-b)*a,(ue-oe)*y,(ae-te)*a,(ue-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae+b)*a,ue*y,(ae+te)*a,(ue-x)*y,(ae+b)*a,(ue-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+x)*y,(ae+b)*a,(ue+oe)*y,(ae+te)*a,(ue+x)*y));var _e=.05,xe=ie*_e;ae=.05,ue=.25;var Ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ae=.95,ue=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae+_e)*a,ue*y,(ae+xe)*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),_e=.025,xe=ie*_e,ae=.825,ue=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y,(ae+xe)*a,(ue-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ue*y,(ae-xe)*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),_e=.05,xe=ie*_e,ae=.5,ue=.7,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y,(ae+xe)*a,(ue-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ue*y,(ae-xe)*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),_e=.025,xe=ie*_e,ae=.175,ue=.35,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae+_e)*a,(ue-xe)*y,(ae+xe)*a,(ue-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ue*y,(ae-xe)*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),_e=.05,xe=ie*_e,ae=.05,ue=.25,Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-_e)*y,(ae-_e)*a,(ue-xe)*y,(ae-xe)*a,(ue-_e)*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new at("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,te=new go.PathFigure(a,.1*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,te=new go.PathFigure(a,.1*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var oe=new go.PathFigure(a,.1*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ie*.2,te=new go.PathFigure(0,.2*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var oe=new go.PathFigure(0,b*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(0,b*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),te.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var te=new go.PathFigure(a,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var te=new go.PathFigure(0,0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,te=ie*.5,oe=.5,ae=new go.PathFigure(a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,y,a,(oe+te)*y,(oe+te)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*y,(oe-te)*a,y,0,(oe+te)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,0,0,(oe-te)*y,(oe-te)*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,oe*y,(oe+te)*a,0,a,(oe-te)*y));var ue=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ue.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,te=new go.PathFigure(.5*a,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,te=new go.PathFigure(0,0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var oe=new go.PathFigure(.5*b*a,b*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,te=new go.PathFigure(a,x*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure((1-b)*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var te=new go.PathFigure(b*a,0,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),te.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,te=new go.PathFigure(a,x*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var oe=new go.PathFigure(a,x*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ae=new go.PathFigure(.8*a,.75*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,te=.9,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ue=new go.PathFigure((te+x)*a,oe*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe-x)*y,(te+x)*a,(oe-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.4,te=ie*.1,oe=.1,ae=.9,ue=.5,ye=new go.PathFigure(.8*a,.5*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,y)),ye.add(new go.PathSegment(go.PathSegment.Line,0,0)),ye.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ye.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var _e=new go.PathFigure((ae+oe)*a,ue*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+oe)*y,(ae+oe)*a,(ue+te)*y,(ae+te)*a,(ue+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a,ue*y,(ae-te)*a,(ue+oe)*y,(ae-oe)*a,(ue+te)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-oe)*y,(ae-oe)*a,(ue-te)*y,(ae-te)*a,(ue-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a,ue*y,(ae+te)*a,(ue-oe)*y,(ae+oe)*a,(ue-te)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,te=0,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,te=.9,oe=.5;var ue=new go.PathFigure((te-b)*a,oe*y,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,te=0,oe=.5,ae=new go.PathFigure(0,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+x+x)*a,(oe-b)*y,.8*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(oe+x)*y,(te+x+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,te=.2,oe=.5,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ue=new go.PathFigure(.8*a,.5*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(te+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,te=.9,oe=.5;var ye=new go.PathFigure((te-b)*a,oe*y,!0);return E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,te=.2,oe=.5,ae=new go.PathFigure(.1*a,0,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ue=new go.PathFigure(.2*a,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(te+x)*a,(oe-b)*y,.9*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,te=.1,oe=.5,ae=new go.PathFigure((te-b*.5)*a,y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+x)*a,0,(te+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+x)*a,0,(te+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,y,(te+x)*a,0,(te+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,0,(te-b)*a,y,(te-x)*a,0)),te=.9,ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b*.5)*a,y,(te+x)*a,0,(te+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,te=.5,oe=.5,ae=new go.PathFigure((te-x)*a,oe*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-x)*a,(oe-b)*y,(te-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe-x)*y,(te+x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Move,(te-x+.1)*a,oe*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+x-.1)*a,oe*y,te*a,(oe-x)*y,te*a,(oe+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var te=ie*.8,oe=.8,ae=0,ue=.5,ye=(b-a)/2,_e=(x-y)/2,xe=new go.PathFigure(ae*a+ye,(ue+oe)*y+_e,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+ye,ue*y+_e,(ae-te)*a+ye,(ue+oe)*y+_e,(ae-oe)*a+ye,(ue+te)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae-oe)*a+ye,(ue-te)*y+_e,(ae-te)*a+ye,(ue-oe)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue-oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue-te)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue+te)*y+_e,ae*a+ye,(ue+oe)*y+_e).close()),te=ie*.4,oe=.4,ae=.2,ue=.5;var Ce=new go.PathFigure(ae*a+ye,(ue+oe)*y+_e,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+ye,ue*y+_e,(ae-te)*a+ye,(ue+oe)*y+_e,(ae-oe)*a+ye,(ue+te)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae-oe)*a+ye,(ue-te)*y+_e,(ae-te)*a+ye,(ue-oe)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue-oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue-te)*y+_e)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae-oe+te*.5)*a+ye,(ue+te)*y+_e,ae*a+ye,(ue+oe)*y+_e).close()),te=ie*.2,oe=.2,ae=.5,ue=.5;var Be=new go.PathFigure((ae-oe)*a+ye,ue*y+_e,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae-oe)*a+ye,(ue-te)*y+_e,(ae-te)*a+ye,(ue-oe)*y+_e)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+ye,ue*y+_e,(ae+te)*a+ye,(ue-oe)*y+_e,(ae+oe)*a+ye,(ue-te)*y+_e)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae+oe)*a+ye,(ue+te)*y+_e,(ae+te)*a+ye,(ue+oe)*y+_e)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+ye,ue*y+_e,(ae-te)*a+ye,(ue+oe)*y+_e,(ae-oe)*a+ye,(ue+te)*y+_e)),te=ie*.4,oe=.4,ae=.8,ue=.5;var Me=new go.PathFigure(ae*a+ye,(ue-oe)*y+_e,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+ye,ue*y+_e,(ae+te)*a+ye,(ue-oe)*y+_e,(ae+oe)*a+ye,(ue-te)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae+oe)*a+ye,(ue+te)*y+_e,(ae+te)*a+ye,(ue+oe)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue+oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue+te)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue-te)*y+_e,ae*a+ye,(ue-oe)*y+_e).close()),te=ie*.8,oe=.8,ae=1,ue=.5;var mt=new go.PathFigure(ae*a+ye,(ue-oe)*y+_e,!0);return E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+ye,ue*y+_e,(ae+te)*a+ye,(ue-oe)*y+_e,(ae+oe)*a+ye,(ue-te)*y+_e)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue+oe)*y+_e,(ae+oe)*a+ye,(ue+te)*y+_e,(ae+te)*a+ye,(ue+oe)*y+_e)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-te*.5)*a+ye,ue*y+_e,ae*a+ye,(ue+oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue+te)*y+_e)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+ye,(ue-oe)*y+_e,(ae+oe-te*.5)*a+ye,(ue-te)*y+_e,ae*a+ye,(ue-oe)*y+_e).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var te=new go.PathFigure(.6*a,y,!0,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var oe=new go.PathFigure(0,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),oe.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,te=.5,oe=.5,ae=z(),ue=z(),ye=z(),_e=z();ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.5,ae,ae,ue,ye,_e);var xe=ee(ue.x,ue.y),Ce=new go.PathFigure(ue.x*a,ue.y*y,!0);E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+x)*a,(oe+b)*y,(te+b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,(te-b)*a,(oe+x)*y,(te-x)*a,(oe+b)*y)),ve(te-x,oe,te-x,oe-b,te-b,oe-x,te,oe-x,.5,ye,_e,ue,ae,ae),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*a,ue.y*y,ye.x*a,ye.y*y,_e.x*a,_e.y*y)),b=ie*.3,x=.3,ve(te-x,oe,te-x,oe-b,te-b,oe-x,te,oe-x,.5,ye,_e,ue,ae,ae),Ce.add(new go.PathSegment(go.PathSegment.Line,ue.x*a,ue.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-x)*a,oe*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+x)*a,oe*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ve(te,oe-x,te+b,oe-x,te+x,oe-b,te+x,oe,.5,ae,ae,ue,ye,_e),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*a,ue.y*y,_e.x*a,_e.y*y,ye.x*a,ye.y*y).close());var Ce=new go.PathFigure(.45*a,0,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ge(ae),ge(ue),ge(ye),ge(_e),ge(xe),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(te,oe,ae){te.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*a,(.8+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*a,(.5+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*a,(.5+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*a,(.8+ae)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,te=0,oe=b*ie,ae=.4*Math.SQRT2/2+.5,ue=.5-.5*Math.SQRT2/2,ye=1,_e=.5,xe=.5,Ce=0,Be=new go.PathFigure(ae*a,(1-ue)*y,!1);return E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,_e*y,ye*a,.7*y,ye*a,_e*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(xe+x)*a,(Ce+x)*y,(.5+b+x)*a,(.5-oe+x)*y,(.5+oe+x)*a,(.5-b+x)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+te)*y,(.5-oe+x)*a,(.5-b+te)*y,(.5-b+x)*a,(.5-oe+te)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+oe+te)*y,(.5-oe+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var te=new go.PathFigure(0,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var te=.5-.285,oe=.5,ae=te,ue=Math.PI/4,ye=4*(1-Math.cos(ue))/(3*Math.sin(ue)),_e=ye*.5,xe=te,Ce=te,Be=ye*xe,Me=ye*Ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(oe-xe)*a,ae*y,(oe-(Be+xe)/2)*a,(ae+(Ce+Me)/2)*y,(oe-xe)*a,(ae+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae-Ce)*y,(oe-xe)*a,(ae-Me)*y,(oe-Be)*a,(ae-Ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(oe+xe)*a,ae*y,(oe+Be)*a,(ae-Ce)*y,(oe+xe)*a,(ae-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(oe+xe)*a,(ae+Me)*y,(oe+(Be+xe)/2)*a,(ae+(Ce+Me)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var mt=new go.PathFigure(.2*a,y,!1);E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Qe=new go.PathFigure(.8*a,y,!1);return E.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var te=new go.PathFigure(.1*a,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var te=new go.PathFigure(.675*a,.575*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),te.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),te.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),te.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,te=new go.PathFigure(a,b*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var oe=new go.PathFigure(b*a,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),oe.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),oe.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(0,.5*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var te=new go.PathFigure(0,.6*y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),te.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var te=.1,oe=ie*.1,ae=.2,ue=.9,ye=new go.PathFigure((ae-te)*a,ue*y,!0);E.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-te)*y,(ae-te)*a,(ue-oe)*y,(ae-oe)*a,(ue-te)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,ue*y,(ae+oe)*a,(ue-te)*y,(ae+te)*a,(ue-oe)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+te)*y,(ae+te)*a,(ue+oe)*y,(ae+oe)*a,(ue+te)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,ue*y,(ae-oe)*a,(ue+te)*y,(ae-te)*a,(ue+oe)*y).close()),te=.1,oe=ie*.1,ae=.8,ue=.9;var _e=new go.PathFigure((ae-te)*a,ue*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue-te)*y,(ae-te)*a,(ue-oe)*y,(ae-oe)*a,(ue-te)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,ue*y,(ae+oe)*a,(ue-te)*y,(ae+te)*a,(ue-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ue+te)*y,(ae+te)*a,(ue+oe)*y,(ae+oe)*a,(ue+te)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,ue*y,(ae-oe)*a,(ue+te)*y,(ae-te)*a,(ue+oe)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var te=new go.PathFigure(.5*a,.8*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var oe=new go.PathFigure(.5*a,.7*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ae=.1,ue=ie*.1,ye=.1,_e=.9,xe=new go.PathFigure((ye-ae)*a,_e*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ae)*y,(ye-ae)*a,(_e-ue)*y,(ye-ue)*a,(_e-ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ae)*a,_e*y,(ye+ue)*a,(_e-ae)*y,(ye+ae)*a,(_e-ue)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ae)*y,(ye+ae)*a,(_e+ue)*y,(ye+ue)*a,(_e+ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ae)*a,_e*y,(ye-ue)*a,(_e+ae)*y,(ye-ae)*a,(_e+ue)*y)),ae=.1,ue=ie*.1,ye=.4,_e=.9;var Ce=new go.PathFigure((ye-ae)*a,_e*y,!0);return E.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e-ae)*y,(ye-ae)*a,(_e-ue)*y,(ye-ue)*a,(_e-ae)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye+ae)*a,_e*y,(ye+ue)*a,(_e-ae)*y,(ye+ae)*a,(_e-ue)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ye*a,(_e+ae)*y,(ye+ae)*a,(_e+ue)*y,(ye+ue)*a,(_e+ae)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ye-ae)*a,_e*y,(ye-ue)*a,(_e+ae)*y,(ye-ae)*a,(_e+ue)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var te=new go.PathFigure(.55*a,.4*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),te.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ye=.05,_e=ie*.05,xe=.175,Ce=.95,oe=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ie*.05,xe=.375,Ce=.95,ae=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ie*.05,xe=.625,Ce=.95,ue=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y));var ye=.05,_e=ie*.05,xe=.825,Ce=.95,Be=new go.PathFigure((xe-ye)*a,Ce*y,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce-ye)*y,(xe-ye)*a,(Ce-_e)*y,(xe-_e)*a,(Ce-ye)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(xe+ye)*a,Ce*y,(xe+_e)*a,(Ce-ye)*y,(xe+ye)*a,(Ce-_e)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(Ce+ye)*y,(xe+ye)*a,(Ce+_e)*y,(xe+_e)*a,(Ce+ye)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(xe-ye)*a,Ce*y,(xe-_e)*a,(Ce+ye)*y,(xe-ye)*a,(Ce+_e)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var te=new go.PathFigure(.15*a,y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var oe=.05,ae=ie*.05,ue=.35,ye=.775,_e=new go.PathFigure((ue-oe)*a,ye*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ye-oe)*y,(ue-oe)*a,(ye-ae)*y,(ue-ae)*a,(ye-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe)*a,ye*y,(ue+ae)*a,(ye-oe)*y,(ue+oe)*a,(ye-ae)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ue*a,(ye+oe)*y,(ue+oe)*a,(ye+ae)*y,(ue+ae)*a,(ye+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe)*a,ye*y,(ue-ae)*a,(ye+oe)*y,(ue-oe)*a,(ye+ae)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=ie*.3,te=.5,oe=.7,ae=new go.PathFigure((te-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y));var ue=new go.PathFigure(0,.7*y,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,te=.5,oe=.5,ae=new go.PathFigure((te-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y));var ue=new go.PathFigure(.15*a,.5*y,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,te=.5,oe=.5,ae=new go.PathFigure((te-b)*a,oe*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y).close()),b=.05,x=ie*.05,te=.5,oe=.8;var ue=new go.PathFigure((te-b)*a,oe*y,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-b)*y,(te-b)*a,(oe-x)*y,(te-x)*a,(oe-b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+x)*a,(oe-b)*y,(te+b)*a,(oe-x)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+b)*y,(te+b)*a,(oe+x)*y,(te+x)*a,(oe+b)*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-x)*a,(oe+b)*y,(te-b)*a,(oe+x)*y).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var te=new go.PathFigure(.402*a,.85*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),te.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var oe=new go.PathFigure(.678*a,.85*y,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ae=new go.PathFigure(.5*a,.1*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var te=new go.PathFigure(a*.408,y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var oe=new go.PathFigure(a*.612,y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ae=new go.PathFigure(a*.816,y,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var te=new go.PathFigure(a*.055,.13*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),te.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),te.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var oe=new go.PathFigure(a*.055,.18*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ae=new go.PathFigure(a*1,0,!0);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var te=new go.PathFigure(a*.11,y*.1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var oe=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ae=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*ie,te=new go.PathFigure(b,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),te.add(new go.PathSegment(go.PathSegment.Line,0,b)),te.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var oe=new go.PathFigure(a*.83,0,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ae=new go.PathFigure(a*.83,y*1,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ue=new go.PathFigure(a*.78,y*.05,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ue.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=y*.8,te=new go.Geometry,oe=new go.PathFigure(E,0,!0);return te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),oe.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),oe.add(new go.PathSegment(go.PathSegment.Line,E,x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(te.spot1=new go.Spot(0,0,b,b),te.spot2=new go.Spot(1,.8,-b,-b)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var te=new go.PathFigure(a*.28,y*.37,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),te.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),te.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*ie,te=new go.PathFigure(a*.62,y*.475,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),te.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),te.add(new go.PathSegment(go.PathSegment.Line,b,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),te.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),te.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var te=new go.PathFigure(a*.4,y*0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),te.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var te=new go.PathFigure(a*.5,y*0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),te.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var at={},We="5.0",ee={},z=null,ge=!1,be=!1,ve=null,fe=!1,pe=null,ie=null,de=0;de4?parseFloat(it):5};at.setHTML5Codebase=function(it,ct){ie=it,Mt(it,ct)},at.setJavaCodebase=at.setJavaCodebaseVersion=at.isCompiledInstalled=at.setPreCompiledScriptPath=at.setPreCompiledResourcePath=function(){},at.setHTML5CodebaseVersion=function(it,ct){var wt=parseFloat(it);if(wt!==NaN&&wt<5){console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead.");return}pe=it,Ct(it,ct)},at.getHTML5CodebaseVersion=function(){return ne},at.getParameters=function(){return ee},at.setFontsCSSURL=function(it){te=it},at.setGiacJSURL=function(it){},at.setJNLPFile=function(it){ce=it},at.setJNLPBaseDir=function(it){},at.inject=function(){function it(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ct="auto",wt=ee.id,Vt,Gt=!1,Ln=0;Ln=5)return!0;var it=at.getAppletObject();return it&&typeof it.recalculateEnvironments=="function"?(it.recalculateEnvironments(),!0):!1},at.startAnimation=function(){var it=at.getAppletObject();return it&&typeof it.startAnimation=="function"?(it.startAnimation(),!0):!1},at.stopAnimation=function(){var it=at.getAppletObject();return it&&typeof it.stopAnimation=="function"?(it.stopAnimation(),!0):!1},at.getAppletObject=function(){var it=ee.id!==void 0?ee.id:"ggbApplet";return window[it]},at.resize=function(){};var Be=function(it,ct,wt){var Vt=document.createElement("param");Vt.setAttribute("name",ct),Vt.setAttribute("value",wt),it.appendChild(Vt)},Me=function(it){return it&&it!=="false"},mt=function(it,ct,wt){ae(ne)<=4.2&&(wt=!0);var Vt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Vt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Gt=document.createElement("div");Gt.classList.add("appletParameters","notranslate");var Ln=ct.width,He=ct.height;if(ct.disableAutoScale=ct.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ct.disableAutoScale,ct.width!==void 0)if(ae(ne)<=4.4)Me(ct.showToolBar)&&(ct.height-=7),Me(ct.showAlgebraInput)&&(ct.height-=37),ct.width<605&&Me(ct.showToolBar)&&(ct.width=605,Ln=605);else{var on=100;(Me(ct.showToolBar)||Me(ct.showMenuBar))&&(ct.hasOwnProperty("customToolBar")&&(ct.customToolbar=ct.customToolBar),on=Me(ct.showMenuBar)?245:155),Ln=5?(ct.appletOnLoad=function(cn){var Ge=it.querySelector(".ggb_preview");Ge&&Ge.parentNode.removeChild(Ge),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(bn),window.GGBT_wsf_view&&$(window).trigger("resize"),or(cn)},$t||bn.appendChild(qe)):Gt.appendChild(qe),bn.appendChild(Gt),$t||it.appendChild(bn),setTimeout(function(){at.resize()},1)}else{var Je=document.createElement("div");Je.className="applet_scaler",Je.style.position="relative",Je.style.display="block",Je.appendChild(Gt),it.appendChild(Je),ct.appletOnLoad=function(cn){at.resize(),or(cn)}}function Pt(cn,Ge){Ge&&typeof Ge.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(cn,Ge.appletOnLoad):renderGGBElement(cn),en("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ge)}function Nt(cn,Ge){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:cn,params:Ge}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(gt){Pt(gt.article,gt.params)}),html5AppletsToProcess=null)},ae(ne)<5&&(cn.className+=" geogebraweb")):Pt(cn,Ge)}if(Vt){scriptLoadStarted=!0;for(var Wt=0;Wt0?(In.remove(),bn.attr("id","fullscreencontent").show(),jQuery(or).append(bn),window.dispatchEvent(new Event("resize"))):mt(In,ct,!1),window.GGBT_wsf_view.launchFullScreen(or)}else re=Vt,mt(it,ct,!1);if(!window.GGBT_wsf_view)for(He=0;Heit/4*3&&(In=it/4*3),or=In/5.8,on.setAttribute("src",b),on.setAttribute("width",In),on.setAttribute("height",or);var bn=(it-In)/2,$t=(ct-or)/2;on.style.left=bn+"px",on.style.top=$t+"px",Gt.appendChild(on)}}return Gt.appendChild(He),Gt},tt=function(it){return it=it.toLowerCase(),it==="html5"||it==="screenshot"?it:"html5"},Ve=["web","webSimple","web3d","tablet","tablet3d","phone"],Ct=function(it,ct){if(ne=it,ct){Mt(ne,!0);return}var wt=!ge;if(wt){var Vt=ae(ne);!isNaN(Vt)&&Vt<4.4&&(wt=!1)}var Gt,Ln;window.location.protocol.substr(0,4)==="http"?Gt=window.location.protocol:Gt="http:";var He=ne.indexOf("//");He>0?Ln=ne:He===0?Ln=Gt+ne:Ln="https://www.geogebra.org/apps/5.2.814.0/";for(var on in Ve)if(ne.slice(Ve[on].length*-1)===Ve[on]||ne.slice((Ve[on].length+1)*-1)===Ve[on]+"/"){Mt(Ln,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&wt&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(ee.showToolBar)&&!Me(ee.showMenuBar)&&!Me(ee.showAlgebraInput)&&!Me(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?Ln+="webSimple/":Ln+="web3d/",Mt(Ln,!1)},Mt=function(it,ct){if(it.requirejs){se=it;return}it.slice(-1)!=="/"&&(it+="/"),se=it,ct===null&&(ct=it.indexOf("http")===-1),me=ct,a="web.nocache.js",y=!1;var wt=se.split("/");wt.length>1&&(!ct&&wt[wt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ve.indexOf(wt[wt.length-2])>=0&&(a=wt[wt.length-2]+".nocache.js")),wt=it.split("/"),ne=wt[wt.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 Vt=parseFloat(ne);Vt!==NaN&&Vt<5&&it.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Vt+" is deprecated. Using version latest instead."),Ct("5.0",ct))},en=function(it,ct){window.console&&window.console.log&&(!ct||typeof ct.showLogging=="undefined"||ct.showLogging&&ct.showLogging!=="false")&&console.log(it)};ee.material_id!==void 0?_e(nn):nn();function nn(){var it=We;pe!==null?it=pe:parseFloat(it)<5&&(it="5.0"),Ct(it,!1),ie!==null&&Mt(ie,me),fe=!0}return at},GGBAppletUtils=function(){"use strict";function at(){return window.GGBT_wsf_edit!==void 0}function We(fe,pe){pe!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+pe+","+pe+")",fe.style.webkitTransform="scale("+pe+","+pe+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function ee(fe,pe,ie,de,le,ce){var se=null;if(ce!=null&&ce!="")for(var me=fe.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+ce+" ")>-1){se=me;break}else me=me.parentNode;var re=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(se)re=se.offsetWidth,ne=Math.max(de?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=re):(re=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),fe){var te=fe.getBoundingClientRect();te.left>0&&te.left<=re&&(le===void 0||!le)&&(document.dir==="rtl"?(E=re-te.width-te.left,b=a<=480?10:30):(b=te.left,E=a<=480?10:30),y=b+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return fe&&((ie===void 0||!ie)&&pe>0&&pe+y1&&(ce=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))le=z(fe,pe,ce,ie,fe.scaleContainerClass);else return de;return ce&&(!fe.hasOwnProperty("scale")||de===1)?le:Math.min(de,le)}function be(fe){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),de=fe.getBoundingClientRect(),le=(pe-de.width)/2,ce=(ie-de.height)/2;ce<0&&(ce=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?fe.style.left="40px":fe.style.left=le+"px",fe.style.top=ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ce<40?fe.style.top="40px":fe.style.top=ce+"px",fe.style.left=le+"px")}function ve(fe,pe){var ie=fe.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var de=ge(pe,fe);at()&&ie.setAttribute("data-param-scale",de);for(var le=null,ce=0;ce=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(at){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(at){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(at){var We=c[at];return We==null?null:We},r=d,webModule.__errFn=e}function B(){function at(fe){var pe=fe.lastIndexOf(rb);pe==-1&&(pe=fe.length);var ie=fe.indexOf(sb);ie==-1&&(ie=fe.length);var de=fe.lastIndexOf(tb,Math.min(ie,pe));return de>=O?fe.substring(O,de+P):W}function We(fe){if(!fe.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=fe+vb,fe=at(pe.src)}return fe}function ee(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function z(){for(var fe=o.getElementsByTagName(_),pe=O;peO?fe[fe.length-P].href:W}function be(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var ve=ee();return ve==W&&(ve=z()),ve==W&&(ve=ge()),ve==W&&be()&&(ve=at(o.location.href)),ve=We(ve),ve}function C(at){return at.match(/^\//)||at.match(/^[a-zA-Z]+:\/\//)?at:webModule.__moduleBase+at}function D(){var at=[],We=O,ee=[],z=[];function ge(fe){var pe=z[fe](),ie=ee[fe];if(pe in ie)return pe;var de=[];for(var le in ie)de[ie[le]]=le;throw r&&r(fe,de,pe),null}if(__gwt_isKnownPropertyValue=function(fe,pe){return pe in ee[fe]},webModule.__getPropMap=function(){var fe={};for(var pe in ee)ee.hasOwnProperty(pe)&&(fe[pe]=ge(pe));return fe},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var ve=be.indexOf(Db);ve!=-1&&(We=parseInt(be.substring(ve+P),$),be=be.substring(O,ve))}catch(fe){}return webModule.__softPermutationId=We,C(be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(at,We,ee){"use strict";ee.d(We,{Ax:function(){return ve},Ds:function(){return fe},KI:function(){return ie},SI:function(){return be},f1:function(){return ge}});var z=ee(11320);function ge(de){let le=!0;if(de.length>0){for(let ce=0;cete in x?ie(x,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):x[te]=oe,ne=(x,te)=>{for(var oe in te||(te={}))se.call(te,oe)&&re(x,oe,te[oe]);if(ce)for(var oe of ce(te))me.call(te,oe)&&re(x,oe,te[oe]);return x},a=(x,te)=>de(x,le(te)),y=(x,te,oe)=>new Promise((ae,ue)=>{var ye=Ce=>{try{xe(oe.next(Ce))}catch(Be){ue(Be)}},_e=Ce=>{try{xe(oe.throw(Ce))}catch(Be){ue(Be)}},xe=Ce=>Ce.done?ae(Ce.value):Promise.resolve(Ce.value).then(ye,_e);xe((oe=oe.apply(x,te)).next())});const E=({chunkSize:x=1024*1024*2,options:te={},onCancel:oe,onComplete:ae,onError:ue,onProgress:ye,onBefore:_e,onBeginInitFile:xe,children:Ce,accept:Be,className:Me,style:mt={},concurrency:Qe=4},pt)=>{let[Ae,De]=(0,z.useState)("ready");const[Fe,tt]=(0,z.useState)(0),[Ve,Ct]=(0,z.useState)(""),[Mt,en]=(0,z.useState)(null),nn=(0,z.useRef)(null),it=(0,z.useRef)((0,be.Z)()),ct=(0,z.useRef)(!1);(0,z.useImperativeHandle)(pt,()=>({cancel:Gt,file:Mt,uploadStatus:Ae}));const wt=()=>{const He=document.getElementById(it.current);He&&(He.value="")},Vt=He=>y(void 0,null,function*(){var on;if(Ae==="uploading")return;xe&&xe(He);const In=He.size,or=Math.ceil(In/x);ct.current=!1,De("uploading"),tt(0),Ct("");try{const bn=yield(0,ge.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:He.name,chunkCount:or},te)});if(ct.current||(bn==null?void 0:bn.status)!==0)throw new Error;const{upload_id:$t}=bn;nn.current=new AbortController;const qe=[];let Je=0;for(let dt=0;dt(0,ge.ZP)("/api/attachments/multipart_upload",{method:"POST",body:cn,signal:nn.current.signal},!0).then(Ge=>{console.log(Ge,444),Je++;const gt=Math.round(Je/or*100);tt(gt),ye&&ye(a(ne({},Ge),{file:He,percent:gt}))}))}let Pt=0,Nt=Qe;for(console.log(qe,"promises");Ptyt());if(dt.length>0){const yt=yield Promise.all(dt);Pt+=Nt}}const Wt=yield(0,ge.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:He.name,chunkCount:or,uploadId:$t},te)});Wt.object?(De("success"),wt(),ae&&ae(a(ne({},Wt),{file:He,percent:100}))):(De("error"),Ct("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),wt(),ue&&ue(He.name))}catch(bn){De("error"),Ct("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),wt(),ue&&ue(He.name)}}),Gt=(0,z.useCallback)(()=>{ct.current=!0,nn.current&&(nn.current.abort(),oe&&oe())},[oe]),Ln=He=>{var on,In;const or=(In=(on=He==null?void 0:He.target)==null?void 0:on.files)==null?void 0:In[0];if(en(or),Ae="ready",!!or){if(_e){_e(or)||Vt(or),wt();return}Vt(or)}};return z.createElement(z.Fragment,null,z.createElement("input",{type:"file",id:it.current,style:{display:"none"},onChange:Ln,accept:Be}),z.createElement("label",{className:fe()(pe.upload,Me),htmlFor:it.current,style:mt},Ce))};var b=(0,z.forwardRef)(E)},63205:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return se}});var z=ee(67294),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ee(94184),ve=ee.n(be),fe=ee(57953),pe=ee(15979),ie=ee(33170),de=ee(28706),le=(me,re,ne)=>new Promise((a,y)=>{var E=te=>{try{x(ne.next(te))}catch(oe){y(oe)}},b=te=>{try{x(ne.throw(te))}catch(oe){y(oe)}},x=te=>te.done?a(te.value):Promise.resolve(te.value).then(E,b);x((ne=ne.apply(me,re)).next())}),se=({data:me,className:re,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const te=(0,z.useRef)(null),oe=(0,z.useRef)(null),ae=(0,z.useRef)(null),ue=(0,z.useRef)(null),[ye,_e]=(0,z.useState)(!1),[xe,Ce]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>{ae.current||(ae.current=document.createElement("style"),document.head.appendChild(ae.current)),me!=null&&me.visible?(document.body.setAttribute("data-custom","y-hidden"),ae.current.innerHTML=" html { overflow-y: hidden; }",me!=null&&me.src&&Be()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null))},[me==null?void 0:me.visible]);const Be=()=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ae=yield(0,de.ZJ)(me==null?void 0:me.src);te.current.src="",te.current.src=Ae,te.current.onload=function(){pt()},_e(!1),Ce("")}),Me=()=>{document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",y()},mt=Ae=>le(void 0,null,function*(){_e(!0),Ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const De=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:me.title,file:Ae.dataUrl}});De!=null&&De.id&&!x?(yield(0,ie.ZP)(`/api/attachments/${me.id}/add_subitem.json`,{method:"post",body:{subitem_id:De==null?void 0:De.id,settings:JSON.stringify(Ae.state)}})).status===0&&E():De!=null&&De.id&&E(De),document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",_e(!1),Ce("")}),Qe=()=>{const Ae=document.querySelector('a[href="https://markerjs.com/"]');Ae&&Ae.parentNode&&(Ae.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Fe=>{const tt=document.querySelector(Fe.name);tt&&tt.setAttribute("title",Fe.title)})},pt=()=>{oe.current=new pe.hP(te.current),oe.current.targetRoot=ue.current,oe.current.addEventListener("render",mt),oe.current.addEventListener("beforeclose",Me),b&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),me!=null&&me.snapshotData&&oe.current.restoreState(me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Qe()},300)};return z.createElement(z.Fragment,null,(me==null?void 0:me.visible)&&z.createElement(fe.Z,{spinning:ye,tip:xe,style:{position:"absolute"}},z.createElement("div",{ref:ue,className:ve()(ge.imageDimensions,re,ne?ge.fullWidth:""),style:a},z.createElement("img",{className:ge.img,ref:te}))))}},36527:function(at,We,ee){"use strict";var z=ee(67294),ge=ee(71230),be=ee(15746),ve=ee(66368),fe=ee(71577),pe=ee(85725),ie=ee(71736),de=ee(84279),le=ee(67294);const ce=(0,z.forwardRef)(({callback:se,showSaveButton:me,value:re=""},ne)=>{const a=(0,z.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r \\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r \\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\left\\{\\begin{matrix} \r \\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r \\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r \\end{matrix}\\right. \r \\end{array} `},{value:`\\begin{array}{l} \r a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r \\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r \\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r \\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r \\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r \\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r a \\perp \\alpha \\ \r b \\perp \\alpha \r \\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r \\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r a \\parallel \\partial ,b \\parallel \\partial \r \\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r a \\perp m,a \\perp n \r \\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r \\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r a^{2}+b^{2}=c^{2} \r \\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r \\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r \\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r \\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r \\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r a,b \\in R^{+} \\ \r \\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r a,b \\in R \\ \r \\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r \\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r \\end{array}`},{value:`\\begin{array}{c} \r H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r \\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r \\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r \\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r \\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r P \\left( \\emptyset \\right) =0 \\\\ \r P \\left( S \\right) =1 \r \\end{array}`},{value:`\\begin{array}{c} \r \\forall A \\in S \\\\ \r P \\left( A \\right) \\ge 0 \r \\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r \\end{array}`}]}]}],b=oe=>{a.current.setValue(a.current.getValue()+" "+oe.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((oe,ae)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:`$$${oe.value}$$`}),oe.name),le.createElement("div",{className:ie.Z.children},oe.children.map((ue,ye)=>le.createElement("div",{key:ye},le.createElement("h1",null,ue.name),le.createElement(ge.Z,{gutter:[10,10]},ue.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ie.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},E.map((oe,ae)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(pe.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),le.createElement("div",{className:ie.Z.children},oe.children.map((ue,ye)=>le.createElement("div",{key:ye},ue.name&&le.createElement("h1",null,ue.name),le.createElement(ge.Z,{gutter:[10,10]},ue.data.map((_e,xe)=>le.createElement(be.Z,{key:xe,onClick:()=>b(_e),className:ie.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],te=()=>{var oe=document.createElement("div");oe.innerHTML=a.current.getValue();var ae=oe.innerText;return se&&se(ae),ae};return(0,z.useImperativeHandle)(ne,()=>({getData:te})),le.createElement("div",{className:ie.Z.mathWrap},le.createElement(ve.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},re||""),me&&le.createElement("div",{className:ie.Z.button},le.createElement(fe.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});We.Z=ce},7621:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ve}});var z=ee(35973),ge={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=ee(67294),ve=({message:fe,className:pe,children:ie,style:de={}})=>be.createElement("div",{className:`custom-spinner ${ge.idsRingWrapper} ${pe}`},be.createElement("div",{className:ge.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),fe?be.createElement("p",{style:de},fe):null,ie,be.createElement(z.Outlet,null))},60076:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ve}});var z=ee(67294),ge=ee(33054),be=ee(67294),ve=({defaultX:fe="40%",leftChild:pe,rightChild:ie,className:de,hideResize:le=!1})=>{const[ce,se]=(0,z.useState)(fe),me=(0,z.useRef)();function re(){me.current=!0}(0,z.useEffect)(()=>{function y(b){me.current&&(ge.Z.publish("resize-move-bar",b),se(b.pageX))}function E(){me.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",E)}},[]);const ne=typeof ce=="number"&&ce!==.01?`${ce}px`:fe,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${de}`},be.createElement("section",{style:{width:ne,display:ce===.01?"none":""}},pe),be.createElement("section",{className:"resize-x-bar",onMouseDown:re},be.createElement("a",{className:"btn-resize"},be.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},be.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),be.createElement("section",{style:{width:a}},ie))}},38658:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return pe}});var z=ee(67294),ge={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},be=ee(94184),ve=ee.n(be),pe=({className:ie,style:de={},leftNode:le,leftTitle:ce="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:me="\u8FD0\u884C\u7ED3\u679C"})=>z.createElement("div",{className:ve()(ge.result,ie),style:de},z.createElement("div",{className:ge.left},z.createElement("div",{className:ge.title},z.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),z.createElement("span",null,ce)),z.createElement("div",{className:ge.leftNode},le)),z.createElement("div",{className:ge.right},z.createElement("div",{className:ge.title},z.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),z.createElement("span",null,me)),z.createElement("div",{className:ge.rightNode},se)))},88508:function(at,We,ee){"use strict";var z=ee(67294);const ge=ve=>String(ve).length===1?`0${ve}`:ve,be=({className:ve="",onChange:fe,defaultValue:pe=0})=>{const[ie,de]=(0,z.useState)(pe);(0,z.useEffect)(()=>{const me=setTimeout(()=>{de(ie+1e3)},1e3);return fe(ie+1e3),()=>{clearInterval(me)}},[ie]);const le=parseInt(ie/(60*6e4))||"00",ce=parseInt(ie%(60*6e4)/6e4)||"00",se=parseInt(ie%6e4/1e3)||"00";return z.createElement("div",{className:ve},ge(le),":",ge(ce),":",ge(se))};We.Z=be},6104:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return y}});var z=ee(67294),ge=ee(2453),be=ee(85418),ve=ee(24577),fe=ee(67631),pe=ee.n(fe),ie=ee(52262),de=ee(74855),le=ee(51959),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"},se=(E,b,x)=>new Promise((te,oe)=>{var ae=_e=>{try{ye(x.next(_e))}catch(xe){oe(xe)}},ue=_e=>{try{ye(x.throw(_e))}catch(xe){oe(xe)}},ye=_e=>_e.done?te(_e.value):Promise.resolve(_e.value).then(ae,ue);ye((x=x.apply(E,b)).next())});function me(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 re(E,b){return E-b}function ne(E){E.sort(re);let b=0;for(let x=0;x{},handlePlay:_e=()=>{},handlePlayEnded:xe=()=>{},autoPlay:Ce=!1,onPlayEnded:Be=()=>{},isShowWaterMark:Me=!0},mt)=>{var Qe;const Ae=((Qe=b==null?void 0:b.split("."))==null?void 0:Qe.pop())==="flv",De=(0,z.useRef)(),Fe=(0,z.useRef)(),tt=(0,z.useRef)(),Ve=(0,z.useRef)(),Ct=(0,z.useRef)(),Mt=(0,z.useRef)(),en=(0,z.useRef)(),nn=(0,z.useRef)(),it=(0,z.useRef)(),ct=(0,z.useRef)(),wt=(0,z.useRef)(),Vt=(0,z.useRef)(),Gt=(0,z.useRef)(),Ln=(0,z.useRef)(),He=navigator.userAgent.toLowerCase().match(a),on=He?He[0]:"pc",In=(0,z.useRef)(!1),or=(0,ie.eY)();let bn=0,$t=0,qe=0,Je=null,Pt=!1,Nt=20,Wt=1,dt=!1,yt=!1,Tt=[];(0,z.useImperativeHandle)(mt,()=>({getLastUpdatedTime:()=>De.current.currentTime,getDuration:()=>De.current.duration})),ge.ZP.config({maxCount:1,getContainer:()=>tt.current});const rt=(0,z.useCallback)((Qt,hn=!1)=>{let jn={point:De.current.currentTime};Je?(jn.log_id=Je,jn.watch_duration=ne(Tt),jn.total_duration=$t):(ae?(jn.video_id=parseInt(te,10),jn.course_id=ae):jn.video_id=te,jn.duration=bn,jn.device=on),hn&&(jn.ed="1");function lr(){return se(this,null,function*(){dt=!0,Je=yield oe==null?void 0:oe(jn),dt=!1,Qt&&Qt()})}lr()},[te,ae]);(0,z.useEffect)(()=>{De.current&&(Ve.current.style.display="none",Ct.current.style.display="block"),ge.ZP.destroy();let Qt=null;return ve.Z.isSupported&&Ae&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?(Qt=ve.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),De.current&&(Qt.attachMediaElement(De.current),Qt.load())):De.current.setAttribute("src",b),Ge(),()=>{Qt&&(Qt.unload(),Qt.pause(),Qt.destroy(),Qt=null)}},[De,Ae,b]);function cn(){De.current.paused?(Ve.current.style.display="none",Ct.current.style.display="block"):(Ve.current.style.display="block",Ct.current.style.display="none")}function Ge(){wt.current.style.display="none",Gt.current.style.display="none",Vt.current.style.display="none",De.current.muted||De.current.volume===0?wt.current.style.display="block":De.current.volume>0&&De.current.volume<=.5?Gt.current.style.display="block":Vt.current.style.display="block"}(0,z.useEffect)(()=>{const Qt=document.getElementById("play"),hn=document.querySelectorAll(".playback-icons use");function jn(){_e(),ue&&!In.current&&(De.current.currentTime=ue),In.current=!0,Tt.push(De.current.currentTime),Pt||(Pt=!0,x&&rt())}function lr(){return se(this,null,function*(){cn(),Tt.push(De.current.currentTime),x&&rt(()=>{Je=null,qe=0,Pt=!1,dt=!1,yt=!1,Tt=[],$t=0,Wt=1},!0),Be()})}function Ft(){Mt.current.value=Math.round(De.current.currentTime),en.current.value=Math.round(De.current.currentTime)}function nr(){const Vr=me(Math.round(De.current.currentTime));it.current.innerText=`${Vr.hour>0?Vr.hour+":":""}${Vr.minutes}:${Vr.seconds}`,it.current.setAttribute("datetime",`${Vr.hour>0?" "+Vr.hour+" ":""}${Vr.minutes}m ${Vr.seconds}s`)}function ar(){var Vr,$o,Jo,Li,Lo,Ii,xi;const Bo=Math.round((Vr=De.current)==null?void 0:Vr.duration);(Jo=($o=Mt.current)==null?void 0:$o.setAttribute)==null||Jo.call($o,"max",Bo),(Lo=(Li=en.current)==null?void 0:Li.setAttribute)==null||Lo.call(Li,"max",Bo);const Xr=me(Bo);nn.current&&(nn.current.innerText=`${Xr.hour>0?Xr.hour+":":""}${Xr.minutes}:${Xr.seconds}`,(xi=(Ii=nn.current).setAttribute)==null||xi.call(Ii,"datetime",`${Xr.hour>0?" "+Xr.hour+" ":""}${Xr.minutes}m ${Xr.seconds}s`))}function wo(){try{const Vr=Math.round(De.current.duration);Mt.current.setAttribute("max",Vr),en.current.setAttribute("max",Vr);const $o=me(Vr);nn.current.innerText=`${$o.hour>0?$o.hour+":":""}${$o.minutes}:${$o.seconds}`,nn.current.setAttribute("datetime",`${$o.hour>0?" "+$o.hour+" ":""}${$o.minutes}m ${$o.seconds}s`),Ft(),nr();const{width:Jo,height:Li,x:Lo,y:Ii}=Fe.current.getBoundingClientRect();if(Lo<0||Ii<0||!Jo)return;if(!yt){let xi=De.current.currentTime,Bo=xi-qe;Math.abs(Bo)<10?($t+=Math.abs(Bo),qe=xi,dt||$t-Wt*Nt>=0&&(Wt++,Tt.push(qe),x&&rt())):(qe=xi,x&&rt())}}catch(Vr){console.log(Vr)}}function Kr(){yt=!0}function Ur(){De.current.playing&&Tt.push(De.current.currentTime,qe),qe=De.current.currentTime,yt=!1}function Ho(){bn=De.current.duration,bn<=20&&(Nt=bn/3),De.current.addEventListener("play",jn)}function Dn(Vr){Vr.preventDefault(),(0,le.vp)()?(De.current.style.width="100%",De.current.style.height="100%"):De.current.style.cssText=""}function Po(){ye()}function pi(Vr){if(!E){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const $o=Vr.target.dataset.seek?Vr.target.dataset.seek:Vr.target.value;De.current.currentTime=$o,en.current.value=$o,Mt.current.value=$o}function sa(Vr){const $o=Math.round(Vr.offsetX/Vr.target.clientWidth*parseInt(Vr.target.getAttribute("max"),10));Mt.current.setAttribute("data-seek",$o);const Jo=me($o);ct.current.textContent=`${Jo.hour>0?Jo.hour+":":""}${Jo.minutes}:${Jo.seconds}`;const Li=De.current.getBoundingClientRect();ct.current.style.left=`${Vr.pageX-Li.left}px`}function qi(Vr){switch(Vr.code){case"Space":Vr.preventDefault(),Nn();break;case"ArrowRight":if(Vr.preventDefault(),!E){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime>=De.current.duration)break;De.current.currentTime=parseInt(De.current.currentTime)+5,Ft();break;case"ArrowLeft":if(Vr.preventDefault(),!E){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(De.current.currentTime===0)break;De.current.currentTime=parseInt(De.current.currentTime)-5,Ft();break;case"ArrowUp":Vr.preventDefault(),De.current.volume<1&&(De.current.volume=(parseInt(De.current.volume*10)+1)/10);break;case"ArrowDown":Vr.preventDefault(),De.current.volume>0&&(De.current.volume=(parseInt(De.current.volume*10)-1)/10);break}}return tt.current.addEventListener((0,le.gH)(),Dn),De.current.addEventListener("canplay",Ho),De.current.addEventListener("ended",lr),De.current.addEventListener("seeking",Kr),De.current.addEventListener("seeked",Ur),De.current.addEventListener("loadedmetadata",ar),Mt.current.addEventListener("mousemove",sa),Mt.current.addEventListener("input",pi),De.current.addEventListener("timeupdate",wo),De.current.addEventListener("pause",Po),De.current.addEventListener("volumechange",Ge),document.addEventListener("keydown",qi),()=>{var Vr,$o,Jo,Li,Lo,Ii,xi,Bo,Xr,La,_n,he;(Vr=De.current)==null||Vr.removeEventListener("canplay",Ho),($o=De.current)==null||$o.removeEventListener("play",jn),(Jo=De.current)==null||Jo.removeEventListener("ended",lr),(Li=De.current)==null||Li.removeEventListener("seeking",Kr),(Lo=De.current)==null||Lo.removeEventListener("seeked",Ur),(Ii=Mt.current)==null||Ii.removeEventListener("mousemove",sa),(xi=Mt.current)==null||xi.removeEventListener("input",pi),(Bo=De.current)==null||Bo.removeEventListener("timeupdate",wo),(Xr=De.current)==null||Xr.removeEventListener("pause",Po),(La=De.current)==null||La.removeEventListener("loadedmetadata",ar),(_n=De.current)==null||_n.removeEventListener("volumechange",Ge),document.removeEventListener("keydown",qi),(he=De.current)!=null&&he.playing&&(Tt.push(qe,De.current.currentTime),x&&rt())}},[De,b]),(0,z.useEffect)(()=>{if(De.current.onended=()=>{xe(De)},De.current.oncontextmenu=()=>!1,(b==null?void 0:b.indexOf(".m3u8"))>-1){if(De.current.canPlayType("application/vnd.apple.mpegurl"))De.current.src=b;else if(pe().isSupported()){var Qt=new(pe());Qt.loadSource(b),Qt.attachMedia(De.current)}}},[b]);const[gt,Gn]=(0,z.useState)(1),Nn=()=>{De.current.paused||De.current.ended?De.current.play():De.current.pause(),cn()};function St(){De.current.muted=!De.current.muted,De.current.muted?(Ln.current.setAttribute("data-volume",volume.value),Ln.current.value=0):Ln.current.value=Ln.current.dataset.volume}return z.createElement("div",{style:{position:"relative"},ref:tt},z.createElement("div",{ref:Fe,className:`${ce.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ce.animate__loop}`},Me&&or?or.login:" "),z.createElement("div",{className:ce.container},z.createElement("div",{className:ce["video-container"],id:"video-container"},z.createElement("div",{className:ce["playback-animation"],id:"playback-animation"},z.createElement("svg",{className:ce["playback-icons"]},z.createElement("use",{className:"hidden",href:"#play-icon"}),z.createElement("use",{href:"#pause"}))),z.createElement("video",{className:ce.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:De,autoPlay:Ce}),z.createElement("div",{className:`${ce["video-controls"]} `,id:"video-controls"},z.createElement("div",{className:ce["bottom-controls"]},z.createElement("div",{className:ce["left-controls"]},z.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Nn},z.createElement("svg",{className:ce["playback-icons"]},z.createElement("use",{ref:Ct,href:"#play-icon"}),z.createElement("use",{ref:Ve,style:{display:"none"},href:"#pause"}))),z.createElement("div",{className:ce.time},z.createElement("time",{id:"time-elapsed",ref:it},"00:00"),z.createElement("span",null," / "),z.createElement("time",{id:"duration",ref:nn},"00:00"))),z.createElement("div",{className:ce["right-controls"]},E&&z.createElement(be.Z,{placement:"top",overlayClassName:ce.rateOverlay,getPopupContainer:Qt=>Qt.parentNode,menu:{items:[{key:"1",label:z.createElement("span",{onClick:()=>{Gn(1),De.current.playbackRate=1}},"1.0x")},{key:"2",label:z.createElement("span",{onClick:()=>{Gn(1.5),De.current.playbackRate=1.5}},"1.5x")},{key:"3",label:z.createElement("span",{onClick:()=>{Gn(2),De.current.playbackRate=2}},"2.0x")}]}},z.createElement("div",{className:`${ce.controlText} mr5`},"\u500D\u901F")),z.createElement(de.CopyToClipboard,{text:b,onCopy:()=>ge.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},z.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),z.createElement("div",{className:ce["volume-controls"]},z.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ce["volume-button"],id:"volume-button",onClick:St},z.createElement("i",{ref:wt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Gt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Vt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),z.createElement("input",{className:ce.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Ln,style:{display:"none"},onClick:Ge})),z.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ce["fullscreen-button"],onClick:()=>{(0,le.vp)()?(0,le.BU)():(0,le.Dj)(tt.current)}},z.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),z.createElement("div",{className:ce["video-progress"]},z.createElement("progress",{ref:en,value:"0",min:"0"}),z.createElement("input",{className:ce.seek,ref:Mt,value:"0",min:"0",type:"range",step:"1"}),z.createElement("div",{className:ce["seek-tooltip"],ref:ct,id:"seek-tooltip"},"00:00"))))),z.createElement("svg",{style:{display:"none"}},z.createElement("defs",null,z.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},z.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),z.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},z.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),z.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},z.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"})),z.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},z.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"})))))})},62078:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return Tr}});var z=ee(67294),ge=ee.t(z,2),be=ee(33054),ve=ee(99569),fe=ee(94184),pe=ee.n(fe),ie=ee(87462),de=ee(1413),le=ee(4942),ce=ee(97685),se=ee(71002),me=ee(45987),re=/margin|padding|width|height|max|min|offset/,ne={left:!0,top:!0},a={cssFloat:1,styleFloat:1,float:1};function y($e){return $e.nodeType===1?$e.ownerDocument.defaultView.getComputedStyle($e,null):{}}function E($e,ke,et){if(ke=ke.toLowerCase(),et==="auto"){if(ke==="height")return $e.offsetHeight;if(ke==="width")return $e.offsetWidth}return ke in ne||(ne[ke]=re.test(ke)),ne[ke]?parseFloat(et)||0:et}function b($e,ke){var et=arguments.length,At=y($e);return ke=a[ke]?"cssFloat"in $e.style?"cssFloat":"styleFloat":ke,et===1?At:E($e,ke,At[ke]||$e.style[ke])}function x($e,ke,et){var At=arguments.length;if(ke=a[ke]?"cssFloat"in $e.style?"cssFloat":"styleFloat":ke,At===3)return typeof et=="number"&&re.test(ke)&&(et="".concat(et,"px")),$e.style[ke]=et,et;for(var kt in ke)ke.hasOwnProperty(kt)&&x($e,kt,ke[kt]);return y($e)}function te($e){return $e===document.body?document.documentElement.clientWidth:$e.offsetWidth}function oe($e){return $e===document.body?window.innerHeight||document.documentElement.clientHeight:$e.offsetHeight}function ae(){var $e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ke=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:$e,height:ke}}function ue(){var $e=document.documentElement.clientWidth,ke=window.innerHeight||document.documentElement.clientHeight;return{width:$e,height:ke}}function ye(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _e($e){var ke=$e.getBoundingClientRect(),et=document.documentElement;return{left:ke.left+(window.pageXOffset||et.scrollLeft)-(et.clientLeft||document.body.clientLeft||0),top:ke.top+(window.pageYOffset||et.scrollTop)-(et.clientTop||document.body.clientTop||0)}}function xe($e){var ke=z.useRef();ke.current=$e;var et=z.useCallback(function(){for(var At,kt=arguments.length,Zt=new Array(kt),Sn=0;Sn=He.F1&&et<=He.F12)return!1;switch(et){case He.ALT:case He.CAPS_LOCK:case He.CONTEXT_MENU:case He.CTRL:case He.DOWN:case He.END:case He.ESC:case He.HOME:case He.INSERT:case He.LEFT:case He.MAC_FF_META:case He.META:case He.NUMLOCK:case He.NUM_CENTER:case He.PAGE_DOWN:case He.PAGE_UP:case He.PAUSE:case He.PRINT_SCREEN:case He.RIGHT:case He.SHIFT:case He.UP:case He.WIN_KEY:case He.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=He.ZERO&&ke<=He.NINE||ke>=He.NUM_ZERO&&ke<=He.NUM_MULTIPLY||ke>=He.A&&ke<=He.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case He.SPACE:case He.QUESTION_MARK:case He.NUM_PLUS:case He.NUM_MINUS:case He.NUM_PERIOD:case He.NUM_DIVISION:case He.SEMICOLON:case He.DASH:case He.EQUALS:case He.COMMA:case He.PERIOD:case He.SLASH:case He.APOSTROPHE:case He.SINGLE_QUOTE:case He.OPEN_SQUARE_BRACKET:case He.BACKSLASH:case He.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},on=He,In=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,or=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,bn="".concat(In," ").concat(or).split(/[\s\n]+/),$t="aria-",qe="data-";function Je($e,ke){return $e.indexOf(ke)===0}function Pt($e){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,et;ke===!1?et={aria:!0,data:!0,attr:!0}:ke===!0?et={aria:!0}:et=(0,de.Z)({},ke);var At={};return Object.keys($e).forEach(function(kt){(et.aria&&(kt==="role"||Je(kt,$t))||et.data&&Je(kt,qe)||et.attr&&bn.includes(kt))&&(At[kt]=$e[kt])}),At}function Nt($e,ke,et){var At=ke;return!At&&et&&(At="".concat($e,"-").concat(et)),At}function Wt($e,ke){var et=$e["page".concat(ke?"Y":"X","Offset")],At="scroll".concat(ke?"Top":"Left");if(typeof et!="number"){var kt=$e.document;et=kt.documentElement[At],typeof et!="number"&&(et=kt.body[At])}return et}function dt($e){var ke=$e.getBoundingClientRect(),et={left:ke.left,top:ke.top},At=$e.ownerDocument,kt=At.defaultView||At.parentWindow;return et.left+=Wt(kt),et.top+=Wt(kt,!0),et}var yt=ee(62874),Tt=ee(59864);function rt($e,ke,et){var At=z.useRef({});return(!("value"in At.current)||et(At.current.condition,ke))&&(At.current.value=$e(),At.current.condition=ke),At.current.value}function cn($e,ke){typeof $e=="function"?$e(ke):(0,se.Z)($e)==="object"&&$e&&"current"in $e&&($e.current=ke)}function Ge(){for(var $e=arguments.length,ke=new Array($e),et=0;et<$e;et++)ke[et]=arguments[et];var At=ke.filter(function(kt){return kt});return At.length<=1?At[0]:function(kt){ke.forEach(function(Zt){cn(Zt,kt)})}}function gt(){for(var $e=arguments.length,ke=new Array($e),et=0;et<$e;et++)ke[et]=arguments[et];return rt(function(){return Ge.apply(void 0,ke)},ke,function(At,kt){return At.length===kt.length&&At.every(function(Zt,Sn){return Zt===kt[Sn]})})}function Gn($e){var ke,et,At=isMemo($e)?$e.type.type:$e.type;return!(typeof At=="function"&&!((ke=At.prototype)!==null&&ke!==void 0&&ke.render)||typeof $e=="function"&&!((et=$e.prototype)!==null&&et!==void 0&&et.render))}var Nn=z.memo(function($e){var ke=$e.children;return ke},function($e,ke){var et=ke.shouldUpdate;return!et}),St={width:0,height:0,overflow:"hidden",outline:"none"},Qt=z.forwardRef(function($e,ke){var et=$e.prefixCls,At=$e.className,kt=$e.style,Zt=$e.title,Sn=$e.ariaId,wn=$e.footer,Fn=$e.closable,On=$e.closeIcon,Wn=$e.onClose,gr=$e.children,so=$e.bodyStyle,co=$e.bodyProps,Jr=$e.modalRender,po=$e.onMouseDown,Ro=$e.onMouseUp,Fo=$e.holderRef,zr=$e.visible,Zo=$e.forceRender,ho=$e.width,qo=$e.height,wi=z.useContext(it),ya=wi.panel,ei=gt(Fo,ya),ca=(0,z.useRef)(),Hi=(0,z.useRef)();z.useImperativeHandle(ke,function(){return{focus:function(){var Qo;(Qo=ca.current)===null||Qo===void 0||Qo.focus()},changeActive:function(Qo){var ea=document,ua=ea.activeElement;Qo&&ua===Hi.current?ca.current.focus():!Qo&&ua===ca.current&&Hi.current.focus()}}});var _a={};ho!==void 0&&(_a.width=ho),qo!==void 0&&(_a.height=qo);var Xo;wn&&(Xo=z.createElement("div",{className:"".concat(et,"-footer")},wn));var zo;Zt&&(zo=z.createElement("div",{className:"".concat(et,"-header")},z.createElement("div",{className:"".concat(et,"-title"),id:Sn},Zt)));var Si;Fn&&(Si=z.createElement("button",{type:"button",onClick:Wn,"aria-label":"Close",className:"".concat(et,"-close")},On||z.createElement("span",{className:"".concat(et,"-close-x")})));var xa=z.createElement("div",{className:"".concat(et,"-content")},Si,zo,z.createElement("div",(0,ie.Z)({className:"".concat(et,"-body"),style:so},co),gr),Xo);return z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Zt?Sn:null,"aria-modal":"true",ref:ei,style:(0,de.Z)((0,de.Z)({},kt),_a),className:pe()(et,At),onMouseDown:po,onMouseUp:Ro},z.createElement("div",{tabIndex:0,ref:ca,style:St,"aria-hidden":"true"}),z.createElement(Nn,{shouldUpdate:zr||Zo},Jr?Jr(xa):xa),z.createElement("div",{tabIndex:0,ref:Hi,style:St,"aria-hidden":"true"}))}),hn=Qt,jn=z.forwardRef(function($e,ke){var et=$e.prefixCls,At=$e.title,kt=$e.style,Zt=$e.className,Sn=$e.visible,wn=$e.forceRender,Fn=$e.destroyOnClose,On=$e.motionName,Wn=$e.ariaId,gr=$e.onVisibleChanged,so=$e.mousePosition,co=(0,z.useRef)(),Jr=z.useState(),po=(0,ce.Z)(Jr,2),Ro=po[0],Fo=po[1],zr={};Ro&&(zr.transformOrigin=Ro);function Zo(){var ho=dt(co.current);Fo(so?"".concat(so.x-ho.left,"px ").concat(so.y-ho.top,"px"):"")}return z.createElement(yt.Z,{visible:Sn,onVisibleChanged:gr,onAppearPrepare:Zo,onEnterPrepare:Zo,forceRender:wn,motionName:On,removeOnLeave:Fn,ref:co},function(ho,qo){var wi=ho.className,ya=ho.style;return z.createElement(hn,(0,ie.Z)({},$e,{ref:ke,title:At,ariaId:Wn,prefixCls:et,holderRef:qo,style:(0,de.Z)((0,de.Z)((0,de.Z)({},ya),kt),zr),className:pe()(Zt,wi)}))})});jn.displayName="Content";var lr=jn;function Ft($e){var ke=$e.prefixCls,et=$e.style,At=$e.visible,kt=$e.maskProps,Zt=$e.motionName;return z.createElement(yt.Z,{key:"mask",visible:At,motionName:Zt,leavedClassName:"".concat(ke,"-mask-hidden")},function(Sn,wn){var Fn=Sn.className,On=Sn.style;return z.createElement("div",(0,ie.Z)({ref:wn,style:(0,de.Z)((0,de.Z)({},On),et),className:pe()("".concat(ke,"-mask"),Fn)},kt))})}function nr($e){var ke=$e.prefixCls,et=ke===void 0?"rc-dialog":ke,At=$e.zIndex,kt=$e.visible,Zt=kt===void 0?!1:kt,Sn=$e.keyboard,wn=Sn===void 0?!0:Sn,Fn=$e.focusTriggerAfterClose,On=Fn===void 0?!0:Fn,Wn=$e.wrapStyle,gr=$e.wrapClassName,so=$e.wrapProps,co=$e.onClose,Jr=$e.afterOpenChange,po=$e.afterClose,Ro=$e.transitionName,Fo=$e.animation,zr=$e.closable,Zo=zr===void 0?!0:zr,ho=$e.mask,qo=ho===void 0?!0:ho,wi=$e.maskTransitionName,ya=$e.maskAnimation,ei=$e.maskClosable,ca=ei===void 0?!0:ei,Hi=$e.maskStyle,_a=$e.maskProps,Xo=$e.rootClassName,zo=(0,z.useRef)(),Si=(0,z.useRef)(),xa=(0,z.useRef)(),za=z.useState(Zt),Qo=(0,ce.Z)(za,2),ea=Qo[0],ua=Qo[1],Or=Ln();function fa(){ct(Si.current,document.activeElement)||(zo.current=document.activeElement)}function ha(){if(!ct(Si.current,document.activeElement)){var ga;(ga=xa.current)===null||ga===void 0||ga.focus()}}function ma(ga){if(ga)ha();else{if(ua(!1),qo&&zo.current&&On){try{zo.current.focus({preventScroll:!0})}catch(Pa){}zo.current=null}ea&&(po==null||po())}Jr==null||Jr(ga)}function aa(ga){co==null||co(ga)}var Ta=(0,z.useRef)(!1),da=(0,z.useRef)(),pa=function(){clearTimeout(da.current),Ta.current=!0},$a=function(){da.current=setTimeout(function(){Ta.current=!1})},rs=null;ca&&(rs=function(Pa){Ta.current?Ta.current=!1:Si.current===Pa.target&&aa(Pa)});function Xi(ga){if(wn&&ga.keyCode===on.ESC){ga.stopPropagation(),aa(ga);return}Zt&&ga.keyCode===on.TAB&&xa.current.changeActive(!ga.shiftKey)}return(0,z.useEffect)(function(){Zt&&(ua(!0),fa())},[Zt]),(0,z.useEffect)(function(){return function(){clearTimeout(da.current)}},[]),z.createElement("div",(0,ie.Z)({className:pe()("".concat(et,"-root"),Xo)},Pt($e,{data:!0})),z.createElement(Ft,{prefixCls:et,visible:qo&&Zt,motionName:Nt(et,wi,ya),style:(0,de.Z)({zIndex:At},Hi),maskProps:_a}),z.createElement("div",(0,ie.Z)({tabIndex:-1,onKeyDown:Xi,className:pe()("".concat(et,"-wrap"),gr),ref:Si,onClick:rs,style:(0,de.Z)((0,de.Z)({zIndex:At},Wn),{},{display:ea?null:"none"})},so),z.createElement(lr,(0,ie.Z)({},$e,{onMouseDown:pa,onMouseUp:$a,ref:xa,closable:Zo,ariaId:Or,prefixCls:et,visible:Zt&&ea,onClose:aa,onVisibleChanged:ma,motionName:Nt(et,Ro,Fo)}))))}var ar=function(ke){var et=ke.visible,At=ke.getContainer,kt=ke.forceRender,Zt=ke.destroyOnClose,Sn=Zt===void 0?!1:Zt,wn=ke.afterClose,Fn=ke.panelRef,On=z.useState(et),Wn=(0,ce.Z)(On,2),gr=Wn[0],so=Wn[1],co=z.useMemo(function(){return{panel:Fn}},[Fn]);return z.useEffect(function(){et&&so(!0)},[et]),!kt&&Sn&&!gr?null:z.createElement(it.Provider,{value:co},z.createElement(nn.Z,{open:et||kt||gr,autoDestroy:!1,getContainer:At,autoLock:et||gr},z.createElement(nr,(0,ie.Z)({},ke,{destroyOnClose:Sn,afterClose:function(){wn==null||wn(),so(!1)}}))))};ar.displayName="Dialog";var wo=ar,Kr=wo,Ur=ee(73935);function Ho($e,ke,et,At){var kt=Ur.unstable_batchedUpdates?function(Sn){Ur.unstable_batchedUpdates(et,Sn)}:et;return $e!=null&&$e.addEventListener&&$e.addEventListener(ke,kt,At),{remove:function(){$e!=null&&$e.removeEventListener&&$e.removeEventListener(ke,kt,At)}}}var Dn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ke){var et=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||et>=Dn.F1&&et<=Dn.F12)return!1;switch(et){case Dn.ALT:case Dn.CAPS_LOCK:case Dn.CONTEXT_MENU:case Dn.CTRL:case Dn.DOWN:case Dn.END:case Dn.ESC:case Dn.HOME:case Dn.INSERT:case Dn.LEFT:case Dn.MAC_FF_META:case Dn.META:case Dn.NUMLOCK:case Dn.NUM_CENTER:case Dn.PAGE_DOWN:case Dn.PAGE_UP:case Dn.PAUSE:case Dn.PRINT_SCREEN:case Dn.RIGHT:case Dn.SHIFT:case Dn.UP:case Dn.WIN_KEY:case Dn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=Dn.ZERO&&ke<=Dn.NINE||ke>=Dn.NUM_ZERO&&ke<=Dn.NUM_MULTIPLY||ke>=Dn.A&&ke<=Dn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case Dn.SPACE:case Dn.QUESTION_MARK:case Dn.NUM_PLUS:case Dn.NUM_MINUS:case Dn.NUM_PERIOD:case Dn.NUM_DIVISION:case Dn.SEMICOLON:case Dn.DASH:case Dn.EQUALS:case Dn.COMMA:case Dn.PERIOD:case Dn.SLASH:case Dn.APOSTROPHE:case Dn.SINGLE_QUOTE:case Dn.OPEN_SQUARE_BRACKET:case Dn.BACKSLASH:case Dn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Po=Dn,pi={},sa=[],qi=function(ke){sa.push(ke)};function Vr($e,ke){if(0)var et}function $o($e,ke){if(0)var et}function Jo(){pi={}}function Li($e,ke,et){!ke&&!pi[et]&&($e(!1,et),pi[et]=!0)}function Lo($e,ke){Li(Vr,$e,ke)}function Ii($e,ke){Li($o,$e,ke)}Lo.preMessage=qi,Lo.resetWarned=Jo,Lo.noteOnce=Ii;var xi=Lo;function Bo($e,ke,et,At){var kt=ke+et,Zt=(et-At)/2;if(et>At){if(ke>0)return(0,le.Z)({},$e,Zt);if(ke<0&&ktAt)return(0,le.Z)({},$e,ke<0?Zt:-Zt);return{}}function Xr($e,ke,et,At){var kt=ue(),Zt=kt.width,Sn=kt.height,wn=null;return $e<=Zt&&ke<=Sn?wn={x:0,y:0}:($e>Zt||ke>Sn)&&(wn=(0,de.Z)((0,de.Z)({},Bo("x",et,$e,Zt)),Bo("y",At,ke,Sn))),wn}function La($e,ke){var et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,At=new Set;function kt(Zt,Sn){var wn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Fn=At.has(Zt);if(xi(!Fn,"Warning: There may be circular references"),Fn)return!1;if(Zt===Sn)return!0;if(et&&wn>1)return!1;At.add(Zt);var On=wn+1;if(Array.isArray(Zt)){if(!Array.isArray(Sn)||Zt.length!==Sn.length)return!1;for(var Wn=0;Wn1&&arguments[1]!==void 0?arguments[1]:1;Pe+=1;var At=Pe;function kt(Zt){if(Zt===0)Ne(At),ke();else{var Sn=he(function(){kt(Zt-1)});Le.set(At,Sn)}}return kt(et),At};nt.cancel=function($e){var ke=Le.get($e);return Ne(ke),Se(ke)};var lt=nt,fn={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function tn($e,ke,et,At){var kt=(0,z.useRef)(null),Zt=(0,z.useRef)([]),Sn=(0,z.useState)(fn),wn=(0,ce.Z)(Sn,2),Fn=wn[0],On=wn[1],Wn=function(Jr){On(fn),At&&!_n(fn,Fn)&&At({transform:fn,action:Jr})},gr=function(Jr,po){kt.current===null&&(Zt.current=[],kt.current=lt(function(){On(function(Ro){var Fo=Ro;return Zt.current.forEach(function(zr){Fo=(0,de.Z)((0,de.Z)({},Fo),zr)}),kt.current=null,At==null||At({transform:Fo,action:po}),Fo})})),Zt.current.push((0,de.Z)((0,de.Z)({},Fn),Jr))},so=function(Jr,po,Ro,Fo){var zr=$e.current,Zo=zr.width,ho=zr.height,qo=zr.offsetWidth,wi=zr.offsetHeight,ya=zr.offsetLeft,ei=zr.offsetTop,ca=Jr,Hi=Fn.scale*Jr;Hi>et?(ca=et/Fn.scale,Hi=et):Hi1,$a=da&&zr>=1,rs=tn(Or,ya,ca,Qo),Xi=rs.transform,ga=rs.resetTransform,Pa=rs.updateTransform,as=rs.dispatchZoomChange,As=(0,z.useState)(!0),Ds=(0,ce.Z)(As,2),Fs=Ds[0],hs=Ds[1],ts=Xi.rotate,ns=Xi.scale,ms=Xi.x,bs=Xi.y,el=pe()((0,le.Z)({},"".concat(et,"-moving"),aa));(0,z.useEffect)(function(){Fs||hs(!0)},[Fs]);var tl=function(){ga("close")},Rs=function(){as(Lr+qo,"zoomIn")},Hs=function(){as(Lr/(Lr+qo),"zoomOut")},nl=function(){Pa({rotate:ts+90},"rotateRight")},ks=function(){Pa({rotate:ts-90},"rotateLeft")},Ns=function(){Pa({flipX:!Xi.flipX},"flipX")},js=function(){Pa({flipY:!Xi.flipY},"flipY")},$s=function(un){un==null||un.preventDefault(),un==null||un.stopPropagation(),Ro>0&&(hs(!1),ga("prev"),ea==null||ea(Ro-1,Ro))},Vs=function(un){un==null||un.preventDefault(),un==null||un.stopPropagation(),Ro0&&(Yn=Lr/Yn),as(Yn,"wheel",un.clientX,un.clientY)}},It=function(un){!On||!pa||(un.keyCode===Po.LEFT?$s():un.keyCode===Po.RIGHT&&Vs())},rn=function(un){On&&(ns!==1?Pa({x:0,y:0,scale:1},"doubleClick"):as(Lr+qo,"doubleClick",un.clientX,un.clientY))};(0,z.useEffect)(function(){var An,un,Jn,Cr;if(wn){Jn=Ho(window,"mouseup",Oe,!1),Cr=Ho(window,"mousemove",Ye,!1);try{window.top!==window.self&&(An=Ho(window.top,"mouseup",Oe,!1),un=Ho(window.top,"mousemove",Ye,!1))}catch(Yn){Vr(!1,"[rc-image] ".concat(Yn))}}return function(){var Yn,Br,Sr,no;(Yn=Jn)===null||Yn===void 0||Yn.remove(),(Br=Cr)===null||Br===void 0||Br.remove(),(Sr=An)===null||Sr===void 0||Sr.remove(),(no=un)===null||no===void 0||no.remove()}},[On,aa,ms,bs,ts,wn]),(0,z.useEffect)(function(){var An=Ho(window,"keydown",It,!1);return function(){An.remove()}},[On,pa,Ro]);var an=z.createElement(Rn,(0,ie.Z)({},xa,{width:ke.width,height:ke.height,imgRef:Or,className:"".concat(et,"-img"),alt:kt,style:{transform:"translate3d(".concat(Xi.x,"px, ").concat(Xi.y,"px, 0) scale3d(").concat(Xi.flipX?"-":"").concat(ns,", ").concat(Xi.flipY?"-":"").concat(ns,", 1) rotate(").concat(ts,"deg)"),transitionDuration:!Fs&&"0s"},fallback:Zt,src:At,onWheel:vt,onMouseDown:Xe,onDoubleClick:rn}));return z.createElement(z.Fragment,null,z.createElement(Kr,(0,ie.Z)({transitionName:_a,maskTransitionName:zo,closable:!1,keyboard:!0,prefixCls:et,onClose:Fn,visible:On,wrapClassName:el,rootClassName:so,getContainer:Jr},ua,{afterClose:tl}),z.createElement("div",{className:"".concat(et,"-img-wrapper")},Si?Si(an,(0,de.Z)({transform:Xi},da?{current:Ro}:{})):an)),z.createElement(fr,{visible:On,transform:Xi,maskTransitionName:zo,closeIcon:co,getContainer:Jr,prefixCls:et,rootClassName:so,icons:gr,countRender:Zo,showSwitch:pa,showProgress:$a,current:Ro,count:zr,scale:ns,minScale:ya,maxScale:ca,toolbarRender:za,onSwitchLeft:$s,onSwitchRight:Vs,onZoomIn:Rs,onZoomOut:Hs,onRotateRight:nl,onRotateLeft:ks,onFlipX:Ns,onFlipY:js,onClose:Fn}))},tr=Hn,jr=ee(74902);function Pr($e){var ke=z.useState({}),et=(0,ce.Z)(ke,2),At=et[0],kt=et[1],Zt=z.useCallback(function(wn,Fn){return kt(function(On){return(0,de.Z)((0,de.Z)({},On),{},(0,le.Z)({},wn,Fn))}),function(){kt(function(On){var Wn=(0,de.Z)({},On);return delete Wn[wn],Wn})}},[]),Sn=z.useMemo(function(){return $e?$e.map(function(wn){if(typeof wn=="string")return{data:{src:wn}};var Fn={};return Object.keys(wn).forEach(function(On){["src"].concat((0,jr.Z)(Fe)).includes(On)&&(Fn[On]=wn[On])}),{data:Fn}}):Object.keys(At).reduce(function(wn,Fn){var On=At[Fn],Wn=On.canPreview,gr=On.data;return Wn&&wn.push({data:gr,id:Fn}),wn},[])},[$e,At]);return[Sn,Zt]}var Yi=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ti=["src"],xr=function(ke){var et,At=ke.previewPrefixCls,kt=At===void 0?"rc-image-preview":At,Zt=ke.children,Sn=ke.icons,wn=Sn===void 0?{}:Sn,Fn=ke.items,On=ke.preview,Wn=ke.fallback,gr=(0,se.Z)(On)==="object"?On:{},so=gr.visible,co=gr.onVisibleChange,Jr=gr.getContainer,po=gr.current,Ro=gr.movable,Fo=gr.minScale,zr=gr.maxScale,Zo=gr.countRender,ho=gr.closeIcon,qo=gr.onChange,wi=gr.onTransform,ya=gr.toolbarRender,ei=gr.imageRender,ca=(0,me.Z)(gr,Yi),Hi=Pr(Fn),_a=(0,ce.Z)(Hi,2),Xo=_a[0],zo=_a[1],Si=De(0,{value:po}),xa=(0,ce.Z)(Si,2),za=xa[0],Qo=xa[1],ea=(0,z.useState)(!1),ua=(0,ce.Z)(ea,2),Or=ua[0],fa=ua[1],ha=((et=Xo[za])===null||et===void 0?void 0:et.data)||{},ma=ha.src,aa=(0,me.Z)(ha,ti),Ta=De(!!so,{value:so,onChange:function(ts,ns){co==null||co(ts,ns,za)}}),da=(0,ce.Z)(Ta,2),pa=da[0],$a=da[1],rs=(0,z.useState)(null),Xi=(0,ce.Z)(rs,2),ga=Xi[0],Pa=Xi[1],as=z.useCallback(function(hs,ts,ns){var ms=Xo.findIndex(function(bs){return bs.id===hs});$a(!0),Pa({x:ts,y:ns}),Qo(ms<0?0:ms),fa(!0)},[Xo]);z.useEffect(function(){pa?Or||Qo(0):fa(!1)},[pa]);var As=function(ts,ns){Qo(ts),qo==null||qo(ts,ns)},Ds=function(){$a(!1),Pa(null)},Fs=z.useMemo(function(){return{register:zo,onPreview:as}},[zo,as]);return z.createElement(tt.Provider,{value:Fs},Zt,z.createElement(tr,(0,ie.Z)({"aria-hidden":!pa,movable:Ro,visible:pa,prefixCls:kt,closeIcon:ho,onClose:Ds,mousePosition:ga,imgCommonProps:aa,src:ma,fallback:Wn,icons:wn,minScale:Fo,maxScale:zr,getContainer:Jr,current:za,count:Xo.length,countRender:Zo,onTransform:wi,toolbarRender:ya,imageRender:ei,onChange:As},ca)))},yo=xr,Mi=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Pi=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ai=function(ke){var et=ke.src,At=ke.alt,kt=ke.onPreviewClose,Zt=ke.prefixCls,Sn=Zt===void 0?"rc-image":Zt,wn=ke.previewPrefixCls,Fn=wn===void 0?"".concat(Sn,"-preview"):wn,On=ke.placeholder,Wn=ke.fallback,gr=ke.width,so=ke.height,co=ke.style,Jr=ke.preview,po=Jr===void 0?!0:Jr,Ro=ke.className,Fo=ke.onClick,zr=ke.onError,Zo=ke.wrapperClassName,ho=ke.wrapperStyle,qo=ke.rootClassName,wi=(0,me.Z)(ke,Mi),ya=On&&On!==!0,ei=(0,se.Z)(po)==="object"?po:{},ca=ei.src,Hi=ei.visible,_a=Hi===void 0?void 0:Hi,Xo=ei.onVisibleChange,zo=Xo===void 0?kt:Xo,Si=ei.getContainer,xa=Si===void 0?void 0:Si,za=ei.mask,Qo=ei.maskClassName,ea=ei.movable,ua=ei.icons,Or=ei.scaleStep,fa=ei.minScale,ha=ei.maxScale,ma=ei.imageRender,aa=ei.toolbarRender,Ta=(0,me.Z)(ei,Pi),da=ca!=null?ca:et,pa=De(!!_a,{value:_a,onChange:zo}),$a=(0,ce.Z)(pa,2),rs=$a[0],Xi=$a[1],ga=en({src:et,isCustomPlaceholder:ya,fallback:Wn}),Pa=(0,ce.Z)(ga,3),as=Pa[0],As=Pa[1],Ds=Pa[2],Fs=(0,z.useState)(null),hs=(0,ce.Z)(Fs,2),ts=hs[0],ns=hs[1],ms=(0,z.useContext)(tt),bs=!!po,el=function(){Xi(!1),ns(null)},tl=pe()(Sn,Zo,qo,(0,le.Z)({},"".concat(Sn,"-error"),Ds==="error")),Rs=(0,z.useMemo)(function(){var Ns={};return Fe.forEach(function(js){ke[js]!==void 0&&(Ns[js]=ke[js])}),Ns},Fe.map(function(Ns){return ke[Ns]})),Hs=(0,z.useMemo)(function(){return(0,de.Z)((0,de.Z)({},Rs),{},{src:da})},[da,Rs]),nl=Ct(bs,Hs),ks=function(js){var $s=_e(js.target),Vs=$s.left,Oe=$s.top;ms?ms.onPreview(nl,Vs,Oe):(ns({x:Vs,y:Oe}),Xi(!0)),Fo==null||Fo(js)};return z.createElement(z.Fragment,null,z.createElement("div",(0,ie.Z)({},wi,{className:tl,onClick:bs?ks:Fo,style:(0,de.Z)({width:gr,height:so},ho)}),z.createElement("img",(0,ie.Z)({},Rs,{className:pe()("".concat(Sn,"-img"),(0,le.Z)({},"".concat(Sn,"-img-placeholder"),On===!0),Ro),style:(0,de.Z)({height:so},co),ref:as},As,{width:gr,height:so,onError:zr})),Ds==="loading"&&z.createElement("div",{"aria-hidden":"true",className:"".concat(Sn,"-placeholder")},On),za&&bs&&z.createElement("div",{className:pe()("".concat(Sn,"-mask"),Qo),style:{display:(co==null?void 0:co.display)==="none"?"none":void 0}},za)),!ms&&bs&&z.createElement(tr,(0,ie.Z)({"aria-hidden":!rs,visible:rs,prefixCls:Fn,onClose:el,mousePosition:ts,src:da,alt:At,fallback:Wn,getContainer:xa,icons:ua,movable:ea,scaleStep:Or,minScale:fa,maxScale:ha,rootClassName:qo,imageRender:ma,imgCommonProps:Rs,toolbarRender:aa},Ta)))};Ai.PreviewGroup=yo,Ai.displayName="Image";var pn=Ai,Ka=pn,Ui=ee(33603),Vo=ee(53124),Aa=ee(24457),Bn=ee(73475),mr=ee(22751),Hr=ee(91034),rr={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"},di=rr,bi=ee(74643),la=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:di}))},Da=z.forwardRef(la),Wa={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"},ft=Wa,ut=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:ft}))},Ht=z.forwardRef(ut),Yt={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"},xn=Yt,Ar=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:xn}))},Dr=z.forwardRef(Ar),lo={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"},_o=lo,uo=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:_o}))},ni=z.forwardRef(uo),vi={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"},Di=vi,_t=function(ke,et){return z.createElement(bi.Z,(0,ie.Z)({},ke,{ref:et,icon:Di}))},Et=z.forwardRef(_t),jt=ee(84780),Ue=ee(71194),zt=ee(14747),ln=ee(50438),gn=ee(16932),Lt=ee(67968),Ut=ee(45503);const Rt=$e=>({position:$e||"absolute",inset:0}),Pn=$e=>{const{iconCls:ke,motionDurationSlow:et,paddingXXS:At,marginXXS:kt,prefixCls:Zt,colorTextLightSolid:Sn}=$e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Sn,background:new jt.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${et}`,[`.${Zt}-mask-info`]:Object.assign(Object.assign({},zt.vS),{padding:`0 ${At}px`,[ke]:{marginInlineEnd:kt,svg:{verticalAlign:"baseline"}}})}},$n=$e=>{const{previewCls:ke,modalMaskBg:et,paddingSM:At,marginXL:kt,margin:Zt,paddingLG:Sn,previewOperationColorDisabled:wn,previewOperationHoverColor:Fn,motionDurationSlow:On,iconCls:Wn,colorTextLightSolid:gr}=$e,so=new jt.C(et).setAlpha(.1),co=so.clone().setAlpha(.2);return{[`${ke}-footer`]:{position:"fixed",bottom:kt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:$e.previewOperationColor},[`${ke}-progress`]:{marginBottom:Zt},[`${ke}-close`]:{position:"fixed",top:kt,right:{_skip_check_:!0,value:kt},display:"flex",color:gr,backgroundColor:so.toRgbString(),borderRadius:"50%",padding:At,outline:0,border:0,cursor:"pointer",transition:`all ${On}`,"&:hover":{backgroundColor:co.toRgbString()},[`& > ${Wn}`]:{fontSize:$e.previewOperationSize}},[`${ke}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Sn}px`,backgroundColor:so.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:At,padding:At,cursor:"pointer",transition:`all ${On}`,userSelect:"none",[`&:not(${ke}-operations-operation-disabled):hover > ${Wn}`]:{color:Fn},"&-disabled":{color:wn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Wn}`]:{fontSize:$e.previewOperationSize}}}}},ir=$e=>{const{modalMaskBg:ke,iconCls:et,previewOperationColorDisabled:At,previewCls:kt,zIndexPopup:Zt,motionDurationSlow:Sn}=$e,wn=new jt.C(ke).setAlpha(.1),Fn=wn.clone().setAlpha(.2);return{[`${kt}-switch-left, ${kt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Zt+1,display:"flex",alignItems:"center",justifyContent:"center",width:$e.imagePreviewSwitchSize,height:$e.imagePreviewSwitchSize,marginTop:-$e.imagePreviewSwitchSize/2,color:$e.previewOperationColor,background:wn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Sn}`,userSelect:"none","&:hover":{background:Fn.toRgbString()},"&-disabled":{"&, &:hover":{color:At,background:"transparent",cursor:"not-allowed",[`> ${et}`]:{cursor:"not-allowed"}}},[`> ${et}`]:{fontSize:$e.previewOperationSize}},[`${kt}-switch-left`]:{insetInlineStart:$e.marginSM},[`${kt}-switch-right`]:{insetInlineEnd:$e.marginSM}}},Qn=$e=>{const{motionEaseOut:ke,previewCls:et,motionDurationSlow:At,componentCls:kt}=$e;return[{[`${kt}-preview-root`]:{[et]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${et}-body`]:Object.assign(Object.assign({},Rt()),{overflow:"hidden"}),[`${et}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${At} ${ke} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Rt()),{transition:`transform ${At} ${ke} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${et}-moving`]:{[`${et}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${kt}-preview-root`]:{[`${et}-wrap`]:{zIndex:$e.zIndexPopup}}},{[`${kt}-preview-operations-wrapper`]:{position:"fixed",zIndex:$e.zIndexPopup+1},"&":[$n($e),ir($e)]}]},dr=$e=>{const{componentCls:ke}=$e;return{[ke]:{position:"relative",display:"inline-block",[`${ke}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ke}-img-placeholder`]:{backgroundColor:$e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ke}-mask`]:Object.assign({},Pn($e)),[`${ke}-mask:hover`]:{opacity:1},[`${ke}-placeholder`]:Object.assign({},Rt())}}},br=$e=>{const{previewCls:ke}=$e;return{[`${ke}-root`]:(0,ln._y)($e,"zoom"),"&":(0,gn.J$)($e,!0)}};var mn=(0,Lt.Z)("Image",$e=>{const ke=`${$e.componentCls}-preview`,et=(0,Ut.TS)($e,{previewCls:ke,modalMaskBg:new jt.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:$e.controlHeightLG});return[dr(et),Qn(et),(0,Ue.QA)((0,Ut.TS)(et,{componentCls:ke})),br(et)]},$e=>({zIndexPopup:$e.zIndexPopupBase+80,previewOperationColor:new jt.C($e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new jt.C($e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new jt.C($e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:$e.fontSizeIcon*1.5})),Dt=function($e,ke){var et={};for(var At in $e)Object.prototype.hasOwnProperty.call($e,At)&&ke.indexOf(At)<0&&(et[At]=$e[At]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,At=Object.getOwnPropertySymbols($e);kt{var{previewPrefixCls:ke,preview:et}=$e,At=Dt($e,["previewPrefixCls","preview"]);const{getPrefixCls:kt}=z.useContext(Vo.E_),Zt=kt("image",ke),Sn=`${Zt}-preview`,wn=kt(),[Fn,On]=mn(Zt),Wn=z.useMemo(()=>{var gr;if(et===!1)return et;const so=typeof et=="object"?et:{},co=pe()(On,(gr=so.rootClassName)!==null&&gr!==void 0?gr:"");return Object.assign(Object.assign({},so),{transitionName:(0,Ui.m)(wn,"zoom",so.transitionName),maskTransitionName:(0,Ui.m)(wn,"fade",so.maskTransitionName),rootClassName:co})},[et]);return Fn(z.createElement(Ka.PreviewGroup,Object.assign({preview:Wn,previewPrefixCls:Sn,icons:Jt},At)))},pr=function($e,ke){var et={};for(var At in $e)Object.prototype.hasOwnProperty.call($e,At)&&ke.indexOf(At)<0&&(et[At]=$e[At]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,At=Object.getOwnPropertySymbols($e);kt{const{prefixCls:ke,preview:et,className:At,rootClassName:kt,style:Zt}=$e,Sn=pr($e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:wn,locale:Fn=Aa.Z,getPopupContainer:On,image:Wn}=z.useContext(Vo.E_),gr=wn("image",ke),so=wn(),co=Fn.Image||Aa.Z.Image,[Jr,po]=mn(gr),Ro=pe()(kt,po),Fo=pe()(At,po,Wn==null?void 0:Wn.className),zr=z.useMemo(()=>{if(et===!1)return et;const ho=typeof et=="object"?et:{},{getContainer:qo}=ho,wi=pr(ho,["getContainer"]);return Object.assign(Object.assign({mask:z.createElement("div",{className:`${gr}-mask-info`},z.createElement(ve.Z,null),co==null?void 0:co.preview),icons:Jt},wi),{getContainer:qo||On,transitionName:(0,Ui.m)(so,"zoom",ho.transitionName),maskTransitionName:(0,Ui.m)(so,"fade",ho.maskTransitionName)})},[et,co]),Zo=Object.assign(Object.assign({},Wn==null?void 0:Wn.style),Zt);return Jr(z.createElement(Ka,Object.assign({prefixCls:gr,preview:zr,rootClassName:Ro,className:Fo,style:Zo},Sn)))};Nr.PreviewGroup=Vn;var ao=Nr,Tr=()=>{const[$e,ke]=(0,z.useState)(""),[et,At]=(0,z.useState)(0);let[kt,Zt]=(0,z.useState)(),[Sn,wn]=(0,z.useState)();const[Fn,On]=(0,z.useState)(!1),Wn=(0,z.useRef)("");(0,z.useEffect)(()=>be.Z.subscribe("preview-image",qo=>{ke(qo),console.log(zr.current),document.body.style.overflow="hidden"}),[]),(0,z.useEffect)(()=>(document.addEventListener("keydown",gr),()=>{document.removeEventListener("keydown",gr)}),[]),(0,z.useEffect)(()=>{Wn.current=$e},[$e]);function gr(ho){ho.keyCode==27&&Wn.current&&so()}function so(){document.body.style.overflow="auto",Zt(void 0),wn(void 0),At(0),ke("")}function co(){At(et+90)}function Jr(){kt=zr.current.width*1.1,Sn=zr.current.height*1.1,wn(Sn),Zt(kt)}function po(){kt=zr.current.width/1.1,Sn=zr.current.height/1.1,wn(Sn),Zt(kt)}const Ro=(0,z.useRef)(),Fo=(0,z.useRef)(),zr=(0,z.useRef)(),Zo=ho=>{(ho.nativeEvent.target===Ro.current||ho.nativeEvent.target===Fo.current)&&so()};return z.createElement(z.Fragment,null,$e?z.createElement("div",null,z.createElement("div",{className:"preview-wrp-group",ref:Fo},z.createElement(ao,{className:"image-preview",src:$e,style:{display:"none"},preview:{visible:!0,src:$e,movable:!1,onVisibleChange:ho=>{ke("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(at,We,ee){"use strict";ee.d(We,{h:function(){return oe}});var z=ee(67294),ge=ee(42563),be=ee(22150),ve=ee(71577),fe=ee(4631),pe=ee.n(fe),ie=ee(71749),de=ee(30483),le=Object.defineProperty,ce=Object.defineProperties,se=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ae,ue,ye)=>ue in ae?le(ae,ue,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ae[ue]=ye,y=(ae,ue)=>{for(var ye in ue||(ue={}))re.call(ue,ye)&&a(ae,ye,ue[ye]);if(me)for(var ye of me(ue))ne.call(ue,ye)&&a(ae,ye,ue[ye]);return ae},E=(ae,ue)=>ce(ae,se(ue));const b=ge.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};We.Z=({callback:ae,onCancel:ue})=>{const[ye,_e]=(0,z.useState)("python");function xe(Be){_e(te[Be][1])}function Ce(Be){ae(Be)}return z.createElement(be.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ce,style:{width:500}}),z.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(ge.default,{getPopupContainer:Be=>Be.parentNode,onChange:xe},Object.keys(te).map(Be=>z.createElement(b,{key:Be,value:Be},te[Be][0])))),z.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(oe,{mode:ye})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(ve.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(ve.ZP,{type:"ghost",onClick:ue},"\u53D6\u6D88")))};function oe({value:ae,onChange:ue,mode:ye,options:_e={}}){const xe=(0,z.useRef)(),[Ce,Be]=(0,z.useState)();return(0,z.useEffect)(()=>{if(Ce){let Me=function(mt){const Qe=mt.getValue();ue&&ue(Qe)};return Ce.on("change",Me),()=>{Ce.off("change",Me)}}},[Ce,ue]),(0,z.useEffect)(()=>{Ce&&Ce.setOption("mode",ye)},[Ce,ye]),(0,z.useEffect)(()=>{Ce&&(ae!==Ce.getValue()||ae==="")&&setTimeout(()=>{Ce.setValue(ae||"")},300)},[Ce,ae]),(0,z.useEffect)(()=>{if(xe.current&&!Ce){const Me=pe().fromTextArea(xe.current,y({mode:ye,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_e));Be(Me)}},[xe.current,Ce]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:xe}))}},35567:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return he}});var z=ee(67294),ge=ee(4631),be=ee.n(ge),ve=ee(91033),fe=ee(71749),pe=ee(57341),ie=ee(82801),de=ee(88386),le=ee(49047),ce=ee(80785),se=ee(85725),me=({value:Se="",className:Pe,showTextOnly:Le,showLines:Ne,style:nt={}})=>{const lt=(0,z.useMemo)(()=>"",[Se]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:lt}}))},re=ee(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,te=(Se,Pe,Le)=>Pe in Se?ne(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[Pe]=Le,oe=(Se,Pe)=>{for(var Le in Pe||(Pe={}))b.call(Pe,Le)&&te(Se,Le,Pe[Le]);if(E)for(var Le of E(Pe))x.call(Pe,Le)&&te(Se,Le,Pe[Le]);return Se},ae=(Se,Pe)=>a(Se,y(Pe));let ue=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ye({onActionCallback:Se,title:Pe,icon:Le,actionName:Ne,className:nt="",children:lt}){function fn(){Se(Ne)}return re.createElement("a",{title:Pe,className:nt,onClick:fn},re.createElement("i",{className:`${Le}`}),lt)}var _e=({watch:Se,showNullButton:Pe,showNullProgramButton:Le,onActionCallback:Ne,fullScreen:nt,insertTemp:lt,hidetoolBar:fn,extraUse:tn})=>{const Tn=[...ue,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!fn&&Tn.map((fr,Lr)=>re.createElement("li",{key:Lr},fr.actionName?re.createElement(ye,ae(oe({},fr),{onActionCallback:Ne})):re.createElement("span",{className:"v-line"}))),Pe?re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Le?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,lt&&re.createElement("li",null,re.createElement(ye,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${lt}`,onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),tn&&re.createElement("li",null,tn),re.createElement("li",{className:"btn-full-screen"},re.createElement(ye,{icon:`${nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ne})))},xe=ee(76621),Ce=ee(22150),Be=ee(69677),Me=ee(71577),mt=Object.defineProperty,Qe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,tt=(Se,Pe,Le)=>Pe in Se?mt(Se,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Se[Pe]=Le,Ve=(Se,Pe)=>{for(var Le in Pe||(Pe={}))De.call(Pe,Le)&&tt(Se,Le,Pe[Le]);if(Ae)for(var Le of Ae(Pe))Fe.call(Pe,Le)&&tt(Se,Le,Pe[Le]);return Se},Ct=(Se,Pe)=>Qe(Se,pt(Pe));const Mt={labelCol:{span:4},wrapperCol:{span:20}};var en=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return z.createElement(Ce.default,Ct(Ve({},Mt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),z.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(Be.default,null)),z.createElement(Ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(Be.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},nn=ee(57444),it=ee(70859),ct=ee(14446),wt=ee(71230),Vt=ee(63205),Gt=ee(67294),Ln=({callback:Se,onCancel:Pe})=>{const Le=document.createElement("canvas"),Ne=Le.getContext("2d");Le.width=1e3,Le.height=800,Ne.fillStyle="#ffffff",Ne.fillRect(0,0,Le.width,Le.height);const nt=Le.toDataURL("image/png");return Gt.createElement(ct.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Gt.createElement(wt.Z,{style:{height:"100vh"}},Gt.createElement(Vt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:nt,visible:!0,title:String(Date.now())},onOk:lt=>{Se({src:lt.url})},onClose:Pe})))},He=ee(23495);function on(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(on,go.CommandHandler),on.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},on.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var Pe=1/0;Se.selection.each(function(Le){Le instanceof go.Link||(Pe=Math.min(Le.position.x,Pe))}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Pe,Le.position.y))}),Se.commitTransaction("aligning left")},on.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var Pe=-1/0;Se.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.x+Le.actualBounds.width;Pe=Math.max(Ne,Pe)}}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Pe-Le.actualBounds.width,Le.position.y))}),Se.commitTransaction("aligning right")},on.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var Pe=1/0;Se.selection.each(function(Le){Le instanceof go.Link||(Pe=Math.min(Le.position.y,Pe))}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.position.x,Pe))}),Se.commitTransaction("alignTop")},on.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var Pe=-1/0;Se.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.y+Le.actualBounds.height;Pe=Math.max(Ne,Pe)}}),Se.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.actualBounds.x,Pe-Le.actualBounds.height))}),Se.commitTransaction("aligning bottom")},on.prototype.alignCenterX=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center X");var Le=Pe.actualBounds.x+Pe.actualBounds.width/2;Se.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Le-Ne.actualBounds.width/2,Ne.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},on.prototype.alignCenterY=function(){var Se=this.diagram,Pe=Se.selection.first();if(Pe){Se.startTransaction("aligning Center Y");var Le=Pe.actualBounds.y+Pe.actualBounds.height/2;Se.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Ne.actualBounds.x,Le-Ne.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},on.prototype.alignColumn=function(Se){var Pe=this.diagram;Pe.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var Le=new Array;Pe.selection.each(function(tn){tn instanceof go.Link||Le.push(tn)});for(var Ne=0;Ne0){for(var tn=lt.elt(fn-1);tn!==null&&tn.isTreeExpanded&&!tn.isTreeLeaf;){var Tn=this._sortTreeChildrenByY(tn);tn=Tn.last()}tn!==null&&Se.select(tn)}else Se.select(nt)}}else if(Le.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Ne=this._sortTreeChildrenByY(Pe).first();Ne!==null&&Se.select(Ne)}else for(;Pe!==null;){var nt=Pe.findTreeParentNode();if(nt===null)break;var lt=this._sortTreeChildrenByY(nt),fn=lt.indexOf(Pe);if(fnlt.y?1:nt.xlt.x?1:0}),Pe},on.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},on.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(on.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(on.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var In=on,or=ee(18023),bn=ee(15746),$t=ee(33170),qe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Je=ee(67294),Pt=(Se,Pe,Le)=>new Promise((Ne,nt)=>{var lt=Tn=>{try{tn(Le.next(Tn))}catch(fr){nt(fr)}},fn=Tn=>{try{tn(Le.throw(Tn))}catch(fr){nt(fr)}},tn=Tn=>Tn.done?Ne(Tn.value):Promise.resolve(Tn.value).then(lt,fn);tn((Le=Le.apply(Se,Pe)).next())});function Nt({onCancel:Se,callback:Pe}){let Le=(0,z.useRef)(),Ne=(0,z.useRef)(),nt=(0,z.useRef)(),lt=(0,z.useRef)(!1);const fn=(0,z.useRef)(!1),[tn,Tn]=(0,z.useState)(0);function fr(){const Ot=He.bx.make,cr={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"};Le.current=new He.S0(Ne.current,{padding:20,grid:Ot(He.s_,"Grid",Ot(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(He.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Bn=>{var mr=Bn.diagram.commandHandler.addTopLevelParts(Bn.diagram.selection,!0);mr||Bn.diagram.currentTool.doCancel()},commandHandler:Ot(In),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Bn=>{var mr=Bn.subject;mr.location=mr.location.copy().snapToGridPoint(Bn.diagram.grid.gridOrigin,Bn.diagram.grid.gridCellSize),setTimeout(()=>{Bn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Bn=>{var mr=Bn.subject;setTimeout(()=>{Bn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Bn=>{var mr=Bn.parameter.part;mr.invalidateConnectedLinks();var Hr=Bn.subject;Bn.diagram.toolManager.linkingTool.isForwards?Hr.toNode.invalidateConnectedLinks():Hr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=Ot(He.NB,"Auto",{locationSpot:He.z6.Center,locationObjectName:"SHAPE",desiredSize:new He.$u(120,60),minSize:new He.$u(40,40),resizable:!0,resizeCellSize:new He.$u(10,10),rotatable:!0},new He.KX("location","loc",He.E9.parse).makeTwoWay(He.E9.stringify),new He.KX("desiredSize","size",He.$u.parse).makeTwoWay(He.$u.stringify),Ot(He.bn,{name:"SHAPE",fill:cr.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:He.z6.AllSides,toSpot:He.z6.AllSides},new He.KX("figure"),new He.KX("fill"),new He.KX("stroke","borderColor"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Ot(He.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ot(He.al,{margin:1,textAlign:"center",overflow:He.al.OverflowEllipsis,editable:!0},new He.KX("text").makeTwoWay(),new He.KX("stroke","color"))),Le.current.nodeTemplate.toolTip=Ot("ToolTip",Ot(He.s_,"Vertical",{maxSize:new He.$u(200,NaN)},Ot(He.al,{font:"bold 10pt sans-serif",textAlign:"center"},new He.KX("text")),Ot(He.al,{font:"10pt sans-serif",textAlign:"center"},new He.KX("text","details"))));function sr(Bn,mr){var Hr=(rr,di)=>{rr.handled=!0,rr.diagram.model.commit(bi=>{var la=di.part.adornedPart,Da=new He.E9().setRectSpot(la.actualBounds,Bn);Da.subtract(la.location),Da.scale(2,2),Da.x+=Math.sign(Da.x)*130,Da.y+=Math.sign(Da.y)*130,Da.add(la.location),Da.snapToGridPoint(rr.diagram.grid.gridOrigin,rr.diagram.grid.gridCellSize);var Wa=bi.copyNodeData(la.data);bi.setGroupKeyForNodeData(Wa,bi.getGroupKeyForNodeData(la.data)),bi.addNodeData(Wa);var ft={from:la.key,to:bi.getKeyForNodeData(Wa)};bi.addLinkData(ft);var ut=rr.diagram.findNodeForData(Wa);ut.location=Da,rr.diagram.select(ut),setTimeout(()=>{rr.diagram.commandHandler.editTextBlock()},20)})};return Ot(He.bn,{figure:mr,alignment:Bn,alignmentFocus:Bn.opposite(),width:Bn.equals(He.z6.Top)||Bn.equals(He.z6.Bottom)?25:18,height:Bn.equals(He.z6.Top)||Bn.equals(He.z6.Bottom)?18:25,fill:"orange",stroke:cr.white,strokeWidth:4,mouseEnter:(rr,di)=>di.fill="dodgerblue",mouseLeave:(rr,di)=>di.fill="orange",isActionable:!0,click:Hr,contextClick:Hr})}function Rn(Bn){return Ot(He.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(mr,Hr)=>Hr.fill="dodgerblue",mouseLeave:(mr,Hr)=>Hr.fill="orange",click:(mr,Hr)=>{mr.diagram.commandHandler.showContextMenu(Hr.part.adornedPart)}},Bn||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=Ot(He.uz,"Spot",Ot(He.Vm,{padding:10}),sr(He.z6.Top,"TriangleUp"),sr(He.z6.Left,"TriangleLeft"),sr(He.z6.Right,"TriangleRight"),sr(He.z6.Bottom,"TriangleDown"),Rn({alignment:new He.z6(.75,0)}));function Hn(Bn,mr){return(Hr,rr)=>{Hr.handled=!0,Hr.diagram.model.commit(di=>{di.set(rr.part.adornedPart.data,Bn,mr)})}}function tr(Bn,mr){return mr||(mr="color"),Ot(He.bn,{width:16,height:16,stroke:"lightgray",fill:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.stroke="dodgerblue",mouseLeave:(Hr,rr)=>rr.stroke="lightgray",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}function jr(){return[Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.white,"fill"),tr(cr.beige,"fill"),tr(cr.extralightblue,"fill"),tr(cr.extralightred,"fill"))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.lightgray,"fill"),tr(cr.lightgreen,"fill"),tr(cr.lightblue,"fill"),tr(cr.lightred,"fill")))]}function Pr(){return[Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.black),tr(cr.green),tr(cr.blue),tr(cr.red))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",tr(cr.white),tr(cr.magenta),tr(cr.purple),tr(cr.orange)))]}function Yi(Bn,mr){return mr||(mr="thickness"),Ot(He.bn,"LineH",{width:16,height:16,strokeWidth:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}function ti(Bn,mr){return mr||(mr="dash"),Ot(He.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}function xr(){return[Ot("ContextMenuButton",Ot(He.s_,"Horizontal",Yi(1),Yi(2),Yi(3),Yi(4))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",ti(null),ti([2,4]),ti([4,4])))]}function yo(Bn,mr){return mr||(mr="figure"),Ot(He.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Bn,margin:1,background:"transparent",mouseEnter:(Hr,rr)=>rr.fill="dodgerblue",mouseLeave:(Hr,rr)=>rr.fill="lightgray",click:Hn(mr,Bn),contextClick:Hn(mr,Bn)})}Le.current.nodeTemplate.contextMenu=Ot("ContextMenu",Ot("ContextMenuButton",Ot(He.s_,"Horizontal",yo("Rectangle"),yo("RoundedRectangle"),yo("Ellipse"),yo("Diamond"))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",yo("Parallelogram2"),yo("ManualOperation"),yo("Procedure"),yo("Cylinder1"))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",yo("Terminator"),yo("CreateRequest"),yo("Document"),yo("TriangleDown"))),jr(),Pr(),xr()),Le.current.groupTemplate=Ot(He.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:He.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Bn,mr)=>{var Hr=mr.addMembers(mr.diagram.selection,!0);Hr||mr.diagram.currentTool.doCancel()},avoidable:!1},new He.KX("location","loc",He.E9.parse).makeTwoWay(He.E9.stringify),Ot(He.s_,"Auto",{name:"BODY"},Ot(He.bn,{parameter1:10,fill:cr.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:He.z6.AllSides,toSpot:He.z6.AllSides},new He.KX("fill"),new He.KX("stroke","color"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Ot(He.Vm,{background:"transparent",margin:20})),Ot(He.al,{alignment:He.z6.Top,alignmentFocus:He.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new He.KX("text"),new He.KX("stroke","color"))),Le.current.groupTemplate.selectionAdornmentTemplate=Ot(He.uz,"Spot",Ot(He.s_,"Auto",Ot(He.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ot(He.Vm,{margin:1.5})),Rn({alignment:He.z6.TopRight,alignmentFocus:He.z6.BottomRight})),Le.current.groupTemplate.contextMenu=Ot("ContextMenu",jr(),Pr(),xr()),Le.current.linkTemplate=Ot(He.rU,{layerName:"Foreground",routing:He.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new He.KX("fromSpot","fromSpot",He.z6.parse),new He.KX("toSpot","toSpot",He.z6.parse),new He.KX("fromShortLength","dir",Bn=>Bn>=1?10:0),new He.KX("toShortLength","dir",Bn=>Bn>=1?10:0),new He.KX("points").makeTwoWay(),Ot(He.bn,{strokeWidth:2},new He.KX("stroke","color"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Ot(He.bn,{segmentIndex:0,segmentOffset:new He.E9(15,0),segmentOrientation:He.rU.OrientAlong,alignmentFocus:He.z6.Right,figure:"circle",width:10,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn===1)),Ot(He.bn,{segmentIndex:-1,segmentOffset:new He.E9(-10,6),segmentOrientation:He.rU.OrientPlus90,alignmentFocus:He.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn>=1),new He.KX("width","thickness",Bn=>7+3*Bn),new He.KX("height","thickness",Bn=>7+3*Bn),new He.KX("segmentOffset","thickness",Bn=>new He.E9(-15,4+1.5*Bn))),Ot(He.bn,{segmentIndex:0,segmentOffset:new He.E9(15,-6),segmentOrientation:He.rU.OrientMinus90,alignmentFocus:He.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new He.KX("fill","color"),new He.KX("visible","dir",Bn=>Bn===2),new He.KX("width","thickness",Bn=>7+3*Bn),new He.KX("height","thickness",Bn=>7+3*Bn),new He.KX("segmentOffset","thickness",Bn=>new He.E9(-15,4+1.5*Bn))),Ot(He.al,{alignmentFocus:new He.z6(0,1,-4,0),editable:!0},new He.KX("text").makeTwoWay(),new He.KX("stroke","color"))),Le.current.linkTemplate.selectionAdornmentTemplate=Ot(He.uz,Ot(He.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Mi(2)},new He.KX("pathPattern","thickness",Mi)),Rn({alignmentFocus:new He.z6(0,0,-6,-4)}));function Mi(Bn){return Ot(He.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Bn+4).toString()+" H3"})}function Pi(Bn){var mr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Bn===0?mr="M0 0 M16 16 M0 8 L16 8":Bn===2&&(mr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ot(He.bn,{geometryString:mr,margin:2,background:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:Hn("dir",Bn),contextClick:Hn("dir",Bn)})}function Ai(Bn){var mr=(Hr,rr)=>{Hr.handled=!0,Hr.diagram.model.commit(di=>{var bi=rr.part.adornedPart;di.set(bi.data,Bn?"toSpot":"fromSpot",He.z6.stringify(He.z6.AllSides)),(Bn?bi.toNode:bi.fromNode).invalidateConnectedLinks()})};return Ot(He.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Hr,rr)=>rr.background="dodgerblue",mouseLeave:(Hr,rr)=>rr.background="transparent",click:mr,contextClick:mr})}function pn(Bn,mr){var Hr=0,rr=He.z6.RightSide;Bn.equals(He.z6.Top)?(Hr=270,rr=He.z6.TopSide):Bn.equals(He.z6.Left)?(Hr=180,rr=He.z6.LeftSide):Bn.equals(He.z6.Bottom)&&(Hr=90,rr=He.z6.BottomSide),mr||(Hr-=180);var di=(bi,la)=>{bi.handled=!0,bi.diagram.model.commit(Da=>{var Wa=la.part.adornedPart;Da.set(Wa.data,mr?"toSpot":"fromSpot",He.z6.stringify(rr)),(mr?Wa.toNode:Wa.fromNode).invalidateConnectedLinks()})};return Ot(He.bn,{alignment:Bn,alignmentFocus:Bn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Hr,background:"transparent",mouseEnter:(bi,la)=>la.background="dodgerblue",mouseLeave:(bi,la)=>la.background="transparent",click:di,contextClick:di})}Le.current.linkTemplate.contextMenu=Ot("ContextMenu",Pr(),xr(),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",Pi(0),Pi(1),Pi(2))),Ot("ContextMenuButton",Ot(He.s_,"Horizontal",Ot(He.s_,"Spot",Ai(!1),pn(He.z6.Top,!1),pn(He.z6.Left,!1),pn(He.z6.Right,!1),pn(He.z6.Bottom,!1)),Ot(He.s_,"Spot",{margin:new He.Zt(0,0,0,2)},Ai(!0),pn(He.z6.Top,!0),pn(He.z6.Left,!0),pn(He.z6.Right,!0),pn(He.z6.Bottom,!0)))));const Ka=`{ "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 Ui=["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 Vo(Bn){return console.log("shapeName:",Bn),Ui.indexOf(Bn)>=0}var Aa=new He.YI(nt.current,{maxSelectionCount:1,linkTemplate:Ot(He.rU,{locationSpot:He.z6.Center,selectionAdornmentTemplate:Ot(He.uz,"Link",{locationSpot:He.z6.Center},Ot(He.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ot(He.bn,{toArrow:"Standard",stroke:null}))},{routing:He.rU.AvoidsNodes,curve:He.rU.JumpOver,corner:5,toShortLength:4},new He.KX("points"),Ot(He.bn,{isPanelMain:!0,strokeWidth:2}),Ot(He.bn,{toArrow:"Standard",stroke:null})),model:new He.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...He.bn.getFigureGenerators().toArray().map(Bn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Bn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Le.current.addDiagramListener("TextEdited",function(Bn){var mr;const Hr=Bn.subject.part;var rr=(mr=document.activeElement)==null?void 0:mr.value;typeof rr=="string"&&rr.trim()===""&&Le.current.model.commit(function(di){di.set(Hr.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Aa.nodeTemplate=Ot(He.NB,"Auto",{locationSpot:He.z6.Center},new He.KX("location","location",He.E9.parse).makeTwoWay(He.E9.stringify),Ot(He.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 He.KX("stroke").makeTwoWay(),new He.KX("fill").makeTwoWay(),new He.KX("figure")),Ot(He.al,{margin:new He.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new He.$u(16,16),maxSize:new He.$u(10,NaN),textAlign:"center",editable:!0},new He.KX("key").makeTwoWay())),setTimeout(()=>{Le.current.grid=Ot(He.s_,"Grid",Ot(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ot(He.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Le.current.grid.visible=!0,Le.current.grid.gridCellStroke="darkgray",Le.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Le.current,Le.current}const Lr=()=>Pt(this,null,function*(){var Ot=Le.current.makeImage();const cr=yield(0,$t.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ot.src}});Pe({src:cr.url})});return(0,z.useEffect)(()=>(setTimeout(()=>{fr()},500),Tn(tn+1),()=>{Le.current=null}),[]),Je.createElement("div",{ref:fn,className:lt.current?`${qe.maxH60} body-overflow-initial`:"body-overflow-initial"},Je.createElement(ct.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!tn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Je.createElement(wt.Z,null,Je.createElement(bn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Je.createElement(bn.Z,{onClick:()=>{var Ot,cr,sr=Le.current.selection.first();if(lt.current=!lt.current,document.activeElement&&sr){let Rn=(cr=(Ot=document.activeElement)==null?void 0:Ot.value)==null?void 0:cr.trim();typeof Rn=="string"&&Le.current.model.commit(function(Hn){Hn.set(sr.data,"text",Rn||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}Tn(tn+1)}},Je.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},Je.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:qe.flowChartWrp},Je.createElement("div",{style:{display:"flex",height:"100%"}},Je.createElement("div",{style:{width:"300px",height:"100%"}},Je.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Je.createElement("div",{style:{height:"calc(100% - 50px)"},className:qe.myPaletteDiv,ref:nt})),Je.createElement("div",{style:{flex:1,position:"relative"}},Je.createElement("div",{ref:Ne,style:{height:"80vh"}}))),Je.createElement("div",{className:"tr"},Je.createElement(Me.ZP,{size:"large",onClick:Lr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Wt=Nt,dt=ee(78045),yt=ee(31795);const Tt=dt.ZP.Group,rt={margin:"0 8px"};var cn=({callback:Se,onCancel:Pe})=>{function Le(Ne){Se(Ne)}return z.createElement(Ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Le},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:rt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:rt},"\u884C\u6570"),z.createElement(Ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(yt.Z,null)),z.createElement("span",{style:rt},"\u5217\u6570"),z.createElement(Ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(yt.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(Ce.default.Item,{name:"align"},z.createElement(Tt,null,z.createElement(dt.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(dt.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(dt.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(dt.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Ge=ee(47897),gt=ee(61016),Gn=ee.n(gt),St=(0,z.forwardRef)(({use3d:Se,width:Pe,height:Le,callback:Ne,showSaveButton:nt},lt)=>{const fn=(0,z.useRef)(),tn=(0,z.useRef)(),[Tn,fr]=(0,z.useState)(!1),Lr=(0,z.useRef)({id:fn,appName:"graphing",width:Pe||1e3,height:Le||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{tn.current=new(Gn())(Lr.current,!0),window.onload=function(){tn.current.inject("applet_container")}},[]);const Ot=()=>{var cr=window.ggbApplet.getPNGBase64(1,!0,72);return Ne&&Ne(cr),cr};return(0,z.useEffect)(()=>{Lr.current.appName=Tn?"3D":"graphing",tn.current.inject("applet_container")},[Tn]),(0,z.useEffect)(()=>{fr(Se)},[Se]),(0,z.useImperativeHandle)(lt,()=>({getImgData:Ot})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:fn}),z.createElement(wt.Z,{align:"middle"},z.createElement(bn.Z,{flex:1},z.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Tn,onChange:cr=>fr(cr)})),z.createElement(bn.Z,null,z.createElement(Me.ZP,{size:"large",onClick:Ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Qt=ee(36527),hn=ee(25934),jn=ee(2453);const lr="link",Ft="upload-image",nr="add-flowchart",ar="draw-image",wo="add-flowchart",Kr="code-block",Ur="add-table",Ho="------------",Dn={default:Ho,left:`:${Ho}`,center:`:${Ho}:`,right:`${Ho}:`};var Po=ee(99914),pi=(Se,Pe,Le)=>new Promise((Ne,nt)=>{var lt=Tn=>{try{tn(Le.next(Tn))}catch(fr){nt(fr)}},fn=Tn=>{try{tn(Le.throw(Tn))}catch(fr){nt(fr)}},tn=Tn=>Tn.done?Ne(Tn.value):Promise.resolve(Tn.value).then(lt,fn);tn((Le=Le.apply(Se,Pe)).next())});function sa(){}let qi=0;const Vr=1e4,$o="\u2581",Jo="@\u2581\u2581@",Li="@\u2581@",Lo=` **\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`,Ii=["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 xi(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const Xr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",La={[Xr+"-B"]:"bold",[Xr+"-I"]:"italic"},_n={[lr]:"\u6DFB\u52A0\u94FE\u63A5",[Kr]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ft]:"\u6DFB\u52A0\u56FE\u7247",[ar]:"\u6DFB\u52A0\u753B\u56FE",[nr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ur]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var he=({defaultValue:Se="",onChange:Pe,width:Le="100%",height:Ne=400,miniToolbar:nt=!1,isFocus:lt=!1,watch:fn,insertTemp:tn,mode:Tn="markdown",id:fr="markdown-editor-id",showResizeBar:Lr=!1,noStorage:Ot=!1,showNullButton:cr=!1,showNullProgramButton:sr=!1,hidetoolBar:Rn=!1,fullScreen:Hn=!1,onBlur:tr,onCMBeforeChange:jr,onFullScreen:Pr,className:Yi="",disablePaste:ti=!1,disabled:xr=!1,disabledFill:yo=!1,placeholder:Mi="",values:Pi="",extraUse:Ai})=>{const[pn,Ka]=(0,z.useState)(null),[Ui,Vo]=(0,z.useState)(Se),[Aa,Bn]=(0,z.useState)(fn),[mr,Hr]=(0,z.useState)(Hn),[rr,di]=(0,z.useState)(""),[bi,la]=(0,z.useState)(0),[Da,Wa]=(0,z.useState)(Ne),[ft,ut]=(0,z.useState)(!1),Ht=(0,z.useRef)((0,hn.Z)()),Yt=(0,z.useRef)(!1),xn=(0,z.useRef)(),[Ar,Dr]=(0,z.useState)(0),[lo,_o]=(0,z.useState)(0),uo=(0,z.useRef)(),ni=(0,z.useRef)(),vi=(0,z.useRef)(),Di=(0,z.useRef)(),_t=()=>pi(void 0,null,function*(){var mn;const Dt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ht.current}});(mn=Dt==null?void 0:Dt.attachments)!=null&&mn.length&&(console.log("cm:",pn,uo),Dt.attachments.map(Jt=>{Jt.content_type.indexOf("image")>-1?pn.replaceSelection(`![,](/api/attachments/${Jt.id}?type=${Jt.content_type})`):Jt.content_type.indexOf("video")>-1?pn.replaceSelection(``):Jt.content_type.indexOf("pdf")>-1?pn.replaceSelection(`${Jt.name}`):pn.replaceSelection(`[${Jt.name}](${ENV.API_SERVER}/api/attachments/${Jt.id}?type=${Jt.content_type})`)}))});(0,z.useEffect)(()=>{const mn=window.scrollY||window.pageYOffset;Vo(Pi),pn==null||pn.setValue(Pi),window.scrollTo(0,mn)},[Pi]),(0,z.useEffect)(()=>{Pr==null||Pr(mr)},[mr]),(0,z.useEffect)(()=>{if(uo.current){let mn=function(Jt,vn){var Vn;if(ti){vn.preventDefault();return}const pr=vn.clipboardData;if(pr){const Nr=pr.types.toString(),ao=pr.items;if(Nr==="Files"||pr.types.indexOf("Files")>-1){if(vn.preventDefault(),Tn=="stex")return;try{let Tr=ao[1];((Vn=ao[0])==null?void 0:Vn.kind)==="file"&&(Tr=ao[0]);const $e=Tr.getAsFile(),ke=$e.name.split(".").pop();(0,it.I)($e,et=>{var At,kt,Zt;et.id?((At=$e==null?void 0:$e.type)==null?void 0:At.indexOf("image"))>-1?Dt.replaceSelection(``):((kt=$e==null?void 0:$e.type)==null?void 0:kt.indexOf("video"))>-1?Dt.replaceSelection(``):((Zt=$e==null?void 0:$e.type)==null?void 0:Zt.indexOf("pdf"))>-1?Dt.replaceSelection(`${$e.name}`):Ii.includes(ke)?Dt.replaceSelection(`${$e.name}`):Dt.replaceSelection(`[${$e.name}](/api/attachments/${et.id}?type=${et.content_type})`):(et==null?void 0:et.status)===401&&(jn.ZP.warning((et==null?void 0:et.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Tr){jn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dt=be().fromTextArea(uo.current,{mode:Tn,lineNumbers:!nt,lineWrapping:!0,value:Se,autoCloseTags:!sr,autoCloseBrackets:!0});return Dt.on("keyup",function(Jt,vn){vn.keyCode===8&&(Jt.getValue()==""?Dt.setOption("placeholder",Mi):Dt.setOption("placeholder",null))}),Dt.on("keydown",function(Jt,vn){if(vn.keyCode===8){var Vn=jt(Jt);Vn&&vn.preventDefault()}}),lt&&Dt.focus(),Dt.on("paste",mn),Dt.on("dragleave",function(Jt,vn){ni.current.classList.remove("mouse-hover-md")}),xr&&Dt.on("beforeChange",function(Jt,vn){(vn.origin==="paste"||vn.origin==="+input")&&vn.cancel()}),Ka(Dt),()=>{Dt.off("paste",mn)}}},[]);const Et=(0,z.useCallback)(()=>{if(ni.current)try{}catch(mn){console.log(mn,"---- to set md editor body height")}},[Da,ni,mr]);(0,z.useEffect)(()=>{function mn(){let Dt=new ve.Z(Jt=>{for(let vn of Jt)(vn.target.offsetHeight>0||vn.target.offsetWidth>0)&&(Et(),pn.setSize("100%","100%"),pn.refresh())});return Dt.observe(uo.current.parentElement),Dt}if(pn){const Dt=mn();return()=>{var Jt,vn;(Jt=uo.current)!=null&&Jt.parentElement&&Dt.unobserve((vn=uo.current)==null?void 0:vn.parentElement)}}},[pn,Et]),(0,z.useEffect)(()=>{if(pn){let mn=[];for(const[Dt,Jt]of Object.entries(La)){let vn={[Dt]:()=>{Ue(Jt)}};mn.push(vn),pn.addKeyMap(vn)}return xn.current=setInterval(()=>{Yt.current&&_t()},4e3),()=>{clearInterval(xn.current);for(let Dt of mn)pn.removeKeyMap(Dt)}}},[pn]),(0,z.useEffect)(()=>{Hn!==mr&&Hr(Hn)},[Hn]),(0,Po.Z)(()=>{if(!Ot&&bi>0){let mn=new Date().getTime(),Dt=window.sessionStorage.getItem(fr);mn>=bi+Vr&&(!Dt||Dt!==Ui)&&(window.sessionStorage.setItem(fr,Ui),ut(!0))}},Vr),(0,z.useEffect)(()=>{Bn(fn)},[pn,fn]),(0,z.useEffect)(()=>{pn&<&&pn.focus()},[pn,lt]),(0,z.useEffect)(()=>{if(Aa&&pn){let mn=function(Jt){let vn=Jt.target;if(Di.current){let Vn=vn.scrollTop/vn.scrollHeight;Di.current.scrollTop=Di.current.scrollHeight*Vn}};const Dt=pn.getScrollerElement();return Dt.addEventListener("scroll",mn),()=>{Dt.removeEventListener("scroll",mn)}}},[pn,Aa]),(0,z.useEffect)(()=>{if(pn&&jr){let mn=function(Dt,Jt){jr(Dt,Jt)};return pn.on("beforeChange",mn),()=>{pn.off("beforeChange",mn)}}},[pn,jr]),(0,z.useEffect)(()=>{if(pn&&tr){let mn=function(){tr(pn.getValue())};return pn.on("blur",mn),()=>{pn.off("blur",mn)}}},[pn,tr]);function jt(mn,Dt){var Jt=mn.getDoc(),vn=Jt.getCursor(),Vn=Jt.getLine(vn.line),pr=Vn.charAt(vn.ch-1),Nr=Vn.lastIndexOf("@\u2581@",vn.ch),ao=Vn.lastIndexOf("@\u2581\u2581@",vn.ch),Tr=Nr>ao?Nr:ao,$e=Nr>ao?3:4;if(Jo.indexOf(pr)===-1)return null;if(console.log("change1:",Dt,mn,Vn,vn,Tr,Nr,ao,pr),Tr>=0&&vn.ch-Tr<5){var ke=Tr+$e;return Jt.replaceRange("",{line:vn.line,ch:Tr},{line:vn.line,ch:ke}),{line:vn.line,ch:ke}}return null}(0,z.useEffect)(()=>{if(pn){let mn=function(Dt,Jt){const vn=Dt.getValue();Vo(vn),la(new Date().getTime()),Dt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(sr?Pe(vn,$n(vn)):Pe(vn))};return pn.on("change",mn),()=>{pn.off("change",mn)}}},[pn,Pe]),(0,z.useEffect)(()=>{if(pn)if(Se==null)pn.setValue(""),Vo("");else{const mn=window.scrollY||window.pageYOffset;Se!==pn.getValue()&&(pn.setValue(Se),Vo(Se),pn.setCursor(xr?1:pn.lineCount(),0),window.scrollTo(0,mn))}},[pn,Se]);const Ue=(0,z.useCallback)(mn=>{const Dt=pn.getCursor(),Jt=pn.getSelection();let vn=Jt.split(` `);switch(mn){case"bold":return pn.replaceSelection("**"+Jt+"**"),Jt===""&&pn.setCursor(Dt.line,Dt.ch+2),pn.focus();case"italic":return pn.replaceSelection("*"+Jt+"*"),Jt===""&&pn.setCursor(Dt.line,Dt.ch+1),pn.focus();case"code":return pn.replaceSelection("`"+Jt+"`"),Jt===""&&pn.setCursor(Dt.line,Dt.ch+1),pn.focus();case"inline-latex":return di("inline-latex"),pn.focus();case"latex":return pn.replaceSelection("```latex\n"+Jt+"\n```"),pn.setCursor(Dt.line+1,Jt.length+1),pn.focus();case"line-break":return pn.replaceSelection(`
`),pn.focus();case"list-ul":return Jt===""?pn.replaceSelection("- "+Jt):pn.replaceSelection(vn.map(Vn=>Vn===""?"":`- ${Vn}`).join(` `)),pn.focus();case"list-ol":return Jt===""?pn.replaceSelection("1. "+Jt):pn.replaceSelection(vn.map((Vn,pr)=>Vn===""?"":`${pr+1}. ${Vn}`).join(` `)),pn.focus();case"add-null-ch":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection($o),pn.focus();case"add-signal":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection(Li),pn.focus();case"add-multiple":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection(Jo),pn.focus();case"inster-template-1":return Jt===""&&pn.setCursor(Dt.line,Dt.ch),pn.replaceSelection(Lo),pn.focus();case"eraser":return pn.setValue(""),pn.focus();case"trigger-watch":return Bn(!Aa),pn.focus();case"trigger-full-screen":return Hr(!mr),pn.focus();case lr:di(lr);return;case Kr:di(Kr);return;case Ft:di(Ft);return;case ar:di(ar);return;case"maths-latex":di("maths-latex");return;case nr:di(nr);return;case Ur:di(Ur);return;default:throw new Error}},[pn,Aa,mr]),zt=(0,z.useCallback)((mn,Dt)=>{var Jt,vn,Vn,pr,Nr,ao;switch(di(""),rr){case lr:const{title:At,link:kt}=mn;return pn.replaceSelection(`[${At}](${kt})`),pn.focus();case Kr:const{language:Zt,content:Sn}=mn;return pn.replaceSelection(["```"+Zt,Sn,"```"].join(` `)),pn.focus();case"maths-latex":for(var Tr=atob(mn),$e=new Uint8Array(Tr.length),ke=0;ke{po.id?pn.replaceSelection(`![,](/api/attachments/${po.id}?type=${po.content_type})`):(po==null?void 0:po.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pn.replaceSelection("`$$"+mn+"$$`");break;case Ft:case ar:case wo:const{src:wn,alt:Fn}=mn,On=Dt,Wn=(Vn=(vn=(Jt=On==null?void 0:On.name)==null?void 0:Jt.split("."))==null?void 0:vn.pop)==null?void 0:Vn.call(vn);return((pr=On==null?void 0:On.type)==null?void 0:pr.indexOf("image"))>-1||!(On!=null&&On.type)?On.align||On.width?pn.replaceSelection(`

${Fn||

`):pn.replaceSelection(`${Fn||`):((Nr=On==null?void 0:On.type)==null?void 0:Nr.indexOf("video"))>-1?pn.replaceSelection(``):((ao=On==null?void 0:On.type)==null?void 0:ao.indexOf("pdf"))>-1?pn.replaceSelection(`${On.name}`):Ii.includes(Wn)?pn.replaceSelection(`${On.name}`):pn.replaceSelection(`[${On.name}](${wn})`),pn.focus();case Ur:const{row:gr,col:so,align:co}=mn;let Jr=` `;for(let po=0;po{switch(rr){case lr:return z.createElement(en,{callback:zt,onCancel:gn});case Kr:return z.createElement(nn.Z,{callback:zt,onCancel:gn});case Ft:return z.createElement(it.Z,{callback:zt,onCancel:gn});case nr:return z.createElement(Wt,{callback:zt,onCancel:gn});case Ur:return z.createElement(cn,{callback:zt,onCancel:gn});case"maths-latex":return z.createElement(St,{showSaveButton:!0,callback:zt});case"inline-latex":return z.createElement(Qt.Z,{showSaveButton:!0,callback:zt});default:return null}},[rr]);function gn(){di("")}(0,z.useEffect)(()=>{if(vi.current){let mn=function(Nr){Vn=!0,pr=Nr.pageY},Dt=function(){Vn=!1},Jt=function(Nr){if(Vn){let ao=Nr.pageY-pr;ao<0&&(ao=0),ao>300&&(ao=300);let Tr=Ne+ao+"px";Wa(Tr)}},vn=vi.current,Vn=!1,pr=0;return vn.addEventListener("mousedown",mn),document.addEventListener("mousemove",Jt),document.addEventListener("mouseup",Dt),()=>{vn.removeEventListener("mousedown",mn),document.removeEventListener("mousemove",Jt),document.removeEventListener("mouseup",Dt)}}},[pn,vi]),(0,z.useEffect)(()=>{Wa(Ne)},[Ne]);const Lt=xi(Le),Ut=xi(Da),Rt={width:Lt,height:Ut},Pn=(0,z.useMemo)(()=>{if(bi){let mn=new Date(bi),Dt=mn.getHours(),Jt=mn.getMinutes(),vn=mn.getSeconds();return Dt=Dt<10?"0"+Dt:Dt,Jt=Jt<10?"0"+Jt:Jt,vn=vn<10?"0"+vn:vn,`${Dt}:${Jt}:${vn}`}return 0},[bi]),$n=mn=>{const Dt=[];if(sr){let Jt=-1;mn=mn.replace(/(@▁▁@|@▁@)/g,function(vn,Vn,pr){Dt.push({multiLine:vn!==Li})})}return Dt};function ir(){window.sessionStorage.removeItem(fr),ut(!1),la(0)}function Qn(){ut(!1),la(0),pn.setValue(window.sessionStorage.getItem(fr))}(0,z.useEffect)(()=>{_n[rr]&&rr!==ar&&rr!==nr&&setTimeout(()=>{const mn=document.getElementsByClassName("markdown-popup-form")[0],Dt=window.innerWidth/2-mn.offsetWidth/2,Jt=window.innerHeight/2-mn.offsetHeight/2;Dr(Dt),_o(Jt)},0)},[rr]);const dr=mn=>{mn.preventDefault();const Dt=mn.clientX-Ar,Jt=mn.clientY-lo;document.body.onmousemove=vn=>{let Vn=vn.clientX-Dt,pr=vn.clientY-Jt;const Nr=document.getElementsByClassName("markdown-popup-form")[0],ao=window.innerWidth-Nr.offsetWidth,Tr=window.innerHeight-Nr.offsetHeight;Vn=Math.max(0,Math.min(Vn,ao)),pr=Math.max(0,Math.min(pr,Tr)),br(vn.clientX,vn.clientY,Dt,Jt)&&(Dr(Vn),_o(pr))},document.body.onmouseup=function(){document.body.onmousemove=null}},br=(mn,Dt,Jt,vn)=>{const Vn=document.body.clientHeight,pr=document.body.clientWidth;return mn<20&&Jt>mn||mn>pr-20&&JtDt||Dt>Vn-20&&vnBe in Ce?me(Ce,Be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ce[Be]=Me,x=(Ce,Be)=>{for(var Me in Be||(Be={}))y.call(Be,Me)&&b(Ce,Me,Be[Me]);if(a)for(var Me of a(Be))E.call(Be,Me)&&b(Ce,Me,Be[Me]);return Ce},te=(Ce,Be)=>re(Ce,ne(Be));const{useForm:oe}=z.default,ae={width:280,marginRight:10},ue={labelCol:{span:5},wrapperCol:{span:19}};var ye=({callback:Ce,onCancel:Be})=>{const[Me]=oe();let mt=(0,le.useRef)();function Qe(De){mt.current.width=Me.getFieldValue("width"),mt.current.align=Me.getFieldValue("align"),Ce(De,mt.current)}function pt(De,Fe){if(De.status===-1){ge.ZP.error(De.message);return}Me.setFieldsValue({src:`/api/attachments/${De.id}`,type:Fe.type})}function Ae(De){let Fe=De.target.files[0];mt.current=Fe,xe(Fe,pt)}return se.createElement(z.default,te(x({form:Me},ue),{className:"upload-image-panel",onFinish:Qe,style:{width:470,overflow:"hidden"}}),se.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},se.createElement("div",{className:"flex-container"},se.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},se.createElement(be.default,{style:ae})),se.createElement(_e,{onFileChange:Ae}))),se.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(be.default,{style:{width:264}})),se.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},se.createElement(ve.Z,null,se.createElement(z.default.Item,{name:"width",style:{margin:0}},se.createElement(fe.Z,{style:{width:264}})),se.createElement("span",{className:"ml8"},"%"))),se.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},se.createElement(pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),se.createElement("aside",null,se.createElement(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},se.createElement(ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),se.createElement(ie.ZP,{type:"default",onClick:Be},"\u53D6\u6D88"))))};function _e({onFileChange:Ce}){return se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",se.createElement("input",{type:"file",onChange:Ce}))}function xe(Ce,Be){if(!Ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ce.bg)())throw ge.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",Ce),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(Qe){Be(JSON.parse(Qe.target.responseText),Ce)},!1),mt.addEventListener("error",function(Qe){console.error(Qe)},!1),mt.open("POST",`${de.KI}/api/attachments.json`),mt.send(Me)}},76621:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return be}});var z=ee(67294),ge=ee(73935);class be extends z.Component{constructor(fe){super(fe);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,ge.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(at,We,ee){"use strict";var z=ee(12867),ge=ee(42563),be=ee(47897),ve=ee(67294);const fe=ge.default.Option;We.Z=({isTheoretical:pe,onFontSizeChange:ie,cmFontSize:de,cmCodeMode:le,autoFormat:ce,onCodeModeChange:se,onTabToSpace:me,onAutoFormat:re,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x})=>{const te={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return ve.createElement("div",{className:`tpi-code-setting ${a}`},ve.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ve.createElement(ge.default,{bordered:!1,size:"small",value:le,onChange:se},ve.createElement(fe,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ve.createElement(fe,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ve.createElement(ge.default,{bordered:!1,size:"small",value:de,onChange:ie},ve.createElement(fe,{value:12},"12px"),ve.createElement(fe,{value:14},"14px"),ve.createElement(fe,{value:16},"16px"),ve.createElement(fe,{value:18},"18px"),ve.createElement(fe,{value:20},"20px"),ve.createElement(fe,{value:22},"22px"))),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"Tab\u8F6C\u6362"),ve.createElement(be.Z,{checked:y,onChange:me})),ve.createElement("div",{className:"file-item",onClick:ne},ve.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ve.createElement("span",null,"Ctrl + S")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ve.createElement("span",null,"F1 / Alt + F1")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ve.createElement("span",null,"Ctrl + ]/[")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ve.createElement("span",null,"Ctrl + Shift + \\")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ve.createElement("span",null,"Home")),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ve.createElement("span",null,"End"))),E),!pe&&ve.createElement(ve.Fragment,null,ve.createElement("h3",null,"\u5FEB\u6377\u952E"),ve.createElement("section",null,ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ve.createElement("span",null,te[x==null?void 0:x.difficulty])),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ve.createElement("span",null,b==null?void 0:b.name)),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ve.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},99914:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ge}});var z=ee(67294);function ge(be,ve){const fe=(0,z.useRef)();(0,z.useEffect)(()=>{fe.current=be}),(0,z.useEffect)(()=>{function pe(){fe.current()}if(ve!==null){let ie=setInterval(pe,ve);return()=>clearInterval(ie)}},[ve])}},72971:function(at,We,ee){"use strict";ee.d(We,{Im:function(){return Ce},ZP:function(){return Ae},gZ:function(){return Qe}});var z=ee(67294),ge=ee(69677),be=ee(71577),ve=ee(42922),fe=ee(53978),pe=ee(94189),ie=ee(19575),de=ee(7621),le=ee(85725),ce=ee(28706),se=ee(38658),me=ee(12320),re=ee(94184),ne=ee.n(re),a=ee(67294),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=(De,Fe,tt)=>Fe in De?y(De,Fe,{enumerable:!0,configurable:!0,writable:!0,value:tt}):De[Fe]=tt,ue=(De,Fe)=>{for(var tt in Fe||(Fe={}))te.call(Fe,tt)&&ae(De,tt,Fe[tt]);if(x)for(var tt of x(Fe))oe.call(Fe,tt)&&ae(De,tt,Fe[tt]);return De},ye=(De,Fe)=>E(De,b(Fe));const{TextArea:_e}=ge.default,xe={visible:!1,tabIndex:"0"},Ce={[pe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[pe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[pe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Be=(De=>(De[De.SET_VISIBLE=0]="SET_VISIBLE",De[De.SET_TABINDEX=1]="SET_TABINDEX",De))(Be||{});function Me(De,Fe){switch(Fe.type){case 0:return ye(ue({},De),{visible:Fe.payload});case 1:return ye(ue({},De),{tabIndex:Fe.payload});default:throw new Error}}function mt({value:De,className:Fe}){const[tt,Ve]=(0,z.useState)(!1),Ct=(0,z.useRef)(),Mt=(0,z.useRef)();return(0,z.useEffect)(()=>{tt&&(Mt.current.reset(),Mt.current.write((0,ce.pp)(De||"")))},[De,tt]),(0,z.useEffect)(()=>{var en,nn,it,ct;if(Ct.current){Mt.current=new me.Terminal({fontSize:14,disableStdin:!0}),Mt.current.open(Ct.current);const wt=Ct.current.offsetWidth-14,Vt=((ct=(it=(nn=(en=Mt.current)==null?void 0:en._core)==null?void 0:nn._renderService)==null?void 0:it.dimensions)==null?void 0:ct.actualCellWidth)||9.5,Gt=Math.ceil(wt/Vt);Mt.current.resize(Gt,8),Ve(!0)}},[]),a.createElement("div",{ref:Ct,className:ne()("XtermText-valueRef",Fe)})}function Qe(De){const{status:Fe,error_msg:tt,output:Ve,input:Ct,expected_output:Mt,is_file:en,input_file_url:nn,output_file_url:it,expected_output_file_url:ct}=De;let wt=null;const Vt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Fe){case pe.h.NOMATCH:wt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!en&&a.createElement(mt,{className:"mb10",value:Ct}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(nn,Ct)},Ct)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!en&&a.createElement(mt,{className:"mb10",value:Ve&&ie.Base64.decode(Ve)||""}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(it,Ve)},Ve)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!en&&a.createElement(mt,{className:"mb10",value:Mt&&ie.Base64.decode(Mt)||""}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(ct,Mt)},Mt)));break;case pe.h.EXECUTEFAILURE:wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!en&&a.createElement(le.Z,{value:Ct,style:Vt}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(nn,Ct)},Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:wt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!en&&a.createElement(le.Z,{value:Ct,style:Vt}),en&&a.createElement("div",{style:Vt},a.createElement("a",{onClick:()=>(0,ce.LR)(nn,Ct)},Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.PODFAILURE:wt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.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," ")}function pt(De){const{status:Fe,error_msg:tt,execute_time:Ve,output:Ct,input:Mt,expected_output:en,is_file:nn,input_file_url:it,output_file_url:ct,expected_output_file_url:wt}=De;let Vt=null;switch(Fe){case pe.h.OK:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ve,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(Ct)));break;case pe.h.NOMATCH:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Mt)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",Ct&&ie.Base64.decode(Ct)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",en&&ie.Base64.decode(en)));break;case pe.h.EXECUTEFAILURE:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.COMPILEFAILURE:Vt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Mt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(tt)));break;case pe.h.PODFAILURE:Vt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Vt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Vt," ")}var Ae=({id:De,is_file:Fe,input:tt,debuging:Ve,submitting:Ct,executingMessage:Mt,debugResult:en,onChangeInput:nn,onDebugCode:it,onSubmitCode:ct})=>{const[wt,Vt]=(0,z.useReducer)(Me,xe),{visible:Gt,tabIndex:Ln}=wt;(0,z.useEffect)(()=>{Vt({type:0,payload:!1})},[De]);function He(bn){let $t=bn.target.id;Vt({type:1,payload:$t})}function on(){Vt({type:0,payload:!Gt})}const In=(0,z.useMemo)(()=>{if(en){const{status:bn}=en;return a.createElement(a.Fragment,null,pt(en))}return null},[en]);function or(){Vt({type:0,payload:!0}),Vt({type:1,payload:"1"}),it()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Gt?"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:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(_e,{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:Fe?"":tt,onChange:nn}),rightNode:Ve?a.createElement(de.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):en?In: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 ${Gt?"up":""}`,onClick:on},Gt?a.createElement(ve.Z,null):a.createElement(fe.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(be.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(be.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(be.ZP,{className:"btn-green",type:"ghost",loading:Ve,onClick:or},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:Ct,disabled:Ct,onClick:()=>{Vt({type:0,payload:!1}),ct()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},10903:function(at,We,ee){"use strict";ee.r(We),ee.d(We,{default:function(){return is}});var z=ee(67294),ge=ee(53555),be=ee(32693),ve=ee(35973),fe=ee(55054),pe=ee(2453),ie=ee(14446),de=ee(57953),le=ee(42563),ce=ee(33227),se=ee(60076),me=ee(11320),re=ee(55304),ne=ee(72565),a=ee(36295),y=ee(76621),E=ee(40471),b=ee(21434),x=ee(67294),te=Object.defineProperty,oe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=(Te,ze,Ke)=>ze in Te?te(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ce=(Te,ze)=>{for(var Ke in ze||(ze={}))ye.call(ze,Ke)&&xe(Te,Ke,ze[Ke]);if(ue)for(var Ke of ue(ze))_e.call(ze,Ke)&&xe(Te,Ke,ze[Ke]);return Te},Be=(Te,ze)=>oe(Te,ae(ze));const Me={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var mt=(Te=>(Te[Te.set_font_size=0]="set_font_size",Te[Te.set_theme=1]="set_theme",Te[Te.on_tab_to_space=2]="on_tab_to_space",Te[Te.set_show_editor_setting=3]="set_show_editor_setting",Te))(mt||{});function Qe(Te,ze){switch(ze.type){case 3:return Be(Ce({},Te),{showEditorSetting:ze.payload});case 1:return Be(Ce({},Te),{theme:ze.payload});case 0:return Be(Ce({},Te),{fontSize:ze.payload});case 2:return Be(Ce({},Te),{tabToSpace:ze.payload});default:throw new Error}}var pt=({isLoading:Te,value:ze,onChange:Ke,language:ur,onUpdateCode:En,ActionBarRender:dn=Cn=>x.createElement(Ae,{onShowCodeSetting:Cn})})=>{const[Cn,Kt]=(0,z.useReducer)(Qe,Me),{theme:yn,fontSize:zn,showEditorSetting:bo,tabToSpace:Yr}=Cn,Oo=(0,z.useRef)(),Fr=(0,z.useRef)(),Ko={onFontSizeChange:si=>{Kt({type:0,payload:si}),(0,E.t)("cmFontSize",si)},tabToSpace:Yr,cmFontSize:zn,className:"oj",cmCodeMode:yn,onTabToSpace:si=>{Kt({type:2,payload:si}),(0,E.t)("cmTabToSpace",si)},onCodeModeChange:si=>{Kt({type:1,payload:si}),(0,E.t)("cmCodeMode",si)}};function qr(){Kt({type:3,payload:!1})}function ci(){Kt({type:3,payload:!0})}const xo={value:ze,language:ur,theme:yn,height:"calc(100% - 56px)",options:{fontSize:zn,insertSpaces:Yr},onChange:si=>{Ke(si),Fr.current=si,clearTimeout(Oo.current),Oo.current=setTimeout(()=>{En(Fr.current)},1e4)},onEditBlur:si=>{Fr.current&&En(Fr.current)}};return x.createElement(z.Fragment,null,x.createElement("div",{className:"code-panel-container"},dn(ci),!Te&&x.createElement(a.ZP,Ce({},xo))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:bo,onClose:qr},x.createElement(b.Z,Ce({},Ko)))))};function Ae({onShowCodeSetting:Te}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Te},x.createElement("i",{className:"iconfont icon-shezhi"})))}var De=ee(19575),Fe=ee(77969),tt=ee(72971),Ve=ee(69677),Ct=ee(22150),Mt=ee(71577);const{TextArea:en}=Ve.default,nn=5e3;var it=({callback:Te,onCancel:ze,notes:Ke})=>{function ur(En){Te(En)}return z.createElement(Ct.default,{className:"note-form-panel",onFinish:ur,initialValues:{notes:Ke}},z.createElement(Ct.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:nn,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${nn}`}]},z.createElement(en,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),z.createElement(Ct.default.Item,{style:{textAlign:"right"}},z.createElement(Mt.ZP,{type:"ghost",onClick:ze,style:{marginRight:10}}," \u53D6\u6D88 "),z.createElement(Mt.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},ct={"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"},wt={pagination:"pagination___npPu7",info:"info___aRH6C"},Vt=ee(9430),Gt=ee(28452),Ln=ee(3407),He=ee(18699),on=ee(94189),In=ee(28706),or=ee(27484),bn=ee.n(or);const{Column:$t}=Vt.default;var qe=({submitResult:Te,submitting:ze,submitRecords:Ke,page:ur,onPageChange:En,topicId:dn})=>{const{status:Cn,id:Kt,input:yn,output:zn,expected_output:bo,is_file:Yr,input_file_url:Oo,output_file_url:Fr,expected_output_file_url:Ko,error_msg:qr}=Te||{},{records:ci,records_count:xo}=Ke||{},si=(0,ve.useParams)();function Fi(){Yr?(0,In.vQ)(De.Base64.decode(qr)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,In.vQ)(De.Base64.decode(zn)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return z.createElement(de.Z,{spinning:ze,tip:"\u8BC4\u6D4B\u4E2D...",indicator:z.createElement(Ln.Z,{style:{fontSize:24},spin:!0})},Kt?z.createElement(z.Fragment,null,z.createElement("ul",{className:wt.info},z.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",z.createElement("span",{className:Cn===on.h.OK?"c-green":"c-red"},tt.Im[Cn])),z.createElement("li",{className:wt.error},z.createElement("a",{onClick:Fi},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",z.createElement(He.Z,null)," ")),z.createElement("li",null,z.createElement(ve.Link,{to:`/problems/${dn}/record-detail/${Kt}?backId=${si==null?void 0:si.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),Cn!==on.h.OK?z.createElement(z.Fragment,null,z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),z.createElement("pre",null,!Yr&&yn,Yr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,In.LR)(Oo,yn)},yn)),z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),z.createElement("pre",null,(Cn===4||Cn===5)&&De.Base64.decode(qr),Cn!=4&&Cn!=5&&(Yr?z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,In.LR)(Fr,zn)},zn):De.Base64.decode(zn))),z.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),z.createElement("pre",null,!Yr&&De.Base64.decode(bo),Yr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,In.LR)(Ko,bo)},bo))):null):null,(ci==null?void 0:ci.length)>0?z.createElement(Vt.default,{dataSource:ci,rowKey:"id",pagination:!1},z.createElement($t,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(fo,zi)=>z.createElement("span",null," ",bn()(fo).format("YYYY-MM-DD HH:mm:ss"))}),z.createElement($t,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(fo,zi)=>{var Xn;return z.createElement(ve.Link,{className:fo===0?"c-green":"c-red",to:`/problems/${dn}/record-detail/${zi.id}?backId=${si==null?void 0:si.save_identifier}`},(Xn=tt.Im[fo])==null?void 0:Xn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),z.createElement($t,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),z.createElement($t,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),z.createElement($t,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,xo>15?z.createElement(Gt.Z,{className:wt.pagination,current:ur,pageSize:15,total:xo,onChange:En}):null)},Je=ee(26194),Pt=ee(66309),Nt=ee(93421),Wt={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},dt=ee(85725),yt=ee(67294);const Tt={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var rt=({hack:Te,onTriggerPraise:ze,toDiscuss:Ke})=>{const{language:ur,difficulty:En,time_limit:dn,username:Cn,user_path:Kt,user_praise:yn,comments_count:zn,praises_count:bo,description:Yr,pass_count:Oo,submit_count:Fr}=Te,Ko=(0,ve.useLocation)();console.log(Te.language,"language");const qr=Tt[En];return yt.createElement(yt.Fragment,null,yt.createElement("ul",{className:Wt.info},yt.createElement("li",null,"\u96BE\u5EA6\uFF1A",yt.createElement(Pt.default,{color:qr==null?void 0:qr.color},qr==null?void 0:qr.name)),yt.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",yt.createElement("b",null,dn,"\u79D2"))),yt.createElement(dt.Z,{value:Yr,className:Wt.desc}),yt.createElement("ul",{className:Wt["commit-info"]},yt.createElement("li",null,yt.createElement(Nt.Z,{size:4},yt.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",yt.createElement("b",null,Oo))),yt.createElement("li",null,yt.createElement(Nt.Z,{size:4},yt.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",yt.createElement("b",null,Fr))," "),yt.createElement("li",{style:{flex:"1 0 0"}}),yt.createElement("li",null,yt.createElement(Nt.Z,{size:4},yt.createElement("i",{className:"iconfont icon-huifu1",onClick:Ke})," ",yt.createElement("b",null,zn))," ")))},cn=ee(33054),Ge=Object.defineProperty,gt=Object.getOwnPropertySymbols,Gn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,St=(Te,ze,Ke)=>ze in Te?Ge(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Qt=(Te,ze)=>{for(var Ke in ze||(ze={}))Gn.call(ze,Ke)&&St(Te,Ke,ze[Ke]);if(gt)for(var Ke of gt(ze))Nn.call(ze,Ke)&&St(Te,Ke,ze[Ke]);return Te};const hn=Te=>React.createElement("svg",Qt({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Te),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 jn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",lr=ee(33170);function Ft(Te){return(0,lr.U2)("comments.json",Te)}function nr(Te){return(0,lr.v_)(`/discusses/${Te}/plus.json`,{container_type:"Discuss",type:1})}function ar(Te){return(0,lr.v_)("comments/reply.json",Te)}function wo(Te){return(0,lr.v_)("comments.json",Te)}function Kr(Te){return(0,lr.v_)(`comments/${Te==null?void 0:Te.id}/hidden.json`,Te)}function Ur(Te){return(0,lr.IV)(`comments/${Te==null?void 0:Te.id}.json`)}var Ho=ee(93989),Dn=ee(52262);function Po({author:Te}){return z.createElement("a",{href:`/users/${Te.login}`,target:"_blank"},z.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${Te.image_url}`,width:"50"}))}function pi({data:Te,index:ze,parentDiscussIndex:Ke,user:ur,onSetActionType:En}){const{author:dn,can_delete:Cn,content:Kt,id:yn,time:zn}=Te;function bo(){En({id:yn,index:ze,type:"delete-discuss",parentDiscussIndex:Ke,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Yr=ur.admin||Cn||dn.user_id===ur.user_id;return z.createElement("div",{className:"discuss-item-container second-discuss "},z.createElement(Po,{author:dn}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${dn.login}`,target:"_blank"},dn.name),z.createElement("span",{className:"grey"},zn),z.createElement("div",{className:"btn-group",style:{marginBottom:0}},Yr?z.createElement("a",{onClick:bo,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null)),z.createElement(dt.Z,{className:"discuss-content",value:Kt})))}var sa=({user:Te,data:ze,index:Ke,onPlusDiscuss:ur,onSetActionType:En,activeDiscussIndex:dn,onReplyDiscuss:Cn,onSetActiveDiscussIndex:Kt})=>{const{content:yn,children:zn,hidden:bo,id:Yr,praise_count:Oo,time:Fr,user_praise:Ko,can_delete:qr,author:ci}=ze;console.log(qr&&(!zn||zn.length==0),"children22");function xo(){Kt(Yr)}function si(){ur(Yr,!Ko,Ke)}function Fi(){En({id:Yr,index:Ke,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function fo(){En({id:Yr,index:Ke,params:{hidden:bo?"0":"1"},type:"hidden-discuss",message:bo?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const zi=Te.admin||Te.user_id===ci.user_id;return z.createElement("div",{className:"discuss-item-container",key:Yr},z.createElement(Po,{author:ci}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${ci.login}`,target:"_blank"}," ",ci.name," "),z.createElement("span",{className:"grey"},Fr)),z.createElement(dt.Z,{className:"discuss-content",value:yn}),zn&&zn.length>0?z.createElement("div",{className:"reply-discuss-container"},zn.map((Xn,Ei)=>z.createElement(pi,{key:Xn.id,data:Xn,index:Ei,user:Te,onSetActionType:En,parentDiscussIndex:Ke}))):null,z.createElement("div",{className:"btn-group"},(0,Dn.Ny)()?z.createElement("a",{onClick:fo,title:bo?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},z.createElement("i",{className:bo?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,qr&&(!zn||zn.length==0)?z.createElement("a",{onClick:Fi,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null,z.createElement("a",{onClick:xo,title:"\u56DE\u590D"}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," "),z.createElement("a",{onClick:si,className:Ko?"c-orange":""},z.createElement("i",{className:Ko?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),z.createElement("span",null,Oo||""))),z.createElement(Ho.Z,{id:Yr,activeDiscussIndex:dn,onReplyDiscuss:Cn})))},qi=ee(62078),Vr=ee(35567),$o=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Jo=({user_praise:Te,praise_count:ze,praisePlus:Ke,onCreateDiscuss:ur,discuss_count:En})=>{const[dn,Cn]=(0,z.useState)(!1),[Kt,yn]=(0,z.useState)("");function zn(Fr){yn(Fr)}function bo(){Cn(!0)}function Yr(){Cn(!1)}function Oo(){return $o(this,null,function*(){ur(Kt),yn(""),Cn(!1)})}return z.createElement("div",{className:`dis-input-editor-container ${dn?"active":""} `},z.createElement("div",{className:dn?"text-area hide":"text-area"},z.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:bo}),z.createElement("a",{style:{alignItems:"center"}}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",En," "),z.createElement("a",{className:"c-light-black",onClick:Ke,style:{alignItems:"center"},title:Te?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},z.createElement("i",{className:`mr3 ${Te?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),ze?z.createElement("span",null,ze):"")),dn?z.createElement("div",{className:"input-mask",onClick:Yr}):null,z.createElement("div",{className:dn?"md-container":"md-container hide"},z.createElement(Vr.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Kt,height:240,onChange:zn}),z.createElement("div",{className:"tip-container",onClick:Yr},z.createElement("a",{className:"btn-send",onClick:Oo}," \u53D1\u9001 "))))},Li=Object.defineProperty,Lo=Object.defineProperties,Ii=Object.getOwnPropertyDescriptors,xi=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,La=(Te,ze,Ke)=>ze in Te?Li(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,_n=(Te,ze)=>{for(var Ke in ze||(ze={}))Bo.call(ze,Ke)&&La(Te,Ke,ze[Ke]);if(xi)for(var Ke of xi(ze))Xr.call(ze,Ke)&&La(Te,Ke,ze[Ke]);return Te},he=(Te,ze)=>Lo(Te,Ii(ze)),Se=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Le=(Te=>(Te[Te.GET_DISCUSSES=0]="GET_DISCUSSES",Te[Te.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Te[Te.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Te[Te.PLUS_DISCUSS=3]="PLUS_DISCUSS",Te[Te.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Te[Te.SET_PAGE=5]="SET_PAGE",Te[Te.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Te))(Le||{});function Ne(Te,ze){switch(ze.type){case 6:return he(_n({},Te),{loading:!0});case 0:return _n(_n({},Te),ze.payload);case 1:return _n(_n({},Te),ze.payload);case 4:return _n(_n({},Te),ze.payload);case 3:return _n(_n({},Te),ze.payload);case 5:return _n(_n({},Te),ze.payload);case 2:return _n(_n({},Te),ze.payload);default:throw new Error}}var nt=({user:Te,identifier:ze,hack:Ke,onTriggerPraise:ur,setDiscussTotal:En})=>{const[dn,Cn]=(0,z.useReducer)(Ne,Pe),{loading:Kt,page:yn,data:zn,count:bo,actionType:Yr,activeDiscussIndex:Oo}=dn;console.log("---",dn);const Fr=(0,z.useCallback)(()=>Se(void 0,null,function*(){Cn({type:6});const Xn=yield Ft({container_type:"Practice",container_identifier:ze,limit:10,page:yn}),{comments:Ei,disscuss_count:mo}=Xn;Cn({type:0,payload:{data:Ei,count:mo,loading:!1}}),En(mo)}),[yn,ze]);(0,z.useEffect)(()=>{Fr()},[ze,yn]);function Ko(Xn){Cn({type:5,payload:{page:Xn}})}function qr(Xn){Cn({type:4,payload:{actionType:Xn}})}function ci(Xn){Cn(Oo===Xn?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Xn}})}function xo(Xn,Ei,mo){return Se(this,null,function*(){try{const Eo=yield nr(Xn);zn[mo].user_praise=Ei,zn[mo].praise_count=Eo.praise_count,Cn({type:3,payload:{data:[...zn]}})}catch(Eo){console.log(Eo)}})}function si(){return Se(this,null,function*(){const{id:Xn,params:Ei,type:mo,index:Eo,parentDiscussIndex:Ra}=Yr;mo==="hidden-discuss"&&(console.log(Ei,"params"),yield Kr(_n({id:Xn,container_type:"Practice",container_identifier:ze},Ei)),Ra?zn[Ra].children[Eo].hidden=Ei.hidden==1:zn[Eo].hidden=Ei.hidden==1,Cn({type:4,payload:{actionType:null,data:[...zn]}})),mo==="delete-discuss"&&(yield Ur({id:Xn,container_type:"Practice",container_identifier:ze}),Cn({type:4,payload:{actionType:null}}),yield Fr())})}function Fi(){Cn({type:4,payload:{actionType:null}})}function fo(Xn,Ei){return Se(this,null,function*(){try{yield ar({container_type:"Practice",container_identifier:ze,comments:{content:Ei,parent_id:Xn}}),Fr()}catch(mo){console.log(mo)}})}function zi(Xn){return Se(this,null,function*(){Cn({type:6}),yield wo({comments:{content:Xn},container_type:"Practice",container_identifier:ze}),Fr()})}return z.createElement(z.Fragment,null,z.createElement("div",{className:"discuss-panel"},zn.length===0?z.createElement(Je.Z,null):z.createElement(de.Z,{spinning:Kt},zn.map((Xn,Ei)=>z.createElement(sa,{onReplyDiscuss:fo,onPlusDiscuss:xo,onSetActiveDiscussIndex:ci,onSetActionType:qr,data:Xn,index:Ei,user:Te,activeDiscussIndex:Oo}))),bo>10?z.createElement("div",{className:"pagination-container mt10 mb10"},z.createElement(Gt.Z,{showQuickJumper:!0,onChange:Ko,current:yn,total:bo,showTotal:Xn=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},Xn),"\u6761\u6570\u636E")})):null),z.createElement(Jo,{user_praise:Ke.user_praise,praise_count:Ke.praises_count,praisePlus:ur,discuss_count:Ke.comments_count,onCreateDiscuss:zi}),z.createElement(y.Z,null,z.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!Yr,onOk:si,onCancel:Fi},z.createElement("p",null,Yr?Yr.message:"")),z.createElement(qi.Z,null)))},lt={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"},fn={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"},tn=Object.defineProperty,Tn=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Ot=(Te,ze,Ke)=>ze in Te?tn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,cr=(Te,ze)=>{for(var Ke in ze||(ze={}))fr.call(ze,Ke)&&Ot(Te,Ke,ze[Ke]);if(Tn)for(var Ke of Tn(ze))Lr.call(ze,Ke)&&Ot(Te,Ke,ze[Ke]);return Te};const sr=Te=>React.createElement("svg",cr({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Te),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 Rn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Hn=Object.defineProperty,tr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Yi=(Te,ze,Ke)=>ze in Te?Hn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ti=(Te,ze)=>{for(var Ke in ze||(ze={}))jr.call(ze,Ke)&&Yi(Te,Ke,ze[Ke]);if(tr)for(var Ke of tr(ze))Pr.call(ze,Ke)&&Yi(Te,Ke,ze[Ke]);return Te};const xr=Te=>React.createElement("svg",ti({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),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 yo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Mi=Object.defineProperty,Pi=Object.getOwnPropertySymbols,Ai=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Ka=(Te,ze,Ke)=>ze in Te?Mi(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ui=(Te,ze)=>{for(var Ke in ze||(ze={}))Ai.call(ze,Ke)&&Ka(Te,Ke,ze[Ke]);if(Pi)for(var Ke of Pi(ze))pn.call(ze,Ke)&&Ka(Te,Ke,ze[Ke]);return Te};const Vo=Te=>React.createElement("svg",Ui({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),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 Aa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",Bn=Object.defineProperty,mr=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,di=(Te,ze,Ke)=>ze in Te?Bn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,bi=(Te,ze)=>{for(var Ke in ze||(ze={}))Hr.call(ze,Ke)&&di(Te,Ke,ze[Ke]);if(mr)for(var Ke of mr(ze))rr.call(ze,Ke)&&di(Te,Ke,ze[Ke]);return Te};const la=Te=>React.createElement("svg",bi({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),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 Da="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Wa=Object.defineProperty,ft=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Ht=Object.prototype.propertyIsEnumerable,Yt=(Te,ze,Ke)=>ze in Te?Wa(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,xn=(Te,ze)=>{for(var Ke in ze||(ze={}))ut.call(ze,Ke)&&Yt(Te,Ke,ze[Ke]);if(ft)for(var Ke of ft(ze))Ht.call(ze,Ke)&&Yt(Te,Ke,ze[Ke]);return Te};const Ar=Te=>React.createElement("svg",xn({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Te),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 Dr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",_o=({style:Te={},onClick:ze,onAssist:Ke,onHide:ur,data:En,active:dn,showLine:Cn})=>z.createElement(z.Fragment,null,z.createElement("div",{className:dn===(En==null?void 0:En.id)?`${fn.list} ${fn.active}`:fn.list,style:Te,onClick:()=>ze(En)},(En==null?void 0:En.video)&&z.createElement("div",{className:fn.left},z.createElement("img",{src:En==null?void 0:En.video_cover}),z.createElement("div",null,z.createElement("img",{src:Rn}),z.createElement("span",null,En==null?void 0:En.video_duration)),z.createElement("div",{className:fn.mask})),z.createElement("div",{className:fn.right},z.createElement("div",{className:fn.name},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(En==null?void 0:En.image_url),width:30,height:30}),z.createElement("div",{title:En==null?void 0:En.name,className:fn.title},En==null?void 0:En.name),(En==null?void 0:En.is_authority)&&z.createElement("div",{className:fn.b},"\u5B98\u65B9"),(En==null?void 0:En.is_excellent)&&z.createElement("div",{className:fn.a},"\u7CBE\u9009")),z.createElement("div",{className:fn.des},z.createElement(dt.Z,{showLines:2,showTextOnly:!0,value:(En==null?void 0:En.content)||"\u6682\u65E0\u5185\u5BB9"})),z.createElement("div",{className:fn.tag},z.createElement("span",{className:"current",onClick:Kt=>{Kt.stopPropagation(),Ke(En)}},z.createElement("img",{src:En!=null&&En.user_liker?Aa:yo}),z.createElement("span",{style:{color:En!=null&&En.user_liker?"#0152d9":"#656f87"}},En==null?void 0:En.praises_count)),z.createElement("span",null,z.createElement("img",{src:Da}),z.createElement("span",null,En==null?void 0:En.discusses_count)),z.createElement("span",null,z.createElement("img",{src:Dr}),z.createElement("span",null,En==null?void 0:En.viewed_count)),(0,Dn.Ny)()&&z.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:Kt=>{Kt.stopPropagation(),ur(En)}},En!=null&&En.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),Cn&&z.createElement("div",{className:fn.line})),uo={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"},ni=ee(83062),vi=Object.defineProperty,Di=Object.getOwnPropertySymbols,_t=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,jt=(Te,ze,Ke)=>ze in Te?vi(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ue=(Te,ze)=>{for(var Ke in ze||(ze={}))_t.call(ze,Ke)&&jt(Te,Ke,ze[Ke]);if(Di)for(var Ke of Di(ze))Et.call(ze,Ke)&&jt(Te,Ke,ze[Ke]);return Te};const zt=Te=>React.createElement("svg",Ue({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Te),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 ln="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",gn=Object.defineProperty,Lt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Pn=(Te,ze,Ke)=>ze in Te?gn(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,$n=(Te,ze)=>{for(var Ke in ze||(ze={}))Ut.call(ze,Ke)&&Pn(Te,Ke,ze[Ke]);if(Lt)for(var Ke of Lt(ze))Rt.call(ze,Ke)&&Pn(Te,Ke,ze[Ke]);return Te};const ir=Te=>React.createElement("svg",$n({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Te),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 Qn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",dr=Object.defineProperty,br=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Jt=(Te,ze,Ke)=>ze in Te?dr(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,vn=(Te,ze)=>{for(var Ke in ze||(ze={}))mn.call(ze,Ke)&&Jt(Te,Ke,ze[Ke]);if(br)for(var Ke of br(ze))Dt.call(ze,Ke)&&Jt(Te,Ke,ze[Ke]);return Te};const Vn=Te=>React.createElement("svg",vn({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Te),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 pr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Nr=ee(95235),ao=Object.defineProperty,Tr=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,kt=(Te,ze,Ke)=>ze in Te?ao(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Zt=(Te,ze)=>{for(var Ke in ze||(ze={}))et.call(ze,Ke)&&kt(Te,Ke,ze[Ke]);if(ke)for(var Ke of ke(ze))At.call(ze,Ke)&&kt(Te,Ke,ze[Ke]);return Te},Sn=(Te,ze)=>Tr(Te,$e(ze)),wn=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),On=({onClose:Te,onOk:ze,identifier:Ke,active:ur})=>{var En,dn;const[Cn]=Ct.default.useForm(),[Kt,yn]=(0,z.useState)({}),[zn,bo]=(0,z.useState)(!1),[Yr,Oo]=(0,z.useState)(!1),[Fr,Ko]=(0,z.useState)([]),qr=(0,Dn.eY)(),ci=(0,ve.useParams)(),xo=(0,z.useRef)();(0,z.useEffect)(()=>{ur&&si()},[ur]);const si=()=>wn(void 0,null,function*(){var kr,So,li,fi,zs,Os,Cs,Us,Xa,ys;const eo=yield(0,ce.M3)(Ke,{active:ur});if((eo==null?void 0:eo.status)===0){const Vi={name:(kr=eo==null?void 0:eo.data)==null?void 0:kr.name,content:(So=eo==null?void 0:eo.data)==null?void 0:So.content};Cn.setFieldsValue(Vi),yn(Vi),(fi=(li=eo==null?void 0:eo.data)==null?void 0:li.videos)!=null&&fi[0]&&Ko([{video_id:(Cs=(Os=(zs=eo==null?void 0:eo.data)==null?void 0:zs.videos)==null?void 0:Os[0])==null?void 0:Cs.video_id,name:(ys=(Xa=(Us=eo==null?void 0:eo.data)==null?void 0:Us.videos)==null?void 0:Xa[0])==null?void 0:ys.title,loaded:100}])}}),Fi=(kr,So)=>{yn(Zt({},So))},fo=kr=>wn(void 0,null,function*(){const So={videos:Fr,articles:kr};Oo(!0);let li;ur?(So.active=ur,li=yield(0,ce.gu)(Ke,So)):li=yield(0,ce.bx)(Ke,So),(li==null?void 0:li.status)===0&&(console.log(ur||(li==null?void 0:li.id),44),ze(ur||(li==null?void 0:li.id))),Oo(!1)}),zi=(kr,So)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:z.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",So?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{So?Ko([]):(xo.current.cancel(),Ko([]))}})},Xn=()=>z.createElement(Nr.Z,Sn(Zt({},Qi),{ref:xo}),z.createElement("div",{className:uo.main},z.createElement("img",{src:ln,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),Ei=kr=>z.createElement("div",{className:uo.mainLoading},z.createElement("div",{className:uo.proWarp},z.createElement("div",{className:uo.pro},z.createElement("div",{style:{width:kr}})),z.createElement("span",null,kr||0,"%")),z.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),z.createElement("div",{className:uo.tip},z.createElement(ni.Z,{getPopupContainer:So=>So.parentNode,title:z.createElement("div",null,z.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",z.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),z.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),z.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},z.createElement("img",{src:pr,alt:""})))),mo=kr=>z.createElement("div",{className:uo.mainSucceed},z.createElement("img",{src:Qn,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),z.createElement("div",{className:uo.tip},z.createElement(ni.Z,{getPopupContainer:So=>So.parentNode,title:z.createElement("div",null,z.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",z.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),z.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),z.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},z.createElement("img",{src:pr,alt:""}))),z.createElement("div",{className:uo.del,onClick:()=>zi(kr.name,kr.loaded==100)},z.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Eo=()=>z.createElement(z.Fragment,null,Fr==null?void 0:Fr.map((kr,So)=>z.createElement(z.Fragment,{key:So},kr.loaded==100?mo(kr):Ei(kr.loaded)))),Ra=()=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:Te})},Qi={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:kr=>{const li=kr.name.toLowerCase();return li&&li.indexOf(".avi")==-1&&li.indexOf(".flv")==-1&&li.indexOf(".f4v")==-1&&li.indexOf(".m4v")==-1&&li.indexOf(".mov")==-1&&li.indexOf(".mp4")==-1&&li.indexOf(".rmvb")==-1&&li.indexOf(".swf")==-1&&li.indexOf(".webm")==-1&&li.indexOf(".wmv")==-1?(pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):kr.size>1024*1024*1024?(pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Fr!=null&&Fr.find(fi=>fi.name===kr.name)?(pe.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},onBeginInitFile:kr=>{Ko([{name:kr.filename,loaded:0}])},onComplete:kr=>{Ko([{name:kr.filename,loaded:kr.percent,video_id:kr.id}])},onError:()=>{Ko([])},onProgress:kr=>{Ko([{name:kr.filename,loaded:kr.percent}])},chunkSize:1024*1024*2,options:{user_id:(En=qr==null?void 0:qr.userInfo)==null?void 0:En.user_id}},ui=Fr==null?void 0:Fr.length;return z.createElement("div",{className:uo.listForm},z.createElement("header",null,ur?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),z.createElement("section",{className:uo.scroll,id:"sss"},z.createElement("div",{className:uo.formWrap}," ",z.createElement(Ct.default,{form:Cn,scrollToFirstError:!0,layout:"vertical",onValuesChange:Fi,onFinish:fo},z.createElement(Ct.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},z.createElement(Ve.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((dn=Kt.name)==null?void 0:dn.length)||0}/60`})),z.createElement(Ct.default.Item,{name:"content",label:"\u5185\u5BB9:"},z.createElement(Vr.Z,{defaultValue:Kt.content||"",watch:!0})))),z.createElement("div",{className:uo.upload},ui?Eo():Xn())),z.createElement("div",{className:uo.btns},z.createElement(Mt.ZP,{onClick:Ra,type:"primary",ghost:!0},"\u5173\u95ED"),z.createElement(Mt.ZP,{loading:Yr,disabled:zn,onClick:()=>Cn.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Wn={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"},gr=ee(46303),so=Object.defineProperty,co=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,Ro=(Te,ze,Ke)=>ze in Te?so(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Fo=(Te,ze)=>{for(var Ke in ze||(ze={}))Jr.call(ze,Ke)&&Ro(Te,Ke,ze[Ke]);if(co)for(var Ke of co(ze))po.call(ze,Ke)&&Ro(Te,Ke,ze[Ke]);return Te};const zr=Te=>React.createElement("svg",Fo({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Te),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 Zo="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",ho=Object.defineProperty,qo=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,ya=Object.prototype.propertyIsEnumerable,ei=(Te,ze,Ke)=>ze in Te?ho(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ca=(Te,ze)=>{for(var Ke in ze||(ze={}))wi.call(ze,Ke)&&ei(Te,Ke,ze[Ke]);if(qo)for(var Ke of qo(ze))ya.call(ze,Ke)&&ei(Te,Ke,ze[Ke]);return Te};const Hi=Te=>React.createElement("svg",ca({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Te),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 _a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Xo=Object.defineProperty,zo=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,za=(Te,ze,Ke)=>ze in Te?Xo(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Qo=(Te,ze)=>{for(var Ke in ze||(ze={}))Si.call(ze,Ke)&&za(Te,Ke,ze[Ke]);if(zo)for(var Ke of zo(ze))xa.call(ze,Ke)&&za(Te,Ke,ze[Ke]);return Te};const ea=Te=>React.createElement("svg",Qo({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Te),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 ua="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Or={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"},fa=ee(71230),ha=ee(15746),ma={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"},aa=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())});const Ta=({id:Te,cb:ze})=>{const[Ke,ur]=(0,z.useState)("");return z.createElement("aside",{className:"mt10"},z.createElement(Vr.Z,{defaultValue:Ke,id:"writeForumsReviewId",onChange:En=>{ur(En)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(fa.Z,null,z.createElement(ha.Z,{flex:"1"}),z.createElement(ha.Z,null,z.createElement(Mt.ZP,{type:"primary",size:"middle",onClick:()=>aa(void 0,null,function*(){Ke===""?pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):ze(Te,Ke)})},"\u53D1\u9001"))))},da=({data:Te})=>{var ze;return z.createElement("div",{className:ma.thirdlyLevelDiscuss},z.createElement("span",{className:"c-grey-333"},z.createElement("span",{className:"font 14 c-light-primary"},(ze=Te==null?void 0:Te.author)==null?void 0:ze.name),"@",z.createElement("span",{className:"font 14 c-light-primary"},Te==null?void 0:Te.parent_name),":"),z.createElement(dt.Z,{value:Te==null?void 0:Te.content}))},pa=({data:Te,onReplyDiscuss:ze,thirdlyReply:Ke,setThirdlyReply:ur})=>{var En,dn,Cn,Kt;const yn=(0,Dn.eY)();return console.log(yn,"user"),z.createElement("div",{className:ma.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((En=Te==null?void 0:Te.author)==null?void 0:En.image_url)}),z.createElement("div",{className:ma.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333"},(dn=Te==null?void 0:Te.author)==null?void 0:dn.name),(yn==null?void 0:yn.login)!==((Cn=Te==null?void 0:Te.author)==null?void 0:Cn.login)&&z.createElement("span",{onClick:()=>ur(Te==null?void 0:Te.id),className:"c-grey-999 current",style:{float:"right"}},z.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),z.createElement("span",null,"\u56DE\u590D"))),z.createElement(dt.Z,{value:Te==null?void 0:Te.content}),(Kt=Te==null?void 0:Te.children)==null?void 0:Kt.map(zn=>z.createElement(da,{key:zn.id,data:zn})),Ke===(Te==null?void 0:Te.id)&&z.createElement("div",null,z.createElement(Ta,{id:Te==null?void 0:Te.id,cb:ze}),z.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>ur(null),className:"c-light-primary current"},z.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),z.createElement("div",{className:ma.line})))};var rs=({data:Te,onReplyDiscuss:ze,secondReply:Ke,setSecondReply:ur,thirdlyReply:En,setThirdlyReply:dn,onPlusDiscuss:Cn})=>{var Kt,yn,zn,bo;const[Yr,Oo]=(0,z.useState)(!1);return console.log(Te,"data"),z.createElement("div",{className:ma.discussItem},z.createElement("div",{className:ma.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((Kt=Te==null?void 0:Te.author)==null?void 0:Kt.image_url)}),z.createElement("div",{className:ma.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333 mr30"},(yn=Te==null?void 0:Te.author)==null?void 0:yn.name),z.createElement("span",{className:"c-grey-999"},Te==null?void 0:Te.time)),z.createElement(dt.Z,{value:Te==null?void 0:Te.content}),z.createElement("div",{className:ma.btns},z.createElement("div",{onClick:()=>Cn(Te==null?void 0:Te.id),className:Te!=null&&Te.user_praise?"c-light-primary":"c-grey-999"},z.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),z.createElement("span",null,Te==null?void 0:Te.praise_count)),z.createElement("div",{onClick:()=>{var Fr;((Fr=Te==null?void 0:Te.children)==null?void 0:Fr.length)!==0&&(ur(null),Oo(!Yr))},style:{color:Yr?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),z.createElement("span",null,Yr?"\u6536\u8D77\u8BC4\u8BBA":(zn=Te==null?void 0:Te.children)==null?void 0:zn.length)),z.createElement("div",{onClick:()=>{Oo(!1),ur(Ke===(Te==null?void 0:Te.id)?null:Te==null?void 0:Te.id)},style:{color:Ke===(Te==null?void 0:Te.id)?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-huifu3 mr3"}),z.createElement("span",null,Ke===(Te==null?void 0:Te.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Ke===(Te==null?void 0:Te.id)&&z.createElement(Ta,{id:Te==null?void 0:Te.id,cb:(Fr,Ko)=>{ze(Fr,Ko),Oo(!0)}}),Yr&&z.createElement("div",{className:ma.secondLevelDiscuss},(bo=Te==null?void 0:Te.children)==null?void 0:bo.map(Fr=>z.createElement(pa,{thirdlyReply:En,setThirdlyReply:dn,key:Fr.id,data:Fr,onReplyDiscuss:ze}))))))},Xi=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Pa=({identifier:Te,active:ze,onOk:Ke})=>{const[ur,En]=(0,z.useState)(""),[dn,Cn]=(0,z.useState)(1),[Kt,yn]=(0,z.useState)([]),[zn,bo]=(0,z.useState)(0),[Yr,Oo]=(0,z.useState)(null),[Fr,Ko]=(0,z.useState)(null);(0,z.useEffect)(()=>{qr(1),Cn(1)},[ze]);const qr=fo=>Xi(void 0,null,function*(){const zi=yield Ft({container_type:"QuestionSolutionArticle",container_identifier:ze,limit:5,page:fo});zi!=null&&zi.comments&&(yn((zi==null?void 0:zi.comments)||[]),Cn(fo),bo(zi==null?void 0:zi.disscuss_count))}),ci=()=>Xi(void 0,null,function*(){if(ur===""){pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const fo=yield wo({comments:{content:ur},container_type:"QuestionSolutionArticle",container_identifier:ze});fo!=null&&fo.discuss&&(En(""),qr(dn),Ke())}),xo=(fo,zi,Xn)=>Xi(void 0,null,function*(){const Ei=yield ar({container_type:"QuestionSolutionArticle",container_identifier:ze,comments:{content:zi,parent_id:fo}});Oo(null),Ko(null),qr(dn)}),si=fo=>Xi(void 0,null,function*(){const zi=yield nr(fo);qr(dn)}),Fi=fo=>{Cn(fo),qr(fo)};return z.createElement("div",{className:Or.discuss},z.createElement("aside",{className:Or.reply,style:{borderWidth:zn?1:0}},z.createElement(Vr.Z,{defaultValue:ur,id:"writeForumsReviewId",onChange:fo=>{En(fo)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(fa.Z,null,z.createElement(ha.Z,{flex:"1"}),z.createElement(ha.Z,null,z.createElement(Mt.ZP,{type:"primary",size:"middle",onClick:()=>ci()},"\u53D1\u9001")))),Kt==null?void 0:Kt.map(fo=>z.createElement(rs,{secondReply:Yr,setSecondReply:Oo,thirdlyReply:Fr,setThirdlyReply:Ko,key:fo.id,data:fo,onReplyDiscuss:xo,onPlusDiscuss:si})),z.createElement(Gt.Z,{className:Or.pagination,showTotal:fo=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},fo),"\u6761\u6570\u636E"),current:dn,onChange:Fi,total:zn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},as=ee(6104),As=Object.defineProperty,Ds=Object.getOwnPropertySymbols,Fs=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,ts=(Te,ze,Ke)=>ze in Te?As(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ns=(Te,ze)=>{for(var Ke in ze||(ze={}))Fs.call(ze,Ke)&&ts(Te,Ke,ze[Ke]);if(Ds)for(var Ke of Ds(ze))hs.call(ze,Ke)&&ts(Te,Ke,ze[Ke]);return Te},ms=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),el=({active:Te,identifier:ze,onAssist:Ke,onEdit:ur,onArticlesSkip:En,onClose:dn,onOk:Cn,onDelete:Kt,detailsIndex:yn,btnShowStatus:zn})=>{var bo,Yr,Oo,Fr,Ko,qr,ci,xo,si,Fi;const[fo,zi]=(0,z.useState)(!0),[Xn,Ei]=(0,z.useState)({});(0,z.useEffect)(()=>{Te&&mo()},[Te,yn]);const mo=(ui=!0)=>ms(void 0,null,function*(){ui&&zi(!0);const kr=yield(0,ce.wO)(ze,{active:Te});(kr==null?void 0:kr.status)===0&&Ei((kr==null?void 0:kr.data)||{}),zi(!1)}),Eo=ui=>ms(void 0,null,function*(){const kr=yield(0,ce.qe)(ze,ns({active:Te},ui));(kr==null?void 0:kr.status)===0&&(mo(!1),Cn())}),Ra=ui=>ms(void 0,null,function*(){(yield(0,ce.Rg)(ze,{active:ui==null?void 0:ui.id})).status===0&&(mo(!1),Cn())}),yr=ui=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>Kt(ui)})},Qi=()=>{mo(!1),Cn()};return z.createElement("div",{className:Wn.listDetails},z.createElement(gr.Z,{className:"pt20 pl20 pr20",loading:fo,active:!0,paragraph:{rows:5}},z.createElement("div",{className:Wn.head},z.createElement("div",{className:Wn.name},z.createElement("div",{title:Xn==null?void 0:Xn.name,className:Wn.title},Xn==null?void 0:Xn.name),(Xn==null?void 0:Xn.is_authority)&&z.createElement("div",{className:Wn.b},"\u5B98\u65B9"),(Xn==null?void 0:Xn.is_excellent)&&z.createElement("div",{className:Wn.a},"\u7CBE\u9009")),z.createElement("div",{className:Wn.tag},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(Xn==null?void 0:Xn.image_url)}),z.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Xn==null?void 0:Xn.username),z.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",bn()(Xn==null?void 0:Xn.created_at).format("YYYY-MM-DD")),z.createElement("span",null,z.createElement("img",{src:yo}),z.createElement("span",null,Xn==null?void 0:Xn.praises_count)),z.createElement("span",null,z.createElement("img",{src:Da}),z.createElement("span",null,Xn==null?void 0:Xn.discusses_count)),z.createElement("span",null,z.createElement("img",{src:Dr}),z.createElement("span",null,Xn==null?void 0:Xn.viewed_count)),z.createElement("div",{className:Wn.btn},((0,Dn.Ny)()||(Xn==null?void 0:Xn.is_self))&&z.createElement(z.Fragment,null,z.createElement(Mt.ZP,{onClick:()=>yr(Xn),type:"primary",ghost:!0},"\u5220\u9664"),z.createElement(Mt.ZP,{onClick:()=>ur(Xn),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Dn.Ny)()&&z.createElement(Mt.ZP,{onClick:()=>Eo({is_authority:!(Xn!=null&&Xn.is_authority)}),type:"primary"},z.createElement("img",{src:_a}),Xn!=null&&Xn.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Dn.Ny)()&&z.createElement(Mt.ZP,{onClick:()=>Eo({is_excellent:!(Xn!=null&&Xn.is_excellent)}),type:"primary"},z.createElement("img",{src:Zo}),Xn!=null&&Xn.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),z.createElement("div",{className:Wn.scroll},((Yr=(bo=Xn==null?void 0:Xn.videos)==null?void 0:bo[0])==null?void 0:Yr.id)&&z.createElement("div",{className:Wn.video},z.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Fr=(Oo=Xn==null?void 0:Xn.videos)==null?void 0:Oo[0])!=null&&Fr.transcoded)},z.createElement(as.Z,{poster:(qr=(Ko=Xn==null?void 0:Xn.videos)==null?void 0:Ko[0])==null?void 0:qr.cover_url,src:((xo=(ci=Xn==null?void 0:Xn.videos)==null?void 0:ci[0])==null?void 0:xo.play_url)||"",videoId:(Fi=(si=Xn==null?void 0:Xn.videos)==null?void 0:si[0])==null?void 0:Fi.id,logWatchHistory:()=>{}}))),z.createElement(dt.Z,{className:Wn.html,value:(Xn==null?void 0:Xn.content)||""}),z.createElement("div",{onClick:()=>Ra(Xn),className:Wn.g},z.createElement("img",{className:"mr10",src:(Xn!=null&&Xn.user_liker,ua)}),z.createElement("span",null,Xn==null?void 0:Xn.praises_count)),z.createElement(Pa,{onOk:Qi,active:Te,identifier:ze})),z.createElement("div",{className:Wn.btns},z.createElement(Mt.ZP,{onClick:()=>dn(),type:"primary",ghost:!0},"\u5173\u95ED"),zn[0]&&z.createElement(Mt.ZP,{onClick:ui=>En(ui,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),zn[1]&&z.createElement(Mt.ZP,{onClick:ui=>En(ui,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},tl=Object.defineProperty,Rs=Object.getOwnPropertySymbols,Hs=Object.prototype.hasOwnProperty,nl=Object.prototype.propertyIsEnumerable,ks=(Te,ze,Ke)=>ze in Te?tl(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ns=(Te,ze)=>{for(var Ke in ze||(ze={}))Hs.call(ze,Ke)&&ks(Te,Ke,ze[Ke]);if(Rs)for(var Ke of Rs(ze))nl.call(ze,Ke)&&ks(Te,Ke,ze[Ke]);return Te};const js=Te=>React.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Te),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 $s="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Vs=ee(28575),Oe=ee(33463),Xe=Object.defineProperty,Ye=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,rn=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,An=(Te,ze,Ke)=>ze in Te?Xe(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,un=(Te,ze)=>{for(var Ke in ze||(ze={}))rn.call(ze,Ke)&&An(Te,Ke,ze[Ke]);if(It)for(var Ke of It(ze))an.call(ze,Ke)&&An(Te,Ke,ze[Ke]);return Te},Jn=(Te,ze)=>Ye(Te,vt(ze)),Cr=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Br=({identifier:Te,tabStatus:ze,setFilterListTotal:Ke,setListStatus:ur})=>{const En={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[dn,Cn]=(0,z.useState)(un({},En));const[Kt,yn]=(0,z.useState)(!1),[zn,bo]=(0,z.useState)(0),[Yr,Oo]=(0,z.useState)(1),[Fr,Ko]=(0,z.useState)(null),[qr,ci]=(0,z.useState)([]),[xo,si]=(0,z.useState)([!0,!0]),[Fi,fo]=(0,z.useState)(0),zi=(0,z.useRef)(null);(0,z.useEffect)(()=>{So()},[ze]),(0,z.useEffect)(()=>{Xn()},[Fr]),(0,z.useEffect)(()=>{mo(un({},En)),So()},[Te]),(0,z.useEffect)(()=>(window.addEventListener("resize",Ei),ur(Fi),()=>{window.removeEventListener("resize",Ei)}),[Fi]);const Xn=()=>Cr(void 0,null,function*(){if(!Fr){si([!0,!0]);return}const eo=[!0,!0],Vi=qr==null?void 0:qr.findIndex(Qa=>Qa.id===Fr);Vi===0&&dn.page===1&&(eo[0]=!1),(dn.page-1)*dn.limit+(Vi+1)===dn.total&&(eo[1]=!1),si(eo)}),Ei=()=>{var eo;if(Fi){const Vi=window.innerWidth-((eo=zi.current)==null?void 0:eo.clientWidth);bo(Vi)}},mo=eo=>Cr(void 0,null,function*(){var Vi,Qa,Is;yn(!0);const Ia=yield(0,ce.WH)(Te,eo);return(Ia==null?void 0:Ia.status)===0&&(ci(((Vi=Ia==null?void 0:Ia.data)==null?void 0:Vi.articles)||[]),Cn(Jn(un({},eo),{total:(Qa=Ia==null?void 0:Ia.data)==null?void 0:Qa.articles_count})),Ke((Is=Ia==null?void 0:Ia.data)==null?void 0:Is.articles_count)),yn(!1),Ia}),Eo=()=>{(dn==null?void 0:dn.sort_direction)===null?dn.sort_direction="asc":(dn==null?void 0:dn.sort_direction)==="asc"?dn.sort_direction="desc":(dn==null?void 0:dn.sort_direction)==="desc"&&(dn.sort_direction=null),dn.page=1,So(),Cn(un({},dn)),mo(dn)},Ra=()=>{dn.page=1,dn.search=dn==null?void 0:dn.save_search,So(),Cn(un({},dn)),mo(dn)},yr=()=>{var eo;const Vi=document.getElementsByClassName("btn-resize");Vi[0].style.visibility="hidden";const Qa=window.innerWidth-((eo=zi.current)==null?void 0:eo.clientWidth);bo(Qa)},Qi=()=>{yr(),fo(1)},ui=eo=>{yr(),Ko(eo==null?void 0:eo.id),fo(3)},kr=eo=>{yr(),Ko(eo==null?void 0:eo.id),fo(2)},So=()=>{const eo=document.getElementsByClassName("btn-resize");eo[0].style.visibility="visible",bo(0),fo(0),Ko(null)},li=eo=>{fo(3),Ko(eo),dn.page=1,Cn(un({},dn)),mo(dn)},fi=eo=>{fo(3),Ko(eo),Cn(un({},dn)),mo(dn)},zs=eo=>{Cn(un({},dn)),mo(dn)},Os=eo=>Cr(void 0,null,function*(){(yield(0,ce.Rg)(Te,{active:eo==null?void 0:eo.id})).status===0&&(mo(dn),Oo(Yr+1))}),Cs=eo=>Cr(void 0,null,function*(){(yield(0,ce.rL)(Te,{active:eo==null?void 0:eo.id})).status===0&&(mo(dn),Oo(Yr+1))}),Us=eo=>Cr(void 0,null,function*(){(yield(0,ce.de)(Te,{active:eo==null?void 0:eo.id})).status===0&&(So(),mo(dn))}),Xa=eo=>{dn.page=eo,Cn(un({},dn)),mo(dn)},ys=(eo,Vi)=>Cr(void 0,null,function*(){var Qa,Is,Ia,ls;const Ha=qr==null?void 0:qr.findIndex(Sa=>Sa.id===Fr);if(console.log(Ha,Vi,22),Vi==="prev"){if(Ha===void 0){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Ha===0){if(dn.page===1){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(dn.page!==1){dn.page=dn.page-1,Cn(un({},dn));const Sa=yield mo(dn);if((Sa==null?void 0:Sa.status)===0){const Ee=(Ia=Sa==null?void 0:Sa.data)==null?void 0:Ia.articles[((Is=(Qa=Sa==null?void 0:Sa.data)==null?void 0:Qa.articles)==null?void 0:Is.length)-1];Ko(Ee==null?void 0:Ee.id),console.log(eo.target,555)}}}else{const Sa=qr[Ha-1];Ko(Sa==null?void 0:Sa.id)}}if(Vi==="next"){if(Ha===void 0){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((dn.page-1)*dn.limit+(Ha+1)===dn.total){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Ha+1===dn.limit){dn.page=dn.page+1,Cn(un({},dn));const Sa=yield mo(dn);if((Sa==null?void 0:Sa.status)===0){const Ee=(ls=Sa==null?void 0:Sa.data)==null?void 0:ls.articles[0];Ko(Ee==null?void 0:Ee.id)}}else{const Sa=qr[Ha+1];Ko(Sa==null?void 0:Sa.id)}}});return z.createElement("div",{className:lt.wrap,ref:zi},z.createElement("div",{className:lt.head},z.createElement("div",{className:lt.sort,onClick:Eo},z.createElement("span",null,"\u6700\u65B0"),z.createElement("aside",null,z.createElement(Vs.Z,{style:{color:(dn==null?void 0:dn.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),z.createElement(Oe.Z,{style:{color:(dn==null?void 0:dn.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),z.createElement(Ve.default.Search,{value:dn.save_search,className:lt["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:eo=>{dn.save_search=eo.target.value,Cn(un({},dn))},onSearch:Ra}),z.createElement("div",{onClick:Qi,className:lt.btn},z.createElement("img",{src:$s}),"\u5199\u9898\u89E3")),z.createElement("div",{className:lt.listWarp},z.createElement(de.Z,{spinning:Kt,className:"mt20"},qr==null?void 0:qr.map((eo,Vi)=>{let Qa=!0;return Vi+1===qr.length&&Vi!==0&&(Qa=!1),z.createElement(_o,{active:Fr,key:eo.id,data:eo,showLine:Qa,onClick:ui,onAssist:Os,onHide:Cs})}),(qr==null?void 0:qr.length)===0&&z.createElement(Je.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),z.createElement(Gt.Z,{className:lt.pagination,showTotal:eo=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},eo),"\u6761\u6570\u636E"),total:dn.total,showSizeChanger:!1,current:dn==null?void 0:dn.page,onChange:Xa,hideOnSinglePage:!0,showQuickJumper:!0}),Fi>0&&z.createElement("div",{className:lt.fixedRight,style:{width:zn}},Fi===1&&z.createElement(On,{identifier:Te,onClose:So,onOk:li}),Fi===2&&z.createElement(On,{active:Fr,identifier:Te,onClose:So,onOk:fi}),Fi===3&&z.createElement(el,{btnShowStatus:xo,onArticlesSkip:ys,detailsIndex:Yr,active:Fr,identifier:Te,onClose:So,onOk:zs,onEdit:kr,onAssist:Os,onDelete:Us})))},Sr={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"},no=Object.defineProperty,ri=Object.defineProperties,Uo=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,Wo=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,$r=(Te,ze,Ke)=>ze in Te?no(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,Ri=(Te,ze)=>{for(var Ke in ze||(ze={}))Wo.call(ze,Ke)&&$r(Te,Ke,ze[Ke]);if(oi)for(var Ke of oi(ze))No.call(ze,Ke)&&$r(Te,Ke,ze[Ke]);return Te},$i=(Te,ze)=>ri(Te,Uo(ze)),Gi=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())}),Ga=({visible:Te,onVisible:ze,value:Ke,onChange:ur,setIndex:En})=>{var dn;const Cn={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[Kt,yn]=(0,z.useState)(Cn);const[zn,bo]=(0,z.useState)([]),[Yr,Oo]=(0,z.useState)([]),[Fr,Ko]=(0,z.useState)(!1),qr=(0,z.useRef)([]),ci=(0,z.useRef)(null),xo=(0,ve.useParams)();(0,z.useEffect)(()=>(xo!=null&&xo.id&&(ci.current=setInterval(()=>{si(30)},3e4)),()=>{clearInterval(ci.current)}),[]);const si=yr=>Gi(void 0,null,function*(){const Qi=yield(0,ce.uc)(xo==null?void 0:xo.id,{practice_time:yr})});(0,z.useEffect)(()=>{mo(Kt),Xn()},[]),(0,z.useEffect)(()=>(window.addEventListener("click",fo),()=>{window.removeEventListener("click",fo)}),[xo==null?void 0:xo.save_identifier,Te]),(0,z.useEffect)(()=>{const yr=qr.current.findIndex(li=>li.identifier===(xo==null?void 0:xo.save_identifier)),Qi=qr.current[yr-1],ui=qr.current[yr+1],kr=document.getElementById("oj-prev"),So=document.getElementById("oj-next");Qi?kr.style.display="block":kr.style.display="none",ui?So.style.display="block":So.style.display="none"},[xo==null?void 0:xo.save_identifier,qr.current]);const Fi=(yr,Qi)=>{if(yr.id===Qi)return yr;for(let ui=0,kr=yr;kr=kr.parentNode;ui++){if(kr.id===Qi)return kr;if(kr==document.documentElement)return!1}},fo=yr=>Gi(void 0,null,function*(){!Fi(yr.target,"oj-drawer")&&Te&&ze(!1);const Qi=qr.current.findIndex(So=>So.identifier===(xo==null?void 0:xo.save_identifier)),ui=qr.current[Qi-1],kr=qr.current[Qi+1];if(yr.target.id==="oj-prev"){if(!ui||Qi===-1){pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}yr.target.style.pointerEvents="none",yr.target.style.cursor="not-allowed",yield Eo(ui==null?void 0:ui.identifier),En("0"),setTimeout(()=>{yr.target.style.pointerEvents="auto",yr.target.style.cursor="pointer"},400)}if(yr.target.id==="oj-next"||yr.target.id==="oj-modal-next"){if(!kr||Qi===-1){pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}yr.target.style.pointerEvents="none",yr.target.style.cursor="not-allowed",yield Eo(kr==null?void 0:kr.identifier),En("0"),setTimeout(()=>{yr.target.style.pointerEvents="auto",yr.target.style.cursor="pointer"},400)}});(0,z.useEffect)(()=>{ur(xo==null?void 0:xo.save_identifier);const yr=Yr.findIndex(Qi=>Qi.some(ui=>ui.identifier===(xo==null?void 0:xo.save_identifier)));yn(yr===-1?$i(Ri({},Kt),{page:1}):$i(Ri({},Kt),{page:yr+1}))},[xo==null?void 0:xo.save_identifier,Yr]);const zi=yr=>{Kt.page=1,Kt.tag_discipline_id=yr,yn(Ri({},Kt)),mo(Kt)},Xn=()=>Gi(void 0,null,function*(){const yr=yield(0,lr.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});bo(yr.tag_disciplines||[])}),Ei=yr=>{Kt.page=1,Kt.difficulty=typeof yr=="number"?yr:null,yn(Ri({},Kt)),mo(Kt)},mo=yr=>Gi(void 0,null,function*(){var Qi,ui;Ko(!0);const kr=yield(0,ce.KC)(yr);if(kr!=null&&kr.practices_list){for(var So=(Qi=kr==null?void 0:kr.practices_list)==null?void 0:Qi.length,li=[],fi=0;fiGi(void 0,null,function*(){const ui=yield(0,lr.ZP)(`/api/practices/${yr}/start`,{method:"get"});(ui==null?void 0:ui.status)===0&&ve.history.push(`/problems/${ui==null?void 0:ui.identifier}/oj/${yr}`)}),Ra=yr=>{Kt.page=yr,yn(Ri({},Kt))};return z.createElement("div",{className:Sr.wrap,id:"oj-drawer",style:{left:Te?0:-700}},z.createElement("div",{className:Sr.head},z.createElement("div",{className:Sr.title},"\u9898\u76EE\u5217\u8868"),z.createElement(Ve.default.Search,{value:Kt==null?void 0:Kt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:yr=>{Kt.save_search=yr.target.value,yn(Ri({},Kt))},onSearch:()=>{Kt.page=1,Kt.search=Kt.save_search,yn(Ri({},Kt)),mo(Kt)}}),z.createElement(le.default,{value:Kt==null?void 0:Kt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:yr=>yr.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:zi},zn.map(yr=>z.createElement(le.default.Option,{key:yr.id,value:yr.id},yr.name))),z.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:yr=>yr.parentNode,value:Kt==null?void 0:Kt.difficulty,onChange:Ei},z.createElement(le.default.Option,{value:1},"\u7B80\u5355"),z.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),z.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),z.createElement("div",{className:Sr.content},z.createElement(de.Z,{spinning:Fr},(dn=Yr==null?void 0:Yr[Kt.page-1])==null?void 0:dn.map(yr=>z.createElement("div",{key:yr.identifier,className:Sr.list,onClick:Qi=>Eo(yr.identifier,Qi)},z.createElement("i",{style:{visibility:Ke===yr.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),z.createElement("span",{style:{fontWeight:Ke===yr.identifier?"bold":400,color:Ke===yr.identifier?"#ffffff":"#bac4cd"},title:yr==null?void 0:yr.name},yr.name),(yr==null?void 0:yr.difficulty)===1&&z.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(yr==null?void 0:yr.difficulty)===2&&z.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(yr==null?void 0:yr.difficulty)===3&&z.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),z.createElement("div",{className:Sr.footer},z.createElement(Gt.Z,{showTotal:yr=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},yr),"\u6761\u6570\u636E"),total:Kt.total,pageSize:Kt==null?void 0:Kt.per_page,current:Kt==null?void 0:Kt.page,showSizeChanger:!1,onChange:Ra,showQuickJumper:!0,hideOnSinglePage:!0})))},Zi=({hack:Te,onTriggerPraise:ze,topicId:Ke,page:ur,onPageChange:En,user:dn,submitRecords:Cn,submitting:Kt,submitResult:yn})=>{const[zn]=(0,ve.useSearchParams)(),bo=(0,ve.useLocation)(),[Yr,Oo]=(0,z.useState)(zn.get("tab")||"0"),[Fr,Ko]=(0,z.useState)(0),[qr,ci]=(0,z.useState)(0),[xo,si]=(0,z.useState)(0),[Fi,fo]=(0,z.useState)(),[zi,Xn]=(0,z.useState)(!1);function Ei(Eo){const Ra=Eo.target.id;if(Yr==="3"&&Ra!==Yr&&(qr===1||qr===2)){ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:()=>{Oo(Ra)}});return}Oo(Ra)}(0,z.useEffect)(()=>cn.Z.subscribe("to-commit-info",()=>{Oo("1")}),[]);function mo(){Oo("2")}return z.createElement("div",{className:ct["left-panel"]},z.createElement("ul",{className:`${ct["s-navs"]} ${ct["bg-white"]} ${ct.b1}`},z.createElement("li",{className:"mr40 current"},z.createElement("img",{onClick:()=>Xn(!0),src:jn})),z.createElement("li",{className:ct["oj-mr"]},z.createElement("a",{className:Yr==="0"?ct.active:"",id:"0",onClick:Ei},"\u4EFB\u52A1\u63CF\u8FF0")),z.createElement("li",{className:ct["oj-mr"]},z.createElement("a",{className:Yr==="3"?ct.active:"",id:"3",onClick:Ei},"\u9898\u89E3",xo?`(${xo})`:"")),z.createElement("li",{className:ct["oj-mr"]},z.createElement("a",{className:Yr==="2"?ct.active:"",id:"2",onClick:Ei},"\u8BC4\u8BBA",Fr?`(${Fr})`:"")),z.createElement("li",null,z.createElement("a",{className:Yr==="1"?ct.active:"",id:"1",onClick:Ei},"\u63D0\u4EA4\u8BB0\u5F55"))),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},z.createElement(rt,{hack:Te,onTriggerPraise:ze,toDiscuss:mo})),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="1"?"":"hide"}`},Cn!=null&&Cn.records_count?z.createElement(qe,{page:ur,onPageChange:En,topicId:Ke,submitting:Kt,submitRecords:Cn,submitResult:yn}):z.createElement(Je.Z,null)),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="2"?"":"hide"}`,style:{padding:0}},z.createElement(nt,{setDiscussTotal:Ko,user:dn,identifier:Te.identifier,hack:Te,onTriggerPraise:ze})),z.createElement("div",{className:`${ct["tab-panel-body"]} ${Yr==="3"?"":"hide"}`,style:{padding:0}},z.createElement(Br,{setListStatus:ci,setFilterListTotal:si,tabStatus:Yr,identifier:Te.identifier})),z.createElement(Ga,{visible:zi,setIndex:Oo,onVisible:Eo=>Xn(Eo),value:Fi,onChange:Eo=>fo(Eo)}))},yi=ee(88508),va=ee(62522),Ma=ee(22707),ta=ee(8861),gi=ee(96486),Wi=ee.n(gi),ko=ee(74855),Er=ee(67294),ji=Object.defineProperty,Ua=Object.defineProperties,ss=Object.getOwnPropertyDescriptors,Oa=Object.getOwnPropertySymbols,us=Object.prototype.hasOwnProperty,ds=Object.prototype.propertyIsEnumerable,Bi=(Te,ze,Ke)=>ze in Te?ji(Te,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Te[ze]=Ke,ai=(Te,ze)=>{for(var Ke in ze||(ze={}))us.call(ze,Ke)&&Bi(Te,Ke,ze[Ke]);if(Oa)for(var Ke of Oa(ze))ds.call(ze,Ke)&&Bi(Te,Ke,ze[Ke]);return Te},ii=(Te,ze)=>Ua(Te,ss(ze)),Ki=(Te,ze)=>{var Ke={};for(var ur in Te)us.call(Te,ur)&&ze.indexOf(ur)<0&&(Ke[ur]=Te[ur]);if(Te!=null&&Oa)for(var ur of Oa(Te))ze.indexOf(ur)<0&&ds.call(Te,ur)&&(Ke[ur]=Te[ur]);return Ke},Ni=(Te,ze,Ke)=>new Promise((ur,En)=>{var dn=yn=>{try{Kt(Ke.next(yn))}catch(zn){En(zn)}},Cn=yn=>{try{Kt(Ke.throw(yn))}catch(zn){En(zn)}},Kt=yn=>yn.done?ur(yn.value):Promise.resolve(yn.value).then(dn,Cn);Kt((Ke=Ke.apply(Te,ze)).next())});const{Countdown:gs}=fe.default,Ts={Java:"java",C:"c",Python:"py","C++":"c"};var Gs=(Te=>(Te[Te.SET_LOADING=0]="SET_LOADING",Te[Te.GET_DATA=1]="GET_DATA",Te[Te.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Te[Te.SET_DATA=3]="SET_DATA",Te[Te.SET_DEBUGING=4]="SET_DEBUGING",Te[Te.SET_SUBMITING=5]="SET_SUBMITING",Te[Te.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Te[Te.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Te[Te.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Te[Te.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Te[Te.SET_PAGE=10]="SET_PAGE",Te[Te.GET_LANGUAGE=11]="GET_LANGUAGE",Te[Te.GET_DRAWER=12]="GET_DRAWER",Te))(Gs||{});function Za(){return new Date().getTime()}const os={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 Es(Te,ze){switch(ze.type){case 1:return ai(ai({},Te),ze.payload);case 3:return ii(ai({},Te),{data:ze.payload});case 0:return ii(ai({},Te),{loading:ze.payload});case 11:return ii(ai({},Te),{languageList:ze.payload});case 12:return ii(ai({},Te),{drawerData:ze.payload});case 9:return ii(ai({},Te),{showNote:ze.payload});case 4:return ii(ai({},Te),{debuging:ze.payload});case 5:return ii(ai({},Te),{submitting:ze.payload});case 2:return ii(ai({},Te),{submitRecords:ze.payload});case 10:return ii(ai({},Te),{submitRecordPage:ze.payload});case 6:return ii(ai({},Te),{executingMessage:ze.payload});case 7:return ai(ai({},Te),ze.payload);case 8:return ai(ai({},Te),ze.payload);default:throw new Error}}var is=({children:Te})=>{var ze,Ke,ur,En;const[dn,Cn]=(0,z.useReducer)(Es,os),{id:Kt}=(0,ve.useParams)(),yn=(0,ve.useLocation)(),[zn]=(0,ve.useSearchParams)(),{languageValue:bo,languageList:Yr,loading:Oo,data:Fr,debugResult:Ko,submitResult:qr,submitRecords:ci,submitRecordPage:xo,showNote:si,debuging:Fi,submitting:fo,executingMessage:zi}=dn,[Xn,Ei]=(0,z.useState)("#FFF"),[mo,Eo]=(0,z.useState)(null),[Ra,yr]=(0,z.useState)({}),[Qi,ui]=(0,z.useState)(!1),kr=(0,z.useRef)(null),So=(0,z.useRef)(null),li=Fr==null?void 0:Fr.user,fi=Fr==null?void 0:Fr.hack;(0,z.useEffect)(()=>((0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,ve.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,z.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,z.useEffect)(()=>{var je;if(Qi){const Ze=document.getElementById("oj-next"),ot=document.getElementById("oj-modal-next");((je=Ze==null?void 0:Ze.style)==null?void 0:je.display)==="none"?ot.style.display="none":ot.style.display="block"}},[Qi]),(0,z.useEffect)(()=>{function je(){return Ni(this,null,function*(){var Ze,ot,ht;const st=yield(0,ce.fu)(Kt);if(st.status===401)document.location.href="/user/login";else{st.hack=st.practice,st.hack.code=De.Base64.decode((Ze=st==null?void 0:st.hack)==null?void 0:Ze.code);const bt=`${li==null?void 0:li.login}-language`;localStorage.getItem(bt)&&(st.hack.language=localStorage.getItem(bt)),So.current=Wi().cloneDeep(st),So.current.language=(ot=st==null?void 0:st.hack)==null?void 0:ot.language,Cn({type:1,payload:{loading:!1,data:st}}),Cn({type:8,payload:{languageValue:(ht=st==null?void 0:st.hack)==null?void 0:ht.language}})}})}Kt&&je()},[Kt]),(0,z.useEffect)(()=>{Cn({type:8,payload:{debugResult:void 0}}),Cs(),ui(!1)},[Kt]),(0,z.useEffect)(()=>{clearTimeout(kr.current)},[Kt]),(0,z.useEffect)(()=>{Os()},[Kt,xo]);const zs=()=>{window.parent.postMessage("backExercise","*")};function Os(){return Ni(this,null,function*(){try{const je=yield(0,ce.zO)(Kt,{limit:15,page:xo});Cn({type:2,payload:je})}catch(je){console.log(je)}})}function Cs(){return Ni(this,null,function*(){try{const je=yield(0,ce.dd)(Kt);Cn({type:11,payload:je==null?void 0:je.data})}catch(je){console.log(je)}})}function Us(je){Cn({type:10,payload:je})}function Xa(je){return Ni(this,null,function*(){var Ze,ot,ht;const st=((ht=(ot=(Ze=window==null?void 0:window.location)==null?void 0:Ze.pathname)==null?void 0:ot.split("/"))==null?void 0:ht[2])||Kt;return yield(0,ce.n4)(st,je||{code:De.Base64.encode(fi.code),language:bo})})}function ys(){return Ni(this,null,function*(){var je;if(!fi.code||((je=fi.code)==null?void 0:je.trim())===""){pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}if(!fo){Cn({type:5,payload:!0});try{if(cn.Z.publish("to-commit-info"),(yield Xa()).status===0){let xt=function(){return Ni(this,null,function*(){const{status:qt,data:Xt}=yield(0,ce.rX)(Kt,"submit"),kn=Za()-Bt>(st*bt+3)*1e3;if(qt!==0&&!kn&&setTimeout(xt,1e3),kn){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),Cn({type:5,payload:!1});return}if(qt===0){Xt.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Mn=yield(0,ce.zO)(Kt,{limit:15,page:xo});Cn({type:8,payload:ii(ai({},dn),{submitResult:Xt,submitting:!1,submitRecords:Mn})}),(Xt==null?void 0:Xt.status)===0&&ui(!0)}})},ot={};const ht=yield(0,ce.bM)(Kt,ot);if(ht.status===-1&&zn.get("exercisesId")){window.parent.location.href=`/classrooms/${zn.get("coursesId")}/exercise/${zn.get("exercisesId")}/detail`;return}const{time_limit:st,test_case_size:bt}=fi,Bt=Za();(ht==null?void 0:ht.status)>-1?xt():Cn({type:4,payload:!1})}}catch(Ze){Cn({type:5,payload:!1})}}})}function eo(){return Ni(this,null,function*(){var je;if(!fi.code||((je=fi.code)==null?void 0:je.trim())===""){pe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}dn.debuging=!0,Cn({type:4,payload:!0});try{if((yield Xa()).status===0){let Bt=function(){return Ni(this,null,function*(){const{status:xt,message:qt,data:Xt}=yield(0,ce.rX)(Kt,"debug"),kn=Za()-bt>(ot+3)*1e3;if(xt!==0&&!kn&&(Cn({type:6,payload:qt}),setTimeout(Bt,1e3)),kn){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Cn({type:4,payload:!1});return}xt===0&&(Cn({type:4,payload:!1}),Xt.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),Cn({type:7,payload:ii(ai({},dn),{debugResult:Xt,debuging:!1})}))})};const{time_limit:ot}=fi;let ht={input:encodeURIComponent(Fr.test_case.input)};const st=yield(0,ce.MU)(Kt,ht);if(st.status===-1&&zn.get("exercisesId")){window.parent.location.href=`/classrooms/${zn.get("coursesId")}/exercise/${zn.get("exercisesId")}/detail`;return}const bt=Za();(st==null?void 0:st.status)>-1?Bt():Cn({type:4,payload:!1})}else Cn({type:4,payload:!1})}catch(Ze){console.log(Ze)}finally{}})}function Vi(je){var Ze;clearTimeout(kr.current),kr.current=setTimeout(()=>{var ot;Xa({code:De.Base64.encode(je),language:(ot=So==null?void 0:So.current)==null?void 0:ot.language})},2e3),Cn({type:3,payload:ii(ai({},So==null?void 0:So.current),{hack:ii(ai({},(Ze=So==null?void 0:So.current)==null?void 0:Ze.hack),{code:je})})})}function Qa(je){let Ze=je.target.value;Cn({type:3,payload:ii(ai({},Fr),{test_case:{input:Ze}})})}const Is=je=>Ni(void 0,null,function*(){var Ze;if(Cn({type:0,payload:!0}),(yield Xa()).status===0){Cn({type:8,payload:{languageValue:je}}),So.current.language=je;const ht=`${li==null?void 0:li.login}-language`;localStorage.setItem(ht,je);const st=yield(0,ce.dd)(Kt);if(st.status===0){const bt=(Ze=st==null?void 0:st.data)==null?void 0:Ze.find(Bt=>Bt.language===je);Vi(De.Base64.decode(bt.code))}setTimeout(()=>{Cn({type:0,payload:!1})},300)}});function Ia(){return Ni(this,null,function*(){try{const je=yield(0,ce.H7)(Kt,{language:bo});je.status===401?ve.history.replace("/login",{from:yn.pathname}):(Vi(De.Base64.decode(je.code)),Cs())}catch(je){console.log(je)}})}function ls(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Er.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Er.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return Ni(this,null,function*(){const je=yield(0,ce.fi)(Kt,{language:bo});je.status===401?ve.history.replace("/login",{from:yn.pathname}):Vi(De.Base64.decode(je.code))})}})}function Ha(){Cn({type:9,payload:!0})}function Sa(){Cn({type:9,payload:!1})}function Ee(je){return Ni(this,null,function*(){yield(0,ce.MK)(Kt,je),Cn({type:1,payload:{showNote:!1,data:ii(ai({},Fr),{hack:ii(ai({},fi),{notes:je.notes})})}})})}const we={input:(ze=Fr==null?void 0:Fr.test_case)==null?void 0:ze.input,is_file:(Ke=Fr==null?void 0:Fr.test_case)==null?void 0:Ke.is_file,language:((ur=So.current)==null?void 0:ur.language)||(fi==null?void 0:fi.language),code:fi==null?void 0:fi.code,title:"main."+Ts[fi==null?void 0:fi.language],modify_code:fi==null?void 0:fi.modify_code,notes:fi==null?void 0:fi.notes,debugResult:Ko,debuging:Fi,submitting:fo,executingMessage:zi,id:Kt,languageValue:bo,languageList:Yr,onChangeLanguage:Is,onCancelNote:Sa,onAddNote:Ee,showNote:si,onShowNote:Ha,onSubmitCode:ys,onChangeCode:Vi,onChangeInput:Qa,onDebugCode:eo,onResetCode:Ia,onSyncCode:ls,onUpdateCode:Xa};function Re(){return Ni(this,null,function*(){const{praise_count:je}=yield(0,ce.vl)(fi.id,{container_type:"Hack",type:1});let Ze=ii(ai({},Fr),{hack:ii(ai({},fi),{praises_count:je,user_praise:!fi.user_praise})});Cn({type:3,payload:Ze})})}const Ie={topicId:Kt,submitResult:qr,submitRecords:ci,submitting:fo,page:xo,onPageChange:Us,hack:fi,user:Fr==null?void 0:Fr.user,onTriggerPraise:Re};return console.log(Fr,So==null?void 0:So.current,"data--------"),Er.createElement(Er.Fragment,null,Er.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Oo},Fr?Er.createElement("div",{className:"oj-custom-warp"},Er.createElement("header",{className:Fe.Z.header,style:{minWidth:1200}},Er.createElement("div",null,Er.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${li.image_url}`,alt:"user",width:30}),Er.createElement("span",null,li.name)),Er.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Er.createElement("div",null,fi.name),Er.createElement(yi.Z,{onChange:je=>{},className:"font12 c-grey-999"})),Er.createElement(ko.CopyToClipboard,{text:`${(En=window.location)==null?void 0:En.origin}/problems/${fi.identifier}/share`,onCopy:()=>pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Er.createElement("span",{className:Fe.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Er.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),fi.edit_privilege?Er.createElement(ve.Link,{className:Fe.Z.btn_back,to:`/problems/${fi.identifier}/ojedit`,style:{marginRight:10}}," ",Er.createElement(ge.Z,null)," \u7F16\u8F91"):null,Er.createElement(ve.Link,{className:Fe.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Er.createElement(be.Z,null),"\u9000\u51FA")),Er.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Er.createElement(Zi,ai({},Ie)),rightChild:Er.createElement(To,ai({},we))})):null),Er.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:Qi,className:"oj-modal"},Er.createElement("section",{className:"oj-modal-content"},Er.createElement("div",{className:"oj-modal-head"},Er.createElement("img",{src:va,alt:""}),Er.createElement("i",{onClick:()=>ui(!1),className:"iconfont icon-guanbi1"})),Er.createElement("aside",null,Er.createElement("img",{className:"mr30",src:ta.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Er.createElement("span",{style:{color:"#75d6ba",marginRight:100}},qr==null?void 0:qr.execute_time,"s"),"\u4F18\u4E8E",Er.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(qr==null?void 0:qr.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Er.createElement("aside",{className:"mb50"},Er.createElement("img",{src:Ma.Z,className:"mr30"}),Er.createElement("span",{className:"oj-modal-tt"},Er.createElement("span",null,Er.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Er.createElement("span",{className:"c-light-primary"},qr==null?void 0:qr.execute_memory,"mb")),Er.createElement("span",null,Er.createElement("span",null))),"\u4F18\u4E8E",Er.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(qr==null?void 0:qr.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Er.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function na({languageValue:Te,languageList:ze,onChangeLanguage:Ke,title:ur,modify_code:En,onSyncCode:dn,onShowCodeSetting:Cn,onResetCode:Kt}){const yn=(0,ve.useLocation)(),zn=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Er.createElement(re.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Kt})};return Er.createElement("div",{className:"action-bar"},Er.createElement(le.default,{className:"oj-select",value:Te,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Ke},ze==null?void 0:ze.map(bo=>Er.createElement(le.default.Option,{key:bo.language,value:bo.language},bo.language))),Er.createElement("span",null),Er.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:zn},Er.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Er.createElement("a",{onClick:Cn},Er.createElement("i",{className:"iconfont icon-shezhi"})))}function To(Te){var ze=Te,{id:Ke,input:ur,is_file:En,showNote:dn,onShowNote:Cn,notes:Kt,onCancelNote:yn,onAddNote:zn,debugResult:bo,language:Yr,debuging:Oo,submitting:Fr,executingMessage:Ko,code:qr,onSubmitCode:ci,onDebugCode:xo,onChangeCode:si,onChangeInput:Fi,onUpdateCode:fo}=ze,zi=Ki(ze,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Xn(mo){return Er.createElement(na,ii(ai({},zi),{onShowCodeSetting:mo}))}const Ei={id:Ke,input:ur,debugResult:bo,debuging:Oo,is_file:En,submitting:Fr,executingMessage:Ko,onDebugCode:xo,onChangeCode:si,onSubmitCode:ci,onChangeInput:Fi};return Er.createElement("div",{className:"right-panel"},Er.createElement(pt,{onUpdateCode:()=>{},language:Yr,value:qr,onChange:si,ActionBarRender:Xn}),Er.createElement("div",{className:`note-form-area ${dn?"active":""}`},Er.createElement(it,{onCancel:yn,notes:Kt,callback:zn})),Er.createElement(tt.ZP,ai({},Ei)))}},94189:function(at,We,ee){"use strict";ee.d(We,{h:function(){return z}});var z=(ge=>(ge[ge.NOMATCH=-1]="NOMATCH",ge[ge.OK=0]="OK",ge[ge.TIMEOUT=2]="TIMEOUT",ge[ge.PODFAILURE=3]="PODFAILURE",ge[ge.COMPILEFAILURE=4]="COMPILEFAILURE",ge[ge.EXECUTEFAILURE=5]="EXECUTEFAILURE",ge[ge.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ge))(z||{})},33227:function(at,We,ee){"use strict";ee.d(We,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return de},MU:function(){return ve},Rg:function(){return oe},WH:function(){return a},X6:function(){return pe},bM:function(){return be},bx:function(){return y},dd:function(){return me},de:function(){return ue},fi:function(){return ce},fu:function(){return ge},gu:function(){return E},n4:function(){return se},qe:function(){return te},rL:function(){return ae},rX:function(){return ie},uc:function(){return ye},vl:function(){return re},wO:function(){return x},zO:function(){return fe}});var z=ee(33170);function ge(_e){return(0,z.U2)(`mypractices/${_e}.json`,{hidePopLogin:!0})}function be(_e,xe){return(0,z.v_)(`mypractices/${_e}/code_submit.json`,xe)}function ve(_e,xe){return(0,z.v_)(`mypractices/${_e}/code_debug.json`,xe)}function fe(_e,xe){return xe.language&&(xe.language=encodeURIComponent(xe.language)),(0,z.U2)(`mypractices/${_e}/submit_records.json`,xe)}function pe(_e){return(0,z.U2)("mypractices/record_detail.json",{id:_e})}function ie(_e,xe){return(0,z.U2)(`mypractices/${_e}/result.json`,{mode:xe})}function de(_e,xe){return(0,z.v_)(`mypractices/${_e}/add_notes.json`,xe)}function le(_e,xe){return(0,z.v_)(`mypractices/${_e}/restore_initial_code.json`,xe)}function ce(_e,xe){return(0,z.v_)(`mypractices/${_e}/sync_code.json`,xe)}function se(_e,xe){return(0,z.v_)(`mypractices/${_e}/update_code.json`,xe)}function me(_e){return(0,z.v_)(`mypractices/${_e}/initial_codes.json`)}function re(_e,xe){return(0,z.v_)(`discusses/${_e}/plus.json`,xe)}function ne(_e){return(0,z.U2)("practices/practices_list.json",_e)}function a(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles`,xe)}function y(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles`,xe)}function E(_e,xe){return(0,z.gz)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function b(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/edit`,xe)}function x(_e,xe){return(0,z.U2)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function te(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/set_authority_or_excellent`,xe)}function oe(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/praise_or_treads`,xe)}function ae(_e,xe){return(0,z.v_)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}/hide`)}function ue(_e,xe){return(0,z.IV)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function ye(_e,xe){return(0,z.v_)(`mypractices/${_e}/update_practice_time_sum`,xe)}},93989:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return re}});var z=ee(67294),ge=ee(2453),be=ee(83062),ve=ee(57953),fe=ee(71230),pe=ee(15746),ie=ee(28452),de=ee(71577),le=ee(35567),ce=ee(33170),se=ee(85725),me=(a,y,E)=>new Promise((b,x)=>{var te=ue=>{try{ae(E.next(ue))}catch(ye){x(ye)}},oe=ue=>{try{ae(E.throw(ue))}catch(ye){x(ye)}},ae=ue=>ue.done?b(ue.value):Promise.resolve(ue.value).then(te,oe);ae((E=E.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,te]=(0,z.useState)(""),[oe,ae]=(0,z.useState)(!1);function ue(_e){te(_e)}function ye(){if(!x){ge.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),te("")}return(0,z.useEffect)(()=>{y!=a&&ae(!1)},[y]),z.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},z.createElement(le.Z,{miniToolbar:!0,startInit:y===a,defaultValue:x,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ue,extraUse:b&&z.createElement(be.Z,{color:"#fff",open:oe,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:oe,activeDiscussIndex:y,onChange:ue,setIsOpen:ae}),overlayStyle:{maxWidth:600}},z.createElement("a",{title:oe?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>ae(!oe)},z.createElement("i",{className:"iconfont icon-dianzan11"})))}),z.createElement("a",{onClick:ye,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,z.useState)(!1),[b,x]=(0,z.useState)([]),[te,oe]=(0,z.useState)(1);(0,z.useEffect)(()=>{a!=null&&a.isOpen?ae():(oe(1),x([]))},[a==null?void 0:a.isOpen]);const ae=()=>me(void 0,null,function*(){E(!0);const ue=yield(0,ce.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ue==null?void 0:ue.status)==0&&x(ue==null?void 0:ue.answer),E(!1)});return z.createElement(ve.Z,{spinning:y},z.createElement("div",{style:{color:"#000"}},z.createElement(se.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[te-1])||""}),z.createElement(fe.Z,{justify:"end",align:"middle"},z.createElement(pe.Z,null,z.createElement(ie.Z,{simple:!0,current:te,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ue=>{oe(ue)}})),z.createElement(pe.Z,null,z.createElement(de.ZP,{onClick:()=>me(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[te-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},51959:function(at,We,ee){"use strict";ee.d(We,{BU:function(){return ge},Dj:function(){return z},gH:function(){return be},vp:function(){return ve}});function z(fe){try{fe.mozRequestFullScreen?fe.mozRequestFullScreen():fe.webkitRequestFullScreen&&fe.webkitRequestFullScreen()}catch(pe){console.log(pe,":e")}}function ge(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const be=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function ve(){var fe=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",fe),window.isFullScreen?window.isFullScreen:fe!=null}},40471:function(at,We,ee){"use strict";ee.d(We,{G:function(){return fe},t:function(){return ve}});var z=ee(58971),ge=ee.n(z);const be=null;function ve(pe,ie){let de=ge().get("__ec");de||(de={}),de[pe]=ie,ge().set("__ec",de)}function fe(pe,ie){let de=ge().get("__ec");return de?de[pe]===void 0?ie:de[pe]:ie}},24577:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return La}});class z{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(he,Se){return he.__proto__=Se,he},Object.assign=Object.assign||function(he){if(he==null)throw new TypeError("Cannot convert undefined or null to object");let Se=Object(he);for(let Pe=1;Pe ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","error",Pe),fe.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","info",Pe),fe.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","warn",Pe),fe.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","debug",Pe),fe.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(he,Se){(!he||fe.FORCE_GLOBAL_TAG)&&(he=fe.GLOBAL_TAG);let Pe=`[${he}] > ${Se}`;fe.ENABLE_CALLBACK&&fe.emitter.emit("log","verbose",Pe),fe.ENABLE_VERBOSE&&console.log(Pe)}}fe.GLOBAL_TAG="flv.js",fe.FORCE_GLOBAL_TAG=!1,fe.ENABLE_ERROR=!0,fe.ENABLE_INFO=!0,fe.ENABLE_WARN=!0,fe.ENABLE_DEBUG=!0,fe.ENABLE_VERBOSE=!0,fe.ENABLE_CALLBACK=!1,fe.emitter=new(ve());var pe=fe;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(he){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=he,this._totalBytes+=he):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=he,this._totalBytes+=he):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=he,this._totalBytes+=he,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let he=(this._now()-this._lastCheckpoint)/1e3;return he==0&&(he=1),this._intervalBytes/he/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let he=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/he/1024}}var de=ie;class le{constructor(he){this._message=he}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ce extends le{constructor(he){super(he)}get name(){return"IllegalStateException"}}class se extends le{constructor(he){super(he)}get name(){return"InvalidArgumentException"}}class me extends le{constructor(he){super(he)}get name(){return"NotImplementedException"}}const re={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ne={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class a{constructor(he){this._type=he||"undefined",this._status=re.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=re.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===re.kConnecting||this._status===re.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(he){this._onContentLengthKnown=he}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(he){this._onURLRedirect=he}get onDataArrival(){return this._onDataArrival}set onDataArrival(he){this._onDataArrival=he}get onError(){return this._onError}set onError(he){this._onError=he}get onComplete(){return this._onComplete}set onComplete(he){this._onComplete=he}open(he,Se){throw new me("Unimplemented abstract function!")}abort(){throw new me("Unimplemented abstract function!")}}let y={};function E(){let _n=self.navigator.userAgent.toLowerCase(),he=/(edge)\/([\w.]+)/.exec(_n)||/(opr)[\/]([\w.]+)/.exec(_n)||/(chrome)[ \/]([\w.]+)/.exec(_n)||/(iemobile)[\/]([\w.]+)/.exec(_n)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(_n)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(_n)||/(webkit)[ \/]([\w.]+)/.exec(_n)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(_n)||/(msie) ([\w.]+)/.exec(_n)||_n.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(_n)||_n.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(_n)||[],Se=/(ipad)/.exec(_n)||/(ipod)/.exec(_n)||/(windows phone)/.exec(_n)||/(iphone)/.exec(_n)||/(kindle)/.exec(_n)||/(android)/.exec(_n)||/(windows)/.exec(_n)||/(mac)/.exec(_n)||/(linux)/.exec(_n)||/(cros)/.exec(_n)||[],Pe={browser:he[5]||he[3]||he[1]||"",version:he[2]||he[4]||"0",majorVersion:he[4]||he[2]||"0",platform:Se[0]||""},Le={};if(Pe.browser){Le[Pe.browser]=!0;let Ne=Pe.majorVersion.split(".");Le.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},Ne.length>1&&(Le.version.minor=parseInt(Ne[1],10)),Ne.length>2&&(Le.version.build=parseInt(Ne[2],10))}if(Pe.platform&&(Le[Pe.platform]=!0),(Le.chrome||Le.opr||Le.safari)&&(Le.webkit=!0),Le.rv||Le.iemobile){Le.rv&&delete Le.rv;let Ne="msie";Pe.browser=Ne,Le[Ne]=!0}if(Le.edge){delete Le.edge;let Ne="msedge";Pe.browser=Ne,Le[Ne]=!0}if(Le.opr){let Ne="opera";Pe.browser=Ne,Le[Ne]=!0}if(Le.safari&&Le.android){let Ne="android";Pe.browser=Ne,Le[Ne]=!0}Le.name=Pe.browser,Le.platform=Pe.platform;for(let Ne in y)y.hasOwnProperty(Ne)&&delete y[Ne];Object.assign(y,Le)}E();var b=y;class x extends a{static isSupported(){try{let he=b.msedge&&b.version.minor>=15048,Se=b.msedge?he:!0;return self.fetch&&self.ReadableStream&&Se}catch(he){return!1}}constructor(he,Se){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=he,this._config=Se,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(he,Se){this._dataSource=he,this._range=Se;let Pe=he.url;this._config.reuseRedirectedURL&&he.redirectedURL!=null&&(Pe=he.redirectedURL);let Le=this._seekHandler.getConfig(Pe,Se),Ne=new self.Headers;if(typeof Le.headers=="object"){let lt=Le.headers;for(let fn in lt)lt.hasOwnProperty(fn)&&Ne.append(fn,lt[fn])}let nt={method:"GET",headers:Ne,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let lt in this._config.headers)Ne.append(lt,this._config.headers[lt]);he.cors===!1&&(nt.mode="same-origin"),he.withCredentials&&(nt.credentials="include"),he.referrerPolicy&&(nt.referrerPolicy=he.referrerPolicy),this._status=re.kConnecting,self.fetch(Le.url,nt).then(lt=>{if(this._requestAbort){this._requestAbort=!1,this._status=re.kIdle;return}if(lt.ok&<.status>=200&<.status<=299){if(lt.url!==Le.url&&this._onURLRedirect){let tn=this._seekHandler.removeURLParameters(lt.url);this._onURLRedirect(tn)}let fn=lt.headers.get("Content-Length");return fn!=null&&(this._contentLength=parseInt(fn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,lt.body.getReader())}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:lt.status,msg:lt.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+lt.status+" "+lt.statusText)}).catch(lt=>{if(this._status=re.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:lt.message});else throw lt})}abort(){this._requestAbort=!0}_pump(he){return he.read().then(Se=>{if(Se.done)if(this._contentLength!==null&&this._receivedLength{if(Se.code===11&&b.msedge)return;this._status=re.kError;let Pe=0,Le=null;if((Se.code===19||Se.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+Se.status+" "+Se.statusText);else this._status=re.kBuffering}}_onProgress(he){if(this._status===re.kError)return;this._contentLength===null&&he.total!==null&&he.total!==0&&(this._contentLength=he.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let Se=he.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onLoadEnd(he){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===re.kError)return;this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(he){this._status=re.kError;let Se=0,Pe=null;if(this._contentLength&&he.loaded=200&&Se.status<=299){if(this._status=LoaderStatus.kBuffering,Se.responseURL!=null){let Le=this._seekHandler.removeURLParameters(Se.responseURL);Se.responseURL!==this._currentRequestURL&&Le!==this._currentRedirectedURL&&(this._currentRedirectedURL=Le,this._onURLRedirect&&this._onURLRedirect(Le))}let Pe=Se.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let Le=parseInt(Pe);Le>0&&(this._contentLength=Le,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+Se.status+" "+Se.statusText);else if(Se.readyState===3&&Se.status>=200&&Se.status<=299){this._status=LoaderStatus.kBuffering;let Pe=Se.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(he){this._status=LoaderStatus.kError;let Se=LoaderErrors.EXCEPTION,Pe={code:-1,msg:he.constructor.name+" "+he.type};if(this._onError)this._onError(Se,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(he){let Pe=he.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let Le=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let Ne=this._totalRange.from+this._receivedLength;this._receivedLength+=Le.byteLength,this._onDataArrival&&this._onDataArrival(Le,Ne,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Ne+Le.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:Se,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(he,Se){this._lastTimeLoaded=0;let Pe=he.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:he.redirectedURL!=null&&(Pe=he.redirectedURL));let Le=this._seekHandler.getConfig(Pe,Se);this._currentRequestURL=Le.url;let Ne=this._xhr=new XMLHttpRequest;if(Ne.open("GET",Le.url,!0),Ne.responseType="arraybuffer",Ne.onreadystatechange=this._onReadyStateChange.bind(this),Ne.onprogress=this._onProgress.bind(this),Ne.onload=this._onLoad.bind(this),Ne.onerror=this._onXhrError.bind(this),he.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let nt=Le.headers;for(let lt in nt)nt.hasOwnProperty(lt)&&Ne.setRequestHeader(lt,nt[lt])}if(typeof this._config.headers=="object"){let nt=this._config.headers;for(let lt in nt)nt.hasOwnProperty(lt)&&Ne.setRequestHeader(lt,nt[lt])}Ne.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=re.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(he){let Se=he.target;if(Se.readyState===2){if(Se.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(Se.responseURL);Se.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(Se.status>=200&&Se.status<=299){if(this._waitForTotalLength)return;this._status=re.kBuffering}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:Se.status,msg:Se.statusText});else throw new le("RangeLoader: Http code invalid, "+Se.status+" "+Se.statusText)}}_onProgress(he){if(this._status===re.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let Le=he.total;this._internalAbort(),Le!=null&Le!==0&&(this._totalLength=Le)}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 Se=he.loaded-this._lastTimeLoaded;this._lastTimeLoaded=he.loaded,this._speedSampler.addBytes(Se)}_normalizeSpeed(he){let Se=this._chunkSizeKBList,Pe=Se.length-1,Le=0,Ne=0,nt=Pe;if(he=Se[Le]&&he=3&&(Se=this._speedSampler.currentKBps)),Se!==0){let nt=this._normalizeSpeed(Se);this._currentSpeedNormalized!==nt&&(this._currentSpeedNormalized=nt,this._currentChunkSizeKB=nt)}let Pe=he.target.response,Le=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Ne=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(Se.result)},Se.readAsArrayBuffer(he.data)}else{this._status=re.kError;let Se={code:-1,msg:"Unsupported WebSocket message type: "+he.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}_dispatchArrayBuffer(he){let Se=he,Pe=this._receivedLength;this._receivedLength+=Se.byteLength,this._onDataArrival&&this._onDataArrival(Se,Pe,this._receivedLength)}_onWebSocketError(he){this._status=re.kError;let Se={code:he.code,msg:he.message};if(this._onError)this._onError(ne.EXCEPTION,Se);else throw new le(Se.msg)}}var Be=Ce;class Me{constructor(he){this._zeroStart=he||!1}getConfig(he,Se){let Pe={};if(Se.from!==0||Se.to!==-1){let Le;Se.to!==-1?Le=`bytes=${Se.from.toString()}-${Se.to.toString()}`:Le=`bytes=${Se.from.toString()}-`,Pe.Range=Le}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:he,headers:Pe}}removeURLParameters(he){return he}}var mt=Me;class Qe{constructor(he,Se){this._startName=he,this._endName=Se}getConfig(he,Se){let Pe=he;if(Se.from!==0||Se.to!==-1){let Le=!0;Pe.indexOf("?")===-1&&(Pe+="?",Le=!1),Le&&(Pe+="&"),Pe+=`${this._startName}=${Se.from.toString()}`,Se.to!==-1&&(Pe+=`&${this._endName}=${Se.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(he){let Se=he.split("?")[0],Pe,Le=he.indexOf("?");Le!==-1&&(Pe=he.substring(Le+1));let Ne="";if(Pe!=null&&Pe.length>0){let nt=Pe.split("&");for(let lt=0;lt0;fn[0]!==this._startName&&fn[0]!==this._endName&&(tn&&(Ne+="&"),Ne+=nt[lt])}}return Ne.length===0?Se:Se+"?"+Ne}}var pt=Qe;class Ae{constructor(he,Se,Pe){this.TAG="IOController",this._config=Se,this._extraData=Pe,this._stashInitialSize=1024*384,Se.stashInitialSize!=null&&Se.stashInitialSize>0&&(this._stashInitialSize=Se.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,Se.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=he,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(he.url),this._refTotalLength=he.filesize?he.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new de,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(he){this._extraData=he}get onDataArrival(){return this._onDataArrival}set onDataArrival(he){this._onDataArrival=he}get onSeeked(){return this._onSeeked}set onSeeked(he){this._onSeeked=he}get onError(){return this._onError}set onError(he){this._onError=he}get onComplete(){return this._onComplete}set onComplete(he){this._onComplete=he}get onRedirect(){return this._onRedirect}set onRedirect(he){this._onRedirect=he}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(he){this._onRecoveredEarlyEof=he}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===xe?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let he=this._config;if(he.seekType==="range")this._seekHandler=new mt(this._config.rangeLoadZeroStart);else if(he.seekType==="param"){let Se=he.seekParamStart||"bstart",Pe=he.seekParamEnd||"bend";this._seekHandler=new pt(Se,Pe)}else if(he.seekType==="custom"){if(typeof he.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new he.customSeekHandler}else throw new se(`Invalid seekType in config: ${he.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Be;else if(te.isSupported())this._loaderClass=te;else if(ae.isSupported())this._loaderClass=ae;else if(xe.isSupported())this._loaderClass=xe;else throw new le("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(he){this._currentRange={from:0,to:-1},he&&(this._currentRange.from=he),this._speedSampler.reset(),he||(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 he=this._resumeFrom;this._resumeFrom=0,this._internalSeek(he,!0)}}seek(he){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(he,!0)}_internalSeek(he,Se){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Se),this._loader.destroy(),this._loader=null;let Pe={from:he,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(he){if(!he||typeof he!="string"||he.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=he}_expandBuffer(he){let Se=this._stashSize;for(;Se+1024*1024*10){let Le=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,Se).set(Le,0)}this._stashBuffer=Pe,this._bufferSize=Se}_normalizeSpeed(he){let Se=this._speedNormalizeList,Pe=Se.length-1,Le=0,Ne=0,nt=Pe;if(he=Se[Le]&&he=512&&he<=1024?Se=Math.floor(he*1.5):Se=he*2,Se>8192&&(Se=8192);let Pe=Se*1024+1024*1024*1;this._bufferSize0){let nt=this._stashBuffer.slice(0,this._stashUsed),lt=this._dispatchChunks(nt,this._stashByteStart);if(lt0){let fn=new Uint8Array(nt,lt);Ne.set(fn,0),this._stashUsed=fn.byteLength,this._stashByteStart+=lt}}else this._stashUsed=0,this._stashByteStart+=lt;this._stashUsed+he.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+he.byteLength),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(he),this._stashUsed),this._stashUsed+=he.byteLength}else{let nt=this._dispatchChunks(he,Se);if(ntthis._bufferSize&&(this._expandBuffer(lt),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(he,nt),0),this._stashUsed+=lt,this._stashByteStart=Se+nt}}}else if(this._stashUsed===0){let Ne=this._dispatchChunks(he,Se);if(Nethis._bufferSize&&this._expandBuffer(nt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(he,Ne),0),this._stashUsed+=nt,this._stashByteStart=Se+Ne}}else{this._stashUsed+he.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+he.byteLength);let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ne.set(new Uint8Array(he),this._stashUsed),this._stashUsed+=he.byteLength;let nt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(nt0){let lt=new Uint8Array(this._stashBuffer,nt);Ne.set(lt,0)}this._stashUsed-=nt,this._stashByteStart+=nt}}_flushStashBuffer(he){if(this._stashUsed>0){let Se=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(Se,this._stashByteStart),Le=Se.byteLength-Pe;if(Pe0){let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize),nt=new Uint8Array(Se,Pe);Ne.set(nt,0),this._stashUsed=nt.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,Le}return 0}_onLoaderComplete(he,Se){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(he,Se){switch(pe.e(this.TAG,`Loader error, code = ${Se.code}, msg = ${Se.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,he=ne.UNRECOVERABLE_EARLY_EOF),he){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe0){let Se=nn.getConfig();he.emit("change",Se)}}static registerListener(he){nn.emitter.addListener("change",he)}static removeListener(he){nn.emitter.removeListener("change",he)}static addLogListener(he){pe.emitter.addListener("log",he),pe.emitter.listenerCount("log")>0&&(pe.ENABLE_CALLBACK=!0,nn._notifyChange())}static removeLogListener(he){pe.emitter.removeListener("log",he),pe.emitter.listenerCount("log")===0&&(pe.ENABLE_CALLBACK=!1,nn._notifyChange())}}nn.emitter=new(ve());var it=nn;class ct{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 he=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Se=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&&he&&Se}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(he){if(this.keyframesIndex==null)return null;let Se=this.keyframesIndex,Pe=this._search(Se.times,he);return{index:Pe,milliseconds:Se.times[Pe],fileposition:Se.filepositions[Pe]}}_search(he,Se){let Pe=0,Le=he.length-1,Ne=0,nt=0,lt=Le;for(Se=he[Ne]&&Se=128){he.push(String.fromCharCode(Ne&65535)),Pe+=2;continue}}}else if(Se[Pe]<240){if(Vt(Se,Pe,2)){let Ne=(Se[Pe]&15)<<12|(Se[Pe+1]&63)<<6|Se[Pe+2]&63;if(Ne>=2048&&(Ne&63488)!==55296){he.push(String.fromCharCode(Ne&65535)),Pe+=3;continue}}}else if(Se[Pe]<248&&Vt(Se,Pe,3)){let Ne=(Se[Pe]&7)<<18|(Se[Pe+1]&63)<<12|(Se[Pe+2]&63)<<6|Se[Pe+3]&63;if(Ne>65536&&Ne<1114112){Ne-=65536,he.push(String.fromCharCode(Ne>>>10|55296)),he.push(String.fromCharCode(Ne&1023|56320)),Pe+=4;continue}}}he.push("\uFFFD"),++Pe}return he.join("")}var Ln=Gt;let He=function(){let _n=new ArrayBuffer(2);return new DataView(_n).setInt16(0,256,!0),new Int16Array(_n)[0]===256}();class on{static parseScriptData(he,Se,Pe){let Le={};try{let Ne=on.parseValue(he,Se,Pe),nt=on.parseValue(he,Se+Ne.size,Pe-Ne.size);Le[Ne.data]=nt.data}catch(Ne){pe.e("AMF",Ne.toString())}return Le}static parseObject(he,Se,Pe){if(Pe<3)throw new ce("Data not enough when parse ScriptDataObject");let Le=on.parseString(he,Se,Pe),Ne=on.parseValue(he,Se+Le.size,Pe-Le.size),nt=Ne.objectEnd;return{data:{name:Le.data,value:Ne.data},size:Le.size+Ne.size,objectEnd:nt}}static parseVariable(he,Se,Pe){return on.parseObject(he,Se,Pe)}static parseString(he,Se,Pe){if(Pe<2)throw new ce("Data not enough when parse String");let Ne=new DataView(he,Se,Pe).getUint16(0,!He),nt;return Ne>0?nt=Ln(new Uint8Array(he,Se+2,Ne)):nt="",{data:nt,size:2+Ne}}static parseLongString(he,Se,Pe){if(Pe<4)throw new ce("Data not enough when parse LongString");let Ne=new DataView(he,Se,Pe).getUint32(0,!He),nt;return Ne>0?nt=Ln(new Uint8Array(he,Se+4,Ne)):nt="",{data:nt,size:4+Ne}}static parseDate(he,Se,Pe){if(Pe<10)throw new ce("Data size invalid when parse Date");let Le=new DataView(he,Se,Pe),Ne=Le.getFloat64(0,!He),nt=Le.getInt16(8,!He);return Ne+=nt*60*1e3,{data:new Date(Ne),size:10}}static parseValue(he,Se,Pe){if(Pe<1)throw new ce("Data not enough when parse Value");let Le=new DataView(he,Se,Pe),Ne=1,nt=Le.getUint8(0),lt,fn=!1;try{switch(nt){case 0:lt=Le.getFloat64(1,!He),Ne+=8;break;case 1:{lt=!!Le.getUint8(1),Ne+=1;break}case 2:{let tn=on.parseString(he,Se+1,Pe-1);lt=tn.data,Ne+=tn.size;break}case 3:{lt={};let tn=0;for((Le.getUint32(Pe-4,!He)&16777215)===9&&(tn=3);Ne32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(he<=this._current_word_bits_left){let nt=this._current_word>>>32-he;return this._current_word<<=he,this._current_word_bits_left-=he,nt}let Se=this._current_word_bits_left?this._current_word:0;Se=Se>>>32-this._current_word_bits_left;let Pe=he-this._current_word_bits_left;this._fillCurrentWord();let Le=Math.min(Pe,this._current_word_bits_left),Ne=this._current_word>>>32-Le;return this._current_word<<=Le,this._current_word_bits_left-=Le,Se=Se<>>he)return this._current_word<<=he,this._current_word_bits_left-=he,he;return this._fillCurrentWord(),he+this._skipLeadingZero()}readUEG(){let he=this._skipLeadingZero();return this.readBits(he+1)-1}readSEG(){let he=this.readUEG();return he&1?he+1>>>1:-1*(he>>>1)}}var bn=or;class $t{static _ebsp2rbsp(he){let Se=he,Pe=Se.byteLength,Le=new Uint8Array(Pe),Ne=0;for(let nt=0;nt=2&&Se[nt]===3&&Se[nt-1]===0&&Se[nt-2]===0||(Le[Ne]=Se[nt],Ne++);return new Uint8Array(Le.buffer,0,Ne)}static parseSPS(he){let Se=$t._ebsp2rbsp(he),Pe=new bn(Se);Pe.readByte();let Le=Pe.readByte();Pe.readByte();let Ne=Pe.readByte();Pe.readUEG();let nt=$t.getProfileString(Le),lt=$t.getLevelString(Ne),fn=1,tn=420,Tn=[0,420,422,444],fr=8;if((Le===100||Le===110||Le===122||Le===244||Le===44||Le===83||Le===86||Le===118||Le===128||Le===138||Le===144)&&(fn=Pe.readUEG(),fn===3&&Pe.readBits(1),fn<=3&&(tn=Tn[fn]),fr=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Hr=fn!==3?8:12;for(let rr=0;rr0&&Hr<16?(ti=rr[Hr-1],xr=di[Hr-1]):Hr===255&&(ti=Pe.readByte()<<8|Pe.readByte(),xr=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 Hr=Pe.readBits(32),rr=Pe.readBits(32);Mi=Pe.readBool(),Pi=rr,Ai=Hr*2,yo=Pi/Ai}}let Ka=1;(ti!==1||xr!==1)&&(Ka=ti/xr);let Ui=0,Vo=0;if(fn===0)Ui=1,Vo=2-Rn;else{let Hr=fn===3?1:2,rr=fn===1?2:1;Ui=Hr,Vo=rr*(2-Rn)}let Aa=(cr+1)*16,Bn=(2-Rn)*((sr+1)*16);Aa-=(Hn+tr)*Ui,Bn-=(jr+Pr)*Vo;let mr=Math.ceil(Aa*Ka);return Pe.destroy(),Pe=null,{profile_string:nt,level_string:lt,bit_depth:fr,ref_frames:Ot,chroma_format:tn,chroma_format_string:$t.getChromaFormatString(tn),frame_rate:{fixed:Mi,fps:yo,fps_den:Ai,fps_num:Pi},sar_ratio:{width:ti,height:xr},codec_size:{width:Aa,height:Bn},present_size:{width:mr,height:Bn}}}static _skipScalingList(he,Se){let Pe=8,Le=8,Ne=0;for(let nt=0;nt>>8&255|(_n&255)<<8}function Wt(_n){return(_n&4278190080)>>>24|(_n&16711680)>>>8|(_n&65280)<<8|(_n&255)<<24}function dt(_n,he){return _n[he]<<24|_n[he+1]<<16|_n[he+2]<<8|_n[he+3]}class yt{constructor(he,Se){this.TAG="FLVDemuxer",this._config=Se,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=he.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=he.hasAudioTrack,this._hasVideo=he.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new wt,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(he){let Se=new Uint8Array(he),Pe={match:!1};if(Se[0]!==70||Se[1]!==76||Se[2]!==86||Se[3]!==1)return Pe;let Le=(Se[4]&4)>>>2!==0,Ne=(Se[4]&1)!==0,nt=dt(Se,5);return nt<9?Pe:{match:!0,consumed:nt,dataOffset:nt,hasAudioTrack:Le,hasVideoTrack:Ne}}bindDataSource(he){return he.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(he){this._onTrackMetadata=he}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(he){this._onMediaInfo=he}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(he){this._onMetaDataArrived=he}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(he){this._onScriptDataArrived=he}get onError(){return this._onError}set onError(he){this._onError=he}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(he){this._onDataAvailable=he}get timestampBase(){return this._timestampBase}set timestampBase(he){this._timestampBase=he}get overridedDuration(){return this._duration}set overridedDuration(he){this._durationOverrided=!0,this._duration=he,this._mediaInfo.duration=he}set overridedHasAudio(he){this._hasAudioFlagOverrided=!0,this._hasAudio=he,this._mediaInfo.hasAudio=he}set overridedHasVideo(he){this._hasVideoFlagOverrided=!0,this._hasVideo=he,this._mediaInfo.hasVideo=he}resetMediaInfo(){this._mediaInfo=new wt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(he,Se){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new ce("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,Le=this._littleEndian;if(Se===0)if(he.byteLength>13)Pe=yt.probe(he).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,Se+Pe!==this._dataOffset&&pe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(he,Pe).getUint32(0,!Le)!==0&&pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pehe.byteLength)break;let nt=Ne.getUint8(0),lt=Ne.getUint32(0,!Le)&16777215;if(Pe+11+lt+4>he.byteLength)break;if(nt!==8&&nt!==9&&nt!==18){pe.w(this.TAG,`Unsupported tag type ${nt}, skipped`),Pe+=11+lt+4;continue}let fn=Ne.getUint8(4),tn=Ne.getUint8(5),Tn=Ne.getUint8(6),fr=Ne.getUint8(7),Lr=Tn|tn<<8|fn<<16|fr<<24;(Ne.getUint32(7,!Le)&16777215)!==0&&pe.w(this.TAG,"Meet tag which has StreamID != 0!");let cr=Pe+11;switch(nt){case 8:this._parseAudioData(he,cr,lt,Lr);break;case 9:this._parseVideoData(he,cr,lt,Lr,Se+Pe);break;case 18:this._parseScriptData(he,cr,lt);break}let sr=Ne.getUint32(11+lt,!Le);sr!==11+lt&&pe.w(this.TAG,`Invalid PrevTagSize ${sr}`),Pe+=11+lt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(he,Se,Pe){let Le=In.parseScriptData(he,Se,Pe);if(Le.hasOwnProperty("onMetaData")){if(Le.onMetaData==null||typeof Le.onMetaData!="object"){pe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&pe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Le;let Ne=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Ne)),typeof Ne.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Ne.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Ne.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Ne.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Ne.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Ne.audiodatarate),typeof Ne.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Ne.videodatarate),typeof Ne.width=="number"&&(this._mediaInfo.width=Ne.width),typeof Ne.height=="number"&&(this._mediaInfo.height=Ne.height),typeof Ne.duration=="number"){if(!this._durationOverrided){let nt=Math.floor(Ne.duration*this._timescale);this._duration=nt,this._mediaInfo.duration=nt}}else this._mediaInfo.duration=0;if(typeof Ne.framerate=="number"){let nt=Math.floor(Ne.framerate*1e3);if(nt>0){let lt=nt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=lt,this._referenceFrameRate.fps_num=nt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=lt}}if(typeof Ne.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let nt=Ne.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(nt),Ne.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Ne,pe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Le).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Le))}_parseKeyframesIndex(he){let Se=[],Pe=[];for(let Le=1;Le>>4;if(fn!==2&&fn!==10){this._onError(Pt.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+fn);return}let tn=0,Tn=(lt&12)>>>2;if(Tn>=0&&Tn<=4)tn=this._flvSoundRateTable[Tn];else{this._onError(Pt.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Tn);return}let fr=(lt&2)>>>1,Lr=lt&1,Ot=this._audioMetadata,cr=this._audioTrack;if(Ot||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Ot=this._audioMetadata={},Ot.type="audio",Ot.id=cr.id,Ot.timescale=this._timescale,Ot.duration=this._duration,Ot.audioSampleRate=tn,Ot.channelCount=Lr===0?1:2),fn===10){let sr=this._parseAACAudioData(he,Se+1,Pe-1);if(sr==null)return;if(sr.packetType===0){Ot.config&&pe.w(this.TAG,"Found another AudioSpecificConfig!");let Rn=sr.data;Ot.audioSampleRate=Rn.samplingRate,Ot.channelCount=Rn.channelCount,Ot.codec=Rn.codec,Ot.originalCodec=Rn.originalCodec,Ot.config=Rn.config,Ot.refSampleDuration=1024/Ot.audioSampleRate*Ot.timescale,pe.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",Ot);let Hn=this._mediaInfo;Hn.audioCodec=Ot.originalCodec,Hn.audioSampleRate=Ot.audioSampleRate,Hn.audioChannelCount=Ot.channelCount,Hn.hasVideo?Hn.videoCodec!=null&&(Hn.mimeType='video/x-flv; codecs="'+Hn.videoCodec+","+Hn.audioCodec+'"'):Hn.mimeType='video/x-flv; codecs="'+Hn.audioCodec+'"',Hn.isComplete()&&this._onMediaInfo(Hn)}else if(sr.packetType===1){let Rn=this._timestampBase+Le,Hn={unit:sr.data,length:sr.data.byteLength,dts:Rn,pts:Rn};cr.samples.push(Hn),cr.length+=sr.data.length}else pe.e(this.TAG,`Flv: Unsupported AAC data type ${sr.packetType}`)}else if(fn===2){if(!Ot.codec){let tr=this._parseMP3AudioData(he,Se+1,Pe-1,!0);if(tr==null)return;Ot.audioSampleRate=tr.samplingRate,Ot.channelCount=tr.channelCount,Ot.codec=tr.codec,Ot.originalCodec=tr.originalCodec,Ot.refSampleDuration=1152/Ot.audioSampleRate*Ot.timescale,pe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Ot);let jr=this._mediaInfo;jr.audioCodec=Ot.codec,jr.audioSampleRate=Ot.audioSampleRate,jr.audioChannelCount=Ot.channelCount,jr.audioDataRate=tr.bitRate,jr.hasVideo?jr.videoCodec!=null&&(jr.mimeType='video/x-flv; codecs="'+jr.videoCodec+","+jr.audioCodec+'"'):jr.mimeType='video/x-flv; codecs="'+jr.audioCodec+'"',jr.isComplete()&&this._onMediaInfo(jr)}let sr=this._parseMP3AudioData(he,Se+1,Pe-1,!1);if(sr==null)return;let Rn=this._timestampBase+Le,Hn={unit:sr,length:sr.byteLength,dts:Rn,pts:Rn};cr.samples.push(Hn),cr.length+=sr.length}}_parseAACAudioData(he,Se,Pe){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Le={},Ne=new Uint8Array(he,Se,Pe);return Le.packetType=Ne[0],Ne[0]===0?Le.data=this._parseAACAudioSpecificConfig(he,Se+1,Pe-1):Le.data=Ne.subarray(1),Le}_parseAACAudioSpecificConfig(he,Se,Pe){let Le=new Uint8Array(he,Se,Pe),Ne=null,nt=0,lt=0,fn=null,tn=0,Tn=null;if(nt=lt=Le[0]>>>3,tn=(Le[0]&7)<<1|Le[1]>>>7,tn<0||tn>=this._mpegSamplingRates.length){this._onError(Pt.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let fr=this._mpegSamplingRates[tn],Lr=(Le[1]&120)>>>3;if(Lr<0||Lr>=8){this._onError(Pt.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}nt===5&&(Tn=(Le[1]&7)<<1|Le[2]>>>7,fn=(Le[2]&124)>>>2);let Ot=self.navigator.userAgent.toLowerCase();return Ot.indexOf("firefox")!==-1?tn>=6?(nt=5,Ne=new Array(4),Tn=tn-3):(nt=2,Ne=new Array(2),Tn=tn):Ot.indexOf("android")!==-1?(nt=2,Ne=new Array(2),Tn=tn):(nt=5,Tn=tn,Ne=new Array(4),tn>=6?Tn=tn-3:Lr===1&&(nt=2,Ne=new Array(2),Tn=tn)),Ne[0]=nt<<3,Ne[0]|=(tn&15)>>>1,Ne[1]=(tn&15)<<7,Ne[1]|=(Lr&15)<<3,nt===5&&(Ne[1]|=(Tn&15)>>>1,Ne[2]=(Tn&1)<<7,Ne[2]|=8,Ne[3]=0),{config:Ne,samplingRate:fr,channelCount:Lr,codec:"mp4a.40."+nt,originalCodec:"mp4a.40."+lt}}_parseMP3AudioData(he,Se,Pe,Le){if(Pe<4){pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Ne=this._littleEndian,nt=new Uint8Array(he,Se,Pe),lt=null;if(Le){if(nt[0]!==255)return;let fn=nt[1]>>>3&3,tn=(nt[1]&6)>>1,Tn=(nt[2]&240)>>>4,fr=(nt[2]&12)>>>2,Ot=(nt[3]>>>6&3)!==3?2:1,cr=0,sr=0,Rn=34,Hn="mp3";switch(fn){case 0:cr=this._mpegAudioV25SampleRateTable[fr];break;case 2:cr=this._mpegAudioV20SampleRateTable[fr];break;case 3:cr=this._mpegAudioV10SampleRateTable[fr];break}switch(tn){case 1:Rn=34,Tn>>4,fn=nt&15;if(fn!==7){this._onError(Pt.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${fn}`);return}this._parseAVCVideoPacket(he,Se+1,Pe-1,Le,Ne,lt)}_parseAVCVideoPacket(he,Se,Pe,Le,Ne,nt){if(Pe<4){pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let lt=this._littleEndian,fn=new DataView(he,Se,Pe),tn=fn.getUint8(0),fr=(fn.getUint32(0,!lt)&16777215)<<8>>8;if(tn===0)this._parseAVCDecoderConfigurationRecord(he,Se+4,Pe-4);else if(tn===1)this._parseAVCVideoData(he,Se+4,Pe-4,Le,Ne,nt,fr);else if(tn!==2){this._onError(Pt.FORMAT_ERROR,`Flv: Invalid video packet type ${tn}`);return}}_parseAVCDecoderConfigurationRecord(he,Se,Pe){if(Pe<7){pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Le=this._videoMetadata,Ne=this._videoTrack,nt=this._littleEndian,lt=new DataView(he,Se,Pe);Le?typeof Le.avcc!="undefined"&&pe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Le=this._videoMetadata={},Le.type="video",Le.id=Ne.id,Le.timescale=this._timescale,Le.duration=this._duration);let fn=lt.getUint8(0),tn=lt.getUint8(1),Tn=lt.getUint8(2),fr=lt.getUint8(3);if(fn!==1||tn===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(lt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Pt.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Lr=lt.getUint8(5)&31;if(Lr===0){this._onError(Pt.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Lr>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Lr}`);let Ot=6;for(let sr=0;sr1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${cr}`);Ot++;for(let sr=0;sr=Pe){pe.w(this.TAG,`Malformed Nalu near timestamp ${cr}, offset = ${Lr}, dataSize = ${Pe}`);break}let Rn=tn.getUint32(Lr,!fn);if(Ot===3&&(Rn>>>=8),Rn>Pe-Ot){pe.w(this.TAG,`Malformed Nalus near timestamp ${cr}, NaluSize > DataSize!`);return}let Hn=tn.getUint8(Lr+Ot)&31;Hn===5&&(sr=!0);let tr=new Uint8Array(he,Se+Lr,Ot+Rn),jr={type:Hn,data:tr};Tn.push(jr),fr+=tr.byteLength,Lr+=Ot+Rn}if(Tn.length){let Rn=this._videoTrack,Hn={units:Tn,length:fr,isKeyframe:sr,dts:cr,cts:lt,pts:cr+lt};sr&&(Hn.fileposition=Ne),Rn.samples.push(Hn),Rn.length+=fr}}}var Tt=yt;class rt{static init(){rt.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 Se in rt.types)rt.types.hasOwnProperty(Se)&&(rt.types[Se]=[Se.charCodeAt(0),Se.charCodeAt(1),Se.charCodeAt(2),Se.charCodeAt(3)]);let he=rt.constants={};he.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),he.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),he.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),he.STSC=he.STCO=he.STTS,he.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),he.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]),he.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]),he.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),he.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),he.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(he){let Se=8,Pe=null,Le=Array.prototype.slice.call(arguments,1),Ne=Le.length;for(let lt=0;lt>>24&255,Pe[1]=Se>>>16&255,Pe[2]=Se>>>8&255,Pe[3]=Se&255,Pe.set(he,4);let nt=8;for(let lt=0;lt>>24&255,he>>>16&255,he>>>8&255,he&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&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(he){return rt.box(rt.types.trak,rt.tkhd(he),rt.mdia(he))}static tkhd(he){let Se=he.id,Pe=he.duration,Le=he.presentWidth,Ne=he.presentHeight;return rt.box(rt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&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,Le>>>8&255,Le&255,0,0,Ne>>>8&255,Ne&255,0,0]))}static mdia(he){return rt.box(rt.types.mdia,rt.mdhd(he),rt.hdlr(he),rt.minf(he))}static mdhd(he){let Se=he.timescale,Pe=he.duration;return rt.box(rt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(he){let Se=null;return he.type==="audio"?Se=rt.constants.HDLR_AUDIO:Se=rt.constants.HDLR_VIDEO,rt.box(rt.types.hdlr,Se)}static minf(he){let Se=null;return he.type==="audio"?Se=rt.box(rt.types.smhd,rt.constants.SMHD):Se=rt.box(rt.types.vmhd,rt.constants.VMHD),rt.box(rt.types.minf,Se,rt.dinf(),rt.stbl(he))}static dinf(){return rt.box(rt.types.dinf,rt.box(rt.types.dref,rt.constants.DREF))}static stbl(he){return rt.box(rt.types.stbl,rt.stsd(he),rt.box(rt.types.stts,rt.constants.STTS),rt.box(rt.types.stsc,rt.constants.STSC),rt.box(rt.types.stsz,rt.constants.STSZ),rt.box(rt.types.stco,rt.constants.STCO))}static stsd(he){return he.type==="audio"?he.codec==="mp3"?rt.box(rt.types.stsd,rt.constants.STSD_PREFIX,rt.mp3(he)):rt.box(rt.types.stsd,rt.constants.STSD_PREFIX,rt.mp4a(he)):rt.box(rt.types.stsd,rt.constants.STSD_PREFIX,rt.avc1(he))}static mp3(he){let Se=he.channelCount,Pe=he.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Se,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return rt.box(rt.types[".mp3"],Le)}static mp4a(he){let Se=he.channelCount,Pe=he.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Se,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return rt.box(rt.types.mp4a,Le,rt.esds(he))}static esds(he){let Se=he.config||[],Pe=Se.length,Le=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(Se).concat([6,1,2]));return rt.box(rt.types.esds,Le)}static avc1(he){let Se=he.avcc,Pe=he.codecWidth,Le=he.codecHeight,Ne=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,Le>>>8&255,Le&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 rt.box(rt.types.avc1,Ne,rt.box(rt.types.avcC,Se))}static mvex(he){return rt.box(rt.types.mvex,rt.trex(he))}static trex(he){let Se=he.id,Pe=new Uint8Array([0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return rt.box(rt.types.trex,Pe)}static moof(he,Se){return rt.box(rt.types.moof,rt.mfhd(he.sequenceNumber),rt.traf(he,Se))}static mfhd(he){let Se=new Uint8Array([0,0,0,0,he>>>24&255,he>>>16&255,he>>>8&255,he&255]);return rt.box(rt.types.mfhd,Se)}static traf(he,Se){let Pe=he.id,Le=rt.box(rt.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Ne=rt.box(rt.types.tfdt,new Uint8Array([0,0,0,0,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255])),nt=rt.sdtp(he),lt=rt.trun(he,nt.byteLength+16+16+8+16+8+8);return rt.box(rt.types.traf,Le,Ne,lt,nt)}static sdtp(he){let Se=he.samples||[],Pe=Se.length,Le=new Uint8Array(4+Pe);for(let Ne=0;Ne>>24&255,Le>>>16&255,Le>>>8&255,Le&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255],0);for(let lt=0;lt>>24&255,fn>>>16&255,fn>>>8&255,fn&255,tn>>>24&255,tn>>>16&255,tn>>>8&255,tn&255,Tn.isLeading<<2|Tn.dependsOn,Tn.isDependedOn<<6|Tn.hasRedundancy<<4|Tn.isNonSync,0,0,fr>>>24&255,fr>>>16&255,fr>>>8&255,fr&255],12+16*lt)}return rt.box(rt.types.trun,nt)}static mdat(he){return rt.box(rt.types.mdat,he)}}rt.init();var cn=rt;class Ge{static getSilentFrame(he,Se){if(he==="mp4a.40.2"){if(Se===1)return new Uint8Array([0,200,0,128,35,128]);if(Se===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Se===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Se===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Se===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(Se===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(Se===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(Se===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(Se===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 gt=Ge;class Gn{constructor(he,Se,Pe,Le,Ne){this.dts=he,this.pts=Se,this.duration=Pe,this.originalDts=Le,this.isSyncPoint=Ne,this.fileposition=null}}class Nn{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(he){he.isSyncPoint=!0,this.syncPoints.push(he)}}class St{constructor(){this._list=[]}clear(){this._list=[]}appendArray(he){let Se=this._list;he.length!==0&&(Se.length>0&&he[0].originalDts=Se[Ne].dts&&heSe[Le].lastSample.originalDts&&he=Se[Le].lastSample.originalDts&&(Le===Se.length-1||Le0&&(Ne=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Ne,this._list.splice(Ne,0,Pe)}getLastSegmentBefore(he){let Se=this._searchNearestSegmentBefore(he);return Se>=0?this._list[Se]:null}getLastSampleBefore(he){let Se=this.getLastSegmentBefore(he);return Se!=null?Se.lastSample:null}getLastSyncPointBefore(he){let Se=this._searchNearestSegmentBefore(he),Pe=this._list[Se].syncPoints;for(;Pe.length===0&&Se>0;)Se--,Pe=this._list[Se].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class hn{constructor(he){this.TAG="MP4Remuxer",this._config=he,this._isLive=he.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Qt("audio"),this._videoSegmentInfoList=new Qt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(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(he){return he.onDataAvailable=this.remux.bind(this),he.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(he){this._onInitSegment=he}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(he){this._onMediaSegment=he}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(he){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(he,Se){if(!this._onMediaSegment)throw new ce("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(he,Se),this._remuxVideo(Se),this._remuxAudio(he)}_onTrackMetadataReceived(he,Se){let Pe=null,Le="mp4",Ne=Se.codec;if(he==="audio")this._audioMeta=Se,Se.codec==="mp3"&&this._mp3UseMpegAudio?(Le="mpeg",Ne="",Pe=new Uint8Array):Pe=cn.generateInitSegment(Se);else if(he==="video")this._videoMeta=Se,Pe=cn.generateInitSegment(Se);else return;if(!this._onInitSegment)throw new ce("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(he,{type:he,data:Pe.buffer,codec:Ne,container:`${he}/${Le}`,mediaDuration:Se.duration})}_calculateDtsBase(he,Se){this._dtsBaseInited||(he.samples&&he.samples.length&&(this._audioDtsBase=he.samples[0].dts),Se.samples&&Se.samples.length&&(this._videoDtsBase=Se.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let he=this._videoStashedLastSample,Se=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};he!=null&&(Pe.samples.push(he),Pe.length=he.length);let Le={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Se!=null&&(Le.samples.push(Se),Le.length=Se.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(Le,!0)}_remuxAudio(he,Se){if(this._audioMeta==null)return;let Pe=he,Le=Pe.samples,Ne,nt=-1,lt=-1,fn=-1,tn=this._audioMeta.refSampleDuration,Tn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,fr=this._dtsBaseInited&&this._audioNextDts===void 0,Lr=!1;if(!Le||Le.length===0||Le.length===1&&!Se)return;let Ot=0,cr=null,sr=0;Tn?(Ot=0,sr=Pe.length):(Ot=8,sr=8+Pe.length);let Rn=null;if(Le.length>1&&(Rn=Le.pop(),sr-=Rn.length),this._audioStashedLastSample!=null){let xr=this._audioStashedLastSample;this._audioStashedLastSample=null,Le.unshift(xr),sr+=xr.length}Rn!=null&&(this._audioStashedLastSample=Rn);let Hn=Le[0].dts-this._dtsBase;if(this._audioNextDts)Ne=Hn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ne=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Lr=!0);else{let xr=this._audioSegmentInfoList.getLastSampleBefore(Hn);if(xr!=null){let yo=Hn-(xr.originalDts+xr.duration);yo<=3&&(yo=0);let Mi=xr.dts+xr.duration+yo;Ne=Hn-Mi}else Ne=0}if(Lr){let xr=Hn-Ne,yo=this._videoSegmentInfoList.getLastSegmentBefore(Hn);if(yo!=null&&yo.beginDts=1?pn=tr[tr.length-1].duration:pn=Math.floor(tn);let Ka=!1,Ui=null;if(pn>tn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Ka=!0;let Vo=Math.abs(pn-tn),Aa=Math.ceil(Vo/tn),Bn=Ai+tn;pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${Ai+pn} ms, expected: ${Ai+Math.round(tn)} ms, delta: ${Math.round(Vo)} ms, generate: ${Aa} frames`);let mr=gt.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);mr==null&&(pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),mr=Mi),Ui=[];for(let rr=0;rr0){let la=Ui[Ui.length-1];la.duration=di-la.dts}let bi={dts:di,pts:di,cts:0,unit:mr,size:mr.byteLength,duration:0,originalDts:Pi,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ui.push(bi),sr+=bi.size,Bn+=tn}let Hr=Ui[Ui.length-1];Hr.duration=Ai+pn-Hr.dts,pn=Math.round(tn)}tr.push({dts:Ai,pts:Ai,cts:0,unit:yo.unit,size:yo.unit.byteLength,duration:pn,originalDts:Pi,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ka&&tr.push.apply(tr,Ui)}Tn?cr=new Uint8Array(sr):(cr=new Uint8Array(sr),cr[0]=sr>>>24&255,cr[1]=sr>>>16&255,cr[2]=sr>>>8&255,cr[3]=sr&255,cr.set(cn.types.mdat,4));for(let xr=0;xr1&&(Ot=Le.pop(),Lr-=Ot.length),this._videoStashedLastSample!=null){let jr=this._videoStashedLastSample;this._videoStashedLastSample=null,Le.unshift(jr),Lr+=jr.length}Ot!=null&&(this._videoStashedLastSample=Ot);let cr=Le[0].dts-this._dtsBase;if(this._videoNextDts)Ne=cr-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ne=0;else{let jr=this._videoSegmentInfoList.getLastSampleBefore(cr);if(jr!=null){let Pr=cr-(jr.originalDts+jr.duration);Pr<=3&&(Pr=0);let Yi=jr.dts+jr.duration+Pr;Ne=cr-Yi}else Ne=0}let sr=new Nn,Rn=[];for(let jr=0;jr=1?Pi=Rn[Rn.length-1].duration:Pi=Math.floor(this._videoMeta.refSampleDuration),ti){let Ai=new Gn(xr,Mi,Pi,Pr.dts,!0);Ai.fileposition=Pr.fileposition,sr.appendSyncPoint(Ai)}Rn.push({dts:xr,pts:Mi,cts:yo,units:Pr.units,size:Pr.length,isKeyframe:ti,duration:Pi,originalDts:Yi,flags:{isLeading:0,dependsOn:ti?2:1,isDependedOn:ti?1:0,hasRedundancy:0,isNonSync:ti?0:1}})}fr=new Uint8Array(Lr),fr[0]=Lr>>>24&255,fr[1]=Lr>>>16&255,fr[2]=Lr>>>8&255,fr[3]=Lr&255,fr.set(cn.types.mdat,4);for(let jr=0;jr{Le.timestampBase=Pe,Pe+=Le.duration,Le.cors=he.cors,Le.withCredentials=he.withCredentials,Se.referrerPolicy&&(Le.referrerPolicy=Se.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(he,Se){this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(he,Se){this._currentSegmentIndex=he;let Pe=this._mediaDataSource.segments[he],Le=this._ioctl=new De(Pe,this._config,he);Le.onError=this._onIOException.bind(this),Le.onSeeked=this._onIOSeeked.bind(this),Le.onComplete=this._onIOComplete.bind(this),Le.onRedirect=this._onIORedirect.bind(this),Le.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Se?this._demuxer.bindDataSource(this._ioctl):Le.onDataArrival=this._onInitChunkArrival.bind(this),Le.open(Se)}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(he){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let Se=this._searchSegmentIndexContains(he);if(Se===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[Se];if(Pe==null)this._pendingSeekTime=he;else{let Le=Pe.getNearestKeyframe(he);this._remuxer.seek(Le.milliseconds),this._ioctl.seek(Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds}}else{let Pe=this._mediaInfo.segments[Se];if(Pe==null)this._pendingSeekTime=he,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Se);else{let Le=Pe.getNearestKeyframe(he);this._internalAbort(),this._remuxer.seek(he),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Se].timestampBase,this._loadSegment(Se,Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds,this._reportSegmentMediaInfo(Se)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(he){let Se=this._mediaDataSource.segments,Pe=Se.length-1;for(let Le=0;Le0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Le=this._demuxer.parseChunks(he,Se);else if((Pe=Tt.probe(he)).match){this._demuxer=new Tt(Pe,this._config),this._remuxer||(this._remuxer=new jn(this._config));let Ne=this._mediaDataSource;Ne.duration!=null&&!isNaN(Ne.duration)&&(this._demuxer.overridedDuration=Ne.duration),typeof Ne.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ne.hasAudio),typeof Ne.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ne.hasVideo),this._demuxer.timestampBase=Ne.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),Le=this._demuxer.parseChunks(he,Se)}else Pe=null,pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ft.DEMUX_ERROR,Pt.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Le=0;return Le}_onMediaInfo(he){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},he),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,wt.prototype));let Se=Object.assign({},he);Object.setPrototypeOf(Se,wt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Se,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(he){this._emitter.emit(Ft.METADATA_ARRIVED,he)}_onScriptDataArrived(he){this._emitter.emit(Ft.SCRIPTDATA_ARRIVED,he)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(he){let Pe=he+1;Pe0&&Pe[0].originalDts===Le&&(Le=Pe[0].pts),this._emitter.emit(Ft.RECOMMEND_SEEKPOINT,Le)}}_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(he){let Se=this._mediaInfo.segments[he],Pe=Object.assign({},Se);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(Ft.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let he={};he.url=this._ioctl.currentURL,he.hasRedirect=this._ioctl.hasRedirect,he.hasRedirect&&(he.redirectedURL=this._ioctl.currentRedirectedURL),he.speed=this._ioctl.currentSpeed,he.loaderType=this._ioctl.loaderType,he.currentSegmentIndex=this._currentSegmentIndex,he.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Ft.STATISTICS_INFO,he)}}var ar=nr,Kr=function(_n){let he="TransmuxingWorker",Se=null,Pe=sr.bind(this);ge.install(),_n.addEventListener("message",function(Rn){switch(Rn.data.cmd){case"init":Se=new ar(Rn.data.param[0],Rn.data.param[1]),Se.on(Ft.IO_ERROR,Lr.bind(this)),Se.on(Ft.DEMUX_ERROR,Ot.bind(this)),Se.on(Ft.INIT_SEGMENT,Le.bind(this)),Se.on(Ft.MEDIA_SEGMENT,Ne.bind(this)),Se.on(Ft.LOADING_COMPLETE,nt.bind(this)),Se.on(Ft.RECOVERED_EARLY_EOF,lt.bind(this)),Se.on(Ft.MEDIA_INFO,fn.bind(this)),Se.on(Ft.METADATA_ARRIVED,tn.bind(this)),Se.on(Ft.SCRIPTDATA_ARRIVED,Tn.bind(this)),Se.on(Ft.STATISTICS_INFO,fr.bind(this)),Se.on(Ft.RECOMMEND_SEEKPOINT,cr.bind(this));break;case"destroy":Se&&(Se.destroy(),Se=null),_n.postMessage({msg:"destroyed"});break;case"start":Se.start();break;case"stop":Se.stop();break;case"seek":Se.seek(Rn.data.param);break;case"pause":Se.pause();break;case"resume":Se.resume();break;case"logging_config":{let Hn=Rn.data.param;it.applyConfig(Hn),Hn.enableCallback===!0?it.addLogListener(Pe):it.removeLogListener(Pe);break}}});function Le(Rn,Hn){let tr={msg:Ft.INIT_SEGMENT,data:{type:Rn,data:Hn}};_n.postMessage(tr,[Hn.data])}function Ne(Rn,Hn){let tr={msg:Ft.MEDIA_SEGMENT,data:{type:Rn,data:Hn}};_n.postMessage(tr,[Hn.data])}function nt(){let Rn={msg:Ft.LOADING_COMPLETE};_n.postMessage(Rn)}function lt(){let Rn={msg:Ft.RECOVERED_EARLY_EOF};_n.postMessage(Rn)}function fn(Rn){let Hn={msg:Ft.MEDIA_INFO,data:Rn};_n.postMessage(Hn)}function tn(Rn){let Hn={msg:Ft.METADATA_ARRIVED,data:Rn};_n.postMessage(Hn)}function Tn(Rn){let Hn={msg:Ft.SCRIPTDATA_ARRIVED,data:Rn};_n.postMessage(Hn)}function fr(Rn){let Hn={msg:Ft.STATISTICS_INFO,data:Rn};_n.postMessage(Hn)}function Lr(Rn,Hn){_n.postMessage({msg:Ft.IO_ERROR,data:{type:Rn,info:Hn}})}function Ot(Rn,Hn){_n.postMessage({msg:Ft.DEMUX_ERROR,data:{type:Rn,info:Hn}})}function cr(Rn){_n.postMessage({msg:Ft.RECOMMEND_SEEKPOINT,data:Rn})}function sr(Rn,Hn){_n.postMessage({msg:"logcat_callback",data:{type:Rn,logcat:Hn}})}};class Ur{constructor(he,Se){if(this.TAG="Transmuxer",this._emitter=new(ve()),Se.enableWorker&&typeof Worker!="undefined")try{let Pe=ee(18034);this._worker=Pe(Kr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[he,Se]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},it.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:it.getConfig()})}catch(Pe){pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new ar(he,Se)}else this._controller=new ar(he,Se);if(this._controller){let Pe=this._controller;Pe.on(Ft.IO_ERROR,this._onIOError.bind(this)),Pe.on(Ft.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(Ft.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(Ft.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(Ft.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(Ft.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(Ft.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(Ft.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(Ft.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(Ft.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(Ft.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),it.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(he,Se){this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}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(he){this._worker?this._worker.postMessage({cmd:"seek",param:he}):this._controller.seek(he)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.INIT_SEGMENT,he,Se)})}_onMediaSegment(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.MEDIA_SEGMENT,he,Se)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ft.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ft.RECOVERED_EARLY_EOF)})}_onMediaInfo(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.MEDIA_INFO,he)})}_onMetaDataArrived(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.METADATA_ARRIVED,he)})}_onScriptDataArrived(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.SCRIPTDATA_ARRIVED,he)})}_onStatisticsInfo(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.STATISTICS_INFO,he)})}_onIOError(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.IO_ERROR,he,Se)})}_onDemuxError(he,Se){Promise.resolve().then(()=>{this._emitter.emit(Ft.DEMUX_ERROR,he,Se)})}_onRecommendSeekpoint(he){Promise.resolve().then(()=>{this._emitter.emit(Ft.RECOMMEND_SEEKPOINT,he)})}_onLoggingConfigChanged(he){this._worker&&this._worker.postMessage({cmd:"logging_config",param:he})}_onWorkerMessage(he){let Se=he.data,Pe=Se.data;if(Se.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Se.msg){case Ft.INIT_SEGMENT:case Ft.MEDIA_SEGMENT:this._emitter.emit(Se.msg,Pe.type,Pe.data);break;case Ft.LOADING_COMPLETE:case Ft.RECOVERED_EARLY_EOF:this._emitter.emit(Se.msg);break;case Ft.MEDIA_INFO:Object.setPrototypeOf(Pe,wt.prototype),this._emitter.emit(Se.msg,Pe);break;case Ft.METADATA_ARRIVED:case Ft.SCRIPTDATA_ARRIVED:case Ft.STATISTICS_INFO:this._emitter.emit(Se.msg,Pe);break;case Ft.IO_ERROR:case Ft.DEMUX_ERROR:this._emitter.emit(Se.msg,Pe.type,Pe.info);break;case Ft.RECOMMEND_SEEKPOINT:this._emitter.emit(Se.msg,Pe);break;case"logcat_callback":pe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var Ho=Ur,Po={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class pi{constructor(he){this.TAG="MSEController",this._config=he,this._emitter=new(ve()),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 St}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(he,Se){this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}attachMediaElement(he){if(this._mediaSource)throw new ce("MediaSource has been attached to an HTMLMediaElement!");let Se=this._mediaSource=new window.MediaSource;Se.addEventListener("sourceopen",this.e.onSourceOpen),Se.addEventListener("sourceended",this.e.onSourceEnded),Se.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=he,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),he.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let he=this._mediaSource;for(let Se in this._sourceBuffers){let Pe=this._pendingSegments[Se];Pe.splice(0,Pe.length),this._pendingSegments[Se]=null,this._pendingRemoveRanges[Se]=null,this._lastInitSegments[Se]=null;let Le=this._sourceBuffers[Se];if(Le){if(he.readyState!=="closed"){try{he.removeSourceBuffer(Le)}catch(Ne){pe.e(this.TAG,Ne.message)}Le.removeEventListener("error",this.e.onSourceBufferError),Le.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Se]=null,this._sourceBuffers[Se]=null}}if(he.readyState==="open")try{he.endOfStream()}catch(Se){pe.e(this.TAG,Se.message)}he.removeEventListener("sourceopen",this.e.onSourceOpen),he.removeEventListener("sourceended",this.e.onSourceEnded),he.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(he,Se){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(he),this._pendingSegments[he.type].push(he);return}let Pe=he,Le=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(Le+=`;codecs=${Pe.codec}`);let Ne=!1;if(pe.v(this.TAG,"Received Initialization Segment, mimeType: "+Le),this._lastInitSegments[Pe.type]=Pe,Le!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])pe.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${Le}`);else{Ne=!0;try{let nt=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(Le);nt.addEventListener("error",this.e.onSourceBufferError),nt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(nt){pe.e(this.TAG,nt.message),this._emitter.emit(Po.ERROR,{code:nt.code,msg:nt.message});return}}this._mimeTypes[Pe.type]=Le}Se||this._pendingSegments[Pe.type].push(Pe),Ne||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(he){let Se=he;this._pendingSegments[Se.type].push(Se),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[Se.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(he){for(let Se in this._sourceBuffers){if(!this._sourceBuffers[Se])continue;let Pe=this._sourceBuffers[Se];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Ne){pe.e(this.TAG,Ne.message)}this._idrList.clear();let Le=this._pendingSegments[Se];if(Le.splice(0,Le.length),this._mediaSource.readyState!=="closed"){for(let Ne=0;Ne=1&&he-Le.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let he=this._mediaElement.currentTime;for(let Se in this._sourceBuffers){let Pe=this._sourceBuffers[Se];if(Pe){let Le=Pe.buffered,Ne=!1;for(let nt=0;nt=this._config.autoCleanupMaxBackwardDuration){Ne=!0;let tn=he-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Se].push({start:lt,end:tn})}}else fn0&&(isNaN(Se)||Pe>Se)&&(pe.v(this.TAG,`Update MediaSource duration from ${Se} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let he in this._pendingRemoveRanges){if(!this._sourceBuffers[he]||this._sourceBuffers[he].updating)continue;let Se=this._sourceBuffers[he],Pe=this._pendingRemoveRanges[he];for(;Pe.length&&!Se.updating;){let Le=Pe.shift();Se.remove(Le.start,Le.end)}}}_doAppendSegments(){let he=this._pendingSegments;for(let Se in he)if(!(!this._sourceBuffers[Se]||this._sourceBuffers[Se].updating)&&he[Se].length>0){let Pe=he[Se].shift();if(Pe.timestampOffset){let Le=this._sourceBuffers[Se].timestampOffset,Ne=Pe.timestampOffset/1e3;Math.abs(Le-Ne)>.1&&(pe.v(this.TAG,`Update MPEG audio timestampOffset from ${Le} to ${Ne}`),this._sourceBuffers[Se].timestampOffset=Ne),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[Se].appendBuffer(Pe.data),this._isBufferFull=!1,Se==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Le){this._pendingSegments[Se].unshift(Pe),Le.code===22?(this._isBufferFull||this._emitter.emit(Po.BUFFER_FULL),this._isBufferFull=!0):(pe.e(this.TAG,Le.message),this._emitter.emit(Po.ERROR,{code:Le.code,msg:Le.message}))}}}_onSourceOpen(){if(pe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let he=this._pendingSourceBufferInit;for(;he.length;){let Se=he.shift();this.appendInitSegment(Se,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Po.SOURCE_OPEN)}_onSourceEnded(){pe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){pe.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let he=this._pendingSegments;return he.video.length>0||he.audio.length>0}_hasPendingRemoveRanges(){let he=this._pendingRemoveRanges;return he.video.length>0||he.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Po.UPDATE_END)}_onSourceBufferError(he){pe.e(this.TAG,`SourceBuffer Error: ${he}`)}}var sa=pi;const qi={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Vr={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:Pt.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Pt.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Pt.CODEC_UNSUPPORTED};class $o{constructor(he,Se){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ve()),this._config=tt(),typeof Se=="object"&&Object.assign(this._config,Se),he.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");he.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=he,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(he,Se){he===en.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}):he===en.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}attachMediaElement(he){if(this._mediaElement=he,he.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),he.addEventListener("seeking",this.e.onvSeeking),he.addEventListener("canplay",this.e.onvCanPlay),he.addEventListener("stalled",this.e.onvStalled),he.addEventListener("progress",this.e.onvProgress),this._msectl=new sa(this._config),this._msectl.on(Po.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Po.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Po.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Po.ERROR,Se=>{this._emitter.emit(en.ERROR,qi.MEDIA_ERROR,Vr.MEDIA_MSE_ERROR,Se)}),this._msectl.attachMediaElement(he),this._pendingSeekTime!=null)try{he.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Se){}}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 ce("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new ce("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 Ho(this._mediaDataSource,this._config),this._transmuxer.on(Ft.INIT_SEGMENT,(he,Se)=>{this._msectl.appendInitSegment(Se)}),this._transmuxer.on(Ft.MEDIA_SEGMENT,(he,Se)=>{if(this._msectl.appendMediaSegment(Se),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;Se.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ft.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(en.LOADING_COMPLETE)}),this._transmuxer.on(Ft.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(en.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ft.IO_ERROR,(he,Se)=>{this._emitter.emit(en.ERROR,qi.NETWORK_ERROR,he,Se)}),this._transmuxer.on(Ft.DEMUX_ERROR,(he,Se)=>{this._emitter.emit(en.ERROR,qi.MEDIA_ERROR,he,{code:-1,msg:Se})}),this._transmuxer.on(Ft.MEDIA_INFO,he=>{this._mediaInfo=he,this._emitter.emit(en.MEDIA_INFO,Object.assign({},he))}),this._transmuxer.on(Ft.METADATA_ARRIVED,he=>{this._emitter.emit(en.METADATA_ARRIVED,he)}),this._transmuxer.on(Ft.SCRIPTDATA_ARRIVED,he=>{this._emitter.emit(en.SCRIPTDATA_ARRIVED,he)}),this._transmuxer.on(Ft.STATISTICS_INFO,he=>{this._statisticsInfo=this._fillStatisticsInfo(he),this._emitter.emit(en.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ft.RECOMMEND_SEEKPOINT,he=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=he/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(he){this._mediaElement.volume=he}get muted(){return this._mediaElement.muted}set muted(he){this._mediaElement.muted=he}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(he){this._mediaElement?this._internalSeek(he):this._pendingSeekTime=he}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(he){if(he.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return he;let Se=!0,Pe=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();Pe=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):Se=!1;return Se&&(he.decodedFrames=Pe,he.droppedFrames=Le),he}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let he=this._mediaElement.buffered,Se=this._mediaElement.currentTime,Pe=0,Le=0;for(let Ne=0;Ne=Se+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){pe.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let he=this._mediaElement.currentTime,Se=this._mediaElement.buffered,Pe=!1;for(let Le=0;Le=Ne&&he=nt-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(pe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(he){let Se=this._mediaElement.buffered;for(let Pe=0;Pe=Le&&he0){let Ne=this._mediaElement.buffered.start(0);(Ne<1&&he0&&Se.currentTime0){let Le=Pe.start(0);if(Le<1&&Se{this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}):he===en.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(he,Se)}off(he,Se){this._emitter.removeListener(he,Se)}attachMediaElement(he){if(this._mediaElement=he,he.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{he.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Se){}}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 ce("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(he){this._mediaElement.volume=he}get muted(){return this._mediaElement.muted}set muted(he){this._mediaElement.muted=he}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(he){this._mediaElement?this._mediaElement.currentTime=he:this._pendingSeekTime=he}get mediaInfo(){let Se={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(Se.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Se.width=this._mediaElement.videoWidth,Se.height=this._mediaElement.videoHeight)),Se}get statisticsInfo(){let he={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return he;let Se=!0,Pe=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();Pe=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):Se=!1;return Se&&(he.decodedFrames=Pe,he.droppedFrames=Le),he}_onvLoadedMetadata(he){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}}var Lo=Li;ge.install();function Ii(_n,he){let Se=_n;if(Se==null||typeof Se!="object")throw new se("MediaDataSource must be an javascript object!");if(!Se.hasOwnProperty("type"))throw new se("MediaDataSource must has type field to indicate video file type!");switch(Se.type){case"flv":return new Jo(Se,he);default:return new Lo(Se,he)}}function xi(){return Ct.supportMSEH264Playback()}function Bo(){return Ct.getFeatureList()}let Xr={};Xr.createPlayer=Ii,Xr.isSupported=xi,Xr.getFeatureList=Bo,Xr.BaseLoader=a,Xr.LoaderStatus=re,Xr.LoaderErrors=ne,Xr.Events=en,Xr.ErrorTypes=qi,Xr.ErrorDetails=Vr,Xr.FlvPlayer=Jo,Xr.NativePlayer=Lo,Xr.LoggingControl=it,Object.defineProperty(Xr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var La=Xr},38780:function(at,We){"use strict";function ee(){const z=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge{const fe=be[ve];fe!==void 0&&(z[ve]=fe)})}return z}We.Z=ee},66367:function(at,We,ee){"use strict";ee.d(We,{F:function(){return z},Z:function(){return ge}});function z(be){return be!=null&&be===be.window}function ge(be,ve){var fe,pe;if(typeof window=="undefined")return 0;const ie=ve?"scrollTop":"scrollLeft";let de=0;return z(be)?de=be[ve?"pageYOffset":"pageXOffset"]:be instanceof Document?de=be.documentElement[ie]:(be instanceof HTMLElement||be)&&(de=be[ie]),be&&!z(be)&&typeof de!="number"&&(de=(pe=((fe=be.ownerDocument)!==null&&fe!==void 0?fe:be).documentElement)===null||pe===void 0?void 0:pe[ie]),de}},57838:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ge}});var z=ee(67294);function ge(){const[,be]=z.useReducer(ve=>ve+1,0);return be}},58375:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return ve}});var z=ee(96523);function ge(fe,pe,ie,de){const le=ie-pe;return fe/=de/2,fe<1?le/2*fe*fe*fe+pe:le/2*((fe-=2)*fe*fe+2)+pe}var be=ee(66367);function ve(fe){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:de,duration:le=450}=pe,ce=ie(),se=(0,be.Z)(ce,!0),me=Date.now(),re=()=>{const a=Date.now()-me,y=ge(a>le?le:a,se,fe,le);(0,be.F)(ce)?ce.scrollTo(window.pageXOffset,y):ce instanceof Document||ce.constructor.name==="HTMLDocument"?ce.documentElement.scrollTop=y:ce.scrollTop=y,a{var Ce;const{prefixCls:Be,className:Me,rootClassName:mt,children:Qe,indeterminate:pt=!1,style:Ae,onMouseEnter:De,onMouseLeave:Fe,skipGroup:tt=!1,disabled:Ve}=_e,Ct=re(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Mt,direction:en,checkbox:nn}=ve.useContext(fe.E_),it=ve.useContext(le),{isFormItemInput:ct}=ve.useContext(ie.aM),wt=ve.useContext(pe.Z),Vt=(Ce=(it==null?void 0:it.disabled)||Ve)!==null&&Ce!==void 0?Ce:wt,Gt=ve.useRef(Ct.value);ve.useEffect(()=>{it==null||it.registerValue(Ct.value)},[]),ve.useEffect(()=>{if(!tt)return Ct.value!==Gt.current&&(it==null||it.cancelValue(Gt.current),it==null||it.registerValue(Ct.value),Gt.current=Ct.value),()=>it==null?void 0:it.cancelValue(Ct.value)},[Ct.value]);const Ln=Mt("checkbox",Be),[He,on]=(0,ce.ZP)(Ln),In=Object.assign({},Ct);it&&!tt&&(In.onChange=function(){Ct.onChange&&Ct.onChange.apply(Ct,arguments),it.toggleOption&&it.toggleOption({label:Qe,value:Ct.value})},In.name=it.name,In.checked=it.value.includes(Ct.value));const or=ge()(`${Ln}-wrapper`,{[`${Ln}-rtl`]:en==="rtl",[`${Ln}-wrapper-checked`]:In.checked,[`${Ln}-wrapper-disabled`]:Vt,[`${Ln}-wrapper-in-form-item`]:ct},nn==null?void 0:nn.className,Me,mt,on),bn=ge()({[`${Ln}-indeterminate`]:pt},me.A,on),$t=pt?"mixed":void 0;return He(ve.createElement(se.Z,{component:"Checkbox",disabled:Vt},ve.createElement("label",{className:or,style:Object.assign(Object.assign({},nn==null?void 0:nn.style),Ae),onMouseEnter:De,onMouseLeave:Fe},ve.createElement(be.Z,Object.assign({"aria-checked":$t},In,{prefixCls:Ln,className:bn,disabled:Vt,ref:xe})),Qe!==void 0&&ve.createElement("span",null,Qe))))};var y=ve.forwardRef(ne),E=ee(74902),b=ee(10366),x=function(_e,xe){var Ce={};for(var Be in _e)Object.prototype.hasOwnProperty.call(_e,Be)&&xe.indexOf(Be)<0&&(Ce[Be]=_e[Be]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Be=Object.getOwnPropertySymbols(_e);Me{const{defaultValue:Ce,children:Be,options:Me=[],prefixCls:mt,className:Qe,rootClassName:pt,style:Ae,onChange:De}=_e,Fe=x(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:tt,direction:Ve}=ve.useContext(fe.E_),[Ct,Mt]=ve.useState(Fe.value||Ce||[]),[en,nn]=ve.useState([]);ve.useEffect(()=>{"value"in Fe&&Mt(Fe.value||[])},[Fe.value]);const it=ve.useMemo(()=>Me.map(qe=>typeof qe=="string"||typeof qe=="number"?{label:qe,value:qe}:qe),[Me]),ct=qe=>{nn(Je=>Je.filter(Pt=>Pt!==qe))},wt=qe=>{nn(Je=>[].concat((0,E.Z)(Je),[qe]))},Vt=qe=>{const Je=Ct.indexOf(qe.value),Pt=(0,E.Z)(Ct);Je===-1?Pt.push(qe.value):Pt.splice(Je,1),"value"in Fe||Mt(Pt),De==null||De(Pt.filter(Nt=>en.includes(Nt)).sort((Nt,Wt)=>{const dt=it.findIndex(Tt=>Tt.value===Nt),yt=it.findIndex(Tt=>Tt.value===Wt);return dt-yt}))},Gt=tt("checkbox",mt),Ln=`${Gt}-group`,[He,on]=(0,ce.ZP)(Gt),In=(0,b.Z)(Fe,["value","disabled"]),or=Me.length?it.map(qe=>ve.createElement(y,{prefixCls:Gt,key:qe.value.toString(),disabled:"disabled"in qe?qe.disabled:Fe.disabled,value:qe.value,checked:Ct.includes(qe.value),onChange:qe.onChange,className:`${Ln}-item`,style:qe.style,title:qe.title},qe.label)):Be,bn={toggleOption:Vt,value:Ct,disabled:Fe.disabled,name:Fe.name,registerValue:wt,cancelValue:ct},$t=ge()(Ln,{[`${Ln}-rtl`]:Ve==="rtl"},Qe,pt,on);return He(ve.createElement("div",Object.assign({className:$t,style:Ae},In,{ref:xe}),ve.createElement(le.Provider,{value:bn},or)))},oe=ve.forwardRef(te);var ae=ve.memo(oe);const ue=y;ue.Group=ae,ue.__ANT_CHECKBOX=!0;var ye=ue},63185:function(at,We,ee){"use strict";ee.d(We,{C2:function(){return fe}});var z=ee(14747),ge=ee(45503),be=ee(67968);const ve=pe=>{const{checkboxCls:ie}=pe,de=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:pe.marginXS,[`> ${pe.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pe.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,z.oN)(pe))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:pe.checkboxSize,height:pe.checkboxSize,direction:"ltr",backgroundColor:pe.colorBgContainer,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusSM,borderCollapse:"separate",transition:`all ${pe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:pe.checkboxSize/14*5,height:pe.checkboxSize/14*8,border:`${pe.lineWidthBold}px solid ${pe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${pe.motionDurationFast} ${pe.motionEaseInBack}, opacity ${pe.motionDurationFast}`}},"& + span":{paddingInlineStart:pe.paddingXS,paddingInlineEnd:pe.paddingXS}})},{[` ${de}:not(${de}-disabled), ${ie}:not(${ie}-disabled) `]:{[`&:hover ${ie}-inner`]:{borderColor:pe.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:pe.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:pe.colorPrimary,borderColor:pe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${pe.motionDurationMid} ${pe.motionEaseOutBack} ${pe.motionDurationFast}`}}},[` ${de}-checked:not(${de}-disabled), ${ie}-checked:not(${ie}-disabled) `]:{[`&:hover ${ie}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:pe.colorBgContainer,borderColor:pe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:pe.fontSizeLG/2,height:pe.fontSizeLG/2,backgroundColor:pe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,"&:after":{borderColor:pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pe.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:pe.colorTextDisabled}}}]};function fe(pe,ie){const de=(0,ge.TS)(ie,{checkboxCls:`.${pe}`,checkboxSize:ie.controlInteractiveSize});return[ve(de)]}We.ZP=(0,be.Z)("Checkbox",(pe,ie)=>{let{prefixCls:de}=ie;return[fe(de,pe)]})},72565:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return Wa}});var z=ee(94184),ge=ee.n(z),be=ee(1413),ve=ee(97685),fe=ee(67294),pe=ee(73935);function ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var de={};function le(ft,ut){}function ce(ft,ut){}function se(){de={}}function me(ft,ut,Ht){!ut&&!de[Ht]&&(ft(!1,Ht),de[Ht]=!0)}function re(ft,ut){me(le,ft,ut)}function ne(ft,ut){me(ce,ft,ut)}var a=null,y=ee(71002),E=ee(18459);function b(ft,ut,Ht){var Yt=fe.useRef({});return(!("value"in Yt.current)||Ht(Yt.current.condition,ut))&&(Yt.current.value=ft(),Yt.current.condition=ut),Yt.current.value}function x(ft,ut){typeof ft=="function"?ft(ut):(0,y.Z)(ft)==="object"&&ft&&"current"in ft&&(ft.current=ut)}function te(){for(var ft=arguments.length,ut=new Array(ft),Ht=0;Ht0&&arguments[0]!==void 0?arguments[0]:{},ut=ft.mark;return ut?ut.startsWith("data-")?ut:"data-".concat(ut):Ae}function tt(ft){if(ft.attachTo)return ft.attachTo;var ut=document.querySelector("head");return ut||document.body}function Ve(ft){return ft==="queue"?"prependQueue":ft?"prepend":"append"}function Ct(ft){return Array.from((De.get(ft)||ft).children).filter(function(ut){return ut.tagName==="STYLE"})}function Mt(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ie())return null;var Ht=ut.csp,Yt=ut.prepend,xn=document.createElement("style");xn.setAttribute(pt,Ve(Yt)),Ht!=null&&Ht.nonce&&(xn.nonce=Ht==null?void 0:Ht.nonce),xn.innerHTML=ft;var Ar=tt(ut),Dr=Ar.firstChild;if(Yt){if(Yt==="queue"){var lo=Ct(Ar).filter(function(_o){return["prepend","prependQueue"].includes(_o.getAttribute(pt))});if(lo.length)return Ar.insertBefore(xn,lo[lo.length-1].nextSibling),xn}Ar.insertBefore(xn,Dr)}else Ar.appendChild(xn);return xn}function en(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=tt(ut);return Ct(Ht).find(function(Yt){return Yt.getAttribute(Fe(ut))===ft})}function nn(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ht=en(ft,ut);if(Ht){var Yt=tt(ut);Yt.removeChild(Ht)}}function it(ft,ut){var Ht=De.get(ft);if(!Ht||!Qe(document,Ht)){var Yt=Mt("",ut),xn=Yt.parentNode;De.set(ft,xn),ft.removeChild(Yt)}}function ct(){De.clear()}function wt(ft,ut){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Yt=tt(Ht);it(Yt,Ht);var xn=en(ut,Ht);if(xn){var Ar,Dr;if((Ar=Ht.csp)!==null&&Ar!==void 0&&Ar.nonce&&xn.nonce!==((Dr=Ht.csp)===null||Dr===void 0?void 0:Dr.nonce)){var lo;xn.nonce=(lo=Ht.csp)===null||lo===void 0?void 0:lo.nonce}return xn.innerHTML!==ft&&(xn.innerHTML=ft),xn}var _o=Mt(ft,Ht);return _o.setAttribute(Fe(Ht),ut),_o}var Vt;function Gt(ft){if(typeof document=="undefined")return 0;if(ft||Vt===void 0){var ut=document.createElement("div");ut.style.width="100%",ut.style.height="200px";var Ht=document.createElement("div"),Yt=Ht.style;Yt.position="absolute",Yt.top="0",Yt.left="0",Yt.pointerEvents="none",Yt.visibility="hidden",Yt.width="200px",Yt.height="150px",Yt.overflow="hidden",Ht.appendChild(ut),document.body.appendChild(Ht);var xn=ut.offsetWidth;Ht.style.overflow="scroll";var Ar=ut.offsetWidth;xn===Ar&&(Ar=Ht.clientWidth),document.body.removeChild(Ht),Vt=xn-Ar}return Vt}function Ln(ft){var ut=ft.match(/^(.*)px$/),Ht=Number(ut==null?void 0:ut[1]);return Number.isNaN(Ht)?Gt():Ht}function He(ft){if(typeof document=="undefined"||!ft||!(ft instanceof Element))return{width:0,height:0};var ut=getComputedStyle(ft,"::-webkit-scrollbar"),Ht=ut.width,Yt=ut.height;return{width:Ln(Ht),height:Ln(Yt)}}function on(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var In="rc-util-locker-".concat(Date.now()),or=0;function bn(ft){var ut=!!ft,Ht=fe.useState(function(){return or+=1,"".concat(In,"_").concat(or)}),Yt=(0,ve.Z)(Ht,1),xn=Yt[0];Ce(function(){if(ut){var Ar=He(document.body).width,Dr=on();wt(` html body { overflow-y: hidden; `.concat(Dr?"width: calc(100% - ".concat(Ar,"px);"):"",` }`),xn)}else nn(xn);return function(){nn(xn)}},[ut,xn])}var $t=!1;function qe(ft){return typeof ft=="boolean"&&($t=ft),$t}var Je=function(ut){return ut===!1?!1:!ie()||!ut?null:typeof ut=="string"?document.querySelector(ut):typeof ut=="function"?ut():ut},Pt=fe.forwardRef(function(ft,ut){var Ht=ft.open,Yt=ft.autoLock,xn=ft.getContainer,Ar=ft.debug,Dr=ft.autoDestroy,lo=Dr===void 0?!0:Dr,_o=ft.children,uo=fe.useState(Ht),ni=(0,ve.Z)(uo,2),vi=ni[0],Di=ni[1],_t=vi||Ht;fe.useEffect(function(){(lo||Ht)&&Di(Ht)},[Ht,lo]);var Et=fe.useState(function(){return Je(xn)}),jt=(0,ve.Z)(Et,2),Ue=jt[0],zt=jt[1];fe.useEffect(function(){var br=Je(xn);zt(br!=null?br:null)});var ln=mt(_t&&!Ue,Ar),gn=(0,ve.Z)(ln,2),Lt=gn[0],Ut=gn[1],Rt=Ue!=null?Ue:Lt;bn(Yt&&Ht&&ie()&&(Rt===Lt||Rt===document.body));var Pn=null;if(_o&&ae(_o)&&ut){var $n=_o;Pn=$n.ref}var ir=oe(Pn,ut);if(!_t||!ie()||Ue===void 0)return null;var Qn=Rt===!1||qe(),dr=_o;return ut&&(dr=fe.cloneElement(_o,{ref:ir})),fe.createElement(ye.Provider,{value:Ut},Qn?dr:(0,pe.createPortal)(dr,Rt))}),Nt=Pt,Wt=Nt;function dt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var yt=dt()?fe.useLayoutEffect:fe.useEffect,Tt=function(ut,Ht){var Yt=fe.useRef(!0);yt(function(){return ut(Yt.current)},Ht),yt(function(){return Yt.current=!1,function(){Yt.current=!0}},[])},rt=function(ut,Ht){Tt(function(Yt){if(!Yt)return ut()},Ht)},cn=Tt,Ge=fe.createContext(null),gt=fe.createContext({}),Gn=Ge,Nn=ee(4942),St=ee(87462),Qt=ee(62874),hn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ut){var Ht=ut.keyCode;if(ut.altKey&&!ut.ctrlKey||ut.metaKey||Ht>=hn.F1&&Ht<=hn.F12)return!1;switch(Ht){case hn.ALT:case hn.CAPS_LOCK:case hn.CONTEXT_MENU:case hn.CTRL:case hn.DOWN:case hn.END:case hn.ESC:case hn.HOME:case hn.INSERT:case hn.LEFT:case hn.MAC_FF_META:case hn.META:case hn.NUMLOCK:case hn.NUM_CENTER:case hn.PAGE_DOWN:case hn.PAGE_UP:case hn.PAUSE:case hn.PRINT_SCREEN:case hn.RIGHT:case hn.SHIFT:case hn.UP:case hn.WIN_KEY:case hn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ut){if(ut>=hn.ZERO&&ut<=hn.NINE||ut>=hn.NUM_ZERO&&ut<=hn.NUM_MULTIPLY||ut>=hn.A&&ut<=hn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ut===0)return!0;switch(ut){case hn.SPACE:case hn.QUESTION_MARK:case hn.NUM_PLUS:case hn.NUM_MINUS:case hn.NUM_PERIOD:case hn.NUM_DIVISION:case hn.SEMICOLON:case hn.DASH:case hn.EQUALS:case hn.COMMA:case hn.PERIOD:case hn.SLASH:case hn.APOSTROPHE:case hn.SINGLE_QUOTE:case hn.OPEN_SQUARE_BRACKET:case hn.BACKSLASH:case hn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jn=hn,lr=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,Ft=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,nr="".concat(lr," ").concat(Ft).split(/[\s\n]+/),ar="aria-",wo="data-";function Kr(ft,ut){return ft.indexOf(ut)===0}function Ur(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht;ut===!1?Ht={aria:!0,data:!0,attr:!0}:ut===!0?Ht={aria:!0}:Ht=(0,be.Z)({},ut);var Yt={};return Object.keys(ft).forEach(function(xn){(Ht.aria&&(xn==="role"||Kr(xn,ar))||Ht.data&&Kr(xn,wo)||Ht.attr&&nr.includes(xn))&&(Yt[xn]=ft[xn])}),Yt}function Ho(ft){var ut=React.useRef();ut.current=ft;var Ht=React.useCallback(function(){for(var Yt,xn=arguments.length,Ar=new Array(xn),Dr=0;Dr3&&arguments[3]!==void 0?arguments[3]:!1;return ut.length&&Yt&&Ht===void 0&&!get(ft,ut.slice(0,-1))?ft:Ii(ft,ut,Ht,Yt)}function Bo(ft){return _typeof(ft)==="object"&&ft!==null&&Object.getPrototypeOf(ft)===Object.prototype}function Xr(ft){return Array.isArray(ft)?[]:{}}var La=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function _n(){for(var ft=arguments.length,ut=new Array(ft),Ht=0;Ht{const{prefixCls:ut,title:Ht,footer:Yt,extra:xn,closeIcon:Ar,closable:Dr,onClose:lo,headerStyle:_o,drawerStyle:uo,bodyStyle:ni,footerStyle:vi,children:Di}=ft,_t=fe.useCallback(ln=>fe.createElement("button",{type:"button",onClick:lo,"aria-label":"Close",className:`${ut}-close`},ln),[lo]),[Et,jt]=(0,Mi.Z)(Dr,Ar,_t,void 0,!0),Ue=fe.useMemo(()=>!Ht&&!Et?null:fe.createElement("div",{style:_o,className:ge()(`${ut}-header`,{[`${ut}-header-close-only`]:Et&&!Ht&&!xn})},fe.createElement("div",{className:`${ut}-header-title`},jt,Ht&&fe.createElement("div",{className:`${ut}-title`},Ht)),xn&&fe.createElement("div",{className:`${ut}-extra`},xn)),[Et,jt,xn,_o,ut,Ht]),zt=fe.useMemo(()=>{if(!Yt)return null;const ln=`${ut}-footer`;return fe.createElement("div",{className:ln,style:vi},Yt)},[Yt,vi,ut]);return fe.createElement("div",{className:`${ut}-wrapper-body`,style:uo},Ue,fe.createElement("div",{className:`${ut}-body`,style:ni},Di),zt)},pn=ee(4173),Ka=ee(67968),Ui=ee(45503),Aa=ft=>{const{componentCls:ut,motionDurationSlow:Ht}=ft,Yt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ht}`}}};return{[ut]:{[`${ut}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Ht}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ut}-panel-motion`]:{"&-left":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Bn=ft=>{const{componentCls:ut,zIndexPopup:Ht,colorBgMask:Yt,colorBgElevated:xn,motionDurationSlow:Ar,motionDurationMid:Dr,padding:lo,paddingLG:_o,fontSizeLG:uo,lineHeightLG:ni,lineWidth:vi,lineType:Di,colorSplit:_t,marginSM:Et,colorIcon:jt,colorIconHover:Ue,colorText:zt,fontWeightStrong:ln,footerPaddingBlock:gn,footerPaddingInline:Lt}=ft,Ut=`${ut}-content-wrapper`;return{[ut]:{position:"fixed",inset:0,zIndex:Ht,pointerEvents:"none","&-pure":{position:"relative",background:xn,[`&${ut}-left`]:{boxShadow:ft.boxShadowDrawerLeft},[`&${ut}-right`]:{boxShadow:ft.boxShadowDrawerRight},[`&${ut}-top`]:{boxShadow:ft.boxShadowDrawerUp},[`&${ut}-bottom`]:{boxShadow:ft.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ut}-mask`]:{position:"absolute",inset:0,zIndex:Ht,background:Yt,pointerEvents:"auto"},[Ut]:{position:"absolute",zIndex:Ht,maxWidth:"100vw",transition:`all ${Ar}`,"&-hidden":{display:"none"}},[`&-left > ${Ut}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ft.boxShadowDrawerLeft},[`&-right > ${Ut}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ft.boxShadowDrawerRight},[`&-top > ${Ut}`]:{top:0,insetInline:0,boxShadow:ft.boxShadowDrawerUp},[`&-bottom > ${Ut}`]:{bottom:0,insetInline:0,boxShadow:ft.boxShadowDrawerDown},[`${ut}-content`]:{width:"100%",height:"100%",overflow:"auto",background:xn,pointerEvents:"auto"},[`${ut}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ut}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${lo}px ${_o}px`,fontSize:uo,lineHeight:ni,borderBottom:`${vi}px ${Di} ${_t}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ut}-extra`]:{flex:"none"},[`${ut}-close`]:{display:"inline-block",marginInlineEnd:Et,color:jt,fontWeight:ln,fontSize:uo,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Dr}`,textRendering:"auto","&:focus, &:hover":{color:Ue,textDecoration:"none"}},[`${ut}-title`]:{flex:1,margin:0,color:zt,fontWeight:ft.fontWeightStrong,fontSize:uo,lineHeight:ni},[`${ut}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_o,overflow:"auto"},[`${ut}-footer`]:{flexShrink:0,padding:`${gn}px ${Lt}px`,borderTop:`${vi}px ${Di} ${_t}`},"&-rtl":{direction:"rtl"}}}};var mr=(0,Ka.Z)("Drawer",ft=>{const ut=(0,Ui.TS)(ft,{});return[Bn(ut),Aa(ut)]},ft=>({zIndexPopup:ft.zIndexPopupBase,footerPaddingBlock:ft.paddingXS,footerPaddingInline:ft.padding})),Hr=ee(16569),rr=function(ft,ut){var Ht={};for(var Yt in ft)Object.prototype.hasOwnProperty.call(ft,Yt)&&ut.indexOf(Yt)<0&&(Ht[Yt]=ft[Yt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,Yt=Object.getOwnPropertySymbols(ft);xn{var ut;const{rootClassName:Ht,width:Yt,height:xn,size:Ar="default",mask:Dr=!0,push:lo=bi,open:_o,afterOpenChange:uo,onClose:ni,prefixCls:vi,getContainer:Di,style:_t,className:Et,visible:jt,afterVisibleChange:Ue}=ft,zt=rr(ft,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:ln,getPrefixCls:gn,direction:Lt,drawer:Ut}=fe.useContext(xr.E_),Rt=gn("drawer",vi),[Pn,$n]=mr(Rt),ir=Di===void 0&&ln?()=>ln(document.body):Di,Qn=ge()({"no-mask":!Dr,[`${Rt}-rtl`]:Lt==="rtl"},Ht,$n),dr=fe.useMemo(()=>Yt!=null?Yt:Ar==="large"?736:378,[Yt,Ar]),br=fe.useMemo(()=>xn!=null?xn:Ar==="large"?736:378,[xn,Ar]),mn={motionName:(0,ti.m)(Rt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Dt=vn=>({motionName:(0,ti.m)(Rt,`panel-motion-${vn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Jt=(0,Hr.H)();return Pn(fe.createElement(pn.BR,null,fe.createElement(yo.Ux,{status:!0,override:!0},fe.createElement(Yi,Object.assign({prefixCls:Rt,onClose:ni,maskMotion:mn,motion:Dt},zt,{open:_o!=null?_o:jt,mask:Dr,push:lo,width:dr,height:br,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),_t),className:ge()(Ut==null?void 0:Ut.className,Et),rootClassName:Qn,getContainer:ir,afterOpenChange:uo!=null?uo:Ue,panelRef:Jt}),fe.createElement(Ai,Object.assign({prefixCls:Rt},zt,{onClose:ni}))))))},Da=ft=>{const{prefixCls:ut,style:Ht,className:Yt,placement:xn="right"}=ft,Ar=rr(ft,["prefixCls","style","className","placement"]),{getPrefixCls:Dr}=fe.useContext(xr.E_),lo=Dr("drawer",ut),[_o,uo]=mr(lo),ni=ge()(lo,`${lo}-pure`,`${lo}-${xn}`,uo,Yt);return _o(fe.createElement("div",{className:ni,style:Ht},fe.createElement(Ai,Object.assign({prefixCls:lo},Ar))))};la._InternalPanelDoNotUseOrYouWillBeFired=Da;var Wa=la},56153:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return Vs}});var z=ee(67294),ge=ee.t(z,2),be=ee(91034),ve=ee(94184),fe=ee.n(ve),pe=ee(87462),ie=ee(4942),de=ee(97685),le=ee(45987),ce=ee(1413),se=ee(73935);function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re={};function ne(Oe,Xe){}function a(Oe,Xe){}function y(){re={}}function E(Oe,Xe,Ye){!Xe&&!re[Ye]&&(Oe(!1,Ye),re[Ye]=!0)}function b(Oe,Xe){E(ne,Oe,Xe)}function x(Oe,Xe){E(a,Oe,Xe)}var te=null,oe=ee(71002),ae=ee(12060);function ue(Oe,Xe,Ye){var vt=z.useRef({});return(!("value"in vt.current)||Ye(vt.current.condition,Xe))&&(vt.current.value=Oe(),vt.current.condition=Xe),vt.current.value}function ye(Oe,Xe){typeof Oe=="function"?Oe(Xe):(0,oe.Z)(Oe)==="object"&&Oe&&"current"in Oe&&(Oe.current=Xe)}function _e(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye0&&arguments[0]!==void 0?arguments[0]:{},Xe=Oe.mark;return Xe?Xe.startsWith("data-")?Xe:"data-".concat(Xe):Ct}function nn(Oe){if(Oe.attachTo)return Oe.attachTo;var Xe=document.querySelector("head");return Xe||document.body}function it(Oe){return Oe==="queue"?"prependQueue":Oe?"prepend":"append"}function ct(Oe){return Array.from((Mt.get(Oe)||Oe).children).filter(function(Xe){return Xe.tagName==="STYLE"})}function wt(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!me())return null;var Ye=Xe.csp,vt=Xe.prepend,It=document.createElement("style");It.setAttribute(Ve,it(vt)),Ye!=null&&Ye.nonce&&(It.nonce=Ye==null?void 0:Ye.nonce),It.innerHTML=Oe;var rn=nn(Xe),an=rn.firstChild;if(vt){if(vt==="queue"){var An=ct(rn).filter(function(un){return["prepend","prependQueue"].includes(un.getAttribute(Ve))});if(An.length)return rn.insertBefore(It,An[An.length-1].nextSibling),It}rn.insertBefore(It,an)}else rn.appendChild(It);return It}function Vt(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=nn(Xe);return ct(Ye).find(function(vt){return vt.getAttribute(en(Xe))===Oe})}function Gt(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=Vt(Oe,Xe);if(Ye){var vt=nn(Xe);vt.removeChild(Ye)}}function Ln(Oe,Xe){var Ye=Mt.get(Oe);if(!Ye||!tt(document,Ye)){var vt=wt("",Xe),It=vt.parentNode;Mt.set(Oe,It),Oe.removeChild(vt)}}function He(){Mt.clear()}function on(Oe,Xe){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vt=nn(Ye);Ln(vt,Ye);var It=Vt(Xe,Ye);if(It){var rn,an;if((rn=Ye.csp)!==null&&rn!==void 0&&rn.nonce&&It.nonce!==((an=Ye.csp)===null||an===void 0?void 0:an.nonce)){var An;It.nonce=(An=Ye.csp)===null||An===void 0?void 0:An.nonce}return It.innerHTML!==Oe&&(It.innerHTML=Oe),It}var un=wt(Oe,Ye);return un.setAttribute(en(Ye),Xe),un}var In;function or(Oe){if(typeof document=="undefined")return 0;if(Oe||In===void 0){var Xe=document.createElement("div");Xe.style.width="100%",Xe.style.height="200px";var Ye=document.createElement("div"),vt=Ye.style;vt.position="absolute",vt.top="0",vt.left="0",vt.pointerEvents="none",vt.visibility="hidden",vt.width="200px",vt.height="150px",vt.overflow="hidden",Ye.appendChild(Xe),document.body.appendChild(Ye);var It=Xe.offsetWidth;Ye.style.overflow="scroll";var rn=Xe.offsetWidth;It===rn&&(rn=Ye.clientWidth),document.body.removeChild(Ye),In=It-rn}return In}function bn(Oe){var Xe=Oe.match(/^(.*)px$/),Ye=Number(Xe==null?void 0:Xe[1]);return Number.isNaN(Ye)?or():Ye}function $t(Oe){if(typeof document=="undefined"||!Oe||!(Oe instanceof Element))return{width:0,height:0};var Xe=getComputedStyle(Oe,"::-webkit-scrollbar"),Ye=Xe.width,vt=Xe.height;return{width:bn(Ye),height:bn(vt)}}function qe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Je="rc-util-locker-".concat(Date.now()),Pt=0;function Nt(Oe){var Xe=!!Oe,Ye=z.useState(function(){return Pt+=1,"".concat(Je,"_").concat(Pt)}),vt=(0,de.Z)(Ye,1),It=vt[0];pt(function(){if(Xe){var rn=$t(document.body).width,an=qe();on(` html body { overflow-y: hidden; `.concat(an?"width: calc(100% - ".concat(rn,"px);"):"",` }`),It)}else Gt(It);return function(){Gt(It)}},[Xe,It])}var Wt=!1;function dt(Oe){return typeof Oe=="boolean"&&(Wt=Oe),Wt}var yt=function(Xe){return Xe===!1?!1:!me()||!Xe?null:typeof Xe=="string"?document.querySelector(Xe):typeof Xe=="function"?Xe():Xe},Tt=z.forwardRef(function(Oe,Xe){var Ye=Oe.open,vt=Oe.autoLock,It=Oe.getContainer,rn=Oe.debug,an=Oe.autoDestroy,An=an===void 0?!0:an,un=Oe.children,Jn=z.useState(Ye),Cr=(0,de.Z)(Jn,2),Yn=Cr[0],Br=Cr[1],Sr=Yn||Ye;z.useEffect(function(){(An||Ye)&&Br(Ye)},[Ye,An]);var no=z.useState(function(){return yt(It)}),ri=(0,de.Z)(no,2),Uo=ri[0],oi=ri[1];z.useEffect(function(){var va=yt(It);oi(va!=null?va:null)});var Wo=Fe(Sr&&!Uo,rn),No=(0,de.Z)(Wo,2),$r=No[0],Ri=No[1],$i=Uo!=null?Uo:$r;Nt(vt&&Ye&&me()&&($i===$r||$i===document.body));var Gi=null;if(un&&Ce(un)&&Xe){var ba=un;Gi=ba.ref}var Ga=xe(Gi,Xe);if(!Sr||!me()||Uo===void 0)return null;var Zi=$i===!1||dt(),yi=un;return Xe&&(yi=z.cloneElement(un,{ref:Ga})),z.createElement(Me.Provider,{value:Ri},Zi?yi:(0,se.createPortal)(yi,$i))}),rt=Tt,cn=rt,Ge=ee(48555);function gt(Oe){return Oe instanceof HTMLElement||Oe instanceof SVGElement}function Gn(Oe){return gt(Oe)?Oe:Oe instanceof React.Component?ReactDOM.findDOMNode(Oe):null}function Nn(Oe){var Xe;return Oe==null||(Xe=Oe.getRootNode)===null||Xe===void 0?void 0:Xe.call(Oe)}function St(Oe){return Nn(Oe)instanceof ShadowRoot}function Qt(Oe){return St(Oe)?Nn(Oe):null}function hn(Oe){var Xe=z.useRef();Xe.current=Oe;var Ye=z.useCallback(function(){for(var vt,It=arguments.length,rn=new Array(It),an=0;an0&&arguments[0]!==void 0?arguments[0]:[],Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=arguments.length>2?arguments[2]:void 0;return Ye?Oe[0]===Xe[0]:Oe[0]===Xe[0]&&Oe[1]===Xe[1]}function Li(Oe,Xe,Ye,vt){for(var It=Ye.points,rn=Object.keys(Oe),an=0;an1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Oe)?Xe:Oe}function Xr(Oe){return Bo(parseFloat(Oe),0)}function La(Oe,Xe){var Ye=(0,ce.Z)({},Oe);return(Xe||[]).forEach(function(vt){if(!(vt instanceof HTMLBodyElement||vt instanceof HTMLHtmlElement)){var It=Ii(vt).getComputedStyle(vt),rn=It.overflow,an=It.overflowClipMargin,An=It.borderTopWidth,un=It.borderBottomWidth,Jn=It.borderLeftWidth,Cr=It.borderRightWidth,Yn=vt.getBoundingClientRect(),Br=vt.offsetHeight,Sr=vt.clientHeight,no=vt.offsetWidth,ri=vt.clientWidth,Uo=Xr(An),oi=Xr(un),Wo=Xr(Jn),No=Xr(Cr),$r=Bo(Math.round(Yn.width/no*1e3)/1e3),Ri=Bo(Math.round(Yn.height/Br*1e3)/1e3),$i=(no-ri-Wo-No)*$r,Gi=(Br-Sr-Uo-oi)*Ri,ba=Uo*Ri,Ga=oi*Ri,Zi=Wo*$r,yi=No*$r,va=0,Ma=0;if(rn==="clip"){var ta=Xr(an);va=ta*$r,Ma=ta*Ri}var gi=Yn.x+Zi-va,Wi=Yn.y+ba-Ma,ko=gi+Yn.width+2*va-Zi-yi-$i,Er=Wi+Yn.height+2*Ma-ba-Ga-Gi;Ye.left=Math.max(Ye.left,gi),Ye.top=Math.max(Ye.top,Wi),Ye.right=Math.min(Ye.right,ko),Ye.bottom=Math.min(Ye.bottom,Er)}}),Ye}function _n(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ye="".concat(Xe),vt=Ye.match(/^(.*)\%$/);return vt?Oe*(parseFloat(vt[1])/100):parseFloat(Ye)}function he(Oe,Xe){var Ye=Xe||[],vt=(0,de.Z)(Ye,2),It=vt[0],rn=vt[1];return[_n(Oe.width,It),_n(Oe.height,rn)]}function Se(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Oe[0],Oe[1]]}function Pe(Oe,Xe){var Ye=Xe[0],vt=Xe[1],It,rn;return Ye==="t"?rn=Oe.y:Ye==="b"?rn=Oe.y+Oe.height:rn=Oe.y+Oe.height/2,vt==="l"?It=Oe.x:vt==="r"?It=Oe.x+Oe.width:It=Oe.x+Oe.width/2,{x:It,y:rn}}function Le(Oe,Xe){var Ye={t:"b",b:"t",l:"r",r:"l"};return Oe.map(function(vt,It){return It===Xe?Ye[vt]||"c":vt}).join("")}function Ne(Oe,Xe,Ye,vt,It,rn,an){var An=z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:It[vt]||{}}),un=(0,de.Z)(An,2),Jn=un[0],Cr=un[1],Yn=z.useRef(0),Br=z.useMemo(function(){return Xe?xi(Xe):[]},[Xe]),Sr=z.useRef({}),no=function(){Sr.current={}};Oe||no();var ri=hn(function(){if(Xe&&Ye&&Oe){let Gr=function(Co,Zr){var Io=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Te,Yo=ji.x+Co,ki=ji.y+Zr,hi=Yo+Ki,Ea=ki+ii,Ca=Math.max(Yo,Io.left),Do=Math.max(ki,Io.top),Ba=Math.min(hi,Io.right),Kn=Math.min(Ea,Io.bottom);return Math.max(0,(Ba-Ca)*(Kn-Do))},Ao=function(){Xa=ji.y+Eo,ys=Xa+ii,eo=ji.x+mo,Vi=eo+Ki};var Wo,No,$r=Xe,Ri=$r.ownerDocument,$i=Ii($r),Gi=$i.getComputedStyle($r),ba=Gi.width,Ga=Gi.height,Zi=Gi.position,yi=$r.style.left,va=$r.style.top,Ma=$r.style.right,ta=$r.style.bottom,gi=(0,ce.Z)((0,ce.Z)({},It[vt]),rn),Wi=Ri.createElement("div");(Wo=$r.parentElement)===null||Wo===void 0||Wo.appendChild(Wi),Wi.style.left="".concat($r.offsetLeft,"px"),Wi.style.top="".concat($r.offsetTop,"px"),Wi.style.position=Zi,Wi.style.height="".concat($r.offsetHeight,"px"),Wi.style.width="".concat($r.offsetWidth,"px"),$r.style.left="0",$r.style.top="0",$r.style.right="auto",$r.style.bottom="auto";var ko;if(Array.isArray(Ye))ko={x:Ye[0],y:Ye[1],width:0,height:0};else{var Er=Ye.getBoundingClientRect();ko={x:Er.x,y:Er.y,width:Er.width,height:Er.height}}var ji=$r.getBoundingClientRect(),Ua=Ri.documentElement,ss=Ua.clientWidth,Oa=Ua.clientHeight,us=Ua.scrollWidth,ds=Ua.scrollHeight,Bi=Ua.scrollTop,ai=Ua.scrollLeft,ii=ji.height,Ki=ji.width,Ni=ko.height,gs=ko.width,Ts={left:0,top:0,right:ss,bottom:Oa},Gs={left:-ai,top:-Bi,right:us-ai,bottom:ds-Bi},Za=gi.htmlRegion,os="visible",Es="visibleFirst";Za!=="scroll"&&Za!==Es&&(Za=os);var is=Za===Es,na=La(Gs,Br),To=La(Ts,Br),Te=Za===os?To:na,ze=is?To:Te;$r.style.left="auto",$r.style.top="auto",$r.style.right="0",$r.style.bottom="0";var Ke=$r.getBoundingClientRect();$r.style.left=yi,$r.style.top=va,$r.style.right=Ma,$r.style.bottom=ta,(No=$r.parentElement)===null||No===void 0||No.removeChild(Wi);var ur=Bo(Math.round(Ki/parseFloat(ba)*1e3)/1e3),En=Bo(Math.round(ii/parseFloat(Ga)*1e3)/1e3);if(ur===0||En===0||gt(Ye)&&!$o(Ye))return;var dn=gi.offset,Cn=gi.targetOffset,Kt=he(ji,dn),yn=(0,de.Z)(Kt,2),zn=yn[0],bo=yn[1],Yr=he(ko,Cn),Oo=(0,de.Z)(Yr,2),Fr=Oo[0],Ko=Oo[1];ko.x-=Fr,ko.y-=Ko;var qr=gi.points||[],ci=(0,de.Z)(qr,2),xo=ci[0],si=ci[1],Fi=Se(si),fo=Se(xo),zi=Pe(ko,Fi),Xn=Pe(ji,fo),Ei=(0,ce.Z)({},gi),mo=zi.x-Xn.x+zn,Eo=zi.y-Xn.y+bo,Ra=Gr(mo,Eo),yr=Gr(mo,Eo,To),Qi=Pe(ko,["t","l"]),ui=Pe(ji,["t","l"]),kr=Pe(ko,["b","r"]),So=Pe(ji,["b","r"]),li=gi.overflow||{},fi=li.adjustX,zs=li.adjustY,Os=li.shiftX,Cs=li.shiftY,Us=function(Zr){return typeof Zr=="boolean"?Zr:Zr>=0},Xa,ys,eo,Vi;Ao();var Qa=Us(zs),Is=fo[0]===Fi[0];if(Qa&&fo[0]==="t"&&(ys>ze.bottom||Sr.current.bt)){var Ia=Eo;Is?Ia-=ii-Ni:Ia=Qi.y-So.y-bo;var ls=Gr(mo,Ia),Ha=Gr(mo,Ia,To);ls>Ra||ls===Ra&&(!is||Ha>=yr)?(Sr.current.bt=!0,Eo=Ia,bo=-bo,Ei.points=[Le(fo,0),Le(Fi,0)]):Sr.current.bt=!1}if(Qa&&fo[0]==="b"&&(XaRa||Ee===Ra&&(!is||we>=yr)?(Sr.current.tb=!0,Eo=Sa,bo=-bo,Ei.points=[Le(fo,0),Le(Fi,0)]):Sr.current.tb=!1}var Re=Us(fi),Ie=fo[1]===Fi[1];if(Re&&fo[1]==="l"&&(Vi>ze.right||Sr.current.rl)){var je=mo;Ie?je-=Ki-gs:je=Qi.x-So.x-zn;var Ze=Gr(je,Eo),ot=Gr(je,Eo,To);Ze>Ra||Ze===Ra&&(!is||ot>=yr)?(Sr.current.rl=!0,mo=je,zn=-zn,Ei.points=[Le(fo,1),Le(Fi,1)]):Sr.current.rl=!1}if(Re&&fo[1]==="r"&&(eoRa||st===Ra&&(!is||bt>=yr)?(Sr.current.lr=!0,mo=ht,zn=-zn,Ei.points=[Le(fo,1),Le(Fi,1)]):Sr.current.lr=!1}Ao();var Bt=Os===!0?0:Os;typeof Bt=="number"&&(eoTo.right&&(mo-=Vi-To.right-zn,ko.x>To.right-Bt&&(mo+=ko.x-To.right+Bt)));var xt=Cs===!0?0:Cs;typeof xt=="number"&&(XaTo.bottom&&(Eo-=ys-To.bottom-bo,ko.y>To.bottom-xt&&(Eo+=ko.y-To.bottom+xt)));var qt=ji.x+mo,Xt=qt+Ki,sn=ji.y+Eo,kn=sn+ii,Mn=ko.x,Zn=Mn+gs,Un=ko.y,qn=Un+Ni,Ir=Math.max(qt,Mn),Qr=Math.min(Xt,Zn),Mr=(Ir+Qr)/2,vo=Mr-qt,Mo=Math.max(sn,Un),vr=Math.min(kn,qn),Rr=(Mo+vr)/2,hr=Rr-sn;an==null||an(Xe,Ei);var er=Ke.right-ji.x-(mo+ji.width),wr=Ke.bottom-ji.y-(Eo+ji.height);Cr({ready:!0,offsetX:mo/ur,offsetY:Eo/En,offsetR:er/ur,offsetB:wr/En,arrowX:vo/ur,arrowY:hr/En,scaleX:ur,scaleY:En,align:Ei})}}),Uo=function(){Yn.current+=1;var No=Yn.current;Promise.resolve().then(function(){Yn.current===No&&ri()})},oi=function(){Cr(function(No){return(0,ce.Z)((0,ce.Z)({},No),{},{ready:!1})})};return Dn(oi,[vt]),Dn(function(){Oe||oi()},[Oe]),[Jn.ready,Jn.offsetX,Jn.offsetY,Jn.offsetR,Jn.offsetB,Jn.arrowX,Jn.arrowY,Jn.scaleX,Jn.scaleY,Jn.align,Uo]}function nt(Oe,Xe,Ye,vt,It){Dn(function(){if(Oe&&Xe&&Ye){let Yn=function(){vt(),It()};var rn=Xe,an=Ye,An=xi(rn),un=xi(an),Jn=Ii(an),Cr=new Set([Jn].concat((0,mt.Z)(An),(0,mt.Z)(un)));return Cr.forEach(function(Br){Br.addEventListener("scroll",Yn,{passive:!0})}),Jn.addEventListener("resize",Yn,{passive:!0}),vt(),function(){Cr.forEach(function(Br){Br.removeEventListener("scroll",Yn),Jn.removeEventListener("resize",Yn)})}}},[Oe,Xe,Ye])}function lt(Oe){var Xe=React.useRef(!1),Ye=React.useState(Oe),vt=_slicedToArray(Ye,2),It=vt[0],rn=vt[1];React.useEffect(function(){return Xe.current=!1,function(){Xe.current=!0}},[]);function an(An,un){un&&Xe.current||rn(An)}return[It,an]}function fn(Oe){return Oe!==void 0}function tn(Oe,Xe){var Ye=Xe||{},vt=Ye.defaultValue,It=Ye.value,rn=Ye.onChange,an=Ye.postState,An=useState(function(){return fn(It)?It:fn(vt)?typeof vt=="function"?vt():vt:typeof Oe=="function"?Oe():Oe}),un=_slicedToArray(An,2),Jn=un[0],Cr=un[1],Yn=It!==void 0?It:Jn,Br=an?an(Yn):Yn,Sr=useEvent(rn),no=useState([Yn]),ri=_slicedToArray(no,2),Uo=ri[0],oi=ri[1];useLayoutUpdateEffect(function(){var No=Uo[0];Jn!==No&&Sr(Jn,No)},[Uo]),useLayoutUpdateEffect(function(){fn(It)||Cr(It)},[It]);var Wo=useEvent(function(No,$r){Cr(No,$r),oi([Yn],$r)});return[Br,Wo]}var Tn=ee(95845);function fr(Oe,Xe,Ye){var vt=z.useRef({});return(!("value"in vt.current)||Ye(vt.current.condition,Xe))&&(vt.current.value=Oe(),vt.current.condition=Xe),vt.current.value}function Lr(Oe,Xe){typeof Oe=="function"?Oe(Xe):(0,oe.Z)(Oe)==="object"&&Oe&&"current"in Oe&&(Oe.current=Xe)}function Ot(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye3&&arguments[3]!==void 0?arguments[3]:!1;return Xe.length&&vt&&Ye===void 0&&!get(Oe,Xe.slice(0,-1))?Oe:Hn(Oe,Xe,Ye,vt)}function jr(Oe){return _typeof(Oe)==="object"&&Oe!==null&&Object.getPrototypeOf(Oe)===Object.prototype}function Pr(Oe){return Array.isArray(Oe)?[]:{}}var Yi=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ti(){for(var Oe=arguments.length,Xe=new Array(Oe),Ye=0;Ye1&&arguments[1]!==void 0?arguments[1]:1;Hr+=1;var vt=Hr;function It(rn){if(rn===0)di(vt),Xe();else{var an=Bn(function(){It(rn-1)});rr.set(vt,an)}}return It(Ye),vt};bi.cancel=function(Oe){var Xe=rr.get(Oe);return di(Xe),mr(Xe)};var la=bi;function Da(Oe,Xe,Ye,vt,It,rn,an,An){var un=z.useRef(Oe),Jn=z.useRef(!1);un.current!==Oe&&(Jn.current=!0,un.current=Oe),z.useEffect(function(){var Cr=la(function(){Jn.current=!1});return function(){la.cancel(Cr)}},[Oe]),z.useEffect(function(){if(Xe&&vt&&(!It||rn)){var Cr=function(){var Zi=!1,yi=function(ta){var gi=ta.target;Zi=an(gi)},va=function(ta){var gi=ta.target;!Jn.current&&un.current&&!Zi&&!an(gi)&&An(!1)};return[yi,va]},Yn=Cr(),Br=(0,de.Z)(Yn,2),Sr=Br[0],no=Br[1],ri=Cr(),Uo=(0,de.Z)(ri,2),oi=Uo[0],Wo=Uo[1],No=Ii(vt);No.addEventListener("mousedown",Sr,!0),No.addEventListener("click",no,!0),No.addEventListener("contextmenu",no,!0);var $r=Qt(Ye);if($r&&($r.addEventListener("mousedown",oi,!0),$r.addEventListener("click",Wo,!0),$r.addEventListener("contextmenu",Wo,!0)),0)var Ri,$i,Gi,ba;return function(){No.removeEventListener("mousedown",Sr,!0),No.removeEventListener("click",no,!0),No.removeEventListener("contextmenu",no,!0),$r&&($r.removeEventListener("mousedown",oi,!0),$r.removeEventListener("click",Wo,!0),$r.removeEventListener("contextmenu",Wo,!0))}}},[Xe,Ye,vt,It,rn])}function Wa(Oe){return Oe instanceof HTMLElement||Oe instanceof SVGElement}function ft(Oe){return Wa(Oe)?Oe:Oe instanceof z.Component?se.findDOMNode(Oe):null}function ut(Oe,Xe){var Ye={};return Ye[Oe.toLowerCase()]=Xe.toLowerCase(),Ye["Webkit".concat(Oe)]="webkit".concat(Xe),Ye["Moz".concat(Oe)]="moz".concat(Xe),Ye["ms".concat(Oe)]="MS".concat(Xe),Ye["O".concat(Oe)]="o".concat(Xe.toLowerCase()),Ye}function Ht(Oe,Xe){var Ye={animationend:ut("Animation","AnimationEnd"),transitionend:ut("Transition","TransitionEnd")};return Oe&&("AnimationEvent"in Xe||delete Ye.animationend.animation,"TransitionEvent"in Xe||delete Ye.transitionend.transition),Ye}var Yt=Ht(me(),typeof window!="undefined"?window:{}),xn={};if(me()){var Ar=document.createElement("div");xn=Ar.style}var Dr={};function lo(Oe){if(Dr[Oe])return Dr[Oe];var Xe=Yt[Oe];if(Xe)for(var Ye=Object.keys(Xe),vt=Ye.length,It=0;It1&&arguments[1]!==void 0?arguments[1]:1;Qn+=1;var vt=Qn;function It(rn){if(rn===0)br(vt),Xe();else{var an=$n(function(){It(rn-1)});dr.set(vt,an)}}return It(Ye),vt};mn.cancel=function(Oe){var Xe=dr.get(Oe);return br(Xe),ir(Xe)};var Dt=mn,Jt=function(){var Oe=z.useRef(null);function Xe(){Dt.cancel(Oe.current)}function Ye(vt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Xe();var rn=Dt(function(){It<=1?vt({isCanceled:function(){return rn!==Oe.current}}):Ye(vt,It-1)});Oe.current=rn}return z.useEffect(function(){return function(){Xe()}},[]),[Ye,Xe]},vn=me()?z.useLayoutEffect:z.useEffect,Vn=vn,pr=[gn,Lt,Ut,Rt],Nr=!1,ao=!0;function Tr(Oe){return Oe===Ut||Oe===Rt}var $e=function(Oe,Xe){var Ye=Pn(ln),vt=(0,de.Z)(Ye,2),It=vt[0],rn=vt[1],an=Jt(),An=(0,de.Z)(an,2),un=An[0],Jn=An[1];function Cr(){rn(gn,!0)}return Vn(function(){if(It!==ln&&It!==Rt){var Yn=pr.indexOf(It),Br=pr[Yn+1],Sr=Xe(It);Sr===Nr?rn(Br,!0):un(function(no){function ri(){no.isCanceled()||rn(Br,!0)}Sr===!0?ri():Promise.resolve(Sr).then(ri)})}},[Oe,It]),z.useEffect(function(){return function(){Jn()}},[]),[Cr,It]},ke=function(Oe){var Xe=(0,z.useRef)(),Ye=(0,z.useRef)(Oe);Ye.current=Oe;var vt=z.useCallback(function(an){Ye.current(an)},[]);function It(an){an&&(an.removeEventListener(Di,vt),an.removeEventListener(vi,vt))}function rn(an){Xe.current&&Xe.current!==an&&It(Xe.current),an&&an!==Xe.current&&(an.addEventListener(Di,vt),an.addEventListener(vi,vt),Xe.current=an)}return z.useEffect(function(){return function(){It(Xe.current)}},[]),[rn,It]};function et(Oe,Xe,Ye,vt){var It=vt.motionEnter,rn=It===void 0?!0:It,an=vt.motionAppear,An=an===void 0?!0:an,un=vt.motionLeave,Jn=un===void 0?!0:un,Cr=vt.motionDeadline,Yn=vt.motionLeaveImmediately,Br=vt.onAppearPrepare,Sr=vt.onEnterPrepare,no=vt.onLeavePrepare,ri=vt.onAppearStart,Uo=vt.onEnterStart,oi=vt.onLeaveStart,Wo=vt.onAppearActive,No=vt.onEnterActive,$r=vt.onLeaveActive,Ri=vt.onAppearEnd,$i=vt.onEnterEnd,Gi=vt.onLeaveEnd,ba=vt.onVisibleChanged,Ga=Pn(),Zi=(0,de.Z)(Ga,2),yi=Zi[0],va=Zi[1],Ma=Pn(Et),ta=(0,de.Z)(Ma,2),gi=ta[0],Wi=ta[1],ko=Pn(null),Er=(0,de.Z)(ko,2),ji=Er[0],Ua=Er[1],ss=(0,z.useRef)(!1),Oa=(0,z.useRef)(null);function us(){return Ye()}var ds=(0,z.useRef)(!1);function Bi(na){var To=us();if(!(na&&!na.deadline&&na.target!==To)){var Te=ds.current,ze;gi===jt&&Te?ze=Ri==null?void 0:Ri(To,na):gi===Ue&&Te?ze=$i==null?void 0:$i(To,na):gi===zt&&Te&&(ze=Gi==null?void 0:Gi(To,na)),gi!==Et&&Te&&ze!==!1&&(Wi(Et,!0),Ua(null,!0))}}var ai=ke(Bi),ii=(0,de.Z)(ai,1),Ki=ii[0],Ni=z.useMemo(function(){var na,To,Te;switch(gi){case jt:return na={},(0,ie.Z)(na,gn,Br),(0,ie.Z)(na,Lt,ri),(0,ie.Z)(na,Ut,Wo),na;case Ue:return To={},(0,ie.Z)(To,gn,Sr),(0,ie.Z)(To,Lt,Uo),(0,ie.Z)(To,Ut,No),To;case zt:return Te={},(0,ie.Z)(Te,gn,no),(0,ie.Z)(Te,Lt,oi),(0,ie.Z)(Te,Ut,$r),Te;default:return{}}},[gi]),gs=$e(gi,function(na){if(na===gn){var To=Ni[gn];return To?To(us()):Nr}if(Za in Ni){var Te;Ua(((Te=Ni[Za])===null||Te===void 0?void 0:Te.call(Ni,us(),null))||null)}return Za===Ut&&(Ki(us()),Cr>0&&(clearTimeout(Oa.current),Oa.current=setTimeout(function(){Bi({deadline:!0})},Cr))),ao}),Ts=(0,de.Z)(gs,2),Gs=Ts[0],Za=Ts[1],os=Tr(Za);ds.current=os,Vn(function(){va(Xe);var na=ss.current;if(ss.current=!0,!!Oe){var To;!na&&Xe&&An&&(To=jt),na&&Xe&&rn&&(To=Ue),(na&&!Xe&&Jn||!na&&Yn&&!Xe&&Jn)&&(To=zt),To&&(Wi(To),Gs())}},[Xe]),(0,z.useEffect)(function(){(gi===jt&&!An||gi===Ue&&!rn||gi===zt&&!Jn)&&Wi(Et)},[An,rn,Jn]),(0,z.useEffect)(function(){return function(){ss.current=!1,clearTimeout(Oa.current)}},[]);var Es=z.useRef(!1);(0,z.useEffect)(function(){yi&&(Es.current=!0),yi!==void 0&&gi===Et&&((Es.current||yi)&&(ba==null||ba(yi)),Es.current=!0)},[yi,gi]);var is=ji;return Ni[gn]&&Za===Lt&&(is=(0,ce.Z)({transition:"none"},is)),[gi,Za,is,yi!=null?yi:Xe]}var At=ee(15671),kt=ee(43144),Zt=ee(60136),Sn=ee(51630),wn=function(Oe){(0,Zt.Z)(Ye,Oe);var Xe=(0,Sn.Z)(Ye);function Ye(){return(0,At.Z)(this,Ye),Xe.apply(this,arguments)}return(0,kt.Z)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(z.Component),Fn=wn;function On(Oe){var Xe=Oe;(0,oe.Z)(Oe)==="object"&&(Xe=Oe.transitionSupport);function Ye(It){return!!(It.motionName&&Xe)}var vt=z.forwardRef(function(It,rn){var an=It.visible,An=an===void 0?!0:an,un=It.removeOnLeave,Jn=un===void 0?!0:un,Cr=It.forceRender,Yn=It.children,Br=It.motionName,Sr=It.leavedClassName,no=It.eventProps,ri=Ye(It),Uo=(0,z.useRef)(),oi=(0,z.useRef)();function Wo(){try{return Uo.current instanceof HTMLElement?Uo.current:ft(oi.current)}catch(ko){return null}}var No=et(ri,An,Wo,It),$r=(0,de.Z)(No,4),Ri=$r[0],$i=$r[1],Gi=$r[2],ba=$r[3],Ga=z.useRef(ba);ba&&(Ga.current=!0);var Zi=z.useCallback(function(ko){Uo.current=ko,ye(rn,ko)},[rn]),yi,va=(0,ce.Z)((0,ce.Z)({},no),{},{visible:An});if(!Yn)yi=null;else if(Ri===Et||!Ye(It))ba?yi=Yn((0,ce.Z)({},va),Zi):!Jn&&Ga.current&&Sr?yi=Yn((0,ce.Z)((0,ce.Z)({},va),{},{className:Sr}),Zi):Cr||!Jn&&!Sr?yi=Yn((0,ce.Z)((0,ce.Z)({},va),{},{style:{display:"none"}}),Zi):yi=null;else{var Ma,ta;$i===gn?ta="prepare":Tr($i)?ta="active":$i===Lt&&(ta="start"),yi=Yn((0,ce.Z)((0,ce.Z)({},va),{},{className:fe()(_t(Br,Ri),(Ma={},(0,ie.Z)(Ma,_t(Br,"".concat(Ri,"-").concat(ta)),ta),(0,ie.Z)(Ma,Br,typeof Br=="string"),Ma)),style:Gi}),Zi)}if(z.isValidElement(yi)&&Ce(yi)){var gi=yi,Wi=gi.ref;Wi||(yi=z.cloneElement(yi,{ref:Zi}))}return z.createElement(Fn,{ref:oi},yi)});return vt.displayName="CSSMotion",vt}var Wn=On(ni),gr=ee(97326),so="add",co="keep",Jr="remove",po="removed";function Ro(Oe){var Xe;return Oe&&(0,oe.Z)(Oe)==="object"&&"key"in Oe?Xe=Oe:Xe={key:Oe},(0,ce.Z)((0,ce.Z)({},Xe),{},{key:String(Xe.key)})}function Fo(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Oe.map(Ro)}function zr(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],vt=0,It=Xe.length,rn=Fo(Oe),an=Fo(Xe);rn.forEach(function(Jn){for(var Cr=!1,Yn=vt;Yn1});return un.forEach(function(Jn){Ye=Ye.filter(function(Cr){var Yn=Cr.key,Br=Cr.status;return Yn!==Jn||Br!==Jr}),Ye.forEach(function(Cr){Cr.key===Jn&&(Cr.status=co)})}),Ye}var Zo=["component","children","onVisibleChanged","onAllRemoved"],ho=["status"],qo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function wi(Oe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wn,Ye=function(vt){(0,Zt.Z)(rn,vt);var It=(0,Sn.Z)(rn);function rn(){var an;(0,At.Z)(this,rn);for(var An=arguments.length,un=new Array(An),Jn=0;Jn0,us=z.useState(!No||!Oa),ds=(0,de.Z)(us,2),Bi=ds[0],ai=ds[1];if(Dn(function(){!Bi&&Oa&&an&&ai(!0)},[Bi,Oa,an]),!Bi)return null;var ii="auto",Ki={left:"-1000vw",top:"-1000vh",right:ii,bottom:ii};if(Zi||!un){var Ni,gs=ri.points,Ts=ri.dynamicInset||((Ni=ri._experimental)===null||Ni===void 0?void 0:Ni.dynamicInset),Gs=Ts&&gs[0][1]==="r",Za=Ts&&gs[0][0]==="b";Gs?(Ki.right=Ma,Ki.left=ii):(Ki.left=yi,Ki.right=ii),Za?(Ki.bottom=ta,Ki.top=ii):(Ki.top=va,Ki.bottom=ii)}var os={};return ko&&(ko.includes("height")&&ji?os.height=ji:ko.includes("minHeight")&&ji&&(os.minHeight=ji),ko.includes("width")&&Er?os.width=Er:ko.includes("minWidth")&&Er&&(os.minWidth=Er)),un||(os.pointerEvents="none"),z.createElement(Ri,{open:Wo||ss,getContainer:No&&function(){return No(an)},autoDestroy:$r},z.createElement(Hi,{prefixCls:It,open:un,zIndex:$i,mask:Br,motion:oi}),z.createElement(Ge.Z,{onResize:gi,disabled:!un},function(Es){return z.createElement(ei,(0,pe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Wo,leavedClassName:"".concat(It,"-hidden")},Uo,{onAppearPrepare:Wi,onEnterPrepare:Wi,visible:un,onVisibleChanged:function(na){var To;Uo==null||(To=Uo.onVisibleChanged)===null||To===void 0||To.call(Uo,na),An(na)}}),function(is,na){var To=is.className,Te=is.style,ze=fe()(It,To,vt);return z.createElement("div",{ref:Ot(Es,Xe,na),className:ze,style:(0,ce.Z)((0,ce.Z)((0,ce.Z)((0,ce.Z)({"--arrow-x":"".concat(no.x||0,"px"),"--arrow-y":"".concat(no.y||0,"px")},Ki),os),Te),{},{boxSizing:"border-box",zIndex:$i},rn),onMouseEnter:Gi,onMouseLeave:ba,onPointerEnter:Ga,onClick:Yn},Sr&&z.createElement(ca,{prefixCls:It,arrow:Sr,arrowPos:no,align:ri}),z.createElement(Xo,{cache:!un&&!Cr},Ua))})}))}),Si=zo,xa=z.forwardRef(function(Oe,Xe){var Ye=Oe.children,vt=Oe.getTriggerDOMNode,It=sr(Ye),rn=z.useCallback(function(An){Lr(Xe,vt?vt(An):An)},[vt]),an=cr(rn,Ye.ref);return It?z.cloneElement(Ye,{ref:an}):Ye}),za=xa,Qo=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ea(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cn,Xe=z.forwardRef(function(Ye,vt){var It=Ye.prefixCls,rn=It===void 0?"rc-trigger-popup":It,an=Ye.children,An=Ye.action,un=An===void 0?"hover":An,Jn=Ye.showAction,Cr=Ye.hideAction,Yn=Ye.popupVisible,Br=Ye.defaultPopupVisible,Sr=Ye.onPopupVisibleChange,no=Ye.afterPopupVisibleChange,ri=Ye.mouseEnterDelay,Uo=Ye.mouseLeaveDelay,oi=Uo===void 0?.1:Uo,Wo=Ye.focusDelay,No=Ye.blurDelay,$r=Ye.mask,Ri=Ye.maskClosable,$i=Ri===void 0?!0:Ri,Gi=Ye.getPopupContainer,ba=Ye.forceRender,Ga=Ye.autoDestroy,Zi=Ye.destroyPopupOnHide,yi=Ye.popup,va=Ye.popupClassName,Ma=Ye.popupStyle,ta=Ye.popupPlacement,gi=Ye.builtinPlacements,Wi=gi===void 0?{}:gi,ko=Ye.popupAlign,Er=Ye.zIndex,ji=Ye.stretch,Ua=Ye.getPopupClassNameFromAlign,ss=Ye.fresh,Oa=Ye.alignPoint,us=Ye.onPopupClick,ds=Ye.onPopupAlign,Bi=Ye.arrow,ai=Ye.popupMotion,ii=Ye.maskMotion,Ki=Ye.popupTransitionName,Ni=Ye.popupAnimation,gs=Ye.maskTransitionName,Ts=Ye.maskAnimation,Gs=Ye.className,Za=Ye.getTriggerDOMNode,os=(0,le.Z)(Ye,Qo),Es=Ga||Zi||!1,is=z.useState(!1),na=(0,de.Z)(is,2),To=na[0],Te=na[1];Dn(function(){Te(Po())},[]);var ze=z.useRef({}),Ke=z.useContext(sa),ur=z.useMemo(function(){return{registerSubPopup:function(ro,Go){ze.current[ro]=Go,Ke==null||Ke.registerSubPopup(ro,Go)}}},[Ke]),En=ar(),dn=z.useState(null),Cn=(0,de.Z)(dn,2),Kt=Cn[0],yn=Cn[1],zn=hn(function(Kn){gt(Kn)&&Kt!==Kn&&yn(Kn),Ke==null||Ke.registerSubPopup(En,Kn)}),bo=z.useState(null),Yr=(0,de.Z)(bo,2),Oo=Yr[0],Fr=Yr[1],Ko=hn(function(Kn){gt(Kn)&&Oo!==Kn&&Fr(Kn)}),qr=z.Children.only(an),ci=(qr==null?void 0:qr.props)||{},xo={},si=hn(function(Kn){var ro,Go,ra=Oo;return(ra==null?void 0:ra.contains(Kn))||((ro=Qt(ra))===null||ro===void 0?void 0:ro.host)===Kn||Kn===ra||(Kt==null?void 0:Kt.contains(Kn))||((Go=Qt(Kt))===null||Go===void 0?void 0:Go.host)===Kn||Kn===Kt||Object.values(ze.current).some(function(_r){return(_r==null?void 0:_r.contains(Kn))||Kn===_r})}),Fi=Lo(rn,ai,Ni,Ki),fo=Lo(rn,ii,Ts,gs),zi=z.useState(Br||!1),Xn=(0,de.Z)(zi,2),Ei=Xn[0],mo=Xn[1],Eo=Yn!=null?Yn:Ei,Ra=hn(function(Kn){Yn===void 0&&mo(Kn)});Dn(function(){mo(Yn||!1)},[Yn]);var yr=z.useRef(Eo);yr.current=Eo;var Qi=hn(function(Kn){(0,se.flushSync)(function(){Eo!==Kn&&(Ra(Kn),Sr==null||Sr(Kn))})}),ui=z.useRef(),kr=function(){clearTimeout(ui.current)},So=function(ro){var Go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;kr(),Go===0?Qi(ro):ui.current=setTimeout(function(){Qi(ro)},Go*1e3)};z.useEffect(function(){return kr},[]);var li=z.useState(!1),fi=(0,de.Z)(li,2),zs=fi[0],Os=fi[1];Dn(function(Kn){(!Kn||Eo)&&Os(!0)},[Eo]);var Cs=z.useState(null),Us=(0,de.Z)(Cs,2),Xa=Us[0],ys=Us[1],eo=z.useState([0,0]),Vi=(0,de.Z)(eo,2),Qa=Vi[0],Is=Vi[1],Ia=function(ro){Is([ro.clientX,ro.clientY])},ls=Ne(Eo,Kt,Oa?Qa:Oo,ta,Wi,ko,ds),Ha=(0,de.Z)(ls,11),Sa=Ha[0],Ee=Ha[1],we=Ha[2],Re=Ha[3],Ie=Ha[4],je=Ha[5],Ze=Ha[6],ot=Ha[7],ht=Ha[8],st=Ha[9],bt=Ha[10],Bt=Vr(To,un,Jn,Cr),xt=(0,de.Z)(Bt,2),qt=xt[0],Xt=xt[1],sn=qt.has("click"),kn=Xt.has("click")||Xt.has("contextMenu"),Mn=hn(function(){zs||bt()}),Zn=function(){yr.current&&Oa&&kn&&So(!1)};nt(Eo,Oo,Kt,Mn,Zn),Dn(function(){Mn()},[Qa,ta]),Dn(function(){Eo&&!(Wi!=null&&Wi[ta])&&Mn()},[JSON.stringify(ko)]);var Un=z.useMemo(function(){var Kn=Li(Wi,rn,st,Oa);return fe()(Kn,Ua==null?void 0:Ua(st))},[st,Ua,Wi,rn,Oa]);z.useImperativeHandle(vt,function(){return{forceAlign:Mn}});var qn=z.useState(0),Ir=(0,de.Z)(qn,2),Qr=Ir[0],Mr=Ir[1],vo=z.useState(0),Mo=(0,de.Z)(vo,2),vr=Mo[0],Rr=Mo[1],hr=function(){if(ji&&Oo){var ro=Oo.getBoundingClientRect();Mr(ro.width),Rr(ro.height)}},er=function(){hr(),Mn()},wr=function(ro){Os(!1),bt(),no==null||no(ro)},Gr=function(){return new Promise(function(ro){hr(),ys(function(){return ro})})};Dn(function(){Xa&&(bt(),Xa(),ys(null))},[Xa]);function Ao(Kn,ro,Go,ra){xo[Kn]=function(_r){var oo;ra==null||ra(_r),So(ro,Go);for(var io=arguments.length,Wr=new Array(io>1?io-1:0),_i=1;_i1?Go-1:0),_r=1;_r1?Go-1:0),_r=1;_r=Or.F1&&Ye<=Or.F12)return!1;switch(Ye){case Or.ALT:case Or.CAPS_LOCK:case Or.CONTEXT_MENU:case Or.CTRL:case Or.DOWN:case Or.END:case Or.ESC:case Or.HOME:case Or.INSERT:case Or.LEFT:case Or.MAC_FF_META:case Or.META:case Or.NUMLOCK:case Or.NUM_CENTER:case Or.PAGE_DOWN:case Or.PAGE_UP:case Or.PAUSE:case Or.PRINT_SCREEN:case Or.RIGHT:case Or.SHIFT:case Or.UP:case Or.WIN_KEY:case Or.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Xe){if(Xe>=Or.ZERO&&Xe<=Or.NINE||Xe>=Or.NUM_ZERO&&Xe<=Or.NUM_MULTIPLY||Xe>=Or.A&&Xe<=Or.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Xe===0)return!0;switch(Xe){case Or.SPACE:case Or.QUESTION_MARK:case Or.NUM_PLUS:case Or.NUM_MINUS:case Or.NUM_PERIOD:case Or.NUM_DIVISION:case Or.SEMICOLON:case Or.DASH:case Or.EQUALS:case Or.COMMA:case Or.PERIOD:case Or.SLASH:case Or.APOSTROPHE:case Or.SINGLE_QUOTE:case Or.OPEN_SQUARE_BRACKET:case Or.BACKSLASH:case Or.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},fa=Or,ha=fa.ESC,ma=fa.TAB;function aa(Oe){var Xe=Oe.visible,Ye=Oe.triggerRef,vt=Oe.onVisibleChange,It=Oe.autoFocus,rn=Oe.overlayRef,an=z.useRef(!1),An=function(){if(Xe){var Yn,Br;(Yn=Ye.current)===null||Yn===void 0||(Br=Yn.focus)===null||Br===void 0||Br.call(Yn),vt==null||vt(!1)}},un=function(){var Yn;return(Yn=rn.current)!==null&&Yn!==void 0&&Yn.focus?(rn.current.focus(),an.current=!0,!0):!1},Jn=function(Yn){switch(Yn.keyCode){case ha:An();break;case ma:{var Br=!1;an.current||(Br=un()),Br?Yn.preventDefault():An();break}}};z.useEffect(function(){return Xe?(window.addEventListener("keydown",Jn),It&&Dt(un,3),function(){window.removeEventListener("keydown",Jn),an.current=!1}):function(){an.current=!1}},[Xe])}var Ta=(0,z.forwardRef)(function(Oe,Xe){var Ye=Oe.overlay,vt=Oe.arrow,It=Oe.prefixCls,rn=(0,z.useMemo)(function(){var An;return typeof Ye=="function"?An=Ye():An=Ye,An},[Ye]),an=_e(Xe,rn==null?void 0:rn.ref);return z.createElement(z.Fragment,null,vt&&z.createElement("div",{className:"".concat(It,"-arrow")}),z.cloneElement(rn,{ref:Ce(rn)?an:void 0}))}),da=Ta,pa={adjustX:1,adjustY:1},$a=[0,0],rs={topLeft:{points:["bl","tl"],overflow:pa,offset:[0,-4],targetOffset:$a},top:{points:["bc","tc"],overflow:pa,offset:[0,-4],targetOffset:$a},topRight:{points:["br","tr"],overflow:pa,offset:[0,-4],targetOffset:$a},bottomLeft:{points:["tl","bl"],overflow:pa,offset:[0,4],targetOffset:$a},bottom:{points:["tc","bc"],overflow:pa,offset:[0,4],targetOffset:$a},bottomRight:{points:["tr","br"],overflow:pa,offset:[0,4],targetOffset:$a}},Xi=rs,ga=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Pa(Oe,Xe){var Ye,vt=Oe.arrow,It=vt===void 0?!1:vt,rn=Oe.prefixCls,an=rn===void 0?"rc-dropdown":rn,An=Oe.transitionName,un=Oe.animation,Jn=Oe.align,Cr=Oe.placement,Yn=Cr===void 0?"bottomLeft":Cr,Br=Oe.placements,Sr=Br===void 0?Xi:Br,no=Oe.getPopupContainer,ri=Oe.showAction,Uo=Oe.hideAction,oi=Oe.overlayClassName,Wo=Oe.overlayStyle,No=Oe.visible,$r=Oe.trigger,Ri=$r===void 0?["hover"]:$r,$i=Oe.autoFocus,Gi=Oe.overlay,ba=Oe.children,Ga=Oe.onVisibleChange,Zi=(0,le.Z)(Oe,ga),yi=z.useState(),va=(0,de.Z)(yi,2),Ma=va[0],ta=va[1],gi="visible"in Oe?No:Ma,Wi=z.useRef(null),ko=z.useRef(null),Er=z.useRef(null);z.useImperativeHandle(Xe,function(){return Wi.current});var ji=function(Ki){ta(Ki),Ga==null||Ga(Ki)};aa({visible:gi,triggerRef:Er,onVisibleChange:ji,autoFocus:$i,overlayRef:ko});var Ua=function(Ki){var Ni=Oe.onOverlayClick;ta(!1),Ni&&Ni(Ki)},ss=function(){return z.createElement(da,{ref:ko,overlay:Gi,prefixCls:an,arrow:It})},Oa=function(){return typeof Gi=="function"?ss:ss()},us=function(){var Ki=Oe.minOverlayWidthMatchTrigger,Ni=Oe.alignPoint;return"minOverlayWidthMatchTrigger"in Oe?Ki:!Ni},ds=function(){var Ki=Oe.openClassName;return Ki!==void 0?Ki:"".concat(an,"-open")},Bi=z.cloneElement(ba,{className:fe()((Ye=ba.props)===null||Ye===void 0?void 0:Ye.className,gi&&ds()),ref:Ce(ba)?_e(Er,ba.ref):void 0}),ai=Uo;return!ai&&Ri.indexOf("contextMenu")!==-1&&(ai=["click"]),z.createElement(ua,(0,pe.Z)({builtinPlacements:Sr},Zi,{prefixCls:an,ref:Wi,popupClassName:fe()(oi,(0,ie.Z)({},"".concat(an,"-show-arrow"),It)),popupStyle:Wo,action:Ri,showAction:ri,hideAction:ai,popupPlacement:Yn,popupAlign:Jn,popupTransitionName:An,popupAnimation:un,popupVisible:gi,stretch:us()?"minWidth":"",popup:Oa(),onPopupVisibleChange:ji,onPopupClick:Ua,getPopupContainer:no}),Bi)}var as=z.forwardRef(Pa),As=as,Ds=ee(60276),Fs=ee(5663),hs=ee(10366),ts=ee(80636),ns=ee(8745),ms=ee(96159),bs=ee(53124),el=ee(68508),tl=ee(76529),Rs=ee(46605),Hs=ee(66748);const nl=null,ks=Oe=>{const{menu:Xe,arrow:Ye,prefixCls:vt,children:It,trigger:rn,disabled:an,dropdownRender:An,getPopupContainer:un,overlayClassName:Jn,rootClassName:Cr,open:Yn,onOpenChange:Br,visible:Sr,onVisibleChange:no,mouseEnterDelay:ri=.15,mouseLeaveDelay:Uo=.1,autoAdjustOverflow:oi=!0,placement:Wo="",overlay:No,transitionName:$r}=Oe,{getPopupContainer:Ri,getPrefixCls:$i,direction:Gi}=z.useContext(bs.E_),ba=z.useMemo(()=>{const Bi=$i();return $r!==void 0?$r:Wo.includes("top")?`${Bi}-slide-down`:`${Bi}-slide-up`},[$i,Wo,$r]),Ga=z.useMemo(()=>Wo?Wo.includes("Center")?Wo.slice(0,Wo.indexOf("Center")):Wo:Gi==="rtl"?"bottomRight":"bottomLeft",[Wo,Gi]),Zi=$i("dropdown",vt),[yi,va]=(0,Hs.Z)(Zi),[,Ma]=(0,Rs.Z)(),ta=z.Children.only(It),gi=(0,ms.Tm)(ta,{className:fe()(`${Zi}-trigger`,{[`${Zi}-rtl`]:Gi==="rtl"},ta.props.className),disabled:an}),Wi=an?[]:rn;let ko;Wi&&Wi.includes("contextMenu")&&(ko=!0);const[Er,ji]=(0,Fs.Z)(!1,{value:Yn!=null?Yn:Sr}),Ua=(0,Ds.useEvent)(Bi=>{Br==null||Br(Bi),no==null||no(Bi),ji(Bi)}),ss=fe()(Jn,Cr,va,{[`${Zi}-rtl`]:Gi==="rtl"}),Oa=(0,ts.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:oi,offset:Ma.marginXXS,arrowWidth:Ye?Ma.sizePopupArrow:0,borderRadius:Ma.borderRadius}),us=z.useCallback(()=>{ji(!1)},[]),ds=()=>{let Bi;return Xe!=null&&Xe.items?Bi=z.createElement(el.default,Object.assign({},Xe)):typeof No=="function"?Bi=No():Bi=No,An&&(Bi=An(Bi)),Bi=z.Children.only(typeof Bi=="string"?z.createElement("span",null,Bi):Bi),z.createElement(tl.J,{prefixCls:`${Zi}-menu`,expandIcon:z.createElement("span",{className:`${Zi}-menu-submenu-arrow`},z.createElement(be.Z,{className:`${Zi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:us,validator:ai=>{let{mode:ii}=ai}},Bi)};return yi(z.createElement(As,Object.assign({alignPoint:ko},(0,hs.Z)(Oe,["rootClassName"]),{mouseEnterDelay:ri,mouseLeaveDelay:Uo,visible:Er,builtinPlacements:Oa,arrow:!!Ye,overlayClassName:ss,prefixCls:Zi,getPopupContainer:un||Ri,transitionName:ba,trigger:Wi,overlay:ds,placement:Ga,onVisibleChange:Ua}),gi))};function Ns(Oe){return Object.assign(Object.assign({},Oe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const js=(0,ns.Z)(ks,"dropdown",Oe=>Oe,Ns),$s=Oe=>z.createElement(js,Object.assign({},Oe),z.createElement("span",null));ks._InternalPanelDoNotUseOrYouWillBeFired=$s;var Vs=ks},85418:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return a}});var z=ee(56153),ge=ee(94184),be=ee.n(ge),ve=ee(67294),fe=ee(25877),pe=ee(71577),ie=ee(53124),de=ee(93421),le=ee(4173),ce=ee(66748),se=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,x=Object.getOwnPropertySymbols(y);te{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ve.useContext(ie.E_),{prefixCls:te,type:oe="default",danger:ae,disabled:ue,loading:ye,onClick:_e,htmlType:xe,children:Ce,className:Be,menu:Me,arrow:mt,autoFocus:Qe,overlay:pt,trigger:Ae,align:De,open:Fe,onOpenChange:tt,placement:Ve,getPopupContainer:Ct,href:Mt,icon:en=ve.createElement(fe.Z,null),title:nn,buttonsRender:it=rt=>rt,mouseEnterDelay:ct,mouseLeaveDelay:wt,overlayClassName:Vt,overlayStyle:Gt,destroyPopupOnHide:Ln,dropdownRender:He}=y,on=se(y,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),In=b("dropdown",te),or=`${In}-button`,[bn,$t]=(0,ce.Z)(In),qe={menu:Me,arrow:mt,autoFocus:Qe,align:De,disabled:ue,trigger:ue?[]:Ae,onOpenChange:tt,getPopupContainer:Ct||E,mouseEnterDelay:ct,mouseLeaveDelay:wt,overlayClassName:Vt,overlayStyle:Gt,destroyPopupOnHide:Ln,dropdownRender:He},{compactSize:Je,compactItemClassnames:Pt}=(0,le.ri)(In,x),Nt=be()(or,Pt,Be,$t);"overlay"in y&&(qe.overlay=pt),"open"in y&&(qe.open=Fe),"placement"in y?qe.placement=Ve:qe.placement=x==="rtl"?"bottomLeft":"bottomRight";const Wt=ve.createElement(pe.ZP,{type:oe,danger:ae,disabled:ue,loading:ye,onClick:_e,htmlType:xe,href:Mt,title:nn},Ce),dt=ve.createElement(pe.ZP,{type:oe,danger:ae,icon:en}),[yt,Tt]=it([Wt,dt]);return bn(ve.createElement(de.Z.Compact,Object.assign({className:Nt,size:Je,block:!0},on),yt,ve.createElement(z.Z,Object.assign({},qe),Tt)))};me.__ANT_BUTTON=!0;var re=me;const ne=z.Z;ne.Button=re;var a=ne},66748:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return se}});var z=ee(14747),ge=ee(67771),be=ee(33297),ve=ee(50438),fe=ee(97414),pe=ee(67968),ie=ee(45503),le=me=>{const{componentCls:re,menuCls:ne,colorError:a,colorTextLightSolid:y}=me,E=`${ne}-item`;return{[`${re}, ${re}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ce=me=>{const{componentCls:re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:te,dropdownPaddingVertical:oe,fontSize:ae,dropdownEdgeChildPadding:ue,colorTextDisabled:ye,fontSizeIcon:_e,controlPaddingHorizontal:xe,colorBgElevated:Ce}=me;return[{[re]:Object.assign(Object.assign({},(0,z.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:_e}},[`${re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:_e},[`${x}-down::before`]:{transition:`transform ${te}`}},[`${re}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomLeft, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomLeft, &${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottom, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottom, &${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomRight, &${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomRight`]:{animationName:ge.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topLeft, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topLeft, &${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-top, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-top, &${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topRight, &${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topRight`]:{animationName:ge.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomLeft, &${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottom, &${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomRight`]:{animationName:ge.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topLeft, &${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-top, &${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topRight`]:{animationName:ge.ly}})},(0,fe.ZP)(me,{colorBg:Ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${re} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${re}, ${re}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ue,listStyleType:"none",backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary},(0,z.Qy)(me)),{[`${ne}-item-group-title`]:{padding:`${oe}px ${xe}px`,color:me.colorTextDescription,transition:`all ${te}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:ae,marginInlineEnd:me.marginXS,fontSize:me.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${te}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${xe}px`,color:me.colorText,fontWeight:"normal",fontSize:ae,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${te}`,borderRadius:me.borderRadiusSM,"&:hover, &-active":{backgroundColor:me.controlItemBgHover}},(0,z.Qy)(me)),{"&-selected":{color:me.colorPrimary,backgroundColor:me.controlItemBgActive,"&:hover, &-active":{backgroundColor:me.controlItemBgActiveHover}},"&-disabled":{color:ye,cursor:"not-allowed","&:hover":{color:ye,backgroundColor:Ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:me.colorSplit},[`${re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:me.paddingXS,[`${re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:me.colorTextDescription,fontSize:_e,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${me.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:xe+me.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${re}-menu-submenu-title`]:{[`&, ${re}-menu-submenu-arrow-icon`]:{color:ye,backgroundColor:Ce,cursor:"not-allowed"}},[`${ne}-submenu-selected ${re}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,ge.oN)(me,"slide-up"),(0,ge.oN)(me,"slide-down"),(0,be.Fm)(me,"move-up"),(0,be.Fm)(me,"move-down"),(0,ve._y)(me,"zoom-big")]]};var se=(0,pe.Z)("Dropdown",(me,re)=>{let{rootPrefixCls:ne}=re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:te,componentCls:oe,borderRadiusLG:ae}=me,ue=(E-b*x)/2,{dropdownArrowOffset:ye}=(0,fe.fS)({contentRadius:ae}),_e=(0,ie.TS)(me,{menuCls:`${oe}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ye,dropdownPaddingVertical:ue,dropdownEdgeChildPadding:te});return[ce(_e),le(_e)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},25378:function(at,We,ee){"use strict";var z=ee(67294),ge=ee(14075),be=ee(57838),ve=ee(74443);function fe(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,z.useRef)({}),de=(0,be.Z)(),le=(0,ve.ZP)();return(0,ge.Z)(()=>{const ce=le.subscribe(se=>{ie.current=se,pe&&de()});return()=>le.unsubscribe(ce)},[]),ie.current}We.Z=fe},71322:function(at,We,ee){"use strict";ee.d(We,{D:function(){return x},Z:function(){return ae}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ve=be,fe=ee(74643),pe=function(ye,_e){return ge.createElement(fe.Z,(0,z.Z)({},ye,{ref:_e,icon:ve}))},ie=ge.forwardRef(pe),de=ee(22751),le=ee(91034),ce=ee(94184),se=ee.n(ce),me=ee(10366),ne=ue=>!isNaN(parseFloat(ue))&&isFinite(ue),a=ee(53124),y=ee(84321),E=function(ue,ye){var _e={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&ye.indexOf(xe)<0&&(_e[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,xe=Object.getOwnPropertySymbols(ue);Ce{let ue=0;return function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ue+=1,`${ye}${ue}`}})();var ae=ge.forwardRef((ue,ye)=>{const{prefixCls:_e,className:xe,trigger:Ce,children:Be,defaultCollapsed:Me=!1,theme:mt="dark",style:Qe={},collapsible:pt=!1,reverseArrow:Ae=!1,width:De=200,collapsedWidth:Fe=80,zeroWidthTriggerStyle:tt,breakpoint:Ve,onCollapse:Ct,onBreakpoint:Mt}=ue,en=E(ue,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nn}=(0,ge.useContext)(y.Gs),[it,ct]=(0,ge.useState)("collapsed"in ue?ue.collapsed:Me),[wt,Vt]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in ue&&ct(ue.collapsed)},[ue.collapsed]);const Gt=(bn,$t)=>{"collapsed"in ue||ct(bn),Ct==null||Ct(bn,$t)},Ln=(0,ge.useRef)();Ln.current=bn=>{Vt(bn.matches),Mt==null||Mt(bn.matches),it!==bn.matches&&Gt(bn.matches,"responsive")},(0,ge.useEffect)(()=>{function bn(qe){return Ln.current(qe)}let $t;if(typeof window!="undefined"){const{matchMedia:qe}=window;if(qe&&Ve&&Ve in b){$t=qe(`(max-width: ${b[Ve]})`);try{$t.addEventListener("change",bn)}catch(Je){$t.addListener(bn)}bn($t)}}return()=>{try{$t==null||$t.removeEventListener("change",bn)}catch(qe){$t==null||$t.removeListener(bn)}}},[Ve]),(0,ge.useEffect)(()=>{const bn=te("ant-sider-");return nn.addSider(bn),()=>nn.removeSider(bn)},[]);const He=()=>{Gt(!it,"clickTrigger")},{getPrefixCls:on}=(0,ge.useContext)(a.E_),In=()=>{const bn=on("layout-sider",_e),$t=(0,me.Z)(en,["collapsed"]),qe=it?Fe:De,Je=ne(qe)?`${qe}px`:String(qe),Pt=parseFloat(String(Fe||0))===0?ge.createElement("span",{onClick:He,className:se()(`${bn}-zero-width-trigger`,`${bn}-zero-width-trigger-${Ae?"right":"left"}`),style:tt},Ce||ge.createElement(ie,null)):null,dt={expanded:Ae?ge.createElement(le.Z,null):ge.createElement(de.Z,null),collapsed:Ae?ge.createElement(de.Z,null):ge.createElement(le.Z,null)}[it?"collapsed":"expanded"],yt=Ce!==null?Pt||ge.createElement("div",{className:`${bn}-trigger`,onClick:He,style:{width:Je}},Ce||dt):null,Tt=Object.assign(Object.assign({},Qe),{flex:`0 0 ${Je}`,maxWidth:Je,minWidth:Je,width:Je}),rt=se()(bn,`${bn}-${mt}`,{[`${bn}-collapsed`]:!!it,[`${bn}-has-trigger`]:pt&&Ce!==null&&!Pt,[`${bn}-below`]:!!wt,[`${bn}-zero-width`]:parseFloat(Je)===0},xe);return ge.createElement("aside",Object.assign({className:rt},$t,{style:Tt,ref:ye}),ge.createElement("div",{className:`${bn}-children`},Be),pt||wt&&Pt?yt:null)},or=ge.useMemo(()=>({siderCollapsed:it}),[it]);return ge.createElement(x.Provider,{value:or},In())})},84321:function(at,We,ee){"use strict";ee.d(We,{VY:function(){return te},$_:function(){return x},h4:function(){return b},Gs:function(){return re},ZP:function(){return oe}});var z=ee(74902),ge=ee(94184),be=ee.n(ge),ve=ee(10366),fe=ee(67294),pe=ee(53124),ie=ee(67968),le=ae=>{const{componentCls:ue,bodyBg:ye,lightSiderBg:_e,lightTriggerBg:xe,lightTriggerColor:Ce}=ae;return{[`${ue}-sider-light`]:{background:_e,[`${ue}-sider-trigger`]:{color:Ce,background:xe},[`${ue}-sider-zero-width-trigger`]:{color:Ce,background:xe,border:`1px solid ${ye}`,borderInlineStart:0}}}};const ce=ae=>{const{antCls:ue,componentCls:ye,colorText:_e,triggerColor:xe,footerBg:Ce,triggerBg:Be,headerHeight:Me,headerPadding:mt,headerColor:Qe,footerPadding:pt,triggerHeight:Ae,zeroTriggerHeight:De,zeroTriggerWidth:Fe,motionDurationMid:tt,motionDurationSlow:Ve,fontSize:Ct,borderRadius:Mt,bodyBg:en,headerBg:nn,siderBg:it}=ae;return{[ye]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:en,"&, *":{boxSizing:"border-box"},[`&${ye}-has-sider`]:{flexDirection:"row",[`> ${ye}, > ${ye}-content`]:{width:0}},[`${ye}-header, &${ye}-footer`]:{flex:"0 0 auto"},[`${ye}-sider`]:{position:"relative",minWidth:0,background:it,transition:`all ${tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ue}-menu${ue}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ae},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ae,color:xe,lineHeight:`${Ae}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Fe,zIndex:1,width:Fe,height:De,color:xe,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:it,borderStartStartRadius:0,borderStartEndRadius:Mt,borderEndEndRadius:Mt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ve} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ve}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Fe,borderStartStartRadius:Mt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Mt}}}}},le(ae)),{"&-rtl":{direction:"rtl"}}),[`${ye}-header`]:{height:Me,padding:mt,color:Qe,lineHeight:`${Me}px`,background:nn,[`${ue}-menu`]:{lineHeight:"inherit"}},[`${ye}-footer`]:{padding:pt,color:_e,fontSize:Ct,background:Ce},[`${ye}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ie.Z)("Layout",ae=>[ce(ae)],ae=>{const{colorBgLayout:ue,controlHeight:ye,controlHeightLG:_e,colorText:xe,controlHeightSM:Ce,marginXXS:Be,colorTextLightSolid:Me,colorBgContainer:mt}=ae,Qe=_e*1.25;return{colorBgHeader:"#001529",colorBgBody:ue,colorBgTrigger:"#002140",bodyBg:ue,headerBg:"#001529",headerHeight:ye*2,headerPadding:`0 ${Qe}px`,headerColor:xe,footerPadding:`${Ce}px ${Qe}px`,footerBg:ue,siderBg:"#001529",triggerHeight:_e+Be*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:_e,zeroTriggerHeight:_e,lightSiderBg:mt,lightTriggerBg:mt,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(ae,ue){var ye={};for(var _e in ae)Object.prototype.hasOwnProperty.call(ae,_e)&&ue.indexOf(_e)<0&&(ye[_e]=ae[_e]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(ae);xe<_e.length;xe++)ue.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(ae,_e[xe])&&(ye[_e[xe]]=ae[_e[xe]]);return ye};const re=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(ae){let{suffixCls:ue,tagName:ye,displayName:_e}=ae;return xe=>fe.forwardRef((Be,Me)=>fe.createElement(xe,Object.assign({ref:Me,suffixCls:ue,tagName:ye},Be)))}const a=fe.forwardRef((ae,ue)=>{const{prefixCls:ye,suffixCls:_e,className:xe,tagName:Ce}=ae,Be=me(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=fe.useContext(pe.E_),mt=Me("layout",ye),[Qe,pt]=se(mt),Ae=_e?`${mt}-${_e}`:mt;return Qe(fe.createElement(Ce,Object.assign({className:be()(ye||Ae,xe,pt),ref:ue},Be)))}),y=fe.forwardRef((ae,ue)=>{const{direction:ye}=fe.useContext(pe.E_),[_e,xe]=fe.useState([]),{prefixCls:Ce,className:Be,rootClassName:Me,children:mt,hasSider:Qe,tagName:pt,style:Ae}=ae,De=me(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Fe=(0,ve.Z)(De,["suffixCls"]),{getPrefixCls:tt,layout:Ve}=fe.useContext(pe.E_),Ct=tt("layout",Ce),[Mt,en]=se(Ct),nn=be()(Ct,{[`${Ct}-has-sider`]:typeof Qe=="boolean"?Qe:_e.length>0,[`${Ct}-rtl`]:ye==="rtl"},Ve==null?void 0:Ve.className,Be,Me,en),it=fe.useMemo(()=>({siderHook:{addSider:ct=>{xe(wt=>[].concat((0,z.Z)(wt),[ct]))},removeSider:ct=>{xe(wt=>wt.filter(Vt=>Vt!==ct))}}}),[]);return Mt(fe.createElement(re.Provider,{value:it},fe.createElement(pt,Object.assign({ref:ue,className:nn,style:Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Ae)},Fe),mt)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),te=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var oe=E},76529:function(at,We,ee){"use strict";ee.d(We,{J:function(){return pe}});var z=ee(67294),ge=ee(4173),be=ee(60276),ve=function(ie,de){var le={};for(var ce in ie)Object.prototype.hasOwnProperty.call(ie,ce)&&de.indexOf(ce)<0&&(le[ce]=ie[ce]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ce=Object.getOwnPropertySymbols(ie);se{const{children:le}=ie,ce=ve(ie,["children"]),se=z.useContext(fe),me=z.useMemo(()=>Object.assign(Object.assign({},se),ce),[se,ce.prefixCls,ce.mode,ce.selectable]);return z.createElement(fe.Provider,{value:me},z.createElement(ge.BR,null,(0,be.supportNodeRef)(le)?z.cloneElement(le,{ref:de}):le))});We.Z=fe},68508:function(at,We,ee){"use strict";ee.d(We,{default:function(){return bn}});var z=ee(52073),ge=ee(67294),be=ee(71322),ve=ee(94184),fe=ee.n(ve),pe=ee(53124),ie=function($t,qe){var Je={};for(var Pt in $t)Object.prototype.hasOwnProperty.call($t,Pt)&&qe.indexOf(Pt)<0&&(Je[Pt]=$t[Pt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols($t);Nt{const{prefixCls:qe,className:Je,dashed:Pt}=$t,Nt=ie($t,["prefixCls","className","dashed"]),{getPrefixCls:Wt}=ge.useContext(pe.E_),dt=Wt("menu",qe),yt=fe()({[`${dt}-item-divider-dashed`]:!!Pt},Je);return ge.createElement(z.iz,Object.assign({className:yt},Nt))},ce=ee(37419),se=ee(10366),me=ee(83062),re=ee(96159),a=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=$t=>{var qe;const{className:Je,children:Pt,icon:Nt,title:Wt,danger:dt}=$t,{prefixCls:yt,firstLevel:Tt,direction:rt,disableMenuItemTitleTooltip:cn,inlineCollapsed:Ge}=ge.useContext(a),gt=jn=>{const lr=ge.createElement("span",{className:`${yt}-title-content`},Pt);return(!Nt||(0,re.l$)(Pt)&&Pt.type==="span")&&Pt&&jn&&Tt&&typeof Pt=="string"?ge.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Pt.charAt(0)):lr},{siderCollapsed:Gn}=ge.useContext(be.D);let Nn=Wt;typeof Wt=="undefined"?Nn=Tt?Pt:"":Wt===!1&&(Nn="");const St={title:Nn};!Gn&&!Ge&&(St.title=null,St.open=!1);const Qt=(0,ce.Z)(Pt).length;let hn=ge.createElement(z.ck,Object.assign({},(0,se.Z)($t,["title","icon","danger"]),{className:fe()({[`${yt}-item-danger`]:dt,[`${yt}-item-only-child`]:(Nt?Qt+1:Qt)===1},Je),title:typeof Wt=="string"?Wt:void 0}),(0,re.Tm)(Nt,{className:fe()((0,re.l$)(Nt)?(qe=Nt.props)===null||qe===void 0?void 0:qe.className:"",`${yt}-item-icon`)}),gt(Ge));return cn||(hn=ge.createElement(me.Z,Object.assign({},St,{placement:rt==="rtl"?"left":"right",overlayClassName:`${yt}-inline-collapsed-tooltip`}),hn)),hn},x=$t=>{var qe;const{popupClassName:Je,icon:Pt,title:Nt,theme:Wt}=$t,dt=ge.useContext(a),{prefixCls:yt,inlineCollapsed:Tt,theme:rt}=dt,cn=(0,z.Xl)();let Ge;if(!Pt)Ge=Tt&&!cn.length&&Nt&&typeof Nt=="string"?ge.createElement("div",{className:`${yt}-inline-collapsed-noicon`},Nt.charAt(0)):ge.createElement("span",{className:`${yt}-title-content`},Nt);else{const Gn=(0,re.l$)(Nt)&&Nt.type==="span";Ge=ge.createElement(ge.Fragment,null,(0,re.Tm)(Pt,{className:fe()((0,re.l$)(Pt)?(qe=Pt.props)===null||qe===void 0?void 0:qe.className:"",`${yt}-item-icon`)}),Gn?Nt:ge.createElement("span",{className:`${yt}-title-content`},Nt))}const gt=ge.useMemo(()=>Object.assign(Object.assign({},dt),{firstLevel:!1}),[dt]);return ge.createElement(a.Provider,{value:gt},ge.createElement(z.Wd,Object.assign({},(0,se.Z)($t,["icon"]),{title:Ge,popupClassName:fe()(yt,Je,`${yt}-${Wt||rt}`)})))},te=ee(25877),oe=ee(60276),ae=ee(33603),ue=ee(76529),ye=function($t,qe){var Je={};for(var Pt in $t)Object.prototype.hasOwnProperty.call($t,Pt)&&qe.indexOf(Pt)<0&&(Je[Pt]=$t[Pt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols($t);Nt{if(qe&&typeof qe=="object"){const Pt=qe,{label:Nt,children:Wt,key:dt,type:yt}=Pt,Tt=ye(Pt,["label","children","key","type"]),rt=dt!=null?dt:`tmp-${Je}`;return Wt||yt==="group"?yt==="group"?ge.createElement(z.BW,Object.assign({key:rt},Tt,{title:Nt}),_e(Wt)):ge.createElement(x,Object.assign({key:rt},Tt,{title:Nt}),_e(Wt)):yt==="divider"?ge.createElement(le,Object.assign({key:rt},Tt)):ge.createElement(E,Object.assign({key:rt},Tt),Nt)}return null}).filter(qe=>qe)}function xe($t){return ge.useMemo(()=>$t&&_e($t),[$t])}var Ce=ee(84780),Be=ee(14747),Me=ee(33507),mt=ee(67771),Qe=ee(50438),pt=ee(67968),Ae=ee(45503),Fe=$t=>{const{componentCls:qe,motionDurationSlow:Je,horizontalLineHeight:Pt,colorSplit:Nt,lineWidth:Wt,lineType:dt,itemPaddingInline:yt}=$t;return{[`${qe}-horizontal`]:{lineHeight:Pt,border:0,borderBottom:`${Wt}px ${dt} ${Nt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${qe}-item, ${qe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:yt},[`> ${qe}-item:hover, > ${qe}-item-active, > ${qe}-submenu ${qe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${qe}-item, ${qe}-submenu-title`]:{transition:[`border-color ${Je}`,`background ${Je}`].join(",")},[`${qe}-submenu-arrow`]:{display:"none"}}}},Ve=$t=>{let{componentCls:qe,menuArrowOffset:Je}=$t;return{[`${qe}-rtl`]:{direction:"rtl"},[`${qe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${qe}-rtl${qe}-vertical, ${qe}-submenu-rtl ${qe}-vertical`]:{[`${qe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Je})`},"&::after":{transform:`rotate(45deg) translateY(${Je})`}}}}};const Ct=$t=>Object.assign({},(0,Be.oN)($t));var en=($t,qe)=>{const{componentCls:Je,itemColor:Pt,itemSelectedColor:Nt,groupTitleColor:Wt,itemBg:dt,subMenuItemBg:yt,itemSelectedBg:Tt,activeBarHeight:rt,activeBarWidth:cn,activeBarBorderWidth:Ge,motionDurationSlow:gt,motionEaseInOut:Gn,motionEaseOut:Nn,itemPaddingInline:St,motionDurationMid:Qt,itemHoverColor:hn,lineType:jn,colorSplit:lr,itemDisabledColor:Ft,dangerItemColor:nr,dangerItemHoverColor:ar,dangerItemSelectedColor:wo,dangerItemActiveBg:Kr,dangerItemSelectedBg:Ur,itemHoverBg:Ho,itemActiveBg:Dn,menuSubMenuBg:Po,horizontalItemSelectedColor:pi,horizontalItemSelectedBg:sa,horizontalItemBorderRadius:qi,horizontalItemHoverBg:Vr,popupBg:$o}=$t;return{[`${Je}-${qe}, ${Je}-${qe} > ${Je}`]:{color:Pt,background:dt,[`&${Je}-root:focus-visible`]:Object.assign({},Ct($t)),[`${Je}-item-group-title`]:{color:Wt},[`${Je}-submenu-selected`]:{[`> ${Je}-submenu-title`]:{color:Nt}},[`${Je}-item-disabled, ${Je}-submenu-disabled`]:{color:`${Ft} !important`},[`${Je}-item:not(${Je}-item-selected):not(${Je}-submenu-selected)`]:{[`&:hover, > ${Je}-submenu-title:hover`]:{color:hn}},[`&:not(${Je}-horizontal)`]:{[`${Je}-item:not(${Je}-item-selected)`]:{"&:hover":{backgroundColor:Ho},"&:active":{backgroundColor:Dn}},[`${Je}-submenu-title`]:{"&:hover":{backgroundColor:Ho},"&:active":{backgroundColor:Dn}}},[`${Je}-item-danger`]:{color:nr,[`&${Je}-item:hover`]:{[`&:not(${Je}-item-selected):not(${Je}-submenu-selected)`]:{color:ar}},[`&${Je}-item:active`]:{background:Kr}},[`${Je}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Je}-item-selected`]:{color:Nt,[`&${Je}-item-danger`]:{color:wo},"a, a:hover":{color:"inherit"}},[`& ${Je}-item-selected`]:{backgroundColor:Tt,[`&${Je}-item-danger`]:{backgroundColor:Ur}},[`${Je}-item, ${Je}-submenu-title`]:{[`&:not(${Je}-item-disabled):focus-visible`]:Object.assign({},Ct($t))},[`&${Je}-submenu > ${Je}`]:{backgroundColor:Po},[`&${Je}-popup > ${Je}`]:{backgroundColor:$o},[`&${Je}-horizontal`]:Object.assign(Object.assign({},qe==="dark"?{borderBottom:0}:{}),{[`> ${Je}-item, > ${Je}-submenu`]:{top:Ge,marginTop:-Ge,marginBottom:0,borderRadius:qi,"&::after":{position:"absolute",insetInline:St,bottom:0,borderBottom:`${rt}px solid transparent`,transition:`border-color ${gt} ${Gn}`,content:'""'},"&:hover, &-active, &-open":{background:Vr,"&::after":{borderBottomWidth:rt,borderBottomColor:pi}},"&-selected":{color:pi,backgroundColor:sa,"&:hover":{backgroundColor:sa},"&::after":{borderBottomWidth:rt,borderBottomColor:pi}}}}),[`&${Je}-root`]:{[`&${Je}-inline, &${Je}-vertical`]:{borderInlineEnd:`${Ge}px ${jn} ${lr}`}},[`&${Je}-inline`]:{[`${Je}-sub${Je}-inline`]:{background:yt},[`${Je}-item, ${Je}-submenu-title`]:Ge&&cn?{width:`calc(100% + ${Ge}px)`}:{},[`${Je}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${cn}px solid ${Nt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Qt} ${Nn}`,`opacity ${Qt} ${Nn}`].join(","),content:'""'},[`&${Je}-item-danger`]:{"&::after":{borderInlineEndColor:wo}}},[`${Je}-selected, ${Je}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Qt} ${Gn}`,`opacity ${Qt} ${Gn}`].join(",")}}}}}};const nn=$t=>{const{componentCls:qe,itemHeight:Je,itemMarginInline:Pt,padding:Nt,menuArrowSize:Wt,marginXS:dt,itemMarginBlock:yt}=$t,Tt=Nt+Wt+dt;return{[`${qe}-item`]:{position:"relative",overflow:"hidden"},[`${qe}-item, ${qe}-submenu-title`]:{height:Je,lineHeight:`${Je}px`,paddingInline:Nt,overflow:"hidden",textOverflow:"ellipsis",marginInline:Pt,marginBlock:yt,width:`calc(100% - ${Pt*2}px)`},[`> ${qe}-item, > ${qe}-submenu > ${qe}-submenu-title`]:{height:Je,lineHeight:`${Je}px`},[`${qe}-item-group-list ${qe}-submenu-title, ${qe}-submenu-title`]:{paddingInlineEnd:Tt}}};var ct=$t=>{const{componentCls:qe,iconCls:Je,itemHeight:Pt,colorTextLightSolid:Nt,dropdownWidth:Wt,controlHeightLG:dt,motionDurationMid:yt,motionEaseOut:Tt,paddingXL:rt,itemMarginInline:cn,fontSizeLG:Ge,motionDurationSlow:gt,paddingXS:Gn,boxShadowSecondary:Nn,collapsedWidth:St,collapsedIconSize:Qt}=$t,hn={height:Pt,lineHeight:`${Pt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[qe]:{"&-inline, &-vertical":Object.assign({[`&${qe}-root`]:{boxShadow:"none"}},nn($t))},[`${qe}-submenu-popup`]:{[`${qe}-vertical`]:Object.assign(Object.assign({},nn($t)),{boxShadow:Nn})}},{[`${qe}-submenu-popup ${qe}-vertical${qe}-sub`]:{minWidth:Wt,maxHeight:`calc(100vh - ${dt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${qe}-inline`]:{width:"100%",[`&${qe}-root`]:{[`${qe}-item, ${qe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${gt}`,`background ${gt}`,`padding ${yt} ${Tt}`].join(","),[`> ${qe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${qe}-sub${qe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${qe}-submenu > ${qe}-submenu-title`]:hn,[`& ${qe}-item-group-title`]:{paddingInlineStart:rt}},[`${qe}-item`]:hn}},{[`${qe}-inline-collapsed`]:{width:St,[`&${qe}-root`]:{[`${qe}-item, ${qe}-submenu ${qe}-submenu-title`]:{[`> ${qe}-inline-collapsed-noicon`]:{fontSize:Ge,textAlign:"center"}}},[`> ${qe}-item, > ${qe}-item-group > ${qe}-item-group-list > ${qe}-item, > ${qe}-item-group > ${qe}-item-group-list > ${qe}-submenu > ${qe}-submenu-title, > ${qe}-submenu > ${qe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ge/2}px - ${cn}px)`,textOverflow:"clip",[` ${qe}-submenu-arrow, ${qe}-submenu-expand-icon `]:{opacity:0},[`${qe}-item-icon, ${Je}`]:{margin:0,fontSize:Qt,lineHeight:`${Pt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${qe}-item-icon, ${Je}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${qe}-item-icon, ${Je}`]:{display:"none"},"a, a:hover":{color:Nt}},[`${qe}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Gn})}}]};const wt=$t=>{const{componentCls:qe,motionDurationSlow:Je,motionDurationMid:Pt,motionEaseInOut:Nt,motionEaseOut:Wt,iconCls:dt,iconSize:yt,iconMarginInlineEnd:Tt}=$t;return{[`${qe}-item, ${qe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Je}`,`background ${Je}`,`padding ${Je} ${Nt}`].join(","),[`${qe}-item-icon, ${dt}`]:{minWidth:yt,fontSize:yt,transition:[`font-size ${Pt} ${Wt}`,`margin ${Je} ${Nt}`,`color ${Je}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${Je} ${Nt}`,`margin ${Je}`,`color ${Je}`].join(",")}},[`${qe}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${qe}-item-only-child`]:{[`> ${dt}, > ${qe}-item-icon`]:{marginInlineEnd:0}}},[`${qe}-item-disabled, ${qe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${qe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Vt=$t=>{const{componentCls:qe,motionDurationSlow:Je,motionEaseInOut:Pt,borderRadius:Nt,menuArrowSize:Wt,menuArrowOffset:dt}=$t;return{[`${qe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:$t.margin,width:Wt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Je} ${Pt}, opacity ${Je}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Wt*.6,height:Wt*.15,backgroundColor:"currentcolor",borderRadius:Nt,transition:[`background ${Je} ${Pt}`,`transform ${Je} ${Pt}`,`top ${Je} ${Pt}`,`color ${Je} ${Pt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${dt})`},"&::after":{transform:`rotate(-45deg) translateY(${dt})`}}}}},Gt=$t=>{const{antCls:qe,componentCls:Je,fontSize:Pt,motionDurationSlow:Nt,motionDurationMid:Wt,motionEaseInOut:dt,paddingXS:yt,padding:Tt,colorSplit:rt,lineWidth:cn,zIndexPopup:Ge,borderRadiusLG:gt,subMenuItemBorderRadius:Gn,menuArrowSize:Nn,menuArrowOffset:St,lineType:Qt,menuPanelMaskInset:hn,groupTitleLineHeight:jn,groupTitleFontSize:lr}=$t;return[{"":{[`${Je}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Je}-submenu-hidden`]:{display:"none"}},{[Je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)($t)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Pt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Nt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Je}-item`]:{flex:"none"}},[`${Je}-item, ${Je}-submenu, ${Je}-submenu-title`]:{borderRadius:$t.itemBorderRadius},[`${Je}-item-group-title`]:{padding:`${yt}px ${Tt}px`,fontSize:lr,lineHeight:jn,transition:`all ${Nt}`},[`&-horizontal ${Je}-submenu`]:{transition:[`border-color ${Nt} ${dt}`,`background ${Nt} ${dt}`].join(",")},[`${Je}-submenu, ${Je}-submenu-inline`]:{transition:[`border-color ${Nt} ${dt}`,`background ${Nt} ${dt}`,`padding ${Wt} ${dt}`].join(",")},[`${Je}-submenu ${Je}-sub`]:{cursor:"initial",transition:[`background ${Nt} ${dt}`,`padding ${Nt} ${dt}`].join(",")},[`${Je}-title-content`]:{transition:`color ${Nt}`},[`${Je}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Je}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:rt,borderStyle:Qt,borderWidth:0,borderTopWidth:cn,marginBlock:cn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),wt($t)),{[`${Je}-item-group`]:{[`${Je}-item-group-list`]:{margin:0,padding:0,[`${Je}-item, ${Je}-submenu-title`]:{paddingInline:`${Pt*2}px ${Tt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ge,borderRadius:gt,boxShadow:"none",transformOrigin:"0 0",[`&${Je}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${hn}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:hn},"\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:$t.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:$t.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:$t.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:$t.paddingXS},[`> ${Je}`]:Object.assign(Object.assign(Object.assign({borderRadius:gt},wt($t)),Vt($t)),{[`${Je}-item, ${Je}-submenu > ${Je}-submenu-title`]:{borderRadius:Gn},[`${Je}-submenu-title::after`]:{transition:`transform ${Nt} ${dt}`}})}}),Vt($t)),{[`&-inline-collapsed ${Je}-submenu-arrow, &-inline ${Je}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${St})`},"&::after":{transform:`rotate(45deg) translateX(-${St})`}},[`${Je}-submenu-open${Je}-submenu-inline > ${Je}-submenu-title > ${Je}-submenu-arrow`]:{transform:`translateY(-${Nn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${St})`},"&::before":{transform:`rotate(45deg) translateX(${St})`}}})},{[`${qe}-layout-header`]:{[Je]:{lineHeight:"inherit"}}}]};var Ln=($t,qe)=>(0,pt.Z)("Menu",Pt=>{if(qe===!1)return[];const{colorBgElevated:Nt,colorPrimary:Wt,colorTextLightSolid:dt,controlHeightLG:yt,fontSize:Tt,darkItemColor:rt,darkDangerItemColor:cn,darkItemBg:Ge,darkSubMenuItemBg:gt,darkItemSelectedColor:Gn,darkItemSelectedBg:Nn,darkDangerItemSelectedBg:St,darkItemHoverBg:Qt,darkGroupTitleColor:hn,darkItemHoverColor:jn,darkItemDisabledColor:lr,darkDangerItemHoverColor:Ft,darkDangerItemSelectedColor:nr,darkDangerItemActiveBg:ar}=Pt,wo=Tt/7*5,Kr=(0,Ae.TS)(Pt,{menuArrowSize:wo,menuHorizontalHeight:yt*1.15,menuArrowOffset:`${wo*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Nt}),Ur=(0,Ae.TS)(Kr,{itemColor:rt,itemHoverColor:jn,groupTitleColor:hn,itemSelectedColor:Gn,itemBg:Ge,popupBg:Ge,subMenuItemBg:gt,itemActiveBg:"transparent",itemSelectedBg:Nn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Qt,itemDisabledColor:lr,dangerItemColor:cn,dangerItemHoverColor:Ft,dangerItemSelectedColor:nr,dangerItemActiveBg:ar,dangerItemSelectedBg:St,menuSubMenuBg:gt,horizontalItemSelectedColor:dt,horizontalItemSelectedBg:Wt});return[Gt(Kr),Fe(Kr),ct(Kr),en(Kr,"light"),en(Ur,"dark"),Ve(Kr),(0,Me.Z)(Kr),(0,mt.oN)(Kr,"slide-up"),(0,mt.oN)(Kr,"slide-down"),(0,Qe._y)(Kr,"zoom-big")]},Pt=>{const{colorPrimary:Nt,colorError:Wt,colorTextDisabled:dt,colorErrorBg:yt,colorText:Tt,colorTextDescription:rt,colorBgContainer:cn,colorFillAlter:Ge,colorFillContent:gt,lineWidth:Gn,lineWidthBold:Nn,controlItemBgActive:St,colorBgTextHover:Qt,controlHeightLG:hn,lineHeight:jn,colorBgElevated:lr,marginXXS:Ft,padding:nr,fontSize:ar,controlHeightSM:wo,fontSizeLG:Kr,colorTextLightSolid:Ur,colorErrorHover:Ho}=Pt,Dn=new Ce.C(Ur).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Pt.zIndexPopupBase+50,radiusItem:Pt.borderRadiusLG,itemBorderRadius:Pt.borderRadiusLG,radiusSubMenuItem:Pt.borderRadiusSM,subMenuItemBorderRadius:Pt.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:Nt,horizontalItemHoverColor:Nt,colorGroupTitle:rt,groupTitleColor:rt,colorItemTextSelected:Nt,itemSelectedColor:Nt,colorItemTextSelectedHorizontal:Nt,horizontalItemSelectedColor:Nt,colorItemBg:cn,itemBg:cn,colorItemBgHover:Qt,itemHoverBg:Qt,colorItemBgActive:gt,itemActiveBg:St,colorSubItemBg:Ge,subMenuItemBg:Ge,colorItemBgSelected:St,itemSelectedBg:St,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Nn,activeBarHeight:Nn,colorActiveBarBorderSize:Gn,activeBarBorderWidth:Gn,colorItemTextDisabled:dt,itemDisabledColor:dt,colorDangerItemText:Wt,dangerItemColor:Wt,colorDangerItemTextHover:Wt,dangerItemHoverColor:Wt,colorDangerItemTextSelected:Wt,dangerItemSelectedColor:Wt,colorDangerItemBgActive:yt,dangerItemActiveBg:yt,colorDangerItemBgSelected:yt,dangerItemSelectedBg:yt,itemMarginInline:Pt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:hn,groupTitleLineHeight:jn,collapsedWidth:hn*2,popupBg:lr,itemMarginBlock:Ft,itemPaddingInline:nr,horizontalLineHeight:`${hn*1.15}px`,iconSize:ar,iconMarginInlineEnd:wo-ar,collapsedIconSize:Kr,groupTitleFontSize:ar,darkItemDisabledColor:new Ce.C(Ur).setAlpha(.25).toRgbString(),darkItemColor:Dn,darkDangerItemColor:Wt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ur,darkItemSelectedBg:Nt,darkDangerItemSelectedBg:Wt,darkItemHoverBg:"transparent",darkGroupTitleColor:Dn,darkItemHoverColor:Ur,darkDangerItemHoverColor:Ho,darkDangerItemSelectedColor:Ur,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"]]})($t),He=function($t,qe){var Je={};for(var Pt in $t)Object.prototype.hasOwnProperty.call($t,Pt)&&qe.indexOf(Pt)<0&&(Je[Pt]=$t[Pt]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols($t);Nt{var Je,Pt;const Nt=ge.useContext(ue.Z),Wt=Nt||{},{getPrefixCls:dt,getPopupContainer:yt,direction:Tt,menu:rt}=ge.useContext(pe.E_),cn=dt(),{prefixCls:Ge,className:gt,style:Gn,theme:Nn="light",expandIcon:St,_internalDisableMenuItemTitleTooltip:Qt,inlineCollapsed:hn,siderCollapsed:jn,items:lr,children:Ft,rootClassName:nr,mode:ar,selectable:wo,onClick:Kr,overflowedIndicatorPopupClassName:Ur}=$t,Ho=He($t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Dn=(0,se.Z)(Ho,["collapsedWidth"]),Po=xe(lr)||Ft;(Je=Wt.validator)===null||Je===void 0||Je.call(Wt,{mode:ar});const pi=(0,oe.useEvent)(function(){var Xr;Kr==null||Kr.apply(void 0,arguments),(Xr=Wt.onClick)===null||Xr===void 0||Xr.call(Wt)}),sa=Wt.mode||ar,qi=wo!=null?wo:Wt.selectable,Vr=ge.useMemo(()=>jn!==void 0?jn:hn,[hn,jn]),$o={horizontal:{motionName:`${cn}-slide-up`},inline:(0,ae.Z)(cn),other:{motionName:`${cn}-zoom-big`}},Jo=dt("menu",Ge||Wt.prefixCls),[Li,Lo]=Ln(Jo,!Nt),Ii=fe()(`${Jo}-${Nn}`,rt==null?void 0:rt.className,gt);let xi;if(typeof St=="function")xi=St;else if(St===null||St===!1)xi=null;else if(Wt.expandIcon===null||Wt.expandIcon===!1)xi=null;else{const Xr=St!=null?St:Wt.expandIcon;xi=(0,re.Tm)(Xr,{className:fe()(`${Jo}-submenu-expand-icon`,(0,re.l$)(Xr)?(Pt=Xr.props)===null||Pt===void 0?void 0:Pt.className:"")})}const Bo=ge.useMemo(()=>({prefixCls:Jo,inlineCollapsed:Vr||!1,direction:Tt,firstLevel:!0,theme:Nn,mode:sa,disableMenuItemTitleTooltip:Qt}),[Jo,Vr,Tt,Qt,Nn]);return Li(ge.createElement(ue.Z.Provider,{value:null},ge.createElement(a.Provider,{value:Bo},ge.createElement(z.ZP,Object.assign({getPopupContainer:yt,overflowedIndicator:ge.createElement(te.Z,null),overflowedIndicatorPopupClassName:fe()(Jo,`${Jo}-${Nn}`,Ur),mode:sa,selectable:qi,onClick:pi},Dn,{inlineCollapsed:Vr,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Gn),className:Ii,prefixCls:Jo,direction:Tt,defaultMotions:$o,expandIcon:xi,ref:qe,rootClassName:fe()(nr,Lo)}),Po))))});const or=(0,ge.forwardRef)(($t,qe)=>{const Je=(0,ge.useRef)(null),Pt=ge.useContext(be.D);return(0,ge.useImperativeHandle)(qe,()=>({menu:Je.current,focus:Nt=>{var Wt;(Wt=Je.current)===null||Wt===void 0||Wt.focus(Nt)}})),ge.createElement(In,Object.assign({ref:Je},$t,Pt))});or.Item=E,or.SubMenu=x,or.Divider=le,or.ItemGroup=z.BW;var bn=or},28452:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return cn}});var z=ee(87462),ge=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},ve=be,fe=ee(74643),pe=function(gt,Gn){return ge.createElement(fe.Z,(0,z.Z)({},gt,{ref:Gn,icon:ve}))},ie=ge.forwardRef(pe),de=ee(81893),le=ee(22751),ce=ee(91034),se=ee(94184),me=ee.n(se),re=ee(4942),ne=ee(1413),a=ee(15671),y=ee(43144),E=ee(60136),b=ee(51630),x=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,te=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,oe="".concat(x," ").concat(te).split(/[\s\n]+/),ae="aria-",ue="data-";function ye(Ge,gt){return Ge.indexOf(gt)===0}function _e(Ge){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gn;gt===!1?Gn={aria:!0,data:!0,attr:!0}:gt===!0?Gn={aria:!0}:Gn=(0,ne.Z)({},gt);var Nn={};return Object.keys(Ge).forEach(function(St){(Gn.aria&&(St==="role"||ye(St,ae))||Gn.data&&ye(St,ue)||Gn.attr&&oe.includes(St))&&(Nn[St]=Ge[St])}),Nn}var xe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ce=xe,Be=ee(81626),Me=function(Ge){(0,E.Z)(Gn,Ge);var gt=(0,b.Z)(Gn);function Gn(){var Nn;(0,a.Z)(this,Gn);for(var St=arguments.length,Qt=new Array(St),hn=0;hn=0||jn.relatedTarget.className.indexOf("".concat(ar,"-item"))>=0))&&nr(Nn.getValidValue()))},Nn.go=function(jn){var lr=Nn.state.goInputText;lr!==""&&(jn.keyCode===Ce.ENTER||jn.type==="click")&&(Nn.setState({goInputText:""}),Nn.props.quickGo(Nn.getValidValue()))},Nn}return(0,y.Z)(Gn,[{key:"getPageSizeOptions",value:function(){var St=this.props,Qt=St.pageSize,hn=St.pageSizeOptions;return hn.some(function(jn){return jn.toString()===Qt.toString()})?hn:hn.concat([Qt.toString()]).sort(function(jn,lr){var Ft=Number.isNaN(Number(jn))?0:Number(jn),nr=Number.isNaN(Number(lr))?0:Number(lr);return Ft-nr})}},{key:"render",value:function(){var St=this,Qt=this.props,hn=Qt.pageSize,jn=Qt.locale,lr=Qt.rootPrefixCls,Ft=Qt.changeSize,nr=Qt.quickGo,ar=Qt.goButton,wo=Qt.selectComponentClass,Kr=Qt.buildOptionText,Ur=Qt.selectPrefixCls,Ho=Qt.disabled,Dn=this.state.goInputText,Po="".concat(lr,"-options"),pi=wo,sa=null,qi=null,Vr=null;if(!Ft&&!nr)return null;var $o=this.getPageSizeOptions();if(Ft&&pi){var Jo=$o.map(function(Li,Lo){return ge.createElement(pi.Option,{key:Lo,value:Li.toString()},(Kr||St.buildOptionText)(Li))});sa=ge.createElement(pi,{disabled:Ho,prefixCls:Ur,showSearch:!1,className:"".concat(Po,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(hn||$o[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Lo){return Lo.parentNode},"aria-label":jn.page_size,defaultOpen:!1},Jo)}return nr&&(ar&&(Vr=typeof ar=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ho,className:"".concat(Po,"-quick-jumper-button")},jn.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},ar)),qi=ge.createElement("div",{className:"".concat(Po,"-quick-jumper")},jn.jump_to,ge.createElement("input",{disabled:Ho,type:"text",value:Dn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":jn.page}),jn.page,Vr)),ge.createElement("li",{className:"".concat(Po)},sa,qi)}}]),Gn}(ge.Component);Me.defaultProps={pageSizeOptions:["10","20","50","100"]};var mt=Me,Qe=function(gt){var Gn,Nn=gt.rootPrefixCls,St=gt.page,Qt=gt.active,hn=gt.className,jn=gt.showTitle,lr=gt.onClick,Ft=gt.onKeyPress,nr=gt.itemRender,ar="".concat(Nn,"-item"),wo=me()(ar,"".concat(ar,"-").concat(St),(Gn={},(0,re.Z)(Gn,"".concat(ar,"-active"),Qt),(0,re.Z)(Gn,"".concat(ar,"-disabled"),!St),(0,re.Z)(Gn,gt.className,hn),Gn)),Kr=function(){lr(St)},Ur=function(Po){Ft(Po,lr,St)},Ho=nr(St,"page",ge.createElement("a",{rel:"nofollow"},St));return Ho?ge.createElement("li",{title:jn?St.toString():null,className:wo,onClick:Kr,onKeyPress:Ur,tabIndex:0},Ho):null},pt=Qe;function Ae(){}function De(Ge){var gt=Number(Ge);return typeof gt=="number"&&!Number.isNaN(gt)&&isFinite(gt)&&Math.floor(gt)===gt}var Fe=function(gt,Gn,Nn){return Nn};function tt(Ge,gt,Gn){var Nn=typeof Ge=="undefined"?gt.pageSize:Ge;return Math.floor((Gn.total-1)/Nn)+1}var Ve=function(Ge){(0,E.Z)(Gn,Ge);var gt=(0,b.Z)(Gn);function Gn(Nn){var St;(0,a.Z)(this,Gn),St=gt.call(this,Nn),St.paginationNode=ge.createRef(),St.getJumpPrevPage=function(){return Math.max(1,St.state.current-(St.props.showLessItems?3:5))},St.getJumpNextPage=function(){return Math.min(tt(void 0,St.state,St.props),St.state.current+(St.props.showLessItems?3:5))},St.getItemIcon=function(Ft,nr){var ar=St.props.prefixCls,wo=Ft||ge.createElement("button",{type:"button","aria-label":nr,className:"".concat(ar,"-item-link")});return typeof Ft=="function"&&(wo=ge.createElement(Ft,(0,ne.Z)({},St.props))),wo},St.isValid=function(Ft){var nr=St.props.total;return De(Ft)&&Ft!==St.state.current&&De(nr)&&nr>0},St.shouldDisplayQuickJumper=function(){var Ft=St.props,nr=Ft.showQuickJumper,ar=Ft.total,wo=St.state.pageSize;return ar<=wo?!1:nr},St.handleKeyDown=function(Ft){(Ft.keyCode===Ce.ARROW_UP||Ft.keyCode===Ce.ARROW_DOWN)&&Ft.preventDefault()},St.handleKeyUp=function(Ft){var nr=St.getValidValue(Ft),ar=St.state.currentInputValue;nr!==ar&&St.setState({currentInputValue:nr}),Ft.keyCode===Ce.ENTER?St.handleChange(nr):Ft.keyCode===Ce.ARROW_UP?St.handleChange(nr-1):Ft.keyCode===Ce.ARROW_DOWN&&St.handleChange(nr+1)},St.handleBlur=function(Ft){var nr=St.getValidValue(Ft);St.handleChange(nr)},St.changePageSize=function(Ft){var nr=St.state.current,ar=tt(Ft,St.state,St.props);nr=nr>ar?ar:nr,ar===0&&(nr=St.state.current),typeof Ft=="number"&&("pageSize"in St.props||St.setState({pageSize:Ft}),"current"in St.props||St.setState({current:nr,currentInputValue:nr})),St.props.onShowSizeChange(nr,Ft),"onChange"in St.props&&St.props.onChange&&St.props.onChange(nr,Ft)},St.handleChange=function(Ft){var nr=St.props,ar=nr.disabled,wo=nr.onChange,Kr=St.state,Ur=Kr.pageSize,Ho=Kr.current,Dn=Kr.currentInputValue;if(St.isValid(Ft)&&!ar){var Po=tt(void 0,St.state,St.props),pi=Ft;return Ft>Po?pi=Po:Ft<1&&(pi=1),"current"in St.props||St.setState({current:pi}),pi!==Dn&&St.setState({currentInputValue:pi}),wo(pi,Ur),pi}return Ho},St.prev=function(){St.hasPrev()&&St.handleChange(St.state.current-1)},St.next=function(){St.hasNext()&&St.handleChange(St.state.current+1)},St.jumpPrev=function(){St.handleChange(St.getJumpPrevPage())},St.jumpNext=function(){St.handleChange(St.getJumpNextPage())},St.hasPrev=function(){return St.state.current>1},St.hasNext=function(){return St.state.current2?ar-2:0),Kr=2;Kr=hn?lr=hn:lr=Number(Qt),lr}},{key:"getShowSizeChanger",value:function(){var St=this.props,Qt=St.showSizeChanger,hn=St.total,jn=St.totalBoundaryShowSizeChanger;return typeof Qt!="undefined"?Qt:hn>jn}},{key:"render",value:function(){var St=this.props,Qt=St.prefixCls,hn=St.className,jn=St.style,lr=St.disabled,Ft=St.hideOnSinglePage,nr=St.total,ar=St.locale,wo=St.showQuickJumper,Kr=St.showLessItems,Ur=St.showTitle,Ho=St.showTotal,Dn=St.simple,Po=St.itemRender,pi=St.showPrevNextJumpers,sa=St.jumpPrevIcon,qi=St.jumpNextIcon,Vr=St.selectComponentClass,$o=St.selectPrefixCls,Jo=St.pageSizeOptions,Li=this.state,Lo=Li.current,Ii=Li.pageSize,xi=Li.currentInputValue;if(Ft===!0&&nr<=Ii)return null;var Bo=tt(void 0,this.state,this.props),Xr=[],La=null,_n=null,he=null,Se=null,Pe=null,Le=wo&&wo.goButton,Ne=Kr?1:2,nt=Lo-1>0?Lo-1:0,lt=Lo+1nr?nr:Lo*Ii]));if(Dn){Le&&(typeof Le=="boolean"?Pe=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ar.jump_to_confirm):Pe=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le),Pe=ge.createElement("li",{title:Ur?"".concat(ar.jump_to).concat(Lo,"/").concat(Bo):null,className:"".concat(Qt,"-simple-pager")},Pe));var Tn=this.renderPrev(nt);return ge.createElement("ul",(0,z.Z)({className:me()(Qt,"".concat(Qt,"-simple"),(0,re.Z)({},"".concat(Qt,"-disabled"),lr),hn),style:jn,ref:this.paginationNode},fn),tn,Tn?ge.createElement("li",{title:Ur?ar.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:me()("".concat(Qt,"-prev"),(0,re.Z)({},"".concat(Qt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Tn):null,ge.createElement("li",{title:Ur?"".concat(Lo,"/").concat(Bo):null,className:"".concat(Qt,"-simple-pager")},ge.createElement("input",{type:"text",value:xi,disabled:lr,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(Qt,"-slash")},"/"),Bo),ge.createElement("li",{title:Ur?ar.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:me()("".concat(Qt,"-next"),(0,re.Z)({},"".concat(Qt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(lt)),Pe)}if(Bo<=3+Ne*2){var fr={locale:ar,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ur,itemRender:Po};Bo||Xr.push(ge.createElement(pt,(0,z.Z)({},fr,{key:"noPager",page:1,className:"".concat(Qt,"-item-disabled")})));for(var Lr=1;Lr<=Bo;Lr+=1){var Ot=Lo===Lr;Xr.push(ge.createElement(pt,(0,z.Z)({},fr,{key:Lr,page:Lr,active:Ot})))}}else{var cr=Kr?ar.prev_3:ar.prev_5,sr=Kr?ar.next_3:ar.next_5,Rn=Po(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(sa,"prev page")),Hn=Po(this.getJumpNextPage(),"jump-next",this.getItemIcon(qi,"next page"));pi&&(La=Rn?ge.createElement("li",{title:Ur?cr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:me()("".concat(Qt,"-jump-prev"),(0,re.Z)({},"".concat(Qt,"-jump-prev-custom-icon"),!!sa))},Rn):null,_n=Hn?ge.createElement("li",{title:Ur?sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:me()("".concat(Qt,"-jump-next"),(0,re.Z)({},"".concat(Qt,"-jump-next-custom-icon"),!!qi))},Hn):null),Se=ge.createElement(pt,{locale:ar,last:!0,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Bo,page:Bo,active:!1,showTitle:Ur,itemRender:Po}),he=ge.createElement(pt,{locale:ar,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ur,itemRender:Po});var tr=Math.max(1,Lo-Ne),jr=Math.min(Lo+Ne,Bo);Lo-1<=Ne&&(jr=1+Ne*2),Bo-Lo<=Ne&&(tr=Bo-Ne*2);for(var Pr=tr;Pr<=jr;Pr+=1){var Yi=Lo===Pr;Xr.push(ge.createElement(pt,{locale:ar,rootPrefixCls:Qt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pr,page:Pr,active:Yi,showTitle:Ur,itemRender:Po}))}Lo-1>=Ne*2&&Lo!==3&&(Xr[0]=(0,ge.cloneElement)(Xr[0],{className:"".concat(Qt,"-item-after-jump-prev")}),Xr.unshift(La)),Bo-Lo>=Ne*2&&Lo!==Bo-2&&(Xr[Xr.length-1]=(0,ge.cloneElement)(Xr[Xr.length-1],{className:"".concat(Qt,"-item-before-jump-next")}),Xr.push(_n)),tr!==1&&Xr.unshift(he),jr!==Bo&&Xr.push(Se)}var ti=!this.hasPrev()||!Bo,xr=!this.hasNext()||!Bo,yo=this.renderPrev(nt),Mi=this.renderNext(lt);return ge.createElement("ul",(0,z.Z)({className:me()(Qt,hn,(0,re.Z)({},"".concat(Qt,"-disabled"),lr)),style:jn,ref:this.paginationNode},fn),tn,yo?ge.createElement("li",{title:Ur?ar.prev_page:null,onClick:this.prev,tabIndex:ti?null:0,onKeyPress:this.runIfEnterPrev,className:me()("".concat(Qt,"-prev"),(0,re.Z)({},"".concat(Qt,"-disabled"),ti)),"aria-disabled":ti},yo):null,Xr,Mi?ge.createElement("li",{title:Ur?ar.next_page:null,onClick:this.next,tabIndex:xr?null:0,onKeyPress:this.runIfEnterNext,className:me()("".concat(Qt,"-next"),(0,re.Z)({},"".concat(Qt,"-disabled"),xr)),"aria-disabled":xr},Mi):null,ge.createElement(mt,{disabled:lr,locale:ar,rootPrefixCls:Qt,selectComponentClass:Vr,selectPrefixCls:$o,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Lo,pageSize:Ii,pageSizeOptions:Jo,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Le}))}}],[{key:"getDerivedStateFromProps",value:function(St,Qt){var hn={};if("current"in St&&(hn.current=St.current,St.current!==Qt.current&&(hn.currentInputValue=hn.current)),"pageSize"in St&&St.pageSize!==Qt.pageSize){var jn=Qt.current,lr=tt(St.pageSize,Qt,St);jn=jn>lr?lr:jn,"current"in St||(hn.current=jn,hn.currentInputValue=jn),hn.pageSize=St.pageSize}return hn}}]),Gn}(ge.Component);Ve.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ae,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ae,locale:Be.Z,style:{},itemRender:Fe,totalBoundaryShowSizeChanger:50};var Ct=Ve,Mt=ee(62906),en=ee(53124),nn=ee(98675),it=ee(25378),ct=ee(10110),wt=ee(42563);const Vt=Ge=>ge.createElement(wt.default,Object.assign({},Ge,{showSearch:!0,size:"small"})),Gt=Ge=>ge.createElement(wt.default,Object.assign({},Ge,{showSearch:!0,size:"middle"}));Vt.Option=wt.default.Option,Gt.Option=wt.default.Option;var Ln=ee(47673),He=ee(14747),on=ee(67968),In=ee(45503);const or=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${gt}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${gt}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed"}}},[`&${gt}-disabled`]:{cursor:"not-allowed",[`${gt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ge.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ge.colorBorder,backgroundColor:Ge.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ge.itemActiveBgDisabled},a:{color:Ge.itemActiveColorDisabled}}},[`${gt}-item-link`]:{color:Ge.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${gt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${gt}-simple-pager`]:{color:Ge.colorTextDisabled},[`${gt}-jump-prev, ${gt}-jump-next`]:{[`${gt}-item-link-icon`]:{opacity:0},[`${gt}-item-ellipsis`]:{opacity:1}}},[`&${gt}-simple`]:{[`${gt}-prev, ${gt}-next`]:{[`&${gt}-disabled ${gt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bn=Ge=>{const{componentCls:gt}=Ge;return{[`&${gt}-mini ${gt}-total-text, &${gt}-mini ${gt}-simple-pager`]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`},[`&${gt}-mini ${gt}-item`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM-2}px`},[`&${gt}-mini:not(${gt}-disabled) ${gt}-item:not(${gt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},[`&${gt}-mini ${gt}-prev, &${gt}-mini ${gt}-next`]:{minWidth:Ge.itemSizeSM,height:Ge.itemSizeSM,margin:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${gt}-mini:not(${gt}-disabled)`]:{[`${gt}-prev, ${gt}-next`]:{[`&:hover ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${gt}-disabled:hover ${gt}-item-link`]:{backgroundColor:"transparent"}}},[` &${gt}-mini ${gt}-prev ${gt}-item-link, &${gt}-mini ${gt}-next ${gt}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}},[`&${gt}-mini ${gt}-jump-prev, &${gt}-mini ${gt}-jump-next`]:{height:Ge.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ge.itemSizeSM}px`},[`&${gt}-mini ${gt}-options`]:{marginInlineStart:Ge.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ge.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ln.x0)(Ge)),{width:Ge.paginationMiniQuickJumperInputWidth,height:Ge.controlHeightSM})}}}},$t=Ge=>{const{componentCls:gt}=Ge;return{[` &${gt}-simple ${gt}-prev, &${gt}-simple ${gt}-next `]:{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`,verticalAlign:"top",[`${gt}-item-link`]:{height:Ge.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive},"&::after":{height:Ge.itemSizeSM,lineHeight:`${Ge.itemSizeSM}px`}}},[`&${gt}-simple ${gt}-simple-pager`]:{display:"inline-block",height:Ge.itemSizeSM,marginInlineEnd:Ge.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ge.marginXS,padding:`0 ${Ge.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ge.itemInputBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,borderRadius:Ge.borderRadius,outline:"none",transition:`border-color ${Ge.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ge.colorPrimary},"&:focus":{borderColor:Ge.colorPrimaryHover,boxShadow:`${Ge.inputOutlineOffset}px 0 ${Ge.controlOutlineWidth}px ${Ge.controlOutline}`},"&[disabled]":{color:Ge.colorTextDisabled,backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,cursor:"not-allowed"}}}}},qe=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}-jump-prev, ${gt}-jump-next`]:{outline:0,[`${gt}-item-container`]:{position:"relative",[`${gt}-item-link-icon`]:{color:Ge.colorPrimary,fontSize:Ge.fontSizeSM,opacity:0,transition:`all ${Ge.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${gt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ge.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ge.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ge.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ge.motionDurationMid}`}},"&:hover":{[`${gt}-item-link-icon`]:{opacity:1},[`${gt}-item-ellipsis`]:{opacity:0}}},[` ${gt}-prev, ${gt}-jump-prev, ${gt}-jump-next `]:{marginInlineEnd:Ge.marginXS},[` ${gt}-prev, ${gt}-next, ${gt}-jump-prev, ${gt}-jump-next `]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,color:Ge.colorText,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ge.borderRadius,cursor:"pointer",transition:`all ${Ge.motionDurationMid}`},[`${gt}-prev, ${gt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ge.colorText,cursor:"pointer",userSelect:"none"},[`${gt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ge.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:"none",transition:`all ${Ge.motionDurationMid}`},[`&:hover ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextHover},[`&:active ${gt}-item-link`]:{backgroundColor:Ge.colorBgTextActive},[`&${gt}-disabled:hover`]:{[`${gt}-item-link`]:{backgroundColor:"transparent"}}},[`${gt}-slash`]:{marginInlineEnd:Ge.paginationSlashMarginInlineEnd,marginInlineStart:Ge.paginationSlashMarginInlineStart},[`${gt}-options`]:{display:"inline-block",marginInlineStart:Ge.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ge.controlHeight,marginInlineStart:Ge.marginXS,lineHeight:`${Ge.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ln.ik)(Ge)),{width:Ge.controlHeightLG*1.25,height:Ge.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ge.marginXS,marginInlineEnd:Ge.marginXS})}}}},Je=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}-item`]:{display:"inline-block",minWidth:Ge.itemSize,height:Ge.itemSize,marginInlineEnd:Ge.marginXS,fontFamily:Ge.fontFamily,lineHeight:`${Ge.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ge.lineWidth}px ${Ge.lineType} transparent`,borderRadius:Ge.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ge.paginationItemPaddingInline}px`,color:Ge.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${gt}-item-active)`]:{"&:hover":{transition:`all ${Ge.motionDurationMid}`,backgroundColor:Ge.colorBgTextHover},"&:active":{backgroundColor:Ge.colorBgTextActive}},"&-active":{fontWeight:Ge.fontWeightStrong,backgroundColor:Ge.itemActiveBg,borderColor:Ge.colorPrimary,a:{color:Ge.colorPrimary},"&:hover":{borderColor:Ge.colorPrimaryHover},"&:hover a":{color:Ge.colorPrimaryHover}}}}},Pt=Ge=>{const{componentCls:gt}=Ge;return{[gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,He.Wf)(Ge)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${gt}-total-text`]:{display:"inline-block",height:Ge.itemSize,marginInlineEnd:Ge.marginXS,lineHeight:`${Ge.itemSize-2}px`,verticalAlign:"middle"}}),Je(Ge)),qe(Ge)),$t(Ge)),bn(Ge)),or(Ge)),{[`@media only screen and (max-width: ${Ge.screenLG}px)`]:{[`${gt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ge.screenSM}px)`]:{[`${gt}-options`]:{display:"none"}}}),[`&${Ge.componentCls}-rtl`]:{direction:"rtl"}}},Nt=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}${gt}-disabled:not(${gt}-mini)`]:{"&, &:hover":{[`${gt}-item-link`]:{borderColor:Ge.colorBorder}},"&:focus-visible":{[`${gt}-item-link`]:{borderColor:Ge.colorBorder}},[`${gt}-item, ${gt}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,[`&:hover:not(${gt}-item-active)`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,a:{color:Ge.colorTextDisabled}},[`&${gt}-item-active`]:{backgroundColor:Ge.itemActiveBgDisabled}},[`${gt}-prev, ${gt}-next`]:{"&:hover button":{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder,color:Ge.colorTextDisabled},[`${gt}-item-link`]:{backgroundColor:Ge.colorBgContainerDisabled,borderColor:Ge.colorBorder}}},[`${gt}:not(${gt}-mini)`]:{[`${gt}-prev, ${gt}-next`]:{"&:hover button":{borderColor:Ge.colorPrimaryHover,backgroundColor:Ge.itemBg},[`${gt}-item-link`]:{backgroundColor:Ge.itemLinkBg,borderColor:Ge.colorBorder},[`&:hover ${gt}-item-link`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,color:Ge.colorPrimary},[`&${gt}-disabled`]:{[`${gt}-item-link`]:{borderColor:Ge.colorBorder,color:Ge.colorTextDisabled}}},[`${gt}-item`]:{backgroundColor:Ge.itemBg,border:`${Ge.lineWidth}px ${Ge.lineType} ${Ge.colorBorder}`,[`&:hover:not(${gt}-item-active)`]:{borderColor:Ge.colorPrimary,backgroundColor:Ge.itemBg,a:{color:Ge.colorPrimary}},"&-active":{borderColor:Ge.colorPrimary}}}}},Wt=Ge=>{const{componentCls:gt}=Ge;return{[`${gt}:not(${gt}-disabled)`]:{[`${gt}-item`]:Object.assign({},(0,He.Qy)(Ge)),[`${gt}-jump-prev, ${gt}-jump-next`]:{"&:focus-visible":Object.assign({[`${gt}-item-link-icon`]:{opacity:1},[`${gt}-item-ellipsis`]:{opacity:0}},(0,He.oN)(Ge))},[`${gt}-prev, ${gt}-next`]:{[`&:focus-visible ${gt}-item-link`]:Object.assign({},(0,He.oN)(Ge))}}}};var dt=(0,on.Z)("Pagination",Ge=>{const gt=(0,In.TS)(Ge,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ge.marginXXS/2,paginationMiniQuickJumperInputWidth:Ge.controlHeightLG*1.1,paginationItemPaddingInline:Ge.marginXXS*1.5,paginationEllipsisLetterSpacing:Ge.marginXXS/2,paginationSlashMarginInlineStart:Ge.marginXXS,paginationSlashMarginInlineEnd:Ge.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ln.e5)(Ge),(0,Ln.TM)(Ge));return[Pt(gt),Wt(gt),Ge.wireframe&&Nt(gt)]},Ge=>({itemBg:Ge.colorBgContainer,itemSize:Ge.controlHeight,itemSizeSM:Ge.controlHeightSM,itemActiveBg:Ge.colorBgContainer,itemLinkBg:Ge.colorBgContainer,itemActiveColorDisabled:Ge.colorTextDisabled,itemActiveBgDisabled:Ge.controlItemBgActiveDisabled,itemInputBg:Ge.colorBgContainer,miniOptionsSizeChangerTop:0})),yt=function(Ge,gt){var Gn={};for(var Nn in Ge)Object.prototype.hasOwnProperty.call(Ge,Nn)&>.indexOf(Nn)<0&&(Gn[Nn]=Ge[Nn]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Nn=Object.getOwnPropertySymbols(Ge);St{const{prefixCls:gt,selectPrefixCls:Gn,className:Nn,rootClassName:St,style:Qt,size:hn,locale:jn,selectComponentClass:lr,responsive:Ft,showSizeChanger:nr}=Ge,ar=yt(Ge,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:wo}=(0,it.Z)(Ft),{getPrefixCls:Kr,direction:Ur,pagination:Ho={}}=ge.useContext(en.E_),Dn=Kr("pagination",gt),[Po,pi]=dt(Dn),sa=nr!=null?nr:Ho.showSizeChanger,qi=ge.useMemo(()=>{const Bo=ge.createElement("span",{className:`${Dn}-item-ellipsis`},"\u2022\u2022\u2022"),Xr=ge.createElement("button",{className:`${Dn}-item-link`,type:"button",tabIndex:-1},Ur==="rtl"?ge.createElement(ce.Z,null):ge.createElement(le.Z,null)),La=ge.createElement("button",{className:`${Dn}-item-link`,type:"button",tabIndex:-1},Ur==="rtl"?ge.createElement(le.Z,null):ge.createElement(ce.Z,null)),_n=ge.createElement("a",{className:`${Dn}-item-link`},ge.createElement("div",{className:`${Dn}-item-container`},Ur==="rtl"?ge.createElement(de.Z,{className:`${Dn}-item-link-icon`}):ge.createElement(ie,{className:`${Dn}-item-link-icon`}),Bo)),he=ge.createElement("a",{className:`${Dn}-item-link`},ge.createElement("div",{className:`${Dn}-item-container`},Ur==="rtl"?ge.createElement(ie,{className:`${Dn}-item-link-icon`}):ge.createElement(de.Z,{className:`${Dn}-item-link-icon`}),Bo));return{prevIcon:Xr,nextIcon:La,jumpPrevIcon:_n,jumpNextIcon:he}},[Ur,Dn]),[Vr]=(0,ct.Z)("Pagination",Mt.Z),$o=Object.assign(Object.assign({},Vr),jn),Jo=(0,nn.Z)(hn),Li=Jo==="small"||!!(wo&&!Jo&&Ft),Lo=Kr("select",Gn),Ii=me()({[`${Dn}-mini`]:Li,[`${Dn}-rtl`]:Ur==="rtl"},Ho==null?void 0:Ho.className,Nn,St,pi),xi=Object.assign(Object.assign({},Ho==null?void 0:Ho.style),Qt);return Po(ge.createElement(Ct,Object.assign({},qi,ar,{style:xi,prefixCls:Dn,selectPrefixCls:Lo,className:Ii,selectComponentClass:lr||(Li?Vt:Gt),locale:$o,showSizeChanger:sa})))},cn=rt},46303:function(at,We,ee){"use strict";ee.d(We,{Z:function(){return $t}});var z=ee(94184),ge=ee.n(z),be=ee(67294),ve=ee(53124),fe=ee(10366),ie=qe=>{const{prefixCls:Je,className:Pt,style:Nt,size:Wt,shape:dt}=qe,yt=ge()({[`${Je}-lg`]:Wt==="large",[`${Je}-sm`]:Wt==="small"}),Tt=ge()({[`${Je}-circle`]:dt==="circle",[`${Je}-square`]:dt==="square",[`${Je}-round`]:dt==="round"}),rt=be.useMemo(()=>typeof Wt=="number"?{width:Wt,height:Wt,lineHeight:`${Wt}px`}:{},[Wt]);return be.createElement("span",{className:ge()(Je,yt,Tt,Pt),style:Object.assign(Object.assign({},rt),Nt)})},de=ee(45930),le=ee(67968),ce=ee(45503);const se=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=qe=>({height:qe,lineHeight:`${qe}px`}),re=qe=>Object.assign({width:qe},me(qe)),ne=qe=>({background:qe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:qe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=qe=>Object.assign({width:qe*5,minWidth:qe*5},me(qe)),y=qe=>{const{skeletonAvatarCls:Je,gradientFromColor:Pt,controlHeight:Nt,controlHeightLG:Wt,controlHeightSM:dt}=qe;return{[`${Je}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pt},re(Nt)),[`${Je}${Je}-circle`]:{borderRadius:"50%"},[`${Je}${Je}-lg`]:Object.assign({},re(Wt)),[`${Je}${Je}-sm`]:Object.assign({},re(dt))}},E=qe=>{const{controlHeight:Je,borderRadiusSM:Pt,skeletonInputCls:Nt,controlHeightLG:Wt,controlHeightSM:dt,gradientFromColor:yt}=qe;return{[`${Nt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:Pt},a(Je)),[`${Nt}-lg`]:Object.assign({},a(Wt)),[`${Nt}-sm`]:Object.assign({},a(dt))}},b=qe=>Object.assign({width:qe},me(qe)),x=qe=>{const{skeletonImageCls:Je,imageSizeBase:Pt,gradientFromColor:Nt,borderRadiusSM:Wt}=qe;return{[`${Je}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Nt,borderRadius:Wt},b(Pt*2)),{[`${Je}-path`]:{fill:"#bfbfbf"},[`${Je}-svg`]:Object.assign(Object.assign({},b(Pt)),{maxWidth:Pt*4,maxHeight:Pt*4}),[`${Je}-svg${Je}-svg-circle`]:{borderRadius:"50%"}}),[`${Je}${Je}-circle`]:{borderRadius:"50%"}}},te=(qe,Je,Pt)=>{const{skeletonButtonCls:Nt}=qe;return{[`${Pt}${Nt}-circle`]:{width:Je,minWidth:Je,borderRadius:"50%"},[`${Pt}${Nt}-round`]:{borderRadius:Je}}},oe=qe=>Object.assign({width:qe*2,minWidth:qe*2},me(qe)),ae=qe=>{const{borderRadiusSM:Je,skeletonButtonCls:Pt,controlHeight:Nt,controlHeightLG:Wt,controlHeightSM:dt,gradientFromColor:yt}=qe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Pt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:Je,width:Nt*2,minWidth:Nt*2},oe(Nt))},te(qe,Nt,Pt)),{[`${Pt}-lg`]:Object.assign({},oe(Wt))}),te(qe,Wt,`${Pt}-lg`)),{[`${Pt}-sm`]:Object.assign({},oe(dt))}),te(qe,dt,`${Pt}-sm`))},ue=qe=>{const{componentCls:Je,skeletonAvatarCls:Pt,skeletonTitleCls:Nt,skeletonParagraphCls:Wt,skeletonButtonCls:dt,skeletonInputCls:yt,skeletonImageCls:Tt,controlHeight:rt,controlHeightLG:cn,controlHeightSM:Ge,gradientFromColor:gt,padding:Gn,marginSM:Nn,borderRadius:St,titleHeight:Qt,blockRadius:hn,paragraphLiHeight:jn,controlHeightXS:lr,paragraphMarginTop:Ft}=qe;return{[`${Je}`]:{display:"table",width:"100%",[`${Je}-header`]:{display:"table-cell",paddingInlineEnd:Gn,verticalAlign:"top",[`${Pt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:gt},re(rt)),[`${Pt}-circle`]:{borderRadius:"50%"},[`${Pt}-lg`]:Object.assign({},re(cn)),[`${Pt}-sm`]:Object.assign({},re(Ge))},[`${Je}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Nt}`]:{width:"100%",height:Qt,background:gt,borderRadius:hn,[`+ ${Wt}`]:{marginBlockStart:Ge}},[`${Wt}`]:{padding:0,"> li":{width:"100%",height:jn,listStyle:"none",background:gt,borderRadius:hn,"+ li":{marginBlockStart:lr}}},[`${Wt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Je}-content`]:{[`${Nt}, ${Wt} > li`]:{borderRadius:St}}},[`${Je}-with-avatar ${Je}-content`]:{[`${Nt}`]:{marginBlockStart:Nn,[`+ ${Wt}`]:{marginBlockStart:Ft}}},[`${Je}${Je}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ae(qe)),y(qe)),E(qe)),x(qe)),[`${Je}${Je}-block`]:{width:"100%",[`${dt}`]:{width:"100%"},[`${yt}`]:{width:"100%"}},[`${Je}${Je}-active`]:{[` ${Nt}, ${Wt} > li, ${Pt}, ${dt}, ${yt}, ${Tt} `]:Object.assign({},ne(qe))}}};var ye=(0,le.Z)("Skeleton",qe=>{const{componentCls:Je}=qe,Pt=(0,ce.TS)(qe,{skeletonAvatarCls:`${Je}-avatar`,skeletonTitleCls:`${Je}-title`,skeletonParagraphCls:`${Je}-paragraph`,skeletonButtonCls:`${Je}-button`,skeletonInputCls:`${Je}-input`,skeletonImageCls:`${Je}-image`,imageSizeBase:qe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${qe.gradientFromColor} 25%, ${qe.gradientToColor} 37%, ${qe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ue(Pt)]},qe=>{const{colorFillContent:Je,colorFill:Pt}=qe,Nt=Je,Wt=Pt;return{color:Nt,colorGradientEnd:Wt,gradientFromColor:Nt,gradientToColor:Wt,titleHeight:qe.controlHeight/2,blockRadius:qe.borderRadiusSM,paragraphMarginTop:qe.marginLG+qe.marginXXS,paragraphLiHeight:qe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xe=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,active:Wt,shape:dt="circle",size:yt="default"}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=(0,fe.Z)(qe,["prefixCls","className"]),Gn=ge()(rt,`${rt}-element`,{[`${rt}-active`]:Wt},Pt,Nt,Ge);return cn(be.createElement("div",{className:Gn},be.createElement(ie,Object.assign({prefixCls:`${rt}-avatar`,shape:dt,size:yt},gt))))},Be=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,active:Wt,block:dt=!1,size:yt="default"}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=(0,fe.Z)(qe,["prefixCls"]),Gn=ge()(rt,`${rt}-element`,{[`${rt}-active`]:Wt,[`${rt}-block`]:dt},Pt,Nt,Ge);return cn(be.createElement("div",{className:Gn},be.createElement(ie,Object.assign({prefixCls:`${rt}-button`,size:yt},gt))))};const Me="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Qe=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,style:Wt,active:dt}=qe,{getPrefixCls:yt}=be.useContext(ve.E_),Tt=yt("skeleton",Je),[rt,cn]=ye(Tt),Ge=ge()(Tt,`${Tt}-element`,{[`${Tt}-active`]:dt},Pt,Nt,cn);return rt(be.createElement("div",{className:Ge},be.createElement("div",{className:ge()(`${Tt}-image`,Pt),style:Wt},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Tt}-image-svg`},be.createElement("path",{d:Me,className:`${Tt}-image-path`})))))},Ae=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,active:Wt,block:dt,size:yt="default"}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=(0,fe.Z)(qe,["prefixCls"]),Gn=ge()(rt,`${rt}-element`,{[`${rt}-active`]:Wt,[`${rt}-block`]:dt},Pt,Nt,Ge);return cn(be.createElement("div",{className:Gn},be.createElement(ie,Object.assign({prefixCls:`${rt}-input`,size:yt},gt))))},De=ee(87462),Fe={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"},tt=Fe,Ve=ee(74643),Ct=function(Je,Pt){return be.createElement(Ve.Z,(0,De.Z)({},Je,{ref:Pt,icon:tt}))},Mt=be.forwardRef(Ct),nn=qe=>{const{prefixCls:Je,className:Pt,rootClassName:Nt,style:Wt,active:dt,children:yt}=qe,{getPrefixCls:Tt}=be.useContext(ve.E_),rt=Tt("skeleton",Je),[cn,Ge]=ye(rt),gt=ge()(rt,`${rt}-element`,{[`${rt}-active`]:dt},Ge,Pt,Nt),Gn=yt!=null?yt:be.createElement(Mt,null);return cn(be.createElement("div",{className:gt},be.createElement("div",{className:ge()(`${rt}-image`,Pt),style:Wt},Gn)))},it=ee(74902),wt=qe=>{const Je=Tt=>{const{width:rt,rows:cn=2}=qe;if(Array.isArray(rt))return rt[Tt];if(cn-1===Tt)return rt},{prefixCls:Pt,className:Nt,style:Wt,rows:dt}=qe,yt=(0,it.Z)(Array(dt)).map((Tt,rt)=>be.createElement("li",{key:rt,style:{width:Je(rt)}}));return be.createElement("ul",{className:ge()(Pt,Nt),style:Wt},yt)},Gt=qe=>{let{prefixCls:Je,className:Pt,width:Nt,style:Wt}=qe;return be.createElement("h3",{className:ge()(Je,Pt),style:Object.assign({width:Nt},Wt)})};function Ln(qe){return qe&&typeof qe=="object"?qe:{}}function He(qe,Je){return qe&&!Je?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function on(qe,Je){return!qe&&Je?{width:"38%"}:qe&&Je?{width:"50%"}:{}}function In(qe,Je){const Pt={};return(!qe||!Je)&&(Pt.width="61%"),!qe&&Je?Pt.rows=3:Pt.rows=2,Pt}const or=qe=>{const{prefixCls:Je,loading:Pt,className:Nt,rootClassName:Wt,style:dt,children:yt,avatar:Tt=!1,title:rt=!0,paragraph:cn=!0,active:Ge,round:gt}=qe,{getPrefixCls:Gn,direction:Nn,skeleton:St}=be.useContext(ve.E_),Qt=Gn("skeleton",Je),[hn,jn]=ye(Qt);if(Pt||!("loading"in qe)){const lr=!!Tt,Ft=!!rt,nr=!!cn;let ar;if(lr){const Ur=Object.assign(Object.assign({prefixCls:`${Qt}-avatar`},He(Ft,nr)),Ln(Tt));ar=be.createElement("div",{className:`${Qt}-header`},be.createElement(ie,Object.assign({},Ur)))}let wo;if(Ft||nr){let Ur;if(Ft){const Dn=Object.assign(Object.assign({prefixCls:`${Qt}-title`},on(lr,nr)),Ln(rt));Ur=be.createElement(Gt,Object.assign({},Dn))}let Ho;if(nr){const Dn=Object.assign(Object.assign({prefixCls:`${Qt}-paragraph`},In(lr,Ft)),Ln(cn));Ho=be.createElement(wt,Object.assign({},Dn))}wo=be.createElement("div",{className:`${Qt}-content`},Ur,Ho)}const Kr=ge()(Qt,{[`${Qt}-with-avatar`]:lr,[`${Qt}-active`]:Ge,[`${Qt}-rtl`]:Nn==="rtl",[`${Qt}-round`]:gt},St==null?void 0:St.className,Nt,Wt,jn);return hn(be.createElement("div",{className:Kr,style:Object.assign(Object.assign({},St==null?void 0:St.style),dt)},ar,wo))}return typeof yt!="undefined"?yt:null};or.Button=Be,or.Avatar=xe,or.Input=Ae,or.Image=Qe,or.Node=nn;var bn=or,$t=bn},55054:function(at,We,ee){"use strict";ee.d(We,{default:function(){return ye}});var z=ee(67294),ge=ee(57838),be=ee(96159),ve=ee(94184),fe=ee.n(ve),pe=ee(53124),ie=ee(46303),le=_e=>{const{value:xe,formatter:Ce,precision:Be,decimalSeparator:Me,groupSeparator:mt="",prefixCls:Qe}=_e;let pt;if(typeof Ce=="function")pt=Ce(xe);else{const Ae=String(xe),De=Ae.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ae==="-")pt=Ae;else{const Fe=De[1];let tt=De[2]||"0",Ve=De[4]||"";tt=tt.replace(/\B(?=(\d{3})+(?!\d))/g,mt),typeof Be=="number"&&(Ve=Ve.padEnd(Be,"0").slice(0,Be>0?Be:0)),Ve&&(Ve=`${Me}${Ve}`),pt=[z.createElement("span",{key:"int",className:`${Qe}-content-value-int`},Fe,tt),Ve&&z.createElement("span",{key:"decimal",className:`${Qe}-content-value-decimal`},Ve)]}}return z.createElement("span",{className:`${Qe}-content-value`},pt)},ce=ee(14747),se=ee(67968),me=ee(45503);const re=_e=>{const{componentCls:xe,marginXXS:Ce,padding:Be,colorTextDescription:Me,titleFontSize:mt,colorTextHeading:Qe,contentFontSize:pt,fontFamily:Ae}=_e;return{[`${xe}`]:Object.assign(Object.assign({},(0,ce.Wf)(_e)),{[`${xe}-title`]:{marginBottom:Ce,color:Me,fontSize:mt},[`${xe}-skeleton`]:{paddingTop:Be},[`${xe}-content`]:{color:Qe,fontSize:pt,fontFamily:Ae,[`${xe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${xe}-content-prefix, ${xe}-content-suffix`]:{display:"inline-block"},[`${xe}-content-prefix`]:{marginInlineEnd:Ce},[`${xe}-content-suffix`]:{marginInlineStart:Ce}}})}};var ne=(0,se.Z)("Statistic",_e=>{const xe=(0,me.TS)(_e,{});return[re(xe)]},_e=>{const{fontSizeHeading3:xe,fontSize:Ce}=_e;return{titleFontSize:Ce,contentFontSize:xe}}),y=_e=>{const{prefixCls:xe,className:Ce,rootClassName:Be,style:Me,valueStyle:mt,value:Qe=0,title:pt,valueRender:Ae,prefix:De,suffix:Fe,loading:tt=!1,onMouseEnter:Ve,onMouseLeave:Ct,decimalSeparator:Mt=".",groupSeparator:en=","}=_e,{getPrefixCls:nn,direction:it,statistic:ct}=z.useContext(pe.E_),wt=nn("statistic",xe),[Vt,Gt]=ne(wt),Ln=z.createElement(le,Object.assign({decimalSeparator:Mt,groupSeparator:en,prefixCls:wt},_e,{value:Qe})),He=fe()(wt,{[`${wt}-rtl`]:it==="rtl"},ct==null?void 0:ct.className,Ce,Be,Gt);return Vt(z.createElement("div",{className:He,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),Me),onMouseEnter:Ve,onMouseLeave:Ct},pt&&z.createElement("div",{className:`${wt}-title`},pt),z.createElement(ie.Z,{paragraph:!1,loading:tt,className:`${wt}-skeleton`},z.createElement("div",{style:mt,className:`${wt}-content`},De&&z.createElement("span",{className:`${wt}-content-prefix`},De),Ae?Ae(Ln):Ln,Fe&&z.createElement("span",{className:`${wt}-content-suffix`},Fe)))))};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(_e,xe){let Ce=_e;const Be=/\[[^\]]*]/g,Me=(xe.match(Be)||[]).map(Ae=>Ae.slice(1,-1)),mt=xe.replace(Be,"[]"),Qe=E.reduce((Ae,De)=>{let[Fe,tt]=De;if(Ae.includes(Fe)){const Ve=Math.floor(Ce/tt);return Ce-=Ve*tt,Ae.replace(new RegExp(`${Fe}+`,"g"),Ct=>{const Mt=Ct.length;return Ve.toString().padStart(Mt,"0")})}return Ae},mt);let pt=0;return Qe.replace(Be,()=>{const Ae=Me[pt];return pt+=1,Ae})}function x(_e,xe){const{format:Ce=""}=xe,Be=new Date(_e).getTime(),Me=Date.now(),mt=Math.max(Be-Me,0);return b(mt,Ce)}const te=1e3/30;function oe(_e){return new Date(_e).getTime()}const ae=_e=>{const{value:xe,format:Ce="HH:mm:ss",onChange:Be,onFinish:Me}=_e,mt=(0,ge.Z)(),Qe=z.useRef(null),pt=()=>{Me==null||Me(),Qe.current&&(clearInterval(Qe.current),Qe.current=null)},Ae=()=>{const tt=oe(xe);tt>=Date.now()&&(Qe.current=setInterval(()=>{mt(),Be==null||Be(tt-Date.now()),tt(Ae(),()=>{Qe.current&&(clearInterval(Qe.current),Qe.current=null)}),[xe]);const De=(tt,Ve)=>x(tt,Object.assign(Object.assign({},Ve),{format:Ce})),Fe=tt=>(0,be.Tm)(tt,{title:void 0});return z.createElement(y,Object.assign({},_e,{valueRender:Fe,formatter:De}))};var ue=z.memo(ae);y.Countdown=ue;var ye=y},49867:function(at,We,ee){"use strict";ee.d(We,{N:function(){return z}});const z=ge=>({color:ge.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ge.motionDurationSlow}`,"&:focus, &:hover":{color:ge.colorLinkHover},"&:active":{color:ge.colorLinkActive}})},9430:function(at,We,ee){"use strict";ee.d(We,{default:function(){return Sa}});var z={},ge="rc-table-internal-hook",be=ee(97685),ve=ee(66680),fe=ee(8410),pe=ee(91881),ie=ee(67294),de=ee(73935);function le(Ee){var we=ie.createContext(void 0),Re=function(je){var Ze=je.value,ot=je.children,ht=ie.useRef(Ze);ht.current=Ze;var st=ie.useState(function(){return{getValue:function(){return ht.current},listeners:new Set}}),bt=(0,be.Z)(st,1),Bt=bt[0];return(0,fe.Z)(function(){(0,de.unstable_batchedUpdates)(function(){Bt.listeners.forEach(function(xt){xt(Ze)})})},[Ze]),ie.createElement(we.Provider,{value:Bt},ot)};return{Context:we,Provider:Re,defaultValue:Ee}}function ce(Ee,we){var Re=(0,ve.Z)(typeof we=="function"?we:function(xt){if(we===void 0)return xt;if(!Array.isArray(we))return xt[we];var qt={};return we.forEach(function(Xt){qt[Xt]=xt[Xt]}),qt}),Ie=ie.useContext(Ee==null?void 0:Ee.Context),je=Ie||{},Ze=je.listeners,ot=je.getValue,ht=ie.useRef();ht.current=Re(Ie?ot():Ee==null?void 0:Ee.defaultValue);var st=ie.useState({}),bt=(0,be.Z)(st,2),Bt=bt[1];return(0,fe.Z)(function(){if(!Ie)return;function xt(qt){var Xt=Re(qt);(0,pe.Z)(ht.current,Xt,!0)||Bt({})}return Ze.add(xt),function(){Ze.delete(xt)}},[Ie]),ht.current}var se=ee(87462),me=ee(42550);function re(){var Ee=ie.createContext(null);function we(){return ie.useContext(Ee)}function Re(je,Ze){var ot=(0,me.Yr)(je),ht=function(bt,Bt){var xt=ot?{ref:Bt}:{},qt=ie.useRef(0),Xt=ie.useRef(bt),sn=we();return sn!==null?ie.createElement(je,(0,se.Z)({},bt,xt)):((!Ze||Ze(Xt.current,bt))&&(qt.current+=1),Xt.current=bt,ie.createElement(Ee.Provider,{value:qt.current},ie.createElement(je,(0,se.Z)({},bt,xt))))};return ot?ie.forwardRef(ht):ht}function Ie(je,Ze){var ot=(0,me.Yr)(je),ht=function(bt,Bt){var xt=ot?{ref:Bt}:{};return we(),ie.createElement(je,(0,se.Z)({},bt,xt))};return ot?ie.memo(ie.forwardRef(ht),Ze):ie.memo(ht,Ze)}return{makeImmutable:Re,responseImmutable:Ie,useImmutableMark:we}}var ne=re(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=re(),x=b.makeImmutable,te=b.responseImmutable,oe=b.useImmutableMark,ae=le(),ue=ae;function ye(Ee,we){var Re=ie.useRef(0);Re.current+=1;var Ie=ie.useRef(Ee),je=[];Object.keys(Ee||{}).map(function(ot){var ht;(Ee==null?void 0:Ee[ot])!==((ht=Ie.current)===null||ht===void 0?void 0:ht[ot])&&je.push(ot)}),Ie.current=Ee;var Ze=ie.useRef([]);return je.length&&(Ze.current=je),ie.useDebugValue(Re.current),ie.useDebugValue(Ze.current.join(", ")),we&&console.log("".concat(we,":"),Re.current,Ze.current),Re.current}var _e=null,xe=ie.memo(function(){var Ee=ye();return ie.createElement("h1",null,"Render Times: ",Ee)});xe.displayName="RenderBlock";var Ce=ee(71002),Be=ee(1413),Me=ee(4942),mt=ee(94184),Qe=ee.n(mt);function pt(Ee,we,Re){var Ie=ie.useRef({});return(!("value"in Ie.current)||Re(Ie.current.condition,we))&&(Ie.current.value=Ee(),Ie.current.condition=we),Ie.current.value}var Ae={},De=[],Fe=function(we){De.push(we)};function tt(Ee,we){if(0)var Re}function Ve(Ee,we){if(0)var Re}function Ct(){Ae={}}function Mt(Ee,we,Re){!we&&!Ae[Re]&&(Ee(!1,Re),Ae[Re]=!0)}function en(Ee,we){Mt(tt,Ee,we)}function nn(Ee,we){Mt(Ve,Ee,we)}en.preMessage=Fe,en.resetWarned=Ct,en.noteOnce=nn;var it=en;function ct(Ee,we){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ie=new Set;function je(Ze,ot){var ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,st=Ie.has(Ze);if(it(!st,"Warning: There may be circular references"),st)return!1;if(Ze===ot)return!0;if(Re&&ht>1)return!1;Ie.add(Ze);var bt=ht+1;if(Array.isArray(Ze)){if(!Array.isArray(ot)||Ze.length!==ot.length)return!1;for(var Bt=0;Bt=Re}function Je(Ee,we){return ce(ue,function(Re){var Ie=qe(Ee,we||1,Re.hoverStartRow,Re.hoverEndRow);return[Ie,Re.onHover]})}var Pt=function(we){var Re=we.ellipsis,Ie=we.rowType,je=we.children,Ze,ot=Re===!0?{showTitle:!0}:Re;return ot&&(ot.showTitle||Ie==="header")&&(typeof je=="string"||typeof je=="number"?Ze=je.toString():ie.isValidElement(je)&&typeof je.props.children=="string"&&(Ze=je.props.children)),Ze};function Nt(Ee){var we,Re,Ie,je,Ze,ot,ht,st,bt=Ee.component,Bt=Ee.children,xt=Ee.ellipsis,qt=Ee.scope,Xt=Ee.prefixCls,sn=Ee.className,kn=Ee.align,Mn=Ee.record,Zn=Ee.render,Un=Ee.dataIndex,qn=Ee.renderIndex,Ir=Ee.shouldCellUpdate,Qr=Ee.index,Mr=Ee.rowType,vo=Ee.colSpan,Mo=Ee.rowSpan,vr=Ee.fixLeft,Rr=Ee.fixRight,hr=Ee.firstFixLeft,er=Ee.lastFixLeft,wr=Ee.firstFixRight,Gr=Ee.lastFixRight,Ao=Ee.appendNode,Co=Ee.additionalProps,Zr=Co===void 0?{}:Co,Io=Ee.isSticky,Yo="".concat(Xt,"-cell"),ki=ce(ue,["supportSticky","allColumnsFixedLeft"]),hi=ki.supportSticky,Ea=ki.allColumnsFixedLeft,Ca=$t(Mn,Un,qn,Bt,Zn,Ir),Do=(0,be.Z)(Ca,2),Ba=Do[0],Kn=Do[1],ro={},Go=typeof vr=="number"&&hi,ra=typeof Rr=="number"&&hi;Go&&(ro.position="sticky",ro.left=vr),ra&&(ro.position="sticky",ro.right=Rr);var _r=(we=(Re=(Ie=Kn==null?void 0:Kn.colSpan)!==null&&Ie!==void 0?Ie:Zr.colSpan)!==null&&Re!==void 0?Re:vo)!==null&&we!==void 0?we:1,oo=(je=(Ze=(ot=Kn==null?void 0:Kn.rowSpan)!==null&&ot!==void 0?ot:Zr.rowSpan)!==null&&Ze!==void 0?Ze:Mo)!==null&&je!==void 0?je:1,io=Je(Qr,oo),Wr=(0,be.Z)(io,2),_i=Wr[0],to=Wr[1],jo=function(Ya){var ws;Mn&&to(Qr,Qr+oo-1),Zr==null||(ws=Zr.onMouseEnter)===null||ws===void 0||ws.call(Zr,Ya)},Ti=function(Ya){var ws;Mn&&to(-1,-1),Zr==null||(ws=Zr.onMouseLeave)===null||ws===void 0||ws.call(Zr,Ya)};if(_r===0||oo===0)return null;var Ci=(ht=Zr.title)!==null&&ht!==void 0?ht:Pt({rowType:Mr,ellipsis:xt,children:Ba}),ps=Qe()(Yo,sn,(st={},(0,Me.Z)(st,"".concat(Yo,"-fix-left"),Go&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-left-first"),hr&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-left-last"),er&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-left-all"),er&&Ea&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-right"),ra&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-right-first"),wr&&hi),(0,Me.Z)(st,"".concat(Yo,"-fix-right-last"),Gr&&hi),(0,Me.Z)(st,"".concat(Yo,"-ellipsis"),xt),(0,Me.Z)(st,"".concat(Yo,"-with-append"),Ao),(0,Me.Z)(st,"".concat(Yo,"-fix-sticky"),(Go||ra)&&Io&&hi),(0,Me.Z)(st,"".concat(Yo,"-row-hover"),!Kn&&_i),st),Zr.className,Kn==null?void 0:Kn.className),cs={};kn&&(cs.textAlign=kn);var Ys=(0,Be.Z)((0,Be.Z)((0,Be.Z)((0,Be.Z)({},ro),Zr.style),cs),Kn==null?void 0:Kn.style),Va=Ba;return(0,Ce.Z)(Va)==="object"&&!Array.isArray(Va)&&!ie.isValidElement(Va)&&(Va=null),xt&&(er||wr)&&(Va=ie.createElement("span",{className:"".concat(Yo,"-content")},Va)),ie.createElement(bt,(0,se.Z)({},Kn,Zr,{className:ps,style:Ys,title:Ci,scope:qt,onMouseEnter:jo,onMouseLeave:Ti,colSpan:_r!==1?_r:null,rowSpan:oo!==1?oo:null}),Ao,Va)}var Wt=ie.memo(Nt);function dt(Ee,we,Re,Ie,je,Ze){var ot=Re[Ee]||{},ht=Re[we]||{},st,bt;ot.fixed==="left"?st=Ie.left[je==="rtl"?we:Ee]:ht.fixed==="right"&&(bt=Ie.right[je==="rtl"?Ee:we]);var Bt=!1,xt=!1,qt=!1,Xt=!1,sn=Re[we+1],kn=Re[Ee-1],Mn=!(Ze!=null&&Ze.children);if(je==="rtl"){if(st!==void 0){var Zn=kn&&kn.fixed==="left";Xt=!Zn&&Mn}else if(bt!==void 0){var Un=sn&&sn.fixed==="right";qt=!Un&&Mn}}else if(st!==void 0){var qn=sn&&sn.fixed==="left";Bt=!qn&&Mn}else if(bt!==void 0){var Ir=kn&&kn.fixed==="right";xt=!Ir&&Mn}return{fixLeft:st,fixRight:bt,lastFixLeft:Bt,firstFixRight:xt,lastFixRight:qt,firstFixLeft:Xt,isSticky:Ie.isSticky}}var yt=ie.createContext({}),Tt=yt;function rt(Ee){var we=Ee.className,Re=Ee.index,Ie=Ee.children,je=Ee.colSpan,Ze=je===void 0?1:je,ot=Ee.rowSpan,ht=Ee.align,st=ce(ue,["prefixCls","direction"]),bt=st.prefixCls,Bt=st.direction,xt=ie.useContext(Tt),qt=xt.scrollColumnIndex,Xt=xt.stickyOffsets,sn=xt.flattenColumns,kn=xt.columns,Mn=Re+Ze-1,Zn=Mn+1===qt?Ze+1:Ze,Un=dt(Re,Re+Zn-1,sn,Xt,Bt,kn==null?void 0:kn[Re]);return ie.createElement(Wt,(0,se.Z)({className:we,index:Re,component:"td",prefixCls:bt,record:null,dataIndex:null,align:ht,colSpan:Zn,rowSpan:ot,render:function(){return Ie}},Un))}var cn=ee(45987),Ge=["children"];function gt(Ee){var we=Ee.children,Re=(0,cn.Z)(Ee,Ge);return ie.createElement("tr",Re,we)}function Gn(Ee){var we=Ee.children;return we}Gn.Row=gt,Gn.Cell=rt;var Nn=Gn;function St(Ee){var we=Ee.children,Re=Ee.stickyOffsets,Ie=Ee.flattenColumns,je=Ee.columns,Ze=ce(ue,"prefixCls"),ot=Ie.length-1,ht=Ie[ot],st=ie.useMemo(function(){return{stickyOffsets:Re,flattenColumns:Ie,scrollColumnIndex:ht!=null&&ht.scrollbar?ot:null,columns:je}},[ht,Ie,ot,Re,je]);return ie.createElement(Tt.Provider,{value:st},ie.createElement("tfoot",{className:"".concat(Ze,"-summary")},we))}var Qt=te(St),hn=Nn;function jn(Ee){var we=ie.useRef();we.current=Ee;var Re=ie.useCallback(function(){for(var Ie,je=arguments.length,Ze=new Array(je),ot=0;ot3&&arguments[3]!==void 0?arguments[3]:!1;return we.length&&Ie&&Re===void 0&&!get(Ee,we.slice(0,-1))?Ee:$o(Ee,we,Re,Ie)}function Li(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function Lo(Ee){return Array.isArray(Ee)?[]:{}}var Ii=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function xi(){for(var Ee=arguments.length,we=new Array(Ee),Re=0;Re