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

317 lines
1.3 MiB

This file contains invisible Unicode characters!

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

(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},28575:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},42922:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},55304:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},53555:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},3407:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},32693:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},53978:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},ve=Pe,he=te(43387),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.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,te){"use strict";var z=te(67294),fe=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,pe=(le,ue,se)=>ue in le?fe(le,ue,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ue]=se,ie=(le,ue)=>{for(var se in ue||(ue={}))ve.call(ue,se)&&pe(le,se,ue[se]);if(Pe)for(var se of Pe(ue))he.call(ue,se)&&pe(le,se,ue[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,te){"use strict";var z=te(67294),fe=Object.defineProperty,Pe=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,pe=(le,ue,se)=>ue in le?fe(le,ue,{enumerable:!0,configurable:!0,writable:!0,value:se}):le[ue]=se,ie=(le,ue)=>{for(var se in ue||(ue={}))ve.call(ue,se)&&pe(le,se,ue[se]);if(Pe)for(var se of Pe(ue))he.call(ue,se)&&pe(le,se,ue[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.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var We=[];function te(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 fe(ne){We.push(ne)}function Pe(ne,a,y,E,b,x,ee,oe,ae){ae||(ae=new go.Point);var ce=ne-y,Se=b-ee,_e=NaN,xe=NaN;if(ce===0)if(Se===0)ne===y&&(_e=ne,xe=a);else{var we=(x-oe)/Se,Fe=x-we*b;_e=ne,xe=we*_e+Fe}else if(Se===0){var Me=(a-E)/ce,ut=a-Me*ne;_e=b,xe=Me*_e+ut}else{var Me=(a-E)/ce,we=(x-oe)/Se,ut=a-Me*ne,Fe=x-we*b;_e=(Fe-ut)/(Me-we),xe=Me*_e+ut}return ae.x=_e,ae.y=xe,ae}function ve(ne,a,y,E,b,x,ee,oe,ae,ce,Se,_e,xe,we){var Fe=1-ae,Me=ae,ut=ne*Fe+y*Me,Xe=a*Fe+E*Me,mt=y*Fe+b*Me,Ae=E*Fe+x*Me,De=b*Fe+ee*Me,Be=x*Fe+oe*Me,nt=ut*Fe+mt*Me,Ke=Xe*Fe+Ae*Me,Et=mt*Fe+De*Me,Ct=Ae*Fe+Be*Me,nn=nt*Fe+Et*Me,on=Ke*Fe+Ct*Me;ce.x=ut,ce.y=Xe,Se.x=nt,Se.y=Ke,_e.x=nn,_e.y=on,xe.x=Et,xe.y=Ct,we.x=De,we.y=Be}var he=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=he,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())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new at("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new at("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new at("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new at("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var de=[];function le(){var ne=de.pop();return ne===void 0?[]:ne}function ue(ne){ne.length=0,de.push(ne)}function se(ne){for(var a=le(),y=.5,E=.5,b=Math.PI*1.5,x=0,ee=0;ee<ne;ee++)x=2*Math.PI/ne*ee+b,a[ee]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function me(ne){var a=re(ne),y=le();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return ue(a),y}function re(ne){for(var a=se(ne),y=le(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,ee=0;ee<b;ee++){var oe=a[ee],ae=a[ee+1],ce=a[(E+ee-1)%b],Se=a[(E+ee+x)%b];y[ee*2]=oe,y[ee*2+1]=Pe(oe.x,oe.y,ce.x,ce.y,ae.x,ae.y,Se.x,Se.y,new go.Point)}return y[y.length]=y[0],ue(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=se(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<5;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=se(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<6;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=se(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<7;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=se(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<8;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=se(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<9;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=se(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<10;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=se(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<12;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<10;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<12;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<14;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<16;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<18;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<20;ee++)x.add(new go.PathSegment(go.PathSegment.Line,E[ee].x*a,E[ee].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),ue(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=me(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<E.length;ee+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[ee+2].x*a,E[ee+2].y*y,E[ee].x*a,E[ee].y*y,E[ee+1].x*a,E[ee+1].y*y));return x.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=me(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<E.length;ee+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[ee+2].x*a,E[ee+2].y*y,E[ee].x*a,E[ee].y*y,E[ee+1].x*a,E[ee+1].y*y));return x.segments.last().close(),ue(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=me(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<E.length;ee+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[ee+2].x*a,E[ee+2].y*y,E[ee].x*a,E[ee].y*y,E[ee+1].x*a,E[ee+1].y*y));return x.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=me(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<E.length;ee+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[ee+2].x*a,E[ee+2].y*y,E[ee].x*a,E[ee].y*y,E[ee+1].x*a,E[ee+1].y*y));return x.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=me(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<E.length;ee+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[ee+2].x*a,E[ee+2].y*y,E[ee].x*a,E[ee].y*y,E[ee+1].x*a,E[ee+1].y*y));return x.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=me(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var ee=1;ee<E.length;ee+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[ee+2].x*a,E[ee+2].y*y,E[ee].x*a,E[ee].y*y,E[ee+1].x*a,E[ee+1].y*y));return x.segments.last().close(),ue(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new at("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new at("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,ee=new go.PathFigure(0,0,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(ee.add(new go.PathSegment(go.PathSegment.Move,E,b)),ee.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new at("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,ee=new go.PathFigure(a,a/2,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var oe=Math.max(b-E,0);return oe>0&&(ee.add(new go.PathSegment(go.PathSegment.Move,a/2+oe,a/2)),ee.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,oe,oe).close())),x.spot1=he,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 ee=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,ee,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,ee=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,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,ee+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,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,ee-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,ee=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,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee-b)).add(new go.PathSegment(go.PathSegment.Line,a,ee+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,ee+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,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee+b)).add(new go.PathSegment(go.PathSegment.Line,0,ee-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,ee-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,ee=y/2,oe=Math.atan2(y,a),ae=E-Math.min(Math.cos(oe)*E/2,x),ce=E-Math.min(Math.sin(oe)*E/2,ee),b=new go.Geometry,Se=new go.PathFigure(ae,0,!0);return b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),Se.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,ce)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,a,y-ce)),Se.add(new go.PathSegment(go.PathSegment.Line,a-ae,y)),Se.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),Se.add(new go.PathSegment(go.PathSegment.Line,ae,y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,y-ce)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ce).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,ee=.3,oe=0,ae=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+x+oe)*y,(.5-x+ee)*a,(.5+ae+oe)*y,(.5-ae+ee)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+ee)*a,(.5+oe)*y,(.5+ae+ee)*a,(.5+x+oe)*y,(.5+x+ee)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-x+oe)*y,(1-.5+x+ee)*a,(.5-ae+oe)*y,(.5+ae+ee)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ae+ee)*a,(.5-x+oe)*y,(.5-x+ee+.05)*a,(.5-ae+oe-.02)*y)),x=.2,ee=0,oe=-.3,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+ee)*a,(.5+oe)*y,(.5+ae+ee)*a,(.5+x+oe)*y,(.5+x+ee)*a,(.5+ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-x+oe)*y,(1-.5+x+ee)*a,(.5-ae+oe)*y,(.5+ae+ee)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+ee)*a,(.5+oe)*y,(.5-ae+ee)*a,(.5-x+oe)*y,(.5-x+ee)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+ee)*a,(.5+x+oe)*y,(.5-x+ee)*a,(.5+ae+oe)*y,(.5-ae+ee)*a,(.5+x+oe)*y)),x=.2,ee=-.3,oe=0,ae=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-x+oe)*y,(1-.5+x+ee-.05)*a,(.5-ae+oe-.02)*y,(.5+ae+ee)*a,(.5-x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+ee)*a,(.5+oe)*y,(.5-ae+ee)*a,(.5-x+oe)*y,(.5-x+ee)*a,(.5-ae+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+x+oe)*y,(.5-x+ee)*a,(.5+ae+oe)*y,(.5-ae+ee)*a,(.5+x+oe)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ae+ee)*a,(.5+x+oe)*y,(.5+x+ee)*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,ee=.5,oe=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(ee+x)*a,oe*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*ee,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((ee+x)*a,oe*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*ee,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,ee=.5,oe=.5,ae=new go.PathFigure(ee*a,(oe-x)*y);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),x=.4,b=ie*.4;var ce=z(),Se=z(),_e=z(),xe=z();ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.42,ce,Se,_e,xe,xe);var we=z(),Fe=z(),Me=z();ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.58,xe,xe,Me,we,Fe);var ut=z(),Xe=z(),mt=z();ve(ee,oe+x,ee-b,oe+x,ee-x,oe+b,ee-x,oe,.42,ut,Xe,mt,xe,xe);var Ae=z(),De=z(),Be=z();return ve(ee,oe+x,ee-b,oe+x,ee-x,oe+b,ee-x,oe,.58,xe,xe,Be,Ae,De),ae.add(new go.PathSegment(go.PathSegment.Move,Be.x*a,Be.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,Ae.x*a,Ae.y*y,De.x*a,De.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,_e.x*a,_e.y*y,ce.x*a,ce.y*y,Se.x*a,Se.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y).close()),ae.add(new go.PathSegment(go.PathSegment.Move,mt.x*a,mt.y*y)),ae.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,we.x*a,we.y*y,Fe.x*a,Fe.y*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,mt.x*a,mt.y*y,ut.x*a,ut.y*y,Xe.x*a,Xe.y*y).close()),fe(ce),fe(Se),fe(_e),fe(xe),fe(we),fe(Fe),fe(Me),fe(ut),fe(Xe),fe(mt),fe(Ae),fe(De),fe(Be),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,ee=.5,oe=.5,ae=z(),ce=z(),Se=z(),_e=z(),xe=new go.PathFigure((ee-x)*a,oe*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.44,Se,_e,ce,ae,ae),xe.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y));var we=te(ce.x,ce.y);ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.56,ae,ae,ce,Se,_e);var Fe=te(ce.x,ce.y);xe.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.95*.9)*a,we.y*.1*y)),xe.add(new go.PathSegment(go.PathSegment.Line,.85*a,we.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,(Fe.x*.1+.9)*a,.15*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),xe.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),x=.35,b=ie*.35;var Me=new go.PathFigure(ee*a,(oe-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y));var ut=new go.PathFigure((ee-x)*a,oe*y,!1);return E.add(ut),fe(ae),fe(ce),fe(Se),fe(_e),fe(we),fe(Fe),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,ee=-.125,oe=b*ie,ae=new go.PathFigure((.525+x)*a,(.5+b+ee)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+ee)*y,(.5+oe+x)*a,(.5+b+ee)*y,(.5+b+x)*a,(.5+oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+ee)*y,(1-.5+b+x)*a,(.5-oe+ee)*y,(.5+oe+x)*a,(.5-b+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+ee)*y,(.5-oe+x)*a,(.5-b+ee)*y,(.5-b+x)*a,(.5-oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+ee)*y,(.5-b+x)*a,(.5+oe+ee)*y,(.5-oe+x)*a,(.5+b+ee)*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,ee=-.125,oe=b*ie;var ae=new go.PathFigure((1-.5+b+x)*a,(.5+ee)*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+ee)*y,(.5+b+x)*a,(.5+oe+ee)*y,(.5+oe+x)*a,(.5+b+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+ee)*y,(.5-oe+x)*a,(.5+b+ee)*y,(.5-b+x)*a,(.5+oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+ee)*y,(.5-b+x)*a,(.5-oe+ee)*y,(.5-oe+x)*a,(.5-b+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+ee)*y,(.5+oe+x)*a,(.5-b+ee)*y,(1-.5+b+x)*a,(.5-oe+ee)*y));var ae=new go.PathFigure((.525+x)*a,(.5+b+ee)*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,ee=(.5-b/2)*y,oe=(.5+b/2)*y,ae=new go.Geometry,ce=new go.PathFigure(0,ee,!0);ae.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,ee/y);var Se=Pe(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(Se.x,Se.y),fe(Se),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,ee=(y-b)/2,oe=ee+b,ae=new go.Geometry,ce=new go.PathFigure(0,ee,!0);ae.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,ee)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ce.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ae.spot1=new go.Spot(0,ee/y);var Se=Pe(0,oe/y,1,oe/y,x/a,1,1,.5,z());return ae.spot2=new go.Spot(Se.x,Se.y),fe(Se),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,ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.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=Pe(0,.5,.3,0,0,b/y,.1,b/y,z());return ee.spot1=new go.Spot(ae.x,ae.y),ae=Pe(.7,1,1,.5,0,x/y,1,x/y,ae),ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),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,ee=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,ee=x+E,oe=0,ae=y):(x=0,ee=y,oe=0,ae=y));var ce=new go.Geometry,Se=new go.PathFigure(a,.5*y,!0);ce.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,oe)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close());var _e=Pe(0,.5,.3,oe/y,0,x/y,1,x/y,z());return ce.spot1=new go.Spot(_e.x,_e.y),_e=Pe(.7,ae/y,1,.5,0,ee/y,1,ee/y,_e),ce.spot2=new go.Spot(_e.x,_e.y),fe(_e),ce}),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,ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.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()),ee.spot1=new go.Spot(0,b/y);var ae=Pe(.7,1,1,.5,0,x/y,1,x/y,z());return ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),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,ee=x+E,oe=(y-b)/2,ae=oe+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,ee=x+E,oe=0,ae=y):(x=0,ee=y,oe=0,ae=y));var ce=new go.Geometry,Se=new go.PathFigure(a,.5*y,!0);ce.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ae)),Se.add(new go.PathSegment(go.PathSegment.Line,0,oe)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,oe)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,oe).close()),ce.spot1=new go.Spot(0,x/y);var _e=Pe(.7,ae/y,1,.5,0,ee/y,1,ee/y,z());return ce.spot2=new go.Spot(_e.x,_e.y),fe(_e),ce}),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 ee=Pe(.2,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(ee.x,ee.y),fe(ee),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 ee=Pe(0,.65,1,.65,0,1,1,.5,z());return b.spot2=new go.Spot(ee.x,ee.y),fe(ee),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,ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.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()),ee.spot1=new go.Spot(.2,.3);var ae=Pe(.7,1,1,.5,0,x/y,1,x/y,z());return ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),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 ee=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ee.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()),ee.spot1=new go.Spot(.2,b/y);var ae=Pe(.7,1,1,.5,0,x/y,1,x/y,z());return ee.spot2=new go.Spot(ae.x,ae.y),fe(ae),ee}),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,ee=new go.PathFigure(0,.9*y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),ee.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,ee=new go.PathFigure(0,E,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ie*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ie*E,(.5+x)*a,1*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ie*E)),ee.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,ee=new go.PathFigure(0,y-E,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ie*E)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ie*E,(.5+x)*a,y)),ee.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,ee=new go.PathFigure(E,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),ee.add(new go.PathSegment(go.PathSegment.Line,E,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),ee.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,ee=new go.PathFigure(a-E,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),ee.add(new go.PathSegment(go.PathSegment.Line,E,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0)),ee.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,ee=ie*b,oe=ie*x,ae=.5,ce=.1,Se=new go.PathFigure(ae*a,(ce+x)*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-b)*a,ce*y,(ae-ee)*a,(ce+x)*y,(ae-b)*a,(ce+oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-x)*y,(ae-b)*a,(ce-oe)*y,(ae-ee)*a,(ce-x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+b)*a,ce*y,(ae+ee)*a,(ce-x)*y,(ae+b)*a,(ce-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+x)*y,(ae+b)*a,(ce+oe)*y,(ae+ee)*a,(ce+x)*y));var _e=.05,xe=ie*_e;ae=.05,ce=.25;var we=new go.PathFigure(.5*a,.2*y,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ae=.95,ce=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,(ae+_e)*a,ce*y,(ae+xe)*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),_e=.025,xe=ie*_e,ae=.825,ce=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y,(ae+xe)*a,(ce-_e)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ce*y,(ae-xe)*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),_e=.05,xe=ie*_e,ae=.5,ce=.7,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y,(ae+xe)*a,(ce-_e)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ce*y,(ae-xe)*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),we.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),_e=.025,xe=ie*_e,ae=.175,ce=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae+_e)*a,(ce-xe)*y,(ae+xe)*a,(ce-_e)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-_e)*a,ce*y,(ae-xe)*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y)),we.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),we.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),_e=.05,xe=ie*_e,ae=.05,ce=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-_e)*y,(ae-_e)*a,(ce-xe)*y,(ae-xe)*a,(ce-_e)*y)),we.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 ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),ee.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,ee=new go.PathFigure(a,.1*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),ee.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,ee=new go.PathFigure(a,.1*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),ee.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,ee=new go.PathFigure(0,.2*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),ee.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 ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.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 ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),ee.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 ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.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 ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.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,ee=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+ee)*y,(oe+ee)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*y,(oe-ee)*a,y,0,(oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,0,0,(oe-ee)*y,(oe-ee)*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,oe*y,(oe+ee)*a,0,a,(oe-ee)*y));var ce=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ce.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,ee=new go.PathFigure(.5*a,y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.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,ee=new go.PathFigure(0,0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.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,ee=new go.PathFigure(a,x*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),ee.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 ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.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 ee=new go.PathFigure(0,0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),ee.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 ee=new go.PathFigure((1-b)*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),ee.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 ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.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 ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),ee.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,ee=new go.PathFigure(a,x*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),ee.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,ee=.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 ce=new go.PathFigure((ee+x)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe-x)*y,(ee+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,ee=ie*.1,oe=.1,ae=.9,ce=.5,Se=new go.PathFigure(.8*a,.5*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),Se.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,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+oe)*y,(ae+oe)*a,(ce+ee)*y,(ae+ee)*a,(ce+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a,ce*y,(ae-ee)*a,(ce+oe)*y,(ae-oe)*a,(ce+ee)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-oe)*y,(ae-oe)*a,(ce-ee)*y,(ae-ee)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a,ce*y,(ae+ee)*a,(ce-oe)*y,(ae+oe)*a,(ce-ee)*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,ee=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,(ee+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,(ee+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,ee=.9,oe=.5;var ce=new go.PathFigure((ee-b)*a,oe*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-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,ee=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,(ee+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,(ee+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,ee=.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 ce=new go.PathFigure(.8*a,.5*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(ee+x)*a,(oe-b)*y,.7*a,(oe-x)*y)),b=.1,x=ie*.1,ee=.9,oe=.5;var Se=new go.PathFigure((ee-b)*a,oe*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-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,ee=.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 ce=new go.PathFigure(.2*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(ee+x)*a,(oe-b)*y,.9*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,ee=.1,oe=.5,ae=new go.PathFigure((ee-b*.5)*a,y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+x)*a,0,(ee+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+x)*a,0,(ee+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+x)*a,0,(ee+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,0,(ee-b)*a,y,(ee-x)*a,0)),ee=.9,ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b*.5)*a,y,(ee+x)*a,0,(ee+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,ee=.5,oe=.5,ae=new go.PathFigure((ee-x)*a,oe*y,!1);return E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-x)*y,(ee-x)*a,(oe-b)*y,(ee-b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe-x)*y,(ee+x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Move,(ee-x+.1)*a,oe*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x-.1)*a,oe*y,ee*a,(oe-x)*y,ee*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 ee=ie*.8,oe=.8,ae=0,ce=.5,Se=(b-a)/2,_e=(x-y)/2,xe=new go.PathFigure(ae*a+Se,(ce+oe)*y+_e,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+Se,ce*y+_e,(ae-ee)*a+Se,(ce+oe)*y+_e,(ae-oe)*a+Se,(ce+ee)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae-oe)*a+Se,(ce-ee)*y+_e,(ae-ee)*a+Se,(ce-oe)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce-oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce-ee)*y+_e)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce+ee)*y+_e,ae*a+Se,(ce+oe)*y+_e).close()),ee=ie*.4,oe=.4,ae=.2,ce=.5;var we=new go.PathFigure(ae*a+Se,(ce+oe)*y+_e,!0);E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+Se,ce*y+_e,(ae-ee)*a+Se,(ce+oe)*y+_e,(ae-oe)*a+Se,(ce+ee)*y+_e)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae-oe)*a+Se,(ce-ee)*y+_e,(ae-ee)*a+Se,(ce-oe)*y+_e)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe+ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce-oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce-ee)*y+_e)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae-oe+ee*.5)*a+Se,(ce+ee)*y+_e,ae*a+Se,(ce+oe)*y+_e).close()),ee=ie*.2,oe=.2,ae=.5,ce=.5;var Fe=new go.PathFigure((ae-oe)*a+Se,ce*y+_e,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae-oe)*a+Se,(ce-ee)*y+_e,(ae-ee)*a+Se,(ce-oe)*y+_e)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+Se,ce*y+_e,(ae+ee)*a+Se,(ce-oe)*y+_e,(ae+oe)*a+Se,(ce-ee)*y+_e)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae+oe)*a+Se,(ce+ee)*y+_e,(ae+ee)*a+Se,(ce+oe)*y+_e)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ae-oe)*a+Se,ce*y+_e,(ae-ee)*a+Se,(ce+oe)*y+_e,(ae-oe)*a+Se,(ce+ee)*y+_e)),ee=ie*.4,oe=.4,ae=.8,ce=.5;var Me=new go.PathFigure(ae*a+Se,(ce-oe)*y+_e,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+Se,ce*y+_e,(ae+ee)*a+Se,(ce-oe)*y+_e,(ae+oe)*a+Se,(ce-ee)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae+oe)*a+Se,(ce+ee)*y+_e,(ae+ee)*a+Se,(ce+oe)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce+oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce+ee)*y+_e)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce-ee)*y+_e,ae*a+Se,(ce-oe)*y+_e).close()),ee=ie*.8,oe=.8,ae=1,ce=.5;var ut=new go.PathFigure(ae*a+Se,(ce-oe)*y+_e,!0);return E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe)*a+Se,ce*y+_e,(ae+ee)*a+Se,(ce-oe)*y+_e,(ae+oe)*a+Se,(ce-ee)*y+_e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce+oe)*y+_e,(ae+oe)*a+Se,(ce+ee)*y+_e,(ae+ee)*a+Se,(ce+oe)*y+_e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ae+oe-ee*.5)*a+Se,ce*y+_e,ae*a+Se,(ce+oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce+ee)*y+_e)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+Se,(ce-oe)*y+_e,(ae+oe-ee*.5)*a+Se,(ce-ee)*y+_e,ae*a+Se,(ce-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 ee=new go.PathFigure(.6*a,y,!0,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),ee.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,ee=.5,oe=.5,ae=z(),ce=z(),Se=z(),_e=z();ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.5,ae,ae,ce,Se,_e);var xe=te(ce.x,ce.y),we=new go.PathFigure(ce.x*a,ce.y*y,!0);E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee+x)*a,(oe+b)*y,(ee+b)*a,(oe+x)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,(ee-b)*a,(oe+x)*y,(ee-x)*a,(oe+b)*y)),ve(ee-x,oe,ee-x,oe-b,ee-b,oe-x,ee,oe-x,.5,Se,_e,ce,ae,ae),we.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,Se.x*a,Se.y*y,_e.x*a,_e.y*y)),b=ie*.3,x=.3,ve(ee-x,oe,ee-x,oe-b,ee-b,oe-x,ee,oe-x,.5,Se,_e,ce,ae,ae),we.add(new go.PathSegment(go.PathSegment.Line,ce.x*a,ce.y*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee-x)*a,oe*y,_e.x*a,_e.y*y,Se.x*a,Se.y*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+x)*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ee+x)*a,oe*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ve(ee,oe-x,ee+b,oe-x,ee+x,oe-b,ee+x,oe,.5,ae,ae,ce,Se,_e),we.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,_e.x*a,_e.y*y,Se.x*a,Se.y*y).close());var we=new go.PathFigure(.45*a,0,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),we.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(ae),fe(ce),fe(Se),fe(_e),fe(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(ee,oe,ae){ee.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*a,(.8+ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*a,(.5+ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*a,(.5+ae)*y)),ee.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,ee=0,oe=b*ie,ae=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,Se=1,_e=.5,xe=.5,we=0,Fe=new go.PathFigure(ae*a,(1-ce)*y,!1);return E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,_e*y,Se*a,.7*y,Se*a,_e*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+x)*a,(we+x)*y,(.5+b+x)*a,(.5-oe+x)*y,(.5+oe+x)*a,(.5-b+x)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+ee)*y,(.5-oe+x)*a,(.5-b+ee)*y,(.5-b+x)*a,(.5-oe+ee)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+oe+ee)*y,(.5-oe+x)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Fe.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 ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),ee.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 ee=.5-.285,oe=.5,ae=ee,ce=Math.PI/4,Se=4*(1-Math.cos(ce))/(3*Math.sin(ce)),_e=Se*.5,xe=ee,we=ee,Fe=Se*xe,Me=Se*we;x.add(new go.PathSegment(go.PathSegment.Bezier,(oe-xe)*a,ae*y,(oe-(Fe+xe)/2)*a,(ae+(we+Me)/2)*y,(oe-xe)*a,(ae+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae-we)*y,(oe-xe)*a,(ae-Me)*y,(oe-Fe)*a,(ae-we)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(oe+xe)*a,ae*y,(oe+Fe)*a,(ae-we)*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+(Fe+xe)/2)*a,(ae+(we+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 ut=new go.PathFigure(.2*a,y,!1);E.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Xe=new go.PathFigure(.8*a,y,!1);return E.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var ee=new go.PathFigure(.1*a,y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),ee.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 ee=new go.PathFigure(.675*a,.575*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),ee.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,ee=new go.PathFigure(a,b*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),ee.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 ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.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 ee=new go.PathFigure(0,.6*y,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),ee.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 ee=.1,oe=ie*.1,ae=.2,ce=.9,Se=new go.PathFigure((ae-ee)*a,ce*y,!0);E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-ee)*y,(ae-ee)*a,(ce-oe)*y,(ae-oe)*a,(ce-ee)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,ce*y,(ae+oe)*a,(ce-ee)*y,(ae+ee)*a,(ce-oe)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+ee)*y,(ae+ee)*a,(ce+oe)*y,(ae+oe)*a,(ce+ee)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,ce*y,(ae-oe)*a,(ce+ee)*y,(ae-ee)*a,(ce+oe)*y).close()),ee=.1,oe=ie*.1,ae=.8,ce=.9;var _e=new go.PathFigure((ae-ee)*a,ce*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce-ee)*y,(ae-ee)*a,(ce-oe)*y,(ae-oe)*a,(ce-ee)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,ce*y,(ae+oe)*a,(ce-ee)*y,(ae+ee)*a,(ce-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(ce+ee)*y,(ae+ee)*a,(ce+oe)*y,(ae+oe)*a,(ce+ee)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,ce*y,(ae-oe)*a,(ce+ee)*y,(ae-ee)*a,(ce+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 ee=new go.PathFigure(.5*a,.8*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),ee.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,ce=ie*.1,Se=.1,_e=.9,xe=new go.PathFigure((Se-ae)*a,_e*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e-ae)*y,(Se-ae)*a,(_e-ce)*y,(Se-ce)*a,(_e-ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ae)*a,_e*y,(Se+ce)*a,(_e-ae)*y,(Se+ae)*a,(_e-ce)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e+ae)*y,(Se+ae)*a,(_e+ce)*y,(Se+ce)*a,(_e+ae)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ae)*a,_e*y,(Se-ce)*a,(_e+ae)*y,(Se-ae)*a,(_e+ce)*y)),ae=.1,ce=ie*.1,Se=.4,_e=.9;var we=new go.PathFigure((Se-ae)*a,_e*y,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e-ae)*y,(Se-ae)*a,(_e-ce)*y,(Se-ce)*a,(_e-ae)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ae)*a,_e*y,(Se+ce)*a,(_e-ae)*y,(Se+ae)*a,(_e-ce)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(_e+ae)*y,(Se+ae)*a,(_e+ce)*y,(Se+ce)*a,(_e+ae)*y)),we.add(new go.PathSegment(go.PathSegment.Bezier,(Se-ae)*a,_e*y,(Se-ce)*a,(_e+ae)*y,(Se-ae)*a,(_e+ce)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var ee=new go.PathFigure(.55*a,.4*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var Se=.05,_e=ie*.05,xe=.175,we=.95,oe=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_e)*y));var Se=.05,_e=ie*.05,xe=.375,we=.95,ae=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_e)*y));var Se=.05,_e=ie*.05,xe=.625,we=.95,ce=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_e)*y));var Se=.05,_e=ie*.05,xe=.825,we=.95,Fe=new go.PathFigure((xe-Se)*a,we*y,!0);E.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we-Se)*y,(xe-Se)*a,(we-_e)*y,(xe-_e)*a,(we-Se)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(xe+Se)*a,we*y,(xe+_e)*a,(we-Se)*y,(xe+Se)*a,(we-_e)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,xe*a,(we+Se)*y,(xe+Se)*a,(we+_e)*y,(xe+_e)*a,(we+Se)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(xe-Se)*a,we*y,(xe-_e)*a,(we+Se)*y,(xe-Se)*a,(we+_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 ee=new go.PathFigure(.15*a,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var oe=.05,ae=ie*.05,ce=.35,Se=.775,_e=new go.PathFigure((ce-oe)*a,Se*y,!0);return E.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(Se-oe)*y,(ce-oe)*a,(Se-ae)*y,(ce-ae)*a,(Se-oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce+oe)*a,Se*y,(ce+ae)*a,(Se-oe)*y,(ce+oe)*a,(Se-ae)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(Se+oe)*y,(ce+oe)*a,(Se+ae)*y,(ce+ae)*a,(Se+oe)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(ce-oe)*a,Se*y,(ce-ae)*a,(Se+oe)*y,(ce-oe)*a,(Se+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,ee=.5,oe=.7,ae=new go.PathFigure((ee-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y));var ce=new go.PathFigure(0,.7*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,ee=.5,oe=.5,ae=new go.PathFigure((ee-b)*a,oe*y,!0);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y));var ce=new go.PathFigure(.15*a,.5*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,ee=.5,oe=.5,ae=new go.PathFigure((ee-b)*a,oe*y,!1);E.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y).close()),b=.05,x=ie*.05,ee=.5,oe=.8;var ce=new go.PathFigure((ee-b)*a,oe*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe-b)*y,(ee-b)*a,(oe-x)*y,(ee-x)*a,(oe-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,oe*y,(ee+x)*a,(oe-b)*y,(ee+b)*a,(oe-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(oe+b)*y,(ee+b)*a,(oe+x)*y,(ee+x)*a,(oe+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,oe*y,(ee-x)*a,(oe+b)*y,(ee-b)*a,(oe+x)*y).close()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var ee=new go.PathFigure(.402*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),ee.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 ee=new go.PathFigure(a*.408,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),ee.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 ee=new go.PathFigure(a*.055,.13*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),ee.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 ee=new go.PathFigure(a*.11,y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),ee.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,ee=new go.PathFigure(b,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.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 ce=new go.PathFigure(a*.78,y*.05,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=y*.8,ee=new go.Geometry,oe=new go.PathFigure(E,0,!0);return ee.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?(ee.spot1=new go.Spot(0,0,b,b),ee.spot2=new go.Spot(1,.8,-b,-b)):(ee.spot1=go.Spot.TopLeft,ee.spot2=new go.Spot(1,.8)),ee}),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 ee=new go.PathFigure(a*.28,y*.37,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),ee.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,ee=new go.PathFigure(a*.62,y*.475,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),ee.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 ee=new go.PathFigure(a*.4,y*0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),ee.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 ee=new go.PathFigure(a*.5,y*0,!0);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),ee.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",te={},z=null,fe=!1,Pe=!1,ve=null,he=!1,pe=null,ie=null,de=0;de<arguments.length;de++){var le=arguments[de];if(le!==null)switch(typeof le){case"number":We=le.toFixed(1);break;case"string":le.match(new RegExp("^[0-9]\\.[0-9]+$"))?We=le:ve=le;break;case"object":typeof le.is3D!="undefined"?z=le:te=le;break;case"boolean":fe=le,Pe=!0;break}}z===null&&(z={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!Pe&&(fe=!0)),ve!==null&&te.id===void 0&&(te.id=ve);var ue="",se="",me=!1,re=null,ne=null,a=null,y=!1,E=null,b=null,x=null,ee=null,oe=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var ae=function(it){return parseFloat(it)>4?parseFloat(it):5};at.setHTML5Codebase=function(it,lt){ie=it,Ct(it,lt)},at.setJavaCodebase=at.setJavaCodebaseVersion=at.isCompiledInstalled=at.setPreCompiledScriptPath=at.setPreCompiledResourcePath=function(){},at.setHTML5CodebaseVersion=function(it,lt){var xt=parseFloat(it);if(xt!==NaN&&xt<5){console.log("The GeoGebra HTML5 codebase version "+xt+" is deprecated. Using version latest instead.");return}pe=it,Et(it,lt)},at.getHTML5CodebaseVersion=function(){return ne},at.getParameters=function(){return te},at.setFontsCSSURL=function(it){ee=it},at.setGiacJSURL=function(it){},at.setJNLPFile=function(it){ue=it},at.setJNLPBaseDir=function(it){},at.inject=function(){function it(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var lt="auto",xt=te.id,Jt,Vt=!1,xn=0;xn<arguments.length;xn++){var He=arguments[xn];typeof He=="string"?(He=He.toLowerCase(),He.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?lt=He:xt=arguments[xn]):typeof He=="boolean"?Vt=He:He instanceof HTMLElement&&(Jt=He)}un();function un(){if(!he){setTimeout(un,200);return}lt=nt(lt);var kn=Jt||document.getElementById(xt);if(!kn){console.log("possibly bug on ajax loading? ");return}if(at.removeExistingApplet(kn,!1),te.width===void 0&&kn.clientWidth&&(te.width=kn.clientWidth),te.height===void 0&&kn.clientHeight&&(te.height=kn.clientHeight),!(te.width&&te.height)&&lt==="html5"&&(delete te.width,delete te.height),re=lt,lt==="screenshot")Xe(kn,te);else{var nr=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?nr=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(nr=(!ce()||it())&&Se()),nr?(re="screenshot",Ae(kn,te,Vt,lt)):ut(kn,te,Vt)}}};function ce(){try{return window.self!==window.top}catch(it){return!0}}function Se(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}at.getViews=function(){return z},at.isJavaInstalled=function(){return!1};var _e=function(it){var lt=function(xn){var He=JSON.parse(xn),un=function(Ln){return Ln.type=="G"||Ln.type=="E"},kn=He.elements?He.elements.filter(un)[0]:He;if(!kn||!kn.url){xt();return}te.fileName=kn.url,xe(kn.settings||{}),z.is3D=!0;var nr="https://www.geogebra.org/images/";at.setPreviewImage(E||kn.previewUrl,nr+"GeoGebra_loading.png",nr+"applet_play.png"),it()},xt=function(){te.onError&&te.onError(),nn("Error: Fetching material (id "+te.material_id+") failed.",te)},Jt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Vt="/materials/"+te.material_id+"?scope=basic";we("https://"+Jt+"/api/proxy.php?path="+encodeURIComponent(Vt),lt,xt)};function xe(it){var lt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(xt){it[xt]=!!it[xt]}),lt.forEach(function(xt){te[xt]===void 0&&it[xt]!==void 0&&(te[xt]=it[xt])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function we(it,lt,xt){var Jt=new XMLHttpRequest;Jt.open("GET",it),Jt.onload=function(){lt(Jt.responseText)},Jt.onerror=xt,Jt.send()}at.isHTML5Installed=function(){return!0},at.getLoadedAppletType=function(){return re},at.setPreviewImage=function(it,lt,xt){E=it,b=lt,x=xt},at.removeExistingApplet=function(it,lt){var xt;typeof it=="string"&&(it=document.getElementById(it)),re=null;var Jt=null;for(xt=0;xt<it.childNodes.length;xt++){var Vt=it.childNodes[xt],xn=Vt.className;xn==="applet_screenshot"?lt?(Vt.style.display="block",re="screenshot"):Vt.style.display="none":xn!=="applet_scaler prerender"&&(it.removeChild(Vt),Jt=xn&&xn.indexOf("appletParameters")!=-1?Vt.id:null,xt--)}var He=te.id!==void 0?te.id:Jt,un=window[He];un&&typeof un.getBase64=="function"&&(un.remove(),window[He]=null)},at.refreshHitPoints=function(){if(ae(ggbHTML5LoadedCodebaseVersion)>=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=te.id!==void 0?te.id:"ggbApplet";return window[it]},at.resize=function(){};var Fe=function(it,lt,xt){var Jt=document.createElement("param");Jt.setAttribute("name",lt),Jt.setAttribute("value",xt),it.appendChild(Jt)},Me=function(it){return it&&it!=="false"},ut=function(it,lt,xt){ae(ne)<=4.2&&(xt=!0);var Jt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Jt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Vt=document.createElement("div");Vt.classList.add("appletParameters","notranslate");var xn=lt.width,He=lt.height;if(lt.disableAutoScale=lt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():lt.disableAutoScale,lt.width!==void 0)if(ae(ne)<=4.4)Me(lt.showToolBar)&&(lt.height-=7),Me(lt.showAlgebraInput)&&(lt.height-=37),lt.width<605&&Me(lt.showToolBar)&&(lt.width=605,xn=605);else{var un=100;(Me(lt.showToolBar)||Me(lt.showMenuBar))&&(lt.hasOwnProperty("customToolBar")&&(lt.customToolbar=lt.customToolBar),un=Me(lt.showMenuBar)?245:155),xn<un&&(lt.width=un,xn=un)}Vt.style.border="none",Vt.style.display="inline-block";for(var kn in lt)lt.hasOwnProperty(kn)&&kn!=="appletOnLoad"&&Vt.setAttribute("data-param-"+kn,lt[kn]);ee&&Vt.setAttribute("data-param-fontscssurl",ee),at.resize=function(){GGBAppletUtils.responsiveResize(it,lt)},window.addEventListener("resize",function(fn){at.resize()});var nr=typeof lt.appletOnLoad=="function"?lt.appletOnLoad:function(){};if(!xt&&lt.width!==void 0){lt.hasOwnProperty("showSplash")||Vt.setAttribute("data-param-showSplash","false");var Ln=it.querySelector(".applet_scaler.prerender"),Gt=Ln!==null;if(Gt)var Je=Ln.querySelector(".ggb_preview");else{var Je=Be(xn,He,lt.borderColor,!1);Ln=document.createElement("div"),Ln.className="applet_scaler",Ln.style.position="relative",Ln.style.display="block",Ln.style.width=xn+"px",Ln.style.height=He+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ln,"66%"),ae(ne)>=5?(lt.appletOnLoad=function(fn){var hn=it.querySelector(".ggb_preview");hn&&hn.parentNode.removeChild(hn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ln),window.GGBT_wsf_view&&$(window).trigger("resize"),nr(fn)},Gt||Ln.appendChild(Je)):Vt.appendChild(Je),Ln.appendChild(Vt),Gt||it.appendChild(Ln),setTimeout(function(){at.resize()},1)}else{var Qe=document.createElement("div");Qe.className="applet_scaler",Qe.style.position="relative",Qe.style.display="block",Qe.appendChild(Vt),it.appendChild(Qe),lt.appletOnLoad=function(fn){at.resize(),nr(fn)}}function _t(fn,hn){hn&&typeof hn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(fn,hn.appletOnLoad):renderGGBElement(fn),nn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",hn)}function Rt(fn,hn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:fn,params:hn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function($n){_t($n.article,$n.params)}),html5AppletsToProcess=null)},ae(ne)<5&&(fn.className+=" geogebraweb")):_t(fn,hn)}if(Jt){scriptLoadStarted=!0;for(var Yt=0;Yt<Vt.childNodes.length;Yt++){var gt=Vt.childNodes[Yt].tagName;gt==="TABLE"&&(Vt.removeChild(Vt.childNodes[Yt]),Yt--)}if(ggbHTML5LoadedScript!==null){var wt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');wt!=null&&wt.parentNode.removeChild(wt)}var Dt=document.createElement("script"),tt=function(){Rt(Vt,lt)};Dt.src=se+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Dt.src,nn("GeoGebra HTML5 codebase loaded: '"+se+"'.",lt),!ie&&(!pe||pe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),tt()):se.requirejs?__webpack_require__.e(12).then(function(){var fn=[__webpack_require__(12)];tt.apply(null,fn)}.bind(this)).catch(__webpack_require__.oe):(Dt.onload=tt,it.appendChild(Dt))}else Rt(Vt,lt);lt.height=He,lt.width=xn},Xe=function(it,lt,xt){var Jt=Be(lt.width,lt.height,lt.borderColor,xt),Vt=document.createElement("div");Vt.style.position="relative",Vt.style.display="block",Vt.style.width=lt.width+"px",Vt.style.height=lt.height+"px",Vt.className="applet_screenshot applet_scaler"+(xt?" applet_screenshot_play":""),Vt.appendChild(Jt);var xn=GGBAppletUtils.getScale(lt,it,xt);xt?(it.appendChild(De()),window.GGBT_wsf_view||(it.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Vt,"66%"),it.appendChild(Vt),xn!==1&&!isNaN(xn)&&(GGBAppletUtils.scaleElement(Vt,xn),Vt.style.width=lt.width+"px",Vt.style.height=lt.height+"px",Vt.parentNode.style.width=lt.width*xn+"px",Vt.parentNode.style.height=lt.height*xn+"px"),at.resize=function(){mt(it,Jt,Vt,xt)},window.addEventListener("resize",function(He){at.resize()}),at.resize()};function mt(it,lt,xt,Jt){if(it.contains(lt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(it.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(it)}var Vt=GGBAppletUtils.getScale(te,it,Jt);xt.parentNode!==null&&(!isNaN(Vt)&&Vt!==1?(GGBAppletUtils.scaleElement(xt,Vt),xt.parentNode.style.width=te.width*Vt+"px",xt.parentNode.style.height=te.height*Vt+"px"):(GGBAppletUtils.scaleElement(xt,1),xt.parentNode.style.width=te.width+"px",xt.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(it),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}at.onExitFullscreen=function(it,lt){lt.appendChild(it)};var Ae=function(it,lt,xt,Jt){Xe(it,lt,!0);for(var Vt=function(){var un=[];for(He=0;He<it.childNodes.length;He++)un.push(it.childNodes[He]);if(window.GGBT_wsf_view){var kn=window.GGBT_wsf_view.renderFullScreen(it,lt.id),nr=document.getElementById("fullscreencontainer"),Ln=jQuery(it).find(".fullscreencontent");Ln.length>0?(kn.remove(),Ln.attr("id","fullscreencontent").show(),jQuery(nr).append(Ln),window.dispatchEvent(new Event("resize"))):ut(kn,lt,!1),window.GGBT_wsf_view.launchFullScreen(nr)}else re=Jt,ut(it,lt,!1);if(!window.GGBT_wsf_view)for(He=0;He<un.length;He++)it.removeChild(un[He])},xn=it.getElementsByClassName("ggb_preview_play"),He=0;He<xn.length;He++)xn[He].addEventListener("click",Vt,!1),xn[He].addEventListener("ontouchstart",Vt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(it),Se()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},De=function(){var it=document.createElement("div");if(it.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var lt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',xt=document.createElement("style");xt.styleSheet?xt.styleSheet.cssText=lt:xt.appendChild(document.createTextNode(lt)),document.getElementsByTagName("head")[0].appendChild(xt)}return it},Be=function(it,lt,xt,Jt){var Vt=document.createElement("div");Vt.className="ggb_preview",Vt.style.position="absolute",Vt.style.zIndex="90",Vt.style.width=it-2+"px",Vt.style.height=lt-2+"px",Vt.style.top="0px",Vt.style.left="0px",Vt.style.overflow="hidden",Vt.style.backgroundColor="white";var xn="lightgrey";xt!==void 0&&(xt==="none"?xn="transparent":xn=xt),Vt.style.border="1px solid "+xn;var He=document.createElement("img");if(He.style.position="relative",He.style.zIndex="1000",He.style.top="-1px",He.style.left="-1px",E!==null&&He.setAttribute("src",E),He.style.opacity=.7,b!==null){var un,kn,nr;if(!Jt){un=document.createElement("img"),un.style.position="absolute",un.style.zIndex="1001",un.style.opacity=1,He.style.opacity=.3,kn=360,kn>it/4*3&&(kn=it/4*3),nr=kn/5.8,un.setAttribute("src",b),un.setAttribute("width",kn),un.setAttribute("height",nr);var Ln=(it-kn)/2,Gt=(lt-nr)/2;un.style.left=Ln+"px",un.style.top=Gt+"px",Vt.appendChild(un)}}return Vt.appendChild(He),Vt},nt=function(it){return it=it.toLowerCase(),it==="html5"||it==="screenshot"?it:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],Et=function(it,lt){if(ne=it,lt){Ct(ne,!0);return}var xt=!fe;if(xt){var Jt=ae(ne);!isNaN(Jt)&&Jt<4.4&&(xt=!1)}var Vt,xn;window.location.protocol.substr(0,4)==="http"?Vt=window.location.protocol:Vt="http:";var He=ne.indexOf("//");He>0?xn=ne:He===0?xn=Vt+ne:xn="https://www.geogebra.org/apps/5.2.814.0/";for(var un in Ke)if(ne.slice(Ke[un].length*-1)===Ke[un]||ne.slice((Ke[un].length+1)*-1)===Ke[un]+"/"){Ct(xn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&xt&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!Me(te.showToolBar)&&!Me(te.showMenuBar)&&!Me(te.showAlgebraInput)&&!Me(te.enableRightClick)&&(!te.appName||te.appName=="classic")?xn+="webSimple/":xn+="web3d/",Ct(xn,!1)},Ct=function(it,lt){if(it.requirejs){se=it;return}it.slice(-1)!=="/"&&(it+="/"),se=it,lt===null&&(lt=it.indexOf("http")===-1),me=lt,a="web.nocache.js",y=!1;var xt=se.split("/");xt.length>1&&(!lt&&xt[xt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ke.indexOf(xt[xt.length-2])>=0&&(a=xt[xt.length-2]+".nocache.js")),xt=it.split("/"),ne=xt[xt.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 Jt=parseFloat(ne);Jt!==NaN&&Jt<5&&it.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Jt+" is deprecated. Using version latest instead."),Et("5.0",lt))},nn=function(it,lt){window.console&&window.console.log&&(!lt||typeof lt.showLogging=="undefined"||lt.showLogging&&lt.showLogging!=="false")&&console.log(it)};te.material_id!==void 0?_e(on):on();function on(){var it=We;pe!==null?it=pe:parseFloat(it)<5&&(it="5.0"),Et(it,!1),ie!==null&&Ct(ie,me),he=!0}return at},GGBAppletUtils=function(){"use strict";function at(){return window.GGBT_wsf_edit!==void 0}function We(he,pe){pe!=1?(he.style.transformOrigin="0% 0% 0px",he.style.webkitTransformOrigin="0% 0% 0px",he.style.transform="scale("+pe+","+pe+")",he.style.webkitTransform="scale("+pe+","+pe+")",he.style.maxWidth="initial",he.querySelector(".ggb_preview")!==null&&(he.querySelector(".ggb_preview").style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[0]!==void 0&&(he.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),he.querySelectorAll(".ggb_preview img")[1]!==void 0&&(he.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(he.style.transform="none",he.style.webkitTransform="none")}function te(he,pe,ie,de,le,ue){var se=null;if(ue!=null&&ue!="")for(var me=he.parentNode;me!=null;)if((" "+me.className+" ").indexOf(" "+ue+" ")>-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),he){var ee=he.getBoundingClientRect();ee.left>0&&ee.left<=re&&(le===void 0||!le)&&(document.dir==="rtl"?(E=re-ee.width-ee.left,b=a<=480?10:30):(b=ee.left,E=a<=480?10:30),y=b+E)}if(he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=he.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return he&&((ie===void 0||!ie)&&pe>0&&pe+y<re?re=pe:re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(ne-=x)),{width:re,height:ne}}function z(he,pe,ie,de,le){if(he.isScreenshoGenerator)return 1;var ue=de!==void 0&&de,se=he.noScaleMargin!=null&&he.noScaleMargin,me=function(oe){return oe&&oe!=="false"},re=me(he.autoHeight),ne=te(pe,he.width,ie,re,ue&&window.GGBT_wsf_view||se,le),a=parseInt(ne.width),y=he.width,E=he.height;if(y===void 0){var b=pe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,ee=ue?1:ne.height/E;return ie!==void 0&&!ie&&(x=Math.min(1,x),ee=Math.min(1,ee)),Math.min(x,ee)}function fe(he,pe,ie){var de=1,le,ue=!1;if(he.hasOwnProperty("allowUpscale")&&(ue=he.allowUpscale),he.hasOwnProperty("scale")&&(de=parseFloat(he.scale),(isNaN(de)||de===null||de===0)&&(de=1),de>1&&(ue=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(he.hasOwnProperty("disableAutoScale")&&he.disableAutoScale))le=z(he,pe,ue,ie,he.scaleContainerClass);else return de;return ue&&(!he.hasOwnProperty("scale")||de===1)?le:Math.min(de,le)}function Pe(he){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),de=he.getBoundingClientRect(),le=(pe-de.width)/2,ue=(ie-de.height)/2;ue<0&&(ue=0),he.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?he.style.left="40px":he.style.left=le+"px",he.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?he.style.top="40px":he.style.top=ue+"px",he.style.left=le+"px")}function ve(he,pe){var ie=he.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(he)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var de=fe(pe,he);at()&&ie.setAttribute("data-param-scale",de);for(var le=null,ue=0;ue<he.childNodes.length;ue++)if(he.childNodes[ue].className!==void 0&&he.childNodes[ue].className.match(/^applet_scaler/)){le=he.childNodes[ue];break}if(le!==null&&le.querySelector(".noscale")!==null)return;var se=pe.id!==void 0?pe.id:"ggbApplet",me=window[se];(me==null||!me.recalculateEnvironments)&&le!==null&&!le.className.match(/fullscreen/)&&(le.parentNode.style.transform="",!isNaN(de)&&de!==1?(le.parentNode.style.width=pe.width*de+"px",le.parentNode.style.height=pe.height*de+"px",We(le,de)):(We(le,1),le.parentNode.style.width=pe.width+"px",le.parentNode.style.height=pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Pe(he),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:ve,isFlexibleWorksheetEditor:at,positionCenter:Pe,getScale:fe,scaleElement:We}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var at=n.location.search;return at.indexOf(J)!=-1||at.indexOf(K)!=-1}function q(at,We){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(at){var We=s[L].bindings;s[L].bindings=function(){for(var te=We?We():{},z=at[webModule.__softPermutationId],fe=O;fe<z.length;fe++){var Pe=z[fe];te[Pe[O]]=Pe[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var at=o.createElement(Q);if(at.id=L,at.style.cssText=R+S,at.tabIndex=-1,o.body.appendChild(at),t=at.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var We=document.compatMode==U?V:W;t.write(We+X),t.close()}}}function w(at){function We(z){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Pe=fe();if(Pe){z();return}function ve(){if(!Pe){if(!fe())return;Pe=!0,z(),o.removeEventListener&&o.removeEventListener(Z,ve,!1),he&&clearInterval(he)}}o.addEventListener&&o.addEventListener(Z,ve,!1);var he=setInterval(function(){ve()},$)}function te(z){var fe=u(),Pe=fe.body,ve=fe.createElement(_);ve.language=ab,ve.crossOrigin=W,ve.src=z,webModule.__errFn&&(ve.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),Pe.appendChild(ve)}We(function(){te(at)})}webModule.__startLoadingFragment=function(at){return C(at)},webModule.__installRunAsyncCode=function(at){var We=u(),te=We.body,z=We.createElement(_);z.language=ab,z.text=at,te.appendChild(z),te.removeChild(z)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(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(he){var pe=he.lastIndexOf(rb);pe==-1&&(pe=he.length);var ie=he.indexOf(sb);ie==-1&&(ie=he.length);var de=he.lastIndexOf(tb,Math.min(ie,pe));return de>=O?he.substring(O,de+P):W}function We(he){if(!he.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=he+vb,he=at(pe.src)}return he}function te(){var he=__gwt_getMetaProperty(wb);return he!=null?he:W}function z(){for(var he=o.getElementsByTagName(_),pe=O;pe<he.length;++pe)if(he[pe].src.indexOf(xb)!=-1)return at(he[pe].src);return W}function fe(){var he=o.getElementsByTagName(yb);return he.length>O?he[he.length-P].href:W}function Pe(){var he=o.location;return he.href==he.protocol+zb+he.host+he.pathname+he.search+he.hash}var ve=te();return ve==W&&(ve=z()),ve==W&&(ve=fe()),ve==W&&Pe()&&(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,te=[],z=[];function fe(he){var pe=z[he](),ie=te[he];if(pe in ie)return pe;var de=[];for(var le in ie)de[ie[le]]=le;throw r&&r(he,de,pe),null}if(__gwt_isKnownPropertyValue=function(he,pe){return pe in te[he]},webModule.__getPropMap=function(){var he={};for(var pe in te)te.hasOwnProperty(pe)&&(he[pe]=fe(pe));return he},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Pe;try{Pe=Cb;var ve=Pe.indexOf(Db);ve!=-1&&(We=parseInt(Pe.substring(ve+P),$),Pe=Pe.substring(O,ve))}catch(he){}return webModule.__softPermutationId=We,C(Pe+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,te){"use strict";te.d(We,{Ax:function(){return ve},Ds:function(){return he},KI:function(){return ie},SI:function(){return Pe},f1:function(){return fe}});var z=te(11320);function fe(de){let le=!0;if(de.length>0){for(let ue=0;ue<de.length;ue++)if(de[ue].compile_success==0||!de[ue].compile_success){le=!1;break}}else le=!1;return le}function Pe(de,le=""){let ue=[];for(let se=0;se<de.length;se++){let me=de[se],re=le?`${le}/${me.name}`:`${me.name}`;ue.push({title:me.name,type:me.type,isLeaf:me.type!=="tree",key:re})}return ue}function ve(de,le,ue){for(let se=0;se<de.length;se++){let me=de[se];if(me.key===le){me.children=ue;break}me.children&&ve(me.children,le,ue)}return de}function he(de,le,ue){let se;return function(){let me=this,re=arguments,ne=function(){se=null,ue||de.apply(me,re)},a=ue&&!se;clearTimeout(se),se=setTimeout(ne,le),a&&de.apply(me,re)}}const pe=!0,ie=z.Z.API_SERVER},95235:function(at,We,te){"use strict";te.d(We,{Z:function(){return b}});var z=te(67294),fe=te(33170),Pe=te(25934),ve=te(94184),he=te.n(ve),pe={upload:"upload___jpwPD"},ie=Object.defineProperty,de=Object.defineProperties,le=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,re=(x,ee,oe)=>ee in x?ie(x,ee,{enumerable:!0,configurable:!0,writable:!0,value:oe}):x[ee]=oe,ne=(x,ee)=>{for(var oe in ee||(ee={}))se.call(ee,oe)&&re(x,oe,ee[oe]);if(ue)for(var oe of ue(ee))me.call(ee,oe)&&re(x,oe,ee[oe]);return x},a=(x,ee)=>de(x,le(ee)),y=(x,ee,oe)=>new Promise((ae,ce)=>{var Se=we=>{try{xe(oe.next(we))}catch(Fe){ce(Fe)}},_e=we=>{try{xe(oe.throw(we))}catch(Fe){ce(Fe)}},xe=we=>we.done?ae(we.value):Promise.resolve(we.value).then(Se,_e);xe((oe=oe.apply(x,ee)).next())});const E=({chunkSize:x=1024*1024*2,options:ee={},onCancel:oe,onComplete:ae,onError:ce,onProgress:Se,onBefore:_e,onBeginInitFile:xe,children:we,accept:Fe,className:Me,style:ut={},concurrency:Xe=4},mt)=>{let[Ae,De]=(0,z.useState)("ready");const[Be,nt]=(0,z.useState)(0),[Ke,Et]=(0,z.useState)(""),[Ct,nn]=(0,z.useState)(null),on=(0,z.useRef)(null),it=(0,z.useRef)((0,Pe.Z)()),lt=(0,z.useRef)(!1);(0,z.useImperativeHandle)(mt,()=>({cancel:Vt,file:Ct,uploadStatus:Ae}));const xt=()=>{const He=document.getElementById(it.current);He&&(He.value="")},Jt=He=>y(void 0,null,function*(){var un;if(Ae==="uploading")return;xe&&xe(He);const kn=He.size,nr=Math.ceil(kn/x);lt.current=!1,De("uploading"),nt(0),Et("");try{const Ln=yield(0,fe.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:He.name,chunkCount:nr},ee)});if(lt.current||(Ln==null?void 0:Ln.status)!==0)throw new Error;const{upload_id:Gt}=Ln;on.current=new AbortController;const Je=[];let Qe=0;for(let gt=0;gt<nr;gt++){const wt=gt*x,Dt=Math.min(wt+x,kn),tt=He.slice(wt,Dt),fn=new FormData;fn.append("chunk",tt),fn.append("fileName",He.name),fn.append("chunkIndex",(gt+1).toString()),fn.append("uploadId",Gt);for(const hn in ee)Object.prototype.hasOwnProperty.call(ee,hn)&&fn.append(hn,ee[hn]);Je.push(()=>(0,fe.ZP)("/api/attachments/multipart_upload",{method:"POST",body:fn,signal:on.current.signal},!0).then(hn=>{console.log(hn,444),Qe++;const $n=Math.round(Qe/nr*100);nt($n),Se&&Se(a(ne({},hn),{file:He,percent:$n}))}))}let _t=0,Rt=Xe;for(console.log(Je,"promises");_t<Je.length;){const gt=(un=Je.slice(_t,_t+Rt))==null?void 0:un.map(wt=>wt());if(gt.length>0){const wt=yield Promise.all(gt);_t+=Rt}}const Yt=yield(0,fe.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:He.name,chunkCount:nr,uploadId:Gt},ee)});Yt.object?(De("success"),xt(),ae&&ae(a(ne({},Yt),{file:He,percent:100}))):(De("error"),Et("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),xt(),ce&&ce(He.name))}catch(Ln){De("error"),Et("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),xt(),ce&&ce(He.name)}}),Vt=(0,z.useCallback)(()=>{lt.current=!0,on.current&&(on.current.abort(),oe&&oe())},[oe]),xn=He=>{var un,kn;const nr=(kn=(un=He==null?void 0:He.target)==null?void 0:un.files)==null?void 0:kn[0];if(nn(nr),Ae="ready",!!nr){if(_e){_e(nr)||Jt(nr),xt();return}Jt(nr)}};return z.createElement(z.Fragment,null,z.createElement("input",{type:"file",id:it.current,style:{display:"none"},onChange:xn,accept:Fe}),z.createElement("label",{className:he()(pe.upload,Me),htmlFor:it.current,style:ut},we))};var b=(0,z.forwardRef)(E)},63205:function(at,We,te){"use strict";te.d(We,{Z:function(){return se}});var z=te(67294),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Pe=te(94184),ve=te.n(Pe),he=te(57953),pe=te(15979),ie=te(33170),de=te(28706),le=(me,re,ne)=>new Promise((a,y)=>{var E=ee=>{try{x(ne.next(ee))}catch(oe){y(oe)}},b=ee=>{try{x(ne.throw(ee))}catch(oe){y(oe)}},x=ee=>ee.done?a(ee.value):Promise.resolve(ee.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 ee=(0,z.useRef)(null),oe=(0,z.useRef)(null),ae=(0,z.useRef)(null),ce=(0,z.useRef)(null),[Se,_e]=(0,z.useState)(!1),[xe,we]=(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&&Fe()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null))},[me==null?void 0:me.visible]);const Fe=()=>le(void 0,null,function*(){_e(!0),we("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ae=yield(0,de.ZJ)(me==null?void 0:me.src);ee.current.src="",ee.current.src=Ae,ee.current.onload=function(){mt()},_e(!1),we("")}),Me=()=>{document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",y()},ut=Ae=>le(void 0,null,function*(){_e(!0),we("\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),we("")}),Xe=()=>{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(Be=>{const nt=document.querySelector(Be.name);nt&&nt.setAttribute("title",Be.title)})},mt=()=>{oe.current=new pe.hP(ee.current),oe.current.targetRoot=ce.current,oe.current.addEventListener("render",ut),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),Xe()},300)};return z.createElement(z.Fragment,null,(me==null?void 0:me.visible)&&z.createElement(he.Z,{spinning:Se,tip:xe,style:{position:"absolute"}},z.createElement("div",{ref:ce,className:ve()(fe.imageDimensions,re,ne?fe.fullWidth:""),style:a},z.createElement("img",{className:fe.img,ref:ee}))))}},36527:function(at,We,te){"use strict";var z=te(67294),fe=te(71230),Pe=te(15746),ve=te(36182),he=te(71577),pe=te(85725),ie=te(71736),de=te(84279),le=te(67294);const ue=(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(fe.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((oe,ae)=>le.createElement(Pe.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((ce,Se)=>le.createElement("div",{key:Se},le.createElement("h1",null,ce.name),le.createElement(fe.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(Pe.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(fe.Z,{className:ie.Z.lists,gutter:[10,10]},E.map((oe,ae)=>le.createElement(Pe.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((ce,Se)=>le.createElement("div",{key:Se},ce.name&&le.createElement("h1",null,ce.name),le.createElement(fe.Z,{gutter:[10,10]},ce.data.map((_e,xe)=>le.createElement(Pe.Z,{key:xe,onClick:()=>b(_e),className:ie.Z.diamond},le.createElement(pe.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],ee=()=>{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:ee})),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(he.ZP,{size:"large",onClick:ee,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});We.Z=ue},7621:function(at,We,te){"use strict";te.d(We,{Z:function(){return ve}});var z=te(35973),fe={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},Pe=te(67294),ve=({message:he,className:pe,children:ie,style:de={}})=>Pe.createElement("div",{className:`custom-spinner ${fe.idsRingWrapper} ${pe}`},Pe.createElement("div",{className:fe.ldsRing},Pe.createElement("div",null),Pe.createElement("div",null),Pe.createElement("div",null),Pe.createElement("div",null)),he?Pe.createElement("p",{style:de},he):null,ie,Pe.createElement(z.Outlet,null))},60076:function(at,We,te){"use strict";te.d(We,{Z:function(){return ve}});var z=te(67294),fe=te(33054),Pe=te(67294),ve=({defaultX:he="40%",leftChild:pe,rightChild:ie,className:de,hideResize:le=!1})=>{const[ue,se]=(0,z.useState)(he),me=(0,z.useRef)();function re(){me.current=!0}(0,z.useEffect)(()=>{function y(b){me.current&&(fe.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 ue=="number"&&ue!==.01?`${ue}px`:he,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return Pe.createElement("div",{className:`split-panel-container ${de}`},Pe.createElement("section",{style:{width:ne,display:ue===.01?"none":""}},pe),Pe.createElement("section",{className:"resize-x-bar",onMouseDown:re},Pe.createElement("a",{className:"btn-resize"},Pe.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},Pe.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"})))),Pe.createElement("section",{style:{width:a}},ie))}},38658:function(at,We,te){"use strict";te.d(We,{Z:function(){return pe}});var z=te(67294),fe={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},Pe=te(94184),ve=te.n(Pe),pe=({className:ie,style:de={},leftNode:le,leftTitle:ue="\u81EA\u6D4B\u8F93\u5165",rightNode:se,rightTitle:me="\u8FD0\u884C\u7ED3\u679C"})=>z.createElement("div",{className:ve()(fe.result,ie),style:de},z.createElement("div",{className:fe.left},z.createElement("div",{className:fe.title},z.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),z.createElement("span",null,ue)),z.createElement("div",{className:fe.leftNode},le)),z.createElement("div",{className:fe.right},z.createElement("div",{className:fe.title},z.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),z.createElement("span",null,me)),z.createElement("div",{className:fe.rightNode},se)))},88508:function(at,We,te){"use strict";var z=te(67294);const fe=ve=>String(ve).length===1?`0${ve}`:ve,Pe=({className:ve="",onChange:he,defaultValue:pe=0})=>{const[ie,de]=(0,z.useState)(pe);(0,z.useEffect)(()=>{const me=setTimeout(()=>{de(ie+1e3)},1e3);return he(ie+1e3),()=>{clearInterval(me)}},[ie]);const le=parseInt(ie/(60*6e4))||"00",ue=parseInt(ie%(60*6e4)/6e4)||"00",se=parseInt(ie%6e4/1e3)||"00";return z.createElement("div",{className:ve},fe(le),":",fe(ue),":",fe(se))};We.Z=Pe},6104:function(at,We,te){"use strict";te.d(We,{Z:function(){return y}});var z=te(67294),fe=te(2453),Pe=te(85418),ve=te(24577),he=te(67631),pe=te.n(he),ie=te(52262),de=te(74855),le=te(51959),ue={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((ee,oe)=>{var ae=_e=>{try{Se(x.next(_e))}catch(xe){oe(xe)}},ce=_e=>{try{Se(x.throw(_e))}catch(xe){oe(xe)}},Se=_e=>_e.done?ee(_e.value):Promise.resolve(_e.value).then(ae,ce);Se((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<E.length-1;x++){let ee=Math.abs(E[x+1]-E[x]);ee<21&&(b+=ee)}return b}const a=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var y=(0,z.forwardRef)(({allow_skip:E,src:b,toLog:x,videoId:ee,logWatchHistory:oe,courseId:ae=null,startTime:ce,handlePause:Se=()=>{},handlePlay:_e=()=>{},handlePlayEnded:xe=()=>{},autoPlay:we=!1,onPlayEnded:Fe=()=>{},isShowWaterMark:Me=!0},ut)=>{var Xe;const Ae=((Xe=b==null?void 0:b.split("."))==null?void 0:Xe.pop())==="flv",De=(0,z.useRef)(),Be=(0,z.useRef)(),nt=(0,z.useRef)(),Ke=(0,z.useRef)(),Et=(0,z.useRef)(),Ct=(0,z.useRef)(),nn=(0,z.useRef)(),on=(0,z.useRef)(),it=(0,z.useRef)(),lt=(0,z.useRef)(),xt=(0,z.useRef)(),Jt=(0,z.useRef)(),Vt=(0,z.useRef)(),xn=(0,z.useRef)(),He=navigator.userAgent.toLowerCase().match(a),un=He?He[0]:"pc",kn=(0,z.useRef)(!1),nr=(0,ie.eY)();let Ln=0,Gt=0,Je=0,Qe=null,_t=!1,Rt=20,Yt=1,gt=!1,wt=!1,Dt=[];(0,z.useImperativeHandle)(ut,()=>({getLastUpdatedTime:()=>De.current.currentTime,getDuration:()=>De.current.duration})),fe.ZP.config({maxCount:1,getContainer:()=>nt.current});const tt=(0,z.useCallback)((An,Zt=!1)=>{let yt={point:De.current.currentTime};Qe?(yt.log_id=Qe,yt.watch_duration=ne(Dt),yt.total_duration=Gt):(ae?(yt.video_id=parseInt(ee,10),yt.course_id=ae):yt.video_id=ee,yt.duration=Ln,yt.device=un),Zt&&(yt.ed="1");function Nn(){return se(this,null,function*(){gt=!0,Qe=yield oe==null?void 0:oe(yt),gt=!1,An&&An()})}Nn()},[ee,ae]);(0,z.useEffect)(()=>{De.current&&(Ke.current.style.display="none",Et.current.style.display="block"),fe.ZP.destroy();let An=null;return ve.Z.isSupported&&Ae&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?(An=ve.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),De.current&&(An.attachMediaElement(De.current),An.load())):De.current.setAttribute("src",b),hn(),()=>{An&&(An.unload(),An.pause(),An.destroy(),An=null)}},[De,Ae,b]);function fn(){De.current.paused?(Ke.current.style.display="none",Et.current.style.display="block"):(Ke.current.style.display="block",Et.current.style.display="none")}function hn(){xt.current.style.display="none",Vt.current.style.display="none",Jt.current.style.display="none",De.current.muted||De.current.volume===0?xt.current.style.display="block":De.current.volume>0&&De.current.volume<=.5?Vt.current.style.display="block":Jt.current.style.display="block"}(0,z.useEffect)(()=>{const An=document.getElementById("play"),Zt=document.querySelectorAll(".playback-icons use");function yt(){_e(),ce&&!kn.current&&(De.current.currentTime=ce),kn.current=!0,Dt.push(De.current.currentTime),_t||(_t=!0,x&&tt())}function Nn(){return se(this,null,function*(){fn(),Dt.push(De.current.currentTime),x&&tt(()=>{Qe=null,Je=0,_t=!1,gt=!1,wt=!1,Dt=[],Gt=0,Yt=1},!0),Fe()})}function Xt(){Ct.current.value=Math.round(De.current.currentTime),nn.current.value=Math.round(De.current.currentTime)}function qn(){const yr=me(Math.round(De.current.currentTime));it.current.innerText=`${yr.hour>0?yr.hour+":":""}${yr.minutes}:${yr.seconds}`,it.current.setAttribute("datetime",`${yr.hour>0?" "+yr.hour+" ":""}${yr.minutes}m ${yr.seconds}s`)}function Br(){var yr,xo,Wo,Wi,$i,Ci,ei;const po=Math.round((yr=De.current)==null?void 0:yr.duration);(Wo=(xo=Ct.current)==null?void 0:xo.setAttribute)==null||Wo.call(xo,"max",po),($i=(Wi=nn.current)==null?void 0:Wi.setAttribute)==null||$i.call(Wi,"max",po);const co=me(po);on.current&&(on.current.innerText=`${co.hour>0?co.hour+":":""}${co.minutes}:${co.seconds}`,(ei=(Ci=on.current).setAttribute)==null||ei.call(Ci,"datetime",`${co.hour>0?" "+co.hour+" ":""}${co.minutes}m ${co.seconds}s`))}function or(){try{const yr=Math.round(De.current.duration);Ct.current.setAttribute("max",yr),nn.current.setAttribute("max",yr);const xo=me(yr);on.current.innerText=`${xo.hour>0?xo.hour+":":""}${xo.minutes}:${xo.seconds}`,on.current.setAttribute("datetime",`${xo.hour>0?" "+xo.hour+" ":""}${xo.minutes}m ${xo.seconds}s`),Xt(),qn();const{width:Wo,height:Wi,x:$i,y:Ci}=Be.current.getBoundingClientRect();if($i<0||Ci<0||!Wo)return;if(!wt){let ei=De.current.currentTime,po=ei-Je;Math.abs(po)<10?(Gt+=Math.abs(po),Je=ei,gt||Gt-Yt*Rt>=0&&(Yt++,Dt.push(Je),x&&tt())):(Je=ei,x&&tt())}}catch(yr){console.log(yr)}}function Gn(){wt=!0}function ir(){De.current.playing&&Dt.push(De.current.currentTime,Je),Je=De.current.currentTime,wt=!1}function So(){Ln=De.current.duration,Ln<=20&&(Rt=Ln/3),De.current.addEventListener("play",yt)}function On(yr){yr.preventDefault(),(0,le.vp)()?(De.current.style.width="100%",De.current.style.height="100%"):De.current.style.cssText=""}function qr(){Se()}function Yo(yr){if(!E){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const xo=yr.target.dataset.seek?yr.target.dataset.seek:yr.target.value;De.current.currentTime=xo,nn.current.value=xo,Ct.current.value=xo}function Zo(yr){const xo=Math.round(yr.offsetX/yr.target.clientWidth*parseInt(yr.target.getAttribute("max"),10));Ct.current.setAttribute("data-seek",xo);const Wo=me(xo);lt.current.textContent=`${Wo.hour>0?Wo.hour+":":""}${Wo.minutes}:${Wo.seconds}`;const Wi=De.current.getBoundingClientRect();lt.current.style.left=`${yr.pageX-Wi.left}px`}function qo(yr){switch(yr.code){case"Space":yr.preventDefault(),rt();break;case"ArrowRight":if(yr.preventDefault(),!E){fe.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,Xt();break;case"ArrowLeft":if(yr.preventDefault(),!E){fe.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,Xt();break;case"ArrowUp":yr.preventDefault(),De.current.volume<1&&(De.current.volume=(parseInt(De.current.volume*10)+1)/10);break;case"ArrowDown":yr.preventDefault(),De.current.volume>0&&(De.current.volume=(parseInt(De.current.volume*10)-1)/10);break}}return nt.current.addEventListener((0,le.gH)(),On),De.current.addEventListener("canplay",So),De.current.addEventListener("ended",Nn),De.current.addEventListener("seeking",Gn),De.current.addEventListener("seeked",ir),De.current.addEventListener("loadedmetadata",Br),Ct.current.addEventListener("mousemove",Zo),Ct.current.addEventListener("input",Yo),De.current.addEventListener("timeupdate",or),De.current.addEventListener("pause",qr),De.current.addEventListener("volumechange",hn),document.addEventListener("keydown",qo),()=>{var yr,xo,Wo,Wi,$i,Ci,ei,po,co,Ta,yn,ge;(yr=De.current)==null||yr.removeEventListener("canplay",So),(xo=De.current)==null||xo.removeEventListener("play",yt),(Wo=De.current)==null||Wo.removeEventListener("ended",Nn),(Wi=De.current)==null||Wi.removeEventListener("seeking",Gn),($i=De.current)==null||$i.removeEventListener("seeked",ir),(Ci=Ct.current)==null||Ci.removeEventListener("mousemove",Zo),(ei=Ct.current)==null||ei.removeEventListener("input",Yo),(po=De.current)==null||po.removeEventListener("timeupdate",or),(co=De.current)==null||co.removeEventListener("pause",qr),(Ta=De.current)==null||Ta.removeEventListener("loadedmetadata",Br),(yn=De.current)==null||yn.removeEventListener("volumechange",hn),document.removeEventListener("keydown",qo),(ge=De.current)!=null&&ge.playing&&(Dt.push(Je,De.current.currentTime),x&&tt())}},[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 An=new(pe());An.loadSource(b),An.attachMedia(De.current)}}},[b]);const[$n,no]=(0,z.useState)(1),rt=()=>{De.current.paused||De.current.ended?De.current.play():De.current.pause(),fn()};function vt(){De.current.muted=!De.current.muted,De.current.muted?(xn.current.setAttribute("data-volume",volume.value),xn.current.value=0):xn.current.value=xn.current.dataset.volume}return z.createElement("div",{style:{position:"relative"},ref:nt},z.createElement("div",{ref:Be,className:`${ue.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ue.animate__loop}`},Me&&nr?nr.login:" "),z.createElement("div",{className:ue.container},z.createElement("div",{className:ue["video-container"],id:"video-container"},z.createElement("div",{className:ue["playback-animation"],id:"playback-animation"},z.createElement("svg",{className:ue["playback-icons"]},z.createElement("use",{className:"hidden",href:"#play-icon"}),z.createElement("use",{href:"#pause"}))),z.createElement("video",{className:ue.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:De,autoPlay:we}),z.createElement("div",{className:`${ue["video-controls"]} `,id:"video-controls"},z.createElement("div",{className:ue["bottom-controls"]},z.createElement("div",{className:ue["left-controls"]},z.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:rt},z.createElement("svg",{className:ue["playback-icons"]},z.createElement("use",{ref:Et,href:"#play-icon"}),z.createElement("use",{ref:Ke,style:{display:"none"},href:"#pause"}))),z.createElement("div",{className:ue.time},z.createElement("time",{id:"time-elapsed",ref:it},"00:00"),z.createElement("span",null," / "),z.createElement("time",{id:"duration",ref:on},"00:00"))),z.createElement("div",{className:ue["right-controls"]},E&&z.createElement(Pe.Z,{placement:"top",overlayClassName:ue.rateOverlay,getPopupContainer:An=>An.parentNode,menu:{items:[{key:"1",label:z.createElement("span",{onClick:()=>{no(1),De.current.playbackRate=1}},"1.0x")},{key:"2",label:z.createElement("span",{onClick:()=>{no(1.5),De.current.playbackRate=1.5}},"1.5x")},{key:"3",label:z.createElement("span",{onClick:()=>{no(2),De.current.playbackRate=2}},"2.0x")}]}},z.createElement("div",{className:`${ue.controlText} mr5`},"\u500D\u901F")),z.createElement(de.CopyToClipboard,{text:b,onCopy:()=>fe.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:ue["volume-controls"]},z.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ue["volume-button"],id:"volume-button",onClick:vt},z.createElement("i",{ref:xt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Vt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),z.createElement("i",{ref:Jt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),z.createElement("input",{className:ue.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:xn,style:{display:"none"},onClick:hn})),z.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ue["fullscreen-button"],onClick:()=>{(0,le.vp)()?(0,le.BU)():(0,le.Dj)(nt.current)}},z.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),z.createElement("div",{className:ue["video-progress"]},z.createElement("progress",{ref:nn,value:"0",min:"0"}),z.createElement("input",{className:ue.seek,ref:Ct,value:"0",min:"0",type:"range",step:"1"}),z.createElement("div",{className:ue["seek-tooltip"],ref:lt,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"})))))})},30676:function(at,We,te){"use strict";te.d(We,{Z:function(){return dr}});var z=te(67294),fe=te.t(z,2),Pe=te(33054),ve=te(43481),he=te(94184),pe=te.n(he),ie=te(87462),de=te(1413),le=te(4942),ue=te(97685),se=te(71002),me=te(45987),re=/margin|padding|width|height|max|min|offset/,ne={left:!0,top:!0},a={cssFloat:1,styleFloat:1,float:1};function y(ze){return ze.nodeType===1?ze.ownerDocument.defaultView.getComputedStyle(ze,null):{}}function E(ze,ke,qe){if(ke=ke.toLowerCase(),qe==="auto"){if(ke==="height")return ze.offsetHeight;if(ke==="width")return ze.offsetWidth}return ke in ne||(ne[ke]=re.test(ke)),ne[ke]?parseFloat(qe)||0:qe}function b(ze,ke){var qe=arguments.length,bt=y(ze);return ke=a[ke]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ke,qe===1?bt:E(ze,ke,bt[ke]||ze.style[ke])}function x(ze,ke,qe){var bt=arguments.length;if(ke=a[ke]?"cssFloat"in ze.style?"cssFloat":"styleFloat":ke,bt===3)return typeof qe=="number"&&re.test(ke)&&(qe="".concat(qe,"px")),ze.style[ke]=qe,qe;for(var kt in ke)ke.hasOwnProperty(kt)&&x(ze,kt,ke[kt]);return y(ze)}function ee(ze){return ze===document.body?document.documentElement.clientWidth:ze.offsetWidth}function oe(ze){return ze===document.body?window.innerHeight||document.documentElement.clientHeight:ze.offsetHeight}function ae(){var ze=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),ke=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ze,height:ke}}function ce(){var ze=document.documentElement.clientWidth,ke=window.innerHeight||document.documentElement.clientHeight;return{width:ze,height:ke}}function Se(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function _e(ze){var ke=ze.getBoundingClientRect(),qe=document.documentElement;return{left:ke.left+(window.pageXOffset||qe.scrollLeft)-(qe.clientLeft||document.body.clientLeft||0),top:ke.top+(window.pageYOffset||qe.scrollTop)-(qe.clientTop||document.body.clientTop||0)}}function xe(ze){var ke=z.useRef();ke.current=ze;var qe=z.useCallback(function(){for(var bt,kt=arguments.length,Ut=new Array(kt),cn=0;cn<kt;cn++)Ut[cn]=arguments[cn];return(bt=ke.current)===null||bt===void 0?void 0:bt.call.apply(bt,[ke].concat(Ut))},[]);return qe}function we(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Fe=we()?z.useLayoutEffect:z.useEffect,Me=function(ke,qe){var bt=z.useRef(!0);Fe(function(){return ke(bt.current)},qe),Fe(function(){return bt.current=!1,function(){bt.current=!0}},[])},ut=function(ke,qe){Me(function(bt){if(!bt)return ke()},qe)},Xe=null;function mt(ze){var ke=z.useRef(!1),qe=z.useState(ze),bt=(0,ue.Z)(qe,2),kt=bt[0],Ut=bt[1];z.useEffect(function(){return ke.current=!1,function(){ke.current=!0}},[]);function cn(an,mn){mn&&ke.current||Ut(an)}return[kt,cn]}function Ae(ze){return ze!==void 0}function De(ze,ke){var qe=ke||{},bt=qe.defaultValue,kt=qe.value,Ut=qe.onChange,cn=qe.postState,an=mt(function(){return Ae(kt)?kt:Ae(bt)?typeof bt=="function"?bt():bt:typeof ze=="function"?ze():ze}),mn=(0,ue.Z)(an,2),vn=mn[0],Zn=mn[1],Hn=kt!==void 0?kt:vn,gr=cn?cn(Hn):Hn,Fr=xe(Ut),Cr=mt([Hn]),Or=(0,ue.Z)(Cr,2),so=Or[0],Co=Or[1];ut(function(){var To=so[0];vn!==To&&Fr(vn,To)},[so]),ut(function(){Ae(kt)||Zn(kt)},[kt]);var kr=xe(function(To,mo){Zn(To,mo),Co([Hn],mo)});return[gr,kr]}var Be=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],nt=z.createContext(null),Ke=0;function Et(ze,ke){var qe=z.useState(function(){return Ke+=1,String(Ke)}),bt=(0,ue.Z)(qe,1),kt=bt[0],Ut=z.useContext(nt),cn={data:ke,canPreview:ze};return z.useEffect(function(){if(Ut)return Ut.register(kt,cn)},[]),z.useEffect(function(){Ut&&Ut.register(kt,cn)},[ze,ke]),kt}function Ct(ze){return new Promise(function(ke){var qe=document.createElement("img");qe.onerror=function(){return ke(!1)},qe.onload=function(){return ke(!0)},qe.src=ze})}function nn(ze){var ke=ze.src,qe=ze.isCustomPlaceholder,bt=ze.fallback,kt=(0,z.useState)(qe?"loading":"normal"),Ut=(0,ue.Z)(kt,2),cn=Ut[0],an=Ut[1],mn=(0,z.useRef)(!1),vn=cn==="error";(0,z.useEffect)(function(){Ct(ke).then(function(Fr){Fr||an("error")})},[ke]),(0,z.useEffect)(function(){qe&&!mn.current?an("loading"):vn&&an("normal")},[ke]);var Zn=function(){an("normal")},Hn=function(Cr){mn.current=!1,cn==="loading"&&Cr!=null&&Cr.complete&&(Cr.naturalWidth||Cr.naturalHeight)&&(mn.current=!0,Zn())},gr=vn&&bt?{src:bt}:{onLoad:Zn,src:ke};return[Hn,gr,cn]}var on=te(2788),it=z.createContext({});function lt(ze,ke){if(!ze)return!1;if(ze.contains)return ze.contains(ke);for(var qe=ke;qe;){if(qe===ze)return!0;qe=qe.parentNode}return!1}function xt(){var ze=(0,de.Z)({},fe);return ze.useId}var Jt=0;function Vt(){}function xn(ze){var ke=z.useState("ssr-id"),qe=(0,ue.Z)(ke,2),bt=qe[0],kt=qe[1],Ut=xt(),cn=Ut==null?void 0:Ut();return z.useEffect(function(){if(!Ut){var an=Jt;Jt+=1,kt("rc_unique_".concat(an))}},[]),ze||cn||bt}var He={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 qe=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||qe>=He.F1&&qe<=He.F12)return!1;switch(qe){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}}},un=He,kn=`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`,nr=`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`,Ln="".concat(kn," ").concat(nr).split(/[\s\n]+/),Gt="aria-",Je="data-";function Qe(ze,ke){return ze.indexOf(ke)===0}function _t(ze){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe;ke===!1?qe={aria:!0,data:!0,attr:!0}:ke===!0?qe={aria:!0}:qe=(0,de.Z)({},ke);var bt={};return Object.keys(ze).forEach(function(kt){(qe.aria&&(kt==="role"||Qe(kt,Gt))||qe.data&&Qe(kt,Je)||qe.attr&&Ln.includes(kt))&&(bt[kt]=ze[kt])}),bt}function Rt(ze,ke,qe){var bt=ke;return!bt&&qe&&(bt="".concat(ze,"-").concat(qe)),bt}function Yt(ze,ke){var qe=ze["page".concat(ke?"Y":"X","Offset")],bt="scroll".concat(ke?"Top":"Left");if(typeof qe!="number"){var kt=ze.document;qe=kt.documentElement[bt],typeof qe!="number"&&(qe=kt.body[bt])}return qe}function gt(ze){var ke=ze.getBoundingClientRect(),qe={left:ke.left,top:ke.top},bt=ze.ownerDocument,kt=bt.defaultView||bt.parentWindow;return qe.left+=Yt(kt),qe.top+=Yt(kt,!0),qe}var wt=te(62874),Dt=te(59864);function tt(ze,ke,qe){var bt=z.useRef({});return(!("value"in bt.current)||qe(bt.current.condition,ke))&&(bt.current.value=ze(),bt.current.condition=ke),bt.current.value}function fn(ze,ke){typeof ze=="function"?ze(ke):(0,se.Z)(ze)==="object"&&ze&&"current"in ze&&(ze.current=ke)}function hn(){for(var ze=arguments.length,ke=new Array(ze),qe=0;qe<ze;qe++)ke[qe]=arguments[qe];var bt=ke.filter(function(kt){return kt});return bt.length<=1?bt[0]:function(kt){ke.forEach(function(Ut){fn(Ut,kt)})}}function $n(){for(var ze=arguments.length,ke=new Array(ze),qe=0;qe<ze;qe++)ke[qe]=arguments[qe];return tt(function(){return hn.apply(void 0,ke)},ke,function(bt,kt){return bt.length===kt.length&&bt.every(function(Ut,cn){return Ut===kt[cn]})})}function no(ze){var ke,qe,bt=isMemo(ze)?ze.type.type:ze.type;return!(typeof bt=="function"&&!((ke=bt.prototype)!==null&&ke!==void 0&&ke.render)||typeof ze=="function"&&!((qe=ze.prototype)!==null&&qe!==void 0&&qe.render))}var rt=z.memo(function(ze){var ke=ze.children;return ke},function(ze,ke){var qe=ke.shouldUpdate;return!qe}),vt={width:0,height:0,overflow:"hidden",outline:"none"},An=z.forwardRef(function(ze,ke){var qe=ze.prefixCls,bt=ze.className,kt=ze.style,Ut=ze.title,cn=ze.ariaId,an=ze.footer,mn=ze.closable,vn=ze.closeIcon,Zn=ze.onClose,Hn=ze.children,gr=ze.bodyStyle,Fr=ze.bodyProps,Cr=ze.modalRender,Or=ze.onMouseDown,so=ze.onMouseUp,Co=ze.holderRef,kr=ze.visible,To=ze.forceRender,mo=ze.width,Oo=ze.height,ki=z.useContext(it),ma=ki.panel,vi=$n(Co,ma),ia=(0,z.useRef)(),ai=(0,z.useRef)();z.useImperativeHandle(ke,function(){return{focus:function(){var da;(da=ia.current)===null||da===void 0||da.focus()},changeActive:function(da){var Fo=document,ni=Fo.activeElement;da&&ni===ai.current?ia.current.focus():!da&&ni===ia.current&&ai.current.focus()}}});var Ea={};mo!==void 0&&(Ea.width=mo),Oo!==void 0&&(Ea.height=Oo);var Ki;an&&(Ki=z.createElement("div",{className:"".concat(qe,"-footer")},an));var aa;Ut&&(aa=z.createElement("div",{className:"".concat(qe,"-header")},z.createElement("div",{className:"".concat(qe,"-title"),id:cn},Ut)));var Xi;mn&&(Xi=z.createElement("button",{type:"button",onClick:Zn,"aria-label":"Close",className:"".concat(qe,"-close")},vn||z.createElement("span",{className:"".concat(qe,"-close-x")})));var Ga=z.createElement("div",{className:"".concat(qe,"-content")},Xi,aa,z.createElement("div",(0,ie.Z)({className:"".concat(qe,"-body"),style:gr},Fr),Hn),Ki);return z.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Ut?cn:null,"aria-modal":"true",ref:vi,style:(0,de.Z)((0,de.Z)({},kt),Ea),className:pe()(qe,bt),onMouseDown:Or,onMouseUp:so},z.createElement("div",{tabIndex:0,ref:ia,style:vt,"aria-hidden":"true"}),z.createElement(rt,{shouldUpdate:kr||To},Cr?Cr(Ga):Ga),z.createElement("div",{tabIndex:0,ref:ai,style:vt,"aria-hidden":"true"}))}),Zt=An,yt=z.forwardRef(function(ze,ke){var qe=ze.prefixCls,bt=ze.title,kt=ze.style,Ut=ze.className,cn=ze.visible,an=ze.forceRender,mn=ze.destroyOnClose,vn=ze.motionName,Zn=ze.ariaId,Hn=ze.onVisibleChanged,gr=ze.mousePosition,Fr=(0,z.useRef)(),Cr=z.useState(),Or=(0,ue.Z)(Cr,2),so=Or[0],Co=Or[1],kr={};so&&(kr.transformOrigin=so);function To(){var mo=gt(Fr.current);Co(gr?"".concat(gr.x-mo.left,"px ").concat(gr.y-mo.top,"px"):"")}return z.createElement(wt.Z,{visible:cn,onVisibleChanged:Hn,onAppearPrepare:To,onEnterPrepare:To,forceRender:an,motionName:vn,removeOnLeave:mn,ref:Fr},function(mo,Oo){var ki=mo.className,ma=mo.style;return z.createElement(Zt,(0,ie.Z)({},ze,{ref:ke,title:bt,ariaId:Zn,prefixCls:qe,holderRef:Oo,style:(0,de.Z)((0,de.Z)((0,de.Z)({},ma),kt),kr),className:pe()(Ut,ki)}))})});yt.displayName="Content";var Nn=yt;function Xt(ze){var ke=ze.prefixCls,qe=ze.style,bt=ze.visible,kt=ze.maskProps,Ut=ze.motionName;return z.createElement(wt.Z,{key:"mask",visible:bt,motionName:Ut,leavedClassName:"".concat(ke,"-mask-hidden")},function(cn,an){var mn=cn.className,vn=cn.style;return z.createElement("div",(0,ie.Z)({ref:an,style:(0,de.Z)((0,de.Z)({},vn),qe),className:pe()("".concat(ke,"-mask"),mn)},kt))})}function qn(ze){var ke=ze.prefixCls,qe=ke===void 0?"rc-dialog":ke,bt=ze.zIndex,kt=ze.visible,Ut=kt===void 0?!1:kt,cn=ze.keyboard,an=cn===void 0?!0:cn,mn=ze.focusTriggerAfterClose,vn=mn===void 0?!0:mn,Zn=ze.wrapStyle,Hn=ze.wrapClassName,gr=ze.wrapProps,Fr=ze.onClose,Cr=ze.afterOpenChange,Or=ze.afterClose,so=ze.transitionName,Co=ze.animation,kr=ze.closable,To=kr===void 0?!0:kr,mo=ze.mask,Oo=mo===void 0?!0:mo,ki=ze.maskTransitionName,ma=ze.maskAnimation,vi=ze.maskClosable,ia=vi===void 0?!0:vi,ai=ze.maskStyle,Ea=ze.maskProps,Ki=ze.rootClassName,aa=(0,z.useRef)(),Xi=(0,z.useRef)(),Ga=(0,z.useRef)(),xa=z.useState(Ut),da=(0,ue.Z)(xa,2),Fo=da[0],ni=da[1],mr=xn();function Ca(){lt(Xi.current,document.activeElement)||(aa.current=document.activeElement)}function Xa(){if(!lt(Xi.current,document.activeElement)){var Bi;(Bi=Ga.current)===null||Bi===void 0||Bi.focus()}}function Oi(Bi){if(Bi)Xa();else{if(ni(!1),Oo&&aa.current&&vn){try{aa.current.focus({preventScroll:!0})}catch(pa){}aa.current=null}Fo&&(Or==null||Or())}Cr==null||Cr(Bi)}function ji(Bi){Fr==null||Fr(Bi)}var wa=(0,z.useRef)(!1),Ii=(0,z.useRef)(),_i=function(){clearTimeout(Ii.current),wa.current=!0},bi=function(){Ii.current=setTimeout(function(){wa.current=!1})},Za=null;ia&&(Za=function(pa){wa.current?wa.current=!1:Xi.current===pa.target&&ji(pa)});function Ai(Bi){if(an&&Bi.keyCode===un.ESC){Bi.stopPropagation(),ji(Bi);return}Ut&&Bi.keyCode===un.TAB&&Ga.current.changeActive(!Bi.shiftKey)}return(0,z.useEffect)(function(){Ut&&(ni(!0),Ca())},[Ut]),(0,z.useEffect)(function(){return function(){clearTimeout(Ii.current)}},[]),z.createElement("div",(0,ie.Z)({className:pe()("".concat(qe,"-root"),Ki)},_t(ze,{data:!0})),z.createElement(Xt,{prefixCls:qe,visible:Oo&&Ut,motionName:Rt(qe,ki,ma),style:(0,de.Z)({zIndex:bt},ai),maskProps:Ea}),z.createElement("div",(0,ie.Z)({tabIndex:-1,onKeyDown:Ai,className:pe()("".concat(qe,"-wrap"),Hn),ref:Xi,onClick:Za,style:(0,de.Z)((0,de.Z)({zIndex:bt},Zn),{},{display:Fo?null:"none"})},gr),z.createElement(Nn,(0,ie.Z)({},ze,{onMouseDown:_i,onMouseUp:bi,ref:Ga,closable:To,ariaId:mr,prefixCls:qe,visible:Ut&&Fo,onClose:ji,onVisibleChanged:Oi,motionName:Rt(qe,so,Co)}))))}var Br=function(ke){var qe=ke.visible,bt=ke.getContainer,kt=ke.forceRender,Ut=ke.destroyOnClose,cn=Ut===void 0?!1:Ut,an=ke.afterClose,mn=ke.panelRef,vn=z.useState(qe),Zn=(0,ue.Z)(vn,2),Hn=Zn[0],gr=Zn[1],Fr=z.useMemo(function(){return{panel:mn}},[mn]);return z.useEffect(function(){qe&&gr(!0)},[qe]),!kt&&cn&&!Hn?null:z.createElement(it.Provider,{value:Fr},z.createElement(on.Z,{open:qe||kt||Hn,autoDestroy:!1,getContainer:bt,autoLock:qe||Hn},z.createElement(qn,(0,ie.Z)({},ke,{destroyOnClose:cn,afterClose:function(){an==null||an(),gr(!1)}}))))};Br.displayName="Dialog";var or=Br,Gn=or,ir=te(73935);function So(ze,ke,qe,bt){var kt=ir.unstable_batchedUpdates?function(cn){ir.unstable_batchedUpdates(qe,cn)}:qe;return ze!=null&&ze.addEventListener&&ze.addEventListener(ke,kt,bt),{remove:function(){ze!=null&&ze.removeEventListener&&ze.removeEventListener(ke,kt,bt)}}}var On={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 qe=ke.keyCode;if(ke.altKey&&!ke.ctrlKey||ke.metaKey||qe>=On.F1&&qe<=On.F12)return!1;switch(qe){case On.ALT:case On.CAPS_LOCK:case On.CONTEXT_MENU:case On.CTRL:case On.DOWN:case On.END:case On.ESC:case On.HOME:case On.INSERT:case On.LEFT:case On.MAC_FF_META:case On.META:case On.NUMLOCK:case On.NUM_CENTER:case On.PAGE_DOWN:case On.PAGE_UP:case On.PAUSE:case On.PRINT_SCREEN:case On.RIGHT:case On.SHIFT:case On.UP:case On.WIN_KEY:case On.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ke){if(ke>=On.ZERO&&ke<=On.NINE||ke>=On.NUM_ZERO&&ke<=On.NUM_MULTIPLY||ke>=On.A&&ke<=On.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ke===0)return!0;switch(ke){case On.SPACE:case On.QUESTION_MARK:case On.NUM_PLUS:case On.NUM_MINUS:case On.NUM_PERIOD:case On.NUM_DIVISION:case On.SEMICOLON:case On.DASH:case On.EQUALS:case On.COMMA:case On.PERIOD:case On.SLASH:case On.APOSTROPHE:case On.SINGLE_QUOTE:case On.OPEN_SQUARE_BRACKET:case On.BACKSLASH:case On.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},qr=On,Yo={},Zo=[],qo=function(ke){Zo.push(ke)};function yr(ze,ke){if(0)var qe}function xo(ze,ke){if(0)var qe}function Wo(){Yo={}}function Wi(ze,ke,qe){!ke&&!Yo[qe]&&(ze(!1,qe),Yo[qe]=!0)}function $i(ze,ke){Wi(yr,ze,ke)}function Ci(ze,ke){Wi(xo,ze,ke)}$i.preMessage=qo,$i.resetWarned=Wo,$i.noteOnce=Ci;var ei=$i;function po(ze,ke,qe,bt){var kt=ke+qe,Ut=(qe-bt)/2;if(qe>bt){if(ke>0)return(0,le.Z)({},ze,Ut);if(ke<0&&kt<bt)return(0,le.Z)({},ze,-Ut)}else if(ke<0||kt>bt)return(0,le.Z)({},ze,ke<0?Ut:-Ut);return{}}function co(ze,ke,qe,bt){var kt=ce(),Ut=kt.width,cn=kt.height,an=null;return ze<=Ut&&ke<=cn?an={x:0,y:0}:(ze>Ut||ke>cn)&&(an=(0,de.Z)((0,de.Z)({},po("x",qe,ze,Ut)),po("y",bt,ke,cn))),an}function Ta(ze,ke){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=new Set;function kt(Ut,cn){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,mn=bt.has(Ut);if(ei(!mn,"Warning: There may be circular references"),mn)return!1;if(Ut===cn)return!0;if(qe&&an>1)return!1;bt.add(Ut);var vn=an+1;if(Array.isArray(Ut)){if(!Array.isArray(cn)||Ut.length!==cn.length)return!1;for(var Zn=0;Zn<Ut.length;Zn++)if(!kt(Ut[Zn],cn[Zn],vn))return!1;return!0}if(Ut&&cn&&(0,se.Z)(Ut)==="object"&&(0,se.Z)(cn)==="object"){var Hn=Object.keys(Ut);return Hn.length!==Object.keys(cn).length?!1:Hn.every(function(gr){return kt(Ut[gr],cn[gr],vn)})}return!1}return kt(ze,ke)}var yn=Ta,ge=function(ke){return+setTimeout(ke,16)},ye=function(ke){return clearTimeout(ke)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ge=function(ke){return window.requestAnimationFrame(ke)},ye=function(ke){return window.cancelAnimationFrame(ke)});var be=0,Le=new Map;function Ne(ze){Le.delete(ze)}var et=function(ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;be+=1;var bt=be;function kt(Ut){if(Ut===0)Ne(bt),ke();else{var cn=ge(function(){kt(Ut-1)});Le.set(bt,cn)}}return kt(qe),bt};et.cancel=function(ze){var ke=Le.get(ze);return Ne(ke),ye(ke)};var ct=et,_n={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function rn(ze,ke,qe,bt){var kt=(0,z.useRef)(null),Ut=(0,z.useRef)([]),cn=(0,z.useState)(_n),an=(0,ue.Z)(cn,2),mn=an[0],vn=an[1],Zn=function(Cr){vn(_n),bt&&!yn(_n,mn)&&bt({transform:_n,action:Cr})},Hn=function(Cr,Or){kt.current===null&&(Ut.current=[],kt.current=ct(function(){vn(function(so){var Co=so;return Ut.current.forEach(function(kr){Co=(0,de.Z)((0,de.Z)({},Co),kr)}),kt.current=null,bt==null||bt({transform:Co,action:Or}),Co})})),Ut.current.push((0,de.Z)((0,de.Z)({},mn),Cr))},gr=function(Cr,Or,so,Co){var kr=ze.current,To=kr.width,mo=kr.height,Oo=kr.offsetWidth,ki=kr.offsetHeight,ma=kr.offsetLeft,vi=kr.offsetTop,ia=Cr,ai=mn.scale*Cr;ai>qe?(ia=qe/mn.scale,ai=qe):ai<ke&&(ia=ke/mn.scale,ai=ke);var Ea=so!=null?so:innerWidth/2,Ki=Co!=null?Co:innerHeight/2,aa=ia-1,Xi=aa*To*.5,Ga=aa*mo*.5,xa=aa*(Ea-mn.x-ma),da=aa*(Ki-mn.y-vi),Fo=mn.x-(xa-Xi),ni=mn.y-(da-Ga);if(Cr<1&&ai===1){var mr=Oo*ai,Ca=ki*ai,Xa=ce(),Oi=Xa.width,ji=Xa.height;mr<=Oi&&Ca<=ji&&(Fo=0,ni=0)}Hn({x:Fo,y:ni,scale:ai},Or)};return{transform:mn,resetTransform:Zn,updateTransform:Hn,dispatchZoomChange:gr}}var In=function(ke){var qe=ke.visible,bt=ke.maskTransitionName,kt=ke.getContainer,Ut=ke.prefixCls,cn=ke.rootClassName,an=ke.icons,mn=ke.countRender,vn=ke.showSwitch,Zn=ke.showProgress,Hn=ke.current,gr=ke.transform,Fr=ke.count,Cr=ke.scale,Or=ke.minScale,so=ke.maxScale,Co=ke.closeIcon,kr=ke.onSwitchLeft,To=ke.onSwitchRight,mo=ke.onClose,Oo=ke.onZoomIn,ki=ke.onZoomOut,ma=ke.onRotateRight,vi=ke.onRotateLeft,ia=ke.onFlipX,ai=ke.onFlipY,Ea=ke.toolbarRender,Ki=(0,z.useContext)(nt),aa=an.rotateLeft,Xi=an.rotateRight,Ga=an.zoomIn,xa=an.zoomOut,da=an.close,Fo=an.left,ni=an.right,mr=an.flipX,Ca=an.flipY,Xa="".concat(Ut,"-operations-operation");z.useEffect(function(){var Ii=function(bi){bi.keyCode===qr.ESC&&mo()};return qe&&window.addEventListener("keydown",Ii),function(){window.removeEventListener("keydown",Ii)}},[qe]);var Oi=[{icon:Ca,onClick:ai,type:"flipY"},{icon:mr,onClick:ia,type:"flipX"},{icon:aa,onClick:vi,type:"rotateLeft"},{icon:Xi,onClick:ma,type:"rotateRight"},{icon:xa,onClick:ki,type:"zoomOut",disabled:Cr===Or},{icon:Ga,onClick:Oo,type:"zoomIn",disabled:Cr===so}],ji=Oi.map(function(Ii){var _i,bi=Ii.icon,Za=Ii.onClick,Ai=Ii.type,Bi=Ii.disabled;return z.createElement("div",{className:pe()(Xa,(_i={},(0,le.Z)(_i,"".concat(Ut,"-operations-operation-").concat(Ai),!0),(0,le.Z)(_i,"".concat(Ut,"-operations-operation-disabled"),!!Bi),_i)),onClick:Za,key:Ai},bi)}),wa=z.createElement("div",{className:"".concat(Ut,"-operations")},ji);return z.createElement(wt.Z,{visible:qe,motionName:bt},function(Ii){var _i=Ii.className,bi=Ii.style;return z.createElement(on.Z,{open:!0,getContainer:kt!=null?kt:document.body},z.createElement("div",{className:pe()("".concat(Ut,"-operations-wrapper"),_i,cn),style:bi},Co===null?null:z.createElement("button",{className:"".concat(Ut,"-close"),onClick:mo},Co||da),vn&&z.createElement(z.Fragment,null,z.createElement("div",{className:pe()("".concat(Ut,"-switch-left"),(0,le.Z)({},"".concat(Ut,"-switch-left-disabled"),Hn===0)),onClick:kr},Fo),z.createElement("div",{className:pe()("".concat(Ut,"-switch-right"),(0,le.Z)({},"".concat(Ut,"-switch-right-disabled"),Hn===Fr-1)),onClick:To},ni)),z.createElement("div",{className:"".concat(Ut,"-footer")},Zn&&z.createElement("div",{className:"".concat(Ut,"-progress")},mn?mn(Hn+1,Fr):"".concat(Hn+1," / ").concat(Fr)),Ea?Ea(wa,(0,de.Z)({icons:{flipYIcon:ji[0],flipXIcon:ji[1],rotateLeftIcon:ji[2],rotateRightIcon:ji[3],zoomOutIcon:ji[4],zoomInIcon:ji[5]},actions:{onFlipY:ai,onFlipX:ia,onRotateLeft:vi,onRotateRight:ma,onZoomOut:ki,onZoomIn:Oo},transform:gr},Ki?{current:Hn,total:Fr}:{})):wa)))})},pr=In,_r=1,Mt=1,ur=["fallback","src","imgRef"],er=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Tn=function(ke){var qe=ke.fallback,bt=ke.src,kt=ke.imgRef,Ut=(0,me.Z)(ke,ur),cn=nn({src:bt,fallback:qe}),an=(0,ue.Z)(cn,2),mn=an[0],vn=an[1];return z.createElement("img",(0,ie.Z)({ref:function(Hn){kt.current=Hn,mn(Hn)}},Ut,vn))},Un=function(ke){var qe=ke.prefixCls,bt=ke.src,kt=ke.alt,Ut=ke.fallback,cn=ke.movable,an=cn===void 0?!0:cn,mn=ke.onClose,vn=ke.visible,Zn=ke.icons,Hn=Zn===void 0?{}:Zn,gr=ke.rootClassName,Fr=ke.closeIcon,Cr=ke.getContainer,Or=ke.current,so=Or===void 0?0:Or,Co=ke.count,kr=Co===void 0?1:Co,To=ke.countRender,mo=ke.scaleStep,Oo=mo===void 0?.5:mo,ki=ke.minScale,ma=ki===void 0?1:ki,vi=ke.maxScale,ia=vi===void 0?50:vi,ai=ke.transitionName,Ea=ai===void 0?"zoom":ai,Ki=ke.maskTransitionName,aa=Ki===void 0?"fade":Ki,Xi=ke.imageRender,Ga=ke.imgCommonProps,xa=ke.toolbarRender,da=ke.onTransform,Fo=ke.onChange,ni=(0,me.Z)(ke,er),mr=(0,z.useRef)(),Ca=(0,z.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Xa=(0,z.useState)(!1),Oi=(0,ue.Z)(Xa,2),ji=Oi[0],wa=Oi[1],Ii=(0,z.useContext)(nt),_i=Ii&&kr>1,bi=Ii&&kr>=1,Za=rn(mr,ma,ia,da),Ai=Za.transform,Bi=Za.resetTransform,pa=Za.updateTransform,ds=Za.dispatchZoomChange,Fs=(0,z.useState)(!0),bs=(0,ue.Z)(Fs,2),Ws=bs[0],hs=bs[1],qa=Ai.rotate,os=Ai.scale,Ps=Ai.x,Es=Ai.y,sl=pe()((0,le.Z)({},"".concat(qe,"-moving"),ji));(0,z.useEffect)(function(){Ws||hs(!0)},[Ws]);var rl=function(){Bi("close")},Gs=function(){ds(_r+Oo,"zoomIn")},ks=function(){ds(_r/(_r+Oo),"zoomOut")},ul=function(){pa({rotate:qa+90},"rotateRight")},Ks=function(){pa({rotate:qa-90},"rotateLeft")},js=function(){pa({flipX:!Ai.flipX},"flipX")},Ms=function(){pa({flipY:!Ai.flipY},"flipY")},Vs=function(Pn){Pn==null||Pn.preventDefault(),Pn==null||Pn.stopPropagation(),so>0&&(hs(!1),Bi("prev"),Fo==null||Fo(so-1,so))},qs=function(Pn){Pn==null||Pn.preventDefault(),Pn==null||Pn.stopPropagation(),so<kr-1&&(hs(!1),Bi("next"),Fo==null||Fo(so+1,so))},Ie=function(){if(vn&&ji){wa(!1);var Pn=Ca.current,Jn=Pn.transformX,jr=Pn.transformY,Qn=Ps!==Jn&&Es!==jr;if(!Qn)return;var zr=mr.current.offsetWidth*os,fr=mr.current.offsetHeight*os,eo=mr.current.getBoundingClientRect(),ko=eo.left,jo=eo.top,ri=qa%180!==0,Eo=co(ri?fr:zr,ri?zr:fr,ko,jo);Eo&&pa((0,de.Z)({},Eo),"dragRebound")}},Ve=function(Pn){!an||Pn.button!==0||(Pn.preventDefault(),Pn.stopPropagation(),Ca.current={deltaX:Pn.pageX-Ai.x,deltaY:Pn.pageY-Ai.y,transformX:Ai.x,transformY:Ai.y},wa(!0))},Ye=function(Pn){vn&&ji&&pa({x:Pn.pageX-Ca.current.deltaX,y:Pn.pageY-Ca.current.deltaY},"move")},pt=function(Pn){if(!(!vn||Pn.deltaY==0)){var Jn=Math.abs(Pn.deltaY/100),jr=Math.min(Jn,Mt),Qn=_r+jr*Oo;Pn.deltaY>0&&(Qn=_r/Qn),ds(Qn,"wheel",Pn.clientX,Pn.clientY)}},Bt=function(Pn){!vn||!_i||(Pn.keyCode===qr.LEFT?Vs():Pn.keyCode===qr.RIGHT&&qs())},sn=function(Pn){vn&&(os!==1?pa({x:0,y:0,scale:1},"doubleClick"):ds(_r+Oo,"doubleClick",Pn.clientX,Pn.clientY))};(0,z.useEffect)(function(){var Dn,Pn,Jn,jr;if(an){Jn=So(window,"mouseup",Ie,!1),jr=So(window,"mousemove",Ye,!1);try{window.top!==window.self&&(Dn=So(window.top,"mouseup",Ie,!1),Pn=So(window.top,"mousemove",Ye,!1))}catch(Qn){yr(!1,"[rc-image] ".concat(Qn))}}return function(){var Qn,zr,fr,eo;(Qn=Jn)===null||Qn===void 0||Qn.remove(),(zr=jr)===null||zr===void 0||zr.remove(),(fr=Dn)===null||fr===void 0||fr.remove(),(eo=Pn)===null||eo===void 0||eo.remove()}},[vn,ji,Ps,Es,qa,an]),(0,z.useEffect)(function(){var Dn=So(window,"keydown",Bt,!1);return function(){Dn.remove()}},[vn,_i,so]);var dn=z.createElement(Tn,(0,ie.Z)({},Ga,{width:ke.width,height:ke.height,imgRef:mr,className:"".concat(qe,"-img"),alt:kt,style:{transform:"translate3d(".concat(Ai.x,"px, ").concat(Ai.y,"px, 0) scale3d(").concat(Ai.flipX?"-":"").concat(os,", ").concat(Ai.flipY?"-":"").concat(os,", 1) rotate(").concat(qa,"deg)"),transitionDuration:!Ws&&"0s"},fallback:Ut,src:bt,onWheel:pt,onMouseDown:Ve,onDoubleClick:sn}));return z.createElement(z.Fragment,null,z.createElement(Gn,(0,ie.Z)({transitionName:Ea,maskTransitionName:aa,closable:!1,keyboard:!0,prefixCls:qe,onClose:mn,visible:vn,wrapClassName:sl,rootClassName:gr,getContainer:Cr},ni,{afterClose:rl}),z.createElement("div",{className:"".concat(qe,"-img-wrapper")},Xi?Xi(dn,(0,de.Z)({transform:Ai},Ii?{current:so}:{})):dn)),z.createElement(pr,{visible:vn,transform:Ai,maskTransitionName:aa,closeIcon:Fr,getContainer:Cr,prefixCls:qe,rootClassName:gr,icons:Hn,countRender:To,showSwitch:_i,showProgress:bi,current:so,count:kr,scale:os,minScale:ma,maxScale:ia,toolbarRender:xa,onSwitchLeft:Vs,onSwitchRight:qs,onZoomIn:Gs,onZoomOut:ks,onRotateRight:ul,onRotateLeft:Ks,onFlipX:js,onFlipY:Ms,onClose:mn}))},sr=Un,Zr=te(74902);function xr(ze){var ke=z.useState({}),qe=(0,ue.Z)(ke,2),bt=qe[0],kt=qe[1],Ut=z.useCallback(function(an,mn){return kt(function(vn){return(0,de.Z)((0,de.Z)({},vn),{},(0,le.Z)({},an,mn))}),function(){kt(function(vn){var Zn=(0,de.Z)({},vn);return delete Zn[an],Zn})}},[]),cn=z.useMemo(function(){return ze?ze.map(function(an){if(typeof an=="string")return{data:{src:an}};var mn={};return Object.keys(an).forEach(function(vn){["src"].concat((0,Zr.Z)(Be)).includes(vn)&&(mn[vn]=an[vn])}),{data:mn}}):Object.keys(bt).reduce(function(an,mn){var vn=bt[mn],Zn=vn.canPreview,Hn=vn.data;return Zn&&an.push({data:Hn,id:mn}),an},[])},[ze,bt]);return[cn,Ut]}var Gi=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Xo=["src"],br=function(ke){var qe,bt=ke.previewPrefixCls,kt=bt===void 0?"rc-image-preview":bt,Ut=ke.children,cn=ke.icons,an=cn===void 0?{}:cn,mn=ke.items,vn=ke.preview,Zn=ke.fallback,Hn=(0,se.Z)(vn)==="object"?vn:{},gr=Hn.visible,Fr=Hn.onVisibleChange,Cr=Hn.getContainer,Or=Hn.current,so=Hn.movable,Co=Hn.minScale,kr=Hn.maxScale,To=Hn.countRender,mo=Hn.closeIcon,Oo=Hn.onChange,ki=Hn.onTransform,ma=Hn.toolbarRender,vi=Hn.imageRender,ia=(0,me.Z)(Hn,Gi),ai=xr(mn),Ea=(0,ue.Z)(ai,2),Ki=Ea[0],aa=Ea[1],Xi=De(0,{value:Or}),Ga=(0,ue.Z)(Xi,2),xa=Ga[0],da=Ga[1],Fo=(0,z.useState)(!1),ni=(0,ue.Z)(Fo,2),mr=ni[0],Ca=ni[1],Xa=((qe=Ki[xa])===null||qe===void 0?void 0:qe.data)||{},Oi=Xa.src,ji=(0,me.Z)(Xa,Xo),wa=De(!!gr,{value:gr,onChange:function(qa,os){Fr==null||Fr(qa,os,xa)}}),Ii=(0,ue.Z)(wa,2),_i=Ii[0],bi=Ii[1],Za=(0,z.useState)(null),Ai=(0,ue.Z)(Za,2),Bi=Ai[0],pa=Ai[1],ds=z.useCallback(function(hs,qa,os){var Ps=Ki.findIndex(function(Es){return Es.id===hs});bi(!0),pa({x:qa,y:os}),da(Ps<0?0:Ps),Ca(!0)},[Ki]);z.useEffect(function(){_i?mr||da(0):Ca(!1)},[_i]);var Fs=function(qa,os){da(qa),Oo==null||Oo(qa,os)},bs=function(){bi(!1),pa(null)},Ws=z.useMemo(function(){return{register:aa,onPreview:ds}},[aa,ds]);return z.createElement(nt.Provider,{value:Ws},Ut,z.createElement(sr,(0,ie.Z)({"aria-hidden":!_i,movable:so,visible:_i,prefixCls:kt,closeIcon:mo,onClose:bs,mousePosition:Bi,imgCommonProps:ji,src:Oi,fallback:Zn,icons:an,minScale:Co,maxScale:kr,getContainer:Cr,current:xa,count:Ki.length,countRender:To,onTransform:ki,toolbarRender:ma,imageRender:vi,onChange:Fs},ia)))},_o=br,wi=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ti=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],hi=function(ke){var qe=ke.src,bt=ke.alt,kt=ke.onPreviewClose,Ut=ke.prefixCls,cn=Ut===void 0?"rc-image":Ut,an=ke.previewPrefixCls,mn=an===void 0?"".concat(cn,"-preview"):an,vn=ke.placeholder,Zn=ke.fallback,Hn=ke.width,gr=ke.height,Fr=ke.style,Cr=ke.preview,Or=Cr===void 0?!0:Cr,so=ke.className,Co=ke.onClick,kr=ke.onError,To=ke.wrapperClassName,mo=ke.wrapperStyle,Oo=ke.rootClassName,ki=(0,me.Z)(ke,wi),ma=vn&&vn!==!0,vi=(0,se.Z)(Or)==="object"?Or:{},ia=vi.src,ai=vi.visible,Ea=ai===void 0?void 0:ai,Ki=vi.onVisibleChange,aa=Ki===void 0?kt:Ki,Xi=vi.getContainer,Ga=Xi===void 0?void 0:Xi,xa=vi.mask,da=vi.maskClassName,Fo=vi.movable,ni=vi.icons,mr=vi.scaleStep,Ca=vi.minScale,Xa=vi.maxScale,Oi=vi.imageRender,ji=vi.toolbarRender,wa=(0,me.Z)(vi,ti),Ii=ia!=null?ia:qe,_i=De(!!Ea,{value:Ea,onChange:aa}),bi=(0,ue.Z)(_i,2),Za=bi[0],Ai=bi[1],Bi=nn({src:qe,isCustomPlaceholder:ma,fallback:Zn}),pa=(0,ue.Z)(Bi,3),ds=pa[0],Fs=pa[1],bs=pa[2],Ws=(0,z.useState)(null),hs=(0,ue.Z)(Ws,2),qa=hs[0],os=hs[1],Ps=(0,z.useContext)(nt),Es=!!Or,sl=function(){Ai(!1),os(null)},rl=pe()(cn,To,Oo,(0,le.Z)({},"".concat(cn,"-error"),bs==="error")),Gs=(0,z.useMemo)(function(){var js={};return Be.forEach(function(Ms){ke[Ms]!==void 0&&(js[Ms]=ke[Ms])}),js},Be.map(function(js){return ke[js]})),ks=(0,z.useMemo)(function(){return(0,de.Z)((0,de.Z)({},Gs),{},{src:Ii})},[Ii,Gs]),ul=Et(Es,ks),Ks=function(Ms){var Vs=_e(Ms.target),qs=Vs.left,Ie=Vs.top;Ps?Ps.onPreview(ul,qs,Ie):(os({x:qs,y:Ie}),Ai(!0)),Co==null||Co(Ms)};return z.createElement(z.Fragment,null,z.createElement("div",(0,ie.Z)({},ki,{className:rl,onClick:Es?Ks:Co,style:(0,de.Z)({width:Hn,height:gr},mo)}),z.createElement("img",(0,ie.Z)({},Gs,{className:pe()("".concat(cn,"-img"),(0,le.Z)({},"".concat(cn,"-img-placeholder"),vn===!0),so),style:(0,de.Z)({height:gr},Fr),ref:ds},Fs,{width:Hn,height:gr,onError:kr})),bs==="loading"&&z.createElement("div",{"aria-hidden":"true",className:"".concat(cn,"-placeholder")},vn),xa&&Es&&z.createElement("div",{className:pe()("".concat(cn,"-mask"),da),style:{display:(Fr==null?void 0:Fr.display)==="none"?"none":void 0}},xa)),!Ps&&Es&&z.createElement(sr,(0,ie.Z)({"aria-hidden":!Za,visible:Za,prefixCls:mn,onClose:sl,mousePosition:qa,src:Ii,alt:bt,fallback:Zn,getContainer:Ga,icons:ni,movable:Fo,scaleStep:mr,minScale:Ca,maxScale:Xa,rootClassName:Oo,imageRender:Oi,imgCommonProps:Gs,toolbarRender:ji},wa)))};hi.PreviewGroup=_o,hi.displayName="Image";var pn=hi,Ya=pn,Ti=te(33603),Bo=te(53124),Aa=te(24457),Bn=te(85846),Sr=te(55007),Kr=te(79269),lr={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"},ci=lr,Li=te(44327),ra=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:ci}))},Oa=z.forwardRef(ra),$a={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=$a,dt=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:ft}))},zt=z.forwardRef(dt),qt={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"},Mn=qt,Nr=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:Mn}))},Tr=z.forwardRef(Nr),Wr={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"},uo=Wr,Mo=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:uo}))},Qo=z.forwardRef(Mo),mi={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"},Fi=mi,oa=function(ke,qe){return z.createElement(Li.Z,(0,ie.Z)({},ke,{ref:qe,icon:Fi}))},vo=z.forwardRef(oa),yi=te(84780),Mi=te(71194),pi=te(14747),Pa=te(50438),St=te(16932),Lt=te(67968),jt=te(45503);const $e=ze=>({position:ze||"absolute",inset:0}),Wt=ze=>{const{iconCls:ke,motionDurationSlow:qe,paddingXXS:bt,marginXXS:kt,prefixCls:Ut,colorTextLightSolid:cn}=ze;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:cn,background:new yi.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${qe}`,[`.${Ut}-mask-info`]:Object.assign(Object.assign({},pi.vS),{padding:`0 ${bt}px`,[ke]:{marginInlineEnd:kt,svg:{verticalAlign:"baseline"}}})}},bn=ze=>{const{previewCls:ke,modalMaskBg:qe,paddingSM:bt,marginXL:kt,margin:Ut,paddingLG:cn,previewOperationColorDisabled:an,previewOperationHoverColor:mn,motionDurationSlow:vn,iconCls:Zn,colorTextLightSolid:Hn}=ze,gr=new yi.C(qe).setAlpha(.1),Fr=gr.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:ze.previewOperationColor},[`${ke}-progress`]:{marginBottom:Ut},[`${ke}-close`]:{position:"fixed",top:kt,right:{_skip_check_:!0,value:kt},display:"flex",color:Hn,backgroundColor:gr.toRgbString(),borderRadius:"50%",padding:bt,outline:0,border:0,cursor:"pointer",transition:`all ${vn}`,"&:hover":{backgroundColor:Fr.toRgbString()},[`& > ${Zn}`]:{fontSize:ze.previewOperationSize}},[`${ke}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${cn}px`,backgroundColor:gr.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:bt,padding:bt,cursor:"pointer",transition:`all ${vn}`,userSelect:"none",[`&:not(${ke}-operations-operation-disabled):hover > ${Zn}`]:{color:mn},"&-disabled":{color:an,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Zn}`]:{fontSize:ze.previewOperationSize}}}}},Rn=ze=>{const{modalMaskBg:ke,iconCls:qe,previewOperationColorDisabled:bt,previewCls:kt,zIndexPopup:Ut,motionDurationSlow:cn}=ze,an=new yi.C(ke).setAlpha(.1),mn=an.clone().setAlpha(.2);return{[`${kt}-switch-left, ${kt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ut+1,display:"flex",alignItems:"center",justifyContent:"center",width:ze.imagePreviewSwitchSize,height:ze.imagePreviewSwitchSize,marginTop:-ze.imagePreviewSwitchSize/2,color:ze.previewOperationColor,background:an.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${cn}`,userSelect:"none","&:hover":{background:mn.toRgbString()},"&-disabled":{"&, &:hover":{color:bt,background:"transparent",cursor:"not-allowed",[`> ${qe}`]:{cursor:"not-allowed"}}},[`> ${qe}`]:{fontSize:ze.previewOperationSize}},[`${kt}-switch-left`]:{insetInlineStart:ze.marginSM},[`${kt}-switch-right`]:{insetInlineEnd:ze.marginSM}}},Nt=ze=>{const{motionEaseOut:ke,previewCls:qe,motionDurationSlow:bt,componentCls:kt}=ze;return[{[`${kt}-preview-root`]:{[qe]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${qe}-body`]:Object.assign(Object.assign({},$e()),{overflow:"hidden"}),[`${qe}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${bt} ${ke} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},$e()),{transition:`transform ${bt} ${ke} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${qe}-moving`]:{[`${qe}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${kt}-preview-root`]:{[`${qe}-wrap`]:{zIndex:ze.zIndexPopup}}},{[`${kt}-preview-operations-wrapper`]:{position:"fixed",zIndex:ze.zIndexPopup+1},"&":[bn(ze),Rn(ze)]}]},$t=ze=>{const{componentCls:ke}=ze;return{[ke]:{position:"relative",display:"inline-block",[`${ke}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${ke}-img-placeholder`]:{backgroundColor:ze.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${ke}-mask`]:Object.assign({},Wt(ze)),[`${ke}-mask:hover`]:{opacity:1},[`${ke}-placeholder`]:Object.assign({},$e())}}},It=ze=>{const{previewCls:ke}=ze;return{[`${ke}-root`]:(0,Pa._y)(ze,"zoom"),"&":(0,St.J$)(ze,!0)}};var Ft=(0,Lt.Z)("Image",ze=>{const ke=`${ze.componentCls}-preview`,qe=(0,jt.TS)(ze,{previewCls:ke,modalMaskBg:new yi.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:ze.controlHeightLG});return[$t(qe),Nt(qe),(0,Mi.QA)((0,jt.TS)(qe,{componentCls:ke})),It(qe)]},ze=>({zIndexPopup:ze.zIndexPopupBase+80,previewOperationColor:new yi.C(ze.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new yi.C(ze.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new yi.C(ze.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:ze.fontSizeIcon*1.5})),Tt=function(ze,ke){var qe={};for(var bt in ze)Object.prototype.hasOwnProperty.call(ze,bt)&&ke.indexOf(bt)<0&&(qe[bt]=ze[bt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,bt=Object.getOwnPropertySymbols(ze);kt<bt.length;kt++)ke.indexOf(bt[kt])<0&&Object.prototype.propertyIsEnumerable.call(ze,bt[kt])&&(qe[bt[kt]]=ze[bt[kt]]);return qe};const Ht={rotateLeft:z.createElement(Oa,null),rotateRight:z.createElement(zt,null),zoomIn:z.createElement(Qo,null),zoomOut:z.createElement(vo,null),close:z.createElement(Bn.Z,null),left:z.createElement(Sr.Z,null),right:z.createElement(Kr.Z,null),flipX:z.createElement(Tr,null),flipY:z.createElement(Tr,{rotate:90})};var jn=ze=>{var{previewPrefixCls:ke,preview:qe}=ze,bt=Tt(ze,["previewPrefixCls","preview"]);const{getPrefixCls:kt}=z.useContext(Bo.E_),Ut=kt("image",ke),cn=`${Ut}-preview`,an=kt(),[mn,vn]=Ft(Ut),Zn=z.useMemo(()=>{var Hn;if(qe===!1)return qe;const gr=typeof qe=="object"?qe:{},Fr=pe()(vn,(Hn=gr.rootClassName)!==null&&Hn!==void 0?Hn:"");return Object.assign(Object.assign({},gr),{transitionName:(0,Ti.m)(an,"zoom",gr.transitionName),maskTransitionName:(0,Ti.m)(an,"fade",gr.maskTransitionName),rootClassName:Fr})},[qe]);return mn(z.createElement(Ya.PreviewGroup,Object.assign({preview:Zn,previewPrefixCls:cn,icons:Ht},bt)))},tr=function(ze,ke){var qe={};for(var bt in ze)Object.prototype.hasOwnProperty.call(ze,bt)&&ke.indexOf(bt)<0&&(qe[bt]=ze[bt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,bt=Object.getOwnPropertySymbols(ze);kt<bt.length;kt++)ke.indexOf(bt[kt])<0&&Object.prototype.propertyIsEnumerable.call(ze,bt[kt])&&(qe[bt[kt]]=ze[bt[kt]]);return qe};const Pr=ze=>{const{prefixCls:ke,preview:qe,className:bt,rootClassName:kt,style:Ut}=ze,cn=tr(ze,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:an,locale:mn=Aa.Z,getPopupContainer:vn,image:Zn}=z.useContext(Bo.E_),Hn=an("image",ke),gr=an(),Fr=mn.Image||Aa.Z.Image,[Cr,Or]=Ft(Hn),so=pe()(kt,Or),Co=pe()(bt,Or,Zn==null?void 0:Zn.className),kr=z.useMemo(()=>{if(qe===!1)return qe;const mo=typeof qe=="object"?qe:{},{getContainer:Oo}=mo,ki=tr(mo,["getContainer"]);return Object.assign(Object.assign({mask:z.createElement("div",{className:`${Hn}-mask-info`},z.createElement(ve.Z,null),Fr==null?void 0:Fr.preview),icons:Ht},ki),{getContainer:Oo||vn,transitionName:(0,Ti.m)(gr,"zoom",mo.transitionName),maskTransitionName:(0,Ti.m)(gr,"fade",mo.maskTransitionName)})},[qe,Fr]),To=Object.assign(Object.assign({},Zn==null?void 0:Zn.style),Ut);return Cr(z.createElement(Ya,Object.assign({prefixCls:Hn,preview:kr,rootClassName:so,className:Co,style:To},cn)))};Pr.PreviewGroup=jn;var Cn=Pr,dr=()=>{const[ze,ke]=(0,z.useState)(""),[qe,bt]=(0,z.useState)(0);let[kt,Ut]=(0,z.useState)(),[cn,an]=(0,z.useState)();const[mn,vn]=(0,z.useState)(!1),Zn=(0,z.useRef)("");(0,z.useEffect)(()=>Pe.Z.subscribe("preview-image",Oo=>{ke(Oo),console.log(kr.current),document.body.style.overflow="hidden"}),[]),(0,z.useEffect)(()=>(document.addEventListener("keydown",Hn),()=>{document.removeEventListener("keydown",Hn)}),[]),(0,z.useEffect)(()=>{Zn.current=ze},[ze]);function Hn(mo){mo.keyCode==27&&Zn.current&&gr()}function gr(){document.body.style.overflow="auto",Ut(void 0),an(void 0),bt(0),ke("")}function Fr(){bt(qe+90)}function Cr(){kt=kr.current.width*1.1,cn=kr.current.height*1.1,an(cn),Ut(kt)}function Or(){kt=kr.current.width/1.1,cn=kr.current.height/1.1,an(cn),Ut(kt)}const so=(0,z.useRef)(),Co=(0,z.useRef)(),kr=(0,z.useRef)(),To=mo=>{(mo.nativeEvent.target===so.current||mo.nativeEvent.target===Co.current)&&gr()};return z.createElement(z.Fragment,null,ze?z.createElement("div",null,z.createElement("div",{className:"preview-wrp-group",ref:Co},z.createElement(Cn,{className:"image-preview",src:ze,style:{display:"none"},preview:{visible:!0,src:ze,movable:!1,onVisibleChange:mo=>{ke("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(at,We,te){"use strict";te.d(We,{h:function(){return oe}});var z=te(67294),fe=te(42563),Pe=te(91773),ve=te(71577),he=te(4631),pe=te.n(he),ie=te(71749),de=te(30483),le=Object.defineProperty,ue=Object.defineProperties,se=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ae,ce,Se)=>ce in ae?le(ae,ce,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ae[ce]=Se,y=(ae,ce)=>{for(var Se in ce||(ce={}))re.call(ce,Se)&&a(ae,Se,ce[Se]);if(me)for(var Se of me(ce))ne.call(ce,Se)&&a(ae,Se,ce[Se]);return ae},E=(ae,ce)=>ue(ae,se(ce));const b=fe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},ee={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:ce})=>{const[Se,_e]=(0,z.useState)("python");function xe(Fe){_e(ee[Fe][1])}function we(Fe){ae(Fe)}return z.createElement(Pe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:we,style:{width:500}}),z.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(fe.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:xe},Object.keys(ee).map(Fe=>z.createElement(b,{key:Fe,value:Fe},ee[Fe][0])))),z.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(oe,{mode:Se})),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:ce},"\u53D6\u6D88")))};function oe({value:ae,onChange:ce,mode:Se,options:_e={}}){const xe=(0,z.useRef)(),[we,Fe]=(0,z.useState)();return(0,z.useEffect)(()=>{if(we){let Me=function(ut){const Xe=ut.getValue();ce&&ce(Xe)};return we.on("change",Me),()=>{we.off("change",Me)}}},[we,ce]),(0,z.useEffect)(()=>{we&&we.setOption("mode",Se)},[we,Se]),(0,z.useEffect)(()=>{we&&(ae!==we.getValue()||ae==="")&&setTimeout(()=>{we.setValue(ae||"")},300)},[we,ae]),(0,z.useEffect)(()=>{if(xe.current&&!we){const Me=pe().fromTextArea(xe.current,y({mode:Se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_e));Fe(Me)}},[xe.current,we]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:xe}))}},35567:function(at,We,te){"use strict";te.d(We,{Z:function(){return ge}});var z=te(67294),fe=te(4631),Pe=te.n(fe),ve=te(91033),he=te(71749),pe=te(57341),ie=te(82801),de=te(88386),le=te(49047),ue=te(80785),se=te(85725),me=({value:ye="",className:be,showTextOnly:Le,showLines:Ne,style:et={}})=>{const ct=(0,z.useMemo)(()=>"",[ye]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},re=te(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,ee=(ye,be,Le)=>be in ye?ne(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ye[be]=Le,oe=(ye,be)=>{for(var Le in be||(be={}))b.call(be,Le)&&ee(ye,Le,be[Le]);if(E)for(var Le of E(be))x.call(be,Le)&&ee(ye,Le,be[Le]);return ye},ae=(ye,be)=>a(ye,y(be));let ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Se({onActionCallback:ye,title:be,icon:Le,actionName:Ne,className:et="",children:ct}){function _n(){ye(Ne)}return re.createElement("a",{title:be,className:et,onClick:_n},re.createElement("i",{className:`${Le}`}),ct)}var _e=({watch:ye,showNullButton:be,showNullProgramButton:Le,onActionCallback:Ne,fullScreen:et,insertTemp:ct,hidetoolBar:_n,extraUse:rn})=>{const In=[...ce,{title:`${ye?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ye?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!_n&&In.map((pr,_r)=>re.createElement("li",{key:_r},pr.actionName?re.createElement(Se,ae(oe({},pr),{onActionCallback:Ne})):re.createElement("span",{className:"v-line"}))),be?re.createElement("li",null,re.createElement(Se,{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(Se,{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(Se,{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,ct&&re.createElement("li",null,re.createElement(Se,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ct}`,onActionCallback:Ne},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),rn&&re.createElement("li",null,rn),re.createElement("li",{className:"btn-full-screen"},re.createElement(Se,{icon:`${et?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:et?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ne})))},xe=te(76621),we=te(91773),Fe=te(11486),Me=te(71577),ut=Object.defineProperty,Xe=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,nt=(ye,be,Le)=>be in ye?ut(ye,be,{enumerable:!0,configurable:!0,writable:!0,value:Le}):ye[be]=Le,Ke=(ye,be)=>{for(var Le in be||(be={}))De.call(be,Le)&&nt(ye,Le,be[Le]);if(Ae)for(var Le of Ae(be))Be.call(be,Le)&&nt(ye,Le,be[Le]);return ye},Et=(ye,be)=>Xe(ye,mt(be));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var nn=({callback:ye,onCancel:be})=>{function Le(Ne){ye(Ne)}return z.createElement(we.default,Et(Ke({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Le,style:{width:500}}),z.createElement(we.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(Fe.default,null)),z.createElement(we.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(Fe.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:be},"\u53D6\u6D88")))},on=te(57444),it=te(70859),lt=te(14446),xt=te(71230),Jt=te(63205),Vt=te(67294),xn=({callback:ye,onCancel:be})=>{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 et=Le.toDataURL("image/png");return Vt.createElement(lt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Vt.createElement(xt.Z,{style:{height:"100vh"}},Vt.createElement(Jt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:et,visible:!0,title:String(Date.now())},onOk:ct=>{ye({src:ct.url})},onClose:be})))},He=te(23495);function un(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(un,go.CommandHandler),un.prototype.canAlignSelection=function(){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<2)},un.prototype.alignLeft=function(){var ye=this.diagram;ye.startTransaction("aligning left");var be=1/0;ye.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.x,be))}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be,Le.position.y))}),ye.commitTransaction("aligning left")},un.prototype.alignRight=function(){var ye=this.diagram;ye.startTransaction("aligning right");var be=-1/0;ye.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.x+Le.actualBounds.width;be=Math.max(Ne,be)}}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(be-Le.actualBounds.width,Le.position.y))}),ye.commitTransaction("aligning right")},un.prototype.alignTop=function(){var ye=this.diagram;ye.startTransaction("alignTop");var be=1/0;ye.selection.each(function(Le){Le instanceof go.Link||(be=Math.min(Le.position.y,be))}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.position.x,be))}),ye.commitTransaction("alignTop")},un.prototype.alignBottom=function(){var ye=this.diagram;ye.startTransaction("aligning bottom");var be=-1/0;ye.selection.each(function(Le){if(!(Le instanceof go.Link)){var Ne=Le.actualBounds.y+Le.actualBounds.height;be=Math.max(Ne,be)}}),ye.selection.each(function(Le){Le instanceof go.Link||Le.move(new go.Point(Le.actualBounds.x,be-Le.actualBounds.height))}),ye.commitTransaction("aligning bottom")},un.prototype.alignCenterX=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center X");var Le=be.actualBounds.x+be.actualBounds.width/2;ye.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Le-Ne.actualBounds.width/2,Ne.actualBounds.y))}),ye.commitTransaction("aligning Center X")}},un.prototype.alignCenterY=function(){var ye=this.diagram,be=ye.selection.first();if(be){ye.startTransaction("aligning Center Y");var Le=be.actualBounds.y+be.actualBounds.height/2;ye.selection.each(function(Ne){Ne instanceof go.Link||Ne.move(new go.Point(Ne.actualBounds.x,Le-Ne.actualBounds.height/2))}),ye.commitTransaction("aligning Center Y")}},un.prototype.alignColumn=function(ye){var be=this.diagram;be.startTransaction("align Column"),ye===void 0&&(ye=0),ye=parseFloat(ye);var Le=new Array;be.selection.each(function(rn){rn instanceof go.Link||Le.push(rn)});for(var Ne=0;Ne<Le.length-1;Ne++){var et=Le[Ne],ct=et.actualBounds.y+et.actualBounds.height+ye,_n=Le[Ne+1];_n.move(new go.Point(et.actualBounds.x,ct))}be.commitTransaction("align Column")},un.prototype.alignRow=function(ye){ye===void 0&&(ye=0),ye=parseFloat(ye);var be=this.diagram;be.startTransaction("align Row");var Le=new Array;be.selection.each(function(rn){rn instanceof go.Link||Le.push(rn)});for(var Ne=0;Ne<Le.length-1;Ne++){var et=Le[Ne],ct=et.actualBounds.x+et.actualBounds.width+ye,_n=Le[Ne+1];_n.move(new go.Point(ct,et.actualBounds.y))}be.commitTransaction("align Row")},un.prototype.canRotate=function(ye){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},un.prototype.rotate=function(ye){ye===void 0&&(ye=90);var be=this.diagram;be.startTransaction("rotate "+ye.toString());var be=this.diagram;be.selection.each(function(Le){Le instanceof go.Link||Le instanceof go.Group||(Le.angle+=ye)}),be.commitTransaction("rotate "+ye.toString())},un.prototype.pullToFront=function(){var ye=this.diagram;ye.startTransaction("pullToFront");var be=new go.Map;ye.selection.each(function(Le){be.set(Le.layer,0)}),be.iteratorKeys.each(function(Le){var Ne=0;Le.parts.each(function(et){if(!et.isSelected){var ct=et.zOrder;isNaN(ct)?et.zOrder=0:Ne=Math.max(Ne,ct)}}),be.set(Le,Ne)}),ye.selection.each(function(Le){un._assignZOrder(Le,be.get(Le.layer)+1)}),ye.commitTransaction("pullToFront")},un.prototype.pushToBack=function(){var ye=this.diagram;ye.startTransaction("pushToBack");var be=new go.Map;ye.selection.each(function(Le){be.set(Le.layer,0)}),be.iteratorKeys.each(function(Le){var Ne=0;Le.parts.each(function(et){if(!et.isSelected){var ct=et.zOrder;isNaN(ct)?et.zOrder=0:Ne=Math.min(Ne,ct)}}),be.set(Le,Ne)}),ye.selection.each(function(Le){un._assignZOrder(Le,be.get(Le.layer)-1-un._findGroupDepth(Le))}),ye.commitTransaction("pushToBack")},un._assignZOrder=function(ye,be,Le){Le===void 0&&(Le=ye),ye.layer===Le.layer&&(ye.zOrder=be),ye instanceof go.Group&&ye.memberParts.each(function(Ne){un._assignZOrder(Ne,be+1,Le)})},un._findGroupDepth=function(ye){if(ye instanceof go.Group){var be=0;return ye.memberParts.each(function(Le){be=Math.max(be,un._findGroupDepth(Le))}),be+1}else return 0},un.prototype.doKeyDown=function(){var ye=this.diagram;if(ye!==null){var be=ye.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var Le=this.arrowKeyBehavior;if(Le==="none")return;if(Le==="select"){this._arrowKeySelect();return}else if(Le==="move"){this._arrowKeyMove();return}else if(Le==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},un.prototype._getAllParts=function(){var ye=new Array;return this.diagram.nodes.each(function(be){ye.push(be)}),this.diagram.parts.each(function(be){ye.push(be)}),ye},un.prototype._arrowKeyMove=function(){var ye=this.diagram,be=ye.lastInput,Le=0,Ne=0;if(be.control||be.meta)Le=1,Ne=1;else if(ye.grid!==null){var et=ye.grid.gridCellSize;Ne=et.width,Le=et.height}ye.startTransaction("arrowKeyMove"),ye.selection.each(function(ct){be.key==="Up"?ct.move(new go.Point(ct.actualBounds.x,ct.actualBounds.y-Le)):be.key==="Down"?ct.move(new go.Point(ct.actualBounds.x,ct.actualBounds.y+Le)):be.key==="Left"?ct.move(new go.Point(ct.actualBounds.x-Ne,ct.actualBounds.y)):be.key==="Right"&&ct.move(new go.Point(ct.actualBounds.x+Ne,ct.actualBounds.y))}),ye.commitTransaction("arrowKeyMove")},un.prototype._arrowKeySelect=function(){var ye=this.diagram,be=ye.lastInput,Le=null;be.key==="Up"?Le=this._findNearestPartTowards(270):be.key==="Down"?Le=this._findNearestPartTowards(90):be.key==="Left"?Le=this._findNearestPartTowards(180):be.key==="Right"&&(Le=this._findNearestPartTowards(0)),Le!==null&&(be.shift?Le.isSelected=!0:be.control||be.meta?Le.isSelected=!Le.isSelected:ye.select(Le))},un.prototype._findNearestPartTowards=function(ye){var be=this.diagram.selection.first();if(be===null)return null;for(var Le=be.actualBounds.center,Ne=this._getAllParts(),et=1/0,ct=be,_n=0;_n<Ne.length;_n++){var rn=Ne[_n];if(rn!==be&&rn.canSelect()){var In=rn.actualBounds.center,pr=Le.directionPoint(In),_r=this._angleCloseness(pr,ye);if(_r<=45){var Mt=Le.distanceSquaredPoint(In);Mt*=1+Math.sin(_r*Math.PI/180),Mt<et&&(et=Mt,ct=rn)}}}return ct},un.prototype._angleCloseness=function(ye,be){return Math.min(Math.abs(be-ye),Math.min(Math.abs(be+360-ye),Math.abs(be-360-ye)))},un.prototype._arrowKeyTree=function(){var ye=this.diagram,be=ye.selection.first();if(be instanceof go.Node){var Le=ye.lastInput;if(Le.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)ye.commandHandler.canExpandTree(be)&&ye.commandHandler.expandTree(be);else{var Ne=this._sortTreeChildrenByY(be).first();Ne!==null&&ye.select(Ne)}}else if(Le.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)ye.commandHandler.canCollapseTree(be)&&ye.commandHandler.collapseTree(be);else{var et=be.findTreeParentNode();et!==null&&ye.select(et)}else if(Le.key==="Up"){var et=be.findTreeParentNode();if(et!==null){var ct=this._sortTreeChildrenByY(et),_n=ct.indexOf(be);if(_n>0){for(var rn=ct.elt(_n-1);rn!==null&&rn.isTreeExpanded&&!rn.isTreeLeaf;){var In=this._sortTreeChildrenByY(rn);rn=In.last()}rn!==null&&ye.select(rn)}else ye.select(et)}}else if(Le.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var Ne=this._sortTreeChildrenByY(be).first();Ne!==null&&ye.select(Ne)}else for(;be!==null;){var et=be.findTreeParentNode();if(et===null)break;var ct=this._sortTreeChildrenByY(et),_n=ct.indexOf(be);if(_n<ct.length-1){ye.select(ct.elt(_n+1));break}else be=et}var pr=ye.selection.first();pr!==null&&ye.scrollToRect(pr.actualBounds)}},un.prototype._sortTreeChildrenByY=function(ye){var be=new go.List().addAll(ye.findTreeChildrenNodes());return be.sort(function(Le,Ne){var et=Le.location,ct=Ne.location;return et.y<ct.y?-1:et.y>ct.y?1:et.x<ct.x?-1:et.x>ct.x?1:0}),be},un.prototype.copyToClipboard=function(ye){go.CommandHandler.prototype.copyToClipboard.call(this,ye),this._lastPasteOffset.set(this.pasteOffset)},un.prototype.pasteFromClipboard=function(){var ye=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ye,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ye},Object.defineProperty(un.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ye){if(ye!=="move"&&ye!=="select"&&ye!=="scroll"&&ye!=="tree"&&ye!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ye);this._arrowKeyBehavior=ye}}),Object.defineProperty(un.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ye){if(!(ye instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ye);this._pasteOffset.set(ye)}});var kn=un,nr=te(18023),Ln=te(15746),Gt=te(33170),Je={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Qe=te(67294),_t=(ye,be,Le)=>new Promise((Ne,et)=>{var ct=In=>{try{rn(Le.next(In))}catch(pr){et(pr)}},_n=In=>{try{rn(Le.throw(In))}catch(pr){et(pr)}},rn=In=>In.done?Ne(In.value):Promise.resolve(In.value).then(ct,_n);rn((Le=Le.apply(ye,be)).next())});function Rt({onCancel:ye,callback:be}){let Le=(0,z.useRef)(),Ne=(0,z.useRef)(),et=(0,z.useRef)(),ct=(0,z.useRef)(!1);const _n=(0,z.useRef)(!1),[rn,In]=(0,z.useState)(0);function pr(){const Mt=He.bx.make,ur={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:Mt(He.s_,"Grid",Mt(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Mt(He.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Bn=>{var Sr=Bn.diagram.commandHandler.addTopLevelParts(Bn.diagram.selection,!0);Sr||Bn.diagram.currentTool.doCancel()},commandHandler:Mt(kn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Bn=>{var Sr=Bn.subject;Sr.location=Sr.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 Sr=Bn.subject;setTimeout(()=>{Bn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Bn=>{var Sr=Bn.parameter.part;Sr.invalidateConnectedLinks();var Kr=Bn.subject;Bn.diagram.toolManager.linkingTool.isForwards?Kr.toNode.invalidateConnectedLinks():Kr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Le.current.nodeTemplate=Mt(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),Mt(He.bn,{name:"SHAPE",fill:ur.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")),Mt(He.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Mt(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=Mt("ToolTip",Mt(He.s_,"Vertical",{maxSize:new He.$u(200,NaN)},Mt(He.al,{font:"bold 10pt sans-serif",textAlign:"center"},new He.KX("text")),Mt(He.al,{font:"10pt sans-serif",textAlign:"center"},new He.KX("text","details"))));function er(Bn,Sr){var Kr=(lr,ci)=>{lr.handled=!0,lr.diagram.model.commit(Li=>{var ra=ci.part.adornedPart,Oa=new He.E9().setRectSpot(ra.actualBounds,Bn);Oa.subtract(ra.location),Oa.scale(2,2),Oa.x+=Math.sign(Oa.x)*130,Oa.y+=Math.sign(Oa.y)*130,Oa.add(ra.location),Oa.snapToGridPoint(lr.diagram.grid.gridOrigin,lr.diagram.grid.gridCellSize);var $a=Li.copyNodeData(ra.data);Li.setGroupKeyForNodeData($a,Li.getGroupKeyForNodeData(ra.data)),Li.addNodeData($a);var ft={from:ra.key,to:Li.getKeyForNodeData($a)};Li.addLinkData(ft);var dt=lr.diagram.findNodeForData($a);dt.location=Oa,lr.diagram.select(dt),setTimeout(()=>{lr.diagram.commandHandler.editTextBlock()},20)})};return Mt(He.bn,{figure:Sr,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:ur.white,strokeWidth:4,mouseEnter:(lr,ci)=>ci.fill="dodgerblue",mouseLeave:(lr,ci)=>ci.fill="orange",isActionable:!0,click:Kr,contextClick:Kr})}function Tn(Bn){return Mt(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:(Sr,Kr)=>Kr.fill="dodgerblue",mouseLeave:(Sr,Kr)=>Kr.fill="orange",click:(Sr,Kr)=>{Sr.diagram.commandHandler.showContextMenu(Kr.part.adornedPart)}},Bn||{})}Le.current.nodeTemplate.selectionAdornmentTemplate=Mt(He.uz,"Spot",Mt(He.Vm,{padding:10}),er(He.z6.Top,"TriangleUp"),er(He.z6.Left,"TriangleLeft"),er(He.z6.Right,"TriangleRight"),er(He.z6.Bottom,"TriangleDown"),Tn({alignment:new He.z6(.75,0)}));function Un(Bn,Sr){return(Kr,lr)=>{Kr.handled=!0,Kr.diagram.model.commit(ci=>{ci.set(lr.part.adornedPart.data,Bn,Sr)})}}function sr(Bn,Sr){return Sr||(Sr="color"),Mt(He.bn,{width:16,height:16,stroke:"lightgray",fill:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.stroke="dodgerblue",mouseLeave:(Kr,lr)=>lr.stroke="lightgray",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}function Zr(){return[Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.white,"fill"),sr(ur.beige,"fill"),sr(ur.extralightblue,"fill"),sr(ur.extralightred,"fill"))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.lightgray,"fill"),sr(ur.lightgreen,"fill"),sr(ur.lightblue,"fill"),sr(ur.lightred,"fill")))]}function xr(){return[Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.black),sr(ur.green),sr(ur.blue),sr(ur.red))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",sr(ur.white),sr(ur.magenta),sr(ur.purple),sr(ur.orange)))]}function Gi(Bn,Sr){return Sr||(Sr="thickness"),Mt(He.bn,"LineH",{width:16,height:16,strokeWidth:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}function Xo(Bn,Sr){return Sr||(Sr="dash"),Mt(He.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}function br(){return[Mt("ContextMenuButton",Mt(He.s_,"Horizontal",Gi(1),Gi(2),Gi(3),Gi(4))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",Xo(null),Xo([2,4]),Xo([4,4])))]}function _o(Bn,Sr){return Sr||(Sr="figure"),Mt(He.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Bn,margin:1,background:"transparent",mouseEnter:(Kr,lr)=>lr.fill="dodgerblue",mouseLeave:(Kr,lr)=>lr.fill="lightgray",click:Un(Sr,Bn),contextClick:Un(Sr,Bn)})}Le.current.nodeTemplate.contextMenu=Mt("ContextMenu",Mt("ContextMenuButton",Mt(He.s_,"Horizontal",_o("Rectangle"),_o("RoundedRectangle"),_o("Ellipse"),_o("Diamond"))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",_o("Parallelogram2"),_o("ManualOperation"),_o("Procedure"),_o("Cylinder1"))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",_o("Terminator"),_o("CreateRequest"),_o("Document"),_o("TriangleDown"))),Zr(),xr(),br()),Le.current.groupTemplate=Mt(He.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:He.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Bn,Sr)=>{var Kr=Sr.addMembers(Sr.diagram.selection,!0);Kr||Sr.diagram.currentTool.doCancel()},avoidable:!1},new He.KX("location","loc",He.E9.parse).makeTwoWay(He.E9.stringify),Mt(He.s_,"Auto",{name:"BODY"},Mt(He.bn,{parameter1:10,fill:ur.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")),Mt(He.Vm,{background:"transparent",margin:20})),Mt(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=Mt(He.uz,"Spot",Mt(He.s_,"Auto",Mt(He.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Mt(He.Vm,{margin:1.5})),Tn({alignment:He.z6.TopRight,alignmentFocus:He.z6.BottomRight})),Le.current.groupTemplate.contextMenu=Mt("ContextMenu",Zr(),xr(),br()),Le.current.linkTemplate=Mt(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(),Mt(He.bn,{strokeWidth:2},new He.KX("stroke","color"),new He.KX("strokeWidth","thickness"),new He.KX("strokeDashArray","dash")),Mt(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)),Mt(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))),Mt(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))),Mt(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=Mt(He.uz,Mt(He.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:wi(2)},new He.KX("pathPattern","thickness",wi)),Tn({alignmentFocus:new He.z6(0,0,-6,-4)}));function wi(Bn){return Mt(He.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Bn+4).toString()+" H3"})}function ti(Bn){var Sr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Bn===0?Sr="M0 0 M16 16 M0 8 L16 8":Bn===2&&(Sr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Mt(He.bn,{geometryString:Sr,margin:2,background:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Un("dir",Bn),contextClick:Un("dir",Bn)})}function hi(Bn){var Sr=(Kr,lr)=>{Kr.handled=!0,Kr.diagram.model.commit(ci=>{var Li=lr.part.adornedPart;ci.set(Li.data,Bn?"toSpot":"fromSpot",He.z6.stringify(He.z6.AllSides)),(Bn?Li.toNode:Li.fromNode).invalidateConnectedLinks()})};return Mt(He.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Kr,lr)=>lr.background="dodgerblue",mouseLeave:(Kr,lr)=>lr.background="transparent",click:Sr,contextClick:Sr})}function pn(Bn,Sr){var Kr=0,lr=He.z6.RightSide;Bn.equals(He.z6.Top)?(Kr=270,lr=He.z6.TopSide):Bn.equals(He.z6.Left)?(Kr=180,lr=He.z6.LeftSide):Bn.equals(He.z6.Bottom)&&(Kr=90,lr=He.z6.BottomSide),Sr||(Kr-=180);var ci=(Li,ra)=>{Li.handled=!0,Li.diagram.model.commit(Oa=>{var $a=ra.part.adornedPart;Oa.set($a.data,Sr?"toSpot":"fromSpot",He.z6.stringify(lr)),(Sr?$a.toNode:$a.fromNode).invalidateConnectedLinks()})};return Mt(He.bn,{alignment:Bn,alignmentFocus:Bn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Kr,background:"transparent",mouseEnter:(Li,ra)=>ra.background="dodgerblue",mouseLeave:(Li,ra)=>ra.background="transparent",click:ci,contextClick:ci})}Le.current.linkTemplate.contextMenu=Mt("ContextMenu",xr(),br(),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",ti(0),ti(1),ti(2))),Mt("ContextMenuButton",Mt(He.s_,"Horizontal",Mt(He.s_,"Spot",hi(!1),pn(He.z6.Top,!1),pn(He.z6.Left,!1),pn(He.z6.Right,!1),pn(He.z6.Bottom,!1)),Mt(He.s_,"Spot",{margin:new He.Zt(0,0,0,2)},hi(!0),pn(He.z6.Top,!0),pn(He.z6.Left,!0),pn(He.z6.Right,!0),pn(He.z6.Bottom,!0)))));const Ya=`{ "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 Ti=["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 Bo(Bn){return console.log("shapeName:",Bn),Ti.indexOf(Bn)>=0}var Aa=new He.YI(et.current,{maxSelectionCount:1,linkTemplate:Mt(He.rU,{locationSpot:He.z6.Center,selectionAdornmentTemplate:Mt(He.uz,"Link",{locationSpot:He.z6.Center},Mt(He.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Mt(He.bn,{toArrow:"Standard",stroke:null}))},{routing:He.rU.AvoidsNodes,curve:He.rU.JumpOver,corner:5,toShortLength:4},new He.KX("points"),Mt(He.bn,{isPanelMain:!0,strokeWidth:2}),Mt(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 Sr;const Kr=Bn.subject.part;var lr=(Sr=document.activeElement)==null?void 0:Sr.value;typeof lr=="string"&&lr.trim()===""&&Le.current.model.commit(function(ci){ci.set(Kr.data,"text","\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}),Aa.nodeTemplate=Mt(He.NB,"Auto",{locationSpot:He.z6.Center},new He.KX("location","location",He.E9.parse).makeTwoWay(He.E9.stringify),Mt(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")),Mt(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=Mt(He.s_,"Grid",Mt(He.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Mt(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 _r=()=>_t(this,null,function*(){var Mt=Le.current.makeImage();const ur=yield(0,Gt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Mt.src}});be({src:ur.url})});return(0,z.useEffect)(()=>(setTimeout(()=>{pr()},500),In(rn+1),()=>{Le.current=null}),[]),Qe.createElement("div",{ref:_n,className:ct.current?`${Je.maxH60} body-overflow-initial`:"body-overflow-initial"},Qe.createElement(lt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!rn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Qe.createElement(xt.Z,null,Qe.createElement(Ln.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Qe.createElement(Ln.Z,{onClick:()=>{var Mt,ur,er=Le.current.selection.first();if(ct.current=!ct.current,document.activeElement&&er){let Tn=(ur=(Mt=document.activeElement)==null?void 0:Mt.value)==null?void 0:ur.trim();typeof Tn=="string"&&Le.current.model.commit(function(Un){Un.set(er.data,"text",Tn||"\u672A\u547D\u540D"),Le.current.commandHandler.stopCommand()},"increment")}In(rn+1)}},Qe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ye},Qe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Je.flowChartWrp},Qe.createElement("div",{style:{display:"flex",height:"100%"}},Qe.createElement("div",{style:{width:"300px",height:"100%"}},Qe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Qe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Je.myPaletteDiv,ref:et})),Qe.createElement("div",{style:{flex:1,position:"relative"}},Qe.createElement("div",{ref:Ne,style:{height:"80vh"}}))),Qe.createElement("div",{className:"tr"},Qe.createElement(Me.ZP,{size:"large",onClick:_r,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Yt=Rt,gt=te(78045),wt=te(42405);const Dt=gt.ZP.Group,tt={margin:"0 8px"};var fn=({callback:ye,onCancel:be})=>{function Le(Ne){ye(Ne)}return z.createElement(we.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:tt},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:tt},"\u884C\u6570"),z.createElement(we.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(wt.Z,null)),z.createElement("span",{style:tt},"\u5217\u6570"),z.createElement(we.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(wt.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:tt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(we.default.Item,{name:"align"},z.createElement(Dt,null,z.createElement(gt.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(gt.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(gt.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(gt.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:be},"\u53D6\u6D88")))},hn=te(47897),$n=te(61016),no=te.n($n),vt=(0,z.forwardRef)(({use3d:ye,width:be,height:Le,callback:Ne,showSaveButton:et},ct)=>{const _n=(0,z.useRef)(),rn=(0,z.useRef)(),[In,pr]=(0,z.useState)(!1),_r=(0,z.useRef)({id:_n,appName:"graphing",width:be||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)(()=>{rn.current=new(no())(_r.current,!0),window.onload=function(){rn.current.inject("applet_container")}},[]);const Mt=()=>{var ur=window.ggbApplet.getPNGBase64(1,!0,72);return Ne&&Ne(ur),ur};return(0,z.useEffect)(()=>{_r.current.appName=In?"3D":"graphing",rn.current.inject("applet_container")},[In]),(0,z.useEffect)(()=>{pr(ye)},[ye]),(0,z.useImperativeHandle)(ct,()=>({getImgData:Mt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:_n}),z.createElement(xt.Z,{align:"middle"},z.createElement(Ln.Z,{flex:1},z.createElement(hn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:In,onChange:ur=>pr(ur)})),z.createElement(Ln.Z,null,z.createElement(Me.ZP,{size:"large",onClick:Mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),An=te(36527),Zt=te(25934),yt=te(2453);const Nn="link",Xt="upload-image",qn="add-flowchart",Br="draw-image",or="add-flowchart",Gn="code-block",ir="add-table",So="------------",On={default:So,left:`:${So}`,center:`:${So}:`,right:`${So}:`};var qr=te(99914),Yo=(ye,be,Le)=>new Promise((Ne,et)=>{var ct=In=>{try{rn(Le.next(In))}catch(pr){et(pr)}},_n=In=>{try{rn(Le.throw(In))}catch(pr){et(pr)}},rn=In=>In.done?Ne(In.value):Promise.resolve(In.value).then(ct,_n);rn((Le=Le.apply(ye,be)).next())});function Zo(){}let qo=0;const yr=1e4,xo="\u2581",Wo="@\u2581\u2581@",Wi="@\u2581@",$i=`
**\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`,Ci=["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 ei(ye){return/^\d+$/.test(ye)?`${ye}px`:ye}const co=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ta={[co+"-B"]:"bold",[co+"-I"]:"italic"},yn={[Nn]:"\u6DFB\u52A0\u94FE\u63A5",[Gn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Xt]:"\u6DFB\u52A0\u56FE\u7247",[Br]:"\u6DFB\u52A0\u753B\u56FE",[qn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ir]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ge=({defaultValue:ye="",onChange:be,width:Le="100%",height:Ne=400,miniToolbar:et=!1,isFocus:ct=!1,watch:_n,insertTemp:rn,mode:In="markdown",id:pr="markdown-editor-id",showResizeBar:_r=!1,noStorage:Mt=!1,showNullButton:ur=!1,showNullProgramButton:er=!1,hidetoolBar:Tn=!1,fullScreen:Un=!1,onBlur:sr,onCMBeforeChange:Zr,onFullScreen:xr,className:Gi="",disablePaste:Xo=!1,disabled:br=!1,disabledFill:_o=!1,placeholder:wi="",values:ti="",extraUse:hi})=>{const[pn,Ya]=(0,z.useState)(null),[Ti,Bo]=(0,z.useState)(ye),[Aa,Bn]=(0,z.useState)(_n),[Sr,Kr]=(0,z.useState)(Un),[lr,ci]=(0,z.useState)(""),[Li,ra]=(0,z.useState)(0),[Oa,$a]=(0,z.useState)(Ne),[ft,dt]=(0,z.useState)(!1),zt=(0,z.useRef)((0,Zt.Z)()),qt=(0,z.useRef)(!1),Mn=(0,z.useRef)(),[Nr,Tr]=(0,z.useState)(0),[Wr,uo]=(0,z.useState)(0),Mo=(0,z.useRef)(),Qo=(0,z.useRef)(),mi=(0,z.useRef)(),Fi=(0,z.useRef)(),oa=()=>Yo(void 0,null,function*(){var Ft;const Tt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:zt.current}});(Ft=Tt==null?void 0:Tt.attachments)!=null&&Ft.length&&(console.log("cm:",pn,Mo),Tt.attachments.map(Ht=>{Ht.content_type.indexOf("image")>-1?pn.replaceSelection(`![,](/api/attachments/${Ht.id}?type=${Ht.content_type})`):Ht.content_type.indexOf("video")>-1?pn.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ht.content_type.indexOf("pdf")>-1?pn.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ht.id}?type=${Ht.content_type}&disposition=inline" target="_blank">${Ht.name}</a>`):pn.replaceSelection(`[${Ht.name}](${ENV.API_SERVER}/api/attachments/${Ht.id}?type=${Ht.content_type})`)}))});(0,z.useEffect)(()=>{const Ft=window.scrollY||window.pageYOffset;Bo(ti),pn==null||pn.setValue(ti),window.scrollTo(0,Ft)},[ti]),(0,z.useEffect)(()=>{xr==null||xr(Sr)},[Sr]),(0,z.useEffect)(()=>{if(Mo.current){let Ft=function(Ht,Kt){var jn;if(Xo){Kt.preventDefault();return}const tr=Kt.clipboardData;if(tr){const Pr=tr.types.toString(),Cn=tr.items;if(Pr==="Files"||tr.types.indexOf("Files")>-1){if(Kt.preventDefault(),In=="stex")return;try{let dr=Cn[1];((jn=Cn[0])==null?void 0:jn.kind)==="file"&&(dr=Cn[0]);const ze=dr.getAsFile(),ke=ze.name.split(".").pop();(0,it.I)(ze,qe=>{var bt,kt,Ut;qe.id?((bt=ze==null?void 0:ze.type)==null?void 0:bt.indexOf("image"))>-1?Tt.replaceSelection(`<img width="100%" src="/api/attachments/${qe.id}?type=${qe.content_type})" alt="" />`):((kt=ze==null?void 0:ze.type)==null?void 0:kt.indexOf("video"))>-1?Tt.replaceSelection(`<video width="100%" controls src="/api/attachments/${qe.id}"></video>`):((Ut=ze==null?void 0:ze.type)==null?void 0:Ut.indexOf("pdf"))>-1?Tt.replaceSelection(`<a href="/api/attachments/${qe.id}?type=${ze.type}&disposition=inline" target="_blank">${ze.name}</a>`):Ci.includes(ke)?Tt.replaceSelection(`<a href="/api/attachments/${qe.id}?type=office&disposition=inline" target="_blank">${ze.name}</a>`):Tt.replaceSelection(`[${ze.name}](/api/attachments/${qe.id}?type=${qe.content_type})`):(qe==null?void 0:qe.status)===401&&(yt.ZP.warning((qe==null?void 0:qe.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(dr){yt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Tt=Pe().fromTextArea(Mo.current,{mode:In,lineNumbers:!et,lineWrapping:!0,value:ye,autoCloseTags:!er,autoCloseBrackets:!0});return Tt.on("keyup",function(Ht,Kt){Kt.keyCode===8&&(Ht.getValue()==""?Tt.setOption("placeholder",wi):Tt.setOption("placeholder",null))}),Tt.on("keydown",function(Ht,Kt){if(Kt.keyCode===8){var jn=yi(Ht);jn&&Kt.preventDefault()}}),ct&&Tt.focus(),Tt.on("paste",Ft),Tt.on("dragleave",function(Ht,Kt){Qo.current.classList.remove("mouse-hover-md")}),br&&Tt.on("beforeChange",function(Ht,Kt){(Kt.origin==="paste"||Kt.origin==="+input")&&Kt.cancel()}),Ya(Tt),()=>{Tt.off("paste",Ft)}}},[]);const vo=(0,z.useCallback)(()=>{if(Qo.current)try{}catch(Ft){console.log(Ft,"---- to set md editor body height")}},[Oa,Qo,Sr]);(0,z.useEffect)(()=>{function Ft(){let Tt=new ve.Z(Ht=>{for(let Kt of Ht)(Kt.target.offsetHeight>0||Kt.target.offsetWidth>0)&&(vo(),pn.setSize("100%","100%"),pn.refresh())});return Tt.observe(Mo.current.parentElement),Tt}if(pn){const Tt=Ft();return()=>{var Ht,Kt;(Ht=Mo.current)!=null&&Ht.parentElement&&Tt.unobserve((Kt=Mo.current)==null?void 0:Kt.parentElement)}}},[pn,vo]),(0,z.useEffect)(()=>{if(pn){let Ft=[];for(const[Tt,Ht]of Object.entries(Ta)){let Kt={[Tt]:()=>{Mi(Ht)}};Ft.push(Kt),pn.addKeyMap(Kt)}return Mn.current=setInterval(()=>{qt.current&&oa()},4e3),()=>{clearInterval(Mn.current);for(let Tt of Ft)pn.removeKeyMap(Tt)}}},[pn]),(0,z.useEffect)(()=>{Un!==Sr&&Kr(Un)},[Un]),(0,qr.Z)(()=>{if(!Mt&&Li>0){let Ft=new Date().getTime(),Tt=window.sessionStorage.getItem(pr);Ft>=Li+yr&&(!Tt||Tt!==Ti)&&(window.sessionStorage.setItem(pr,Ti),dt(!0))}},yr),(0,z.useEffect)(()=>{Bn(_n)},[pn,_n]),(0,z.useEffect)(()=>{pn&&ct&&pn.focus()},[pn,ct]),(0,z.useEffect)(()=>{if(Aa&&pn){let Ft=function(Ht){let Kt=Ht.target;if(Fi.current){let jn=Kt.scrollTop/Kt.scrollHeight;Fi.current.scrollTop=Fi.current.scrollHeight*jn}};const Tt=pn.getScrollerElement();return Tt.addEventListener("scroll",Ft),()=>{Tt.removeEventListener("scroll",Ft)}}},[pn,Aa]),(0,z.useEffect)(()=>{if(pn&&Zr){let Ft=function(Tt,Ht){Zr(Tt,Ht)};return pn.on("beforeChange",Ft),()=>{pn.off("beforeChange",Ft)}}},[pn,Zr]),(0,z.useEffect)(()=>{if(pn&&sr){let Ft=function(){sr(pn.getValue())};return pn.on("blur",Ft),()=>{pn.off("blur",Ft)}}},[pn,sr]);function yi(Ft,Tt){var Ht=Ft.getDoc(),Kt=Ht.getCursor(),jn=Ht.getLine(Kt.line),tr=jn.charAt(Kt.ch-1),Pr=jn.lastIndexOf("@\u2581@",Kt.ch),Cn=jn.lastIndexOf("@\u2581\u2581@",Kt.ch),dr=Pr>Cn?Pr:Cn,ze=Pr>Cn?3:4;if(Wo.indexOf(tr)===-1)return null;if(console.log("change1:",Tt,Ft,jn,Kt,dr,Pr,Cn,tr),dr>=0&&Kt.ch-dr<5){var ke=dr+ze;return Ht.replaceRange("",{line:Kt.line,ch:dr},{line:Kt.line,ch:ke}),{line:Kt.line,ch:ke}}return null}(0,z.useEffect)(()=>{if(pn){let Ft=function(Tt,Ht){const Kt=Tt.getValue();Bo(Kt),ra(new Date().getTime()),Tt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(er?be(Kt,bn(Kt)):be(Kt))};return pn.on("change",Ft),()=>{pn.off("change",Ft)}}},[pn,be]),(0,z.useEffect)(()=>{if(pn)if(ye==null)pn.setValue(""),Bo("");else{const Ft=window.scrollY||window.pageYOffset;ye!==pn.getValue()&&(pn.setValue(ye),Bo(ye),pn.setCursor(br?1:pn.lineCount(),0),window.scrollTo(0,Ft))}},[pn,ye]);const Mi=(0,z.useCallback)(Ft=>{const Tt=pn.getCursor(),Ht=pn.getSelection();let Kt=Ht.split(`
`);switch(Ft){case"bold":return pn.replaceSelection("**"+Ht+"**"),Ht===""&&pn.setCursor(Tt.line,Tt.ch+2),pn.focus();case"italic":return pn.replaceSelection("*"+Ht+"*"),Ht===""&&pn.setCursor(Tt.line,Tt.ch+1),pn.focus();case"code":return pn.replaceSelection("`"+Ht+"`"),Ht===""&&pn.setCursor(Tt.line,Tt.ch+1),pn.focus();case"inline-latex":return ci("inline-latex"),pn.focus();case"latex":return pn.replaceSelection("```latex\n"+Ht+"\n```"),pn.setCursor(Tt.line+1,Ht.length+1),pn.focus();case"line-break":return pn.replaceSelection(`<br/>
`),pn.focus();case"list-ul":return Ht===""?pn.replaceSelection("- "+Ht):pn.replaceSelection(Kt.map(jn=>jn===""?"":`- ${jn}`).join(`
`)),pn.focus();case"list-ol":return Ht===""?pn.replaceSelection("1. "+Ht):pn.replaceSelection(Kt.map((jn,tr)=>jn===""?"":`${tr+1}. ${jn}`).join(`
`)),pn.focus();case"add-null-ch":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection(xo),pn.focus();case"add-signal":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection(Wi),pn.focus();case"add-multiple":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection(Wo),pn.focus();case"inster-template-1":return Ht===""&&pn.setCursor(Tt.line,Tt.ch),pn.replaceSelection($i),pn.focus();case"eraser":return pn.setValue(""),pn.focus();case"trigger-watch":return Bn(!Aa),pn.focus();case"trigger-full-screen":return Kr(!Sr),pn.focus();case Nn:ci(Nn);return;case Gn:ci(Gn);return;case Xt:ci(Xt);return;case Br:ci(Br);return;case"maths-latex":ci("maths-latex");return;case qn:ci(qn);return;case ir:ci(ir);return;default:throw new Error}},[pn,Aa,Sr]),pi=(0,z.useCallback)((Ft,Tt)=>{var Ht,Kt,jn,tr,Pr,Cn;switch(ci(""),lr){case Nn:const{title:bt,link:kt}=Ft;return pn.replaceSelection(`[${bt}](${kt})`),pn.focus();case Gn:const{language:Ut,content:cn}=Ft;return pn.replaceSelection(["```"+Ut,cn,"```"].join(`
`)),pn.focus();case"maths-latex":for(var dr=atob(Ft),ze=new Uint8Array(dr.length),ke=0;ke<dr.length;ke++)ze[ke]=dr.charCodeAt(ke);var qe=new Blob([ze],{type:"image/png"});(0,it.I)(qe,Or=>{Or.id?pn.replaceSelection(`![,](/api/attachments/${Or.id}?type=${Or.content_type})`):(Or==null?void 0:Or.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":pn.replaceSelection("`$$"+Ft+"$$`");break;case Xt:case Br:case or:const{src:an,alt:mn}=Ft,vn=Tt,Zn=(jn=(Kt=(Ht=vn==null?void 0:vn.name)==null?void 0:Ht.split("."))==null?void 0:Kt.pop)==null?void 0:jn.call(Kt);return((tr=vn==null?void 0:vn.type)==null?void 0:tr.indexOf("image"))>-1||!(vn!=null&&vn.type)?vn.align||vn.width?pn.replaceSelection(`<p style="text-align:${vn.align||"initial"}"><img width="${vn.width?vn.width+"%":"initial"}" src="${an}" alt="${mn||""}" /></p>`):pn.replaceSelection(`<img width="100%" src="${an}" alt="${mn||""}" />`):((Pr=vn==null?void 0:vn.type)==null?void 0:Pr.indexOf("video"))>-1?pn.replaceSelection(`<video width="100%" controls src="${an}"></video>`):((Cn=vn==null?void 0:vn.type)==null?void 0:Cn.indexOf("pdf"))>-1?pn.replaceSelection(`<a href="${an}?type=${vn.type}&disposition=inline" target="_blank">${vn.name}</a>`):Ci.includes(Zn)?pn.replaceSelection(`<a href="${an}?type=office&disposition=inline" target="_blank">${vn.name}</a>`):pn.replaceSelection(`[${vn.name}](${an})`),pn.focus();case ir:const{row:Hn,col:gr,align:Fr}=Ft;let Cr=`
`;for(let Or=0;Or<Hn;Or++){let so=[],Co=[];for(let kr=0;kr<gr;kr++)Or===1&&Co.push(On[Fr]),so.push(" ");Or===1&&(Cr+=`| ${Co.join(" | ")} |
`),Cr+=`| ${so.join(gr===1?"":" | ")} |
`}return pn.replaceSelection(Cr+`
`),pn.focus();default:throw new Error}},[pn,lr]),Pa=(0,z.useMemo)(()=>{switch(lr){case Nn:return z.createElement(nn,{callback:pi,onCancel:St});case Gn:return z.createElement(on.Z,{callback:pi,onCancel:St});case Xt:return z.createElement(it.Z,{callback:pi,onCancel:St});case qn:return z.createElement(Yt,{callback:pi,onCancel:St});case ir:return z.createElement(fn,{callback:pi,onCancel:St});case"maths-latex":return z.createElement(vt,{showSaveButton:!0,callback:pi});case"inline-latex":return z.createElement(An.Z,{showSaveButton:!0,callback:pi});default:return null}},[lr]);function St(){ci("")}(0,z.useEffect)(()=>{if(mi.current){let Ft=function(Pr){jn=!0,tr=Pr.pageY},Tt=function(){jn=!1},Ht=function(Pr){if(jn){let Cn=Pr.pageY-tr;Cn<0&&(Cn=0),Cn>300&&(Cn=300);let dr=Ne+Cn+"px";$a(dr)}},Kt=mi.current,jn=!1,tr=0;return Kt.addEventListener("mousedown",Ft),document.addEventListener("mousemove",Ht),document.addEventListener("mouseup",Tt),()=>{Kt.removeEventListener("mousedown",Ft),document.removeEventListener("mousemove",Ht),document.removeEventListener("mouseup",Tt)}}},[pn,mi]),(0,z.useEffect)(()=>{$a(Ne)},[Ne]);const Lt=ei(Le),jt=ei(Oa),$e={width:Lt,height:jt},Wt=(0,z.useMemo)(()=>{if(Li){let Ft=new Date(Li),Tt=Ft.getHours(),Ht=Ft.getMinutes(),Kt=Ft.getSeconds();return Tt=Tt<10?"0"+Tt:Tt,Ht=Ht<10?"0"+Ht:Ht,Kt=Kt<10?"0"+Kt:Kt,`${Tt}:${Ht}:${Kt}`}return 0},[Li]),bn=Ft=>{const Tt=[];if(er){let Ht=-1;Ft=Ft.replace(/(@▁▁@|@▁@)/g,function(Kt,jn,tr){Tt.push({multiLine:Kt!==Wi})})}return Tt};function Rn(){window.sessionStorage.removeItem(pr),dt(!1),ra(0)}function Nt(){dt(!1),ra(0),pn.setValue(window.sessionStorage.getItem(pr))}(0,z.useEffect)(()=>{yn[lr]&&lr!==Br&&lr!==qn&&setTimeout(()=>{const Ft=document.getElementsByClassName("markdown-popup-form")[0],Tt=window.innerWidth/2-Ft.offsetWidth/2,Ht=window.innerHeight/2-Ft.offsetHeight/2;Tr(Tt),uo(Ht)},0)},[lr]);const $t=Ft=>{Ft.preventDefault();const Tt=Ft.clientX-Nr,Ht=Ft.clientY-Wr;document.body.onmousemove=Kt=>{let jn=Kt.clientX-Tt,tr=Kt.clientY-Ht;const Pr=document.getElementsByClassName("markdown-popup-form")[0],Cn=window.innerWidth-Pr.offsetWidth,dr=window.innerHeight-Pr.offsetHeight;jn=Math.max(0,Math.min(jn,Cn)),tr=Math.max(0,Math.min(tr,dr)),It(Kt.clientX,Kt.clientY,Tt,Ht)&&(Tr(jn),uo(tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},It=(Ft,Tt,Ht,Kt)=>{const jn=document.body.clientHeight,tr=document.body.clientWidth;return Ft<20&&Ht>Ft||Ft>tr-20&&Ht<Ft||Tt<20&&Kt>Tt||Tt>jn-20&&Kt<Tt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:Qo},z.createElement("div",{className:`markdown-editor-container ${Gi} ${Aa?"on-preview":""} ${et?"mini":""} ${Sr?"full-screen":""}`,style:$e},z.createElement(_e,{insertTemp:rn,watch:Aa,fullScreen:Sr,showNullButton:ur,showNullProgramButton:er,onActionCallback:Mi,hidetoolBar:Tn,extraUse:hi}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:Mo,placeholder:wi})),Aa?z.createElement("div",{ref:Fi,className:"preview-container"},In==="stex"&&z.createElement(me,{value:Ti}),In!=="stex"&&z.createElement(se.Z,{disabledFill:_o,showProgramFill:er,value:Ti})):null))),_r?z.createElement("a",{ref:mi,className:"editor-resize"}):null,lr===Br&&z.createElement(xn,{callback:pi,onCancel:St}),lr===qn&&z.createElement(Yt,{callback:pi,onCancel:St}),z.createElement(xe.Z,null,yn[lr]&&lr!==Br&&lr!==qn?z.createElement(lt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Nr,top:Wr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:$t},yn[lr]),open:!0,onCancel:St,footer:null,destroyOnClose:!0,width:lr===qn?"1200px":null,height:lr===qn?"80vh":null,className:"markdown-popup-form"},Pa):null))}},70859:function(at,We,te){"use strict";te.d(We,{Z:function(){return Se},I:function(){return xe}});var z=te(91773),fe=te(2453),Pe=te(11486),ve=te(93421),he=te(42405),pe=te(78045),ie=te(71577),de=te(15476),le=te(67294),ue=te(52262),se=te(67294),me=Object.defineProperty,re=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(we,Fe,Me)=>Fe in we?me(we,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Me}):we[Fe]=Me,x=(we,Fe)=>{for(var Me in Fe||(Fe={}))y.call(Fe,Me)&&b(we,Me,Fe[Me]);if(a)for(var Me of a(Fe))E.call(Fe,Me)&&b(we,Me,Fe[Me]);return we},ee=(we,Fe)=>re(we,ne(Fe));const{useForm:oe}=z.default,ae={width:280,marginRight:10},ce={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:we,onCancel:Fe})=>{const[Me]=oe();let ut=(0,le.useRef)();function Xe(De){ut.current.width=Me.getFieldValue("width"),ut.current.align=Me.getFieldValue("align"),we(De,ut.current)}function mt(De,Be){if(De.status===-1){fe.ZP.error(De.message);return}Me.setFieldsValue({src:`/api/attachments/${De.id}`,type:Be.type})}function Ae(De){let Be=De.target.files[0];ut.current=Be,xe(Be,mt)}return se.createElement(z.default,ee(x({form:Me},ce),{className:"upload-image-panel",onFinish:Xe,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(Pe.default,{style:ae})),se.createElement(_e,{onFileChange:Ae}))),se.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},se.createElement(Pe.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(he.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:Fe},"\u53D6\u6D88"))))};function _e({onFileChange:we}){return se.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",se.createElement("input",{type:"file",onChange:we}))}function xe(we,Fe){if(!we)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw fe.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",we),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var ut=new window.XMLHttpRequest;ut.withCredentials=!0,ut.addEventListener("load",function(Xe){Fe(JSON.parse(Xe.target.responseText),we)},!1),ut.addEventListener("error",function(Xe){console.error(Xe)},!1),ut.open("POST",`${de.KI}/api/attachments.json`),ut.send(Me)}},76621:function(at,We,te){"use strict";te.d(We,{Z:function(){return Pe}});var z=te(67294),fe=te(73935);class Pe extends z.Component{constructor(he){super(he);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:he}=this.props;return(0,fe.createPortal)(he,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(at,We,te){"use strict";var z=te(12867),fe=te(42563),Pe=te(47897),ve=te(67294);const he=fe.default.Option;We.Z=({isTheoretical:pe,onFontSizeChange:ie,cmFontSize:de,cmCodeMode:le,autoFormat:ue,onCodeModeChange:se,onTabToSpace:me,onAutoFormat:re,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x})=>{const ee={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(fe.default,{bordered:!1,size:"small",value:le,onChange:se},ve.createElement(he,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ve.createElement(he,{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(fe.default,{bordered:!1,size:"small",value:de,onChange:ie},ve.createElement(he,{value:12},"12px"),ve.createElement(he,{value:14},"14px"),ve.createElement(he,{value:16},"16px"),ve.createElement(he,{value:18},"18px"),ve.createElement(he,{value:20},"20px"),ve.createElement(he,{value:22},"22px"))),ve.createElement("div",{className:"file-item"},ve.createElement("b",null,"Tab\u8F6C\u6362"),ve.createElement(Pe.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,ee[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,te){"use strict";te.d(We,{Z:function(){return fe}});var z=te(67294);function fe(Pe,ve){const he=(0,z.useRef)();(0,z.useEffect)(()=>{he.current=Pe}),(0,z.useEffect)(()=>{function pe(){he.current()}if(ve!==null){let ie=setInterval(pe,ve);return()=>clearInterval(ie)}},[ve])}},72971:function(at,We,te){"use strict";te.d(We,{Im:function(){return we},ZP:function(){return Ae},gZ:function(){return Xe}});var z=te(67294),fe=te(11486),Pe=te(71577),ve=te(42922),he=te(53978),pe=te(94189),ie=te(19575),de=te(7621),le=te(85725),ue=te(28706),se=te(38658),me=te(12320),re=te(94184),ne=te.n(re),a=te(67294),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=(De,Be,nt)=>Be in De?y(De,Be,{enumerable:!0,configurable:!0,writable:!0,value:nt}):De[Be]=nt,ce=(De,Be)=>{for(var nt in Be||(Be={}))ee.call(Be,nt)&&ae(De,nt,Be[nt]);if(x)for(var nt of x(Be))oe.call(Be,nt)&&ae(De,nt,Be[nt]);return De},Se=(De,Be)=>E(De,b(Be));const{TextArea:_e}=fe.default,xe={visible:!1,tabIndex:"0"},we={[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 Fe=(De=>(De[De.SET_VISIBLE=0]="SET_VISIBLE",De[De.SET_TABINDEX=1]="SET_TABINDEX",De))(Fe||{});function Me(De,Be){switch(Be.type){case 0:return Se(ce({},De),{visible:Be.payload});case 1:return Se(ce({},De),{tabIndex:Be.payload});default:throw new Error}}function ut({value:De,className:Be}){const[nt,Ke]=(0,z.useState)(!1),Et=(0,z.useRef)(),Ct=(0,z.useRef)();return(0,z.useEffect)(()=>{nt&&(Ct.current.reset(),Ct.current.write((0,ue.pp)(De||"")))},[De,nt]),(0,z.useEffect)(()=>{var nn,on,it,lt;if(Et.current){Ct.current=new me.Terminal({fontSize:14,disableStdin:!0}),Ct.current.open(Et.current);const xt=Et.current.offsetWidth-14,Jt=((lt=(it=(on=(nn=Ct.current)==null?void 0:nn._core)==null?void 0:on._renderService)==null?void 0:it.dimensions)==null?void 0:lt.actualCellWidth)||9.5,Vt=Math.ceil(xt/Jt);Ct.current.resize(Vt,8),Ke(!0)}},[]),a.createElement("div",{ref:Et,className:ne()("XtermText-valueRef",Be)})}function Xe(De){const{status:Be,error_msg:nt,output:Ke,input:Et,expected_output:Ct,is_file:nn,input_file_url:on,output_file_url:it,expected_output_file_url:lt}=De;let xt=null;const Jt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Be){case pe.h.NOMATCH:xt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!nn&&a.createElement(ut,{className:"mb10",value:Et}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(on,Et)},Et)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!nn&&a.createElement(ut,{className:"mb10",value:Ke&&ie.Base64.decode(Ke)||""}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(it,Ke)},Ke)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!nn&&a.createElement(ut,{className:"mb10",value:Ct&&ie.Base64.decode(Ct)||""}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(lt,Ct)},Ct)));break;case pe.h.EXECUTEFAILURE:xt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!nn&&a.createElement(le.Z,{value:Et,style:Jt}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(on,Et)},Et)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.COMPILEFAILURE:xt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!nn&&a.createElement(le.Z,{value:Et,style:Jt}),nn&&a.createElement("div",{style:Jt},a.createElement("a",{onClick:()=>(0,ue.LR)(on,Et)},Et)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.PODFAILURE:xt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:xt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",xt," ")}function mt(De){const{status:Be,error_msg:nt,execute_time:Ke,output:Et,input:Ct,expected_output:nn,is_file:on,input_file_url:it,output_file_url:lt,expected_output_file_url:xt}=De;let Jt=null;switch(Be){case pe.h.OK:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ke,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(Et)));break;case pe.h.NOMATCH:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Ct)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",Et&&ie.Base64.decode(Et)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",nn&&ie.Base64.decode(nn)));break;case pe.h.EXECUTEFAILURE:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.COMPILEFAILURE:Jt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Ct)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(nt)));break;case pe.h.PODFAILURE:Jt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Jt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Jt," ")}var Ae=({id:De,is_file:Be,input:nt,debuging:Ke,submitting:Et,executingMessage:Ct,debugResult:nn,onChangeInput:on,onDebugCode:it,onSubmitCode:lt})=>{const[xt,Jt]=(0,z.useReducer)(Me,xe),{visible:Vt,tabIndex:xn}=xt;(0,z.useEffect)(()=>{Jt({type:0,payload:!1})},[De]);function He(Ln){let Gt=Ln.target.id;Jt({type:1,payload:Gt})}function un(){Jt({type:0,payload:!Vt})}const kn=(0,z.useMemo)(()=>{if(nn){const{status:Ln}=nn;return a.createElement(a.Fragment,null,mt(nn))}return null},[nn]);function nr(){Jt({type:0,payload:!0}),Jt({type:1,payload:"1"}),it()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Vt?"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:Be?"":nt,onChange:on}),rightNode:Ke?a.createElement(de.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):nn?kn: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 ${Vt?"up":""}`,onClick:un},Vt?a.createElement(ve.Z,null):a.createElement(he.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(Pe.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(Pe.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(Pe.ZP,{className:"btn-green",type:"ghost",loading:Ke,onClick:nr},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(Pe.ZP,{type:"primary",className:"custom-ant-disabled",loading:Et,disabled:Et,onClick:()=>{Jt({type:0,payload:!1}),lt()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},11624:function(at,We,te){"use strict";te.r(We),te.d(We,{default:function(){return Ds}});var z=te(67294),fe=te(53555),Pe=te(32693),ve=te(35973),he=te(55054),pe=te(2453),ie=te(14446),de=te(57953),le=te(42563),ue=te(33227),se=te(60076),me=te(11320),re=te(55304),ne=te(72565),a=te(36295),y=te(76621),E=te(40471),b=te(21434),x=te(67294),ee=Object.defineProperty,oe=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,xe=(Oe,je,Ge)=>je in Oe?ee(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,we=(Oe,je)=>{for(var Ge in je||(je={}))Se.call(je,Ge)&&xe(Oe,Ge,je[Ge]);if(ce)for(var Ge of ce(je))_e.call(je,Ge)&&xe(Oe,Ge,je[Ge]);return Oe},Fe=(Oe,je)=>oe(Oe,ae(je));const Me={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var ut=(Oe=>(Oe[Oe.set_font_size=0]="set_font_size",Oe[Oe.set_theme=1]="set_theme",Oe[Oe.on_tab_to_space=2]="on_tab_to_space",Oe[Oe.set_show_editor_setting=3]="set_show_editor_setting",Oe))(ut||{});function Xe(Oe,je){switch(je.type){case 3:return Fe(we({},Oe),{showEditorSetting:je.payload});case 1:return Fe(we({},Oe),{theme:je.payload});case 0:return Fe(we({},Oe),{fontSize:je.payload});case 2:return Fe(we({},Oe),{tabToSpace:je.payload});default:throw new Error}}var mt=({isLoading:Oe,value:je,onChange:Ge,language:vr,onUpdateCode:wn,ActionBarRender:en=En=>x.createElement(Ae,{onShowCodeSetting:En})})=>{const[En,Qt]=(0,z.useReducer)(Xe,Me),{theme:Sn,fontSize:Kn,showEditorSetting:Do,tabToSpace:Mr}=En,Io=(0,z.useRef)(),Hr=(0,z.useRef)(),bo={onFontSizeChange:Ho=>{Qt({type:0,payload:Ho}),(0,E.t)("cmFontSize",Ho)},tabToSpace:Mr,cmFontSize:Kn,className:"oj",cmCodeMode:Sn,onTabToSpace:Ho=>{Qt({type:2,payload:Ho}),(0,E.t)("cmTabToSpace",Ho)},onCodeModeChange:Ho=>{Qt({type:1,payload:Ho}),(0,E.t)("cmCodeMode",Ho)}};function Ir(){Qt({type:3,payload:!1})}function ea(){Qt({type:3,payload:!0})}const Lo={value:je,language:vr,theme:Sn,height:"calc(100% - 56px)",options:{fontSize:Kn,insertSpaces:Mr},onChange:Ho=>{Ge(Ho),Hr.current=Ho,clearTimeout(Io.current),Io.current=setTimeout(()=>{wn(Hr.current)},1e4)},onEditBlur:Ho=>{Hr.current&&wn(Hr.current)}};return x.createElement(z.Fragment,null,x.createElement("div",{className:"code-panel-container"},en(ea),!Oe&&x.createElement(a.ZP,we({},Lo))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Do,onClose:Ir},x.createElement(b.Z,we({},bo)))))};function Ae({onShowCodeSetting:Oe}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Oe},x.createElement("i",{className:"iconfont icon-shezhi"})))}var De=te(19575),Be=te(77969),nt=te(72971),Ke=te(11486),Et=te(91773),Ct=te(71577);const{TextArea:nn}=Ke.default,on=5e3;var it=({callback:Oe,onCancel:je,notes:Ge})=>{function vr(wn){Oe(wn)}return z.createElement(Et.default,{className:"note-form-panel",onFinish:vr,initialValues:{notes:Ge}},z.createElement(Et.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:on,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${on}`}]},z.createElement(nn,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),z.createElement(Et.default.Item,{style:{textAlign:"right"}},z.createElement(Ct.ZP,{type:"ghost",onClick:je,style:{marginRight:10}}," \u53D6\u6D88 "),z.createElement(Ct.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},lt={"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"},xt={pagination:"pagination___npPu7",info:"info___aRH6C"},Jt=te(86129),Vt=te(34435),xn=te(3407),He=te(87462),un={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"},kn=un,nr=te(43387),Ln=function(je,Ge){return z.createElement(nr.Z,(0,He.Z)({},je,{ref:Ge,icon:kn}))},Gt=z.forwardRef(Ln),Je=te(94189),Qe=te(28706),_t=te(27484),Rt=te.n(_t);const{Column:Yt}=Jt.default;var gt=({submitResult:Oe,submitting:je,submitRecords:Ge,page:vr,onPageChange:wn,topicId:en})=>{const{status:En,id:Qt,input:Sn,output:Kn,expected_output:Do,is_file:Mr,input_file_url:Io,output_file_url:Hr,expected_output_file_url:bo,error_msg:Ir}=Oe||{},{records:ea,records_count:Lo}=Ge||{},Ho=(0,ve.useParams)();function zo(){Mr?(0,Qe.vQ)(De.Base64.decode(Ir)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Qe.vQ)(De.Base64.decode(Kn)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return z.createElement(de.Z,{spinning:je,tip:"\u8BC4\u6D4B\u4E2D...",indicator:z.createElement(xn.Z,{style:{fontSize:24},spin:!0})},Qt?z.createElement(z.Fragment,null,z.createElement("ul",{className:xt.info},z.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",z.createElement("span",{className:En===Je.h.OK?"c-green":"c-red"},nt.Im[En])),z.createElement("li",{className:xt.error},z.createElement("a",{onClick:zo},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",z.createElement(Gt,null)," ")),z.createElement("li",null,z.createElement(ve.Link,{to:`/problems/${en}/record-detail/${Qt}?backId=${Ho==null?void 0:Ho.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),En!==Je.h.OK?z.createElement(z.Fragment,null,z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),z.createElement("pre",null,!Mr&&Sn,Mr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Qe.LR)(Io,Sn)},Sn)),z.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),z.createElement("pre",null,(En===4||En===5)&&De.Base64.decode(Ir),En!=4&&En!=5&&(Mr?z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Qe.LR)(Hr,Kn)},Kn):De.Base64.decode(Kn))),z.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),z.createElement("pre",null,!Mr&&De.Base64.decode(Do),Mr&&z.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Qe.LR)(bo,Do)},Do))):null):null,(ea==null?void 0:ea.length)>0?z.createElement(Jt.default,{dataSource:ea,rowKey:"id",pagination:!1},z.createElement(Yt,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(wr,li)=>z.createElement("span",null," ",Rt()(wr).format("YYYY-MM-DD HH:mm:ss"))}),z.createElement(Yt,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(wr,li)=>{var Vn;return z.createElement(ve.Link,{className:wr===0?"c-green":"c-red",to:`/problems/${en}/record-detail/${li.id}?backId=${Ho==null?void 0:Ho.save_identifier}`},(Vn=nt.Im[wr])==null?void 0:Vn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),z.createElement(Yt,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),z.createElement(Yt,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),z.createElement(Yt,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,Lo>15?z.createElement(Vt.Z,{className:xt.pagination,current:vr,pageSize:15,total:Lo,onChange:wn}):null)},wt=te(26194),Dt=te(66309),tt=te(93421),fn={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},hn=te(85725),$n=te(67294);const no={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var rt=({hack:Oe,onTriggerPraise:je,toDiscuss:Ge})=>{const{language:vr,difficulty:wn,time_limit:en,username:En,user_path:Qt,user_praise:Sn,comments_count:Kn,praises_count:Do,description:Mr,pass_count:Io,submit_count:Hr}=Oe,bo=(0,ve.useLocation)();console.log(Oe.language,"language");const Ir=no[wn];return $n.createElement($n.Fragment,null,$n.createElement("ul",{className:fn.info},$n.createElement("li",null,"\u96BE\u5EA6\uFF1A",$n.createElement(Dt.default,{color:Ir==null?void 0:Ir.color},Ir==null?void 0:Ir.name)),$n.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",$n.createElement("b",null,en,"\u79D2"))),$n.createElement(hn.Z,{value:Mr,className:fn.desc}),$n.createElement("ul",{className:fn["commit-info"]},$n.createElement("li",null,$n.createElement(tt.Z,{size:4},$n.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",$n.createElement("b",null,Io))),$n.createElement("li",null,$n.createElement(tt.Z,{size:4},$n.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",$n.createElement("b",null,Hr))," "),$n.createElement("li",{style:{flex:"1 0 0"}}),$n.createElement("li",null,$n.createElement(tt.Z,{size:4},$n.createElement("i",{className:"iconfont icon-huifu1",onClick:Ge})," ",$n.createElement("b",null,Kn))," ")))},vt=te(33054),An=Object.defineProperty,Zt=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Xt=(Oe,je,Ge)=>je in Oe?An(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,qn=(Oe,je)=>{for(var Ge in je||(je={}))yt.call(je,Ge)&&Xt(Oe,Ge,je[Ge]);if(Zt)for(var Ge of Zt(je))Nn.call(je,Ge)&&Xt(Oe,Ge,je[Ge]);return Oe};const Br=Oe=>React.createElement("svg",qn({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Oe),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 or="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",Gn=te(33170);function ir(Oe){return(0,Gn.U2)("comments.json",Oe)}function So(Oe){return(0,Gn.v_)(`/discusses/${Oe}/plus.json`,{container_type:"Discuss",type:1})}function On(Oe){return(0,Gn.v_)("comments/reply.json",Oe)}function qr(Oe){return(0,Gn.v_)("comments.json",Oe)}function Yo(Oe){return(0,Gn.v_)(`comments/${Oe==null?void 0:Oe.id}/hidden.json`,Oe)}function Zo(Oe){return(0,Gn.IV)(`comments/${Oe==null?void 0:Oe.id}.json`)}var qo=te(93989),yr=te(52262);function xo({author:Oe}){return z.createElement("a",{href:`/users/${Oe.login}`,target:"_blank"},z.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${me.Z.IMG_SERVER}/images/${Oe.image_url}`,width:"50"}))}function Wo({data:Oe,index:je,parentDiscussIndex:Ge,user:vr,onSetActionType:wn}){const{author:en,can_delete:En,content:Qt,id:Sn,time:Kn}=Oe;function Do(){wn({id:Sn,index:je,type:"delete-discuss",parentDiscussIndex:Ge,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Mr=vr.admin||En||en.user_id===vr.user_id;return z.createElement("div",{className:"discuss-item-container second-discuss "},z.createElement(xo,{author:en}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${en.login}`,target:"_blank"},en.name),z.createElement("span",{className:"grey"},Kn),z.createElement("div",{className:"btn-group",style:{marginBottom:0}},Mr?z.createElement("a",{onClick:Do,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null)),z.createElement(hn.Z,{className:"discuss-content",value:Qt})))}var Wi=({user:Oe,data:je,index:Ge,onPlusDiscuss:vr,onSetActionType:wn,activeDiscussIndex:en,onReplyDiscuss:En,onSetActiveDiscussIndex:Qt})=>{const{content:Sn,children:Kn,hidden:Do,id:Mr,praise_count:Io,time:Hr,user_praise:bo,can_delete:Ir,author:ea}=je;console.log(Ir&&(!Kn||Kn.length==0),"children22");function Lo(){Qt(Mr)}function Ho(){vr(Mr,!bo,Ge)}function zo(){wn({id:Mr,index:Ge,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function wr(){wn({id:Mr,index:Ge,params:{hidden:Do?"0":"1"},type:"hidden-discuss",message:Do?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const li=Oe.admin||Oe.user_id===ea.user_id;return z.createElement("div",{className:"discuss-item-container",key:Mr},z.createElement(xo,{author:ea}),z.createElement("section",null,z.createElement("div",{className:"discuss-info"},z.createElement("a",{href:`/users/${ea.login}`,target:"_blank"}," ",ea.name," "),z.createElement("span",{className:"grey"},Hr)),z.createElement(hn.Z,{className:"discuss-content",value:Sn}),Kn&&Kn.length>0?z.createElement("div",{className:"reply-discuss-container"},Kn.map((Vn,Di)=>z.createElement(Wo,{key:Vn.id,data:Vn,index:Di,user:Oe,onSetActionType:wn,parentDiscussIndex:Ge}))):null,z.createElement("div",{className:"btn-group"},(0,yr.Ny)()?z.createElement("a",{onClick:wr,title:Do?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},z.createElement("i",{className:Do?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Ir&&(!Kn||Kn.length==0)?z.createElement("a",{onClick:zo,title:"\u5220\u9664"},z.createElement("i",{className:"iconfont icon-shanchu"})):null,z.createElement("a",{onClick:Lo,title:"\u56DE\u590D"}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," "),z.createElement("a",{onClick:Ho,className:bo?"c-orange":""},z.createElement("i",{className:bo?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),z.createElement("span",null,Io||""))),z.createElement(qo.Z,{id:Mr,activeDiscussIndex:en,onReplyDiscuss:En})))},$i=te(30676),Ci=te(35567),ei=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),po=({user_praise:Oe,praise_count:je,praisePlus:Ge,onCreateDiscuss:vr,discuss_count:wn})=>{const[en,En]=(0,z.useState)(!1),[Qt,Sn]=(0,z.useState)("");function Kn(Hr){Sn(Hr)}function Do(){En(!0)}function Mr(){En(!1)}function Io(){return ei(this,null,function*(){vr(Qt),Sn(""),En(!1)})}return z.createElement("div",{className:`dis-input-editor-container ${en?"active":""} `},z.createElement("div",{className:en?"text-area hide":"text-area"},z.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Do}),z.createElement("a",{style:{alignItems:"center"}}," ",z.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",wn," "),z.createElement("a",{className:"c-light-black",onClick:Ge,style:{alignItems:"center"},title:Oe?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},z.createElement("i",{className:`mr3 ${Oe?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),je?z.createElement("span",null,je):"")),en?z.createElement("div",{className:"input-mask",onClick:Mr}):null,z.createElement("div",{className:en?"md-container":"md-container hide"},z.createElement(Ci.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:Qt,height:240,onChange:Kn}),z.createElement("div",{className:"tip-container",onClick:Mr},z.createElement("a",{className:"btn-send",onClick:Io}," \u53D1\u9001 "))))},co=Object.defineProperty,Ta=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Le=(Oe,je,Ge)=>je in Oe?co(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Ne=(Oe,je)=>{for(var Ge in je||(je={}))ye.call(je,Ge)&&Le(Oe,Ge,je[Ge]);if(ge)for(var Ge of ge(je))be.call(je,Ge)&&Le(Oe,Ge,je[Ge]);return Oe},et=(Oe,je)=>Ta(Oe,yn(je)),ct=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())});const _n={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var rn=(Oe=>(Oe[Oe.GET_DISCUSSES=0]="GET_DISCUSSES",Oe[Oe.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Oe[Oe.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Oe[Oe.PLUS_DISCUSS=3]="PLUS_DISCUSS",Oe[Oe.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Oe[Oe.SET_PAGE=5]="SET_PAGE",Oe[Oe.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Oe))(rn||{});function In(Oe,je){switch(je.type){case 6:return et(Ne({},Oe),{loading:!0});case 0:return Ne(Ne({},Oe),je.payload);case 1:return Ne(Ne({},Oe),je.payload);case 4:return Ne(Ne({},Oe),je.payload);case 3:return Ne(Ne({},Oe),je.payload);case 5:return Ne(Ne({},Oe),je.payload);case 2:return Ne(Ne({},Oe),je.payload);default:throw new Error}}var pr=({user:Oe,identifier:je,hack:Ge,onTriggerPraise:vr,setDiscussTotal:wn})=>{const[en,En]=(0,z.useReducer)(In,_n),{loading:Qt,page:Sn,data:Kn,count:Do,actionType:Mr,activeDiscussIndex:Io}=en;console.log("---",en);const Hr=(0,z.useCallback)(()=>ct(void 0,null,function*(){En({type:6});const Vn=yield ir({container_type:"Practice",container_identifier:je,limit:10,page:Sn}),{comments:Di,disscuss_count:Jo}=Vn;En({type:0,payload:{data:Di,count:Jo,loading:!1}}),wn(Jo)}),[Sn,je]);(0,z.useEffect)(()=>{Hr()},[je,Sn]);function bo(Vn){En({type:5,payload:{page:Vn}})}function Ir(Vn){En({type:4,payload:{actionType:Vn}})}function ea(Vn){En(Io===Vn?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Vn}})}function Lo(Vn,Di,Jo){return ct(this,null,function*(){try{const ha=yield So(Vn);Kn[Jo].user_praise=Di,Kn[Jo].praise_count=ha.praise_count,En({type:3,payload:{data:[...Kn]}})}catch(ha){console.log(ha)}})}function Ho(){return ct(this,null,function*(){const{id:Vn,params:Di,type:Jo,index:ha,parentDiscussIndex:Ma}=Mr;Jo==="hidden-discuss"&&(console.log(Di,"params"),yield Yo(Ne({id:Vn,container_type:"Practice",container_identifier:je},Di)),Ma?Kn[Ma].children[ha].hidden=Di.hidden==1:Kn[ha].hidden=Di.hidden==1,En({type:4,payload:{actionType:null,data:[...Kn]}})),Jo==="delete-discuss"&&(yield Zo({id:Vn,container_type:"Practice",container_identifier:je}),En({type:4,payload:{actionType:null}}),yield Hr())})}function zo(){En({type:4,payload:{actionType:null}})}function wr(Vn,Di){return ct(this,null,function*(){try{yield On({container_type:"Practice",container_identifier:je,comments:{content:Di,parent_id:Vn}}),Hr()}catch(Jo){console.log(Jo)}})}function li(Vn){return ct(this,null,function*(){En({type:6}),yield qr({comments:{content:Vn},container_type:"Practice",container_identifier:je}),Hr()})}return z.createElement(z.Fragment,null,z.createElement("div",{className:"discuss-panel"},Kn.length===0?z.createElement(wt.Z,null):z.createElement(de.Z,{spinning:Qt},Kn.map((Vn,Di)=>z.createElement(Wi,{onReplyDiscuss:wr,onPlusDiscuss:Lo,onSetActiveDiscussIndex:ea,onSetActionType:Ir,data:Vn,index:Di,user:Oe,activeDiscussIndex:Io}))),Do>10?z.createElement("div",{className:"pagination-container mt10 mb10"},z.createElement(Vt.Z,{showQuickJumper:!0,onChange:bo,current:Sn,total:Do,showTotal:Vn=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},Vn),"\u6761\u6570\u636E")})):null),z.createElement(po,{user_praise:Ge.user_praise,praise_count:Ge.praises_count,praisePlus:vr,discuss_count:Ge.comments_count,onCreateDiscuss:li}),z.createElement(y.Z,null,z.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!Mr,onOk:Ho,onCancel:zo},z.createElement("p",null,Mr?Mr.message:"")),z.createElement($i.Z,null)))},_r={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"},Mt={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"},ur=Object.defineProperty,er=Object.getOwnPropertySymbols,Tn=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,sr=(Oe,je,Ge)=>je in Oe?ur(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Zr=(Oe,je)=>{for(var Ge in je||(je={}))Tn.call(je,Ge)&&sr(Oe,Ge,je[Ge]);if(er)for(var Ge of er(je))Un.call(je,Ge)&&sr(Oe,Ge,je[Ge]);return Oe};const xr=Oe=>React.createElement("svg",Zr({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Oe),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 Gi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Xo=Object.defineProperty,br=Object.getOwnPropertySymbols,_o=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,ti=(Oe,je,Ge)=>je in Oe?Xo(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,hi=(Oe,je)=>{for(var Ge in je||(je={}))_o.call(je,Ge)&&ti(Oe,Ge,je[Ge]);if(br)for(var Ge of br(je))wi.call(je,Ge)&&ti(Oe,Ge,je[Ge]);return Oe};const pn=Oe=>React.createElement("svg",hi({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Oe),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 Ya="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Ti=Object.defineProperty,Bo=Object.getOwnPropertySymbols,Aa=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Sr=(Oe,je,Ge)=>je in Oe?Ti(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Kr=(Oe,je)=>{for(var Ge in je||(je={}))Aa.call(je,Ge)&&Sr(Oe,Ge,je[Ge]);if(Bo)for(var Ge of Bo(je))Bn.call(je,Ge)&&Sr(Oe,Ge,je[Ge]);return Oe};const lr=Oe=>React.createElement("svg",Kr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Oe),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 ci="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",Li=Object.defineProperty,ra=Object.getOwnPropertySymbols,Oa=Object.prototype.hasOwnProperty,$a=Object.prototype.propertyIsEnumerable,ft=(Oe,je,Ge)=>je in Oe?Li(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,dt=(Oe,je)=>{for(var Ge in je||(je={}))Oa.call(je,Ge)&&ft(Oe,Ge,je[Ge]);if(ra)for(var Ge of ra(je))$a.call(je,Ge)&&ft(Oe,Ge,je[Ge]);return Oe};const zt=Oe=>React.createElement("svg",dt({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Oe),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 qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Mn=Object.defineProperty,Nr=Object.getOwnPropertySymbols,Tr=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,uo=(Oe,je,Ge)=>je in Oe?Mn(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Mo=(Oe,je)=>{for(var Ge in je||(je={}))Tr.call(je,Ge)&&uo(Oe,Ge,je[Ge]);if(Nr)for(var Ge of Nr(je))Wr.call(je,Ge)&&uo(Oe,Ge,je[Ge]);return Oe};const Qo=Oe=>React.createElement("svg",Mo({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Oe),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 mi="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",oa=({style:Oe={},onClick:je,onAssist:Ge,onHide:vr,data:wn,active:en,showLine:En})=>z.createElement(z.Fragment,null,z.createElement("div",{className:en===(wn==null?void 0:wn.id)?`${Mt.list} ${Mt.active}`:Mt.list,style:Oe,onClick:()=>je(wn)},(wn==null?void 0:wn.video)&&z.createElement("div",{className:Mt.left},z.createElement("img",{src:wn==null?void 0:wn.video_cover}),z.createElement("div",null,z.createElement("img",{src:Gi}),z.createElement("span",null,wn==null?void 0:wn.video_duration)),z.createElement("div",{className:Mt.mask})),z.createElement("div",{className:Mt.right},z.createElement("div",{className:Mt.name},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(wn==null?void 0:wn.image_url),width:30,height:30}),z.createElement("div",{title:wn==null?void 0:wn.name,className:Mt.title},wn==null?void 0:wn.name),(wn==null?void 0:wn.is_authority)&&z.createElement("div",{className:Mt.b},"\u5B98\u65B9"),(wn==null?void 0:wn.is_excellent)&&z.createElement("div",{className:Mt.a},"\u7CBE\u9009")),z.createElement("div",{className:Mt.des},z.createElement(hn.Z,{showLines:2,showTextOnly:!0,value:(wn==null?void 0:wn.content)||"\u6682\u65E0\u5185\u5BB9"})),z.createElement("div",{className:Mt.tag},z.createElement("span",{className:"current",onClick:Qt=>{Qt.stopPropagation(),Ge(wn)}},z.createElement("img",{src:wn!=null&&wn.user_liker?ci:Ya}),z.createElement("span",{style:{color:wn!=null&&wn.user_liker?"#0152d9":"#656f87"}},wn==null?void 0:wn.praises_count)),z.createElement("span",null,z.createElement("img",{src:qt}),z.createElement("span",null,wn==null?void 0:wn.discusses_count)),z.createElement("span",null,z.createElement("img",{src:mi}),z.createElement("span",null,wn==null?void 0:wn.viewed_count)),(0,yr.Ny)()&&z.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:Qt=>{Qt.stopPropagation(),vr(wn)}},wn!=null&&wn.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),En&&z.createElement("div",{className:Mt.line})),vo={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"},yi=te(83062),Mi=Object.defineProperty,pi=Object.getOwnPropertySymbols,Pa=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Lt=(Oe,je,Ge)=>je in Oe?Mi(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,jt=(Oe,je)=>{for(var Ge in je||(je={}))Pa.call(je,Ge)&&Lt(Oe,Ge,je[Ge]);if(pi)for(var Ge of pi(je))St.call(je,Ge)&&Lt(Oe,Ge,je[Ge]);return Oe};const $e=Oe=>React.createElement("svg",jt({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Oe),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 Wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",bn=Object.defineProperty,Rn=Object.getOwnPropertySymbols,Nt=Object.prototype.hasOwnProperty,$t=Object.prototype.propertyIsEnumerable,It=(Oe,je,Ge)=>je in Oe?bn(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Ft=(Oe,je)=>{for(var Ge in je||(je={}))Nt.call(je,Ge)&&It(Oe,Ge,je[Ge]);if(Rn)for(var Ge of Rn(je))$t.call(je,Ge)&&It(Oe,Ge,je[Ge]);return Oe};const Tt=Oe=>React.createElement("svg",Ft({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Oe),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 Ht="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Kt=Object.defineProperty,jn=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,Cn=(Oe,je,Ge)=>je in Oe?Kt(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,dr=(Oe,je)=>{for(var Ge in je||(je={}))tr.call(je,Ge)&&Cn(Oe,Ge,je[Ge]);if(jn)for(var Ge of jn(je))Pr.call(je,Ge)&&Cn(Oe,Ge,je[Ge]);return Oe};const ze=Oe=>React.createElement("svg",dr({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Oe),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 ke="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",qe=te(95235),bt=Object.defineProperty,kt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,cn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,vn=(Oe,je,Ge)=>je in Oe?bt(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Zn=(Oe,je)=>{for(var Ge in je||(je={}))an.call(je,Ge)&&vn(Oe,Ge,je[Ge]);if(cn)for(var Ge of cn(je))mn.call(je,Ge)&&vn(Oe,Ge,je[Ge]);return Oe},Hn=(Oe,je)=>kt(Oe,Ut(je)),gr=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),Cr=({onClose:Oe,onOk:je,identifier:Ge,active:vr})=>{var wn,en;const[En]=Et.default.useForm(),[Qt,Sn]=(0,z.useState)({}),[Kn,Do]=(0,z.useState)(!1),[Mr,Io]=(0,z.useState)(!1),[Hr,bo]=(0,z.useState)([]),Ir=(0,yr.eY)(),ea=(0,ve.useParams)(),Lo=(0,z.useRef)();(0,z.useEffect)(()=>{vr&&Ho()},[vr]);const Ho=()=>gr(void 0,null,function*(){var $r,Ro,gi,$o,zs,vs,Cs,Rs,ws,cs;const ro=yield(0,ue.M3)(Ge,{active:vr});if((ro==null?void 0:ro.status)===0){const Si={name:($r=ro==null?void 0:ro.data)==null?void 0:$r.name,content:(Ro=ro==null?void 0:ro.data)==null?void 0:Ro.content};En.setFieldsValue(Si),Sn(Si),($o=(gi=ro==null?void 0:ro.data)==null?void 0:gi.videos)!=null&&$o[0]&&bo([{video_id:(Cs=(vs=(zs=ro==null?void 0:ro.data)==null?void 0:zs.videos)==null?void 0:vs[0])==null?void 0:Cs.video_id,name:(cs=(ws=(Rs=ro==null?void 0:ro.data)==null?void 0:Rs.videos)==null?void 0:ws[0])==null?void 0:cs.title,loaded:100}])}}),zo=($r,Ro)=>{Sn(Zn({},Ro))},wr=$r=>gr(void 0,null,function*(){const Ro={videos:Hr,articles:$r};Io(!0);let gi;vr?(Ro.active=vr,gi=yield(0,ue.gu)(Ge,Ro)):gi=yield(0,ue.bx)(Ge,Ro),(gi==null?void 0:gi.status)===0&&(console.log(vr||(gi==null?void 0:gi.id),44),je(vr||(gi==null?void 0:gi.id))),Io(!1)}),li=($r,Ro)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:z.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Ro?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Ro?bo([]):(Lo.current.cancel(),bo([]))}})},Vn=()=>z.createElement(qe.Z,Hn(Zn({},ca),{ref:Lo}),z.createElement("div",{className:vo.main},z.createElement("img",{src:Wt,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),Di=$r=>z.createElement("div",{className:vo.mainLoading},z.createElement("div",{className:vo.proWarp},z.createElement("div",{className:vo.pro},z.createElement("div",{style:{width:$r}})),z.createElement("span",null,$r||0,"%")),z.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),z.createElement("div",{className:vo.tip},z.createElement(yi.Z,{getPopupContainer:Ro=>Ro.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:ke,alt:""})))),Jo=$r=>z.createElement("div",{className:vo.mainSucceed},z.createElement("img",{src:Ht,alt:""}),z.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),z.createElement("div",{className:vo.tip},z.createElement(yi.Z,{getPopupContainer:Ro=>Ro.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:ke,alt:""}))),z.createElement("div",{className:vo.del,onClick:()=>li($r.name,$r.loaded==100)},z.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),ha=()=>z.createElement(z.Fragment,null,Hr==null?void 0:Hr.map(($r,Ro)=>z.createElement(z.Fragment,{key:Ro},$r.loaded==100?Jo($r):Di($r.loaded)))),Ma=()=>{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:Oe})},ca={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:$r=>{const gi=$r.name.toLowerCase();return gi&&gi.indexOf(".avi")==-1&&gi.indexOf(".flv")==-1&&gi.indexOf(".f4v")==-1&&gi.indexOf(".m4v")==-1&&gi.indexOf(".mov")==-1&&gi.indexOf(".mp4")==-1&&gi.indexOf(".rmvb")==-1&&gi.indexOf(".swf")==-1&&gi.indexOf(".webm")==-1&&gi.indexOf(".wmv")==-1?(pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):$r.size>1024*1024*1024?(pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Hr!=null&&Hr.find($o=>$o.name===$r.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:$r=>{bo([{name:$r.filename,loaded:0}])},onComplete:$r=>{bo([{name:$r.filename,loaded:$r.percent,video_id:$r.id}])},onError:()=>{bo([])},onProgress:$r=>{bo([{name:$r.filename,loaded:$r.percent}])},chunkSize:1024*1024*2,options:{user_id:(wn=Ir==null?void 0:Ir.userInfo)==null?void 0:wn.user_id}},oi=Hr==null?void 0:Hr.length;return z.createElement("div",{className:vo.listForm},z.createElement("header",null,vr?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),z.createElement("section",{className:vo.scroll,id:"sss"},z.createElement("div",{className:vo.formWrap}," ",z.createElement(Et.default,{form:En,scrollToFirstError:!0,layout:"vertical",onValuesChange:zo,onFinish:wr},z.createElement(Et.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(Ke.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((en=Qt.name)==null?void 0:en.length)||0}/60`})),z.createElement(Et.default.Item,{name:"content",label:"\u5185\u5BB9:"},z.createElement(Ci.Z,{defaultValue:Qt.content||"",watch:!0})))),z.createElement("div",{className:vo.upload},oi?ha():Vn())),z.createElement("div",{className:vo.btns},z.createElement(Ct.ZP,{onClick:Ma,type:"primary",ghost:!0},"\u5173\u95ED"),z.createElement(Ct.ZP,{loading:Mr,disabled:Kn,onClick:()=>En.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Or={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"},so=te(4310),Co=Object.defineProperty,kr=Object.getOwnPropertySymbols,To=Object.prototype.hasOwnProperty,mo=Object.prototype.propertyIsEnumerable,Oo=(Oe,je,Ge)=>je in Oe?Co(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,ki=(Oe,je)=>{for(var Ge in je||(je={}))To.call(je,Ge)&&Oo(Oe,Ge,je[Ge]);if(kr)for(var Ge of kr(je))mo.call(je,Ge)&&Oo(Oe,Ge,je[Ge]);return Oe};const ma=Oe=>React.createElement("svg",ki({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Oe),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 vi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",ia=Object.defineProperty,ai=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,Ki=Object.prototype.propertyIsEnumerable,aa=(Oe,je,Ge)=>je in Oe?ia(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Xi=(Oe,je)=>{for(var Ge in je||(je={}))Ea.call(je,Ge)&&aa(Oe,Ge,je[Ge]);if(ai)for(var Ge of ai(je))Ki.call(je,Ge)&&aa(Oe,Ge,je[Ge]);return Oe};const Ga=Oe=>React.createElement("svg",Xi({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Oe),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 xa="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",da=Object.defineProperty,Fo=Object.getOwnPropertySymbols,ni=Object.prototype.hasOwnProperty,mr=Object.prototype.propertyIsEnumerable,Ca=(Oe,je,Ge)=>je in Oe?da(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Xa=(Oe,je)=>{for(var Ge in je||(je={}))ni.call(je,Ge)&&Ca(Oe,Ge,je[Ge]);if(Fo)for(var Ge of Fo(je))mr.call(je,Ge)&&Ca(Oe,Ge,je[Ge]);return Oe};const Oi=Oe=>React.createElement("svg",Xa({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Oe),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 ji="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",wa={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"},Ii=te(71230),_i=te(15746),bi={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"},Za=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())});const Ai=({id:Oe,cb:je})=>{const[Ge,vr]=(0,z.useState)("");return z.createElement("aside",{className:"mt10"},z.createElement(Ci.Z,{defaultValue:Ge,id:"writeForumsReviewId",onChange:wn=>{vr(wn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(Ii.Z,null,z.createElement(_i.Z,{flex:"1"}),z.createElement(_i.Z,null,z.createElement(Ct.ZP,{type:"primary",size:"middle",onClick:()=>Za(void 0,null,function*(){Ge===""?pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):je(Oe,Ge)})},"\u53D1\u9001"))))},Bi=({data:Oe})=>{var je;return z.createElement("div",{className:bi.thirdlyLevelDiscuss},z.createElement("span",{className:"c-grey-333"},z.createElement("span",{className:"font 14 c-light-primary"},(je=Oe==null?void 0:Oe.author)==null?void 0:je.name),"@",z.createElement("span",{className:"font 14 c-light-primary"},Oe==null?void 0:Oe.parent_name),":"),z.createElement(hn.Z,{value:Oe==null?void 0:Oe.content}))},pa=({data:Oe,onReplyDiscuss:je,thirdlyReply:Ge,setThirdlyReply:vr})=>{var wn,en,En,Qt;const Sn=(0,yr.eY)();return console.log(Sn,"user"),z.createElement("div",{className:bi.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((wn=Oe==null?void 0:Oe.author)==null?void 0:wn.image_url)}),z.createElement("div",{className:bi.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333"},(en=Oe==null?void 0:Oe.author)==null?void 0:en.name),(Sn==null?void 0:Sn.login)!==((En=Oe==null?void 0:Oe.author)==null?void 0:En.login)&&z.createElement("span",{onClick:()=>vr(Oe==null?void 0:Oe.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(hn.Z,{value:Oe==null?void 0:Oe.content}),(Qt=Oe==null?void 0:Oe.children)==null?void 0:Qt.map(Kn=>z.createElement(Bi,{key:Kn.id,data:Kn})),Ge===(Oe==null?void 0:Oe.id)&&z.createElement("div",null,z.createElement(Ai,{id:Oe==null?void 0:Oe.id,cb:je}),z.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>vr(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:bi.line})))};var Fs=({data:Oe,onReplyDiscuss:je,secondReply:Ge,setSecondReply:vr,thirdlyReply:wn,setThirdlyReply:en,onPlusDiscuss:En})=>{var Qt,Sn,Kn,Do;const[Mr,Io]=(0,z.useState)(!1);return console.log(Oe,"data"),z.createElement("div",{className:bi.discussItem},z.createElement("div",{className:bi.list},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+((Qt=Oe==null?void 0:Oe.author)==null?void 0:Qt.image_url)}),z.createElement("div",{className:bi.wrap},z.createElement("div",{className:"font14",style:{marginBottom:6}},z.createElement("span",{className:"c-grey-333 mr30"},(Sn=Oe==null?void 0:Oe.author)==null?void 0:Sn.name),z.createElement("span",{className:"c-grey-999"},Oe==null?void 0:Oe.time)),z.createElement(hn.Z,{value:Oe==null?void 0:Oe.content}),z.createElement("div",{className:bi.btns},z.createElement("div",{onClick:()=>En(Oe==null?void 0:Oe.id),className:Oe!=null&&Oe.user_praise?"c-light-primary":"c-grey-999"},z.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),z.createElement("span",null,Oe==null?void 0:Oe.praise_count)),z.createElement("div",{onClick:()=>{var Hr;((Hr=Oe==null?void 0:Oe.children)==null?void 0:Hr.length)!==0&&(vr(null),Io(!Mr))},style:{color:Mr?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),z.createElement("span",null,Mr?"\u6536\u8D77\u8BC4\u8BBA":(Kn=Oe==null?void 0:Oe.children)==null?void 0:Kn.length)),z.createElement("div",{onClick:()=>{Io(!1),vr(Ge===(Oe==null?void 0:Oe.id)?null:Oe==null?void 0:Oe.id)},style:{color:Ge===(Oe==null?void 0:Oe.id)?"#0152d9":"#999999"}},z.createElement("i",{className:"iconfont icon-huifu3 mr3"}),z.createElement("span",null,Ge===(Oe==null?void 0:Oe.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Ge===(Oe==null?void 0:Oe.id)&&z.createElement(Ai,{id:Oe==null?void 0:Oe.id,cb:(Hr,bo)=>{je(Hr,bo),Io(!0)}}),Mr&&z.createElement("div",{className:bi.secondLevelDiscuss},(Do=Oe==null?void 0:Oe.children)==null?void 0:Do.map(Hr=>z.createElement(pa,{thirdlyReply:wn,setThirdlyReply:en,key:Hr.id,data:Hr,onReplyDiscuss:je}))))))},bs=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),hs=({identifier:Oe,active:je,onOk:Ge})=>{const[vr,wn]=(0,z.useState)(""),[en,En]=(0,z.useState)(1),[Qt,Sn]=(0,z.useState)([]),[Kn,Do]=(0,z.useState)(0),[Mr,Io]=(0,z.useState)(null),[Hr,bo]=(0,z.useState)(null);(0,z.useEffect)(()=>{Ir(1),En(1)},[je]);const Ir=wr=>bs(void 0,null,function*(){const li=yield ir({container_type:"QuestionSolutionArticle",container_identifier:je,limit:5,page:wr});li!=null&&li.comments&&(Sn((li==null?void 0:li.comments)||[]),En(wr),Do(li==null?void 0:li.disscuss_count))}),ea=()=>bs(void 0,null,function*(){if(vr===""){pe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const wr=yield qr({comments:{content:vr},container_type:"QuestionSolutionArticle",container_identifier:je});wr!=null&&wr.discuss&&(wn(""),Ir(en),Ge())}),Lo=(wr,li,Vn)=>bs(void 0,null,function*(){const Di=yield On({container_type:"QuestionSolutionArticle",container_identifier:je,comments:{content:li,parent_id:wr}});Io(null),bo(null),Ir(en)}),Ho=wr=>bs(void 0,null,function*(){const li=yield So(wr);Ir(en)}),zo=wr=>{En(wr),Ir(wr)};return z.createElement("div",{className:wa.discuss},z.createElement("aside",{className:wa.reply,style:{borderWidth:Kn?1:0}},z.createElement(Ci.Z,{defaultValue:vr,id:"writeForumsReviewId",onChange:wr=>{wn(wr)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),z.createElement(Ii.Z,null,z.createElement(_i.Z,{flex:"1"}),z.createElement(_i.Z,null,z.createElement(Ct.ZP,{type:"primary",size:"middle",onClick:()=>ea()},"\u53D1\u9001")))),Qt==null?void 0:Qt.map(wr=>z.createElement(Fs,{secondReply:Mr,setSecondReply:Io,thirdlyReply:Hr,setThirdlyReply:bo,key:wr.id,data:wr,onReplyDiscuss:Lo,onPlusDiscuss:Ho})),z.createElement(Vt.Z,{className:wa.pagination,showTotal:wr=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},wr),"\u6761\u6570\u636E"),current:en,onChange:zo,total:Kn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},qa=te(6104),os=Object.defineProperty,Ps=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,sl=Object.prototype.propertyIsEnumerable,rl=(Oe,je,Ge)=>je in Oe?os(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Gs=(Oe,je)=>{for(var Ge in je||(je={}))Es.call(je,Ge)&&rl(Oe,Ge,je[Ge]);if(Ps)for(var Ge of Ps(je))sl.call(je,Ge)&&rl(Oe,Ge,je[Ge]);return Oe},ks=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),Ks=({active:Oe,identifier:je,onAssist:Ge,onEdit:vr,onArticlesSkip:wn,onClose:en,onOk:En,onDelete:Qt,detailsIndex:Sn,btnShowStatus:Kn})=>{var Do,Mr,Io,Hr,bo,Ir,ea,Lo,Ho,zo;const[wr,li]=(0,z.useState)(!0),[Vn,Di]=(0,z.useState)({});(0,z.useEffect)(()=>{Oe&&Jo()},[Oe,Sn]);const Jo=(oi=!0)=>ks(void 0,null,function*(){oi&&li(!0);const $r=yield(0,ue.wO)(je,{active:Oe});($r==null?void 0:$r.status)===0&&Di(($r==null?void 0:$r.data)||{}),li(!1)}),ha=oi=>ks(void 0,null,function*(){const $r=yield(0,ue.qe)(je,Gs({active:Oe},oi));($r==null?void 0:$r.status)===0&&(Jo(!1),En())}),Ma=oi=>ks(void 0,null,function*(){(yield(0,ue.Rg)(je,{active:oi==null?void 0:oi.id})).status===0&&(Jo(!1),En())}),Lr=oi=>{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:()=>Qt(oi)})},ca=()=>{Jo(!1),En()};return z.createElement("div",{className:Or.listDetails},z.createElement(so.Z,{className:"pt20 pl20 pr20",loading:wr,active:!0,paragraph:{rows:5}},z.createElement("div",{className:Or.head},z.createElement("div",{className:Or.name},z.createElement("div",{title:Vn==null?void 0:Vn.name,className:Or.title},Vn==null?void 0:Vn.name),(Vn==null?void 0:Vn.is_authority)&&z.createElement("div",{className:Or.b},"\u5B98\u65B9"),(Vn==null?void 0:Vn.is_excellent)&&z.createElement("div",{className:Or.a},"\u7CBE\u9009")),z.createElement("div",{className:Or.tag},z.createElement("img",{src:me.Z.IMG_SERVER+"/images/"+(Vn==null?void 0:Vn.image_url)}),z.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Vn==null?void 0:Vn.username),z.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Rt()(Vn==null?void 0:Vn.created_at).format("YYYY-MM-DD")),z.createElement("span",null,z.createElement("img",{src:Ya}),z.createElement("span",null,Vn==null?void 0:Vn.praises_count)),z.createElement("span",null,z.createElement("img",{src:qt}),z.createElement("span",null,Vn==null?void 0:Vn.discusses_count)),z.createElement("span",null,z.createElement("img",{src:mi}),z.createElement("span",null,Vn==null?void 0:Vn.viewed_count)),z.createElement("div",{className:Or.btn},((0,yr.Ny)()||(Vn==null?void 0:Vn.is_self))&&z.createElement(z.Fragment,null,z.createElement(Ct.ZP,{onClick:()=>Lr(Vn),type:"primary",ghost:!0},"\u5220\u9664"),z.createElement(Ct.ZP,{onClick:()=>vr(Vn),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,yr.Ny)()&&z.createElement(Ct.ZP,{onClick:()=>ha({is_authority:!(Vn!=null&&Vn.is_authority)}),type:"primary"},z.createElement("img",{src:xa}),Vn!=null&&Vn.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,yr.Ny)()&&z.createElement(Ct.ZP,{onClick:()=>ha({is_excellent:!(Vn!=null&&Vn.is_excellent)}),type:"primary"},z.createElement("img",{src:vi}),Vn!=null&&Vn.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),z.createElement("div",{className:Or.scroll},((Mr=(Do=Vn==null?void 0:Vn.videos)==null?void 0:Do[0])==null?void 0:Mr.id)&&z.createElement("div",{className:Or.video},z.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Hr=(Io=Vn==null?void 0:Vn.videos)==null?void 0:Io[0])!=null&&Hr.transcoded)},z.createElement(qa.Z,{poster:(Ir=(bo=Vn==null?void 0:Vn.videos)==null?void 0:bo[0])==null?void 0:Ir.cover_url,src:((Lo=(ea=Vn==null?void 0:Vn.videos)==null?void 0:ea[0])==null?void 0:Lo.play_url)||"",videoId:(zo=(Ho=Vn==null?void 0:Vn.videos)==null?void 0:Ho[0])==null?void 0:zo.id,logWatchHistory:()=>{}}))),z.createElement(hn.Z,{className:Or.html,value:(Vn==null?void 0:Vn.content)||""}),z.createElement("div",{onClick:()=>Ma(Vn),className:Or.g},z.createElement("img",{className:"mr10",src:(Vn!=null&&Vn.user_liker,ji)}),z.createElement("span",null,Vn==null?void 0:Vn.praises_count)),z.createElement(hs,{onOk:ca,active:Oe,identifier:je})),z.createElement("div",{className:Or.btns},z.createElement(Ct.ZP,{onClick:()=>en(),type:"primary",ghost:!0},"\u5173\u95ED"),Kn[0]&&z.createElement(Ct.ZP,{onClick:oi=>wn(oi,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),Kn[1]&&z.createElement(Ct.ZP,{onClick:oi=>wn(oi,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},js=Object.defineProperty,Ms=Object.getOwnPropertySymbols,Vs=Object.prototype.hasOwnProperty,qs=Object.prototype.propertyIsEnumerable,Ie=(Oe,je,Ge)=>je in Oe?js(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,Ve=(Oe,je)=>{for(var Ge in je||(je={}))Vs.call(je,Ge)&&Ie(Oe,Ge,je[Ge]);if(Ms)for(var Ge of Ms(je))qs.call(je,Ge)&&Ie(Oe,Ge,je[Ge]);return Oe};const Ye=Oe=>React.createElement("svg",Ve({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Oe),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 pt="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Bt=te(28575),sn=te(33463),dn=Object.defineProperty,Dn=Object.defineProperties,Pn=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Qn=Object.prototype.propertyIsEnumerable,zr=(Oe,je,Ge)=>je in Oe?dn(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,fr=(Oe,je)=>{for(var Ge in je||(je={}))jr.call(je,Ge)&&zr(Oe,Ge,je[Ge]);if(Jn)for(var Ge of Jn(je))Qn.call(je,Ge)&&zr(Oe,Ge,je[Ge]);return Oe},eo=(Oe,je)=>Dn(Oe,Pn(je)),ko=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),ri=({identifier:Oe,tabStatus:je,setFilterListTotal:Ge,setListStatus:vr})=>{const wn={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[en,En]=(0,z.useState)(fr({},wn));const[Qt,Sn]=(0,z.useState)(!1),[Kn,Do]=(0,z.useState)(0),[Mr,Io]=(0,z.useState)(1),[Hr,bo]=(0,z.useState)(null),[Ir,ea]=(0,z.useState)([]),[Lo,Ho]=(0,z.useState)([!0,!0]),[zo,wr]=(0,z.useState)(0),li=(0,z.useRef)(null);(0,z.useEffect)(()=>{Ro()},[je]),(0,z.useEffect)(()=>{Vn()},[Hr]),(0,z.useEffect)(()=>{Jo(fr({},wn)),Ro()},[Oe]),(0,z.useEffect)(()=>(window.addEventListener("resize",Di),vr(zo),()=>{window.removeEventListener("resize",Di)}),[zo]);const Vn=()=>ko(void 0,null,function*(){if(!Hr){Ho([!0,!0]);return}const ro=[!0,!0],Si=Ir==null?void 0:Ir.findIndex(Va=>Va.id===Hr);Si===0&&en.page===1&&(ro[0]=!1),(en.page-1)*en.limit+(Si+1)===en.total&&(ro[1]=!1),Ho(ro)}),Di=()=>{var ro;if(zo){const Si=window.innerWidth-((ro=li.current)==null?void 0:ro.clientWidth);Do(Si)}},Jo=ro=>ko(void 0,null,function*(){var Si,Va,Us;Sn(!0);const as=yield(0,ue.WH)(Oe,ro);return(as==null?void 0:as.status)===0&&(ea(((Si=as==null?void 0:as.data)==null?void 0:Si.articles)||[]),En(eo(fr({},ro),{total:(Va=as==null?void 0:as.data)==null?void 0:Va.articles_count})),Ge((Us=as==null?void 0:as.data)==null?void 0:Us.articles_count)),Sn(!1),as}),ha=()=>{(en==null?void 0:en.sort_direction)===null?en.sort_direction="asc":(en==null?void 0:en.sort_direction)==="asc"?en.sort_direction="desc":(en==null?void 0:en.sort_direction)==="desc"&&(en.sort_direction=null),en.page=1,Ro(),En(fr({},en)),Jo(en)},Ma=()=>{en.page=1,en.search=en==null?void 0:en.save_search,Ro(),En(fr({},en)),Jo(en)},Lr=()=>{var ro;const Si=document.getElementsByClassName("btn-resize");Si[0].style.visibility="hidden";const Va=window.innerWidth-((ro=li.current)==null?void 0:ro.clientWidth);Do(Va)},ca=()=>{Lr(),wr(1)},oi=ro=>{Lr(),bo(ro==null?void 0:ro.id),wr(3)},$r=ro=>{Lr(),bo(ro==null?void 0:ro.id),wr(2)},Ro=()=>{const ro=document.getElementsByClassName("btn-resize");ro[0].style.visibility="visible",Do(0),wr(0),bo(null)},gi=ro=>{wr(3),bo(ro),en.page=1,En(fr({},en)),Jo(en)},$o=ro=>{wr(3),bo(ro),En(fr({},en)),Jo(en)},zs=ro=>{En(fr({},en)),Jo(en)},vs=ro=>ko(void 0,null,function*(){(yield(0,ue.Rg)(Oe,{active:ro==null?void 0:ro.id})).status===0&&(Jo(en),Io(Mr+1))}),Cs=ro=>ko(void 0,null,function*(){(yield(0,ue.rL)(Oe,{active:ro==null?void 0:ro.id})).status===0&&(Jo(en),Io(Mr+1))}),Rs=ro=>ko(void 0,null,function*(){(yield(0,ue.de)(Oe,{active:ro==null?void 0:ro.id})).status===0&&(Ro(),Jo(en))}),ws=ro=>{en.page=ro,En(fr({},en)),Jo(en)},cs=(ro,Si)=>ko(void 0,null,function*(){var Va,Us,as,el;const Wa=Ir==null?void 0:Ir.findIndex(_a=>_a.id===Hr);if(console.log(Wa,Si,22),Si==="prev"){if(Wa===void 0){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Wa===0){if(en.page===1){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(en.page!==1){en.page=en.page-1,En(fr({},en));const _a=yield Jo(en);if((_a==null?void 0:_a.status)===0){const Hs=(as=_a==null?void 0:_a.data)==null?void 0:as.articles[((Us=(Va=_a==null?void 0:_a.data)==null?void 0:Va.articles)==null?void 0:Us.length)-1];bo(Hs==null?void 0:Hs.id),console.log(ro.target,555)}}}else{const _a=Ir[Wa-1];bo(_a==null?void 0:_a.id)}}if(Si==="next"){if(Wa===void 0){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((en.page-1)*en.limit+(Wa+1)===en.total){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Wa+1===en.limit){en.page=en.page+1,En(fr({},en));const _a=yield Jo(en);if((_a==null?void 0:_a.status)===0){const Hs=(el=_a==null?void 0:_a.data)==null?void 0:el.articles[0];bo(Hs==null?void 0:Hs.id)}}else{const _a=Ir[Wa+1];bo(_a==null?void 0:_a.id)}}});return z.createElement("div",{className:_r.wrap,ref:li},z.createElement("div",{className:_r.head},z.createElement("div",{className:_r.sort,onClick:ha},z.createElement("span",null,"\u6700\u65B0"),z.createElement("aside",null,z.createElement(Bt.Z,{style:{color:(en==null?void 0:en.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),z.createElement(sn.Z,{style:{color:(en==null?void 0:en.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),z.createElement(Ke.default.Search,{value:en.save_search,className:_r["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:ro=>{en.save_search=ro.target.value,En(fr({},en))},onSearch:Ma}),z.createElement("div",{onClick:ca,className:_r.btn},z.createElement("img",{src:pt}),"\u5199\u9898\u89E3")),z.createElement("div",{className:_r.listWarp},z.createElement(de.Z,{spinning:Qt,className:"mt20"},Ir==null?void 0:Ir.map((ro,Si)=>{let Va=!0;return Si+1===Ir.length&&Si!==0&&(Va=!1),z.createElement(oa,{active:Hr,key:ro.id,data:ro,showLine:Va,onClick:oi,onAssist:vs,onHide:Cs})}),(Ir==null?void 0:Ir.length)===0&&z.createElement(wt.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),z.createElement(Vt.Z,{className:_r.pagination,showTotal:ro=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},ro),"\u6761\u6570\u636E"),total:en.total,showSizeChanger:!1,current:en==null?void 0:en.page,onChange:ws,hideOnSinglePage:!0,showQuickJumper:!0}),zo>0&&z.createElement("div",{className:_r.fixedRight,style:{width:Kn}},zo===1&&z.createElement(Cr,{identifier:Oe,onClose:Ro,onOk:gi}),zo===2&&z.createElement(Cr,{active:Hr,identifier:Oe,onClose:Ro,onOk:$o}),zo===3&&z.createElement(Ks,{btnShowStatus:Lo,onArticlesSkip:cs,detailsIndex:Mr,active:Hr,identifier:Oe,onClose:Ro,onOk:zs,onEdit:$r,onAssist:vs,onDelete:Rs})))},Eo={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"},wo=Object.defineProperty,Yr=Object.defineProperties,ga=Object.getOwnPropertyDescriptors,Vi=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,va=Object.prototype.propertyIsEnumerable,Ua=(Oe,je,Ge)=>je in Oe?wo(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,ui=(Oe,je)=>{for(var Ge in je||(je={}))fa.call(je,Ge)&&Ua(Oe,Ge,je[Ge]);if(Vi)for(var Ge of Vi(je))va.call(je,Ge)&&Ua(Oe,Ge,je[Ge]);return Oe},si=(Oe,je)=>Yr(Oe,ga(je)),Qi=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())}),Ji=({visible:Oe,onVisible:je,value:Ge,onChange:vr,setIndex:wn})=>{var en;const En={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[Qt,Sn]=(0,z.useState)(En);const[Kn,Do]=(0,z.useState)([]),[Mr,Io]=(0,z.useState)([]),[Hr,bo]=(0,z.useState)(!1),Ir=(0,z.useRef)([]),ea=(0,z.useRef)(null),Lo=(0,ve.useParams)();(0,z.useEffect)(()=>(Lo!=null&&Lo.id&&(ea.current=setInterval(()=>{Ho(30)},3e4)),()=>{clearInterval(ea.current)}),[]);const Ho=Lr=>Qi(void 0,null,function*(){const ca=yield(0,ue.uc)(Lo==null?void 0:Lo.id,{practice_time:Lr})});(0,z.useEffect)(()=>{Jo(Qt),Vn()},[]),(0,z.useEffect)(()=>(window.addEventListener("click",wr),()=>{window.removeEventListener("click",wr)}),[Lo==null?void 0:Lo.save_identifier,Oe]),(0,z.useEffect)(()=>{const Lr=Ir.current.findIndex(gi=>gi.identifier===(Lo==null?void 0:Lo.save_identifier)),ca=Ir.current[Lr-1],oi=Ir.current[Lr+1],$r=document.getElementById("oj-prev"),Ro=document.getElementById("oj-next");ca?$r.style.display="block":$r.style.display="none",oi?Ro.style.display="block":Ro.style.display="none"},[Lo==null?void 0:Lo.save_identifier,Ir.current]);const zo=(Lr,ca)=>{if(Lr.id===ca)return Lr;for(let oi=0,$r=Lr;$r=$r.parentNode;oi++){if($r.id===ca)return $r;if($r==document.documentElement)return!1}},wr=Lr=>Qi(void 0,null,function*(){!zo(Lr.target,"oj-drawer")&&Oe&&je(!1);const ca=Ir.current.findIndex(Ro=>Ro.identifier===(Lo==null?void 0:Lo.save_identifier)),oi=Ir.current[ca-1],$r=Ir.current[ca+1];if(Lr.target.id==="oj-prev"){if(!oi||ca===-1){pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}Lr.target.style.pointerEvents="none",Lr.target.style.cursor="not-allowed",yield ha(oi==null?void 0:oi.identifier),wn("0"),setTimeout(()=>{Lr.target.style.pointerEvents="auto",Lr.target.style.cursor="pointer"},400)}if(Lr.target.id==="oj-next"||Lr.target.id==="oj-modal-next"){if(!$r||ca===-1){pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}Lr.target.style.pointerEvents="none",Lr.target.style.cursor="not-allowed",yield ha($r==null?void 0:$r.identifier),wn("0"),setTimeout(()=>{Lr.target.style.pointerEvents="auto",Lr.target.style.cursor="pointer"},400)}});(0,z.useEffect)(()=>{vr(Lo==null?void 0:Lo.save_identifier);const Lr=Mr.findIndex(ca=>ca.some(oi=>oi.identifier===(Lo==null?void 0:Lo.save_identifier)));Sn(Lr===-1?si(ui({},Qt),{page:1}):si(ui({},Qt),{page:Lr+1}))},[Lo==null?void 0:Lo.save_identifier,Mr]);const li=Lr=>{Qt.page=1,Qt.tag_discipline_id=Lr,Sn(ui({},Qt)),Jo(Qt)},Vn=()=>Qi(void 0,null,function*(){const Lr=yield(0,Gn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Do(Lr.tag_disciplines||[])}),Di=Lr=>{Qt.page=1,Qt.difficulty=typeof Lr=="number"?Lr:null,Sn(ui({},Qt)),Jo(Qt)},Jo=Lr=>Qi(void 0,null,function*(){var ca,oi;bo(!0);const $r=yield(0,ue.KC)(Lr);if($r!=null&&$r.practices_list){for(var Ro=(ca=$r==null?void 0:$r.practices_list)==null?void 0:ca.length,gi=[],$o=0;$o<Ro;$o+=Qt==null?void 0:Qt.per_page)gi.push((oi=$r==null?void 0:$r.practices_list)==null?void 0:oi.slice($o,$o+(Qt==null?void 0:Qt.per_page)));Sn(si(ui({},Qt),{total:$r==null?void 0:$r.practices_count})),Ir.current=($r==null?void 0:$r.practices_list)||[],Io(gi)}bo(!1)}),ha=(Lr,ca)=>Qi(void 0,null,function*(){const oi=yield(0,Gn.ZP)(`/api/practices/${Lr}/start`,{method:"get"});(oi==null?void 0:oi.status)===0&&ve.history.push(`/problems/${oi==null?void 0:oi.identifier}/oj/${Lr}`)}),Ma=Lr=>{Qt.page=Lr,Sn(ui({},Qt))};return z.createElement("div",{className:Eo.wrap,id:"oj-drawer",style:{left:Oe?0:-700}},z.createElement("div",{className:Eo.head},z.createElement("div",{className:Eo.title},"\u9898\u76EE\u5217\u8868"),z.createElement(Ke.default.Search,{value:Qt==null?void 0:Qt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:Lr=>{Qt.save_search=Lr.target.value,Sn(ui({},Qt))},onSearch:()=>{Qt.page=1,Qt.search=Qt.save_search,Sn(ui({},Qt)),Jo(Qt)}}),z.createElement(le.default,{value:Qt==null?void 0:Qt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:Lr=>Lr.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:li},Kn.map(Lr=>z.createElement(le.default.Option,{key:Lr.id,value:Lr.id},Lr.name))),z.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:Lr=>Lr.parentNode,value:Qt==null?void 0:Qt.difficulty,onChange:Di},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:Eo.content},z.createElement(de.Z,{spinning:Hr},(en=Mr==null?void 0:Mr[Qt.page-1])==null?void 0:en.map(Lr=>z.createElement("div",{key:Lr.identifier,className:Eo.list,onClick:ca=>ha(Lr.identifier,ca)},z.createElement("i",{style:{visibility:Ge===Lr.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),z.createElement("span",{style:{fontWeight:Ge===Lr.identifier?"bold":400,color:Ge===Lr.identifier?"#ffffff":"#bac4cd"},title:Lr==null?void 0:Lr.name},Lr.name),(Lr==null?void 0:Lr.difficulty)===1&&z.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(Lr==null?void 0:Lr.difficulty)===2&&z.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(Lr==null?void 0:Lr.difficulty)===3&&z.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),z.createElement("div",{className:Eo.footer},z.createElement(Vt.Z,{showTotal:Lr=>z.createElement("span",{style:{color:"#656F87"}},"\u5171",z.createElement("span",{className:"c-light-primary"},Lr),"\u6761\u6570\u636E"),total:Qt.total,pageSize:Qt==null?void 0:Qt.per_page,current:Qt==null?void 0:Qt.page,showSizeChanger:!1,onChange:Ma,showQuickJumper:!0,hideOnSinglePage:!0})))},di=({hack:Oe,onTriggerPraise:je,topicId:Ge,page:vr,onPageChange:wn,user:en,submitRecords:En,submitting:Qt,submitResult:Sn})=>{const[Kn]=(0,ve.useSearchParams)(),Do=(0,ve.useLocation)(),[Mr,Io]=(0,z.useState)(Kn.get("tab")||"0"),[Hr,bo]=(0,z.useState)(0),[Ir,ea]=(0,z.useState)(0),[Lo,Ho]=(0,z.useState)(0),[zo,wr]=(0,z.useState)(),[li,Vn]=(0,z.useState)(!1);function Di(ha){const Ma=ha.target.id;if(Mr==="3"&&Ma!==Mr&&(Ir===1||Ir===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:()=>{Io(Ma)}});return}Io(Ma)}(0,z.useEffect)(()=>vt.Z.subscribe("to-commit-info",()=>{Io("1")}),[]);function Jo(){Io("2")}return z.createElement("div",{className:lt["left-panel"]},z.createElement("ul",{className:`${lt["s-navs"]} ${lt["bg-white"]} ${lt.b1}`},z.createElement("li",{className:"mr40 current"},z.createElement("img",{onClick:()=>Vn(!0),src:or})),z.createElement("li",{className:lt["oj-mr"]},z.createElement("a",{className:Mr==="0"?lt.active:"",id:"0",onClick:Di},"\u4EFB\u52A1\u63CF\u8FF0")),z.createElement("li",{className:lt["oj-mr"]},z.createElement("a",{className:Mr==="3"?lt.active:"",id:"3",onClick:Di},"\u9898\u89E3",Lo?`(${Lo})`:"")),z.createElement("li",{className:lt["oj-mr"]},z.createElement("a",{className:Mr==="2"?lt.active:"",id:"2",onClick:Di},"\u8BC4\u8BBA",Hr?`(${Hr})`:"")),z.createElement("li",null,z.createElement("a",{className:Mr==="1"?lt.active:"",id:"1",onClick:Di},"\u63D0\u4EA4\u8BB0\u5F55"))),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},z.createElement(rt,{hack:Oe,onTriggerPraise:je,toDiscuss:Jo})),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="1"?"":"hide"}`},En!=null&&En.records_count?z.createElement(gt,{page:vr,onPageChange:wn,topicId:Ge,submitting:Qt,submitRecords:En,submitResult:Sn}):z.createElement(wt.Z,null)),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="2"?"":"hide"}`,style:{padding:0}},z.createElement(pr,{setDiscussTotal:bo,user:en,identifier:Oe.identifier,hack:Oe,onTriggerPraise:je})),z.createElement("div",{className:`${lt["tab-panel-body"]} ${Mr==="3"?"":"hide"}`,style:{padding:0}},z.createElement(ri,{setListStatus:ea,setFilterListTotal:Ho,tabStatus:Mr,identifier:Oe.identifier})),z.createElement(Ji,{visible:li,setIndex:Io,onVisible:ha=>Vn(ha),value:zo,onChange:ha=>wr(ha)}))},Zi=te(88508),Ao=te(62522),Ia=te(22707),zi=te(8861),Ha=te(96486),ss=te.n(Ha),Ka=te(74855),Vr=te(67294),ms=Object.defineProperty,Ui=Object.defineProperties,gs=Object.getOwnPropertyDescriptors,Sa=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,Ba=Object.prototype.propertyIsEnumerable,ps=(Oe,je,Ge)=>je in Oe?ms(Oe,je,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Oe[je]=Ge,xi=(Oe,je)=>{for(var Ge in je||(je={}))qi.call(je,Ge)&&ps(Oe,Ge,je[Ge]);if(Sa)for(var Ge of Sa(je))Ba.call(je,Ge)&&ps(Oe,Ge,je[Ge]);return Oe},ya=(Oe,je)=>Ui(Oe,gs(je)),is=(Oe,je)=>{var Ge={};for(var vr in Oe)qi.call(Oe,vr)&&je.indexOf(vr)<0&&(Ge[vr]=Oe[vr]);if(Oe!=null&&Sa)for(var vr of Sa(Oe))je.indexOf(vr)<0&&Ba.call(Oe,vr)&&(Ge[vr]=Oe[vr]);return Ge},sa=(Oe,je,Ge)=>new Promise((vr,wn)=>{var en=Sn=>{try{Qt(Ge.next(Sn))}catch(Kn){wn(Kn)}},En=Sn=>{try{Qt(Ge.throw(Sn))}catch(Kn){wn(Kn)}},Qt=Sn=>Sn.done?vr(Sn.value):Promise.resolve(Sn.value).then(en,En);Qt((Ge=Ge.apply(Oe,je)).next())});const{Countdown:As}=he.default,es={Java:"java",C:"c",Python:"py","C++":"c"};var la=(Oe=>(Oe[Oe.SET_LOADING=0]="SET_LOADING",Oe[Oe.GET_DATA=1]="GET_DATA",Oe[Oe.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Oe[Oe.SET_DATA=3]="SET_DATA",Oe[Oe.SET_DEBUGING=4]="SET_DEBUGING",Oe[Oe.SET_SUBMITING=5]="SET_SUBMITING",Oe[Oe.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Oe[Oe.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Oe[Oe.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Oe[Oe.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Oe[Oe.SET_PAGE=10]="SET_PAGE",Oe[Oe.GET_LANGUAGE=11]="GET_LANGUAGE",Oe[Oe.GET_DRAWER=12]="GET_DRAWER",Oe))(la||{});function yo(){return new Date().getTime()}const Fa={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 ls(Oe,je){switch(je.type){case 1:return xi(xi({},Oe),je.payload);case 3:return ya(xi({},Oe),{data:je.payload});case 0:return ya(xi({},Oe),{loading:je.payload});case 11:return ya(xi({},Oe),{languageList:je.payload});case 12:return ya(xi({},Oe),{drawerData:je.payload});case 9:return ya(xi({},Oe),{showNote:je.payload});case 4:return ya(xi({},Oe),{debuging:je.payload});case 5:return ya(xi({},Oe),{submitting:je.payload});case 2:return ya(xi({},Oe),{submitRecords:je.payload});case 10:return ya(xi({},Oe),{submitRecordPage:je.payload});case 6:return ya(xi({},Oe),{executingMessage:je.payload});case 7:return xi(xi({},Oe),je.payload);case 8:return xi(xi({},Oe),je.payload);default:throw new Error}}var Ds=({children:Oe})=>{var je,Ge,vr,wn;const[en,En]=(0,z.useReducer)(ls,Fa),{id:Qt}=(0,ve.useParams)(),Sn=(0,ve.useLocation)(),[Kn]=(0,ve.useSearchParams)(),{languageValue:Do,languageList:Mr,loading:Io,data:Hr,debugResult:bo,submitResult:Ir,submitRecords:ea,submitRecordPage:Lo,showNote:Ho,debuging:zo,submitting:wr,executingMessage:li}=en,[Vn,Di]=(0,z.useState)("#FFF"),[Jo,ha]=(0,z.useState)(null),[Ma,Lr]=(0,z.useState)({}),[ca,oi]=(0,z.useState)(!1),$r=(0,z.useRef)(null),Ro=(0,z.useRef)(null),gi=Hr==null?void 0:Hr.user,$o=Hr==null?void 0:Hr.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 Te;if(ca){const Ue=document.getElementById("oj-next"),Ze=document.getElementById("oj-modal-next");((Te=Ue==null?void 0:Ue.style)==null?void 0:Te.display)==="none"?Ze.style.display="none":Ze.style.display="block"}},[ca]),(0,z.useEffect)(()=>{function Te(){return sa(this,null,function*(){var Ue,Ze,ot;const st=yield(0,ue.fu)(Qt);if(st.status===401)document.location.href="/user/login";else{st.hack=st.practice,st.hack.code=De.Base64.decode((Ue=st==null?void 0:st.hack)==null?void 0:Ue.code);const ht=`${gi==null?void 0:gi.login}-language`;localStorage.getItem(ht)&&(st.hack.language=localStorage.getItem(ht)),Ro.current=ss().cloneDeep(st),Ro.current.language=(Ze=st==null?void 0:st.hack)==null?void 0:Ze.language,En({type:1,payload:{loading:!1,data:st}}),En({type:8,payload:{languageValue:(ot=st==null?void 0:st.hack)==null?void 0:ot.language}})}})}Qt&&Te()},[Qt]),(0,z.useEffect)(()=>{En({type:8,payload:{debugResult:void 0}}),Cs(),oi(!1)},[Qt]),(0,z.useEffect)(()=>{clearTimeout($r.current)},[Qt]),(0,z.useEffect)(()=>{vs()},[Qt,Lo]);const zs=()=>{window.parent.postMessage("backExercise","*")};function vs(){return sa(this,null,function*(){try{const Te=yield(0,ue.zO)(Qt,{limit:15,page:Lo});En({type:2,payload:Te})}catch(Te){console.log(Te)}})}function Cs(){return sa(this,null,function*(){try{const Te=yield(0,ue.dd)(Qt);En({type:11,payload:Te==null?void 0:Te.data})}catch(Te){console.log(Te)}})}function Rs(Te){En({type:10,payload:Te})}function ws(Te){return sa(this,null,function*(){var Ue,Ze,ot;const st=((ot=(Ze=(Ue=window==null?void 0:window.location)==null?void 0:Ue.pathname)==null?void 0:Ze.split("/"))==null?void 0:ot[2])||Qt;return yield(0,ue.n4)(st,Te||{code:De.Base64.encode($o.code),language:Do})})}function cs(){return sa(this,null,function*(){var Te;if(!$o.code||((Te=$o.code)==null?void 0:Te.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(!wr){En({type:5,payload:!0});try{if(vt.Z.publish("to-commit-info"),(yield ws()).status===0){let Ot=function(){return sa(this,null,function*(){const{status:At,data:tn}=yield(0,ue.rX)(Qt,"submit"),ln=yo()-Pt>(st*ht+3)*1e3;if(At!==0&&!ln&&setTimeout(Ot,1e3),ln){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),En({type:5,payload:!1});return}if(At===0){tn.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Wn=yield(0,ue.zO)(Qt,{limit:15,page:Lo});En({type:8,payload:ya(xi({},en),{submitResult:tn,submitting:!1,submitRecords:Wn})}),(tn==null?void 0:tn.status)===0&&oi(!0)}})},Ze={};const ot=yield(0,ue.bM)(Qt,Ze);if(ot.status===-1&&Kn.get("exercisesId")){window.parent.location.href=`/classrooms/${Kn.get("coursesId")}/exercise/${Kn.get("exercisesId")}/detail`;return}const{time_limit:st,test_case_size:ht}=$o,Pt=yo();(ot==null?void 0:ot.status)>-1?Ot():En({type:4,payload:!1})}}catch(Ue){En({type:5,payload:!1})}}})}function ro(){return sa(this,null,function*(){var Te;if(!$o.code||((Te=$o.code)==null?void 0:Te.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}en.debuging=!0,En({type:4,payload:!0});try{if((yield ws()).status===0){let Pt=function(){return sa(this,null,function*(){const{status:Ot,message:At,data:tn}=yield(0,ue.rX)(Qt,"debug"),ln=yo()-ht>(Ze+3)*1e3;if(Ot!==0&&!ln&&(En({type:6,payload:At}),setTimeout(Pt,1e3)),ln){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),En({type:4,payload:!1});return}Ot===0&&(En({type:4,payload:!1}),tn.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),En({type:7,payload:ya(xi({},en),{debugResult:tn,debuging:!1})}))})};const{time_limit:Ze}=$o;let ot={input:encodeURIComponent(Hr.test_case.input)};const st=yield(0,ue.MU)(Qt,ot);if(st.status===-1&&Kn.get("exercisesId")){window.parent.location.href=`/classrooms/${Kn.get("coursesId")}/exercise/${Kn.get("exercisesId")}/detail`;return}const ht=yo();(st==null?void 0:st.status)>-1?Pt():En({type:4,payload:!1})}else En({type:4,payload:!1})}catch(Ue){console.log(Ue)}finally{}})}function Si(Te){var Ue;clearTimeout($r.current),$r.current=setTimeout(()=>{var Ze;ws({code:De.Base64.encode(Te),language:(Ze=Ro==null?void 0:Ro.current)==null?void 0:Ze.language})},2e3),En({type:3,payload:ya(xi({},Ro==null?void 0:Ro.current),{hack:ya(xi({},(Ue=Ro==null?void 0:Ro.current)==null?void 0:Ue.hack),{code:Te})})})}function Va(Te){let Ue=Te.target.value;En({type:3,payload:ya(xi({},Hr),{test_case:{input:Ue}})})}const Us=Te=>sa(void 0,null,function*(){var Ue;if(En({type:0,payload:!0}),(yield ws()).status===0){En({type:8,payload:{languageValue:Te}}),Ro.current.language=Te;const ot=`${gi==null?void 0:gi.login}-language`;localStorage.setItem(ot,Te);const st=yield(0,ue.dd)(Qt);if(st.status===0){const ht=(Ue=st==null?void 0:st.data)==null?void 0:Ue.find(Pt=>Pt.language===Te);Si(De.Base64.decode(ht.code))}setTimeout(()=>{En({type:0,payload:!1})},300)}});function as(){return sa(this,null,function*(){try{const Te=yield(0,ue.H7)(Qt,{language:Do});Te.status===401?ve.history.replace("/login",{from:Sn.pathname}):(Si(De.Base64.decode(Te.code)),Cs())}catch(Te){console.log(Te)}})}function el(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Vr.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Vr.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return sa(this,null,function*(){const Te=yield(0,ue.fi)(Qt,{language:Do});Te.status===401?ve.history.replace("/login",{from:Sn.pathname}):Si(De.Base64.decode(Te.code))})}})}function Wa(){En({type:9,payload:!0})}function _a(){En({type:9,payload:!1})}function Hs(Te){return sa(this,null,function*(){yield(0,ue.MK)(Qt,Te),En({type:1,payload:{showNote:!1,data:ya(xi({},Hr),{hack:ya(xi({},$o),{notes:Te.notes})})}})})}const Ee={input:(je=Hr==null?void 0:Hr.test_case)==null?void 0:je.input,is_file:(Ge=Hr==null?void 0:Hr.test_case)==null?void 0:Ge.is_file,language:((vr=Ro.current)==null?void 0:vr.language)||($o==null?void 0:$o.language),code:$o==null?void 0:$o.code,title:"main."+es[$o==null?void 0:$o.language],modify_code:$o==null?void 0:$o.modify_code,notes:$o==null?void 0:$o.notes,debugResult:bo,debuging:zo,submitting:wr,executingMessage:li,id:Qt,languageValue:Do,languageList:Mr,onChangeLanguage:Us,onCancelNote:_a,onAddNote:Hs,showNote:Ho,onShowNote:Wa,onSubmitCode:cs,onChangeCode:Si,onChangeInput:Va,onDebugCode:ro,onResetCode:as,onSyncCode:el,onUpdateCode:ws};function Ce(){return sa(this,null,function*(){const{praise_count:Te}=yield(0,ue.vl)($o.id,{container_type:"Hack",type:1});let Ue=ya(xi({},Hr),{hack:ya(xi({},$o),{praises_count:Te,user_praise:!$o.user_praise})});En({type:3,payload:Ue})})}const Re={topicId:Qt,submitResult:Ir,submitRecords:ea,submitting:wr,page:Lo,onPageChange:Rs,hack:$o,user:Hr==null?void 0:Hr.user,onTriggerPraise:Ce};return console.log(Hr,Ro==null?void 0:Ro.current,"data--------"),Vr.createElement(Vr.Fragment,null,Vr.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Io},Hr?Vr.createElement("div",{className:"oj-custom-warp"},Vr.createElement("header",{className:Be.Z.header,style:{minWidth:1200}},Vr.createElement("div",null,Vr.createElement("img",{src:`${me.Z.IMG_SERVER}/images/${gi.image_url}`,alt:"user",width:30}),Vr.createElement("span",null,gi.name)),Vr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Vr.createElement("div",null,$o.name),Vr.createElement(Zi.Z,{onChange:Te=>{},className:"font12 c-grey-999"})),Vr.createElement(Ka.CopyToClipboard,{text:`${(wn=window.location)==null?void 0:wn.origin}/problems/${$o.identifier}/share`,onCopy:()=>pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Vr.createElement("span",{className:Be.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Vr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),$o.edit_privilege?Vr.createElement(ve.Link,{className:Be.Z.btn_back,to:`/problems/${$o.identifier}/ojedit`,style:{marginRight:10}}," ",Vr.createElement(fe.Z,null)," \u7F16\u8F91"):null,Vr.createElement(ve.Link,{className:Be.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Vr.createElement(Pe.Z,null),"\u9000\u51FA")),Vr.createElement(se.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Vr.createElement(di,xi({},Re)),rightChild:Vr.createElement(Zs,xi({},Ee))})):null),Vr.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:ca,className:"oj-modal"},Vr.createElement("section",{className:"oj-modal-content"},Vr.createElement("div",{className:"oj-modal-head"},Vr.createElement("img",{src:Ao,alt:""}),Vr.createElement("i",{onClick:()=>oi(!1),className:"iconfont icon-guanbi1"})),Vr.createElement("aside",null,Vr.createElement("img",{className:"mr30",src:zi.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Vr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Ir==null?void 0:Ir.execute_time,"s"),"\u4F18\u4E8E",Vr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Ir==null?void 0:Ir.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Vr.createElement("aside",{className:"mb50"},Vr.createElement("img",{src:Ia.Z,className:"mr30"}),Vr.createElement("span",{className:"oj-modal-tt"},Vr.createElement("span",null,Vr.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Vr.createElement("span",{className:"c-light-primary"},Ir==null?void 0:Ir.execute_memory,"mb")),Vr.createElement("span",null,Vr.createElement("span",null))),"\u4F18\u4E8E",Vr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Ir==null?void 0:Ir.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Vr.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Ys({languageValue:Oe,languageList:je,onChangeLanguage:Ge,title:vr,modify_code:wn,onSyncCode:en,onShowCodeSetting:En,onResetCode:Qt}){const Sn=(0,ve.useLocation)(),Kn=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Vr.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:Qt})};return Vr.createElement("div",{className:"action-bar"},Vr.createElement(le.default,{className:"oj-select",value:Oe,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Ge},je==null?void 0:je.map(Do=>Vr.createElement(le.default.Option,{key:Do.language,value:Do.language},Do.language))),Vr.createElement("span",null),Vr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:Kn},Vr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Vr.createElement("a",{onClick:En},Vr.createElement("i",{className:"iconfont icon-shezhi"})))}function Zs(Oe){var je=Oe,{id:Ge,input:vr,is_file:wn,showNote:en,onShowNote:En,notes:Qt,onCancelNote:Sn,onAddNote:Kn,debugResult:Do,language:Mr,debuging:Io,submitting:Hr,executingMessage:bo,code:Ir,onSubmitCode:ea,onDebugCode:Lo,onChangeCode:Ho,onChangeInput:zo,onUpdateCode:wr}=je,li=is(je,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Vn(Jo){return Vr.createElement(Ys,ya(xi({},li),{onShowCodeSetting:Jo}))}const Di={id:Ge,input:vr,debugResult:Do,debuging:Io,is_file:wn,submitting:Hr,executingMessage:bo,onDebugCode:Lo,onChangeCode:Ho,onSubmitCode:ea,onChangeInput:zo};return Vr.createElement("div",{className:"right-panel"},Vr.createElement(mt,{onUpdateCode:()=>{},language:Mr,value:Ir,onChange:Ho,ActionBarRender:Vn}),Vr.createElement("div",{className:`note-form-area ${en?"active":""}`},Vr.createElement(it,{onCancel:Sn,notes:Qt,callback:Kn})),Vr.createElement(nt.ZP,xi({},Di)))}},94189:function(at,We,te){"use strict";te.d(We,{h:function(){return z}});var z=(fe=>(fe[fe.NOMATCH=-1]="NOMATCH",fe[fe.OK=0]="OK",fe[fe.TIMEOUT=2]="TIMEOUT",fe[fe.PODFAILURE=3]="PODFAILURE",fe[fe.COMPILEFAILURE=4]="COMPILEFAILURE",fe[fe.EXECUTEFAILURE=5]="EXECUTEFAILURE",fe[fe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",fe))(z||{})},33227:function(at,We,te){"use strict";te.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 Pe},bx:function(){return y},dd:function(){return me},de:function(){return ce},fi:function(){return ue},fu:function(){return fe},gu:function(){return E},n4:function(){return se},qe:function(){return ee},rL:function(){return ae},rX:function(){return ie},uc:function(){return Se},vl:function(){return re},wO:function(){return x},zO:function(){return he}});var z=te(33170);function fe(_e){return(0,z.U2)(`mypractices/${_e}.json`,{hidePopLogin:!0})}function Pe(_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 he(_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 ue(_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 ee(_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 ce(_e,xe){return(0,z.IV)(`practices/${_e}/question_solution_articles/${xe==null?void 0:xe.active}`,xe)}function Se(_e,xe){return(0,z.v_)(`mypractices/${_e}/update_practice_time_sum`,xe)}},93989:function(at,We,te){"use strict";te.d(We,{Z:function(){return re}});var z=te(67294),fe=te(2453),Pe=te(83062),ve=te(57953),he=te(71230),pe=te(15746),ie=te(34435),de=te(71577),le=te(35567),ue=te(33170),se=te(85725),me=(a,y,E)=>new Promise((b,x)=>{var ee=ce=>{try{ae(E.next(ce))}catch(Se){x(Se)}},oe=ce=>{try{ae(E.throw(ce))}catch(Se){x(Se)}},ae=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(ee,oe);ae((E=E.apply(a,y)).next())}),re=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,ee]=(0,z.useState)(""),[oe,ae]=(0,z.useState)(!1);function ce(_e){ee(_e)}function Se(){if(!x){fe.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),ee("")}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:ce,extraUse:b&&z.createElement(Pe.Z,{color:"#fff",open:oe,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:oe,activeDiscussIndex:y,onChange:ce,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:Se,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,z.useState)(!1),[b,x]=(0,z.useState)([]),[ee,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 ce=yield(0,ue.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ce==null?void 0:ce.status)==0&&x(ce==null?void 0:ce.answer),E(!1)});return 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[ee-1])||""}),z.createElement(he.Z,{justify:"end",align:"middle"},z.createElement(pe.Z,null,z.createElement(ie.Z,{simple:!0,current:ee,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ce=>{oe(ce)}})),z.createElement(pe.Z,null,z.createElement(de.ZP,{onClick:()=>me(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[ee-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},51959:function(at,We,te){"use strict";te.d(We,{BU:function(){return fe},Dj:function(){return z},gH:function(){return Pe},vp:function(){return ve}});function z(he){try{he.mozRequestFullScreen?he.mozRequestFullScreen():he.webkitRequestFullScreen&&he.webkitRequestFullScreen()}catch(pe){console.log(pe,":e")}}function fe(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const Pe=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function ve(){var he=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",he),window.isFullScreen?window.isFullScreen:he!=null}},40471:function(at,We,te){"use strict";te.d(We,{G:function(){return he},t:function(){return ve}});var z=te(58971),fe=te.n(z);const Pe=null;function ve(pe,ie){let de=fe().get("__ec");de||(de={}),de[pe]=ie,fe().set("__ec",de)}function he(pe,ie){let de=fe().get("__ec");return de?de[pe]===void 0?ie:de[pe]:ie}},24577:function(at,We,te){"use strict";te.d(We,{Z:function(){return Ta}});class z{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ge,ye){return ge.__proto__=ye,ge},Object.assign=Object.assign||function(ge){if(ge==null)throw new TypeError("Cannot convert undefined or null to object");let ye=Object(ge);for(let be=1;be<arguments.length;be++){let Le=arguments[be];if(Le!=null)for(let Ne in Le)Le.hasOwnProperty(Ne)&&(ye[Ne]=Le[Ne])}return ye},typeof self.Promise!="function"&&te(82702).polyfill()}}z.install();var fe=z,Pe=te(17187),ve=te.n(Pe);class he{static e(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","error",be),he.ENABLE_ERROR&&(console.error?console.error(be):console.warn?console.warn(be):console.log(be))}static i(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","info",be),he.ENABLE_INFO&&(console.info?console.info(be):console.log(be))}static w(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","warn",be),he.ENABLE_WARN&&(console.warn?console.warn(be):console.log(be))}static d(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","debug",be),he.ENABLE_DEBUG&&(console.debug?console.debug(be):console.log(be))}static v(ge,ye){(!ge||he.FORCE_GLOBAL_TAG)&&(ge=he.GLOBAL_TAG);let be=`[${ge}] > ${ye}`;he.ENABLE_CALLBACK&&he.emitter.emit("log","verbose",be),he.ENABLE_VERBOSE&&console.log(be)}}he.GLOBAL_TAG="flv.js",he.FORCE_GLOBAL_TAG=!1,he.ENABLE_ERROR=!0,he.ENABLE_INFO=!0,he.ENABLE_WARN=!0,he.ENABLE_DEBUG=!0,he.ENABLE_VERBOSE=!0,he.ENABLE_CALLBACK=!1,he.emitter=new(ve());var pe=he;class ie{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(ge){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ge,this._totalBytes+=ge):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ge,this._totalBytes+=ge):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ge,this._totalBytes+=ge,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ge=(this._now()-this._lastCheckpoint)/1e3;return ge==0&&(ge=1),this._intervalBytes/ge/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ge=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ge/1024}}var de=ie;class le{constructor(ge){this._message=ge}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ue extends le{constructor(ge){super(ge)}get name(){return"IllegalStateException"}}class se extends le{constructor(ge){super(ge)}get name(){return"InvalidArgumentException"}}class me extends le{constructor(ge){super(ge)}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(ge){this._type=ge||"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(ge){this._onContentLengthKnown=ge}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ge){this._onURLRedirect=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}open(ge,ye){throw new me("Unimplemented abstract function!")}abort(){throw new me("Unimplemented abstract function!")}}let y={};function E(){let yn=self.navigator.userAgent.toLowerCase(),ge=/(edge)\/([\w.]+)/.exec(yn)||/(opr)[\/]([\w.]+)/.exec(yn)||/(chrome)[ \/]([\w.]+)/.exec(yn)||/(iemobile)[\/]([\w.]+)/.exec(yn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(yn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(yn)||/(webkit)[ \/]([\w.]+)/.exec(yn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(yn)||/(msie) ([\w.]+)/.exec(yn)||yn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(yn)||yn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(yn)||[],ye=/(ipad)/.exec(yn)||/(ipod)/.exec(yn)||/(windows phone)/.exec(yn)||/(iphone)/.exec(yn)||/(kindle)/.exec(yn)||/(android)/.exec(yn)||/(windows)/.exec(yn)||/(mac)/.exec(yn)||/(linux)/.exec(yn)||/(cros)/.exec(yn)||[],be={browser:ge[5]||ge[3]||ge[1]||"",version:ge[2]||ge[4]||"0",majorVersion:ge[4]||ge[2]||"0",platform:ye[0]||""},Le={};if(be.browser){Le[be.browser]=!0;let Ne=be.majorVersion.split(".");Le.version={major:parseInt(be.majorVersion,10),string:be.version},Ne.length>1&&(Le.version.minor=parseInt(Ne[1],10)),Ne.length>2&&(Le.version.build=parseInt(Ne[2],10))}if(be.platform&&(Le[be.platform]=!0),(Le.chrome||Le.opr||Le.safari)&&(Le.webkit=!0),Le.rv||Le.iemobile){Le.rv&&delete Le.rv;let Ne="msie";be.browser=Ne,Le[Ne]=!0}if(Le.edge){delete Le.edge;let Ne="msedge";be.browser=Ne,Le[Ne]=!0}if(Le.opr){let Ne="opera";be.browser=Ne,Le[Ne]=!0}if(Le.safari&&Le.android){let Ne="android";be.browser=Ne,Le[Ne]=!0}Le.name=be.browser,Le.platform=be.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 ge=b.msedge&&b.version.minor>=15048,ye=b.msedge?ge:!0;return self.fetch&&self.ReadableStream&&ye}catch(ge){return!1}}constructor(ge,ye){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ge,this._config=ye,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ge,ye){this._dataSource=ge,this._range=ye;let be=ge.url;this._config.reuseRedirectedURL&&ge.redirectedURL!=null&&(be=ge.redirectedURL);let Le=this._seekHandler.getConfig(be,ye),Ne=new self.Headers;if(typeof Le.headers=="object"){let ct=Le.headers;for(let _n in ct)ct.hasOwnProperty(_n)&&Ne.append(_n,ct[_n])}let et={method:"GET",headers:Ne,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let ct in this._config.headers)Ne.append(ct,this._config.headers[ct]);ge.cors===!1&&(et.mode="same-origin"),ge.withCredentials&&(et.credentials="include"),ge.referrerPolicy&&(et.referrerPolicy=ge.referrerPolicy),this._status=re.kConnecting,self.fetch(Le.url,et).then(ct=>{if(this._requestAbort){this._requestAbort=!1,this._status=re.kIdle;return}if(ct.ok&&ct.status>=200&&ct.status<=299){if(ct.url!==Le.url&&this._onURLRedirect){let rn=this._seekHandler.removeURLParameters(ct.url);this._onURLRedirect(rn)}let _n=ct.headers.get("Content-Length");return _n!=null&&(this._contentLength=parseInt(_n),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,ct.body.getReader())}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ct.status,msg:ct.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+ct.status+" "+ct.statusText)}).catch(ct=>{if(this._status=re.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:ct.message});else throw ct})}abort(){this._requestAbort=!0}_pump(ge){return ge.read().then(ye=>{if(ye.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=re.kError;let be=ne.EARLY_EOF,Le={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(be,Le);else throw new le(Le.msg)}else this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=re.kComplete,ge.cancel();this._status=re.kBuffering;let be=ye.value.buffer,Le=this._range.from+this._receivedLength;this._receivedLength+=be.byteLength,this._onDataArrival&&this._onDataArrival(be,Le,this._receivedLength),this._pump(ge)}}).catch(ye=>{if(ye.code===11&&b.msedge)return;this._status=re.kError;let be=0,Le=null;if((ye.code===19||ye.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(be=ne.EARLY_EOF,Le={code:ye.code,msg:"Fetch stream meet Early-EOF"}):(be=ne.EXCEPTION,Le={code:ye.code,msg:ye.message}),this._onError)this._onError(be,Le);else throw new le(Le.msg)})}}var ee=x;class oe extends a{static isSupported(){try{let ge=new XMLHttpRequest;return ge.open("GET","https://example.com",!0),ge.responseType="moz-chunked-arraybuffer",ge.responseType==="moz-chunked-arraybuffer"}catch(ge){return pe.w("MozChunkedLoader",ge.message),!1}}constructor(ge,ye){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=ge,this._config=ye,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(ge,ye){this._dataSource=ge,this._range=ye;let be=ge.url;this._config.reuseRedirectedURL&&ge.redirectedURL!=null&&(be=ge.redirectedURL);let Le=this._seekHandler.getConfig(be,ye);this._requestURL=Le.url;let Ne=this._xhr=new XMLHttpRequest;if(Ne.open("GET",Le.url,!0),Ne.responseType="moz-chunked-arraybuffer",Ne.onreadystatechange=this._onReadyStateChange.bind(this),Ne.onprogress=this._onProgress.bind(this),Ne.onloadend=this._onLoadEnd.bind(this),Ne.onerror=this._onXhrError.bind(this),ge.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let et=Le.headers;for(let ct in et)et.hasOwnProperty(ct)&&Ne.setRequestHeader(ct,et[ct])}if(typeof this._config.headers=="object"){let et=this._config.headers;for(let ct in et)et.hasOwnProperty(ct)&&Ne.setRequestHeader(ct,et[ct])}this._status=re.kConnecting,Ne.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=re.kComplete}_onReadyStateChange(ge){let ye=ge.target;if(ye.readyState===2){if(ye.responseURL!=null&&ye.responseURL!==this._requestURL&&this._onURLRedirect){let be=this._seekHandler.removeURLParameters(ye.responseURL);this._onURLRedirect(be)}if(ye.status!==0&&(ye.status<200||ye.status>299))if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+ye.status+" "+ye.statusText);else this._status=re.kBuffering}}_onProgress(ge){if(this._status===re.kError)return;this._contentLength===null&&ge.total!==null&&ge.total!==0&&(this._contentLength=ge.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ye=ge.target.response,be=this._range.from+this._receivedLength;this._receivedLength+=ye.byteLength,this._onDataArrival&&this._onDataArrival(ye,be,this._receivedLength)}_onLoadEnd(ge){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(ge){this._status=re.kError;let ye=0,be=null;if(this._contentLength&&ge.loaded<this._contentLength?(ye=ne.EARLY_EOF,be={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(ye=ne.EXCEPTION,be={code:-1,msg:ge.constructor.name+" "+ge.type}),this._onError)this._onError(ye,be);else throw new le(be.msg)}}var ae=oe;class ce extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let ge=new XMLHttpRequest;return ge.open("GET","https://example.com",!0),ge.responseType="ms-stream",ge.responseType==="ms-stream"}catch(ge){return Log.w("MSStreamLoader",ge.message),!1}}constructor(ge,ye){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=ge,this._config=ye,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(ge,ye){this._internalOpen(ge,ye,!1)}_internalOpen(ge,ye,be){this._dataSource=ge,be?this._currentRange=ye:this._totalRange=ye;let Le=ge.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Le=this._currentRedirectedURL:ge.redirectedURL!=null&&(Le=ge.redirectedURL));let Ne=this._seekHandler.getConfig(Le,ye);this._currentRequestURL=Ne.url;let et=this._reader=new self.MSStreamReader;et.onprogress=this._msrOnProgress.bind(this),et.onload=this._msrOnLoad.bind(this),et.onerror=this._msrOnError.bind(this);let ct=this._xhr=new XMLHttpRequest;if(ct.open("GET",Ne.url,!0),ct.responseType="ms-stream",ct.onreadystatechange=this._xhrOnReadyStateChange.bind(this),ct.onerror=this._xhrOnError.bind(this),ge.withCredentials&&(ct.withCredentials=!0),typeof Ne.headers=="object"){let _n=Ne.headers;for(let rn in _n)_n.hasOwnProperty(rn)&&ct.setRequestHeader(rn,_n[rn])}if(typeof this._config.headers=="object"){let _n=this._config.headers;for(let rn in _n)_n.hasOwnProperty(rn)&&ct.setRequestHeader(rn,_n[rn])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,ct.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(ge){let ye=ge.target;if(ye.readyState===2)if(ye.status>=200&&ye.status<=299){if(this._status=LoaderStatus.kBuffering,ye.responseURL!=null){let Le=this._seekHandler.removeURLParameters(ye.responseURL);ye.responseURL!==this._currentRequestURL&&Le!==this._currentRedirectedURL&&(this._currentRedirectedURL=Le,this._onURLRedirect&&this._onURLRedirect(Le))}let be=ye.getResponseHeader("Content-Length");if(be!=null&&this._contentLength==null){let Le=parseInt(be);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:ye.status,msg:ye.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ye.status+" "+ye.statusText);else if(ye.readyState===3&&ye.status>=200&&ye.status<=299){this._status=LoaderStatus.kBuffering;let be=ye.response;this._reader.readAsArrayBuffer(be)}}_xhrOnError(ge){this._status=LoaderStatus.kError;let ye=LoaderErrors.EXCEPTION,be={code:-1,msg:ge.constructor.name+" "+ge.type};if(this._onError)this._onError(ye,be);else throw new RuntimeException(be.msg)}_msrOnProgress(ge){let be=ge.target.result;if(be==null){this._doReconnectIfNeeded();return}let Le=be.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=be.byteLength;let Ne=this._totalRange.from+this._receivedLength;this._receivedLength+=Le.byteLength,this._onDataArrival&&this._onDataArrival(Le,Ne,this._receivedLength),be.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){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let ge={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,ge,!0)}}_msrOnLoad(ge){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(ge){this._status=LoaderStatus.kError;let ye=0,be=null;if(this._contentLength&&this._receivedLength<this._contentLength?(ye=LoaderErrors.EARLY_EOF,be={code:-1,msg:"MSStream meet Early-Eof"}):(ye=LoaderErrors.EARLY_EOF,be={code:-1,msg:ge.constructor.name+" "+ge.type}),this._onError)this._onError(ye,be);else throw new RuntimeException(be.msg)}}var Se=null;class _e extends a{static isSupported(){try{let ge=new XMLHttpRequest;return ge.open("GET","https://example.com",!0),ge.responseType="arraybuffer",ge.responseType==="arraybuffer"}catch(ge){return pe.w("RangeLoader",ge.message),!1}}constructor(ge,ye){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=ge,this._config=ye,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new de,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(ge,ye){this._dataSource=ge,this._range=ye,this._status=re.kConnecting;let be=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(be=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!be?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let ge=this._currentChunkSizeKB*1024,ye=this._range.from+this._receivedLength,be=ye+ge;this._contentLength!=null&&be-this._range.from>=this._contentLength&&(be=this._range.from+this._contentLength-1),this._currentRequestRange={from:ye,to:be},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ge,ye){this._lastTimeLoaded=0;let be=ge.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?be=this._currentRedirectedURL:ge.redirectedURL!=null&&(be=ge.redirectedURL));let Le=this._seekHandler.getConfig(be,ye);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),ge.withCredentials&&(Ne.withCredentials=!0),typeof Le.headers=="object"){let et=Le.headers;for(let ct in et)et.hasOwnProperty(ct)&&Ne.setRequestHeader(ct,et[ct])}if(typeof this._config.headers=="object"){let et=this._config.headers;for(let ct in et)et.hasOwnProperty(ct)&&Ne.setRequestHeader(ct,et[ct])}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(ge){let ye=ge.target;if(ye.readyState===2){if(ye.responseURL!=null){let be=this._seekHandler.removeURLParameters(ye.responseURL);ye.responseURL!==this._currentRequestURL&&be!==this._currentRedirectedURL&&(this._currentRedirectedURL=be,this._onURLRedirect&&this._onURLRedirect(be))}if(ye.status>=200&&ye.status<=299){if(this._waitForTotalLength)return;this._status=re.kBuffering}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new le("RangeLoader: Http code invalid, "+ye.status+" "+ye.statusText)}}_onProgress(ge){if(this._status===re.kError)return;if(this._contentLength===null){let be=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,be=!0;let Le=ge.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,be){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let ye=ge.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ge.loaded,this._speedSampler.addBytes(ye)}_normalizeSpeed(ge){let ye=this._chunkSizeKBList,be=ye.length-1,Le=0,Ne=0,et=be;if(ge<ye[0])return ye[0];for(;Ne<=et;){if(Le=Ne+Math.floor((et-Ne)/2),Le===be||ge>=ye[Le]&&ge<ye[Le+1])return ye[Le];ye[Le]<ge?Ne=Le+1:et=Le-1}}_onLoad(ge){if(this._status===re.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let ye=this._speedSampler.lastSecondKBps;if(ye===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(ye=this._speedSampler.currentKBps)),ye!==0){let et=this._normalizeSpeed(ye);this._currentSpeedNormalized!==et&&(this._currentSpeedNormalized=et,this._currentChunkSizeKB=et)}let be=ge.target.response,Le=this._range.from+this._receivedLength;this._receivedLength+=be.byteLength;let Ne=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Ne=!0,this._onDataArrival&&this._onDataArrival(be,Le,this._receivedLength),Ne&&(this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(ge){this._status=re.kError;let ye=0,be=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(ye=ne.EARLY_EOF,be={code:-1,msg:"RangeLoader meet Early-Eof"}):(ye=ne.EXCEPTION,be={code:-1,msg:ge.constructor.name+" "+ge.type}),this._onError)this._onError(ye,be);else throw new le(be.msg)}}var xe=_e;class we extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(ge){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(ge){try{let ye=this._ws=new self.WebSocket(ge.url);ye.binaryType="arraybuffer",ye.onopen=this._onWebSocketOpen.bind(this),ye.onclose=this._onWebSocketClose.bind(this),ye.onmessage=this._onWebSocketMessage.bind(this),ye.onerror=this._onWebSocketError.bind(this),this._status=re.kConnecting}catch(ye){this._status=re.kError;let be={code:ye.code,msg:ye.message};if(this._onError)this._onError(ne.EXCEPTION,be);else throw new le(be.msg)}}abort(){let ge=this._ws;ge&&(ge.readyState===0||ge.readyState===1)&&(this._requestAbort=!0,ge.close()),this._ws=null,this._status=re.kComplete}_onWebSocketOpen(ge){this._status=re.kBuffering}_onWebSocketClose(ge){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=re.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(ge){if(ge.data instanceof ArrayBuffer)this._dispatchArrayBuffer(ge.data);else if(ge.data instanceof Blob){let ye=new FileReader;ye.onload=()=>{this._dispatchArrayBuffer(ye.result)},ye.readAsArrayBuffer(ge.data)}else{this._status=re.kError;let ye={code:-1,msg:"Unsupported WebSocket message type: "+ge.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,ye);else throw new le(ye.msg)}}_dispatchArrayBuffer(ge){let ye=ge,be=this._receivedLength;this._receivedLength+=ye.byteLength,this._onDataArrival&&this._onDataArrival(ye,be,this._receivedLength)}_onWebSocketError(ge){this._status=re.kError;let ye={code:ge.code,msg:ge.message};if(this._onError)this._onError(ne.EXCEPTION,ye);else throw new le(ye.msg)}}var Fe=we;class Me{constructor(ge){this._zeroStart=ge||!1}getConfig(ge,ye){let be={};if(ye.from!==0||ye.to!==-1){let Le;ye.to!==-1?Le=`bytes=${ye.from.toString()}-${ye.to.toString()}`:Le=`bytes=${ye.from.toString()}-`,be.Range=Le}else this._zeroStart&&(be.Range="bytes=0-");return{url:ge,headers:be}}removeURLParameters(ge){return ge}}var ut=Me;class Xe{constructor(ge,ye){this._startName=ge,this._endName=ye}getConfig(ge,ye){let be=ge;if(ye.from!==0||ye.to!==-1){let Le=!0;be.indexOf("?")===-1&&(be+="?",Le=!1),Le&&(be+="&"),be+=`${this._startName}=${ye.from.toString()}`,ye.to!==-1&&(be+=`&${this._endName}=${ye.to.toString()}`)}return{url:be,headers:{}}}removeURLParameters(ge){let ye=ge.split("?")[0],be,Le=ge.indexOf("?");Le!==-1&&(be=ge.substring(Le+1));let Ne="";if(be!=null&&be.length>0){let et=be.split("&");for(let ct=0;ct<et.length;ct++){let _n=et[ct].split("="),rn=ct>0;_n[0]!==this._startName&&_n[0]!==this._endName&&(rn&&(Ne+="&"),Ne+=et[ct])}}return Ne.length===0?ye:ye+"?"+Ne}}var mt=Xe;class Ae{constructor(ge,ye,be){this.TAG="IOController",this._config=ye,this._extraData=be,this._stashInitialSize=1024*384,ye.stashInitialSize!=null&&ye.stashInitialSize>0&&(this._stashInitialSize=ye.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,ye.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ge,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ge.url),this._refTotalLength=ge.filesize?ge.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(ge){this._extraData=ge}get onDataArrival(){return this._onDataArrival}set onDataArrival(ge){this._onDataArrival=ge}get onSeeked(){return this._onSeeked}set onSeeked(ge){this._onSeeked=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onComplete(){return this._onComplete}set onComplete(ge){this._onComplete=ge}get onRedirect(){return this._onRedirect}set onRedirect(ge){this._onRedirect=ge}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ge){this._onRecoveredEarlyEof=ge}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 ge=this._config;if(ge.seekType==="range")this._seekHandler=new ut(this._config.rangeLoadZeroStart);else if(ge.seekType==="param"){let ye=ge.seekParamStart||"bstart",be=ge.seekParamEnd||"bend";this._seekHandler=new mt(ye,be)}else if(ge.seekType==="custom"){if(typeof ge.customSeekHandler!="function")throw new se("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ge.customSeekHandler}else throw new se(`Invalid seekType in config: ${ge.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Fe;else if(ee.isSupported())this._loaderClass=ee;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(ge){this._currentRange={from:0,to:-1},ge&&(this._currentRange.from=ge),this._speedSampler.reset(),ge||(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 ge=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ge,!0)}}seek(ge){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ge,!0)}_internalSeek(ge,ye){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ye),this._loader.destroy(),this._loader=null;let be={from:ge,to:-1};this._currentRange={from:be.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,be),this._onSeeked&&this._onSeeked()}updateUrl(ge){if(!ge||typeof ge!="string"||ge.length===0)throw new se("Url must be a non-empty string!");this._dataSource.url=ge}_expandBuffer(ge){let ye=this._stashSize;for(;ye+1024*1024*1<ge;)ye*=2;if(ye+=1024*1024*1,ye===this._bufferSize)return;let be=new ArrayBuffer(ye);if(this._stashUsed>0){let Le=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(be,0,ye).set(Le,0)}this._stashBuffer=be,this._bufferSize=ye}_normalizeSpeed(ge){let ye=this._speedNormalizeList,be=ye.length-1,Le=0,Ne=0,et=be;if(ge<ye[0])return ye[0];for(;Ne<=et;){if(Le=Ne+Math.floor((et-Ne)/2),Le===be||ge>=ye[Le]&&ge<ye[Le+1])return ye[Le];ye[Le]<ge?Ne=Le+1:et=Le-1}}_adjustStashSize(ge){let ye=0;this._config.isLive||ge<512?ye=ge:ge>=512&&ge<=1024?ye=Math.floor(ge*1.5):ye=ge*2,ye>8192&&(ye=8192);let be=ye*1024+1024*1024*1;this._bufferSize<be&&this._expandBuffer(be),this._stashSize=ye*1024}_dispatchChunks(ge,ye){return this._currentRange.to=ye+ge.byteLength-1,this._onDataArrival(ge,ye)}_onURLRedirect(ge){this._redirectedURL=ge,this._onRedirect&&this._onRedirect(ge)}_onContentLengthKnown(ge){ge&&this._fullRequestFlag&&(this._totalLength=ge,this._fullRequestFlag=!1)}_onLoaderChunkArrival(ge,ye,be){if(!this._onDataArrival)throw new ue("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(ge.byteLength);let Le=this._speedSampler.lastSecondKBps;if(Le!==0){let Ne=this._normalizeSpeed(Le);this._speedNormalized!==Ne&&(this._speedNormalized=Ne,this._adjustStashSize(Ne))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ye),this._stashUsed+ge.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength;else{let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let et=this._stashBuffer.slice(0,this._stashUsed),ct=this._dispatchChunks(et,this._stashByteStart);if(ct<et.byteLength){if(ct>0){let _n=new Uint8Array(et,ct);Ne.set(_n,0),this._stashUsed=_n.byteLength,this._stashByteStart+=ct}}else this._stashUsed=0,this._stashByteStart+=ct;this._stashUsed+ge.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ge.byteLength),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength}else{let et=this._dispatchChunks(ge,ye);if(et<ge.byteLength){let ct=ge.byteLength-et;ct>this._bufferSize&&(this._expandBuffer(ct),Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ne.set(new Uint8Array(ge,et),0),this._stashUsed+=ct,this._stashByteStart=ye+et}}}else if(this._stashUsed===0){let Ne=this._dispatchChunks(ge,ye);if(Ne<ge.byteLength){let et=ge.byteLength-Ne;et>this._bufferSize&&this._expandBuffer(et),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ge,Ne),0),this._stashUsed+=et,this._stashByteStart=ye+Ne}}else{this._stashUsed+ge.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ge.byteLength);let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ne.set(new Uint8Array(ge),this._stashUsed),this._stashUsed+=ge.byteLength;let et=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(et<this._stashUsed&&et>0){let ct=new Uint8Array(this._stashBuffer,et);Ne.set(ct,0)}this._stashUsed-=et,this._stashByteStart+=et}}_flushStashBuffer(ge){if(this._stashUsed>0){let ye=this._stashBuffer.slice(0,this._stashUsed),be=this._dispatchChunks(ye,this._stashByteStart),Le=ye.byteLength-be;if(be<ye.byteLength)if(ge)pe.w(this.TAG,`${Le} bytes unconsumed data remain when flush buffer, dropped`);else{if(be>0){let Ne=new Uint8Array(this._stashBuffer,0,this._bufferSize),et=new Uint8Array(ye,be);Ne.set(et,0),this._stashUsed=et.byteLength,this._stashByteStart+=be}return 0}return this._stashUsed=0,this._stashByteStart=0,Le}return 0}_onLoaderComplete(ge,ye){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ge,ye){switch(pe.e(this.TAG,`Loader error, code = ${ye.code}, msg = ${ye.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ge=ne.UNRECOVERABLE_EARLY_EOF),ge){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let be=this._currentRange.to+1;be<this._totalLength&&(pe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(be,!1));return}ge=ne.UNRECOVERABLE_EARLY_EOF;break}case ne.UNRECOVERABLE_EARLY_EOF:case ne.CONNECTING_TIMEOUT:case ne.HTTP_STATUS_CODE_INVALID:case ne.EXCEPTION:break}if(this._onError)this._onError(ge,ye);else throw new le("IOException: "+ye.msg)}}var De=Ae;const Be={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function nt(){return Object.assign({},Be)}class Ke{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let ge=new De({},nt()),ye=ge.loaderType;return ge.destroy(),ye=="fetch-stream-loader"||ye=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let ge=new De({},nt()),ye=ge.loaderType;return ge.destroy(),ye}static supportNativeMediaPlayback(ge){Ke.videoElement==null&&(Ke.videoElement=window.document.createElement("video"));let ye=Ke.videoElement.canPlayType(ge);return ye==="probably"||ye=="maybe"}static getFeatureList(){let ge={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ge.mseFlvPlayback=Ke.supportMSEH264Playback(),ge.networkStreamIO=Ke.supportNetworkStreamIO(),ge.networkLoaderName=Ke.getNetworkLoaderTypeName(),ge.mseLiveFlvPlayback=ge.mseFlvPlayback&&ge.networkStreamIO,ge.nativeMP4H264Playback=Ke.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ge.nativeWebmVP8Playback=Ke.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ge.nativeWebmVP9Playback=Ke.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ge}}var Et=Ke,nn={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class on{static get forceGlobalTag(){return pe.FORCE_GLOBAL_TAG}static set forceGlobalTag(ge){pe.FORCE_GLOBAL_TAG=ge,on._notifyChange()}static get globalTag(){return pe.GLOBAL_TAG}static set globalTag(ge){pe.GLOBAL_TAG=ge,on._notifyChange()}static get enableAll(){return pe.ENABLE_VERBOSE&&pe.ENABLE_DEBUG&&pe.ENABLE_INFO&&pe.ENABLE_WARN&&pe.ENABLE_ERROR}static set enableAll(ge){pe.ENABLE_VERBOSE=ge,pe.ENABLE_DEBUG=ge,pe.ENABLE_INFO=ge,pe.ENABLE_WARN=ge,pe.ENABLE_ERROR=ge,on._notifyChange()}static get enableDebug(){return pe.ENABLE_DEBUG}static set enableDebug(ge){pe.ENABLE_DEBUG=ge,on._notifyChange()}static get enableVerbose(){return pe.ENABLE_VERBOSE}static set enableVerbose(ge){pe.ENABLE_VERBOSE=ge,on._notifyChange()}static get enableInfo(){return pe.ENABLE_INFO}static set enableInfo(ge){pe.ENABLE_INFO=ge,on._notifyChange()}static get enableWarn(){return pe.ENABLE_WARN}static set enableWarn(ge){pe.ENABLE_WARN=ge,on._notifyChange()}static get enableError(){return pe.ENABLE_ERROR}static set enableError(ge){pe.ENABLE_ERROR=ge,on._notifyChange()}static getConfig(){return{globalTag:pe.GLOBAL_TAG,forceGlobalTag:pe.FORCE_GLOBAL_TAG,enableVerbose:pe.ENABLE_VERBOSE,enableDebug:pe.ENABLE_DEBUG,enableInfo:pe.ENABLE_INFO,enableWarn:pe.ENABLE_WARN,enableError:pe.ENABLE_ERROR,enableCallback:pe.ENABLE_CALLBACK}}static applyConfig(ge){pe.GLOBAL_TAG=ge.globalTag,pe.FORCE_GLOBAL_TAG=ge.forceGlobalTag,pe.ENABLE_VERBOSE=ge.enableVerbose,pe.ENABLE_DEBUG=ge.enableDebug,pe.ENABLE_INFO=ge.enableInfo,pe.ENABLE_WARN=ge.enableWarn,pe.ENABLE_ERROR=ge.enableError,pe.ENABLE_CALLBACK=ge.enableCallback}static _notifyChange(){let ge=on.emitter;if(ge.listenerCount("change")>0){let ye=on.getConfig();ge.emit("change",ye)}}static registerListener(ge){on.emitter.addListener("change",ge)}static removeListener(ge){on.emitter.removeListener("change",ge)}static addLogListener(ge){pe.emitter.addListener("log",ge),pe.emitter.listenerCount("log")>0&&(pe.ENABLE_CALLBACK=!0,on._notifyChange())}static removeLogListener(ge){pe.emitter.removeListener("log",ge),pe.emitter.listenerCount("log")===0&&(pe.ENABLE_CALLBACK=!1,on._notifyChange())}}on.emitter=new(ve());var it=on;class lt{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 ge=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ye=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&ge&&ye}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ge){if(this.keyframesIndex==null)return null;let ye=this.keyframesIndex,be=this._search(ye.times,ge);return{index:be,milliseconds:ye.times[be],fileposition:ye.filepositions[be]}}_search(ge,ye){let be=0,Le=ge.length-1,Ne=0,et=0,ct=Le;for(ye<ge[0]&&(be=0,et=ct+1);et<=ct;)if(Ne=et+Math.floor((ct-et)/2),Ne===Le||ye>=ge[Ne]&&ye<ge[Ne+1]){be=Ne;break}else ge[Ne]<ye?et=Ne+1:ct=Ne-1;return be}}var xt=lt;function Jt(yn,ge,ye){let be=yn;if(ge+ye<be.length){for(;ye--;)if((be[++ge]&192)!==128)return!1;return!0}else return!1}function Vt(yn){let ge=[],ye=yn,be=0,Le=yn.length;for(;be<Le;){if(ye[be]<128){ge.push(String.fromCharCode(ye[be])),++be;continue}else if(!(ye[be]<192)){if(ye[be]<224){if(Jt(ye,be,1)){let Ne=(ye[be]&31)<<6|ye[be+1]&63;if(Ne>=128){ge.push(String.fromCharCode(Ne&65535)),be+=2;continue}}}else if(ye[be]<240){if(Jt(ye,be,2)){let Ne=(ye[be]&15)<<12|(ye[be+1]&63)<<6|ye[be+2]&63;if(Ne>=2048&&(Ne&63488)!==55296){ge.push(String.fromCharCode(Ne&65535)),be+=3;continue}}}else if(ye[be]<248&&Jt(ye,be,3)){let Ne=(ye[be]&7)<<18|(ye[be+1]&63)<<12|(ye[be+2]&63)<<6|ye[be+3]&63;if(Ne>65536&&Ne<1114112){Ne-=65536,ge.push(String.fromCharCode(Ne>>>10|55296)),ge.push(String.fromCharCode(Ne&1023|56320)),be+=4;continue}}}ge.push("\uFFFD"),++be}return ge.join("")}var xn=Vt;let He=function(){let yn=new ArrayBuffer(2);return new DataView(yn).setInt16(0,256,!0),new Int16Array(yn)[0]===256}();class un{static parseScriptData(ge,ye,be){let Le={};try{let Ne=un.parseValue(ge,ye,be),et=un.parseValue(ge,ye+Ne.size,be-Ne.size);Le[Ne.data]=et.data}catch(Ne){pe.e("AMF",Ne.toString())}return Le}static parseObject(ge,ye,be){if(be<3)throw new ue("Data not enough when parse ScriptDataObject");let Le=un.parseString(ge,ye,be),Ne=un.parseValue(ge,ye+Le.size,be-Le.size),et=Ne.objectEnd;return{data:{name:Le.data,value:Ne.data},size:Le.size+Ne.size,objectEnd:et}}static parseVariable(ge,ye,be){return un.parseObject(ge,ye,be)}static parseString(ge,ye,be){if(be<2)throw new ue("Data not enough when parse String");let Ne=new DataView(ge,ye,be).getUint16(0,!He),et;return Ne>0?et=xn(new Uint8Array(ge,ye+2,Ne)):et="",{data:et,size:2+Ne}}static parseLongString(ge,ye,be){if(be<4)throw new ue("Data not enough when parse LongString");let Ne=new DataView(ge,ye,be).getUint32(0,!He),et;return Ne>0?et=xn(new Uint8Array(ge,ye+4,Ne)):et="",{data:et,size:4+Ne}}static parseDate(ge,ye,be){if(be<10)throw new ue("Data size invalid when parse Date");let Le=new DataView(ge,ye,be),Ne=Le.getFloat64(0,!He),et=Le.getInt16(8,!He);return Ne+=et*60*1e3,{data:new Date(Ne),size:10}}static parseValue(ge,ye,be){if(be<1)throw new ue("Data not enough when parse Value");let Le=new DataView(ge,ye,be),Ne=1,et=Le.getUint8(0),ct,_n=!1;try{switch(et){case 0:ct=Le.getFloat64(1,!He),Ne+=8;break;case 1:{ct=!!Le.getUint8(1),Ne+=1;break}case 2:{let rn=un.parseString(ge,ye+1,be-1);ct=rn.data,Ne+=rn.size;break}case 3:{ct={};let rn=0;for((Le.getUint32(be-4,!He)&16777215)===9&&(rn=3);Ne<be-4;){let In=un.parseObject(ge,ye+Ne,be-Ne-rn);if(In.objectEnd)break;ct[In.data.name]=In.data.value,Ne+=In.size}Ne<=be-3&&(Le.getUint32(Ne-1,!He)&16777215)===9&&(Ne+=3);break}case 8:{ct={},Ne+=4;let rn=0;for((Le.getUint32(be-4,!He)&16777215)===9&&(rn=3);Ne<be-8;){let In=un.parseVariable(ge,ye+Ne,be-Ne-rn);if(In.objectEnd)break;ct[In.data.name]=In.data.value,Ne+=In.size}Ne<=be-3&&(Le.getUint32(Ne-1,!He)&16777215)===9&&(Ne+=3);break}case 9:ct=void 0,Ne=1,_n=!0;break;case 10:{ct=[];let rn=Le.getUint32(1,!He);Ne+=4;for(let In=0;In<rn;In++){let pr=un.parseValue(ge,ye+Ne,be-Ne);ct.push(pr.data),Ne+=pr.size}break}case 11:{let rn=un.parseDate(ge,ye+1,be-1);ct=rn.data,Ne+=rn.size;break}case 12:{let rn=un.parseString(ge,ye+1,be-1);ct=rn.data,Ne+=rn.size;break}default:Ne=be,pe.w("AMF","Unsupported AMF value type "+et)}}catch(rn){pe.e("AMF",rn.toString())}return{data:ct,size:Ne,objectEnd:_n}}}var kn=un;class nr{constructor(ge){this.TAG="ExpGolomb",this._buffer=ge,this._buffer_index=0,this._total_bytes=ge.byteLength,this._total_bits=ge.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let ge=this._total_bytes-this._buffer_index;if(ge<=0)throw new ue("ExpGolomb: _fillCurrentWord() but no bytes available");let ye=Math.min(4,ge),be=new Uint8Array(4);be.set(this._buffer.subarray(this._buffer_index,this._buffer_index+ye)),this._current_word=new DataView(be.buffer).getUint32(0,!1),this._buffer_index+=ye,this._current_word_bits_left=ye*8}readBits(ge){if(ge>32)throw new se("ExpGolomb: readBits() bits exceeded max 32bits!");if(ge<=this._current_word_bits_left){let et=this._current_word>>>32-ge;return this._current_word<<=ge,this._current_word_bits_left-=ge,et}let ye=this._current_word_bits_left?this._current_word:0;ye=ye>>>32-this._current_word_bits_left;let be=ge-this._current_word_bits_left;this._fillCurrentWord();let Le=Math.min(be,this._current_word_bits_left),Ne=this._current_word>>>32-Le;return this._current_word<<=Le,this._current_word_bits_left-=Le,ye=ye<<Le|Ne,ye}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let ge;for(ge=0;ge<this._current_word_bits_left;ge++)if(this._current_word&2147483648>>>ge)return this._current_word<<=ge,this._current_word_bits_left-=ge,ge;return this._fillCurrentWord(),ge+this._skipLeadingZero()}readUEG(){let ge=this._skipLeadingZero();return this.readBits(ge+1)-1}readSEG(){let ge=this.readUEG();return ge&1?ge+1>>>1:-1*(ge>>>1)}}var Ln=nr;class Gt{static _ebsp2rbsp(ge){let ye=ge,be=ye.byteLength,Le=new Uint8Array(be),Ne=0;for(let et=0;et<be;et++)et>=2&&ye[et]===3&&ye[et-1]===0&&ye[et-2]===0||(Le[Ne]=ye[et],Ne++);return new Uint8Array(Le.buffer,0,Ne)}static parseSPS(ge){let ye=Gt._ebsp2rbsp(ge),be=new Ln(ye);be.readByte();let Le=be.readByte();be.readByte();let Ne=be.readByte();be.readUEG();let et=Gt.getProfileString(Le),ct=Gt.getLevelString(Ne),_n=1,rn=420,In=[0,420,422,444],pr=8;if((Le===100||Le===110||Le===122||Le===244||Le===44||Le===83||Le===86||Le===118||Le===128||Le===138||Le===144)&&(_n=be.readUEG(),_n===3&&be.readBits(1),_n<=3&&(rn=In[_n]),pr=be.readUEG()+8,be.readUEG(),be.readBits(1),be.readBool())){let Kr=_n!==3?8:12;for(let lr=0;lr<Kr;lr++)be.readBool()&&(lr<6?Gt._skipScalingList(be,16):Gt._skipScalingList(be,64))}be.readUEG();let _r=be.readUEG();if(_r===0)be.readUEG();else if(_r===1){be.readBits(1),be.readSEG(),be.readSEG();let Kr=be.readUEG();for(let lr=0;lr<Kr;lr++)be.readSEG()}let Mt=be.readUEG();be.readBits(1);let ur=be.readUEG(),er=be.readUEG(),Tn=be.readBits(1);Tn===0&&be.readBits(1),be.readBits(1);let Un=0,sr=0,Zr=0,xr=0;be.readBool()&&(Un=be.readUEG(),sr=be.readUEG(),Zr=be.readUEG(),xr=be.readUEG());let Xo=1,br=1,_o=0,wi=!0,ti=0,hi=0;if(be.readBool()){if(be.readBool()){let Kr=be.readByte(),lr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ci=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Kr>0&&Kr<16?(Xo=lr[Kr-1],br=ci[Kr-1]):Kr===255&&(Xo=be.readByte()<<8|be.readByte(),br=be.readByte()<<8|be.readByte())}if(be.readBool()&&be.readBool(),be.readBool()&&(be.readBits(4),be.readBool()&&be.readBits(24)),be.readBool()&&(be.readUEG(),be.readUEG()),be.readBool()){let Kr=be.readBits(32),lr=be.readBits(32);wi=be.readBool(),ti=lr,hi=Kr*2,_o=ti/hi}}let Ya=1;(Xo!==1||br!==1)&&(Ya=Xo/br);let Ti=0,Bo=0;if(_n===0)Ti=1,Bo=2-Tn;else{let Kr=_n===3?1:2,lr=_n===1?2:1;Ti=Kr,Bo=lr*(2-Tn)}let Aa=(ur+1)*16,Bn=(2-Tn)*((er+1)*16);Aa-=(Un+sr)*Ti,Bn-=(Zr+xr)*Bo;let Sr=Math.ceil(Aa*Ya);return be.destroy(),be=null,{profile_string:et,level_string:ct,bit_depth:pr,ref_frames:Mt,chroma_format:rn,chroma_format_string:Gt.getChromaFormatString(rn),frame_rate:{fixed:wi,fps:_o,fps_den:hi,fps_num:ti},sar_ratio:{width:Xo,height:br},codec_size:{width:Aa,height:Bn},present_size:{width:Sr,height:Bn}}}static _skipScalingList(ge,ye){let be=8,Le=8,Ne=0;for(let et=0;et<ye;et++)Le!==0&&(Ne=ge.readSEG(),Le=(be+Ne+256)%256),be=Le===0?be:Le}static getProfileString(ge){switch(ge){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(ge){return(ge/10).toFixed(1)}static getChromaFormatString(ge){switch(ge){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var Je=Gt,_t={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function Rt(yn){return yn>>>8&255|(yn&255)<<8}function Yt(yn){return(yn&4278190080)>>>24|(yn&16711680)>>>8|(yn&65280)<<8|(yn&255)<<24}function gt(yn,ge){return yn[ge]<<24|yn[ge+1]<<16|yn[ge+2]<<8|yn[ge+3]}class wt{constructor(ge,ye){this.TAG="FLVDemuxer",this._config=ye,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ge.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ge.hasAudioTrack,this._hasVideo=ge.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new xt,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 be=new ArrayBuffer(2);return new DataView(be).setInt16(0,256,!0),new Int16Array(be)[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(ge){let ye=new Uint8Array(ge),be={match:!1};if(ye[0]!==70||ye[1]!==76||ye[2]!==86||ye[3]!==1)return be;let Le=(ye[4]&4)>>>2!==0,Ne=(ye[4]&1)!==0,et=gt(ye,5);return et<9?be:{match:!0,consumed:et,dataOffset:et,hasAudioTrack:Le,hasVideoTrack:Ne}}bindDataSource(ge){return ge.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ge){this._onTrackMetadata=ge}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ge){this._onMediaInfo=ge}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ge){this._onMetaDataArrived=ge}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ge){this._onScriptDataArrived=ge}get onError(){return this._onError}set onError(ge){this._onError=ge}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ge){this._onDataAvailable=ge}get timestampBase(){return this._timestampBase}set timestampBase(ge){this._timestampBase=ge}get overridedDuration(){return this._duration}set overridedDuration(ge){this._durationOverrided=!0,this._duration=ge,this._mediaInfo.duration=ge}set overridedHasAudio(ge){this._hasAudioFlagOverrided=!0,this._hasAudio=ge,this._mediaInfo.hasAudio=ge}set overridedHasVideo(ge){this._hasVideoFlagOverrided=!0,this._hasVideo=ge,this._mediaInfo.hasVideo=ge}resetMediaInfo(){this._mediaInfo=new xt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ge,ye){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new ue("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let be=0,Le=this._littleEndian;if(ye===0)if(ge.byteLength>13)be=wt.probe(ge).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ye+be!==this._dataOffset&&pe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ge,be).getUint32(0,!Le)!==0&&pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),be+=4);be<ge.byteLength;){this._dispatch=!0;let Ne=new DataView(ge,be);if(be+11+4>ge.byteLength)break;let et=Ne.getUint8(0),ct=Ne.getUint32(0,!Le)&16777215;if(be+11+ct+4>ge.byteLength)break;if(et!==8&&et!==9&&et!==18){pe.w(this.TAG,`Unsupported tag type ${et}, skipped`),be+=11+ct+4;continue}let _n=Ne.getUint8(4),rn=Ne.getUint8(5),In=Ne.getUint8(6),pr=Ne.getUint8(7),_r=In|rn<<8|_n<<16|pr<<24;(Ne.getUint32(7,!Le)&16777215)!==0&&pe.w(this.TAG,"Meet tag which has StreamID != 0!");let ur=be+11;switch(et){case 8:this._parseAudioData(ge,ur,ct,_r);break;case 9:this._parseVideoData(ge,ur,ct,_r,ye+be);break;case 18:this._parseScriptData(ge,ur,ct);break}let er=Ne.getUint32(11+ct,!Le);er!==11+ct&&pe.w(this.TAG,`Invalid PrevTagSize ${er}`),be+=11+ct+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),be}_parseScriptData(ge,ye,be){let Le=kn.parseScriptData(ge,ye,be);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 et=Math.floor(Ne.duration*this._timescale);this._duration=et,this._mediaInfo.duration=et}}else this._mediaInfo.duration=0;if(typeof Ne.framerate=="number"){let et=Math.floor(Ne.framerate*1e3);if(et>0){let ct=et/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=ct,this._referenceFrameRate.fps_num=et,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=ct}}if(typeof Ne.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let et=Ne.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(et),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(ge){let ye=[],be=[];for(let Le=1;Le<ge.times.length;Le++){let Ne=this._timestampBase+Math.floor(ge.times[Le]*1e3);ye.push(Ne),be.push(ge.filepositions[Le])}return{times:ye,filepositions:be}}_parseAudioData(ge,ye,be,Le){if(be<=1){pe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Ne=this._littleEndian,ct=new DataView(ge,ye,be).getUint8(0),_n=ct>>>4;if(_n!==2&&_n!==10){this._onError(_t.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+_n);return}let rn=0,In=(ct&12)>>>2;if(In>=0&&In<=4)rn=this._flvSoundRateTable[In];else{this._onError(_t.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+In);return}let pr=(ct&2)>>>1,_r=ct&1,Mt=this._audioMetadata,ur=this._audioTrack;if(Mt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Mt=this._audioMetadata={},Mt.type="audio",Mt.id=ur.id,Mt.timescale=this._timescale,Mt.duration=this._duration,Mt.audioSampleRate=rn,Mt.channelCount=_r===0?1:2),_n===10){let er=this._parseAACAudioData(ge,ye+1,be-1);if(er==null)return;if(er.packetType===0){Mt.config&&pe.w(this.TAG,"Found another AudioSpecificConfig!");let Tn=er.data;Mt.audioSampleRate=Tn.samplingRate,Mt.channelCount=Tn.channelCount,Mt.codec=Tn.codec,Mt.originalCodec=Tn.originalCodec,Mt.config=Tn.config,Mt.refSampleDuration=1024/Mt.audioSampleRate*Mt.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",Mt);let Un=this._mediaInfo;Un.audioCodec=Mt.originalCodec,Un.audioSampleRate=Mt.audioSampleRate,Un.audioChannelCount=Mt.channelCount,Un.hasVideo?Un.videoCodec!=null&&(Un.mimeType='video/x-flv; codecs="'+Un.videoCodec+","+Un.audioCodec+'"'):Un.mimeType='video/x-flv; codecs="'+Un.audioCodec+'"',Un.isComplete()&&this._onMediaInfo(Un)}else if(er.packetType===1){let Tn=this._timestampBase+Le,Un={unit:er.data,length:er.data.byteLength,dts:Tn,pts:Tn};ur.samples.push(Un),ur.length+=er.data.length}else pe.e(this.TAG,`Flv: Unsupported AAC data type ${er.packetType}`)}else if(_n===2){if(!Mt.codec){let sr=this._parseMP3AudioData(ge,ye+1,be-1,!0);if(sr==null)return;Mt.audioSampleRate=sr.samplingRate,Mt.channelCount=sr.channelCount,Mt.codec=sr.codec,Mt.originalCodec=sr.originalCodec,Mt.refSampleDuration=1152/Mt.audioSampleRate*Mt.timescale,pe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Mt);let Zr=this._mediaInfo;Zr.audioCodec=Mt.codec,Zr.audioSampleRate=Mt.audioSampleRate,Zr.audioChannelCount=Mt.channelCount,Zr.audioDataRate=sr.bitRate,Zr.hasVideo?Zr.videoCodec!=null&&(Zr.mimeType='video/x-flv; codecs="'+Zr.videoCodec+","+Zr.audioCodec+'"'):Zr.mimeType='video/x-flv; codecs="'+Zr.audioCodec+'"',Zr.isComplete()&&this._onMediaInfo(Zr)}let er=this._parseMP3AudioData(ge,ye+1,be-1,!1);if(er==null)return;let Tn=this._timestampBase+Le,Un={unit:er,length:er.byteLength,dts:Tn,pts:Tn};ur.samples.push(Un),ur.length+=er.length}}_parseAACAudioData(ge,ye,be){if(be<=1){pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Le={},Ne=new Uint8Array(ge,ye,be);return Le.packetType=Ne[0],Ne[0]===0?Le.data=this._parseAACAudioSpecificConfig(ge,ye+1,be-1):Le.data=Ne.subarray(1),Le}_parseAACAudioSpecificConfig(ge,ye,be){let Le=new Uint8Array(ge,ye,be),Ne=null,et=0,ct=0,_n=null,rn=0,In=null;if(et=ct=Le[0]>>>3,rn=(Le[0]&7)<<1|Le[1]>>>7,rn<0||rn>=this._mpegSamplingRates.length){this._onError(_t.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let pr=this._mpegSamplingRates[rn],_r=(Le[1]&120)>>>3;if(_r<0||_r>=8){this._onError(_t.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}et===5&&(In=(Le[1]&7)<<1|Le[2]>>>7,_n=(Le[2]&124)>>>2);let Mt=self.navigator.userAgent.toLowerCase();return Mt.indexOf("firefox")!==-1?rn>=6?(et=5,Ne=new Array(4),In=rn-3):(et=2,Ne=new Array(2),In=rn):Mt.indexOf("android")!==-1?(et=2,Ne=new Array(2),In=rn):(et=5,In=rn,Ne=new Array(4),rn>=6?In=rn-3:_r===1&&(et=2,Ne=new Array(2),In=rn)),Ne[0]=et<<3,Ne[0]|=(rn&15)>>>1,Ne[1]=(rn&15)<<7,Ne[1]|=(_r&15)<<3,et===5&&(Ne[1]|=(In&15)>>>1,Ne[2]=(In&1)<<7,Ne[2]|=8,Ne[3]=0),{config:Ne,samplingRate:pr,channelCount:_r,codec:"mp4a.40."+et,originalCodec:"mp4a.40."+ct}}_parseMP3AudioData(ge,ye,be,Le){if(be<4){pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Ne=this._littleEndian,et=new Uint8Array(ge,ye,be),ct=null;if(Le){if(et[0]!==255)return;let _n=et[1]>>>3&3,rn=(et[1]&6)>>1,In=(et[2]&240)>>>4,pr=(et[2]&12)>>>2,Mt=(et[3]>>>6&3)!==3?2:1,ur=0,er=0,Tn=34,Un="mp3";switch(_n){case 0:ur=this._mpegAudioV25SampleRateTable[pr];break;case 2:ur=this._mpegAudioV20SampleRateTable[pr];break;case 3:ur=this._mpegAudioV10SampleRateTable[pr];break}switch(rn){case 1:Tn=34,In<this._mpegAudioL3BitRateTable.length&&(er=this._mpegAudioL3BitRateTable[In]);break;case 2:Tn=33,In<this._mpegAudioL2BitRateTable.length&&(er=this._mpegAudioL2BitRateTable[In]);break;case 3:Tn=32,In<this._mpegAudioL1BitRateTable.length&&(er=this._mpegAudioL1BitRateTable[In]);break}ct={bitRate:er,samplingRate:ur,channelCount:Mt,codec:Un,originalCodec:Un}}else ct=et;return ct}_parseVideoData(ge,ye,be,Le,Ne){if(be<=1){pe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let et=new Uint8Array(ge,ye,be)[0],ct=(et&240)>>>4,_n=et&15;if(_n!==7){this._onError(_t.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${_n}`);return}this._parseAVCVideoPacket(ge,ye+1,be-1,Le,Ne,ct)}_parseAVCVideoPacket(ge,ye,be,Le,Ne,et){if(be<4){pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let ct=this._littleEndian,_n=new DataView(ge,ye,be),rn=_n.getUint8(0),pr=(_n.getUint32(0,!ct)&16777215)<<8>>8;if(rn===0)this._parseAVCDecoderConfigurationRecord(ge,ye+4,be-4);else if(rn===1)this._parseAVCVideoData(ge,ye+4,be-4,Le,Ne,et,pr);else if(rn!==2){this._onError(_t.FORMAT_ERROR,`Flv: Invalid video packet type ${rn}`);return}}_parseAVCDecoderConfigurationRecord(ge,ye,be){if(be<7){pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Le=this._videoMetadata,Ne=this._videoTrack,et=this._littleEndian,ct=new DataView(ge,ye,be);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 _n=ct.getUint8(0),rn=ct.getUint8(1),In=ct.getUint8(2),pr=ct.getUint8(3);if(_n!==1||rn===0){this._onError(_t.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ct.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(_t.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let _r=ct.getUint8(5)&31;if(_r===0){this._onError(_t.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else _r>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${_r}`);let Mt=6;for(let er=0;er<_r;er++){let Tn=ct.getUint16(Mt,!et);if(Mt+=2,Tn===0)continue;let Un=new Uint8Array(ge,ye+Mt,Tn);Mt+=Tn;let sr=Je.parseSPS(Un);if(er!==0)continue;Le.codecWidth=sr.codec_size.width,Le.codecHeight=sr.codec_size.height,Le.presentWidth=sr.present_size.width,Le.presentHeight=sr.present_size.height,Le.profile=sr.profile_string,Le.level=sr.level_string,Le.bitDepth=sr.bit_depth,Le.chromaFormat=sr.chroma_format,Le.sarRatio=sr.sar_ratio,Le.frameRate=sr.frame_rate,(sr.frame_rate.fixed===!1||sr.frame_rate.fps_num===0||sr.frame_rate.fps_den===0)&&(Le.frameRate=this._referenceFrameRate);let Zr=Le.frameRate.fps_den,xr=Le.frameRate.fps_num;Le.refSampleDuration=Le.timescale*(Zr/xr);let Gi=Un.subarray(1,4),Xo="avc1.";for(let _o=0;_o<3;_o++){let wi=Gi[_o].toString(16);wi.length<2&&(wi="0"+wi),Xo+=wi}Le.codec=Xo;let br=this._mediaInfo;br.width=Le.codecWidth,br.height=Le.codecHeight,br.fps=Le.frameRate.fps,br.profile=Le.profile,br.level=Le.level,br.refFrames=sr.ref_frames,br.chromaFormat=sr.chroma_format_string,br.sarNum=Le.sarRatio.width,br.sarDen=Le.sarRatio.height,br.videoCodec=Xo,br.hasAudio?br.audioCodec!=null&&(br.mimeType='video/x-flv; codecs="'+br.videoCodec+","+br.audioCodec+'"'):br.mimeType='video/x-flv; codecs="'+br.videoCodec+'"',br.isComplete()&&this._onMediaInfo(br)}let ur=ct.getUint8(Mt);if(ur===0){this._onError(_t.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ur>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${ur}`);Mt++;for(let er=0;er<ur;er++){let Tn=ct.getUint16(Mt,!et);Mt+=2,Tn!==0&&(Mt+=Tn)}Le.avcc=new Uint8Array(be),Le.avcc.set(new Uint8Array(ge,ye,be),0),pe.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",Le)}_parseAVCVideoData(ge,ye,be,Le,Ne,et,ct){let _n=this._littleEndian,rn=new DataView(ge,ye,be),In=[],pr=0,_r=0;const Mt=this._naluLengthSize;let ur=this._timestampBase+Le,er=et===1;for(;_r<be;){if(_r+4>=be){pe.w(this.TAG,`Malformed Nalu near timestamp ${ur}, offset = ${_r}, dataSize = ${be}`);break}let Tn=rn.getUint32(_r,!_n);if(Mt===3&&(Tn>>>=8),Tn>be-Mt){pe.w(this.TAG,`Malformed Nalus near timestamp ${ur}, NaluSize > DataSize!`);return}let Un=rn.getUint8(_r+Mt)&31;Un===5&&(er=!0);let sr=new Uint8Array(ge,ye+_r,Mt+Tn),Zr={type:Un,data:sr};In.push(Zr),pr+=sr.byteLength,_r+=Mt+Tn}if(In.length){let Tn=this._videoTrack,Un={units:In,length:pr,isKeyframe:er,dts:ur,cts:ct,pts:ur+ct};er&&(Un.fileposition=Ne),Tn.samples.push(Un),Tn.length+=pr}}}var Dt=wt;class tt{static init(){tt.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let ye in tt.types)tt.types.hasOwnProperty(ye)&&(tt.types[ye]=[ye.charCodeAt(0),ye.charCodeAt(1),ye.charCodeAt(2),ye.charCodeAt(3)]);let ge=tt.constants={};ge.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ge.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ge.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ge.STSC=ge.STCO=ge.STTS,ge.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ge.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]),ge.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]),ge.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ge.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ge.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ge){let ye=8,be=null,Le=Array.prototype.slice.call(arguments,1),Ne=Le.length;for(let ct=0;ct<Ne;ct++)ye+=Le[ct].byteLength;be=new Uint8Array(ye),be[0]=ye>>>24&255,be[1]=ye>>>16&255,be[2]=ye>>>8&255,be[3]=ye&255,be.set(ge,4);let et=8;for(let ct=0;ct<Ne;ct++)be.set(Le[ct],et),et+=Le[ct].byteLength;return be}static generateInitSegment(ge){let ye=tt.box(tt.types.ftyp,tt.constants.FTYP),be=tt.moov(ge),Le=new Uint8Array(ye.byteLength+be.byteLength);return Le.set(ye,0),Le.set(be,ye.byteLength),Le}static moov(ge){let ye=tt.mvhd(ge.timescale,ge.duration),be=tt.trak(ge),Le=tt.mvex(ge);return tt.box(tt.types.moov,ye,be,Le)}static mvhd(ge,ye){return tt.box(tt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(ge){return tt.box(tt.types.trak,tt.tkhd(ge),tt.mdia(ge))}static tkhd(ge){let ye=ge.id,be=ge.duration,Le=ge.presentWidth,Ne=ge.presentHeight;return tt.box(tt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,0,0,0,be>>>24&255,be>>>16&255,be>>>8&255,be&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(ge){return tt.box(tt.types.mdia,tt.mdhd(ge),tt.hdlr(ge),tt.minf(ge))}static mdhd(ge){let ye=ge.timescale,be=ge.duration;return tt.box(tt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,be>>>24&255,be>>>16&255,be>>>8&255,be&255,85,196,0,0]))}static hdlr(ge){let ye=null;return ge.type==="audio"?ye=tt.constants.HDLR_AUDIO:ye=tt.constants.HDLR_VIDEO,tt.box(tt.types.hdlr,ye)}static minf(ge){let ye=null;return ge.type==="audio"?ye=tt.box(tt.types.smhd,tt.constants.SMHD):ye=tt.box(tt.types.vmhd,tt.constants.VMHD),tt.box(tt.types.minf,ye,tt.dinf(),tt.stbl(ge))}static dinf(){return tt.box(tt.types.dinf,tt.box(tt.types.dref,tt.constants.DREF))}static stbl(ge){return tt.box(tt.types.stbl,tt.stsd(ge),tt.box(tt.types.stts,tt.constants.STTS),tt.box(tt.types.stsc,tt.constants.STSC),tt.box(tt.types.stsz,tt.constants.STSZ),tt.box(tt.types.stco,tt.constants.STCO))}static stsd(ge){return ge.type==="audio"?ge.codec==="mp3"?tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.mp3(ge)):tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.mp4a(ge)):tt.box(tt.types.stsd,tt.constants.STSD_PREFIX,tt.avc1(ge))}static mp3(ge){let ye=ge.channelCount,be=ge.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ye,0,16,0,0,0,0,be>>>8&255,be&255,0,0]);return tt.box(tt.types[".mp3"],Le)}static mp4a(ge){let ye=ge.channelCount,be=ge.audioSampleRate,Le=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ye,0,16,0,0,0,0,be>>>8&255,be&255,0,0]);return tt.box(tt.types.mp4a,Le,tt.esds(ge))}static esds(ge){let ye=ge.config||[],be=ye.length,Le=new Uint8Array([0,0,0,0,3,23+be,0,1,0,4,15+be,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([be]).concat(ye).concat([6,1,2]));return tt.box(tt.types.esds,Le)}static avc1(ge){let ye=ge.avcc,be=ge.codecWidth,Le=ge.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,be>>>8&255,be&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 tt.box(tt.types.avc1,Ne,tt.box(tt.types.avcC,ye))}static mvex(ge){return tt.box(tt.types.mvex,tt.trex(ge))}static trex(ge){let ye=ge.id,be=new Uint8Array([0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return tt.box(tt.types.trex,be)}static moof(ge,ye){return tt.box(tt.types.moof,tt.mfhd(ge.sequenceNumber),tt.traf(ge,ye))}static mfhd(ge){let ye=new Uint8Array([0,0,0,0,ge>>>24&255,ge>>>16&255,ge>>>8&255,ge&255]);return tt.box(tt.types.mfhd,ye)}static traf(ge,ye){let be=ge.id,Le=tt.box(tt.types.tfhd,new Uint8Array([0,0,0,0,be>>>24&255,be>>>16&255,be>>>8&255,be&255])),Ne=tt.box(tt.types.tfdt,new Uint8Array([0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255])),et=tt.sdtp(ge),ct=tt.trun(ge,et.byteLength+16+16+8+16+8+8);return tt.box(tt.types.traf,Le,Ne,ct,et)}static sdtp(ge){let ye=ge.samples||[],be=ye.length,Le=new Uint8Array(4+be);for(let Ne=0;Ne<be;Ne++){let et=ye[Ne].flags;Le[Ne+4]=et.isLeading<<6|et.dependsOn<<4|et.isDependedOn<<2|et.hasRedundancy}return tt.box(tt.types.sdtp,Le)}static trun(ge,ye){let be=ge.samples||[],Le=be.length,Ne=12+16*Le,et=new Uint8Array(Ne);ye+=8+Ne,et.set([0,0,15,1,Le>>>24&255,Le>>>16&255,Le>>>8&255,Le&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255],0);for(let ct=0;ct<Le;ct++){let _n=be[ct].duration,rn=be[ct].size,In=be[ct].flags,pr=be[ct].cts;et.set([_n>>>24&255,_n>>>16&255,_n>>>8&255,_n&255,rn>>>24&255,rn>>>16&255,rn>>>8&255,rn&255,In.isLeading<<2|In.dependsOn,In.isDependedOn<<6|In.hasRedundancy<<4|In.isNonSync,0,0,pr>>>24&255,pr>>>16&255,pr>>>8&255,pr&255],12+16*ct)}return tt.box(tt.types.trun,et)}static mdat(ge){return tt.box(tt.types.mdat,ge)}}tt.init();var fn=tt;class hn{static getSilentFrame(ge,ye){if(ge==="mp4a.40.2"){if(ye===1)return new Uint8Array([0,200,0,128,35,128]);if(ye===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ye===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ye===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ye===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ye===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ye===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ye===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ye===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var $n=hn;class no{constructor(ge,ye,be,Le,Ne){this.dts=ge,this.pts=ye,this.duration=be,this.originalDts=Le,this.isSyncPoint=Ne,this.fileposition=null}}class rt{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(ge){ge.isSyncPoint=!0,this.syncPoints.push(ge)}}class vt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ge){let ye=this._list;ge.length!==0&&(ye.length>0&&ge[0].originalDts<ye[ye.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ye,ge))}getLastSyncPointBeforeDts(ge){if(this._list.length==0)return null;let ye=this._list,be=0,Le=ye.length-1,Ne=0,et=0,ct=Le;for(ge<ye[0].dts&&(be=0,et=ct+1);et<=ct;)if(Ne=et+Math.floor((ct-et)/2),Ne===Le||ge>=ye[Ne].dts&&ge<ye[Ne+1].dts){be=Ne;break}else ye[Ne].dts<ge?et=Ne+1:ct=Ne-1;return this._list[be]}}class An{constructor(ge){this._type=ge,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(ge){let ye=this._list;if(ye.length===0)return-2;let be=ye.length-1,Le=0,Ne=0,et=be,ct=0;if(ge<ye[0].originalBeginDts)return ct=-1,ct;for(;Ne<=et;)if(Le=Ne+Math.floor((et-Ne)/2),Le===be||ge>ye[Le].lastSample.originalDts&&ge<ye[Le+1].originalBeginDts){ct=Le;break}else ye[Le].originalBeginDts<ge?Ne=Le+1:et=Le-1;return ct}_searchNearestSegmentAfter(ge){return this._searchNearestSegmentBefore(ge)+1}append(ge){let ye=this._list,be=ge,Le=this._lastAppendLocation,Ne=0;Le!==-1&&Le<ye.length&&be.originalBeginDts>=ye[Le].lastSample.originalDts&&(Le===ye.length-1||Le<ye.length-1&&be.originalBeginDts<ye[Le+1].originalBeginDts)?Ne=Le+1:ye.length>0&&(Ne=this._searchNearestSegmentBefore(be.originalBeginDts)+1),this._lastAppendLocation=Ne,this._list.splice(Ne,0,be)}getLastSegmentBefore(ge){let ye=this._searchNearestSegmentBefore(ge);return ye>=0?this._list[ye]:null}getLastSampleBefore(ge){let ye=this.getLastSegmentBefore(ge);return ye!=null?ye.lastSample:null}getLastSyncPointBefore(ge){let ye=this._searchNearestSegmentBefore(ge),be=this._list[ye].syncPoints;for(;be.length===0&&ye>0;)ye--,be=this._list[ye].syncPoints;return be.length>0?be[be.length-1]:null}}class Zt{constructor(ge){this.TAG="MP4Remuxer",this._config=ge,this._isLive=ge.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 An("audio"),this._videoSegmentInfoList=new An("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(ge){return ge.onDataAvailable=this.remux.bind(this),ge.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ge){this._onInitSegment=ge}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ge){this._onMediaSegment=ge}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ge){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ge,ye){if(!this._onMediaSegment)throw new ue("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ge,ye),this._remuxVideo(ye),this._remuxAudio(ge)}_onTrackMetadataReceived(ge,ye){let be=null,Le="mp4",Ne=ye.codec;if(ge==="audio")this._audioMeta=ye,ye.codec==="mp3"&&this._mp3UseMpegAudio?(Le="mpeg",Ne="",be=new Uint8Array):be=fn.generateInitSegment(ye);else if(ge==="video")this._videoMeta=ye,be=fn.generateInitSegment(ye);else return;if(!this._onInitSegment)throw new ue("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ge,{type:ge,data:be.buffer,codec:Ne,container:`${ge}/${Le}`,mediaDuration:ye.duration})}_calculateDtsBase(ge,ye){this._dtsBaseInited||(ge.samples&&ge.samples.length&&(this._audioDtsBase=ge.samples[0].dts),ye.samples&&ye.samples.length&&(this._videoDtsBase=ye.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ge=this._videoStashedLastSample,ye=this._audioStashedLastSample,be={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ge!=null&&(be.samples.push(ge),be.length=ge.length);let Le={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ye!=null&&(Le.samples.push(ye),Le.length=ye.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(be,!0),this._remuxAudio(Le,!0)}_remuxAudio(ge,ye){if(this._audioMeta==null)return;let be=ge,Le=be.samples,Ne,et=-1,ct=-1,_n=-1,rn=this._audioMeta.refSampleDuration,In=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,pr=this._dtsBaseInited&&this._audioNextDts===void 0,_r=!1;if(!Le||Le.length===0||Le.length===1&&!ye)return;let Mt=0,ur=null,er=0;In?(Mt=0,er=be.length):(Mt=8,er=8+be.length);let Tn=null;if(Le.length>1&&(Tn=Le.pop(),er-=Tn.length),this._audioStashedLastSample!=null){let br=this._audioStashedLastSample;this._audioStashedLastSample=null,Le.unshift(br),er+=br.length}Tn!=null&&(this._audioStashedLastSample=Tn);let Un=Le[0].dts-this._dtsBase;if(this._audioNextDts)Ne=Un-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ne=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(_r=!0);else{let br=this._audioSegmentInfoList.getLastSampleBefore(Un);if(br!=null){let _o=Un-(br.originalDts+br.duration);_o<=3&&(_o=0);let wi=br.dts+br.duration+_o;Ne=Un-wi}else Ne=0}if(_r){let br=Un-Ne,_o=this._videoSegmentInfoList.getLastSegmentBefore(Un);if(_o!=null&&_o.beginDts<br){let wi=$n.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(wi){let ti=_o.beginDts,hi=br-_o.beginDts;pe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${ti}, duration: ${hi}`),Le.unshift({unit:wi,dts:ti,pts:ti}),er+=wi.byteLength}}else _r=!1}let sr=[];for(let br=0;br<Le.length;br++){let _o=Le[br],wi=_o.unit,ti=_o.dts-this._dtsBase,hi=ti-Ne;et===-1&&(et=hi);let pn=0;br!==Le.length-1?pn=Le[br+1].dts-this._dtsBase-Ne-hi:Tn!=null?pn=Tn.dts-this._dtsBase-Ne-hi:sr.length>=1?pn=sr[sr.length-1].duration:pn=Math.floor(rn);let Ya=!1,Ti=null;if(pn>rn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Ya=!0;let Bo=Math.abs(pn-rn),Aa=Math.ceil(Bo/rn),Bn=hi+rn;pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${hi+pn} ms, expected: ${hi+Math.round(rn)} ms, delta: ${Math.round(Bo)} ms, generate: ${Aa} frames`);let Sr=$n.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Sr==null&&(pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Sr=wi),Ti=[];for(let lr=0;lr<Aa;lr++){let ci=Math.round(Bn);if(Ti.length>0){let ra=Ti[Ti.length-1];ra.duration=ci-ra.dts}let Li={dts:ci,pts:ci,cts:0,unit:Sr,size:Sr.byteLength,duration:0,originalDts:ti,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ti.push(Li),er+=Li.size,Bn+=rn}let Kr=Ti[Ti.length-1];Kr.duration=hi+pn-Kr.dts,pn=Math.round(rn)}sr.push({dts:hi,pts:hi,cts:0,unit:_o.unit,size:_o.unit.byteLength,duration:pn,originalDts:ti,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ya&&sr.push.apply(sr,Ti)}In?ur=new Uint8Array(er):(ur=new Uint8Array(er),ur[0]=er>>>24&255,ur[1]=er>>>16&255,ur[2]=er>>>8&255,ur[3]=er&255,ur.set(fn.types.mdat,4));for(let br=0;br<sr.length;br++){let _o=sr[br].unit;ur.set(_o,Mt),Mt+=_o.byteLength}let Zr=sr[sr.length-1];ct=Zr.dts+Zr.duration,this._audioNextDts=ct;let xr=new rt;xr.beginDts=et,xr.endDts=ct,xr.beginPts=et,xr.endPts=ct,xr.originalBeginDts=sr[0].originalDts,xr.originalEndDts=Zr.originalDts+Zr.duration,xr.firstSample=new no(sr[0].dts,sr[0].pts,sr[0].duration,sr[0].originalDts,!1),xr.lastSample=new no(Zr.dts,Zr.pts,Zr.duration,Zr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(xr),be.samples=sr,be.sequenceNumber++;let Gi=null;In?Gi=new Uint8Array:Gi=fn.moof(be,et),be.samples=[],be.length=0;let Xo={type:"audio",data:this._mergeBoxes(Gi,ur).buffer,sampleCount:sr.length,info:xr};In&&pr&&(Xo.timestampOffset=et),this._onMediaSegment("audio",Xo)}_remuxVideo(ge,ye){if(this._videoMeta==null)return;let be=ge,Le=be.samples,Ne,et=-1,ct=-1,_n=-1,rn=-1;if(!Le||Le.length===0||Le.length===1&&!ye)return;let In=8,pr=null,_r=8+ge.length,Mt=null;if(Le.length>1&&(Mt=Le.pop(),_r-=Mt.length),this._videoStashedLastSample!=null){let Zr=this._videoStashedLastSample;this._videoStashedLastSample=null,Le.unshift(Zr),_r+=Zr.length}Mt!=null&&(this._videoStashedLastSample=Mt);let ur=Le[0].dts-this._dtsBase;if(this._videoNextDts)Ne=ur-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ne=0;else{let Zr=this._videoSegmentInfoList.getLastSampleBefore(ur);if(Zr!=null){let xr=ur-(Zr.originalDts+Zr.duration);xr<=3&&(xr=0);let Gi=Zr.dts+Zr.duration+xr;Ne=ur-Gi}else Ne=0}let er=new rt,Tn=[];for(let Zr=0;Zr<Le.length;Zr++){let xr=Le[Zr],Gi=xr.dts-this._dtsBase,Xo=xr.isKeyframe,br=Gi-Ne,_o=xr.cts,wi=br+_o;et===-1&&(et=br,_n=wi);let ti=0;if(Zr!==Le.length-1?ti=Le[Zr+1].dts-this._dtsBase-Ne-br:Mt!=null?ti=Mt.dts-this._dtsBase-Ne-br:Tn.length>=1?ti=Tn[Tn.length-1].duration:ti=Math.floor(this._videoMeta.refSampleDuration),Xo){let hi=new no(br,wi,ti,xr.dts,!0);hi.fileposition=xr.fileposition,er.appendSyncPoint(hi)}Tn.push({dts:br,pts:wi,cts:_o,units:xr.units,size:xr.length,isKeyframe:Xo,duration:ti,originalDts:Gi,flags:{isLeading:0,dependsOn:Xo?2:1,isDependedOn:Xo?1:0,hasRedundancy:0,isNonSync:Xo?0:1}})}pr=new Uint8Array(_r),pr[0]=_r>>>24&255,pr[1]=_r>>>16&255,pr[2]=_r>>>8&255,pr[3]=_r&255,pr.set(fn.types.mdat,4);for(let Zr=0;Zr<Tn.length;Zr++){let xr=Tn[Zr].units;for(;xr.length;){let Xo=xr.shift().data;pr.set(Xo,In),In+=Xo.byteLength}}let Un=Tn[Tn.length-1];if(ct=Un.dts+Un.duration,rn=Un.pts+Un.duration,this._videoNextDts=ct,er.beginDts=et,er.endDts=ct,er.beginPts=_n,er.endPts=rn,er.originalBeginDts=Tn[0].originalDts,er.originalEndDts=Un.originalDts+Un.duration,er.firstSample=new no(Tn[0].dts,Tn[0].pts,Tn[0].duration,Tn[0].originalDts,Tn[0].isKeyframe),er.lastSample=new no(Un.dts,Un.pts,Un.duration,Un.originalDts,Un.isKeyframe),this._isLive||this._videoSegmentInfoList.append(er),be.samples=Tn,be.sequenceNumber++,this._forceFirstIDR){let Zr=Tn[0].flags;Zr.dependsOn=2,Zr.isNonSync=0}let sr=fn.moof(be,et);be.samples=[],be.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(sr,pr).buffer,sampleCount:Tn.length,info:er})}_mergeBoxes(ge,ye){let be=new Uint8Array(ge.byteLength+ye.byteLength);return be.set(ge,0),be.set(ye,ge.byteLength),be}}var yt=Zt,Xt={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class qn{constructor(ge,ye){this.TAG="TransmuxingController",this._emitter=new(ve()),this._config=ye,ge.segments||(ge.segments=[{duration:ge.duration,filesize:ge.filesize,url:ge.url}]),typeof ge.cors!="boolean"&&(ge.cors=!0),typeof ge.withCredentials!="boolean"&&(ge.withCredentials=!1),this._mediaDataSource=ge,this._currentSegmentIndex=0;let be=0;this._mediaDataSource.segments.forEach(Le=>{Le.timestampBase=be,be+=Le.duration,Le.cors=ge.cors,Le.withCredentials=ge.withCredentials,ye.referrerPolicy&&(Le.referrerPolicy=ye.referrerPolicy)}),!isNaN(be)&&this._mediaDataSource.duration!==be&&(this._mediaDataSource.duration=be),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(ge,ye){this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ge,ye){this._currentSegmentIndex=ge;let be=this._mediaDataSource.segments[ge],Le=this._ioctl=new De(be,this._config,ge);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),ye?this._demuxer.bindDataSource(this._ioctl):Le.onDataArrival=this._onInitChunkArrival.bind(this),Le.open(ye)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(ge){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let ye=this._searchSegmentIndexContains(ge);if(ye===this._currentSegmentIndex){let be=this._mediaInfo.segments[ye];if(be==null)this._pendingSeekTime=ge;else{let Le=be.getNearestKeyframe(ge);this._remuxer.seek(Le.milliseconds),this._ioctl.seek(Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds}}else{let be=this._mediaInfo.segments[ye];if(be==null)this._pendingSeekTime=ge,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ye);else{let Le=be.getNearestKeyframe(ge);this._internalAbort(),this._remuxer.seek(ge),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ye].timestampBase,this._loadSegment(ye,Le.fileposition),this._pendingResolveSeekPoint=Le.milliseconds,this._reportSegmentMediaInfo(ye)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ge){let ye=this._mediaDataSource.segments,be=ye.length-1;for(let Le=0;Le<ye.length;Le++)if(ge<ye[Le].timestampBase){be=Le-1;break}return be}_onInitChunkArrival(ge,ye){let be=null,Le=0;if(ye>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Le=this._demuxer.parseChunks(ge,ye);else if((be=Dt.probe(ge)).match){this._demuxer=new Dt(be,this._config),this._remuxer||(this._remuxer=new yt(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(ge,ye)}else be=null,pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Xt.DEMUX_ERROR,_t.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Le=0;return Le}_onMediaInfo(ge){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ge),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,xt.prototype));let ye=Object.assign({},ge);Object.setPrototypeOf(ye,xt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=ye,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let be=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(be)})}_onMetaDataArrived(ge){this._emitter.emit(Xt.METADATA_ARRIVED,ge)}_onScriptDataArrived(ge){this._emitter.emit(Xt.SCRIPTDATA_ARRIVED,ge)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ge){let be=ge+1;be<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(be)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Xt.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(ge){let ye=this._ioctl.extraData;this._mediaDataSource.segments[ye].redirectedURL=ge}_onIORecoveredEarlyEof(){this._emitter.emit(Xt.RECOVERED_EARLY_EOF)}_onIOException(ge,ye){pe.e(this.TAG,`IOException: type = ${ge}, code = ${ye.code}, msg = ${ye.msg}`),this._emitter.emit(Xt.IO_ERROR,ge,ye),this._disableStatisticsReporter()}_onDemuxException(ge,ye){pe.e(this.TAG,`DemuxException: type = ${ge}, info = ${ye}`),this._emitter.emit(Xt.DEMUX_ERROR,ge,ye)}_onRemuxerInitSegmentArrival(ge,ye){this._emitter.emit(Xt.INIT_SEGMENT,ge,ye)}_onRemuxerMediaSegmentArrival(ge,ye){if(this._pendingSeekTime==null&&(this._emitter.emit(Xt.MEDIA_SEGMENT,ge,ye),this._pendingResolveSeekPoint!=null&&ge==="video")){let be=ye.info.syncPoints,Le=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&be.length>0&&be[0].originalDts===Le&&(Le=be[0].pts),this._emitter.emit(Xt.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(ge){let ye=this._mediaInfo.segments[ge],be=Object.assign({},ye);be.duration=this._mediaInfo.duration,be.segmentCount=this._mediaInfo.segmentCount,delete be.segments,delete be.keyframesIndex,this._emitter.emit(Xt.MEDIA_INFO,be)}_reportStatisticsInfo(){let ge={};ge.url=this._ioctl.currentURL,ge.hasRedirect=this._ioctl.hasRedirect,ge.hasRedirect&&(ge.redirectedURL=this._ioctl.currentRedirectedURL),ge.speed=this._ioctl.currentSpeed,ge.loaderType=this._ioctl.loaderType,ge.currentSegmentIndex=this._currentSegmentIndex,ge.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Xt.STATISTICS_INFO,ge)}}var Br=qn,Gn=function(yn){let ge="TransmuxingWorker",ye=null,be=er.bind(this);fe.install(),yn.addEventListener("message",function(Tn){switch(Tn.data.cmd){case"init":ye=new Br(Tn.data.param[0],Tn.data.param[1]),ye.on(Xt.IO_ERROR,_r.bind(this)),ye.on(Xt.DEMUX_ERROR,Mt.bind(this)),ye.on(Xt.INIT_SEGMENT,Le.bind(this)),ye.on(Xt.MEDIA_SEGMENT,Ne.bind(this)),ye.on(Xt.LOADING_COMPLETE,et.bind(this)),ye.on(Xt.RECOVERED_EARLY_EOF,ct.bind(this)),ye.on(Xt.MEDIA_INFO,_n.bind(this)),ye.on(Xt.METADATA_ARRIVED,rn.bind(this)),ye.on(Xt.SCRIPTDATA_ARRIVED,In.bind(this)),ye.on(Xt.STATISTICS_INFO,pr.bind(this)),ye.on(Xt.RECOMMEND_SEEKPOINT,ur.bind(this));break;case"destroy":ye&&(ye.destroy(),ye=null),yn.postMessage({msg:"destroyed"});break;case"start":ye.start();break;case"stop":ye.stop();break;case"seek":ye.seek(Tn.data.param);break;case"pause":ye.pause();break;case"resume":ye.resume();break;case"logging_config":{let Un=Tn.data.param;it.applyConfig(Un),Un.enableCallback===!0?it.addLogListener(be):it.removeLogListener(be);break}}});function Le(Tn,Un){let sr={msg:Xt.INIT_SEGMENT,data:{type:Tn,data:Un}};yn.postMessage(sr,[Un.data])}function Ne(Tn,Un){let sr={msg:Xt.MEDIA_SEGMENT,data:{type:Tn,data:Un}};yn.postMessage(sr,[Un.data])}function et(){let Tn={msg:Xt.LOADING_COMPLETE};yn.postMessage(Tn)}function ct(){let Tn={msg:Xt.RECOVERED_EARLY_EOF};yn.postMessage(Tn)}function _n(Tn){let Un={msg:Xt.MEDIA_INFO,data:Tn};yn.postMessage(Un)}function rn(Tn){let Un={msg:Xt.METADATA_ARRIVED,data:Tn};yn.postMessage(Un)}function In(Tn){let Un={msg:Xt.SCRIPTDATA_ARRIVED,data:Tn};yn.postMessage(Un)}function pr(Tn){let Un={msg:Xt.STATISTICS_INFO,data:Tn};yn.postMessage(Un)}function _r(Tn,Un){yn.postMessage({msg:Xt.IO_ERROR,data:{type:Tn,info:Un}})}function Mt(Tn,Un){yn.postMessage({msg:Xt.DEMUX_ERROR,data:{type:Tn,info:Un}})}function ur(Tn){yn.postMessage({msg:Xt.RECOMMEND_SEEKPOINT,data:Tn})}function er(Tn,Un){yn.postMessage({msg:"logcat_callback",data:{type:Tn,logcat:Un}})}};class ir{constructor(ge,ye){if(this.TAG="Transmuxer",this._emitter=new(ve()),ye.enableWorker&&typeof Worker!="undefined")try{let be=te(18034);this._worker=be(Gn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ge,ye]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},it.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:it.getConfig()})}catch(be){pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Br(ge,ye)}else this._controller=new Br(ge,ye);if(this._controller){let be=this._controller;be.on(Xt.IO_ERROR,this._onIOError.bind(this)),be.on(Xt.DEMUX_ERROR,this._onDemuxError.bind(this)),be.on(Xt.INIT_SEGMENT,this._onInitSegment.bind(this)),be.on(Xt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),be.on(Xt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),be.on(Xt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),be.on(Xt.MEDIA_INFO,this._onMediaInfo.bind(this)),be.on(Xt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),be.on(Xt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),be.on(Xt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),be.on(Xt.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(ge,ye){this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(ge){this._worker?this._worker.postMessage({cmd:"seek",param:ge}):this._controller.seek(ge)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.INIT_SEGMENT,ge,ye)})}_onMediaSegment(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.MEDIA_SEGMENT,ge,ye)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Xt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Xt.RECOVERED_EARLY_EOF)})}_onMediaInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.MEDIA_INFO,ge)})}_onMetaDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.METADATA_ARRIVED,ge)})}_onScriptDataArrived(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.SCRIPTDATA_ARRIVED,ge)})}_onStatisticsInfo(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.STATISTICS_INFO,ge)})}_onIOError(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.IO_ERROR,ge,ye)})}_onDemuxError(ge,ye){Promise.resolve().then(()=>{this._emitter.emit(Xt.DEMUX_ERROR,ge,ye)})}_onRecommendSeekpoint(ge){Promise.resolve().then(()=>{this._emitter.emit(Xt.RECOMMEND_SEEKPOINT,ge)})}_onLoggingConfigChanged(ge){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ge})}_onWorkerMessage(ge){let ye=ge.data,be=ye.data;if(ye.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ye.msg){case Xt.INIT_SEGMENT:case Xt.MEDIA_SEGMENT:this._emitter.emit(ye.msg,be.type,be.data);break;case Xt.LOADING_COMPLETE:case Xt.RECOVERED_EARLY_EOF:this._emitter.emit(ye.msg);break;case Xt.MEDIA_INFO:Object.setPrototypeOf(be,xt.prototype),this._emitter.emit(ye.msg,be);break;case Xt.METADATA_ARRIVED:case Xt.SCRIPTDATA_ARRIVED:case Xt.STATISTICS_INFO:this._emitter.emit(ye.msg,be);break;case Xt.IO_ERROR:case Xt.DEMUX_ERROR:this._emitter.emit(ye.msg,be.type,be.info);break;case Xt.RECOMMEND_SEEKPOINT:this._emitter.emit(ye.msg,be);break;case"logcat_callback":pe.emitter.emit("log",be.type,be.logcat);break;default:break}}}var So=ir,qr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Yo{constructor(ge){this.TAG="MSEController",this._config=ge,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 vt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,ye){this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}attachMediaElement(ge){if(this._mediaSource)throw new ue("MediaSource has been attached to an HTMLMediaElement!");let ye=this._mediaSource=new window.MediaSource;ye.addEventListener("sourceopen",this.e.onSourceOpen),ye.addEventListener("sourceended",this.e.onSourceEnded),ye.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ge,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ge.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ge=this._mediaSource;for(let ye in this._sourceBuffers){let be=this._pendingSegments[ye];be.splice(0,be.length),this._pendingSegments[ye]=null,this._pendingRemoveRanges[ye]=null,this._lastInitSegments[ye]=null;let Le=this._sourceBuffers[ye];if(Le){if(ge.readyState!=="closed"){try{ge.removeSourceBuffer(Le)}catch(Ne){pe.e(this.TAG,Ne.message)}Le.removeEventListener("error",this.e.onSourceBufferError),Le.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ye]=null,this._sourceBuffers[ye]=null}}if(ge.readyState==="open")try{ge.endOfStream()}catch(ye){pe.e(this.TAG,ye.message)}ge.removeEventListener("sourceopen",this.e.onSourceOpen),ge.removeEventListener("sourceended",this.e.onSourceEnded),ge.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(ge,ye){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ge),this._pendingSegments[ge.type].push(ge);return}let be=ge,Le=`${be.container}`;be.codec&&be.codec.length>0&&(Le+=`;codecs=${be.codec}`);let Ne=!1;if(pe.v(this.TAG,"Received Initialization Segment, mimeType: "+Le),this._lastInitSegments[be.type]=be,Le!==this._mimeTypes[be.type]){if(this._mimeTypes[be.type])pe.v(this.TAG,`Notice: ${be.type} mimeType changed, origin: ${this._mimeTypes[be.type]}, target: ${Le}`);else{Ne=!0;try{let et=this._sourceBuffers[be.type]=this._mediaSource.addSourceBuffer(Le);et.addEventListener("error",this.e.onSourceBufferError),et.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(et){pe.e(this.TAG,et.message),this._emitter.emit(qr.ERROR,{code:et.code,msg:et.message});return}}this._mimeTypes[be.type]=Le}ye||this._pendingSegments[be.type].push(be),Ne||this._sourceBuffers[be.type]&&!this._sourceBuffers[be.type].updating&&this._doAppendSegments(),b.safari&&be.container==="audio/mpeg"&&be.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=be.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(ge){let ye=ge;this._pendingSegments[ye.type].push(ye),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let be=this._sourceBuffers[ye.type];be&&!be.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ge){for(let ye in this._sourceBuffers){if(!this._sourceBuffers[ye])continue;let be=this._sourceBuffers[ye];if(this._mediaSource.readyState==="open")try{be.abort()}catch(Ne){pe.e(this.TAG,Ne.message)}this._idrList.clear();let Le=this._pendingSegments[ye];if(Le.splice(0,Le.length),this._mediaSource.readyState!=="closed"){for(let Ne=0;Ne<be.buffered.length;Ne++){let et=be.buffered.start(Ne),ct=be.buffered.end(Ne);this._pendingRemoveRanges[ye].push({start:et,end:ct})}if(be.updating||this._doRemoveRanges(),b.safari){let Ne=this._lastInitSegments[ye];Ne&&(this._pendingSegments[ye].push(Ne),be.updating||this._doAppendSegments())}}}}endOfStream(){let ge=this._mediaSource,ye=this._sourceBuffers;if(!ge||ge.readyState!=="open"){ge&&ge.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ye.video&&ye.video.updating||ye.audio&&ye.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ge.endOfStream())}getNearestKeyframe(ge){return this._idrList.getLastSyncPointBeforeDts(ge)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let ge=this._mediaElement.currentTime;for(let ye in this._sourceBuffers){let be=this._sourceBuffers[ye];if(be){let Le=be.buffered;if(Le.length>=1&&ge-Le.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ge=this._mediaElement.currentTime;for(let ye in this._sourceBuffers){let be=this._sourceBuffers[ye];if(be){let Le=be.buffered,Ne=!1;for(let et=0;et<Le.length;et++){let ct=Le.start(et),_n=Le.end(et);if(ct<=ge&&ge<_n+3){if(ge-ct>=this._config.autoCleanupMaxBackwardDuration){Ne=!0;let rn=ge-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ye].push({start:ct,end:rn})}}else _n<ge&&(Ne=!0,this._pendingRemoveRanges[ye].push({start:ct,end:_n}))}Ne&&!be.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let ge=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||ge.video&&ge.video.updating||ge.audio&&ge.audio.updating)return;let ye=this._mediaSource.duration,be=this._pendingMediaDuration;be>0&&(isNaN(ye)||be>ye)&&(pe.v(this.TAG,`Update MediaSource duration from ${ye} to ${be}`),this._mediaSource.duration=be),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ge in this._pendingRemoveRanges){if(!this._sourceBuffers[ge]||this._sourceBuffers[ge].updating)continue;let ye=this._sourceBuffers[ge],be=this._pendingRemoveRanges[ge];for(;be.length&&!ye.updating;){let Le=be.shift();ye.remove(Le.start,Le.end)}}}_doAppendSegments(){let ge=this._pendingSegments;for(let ye in ge)if(!(!this._sourceBuffers[ye]||this._sourceBuffers[ye].updating)&&ge[ye].length>0){let be=ge[ye].shift();if(be.timestampOffset){let Le=this._sourceBuffers[ye].timestampOffset,Ne=be.timestampOffset/1e3;Math.abs(Le-Ne)>.1&&(pe.v(this.TAG,`Update MPEG audio timestampOffset from ${Le} to ${Ne}`),this._sourceBuffers[ye].timestampOffset=Ne),delete be.timestampOffset}if(!be.data||be.data.byteLength===0)continue;try{this._sourceBuffers[ye].appendBuffer(be.data),this._isBufferFull=!1,ye==="video"&&be.hasOwnProperty("info")&&this._idrList.appendArray(be.info.syncPoints)}catch(Le){this._pendingSegments[ye].unshift(be),Le.code===22?(this._isBufferFull||this._emitter.emit(qr.BUFFER_FULL),this._isBufferFull=!0):(pe.e(this.TAG,Le.message),this._emitter.emit(qr.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 ge=this._pendingSourceBufferInit;for(;ge.length;){let ye=ge.shift();this.appendInitSegment(ye,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(qr.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 ge=this._pendingSegments;return ge.video.length>0||ge.audio.length>0}_hasPendingRemoveRanges(){let ge=this._pendingRemoveRanges;return ge.video.length>0||ge.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(qr.UPDATE_END)}_onSourceBufferError(ge){pe.e(this.TAG,`SourceBuffer Error: ${ge}`)}}var Zo=Yo;const qo={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},yr={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:_t.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:_t.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:_t.CODEC_UNSUPPORTED};class xo{constructor(ge,ye){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ve()),this._config=nt(),typeof ye=="object"&&Object.assign(this._config,ye),ge.type.toLowerCase()!=="flv")throw new se("FlvPlayer requires an flv MediaDataSource input!");ge.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=ge,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 be=b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661);this._alwaysSeekKeyframe=!!(be||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(ge,ye){ge===nn.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nn.MEDIA_INFO,this.mediaInfo)}):ge===nn.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(nn.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ge.addEventListener("seeking",this.e.onvSeeking),ge.addEventListener("canplay",this.e.onvCanPlay),ge.addEventListener("stalled",this.e.onvStalled),ge.addEventListener("progress",this.e.onvProgress),this._msectl=new Zo(this._config),this._msectl.on(qr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(qr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(qr.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(qr.ERROR,ye=>{this._emitter.emit(nn.ERROR,qo.MEDIA_ERROR,yr.MEDIA_MSE_ERROR,ye)}),this._msectl.attachMediaElement(ge),this._pendingSeekTime!=null)try{ge.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ye){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new ue("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new ue("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 So(this._mediaDataSource,this._config),this._transmuxer.on(Xt.INIT_SEGMENT,(ge,ye)=>{this._msectl.appendInitSegment(ye)}),this._transmuxer.on(Xt.MEDIA_SEGMENT,(ge,ye)=>{if(this._msectl.appendMediaSegment(ye),this._config.lazyLoad&&!this._config.isLive){let be=this._mediaElement.currentTime;ye.info.endDts>=(be+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Xt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(nn.LOADING_COMPLETE)}),this._transmuxer.on(Xt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(nn.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Xt.IO_ERROR,(ge,ye)=>{this._emitter.emit(nn.ERROR,qo.NETWORK_ERROR,ge,ye)}),this._transmuxer.on(Xt.DEMUX_ERROR,(ge,ye)=>{this._emitter.emit(nn.ERROR,qo.MEDIA_ERROR,ge,{code:-1,msg:ye})}),this._transmuxer.on(Xt.MEDIA_INFO,ge=>{this._mediaInfo=ge,this._emitter.emit(nn.MEDIA_INFO,Object.assign({},ge))}),this._transmuxer.on(Xt.METADATA_ARRIVED,ge=>{this._emitter.emit(nn.METADATA_ARRIVED,ge)}),this._transmuxer.on(Xt.SCRIPTDATA_ARRIVED,ge=>{this._emitter.emit(nn.SCRIPTDATA_ARRIVED,ge)}),this._transmuxer.on(Xt.STATISTICS_INFO,ge=>{this._statisticsInfo=this._fillStatisticsInfo(ge),this._emitter.emit(nn.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Xt.RECOMMEND_SEEKPOINT,ge=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge/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(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._internalSeek(ge):this._pendingSeekTime=ge}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(ge){if(ge.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ge;let ye=!0,be=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();be=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(be=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):ye=!1;return ye&&(ge.decodedFrames=be,ge.droppedFrames=Le),ge}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ge=this._mediaElement.buffered,ye=this._mediaElement.currentTime,be=0,Le=0;for(let Ne=0;Ne<ge.length;Ne++){let et=ge.start(Ne),ct=ge.end(Ne);if(et<=ye&&ye<ct){be=et,Le=ct;break}}Le>=ye+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){pe.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let ge=this._mediaElement.currentTime,ye=this._mediaElement.buffered,be=!1;for(let Le=0;Le<ye.length;Le++){let Ne=ye.start(Le),et=ye.end(Le);if(ge>=Ne&&ge<et){ge>=et-this._config.lazyLoadRecoverDuration&&(be=!0);break}}be&&(window.clearInterval(this._progressChecker),this._progressChecker=null,be&&(pe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(ge){let ye=this._mediaElement.buffered;for(let be=0;be<ye.length;be++){let Le=ye.start(be),Ne=ye.end(be);if(ge>=Le&&ge<Ne)return!0}return!1}_internalSeek(ge){let ye=this._isTimepointBuffered(ge),be=!1,Le=0;if(ge<1&&this._mediaElement.buffered.length>0){let Ne=this._mediaElement.buffered.start(0);(Ne<1&&ge<Ne||b.safari)&&(be=!0,Le=b.safari?.1:Ne)}if(be)this._requestSetTime=!0,this._mediaElement.currentTime=Le;else if(ye){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ge;else{let Ne=this._msectl.getNearestKeyframe(Math.floor(ge*1e3));this._requestSetTime=!0,Ne!=null?this._mediaElement.currentTime=Ne.dts/1e3:this._mediaElement.currentTime=ge}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ge),this._transmuxer.seek(Math.floor(ge*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let ge=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ge)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ge),this._transmuxer.seek(Math.floor(ge*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ge))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(ge){let ye=this._mediaElement;if(ge||!this._receivedCanPlay||ye.readyState<2){let be=ye.buffered;be.length>0&&ye.currentTime<be.start(0)&&(pe.w(this.TAG,`Playback seems stuck at ${ye.currentTime}, seek to ${be.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=be.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(ge){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(ge){let ye=this._mediaElement.currentTime,be=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ye<1&&be.length>0){let Le=be.start(0);if(Le<1&&ye<Le||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:Le;return}}if(this._isTimepointBuffered(ye)){if(this._alwaysSeekKeyframe){let Le=this._msectl.getNearestKeyframe(Math.floor(ye*1e3));Le!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=Le.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:ye,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(ge){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(ge){this._checkAndResumeStuckPlayback(!0)}_onvProgress(ge){this._checkAndResumeStuckPlayback()}}var Wo=xo;class Wi{constructor(ge,ye){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(ve()),this._config=nt(),typeof ye=="object"&&Object.assign(this._config,ye),ge.type.toLowerCase()==="flv")throw new se("NativePlayer does't support flv MediaDataSource input!");if(ge.hasOwnProperty("segments"))throw new se(`NativePlayer(${ge.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=ge,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ge,ye){ge===nn.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(nn.MEDIA_INFO,this.mediaInfo)}):ge===nn.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(nn.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ge,ye)}off(ge,ye){this._emitter.removeListener(ge,ye)}attachMediaElement(ge){if(this._mediaElement=ge,ge.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ge.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ye){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new ue("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(ge){this._mediaElement.volume=ge}get muted(){return this._mediaElement.muted}set muted(ge){this._mediaElement.muted=ge}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ge){this._mediaElement?this._mediaElement.currentTime=ge:this._pendingSeekTime=ge}get mediaInfo(){let ye={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(ye.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ye.width=this._mediaElement.videoWidth,ye.height=this._mediaElement.videoHeight)),ye}get statisticsInfo(){let ge={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ge;let ye=!0,be=0,Le=0;if(this._mediaElement.getVideoPlaybackQuality){let Ne=this._mediaElement.getVideoPlaybackQuality();be=Ne.totalVideoFrames,Le=Ne.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(be=this._mediaElement.webkitDecodedFrameCount,Le=this._mediaElement.webkitDroppedFrameCount):ye=!1;return ye&&(ge.decodedFrames=be,ge.droppedFrames=Le),ge}_onvLoadedMetadata(ge){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(nn.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(nn.STATISTICS_INFO,this.statisticsInfo)}}var $i=Wi;fe.install();function Ci(yn,ge){let ye=yn;if(ye==null||typeof ye!="object")throw new se("MediaDataSource must be an javascript object!");if(!ye.hasOwnProperty("type"))throw new se("MediaDataSource must has type field to indicate video file type!");switch(ye.type){case"flv":return new Wo(ye,ge);default:return new $i(ye,ge)}}function ei(){return Et.supportMSEH264Playback()}function po(){return Et.getFeatureList()}let co={};co.createPlayer=Ci,co.isSupported=ei,co.getFeatureList=po,co.BaseLoader=a,co.LoaderStatus=re,co.LoaderErrors=ne,co.Events=nn,co.ErrorTypes=qo,co.ErrorDetails=yr,co.FlvPlayer=Wo,co.NativePlayer=$i,co.LoggingControl=it,Object.defineProperty(co,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ta=co},38780:function(at,We){"use strict";function te(){const z=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let fe=1;fe<arguments.length;fe++){const Pe=fe<0||arguments.length<=fe?void 0:arguments[fe];Pe&&Object.keys(Pe).forEach(ve=>{const he=Pe[ve];he!==void 0&&(z[ve]=he)})}return z}We.Z=te},66367:function(at,We,te){"use strict";te.d(We,{F:function(){return z},Z:function(){return fe}});function z(Pe){return Pe!=null&&Pe===Pe.window}function fe(Pe,ve){var he,pe;if(typeof window=="undefined")return 0;const ie=ve?"scrollTop":"scrollLeft";let de=0;return z(Pe)?de=Pe[ve?"pageYOffset":"pageXOffset"]:Pe instanceof Document?de=Pe.documentElement[ie]:(Pe instanceof HTMLElement||Pe)&&(de=Pe[ie]),Pe&&!z(Pe)&&typeof de!="number"&&(de=(pe=((he=Pe.ownerDocument)!==null&&he!==void 0?he:Pe).documentElement)===null||pe===void 0?void 0:pe[ie]),de}},57838:function(at,We,te){"use strict";te.d(We,{Z:function(){return fe}});var z=te(67294);function fe(){const[,Pe]=z.useReducer(ve=>ve+1,0);return Pe}},58375:function(at,We,te){"use strict";te.d(We,{Z:function(){return ve}});var z=te(96523);function fe(he,pe,ie,de){const le=ie-pe;return he/=de/2,he<1?le/2*he*he*he+pe:le/2*((he-=2)*he*he+2)+pe}var Pe=te(66367);function ve(he){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:de,duration:le=450}=pe,ue=ie(),se=(0,Pe.Z)(ue,!0),me=Date.now(),re=()=>{const a=Date.now()-me,y=fe(a>le?le:a,se,he,le);(0,Pe.F)(ue)?ue.scrollTo(window.pageXOffset,y):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=y:ue.scrollTop=y,a<le?(0,z.Z)(re):typeof de=="function"&&de()};(0,z.Z)(re)}},84567:function(at,We,te){"use strict";te.d(We,{default:function(){return Se}});var z=te(94184),fe=te.n(z),Pe=te(95860),ve=te(67294),he=te(53124),pe=te(98866),ie=te(65223),le=ve.createContext(null),ue=te(63185),se=te(45353),me=te(92429),re=function(_e,xe){var we={};for(var Fe in _e)Object.prototype.hasOwnProperty.call(_e,Fe)&&xe.indexOf(Fe)<0&&(we[Fe]=_e[Fe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Fe=Object.getOwnPropertySymbols(_e);Me<Fe.length;Me++)xe.indexOf(Fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,Fe[Me])&&(we[Fe[Me]]=_e[Fe[Me]]);return we};const ne=(_e,xe)=>{var we;const{prefixCls:Fe,className:Me,rootClassName:ut,children:Xe,indeterminate:mt=!1,style:Ae,onMouseEnter:De,onMouseLeave:Be,skipGroup:nt=!1,disabled:Ke}=_e,Et=re(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ct,direction:nn,checkbox:on}=ve.useContext(he.E_),it=ve.useContext(le),{isFormItemInput:lt}=ve.useContext(ie.aM),xt=ve.useContext(pe.Z),Jt=(we=(it==null?void 0:it.disabled)||Ke)!==null&&we!==void 0?we:xt,Vt=ve.useRef(Et.value);ve.useEffect(()=>{it==null||it.registerValue(Et.value)},[]),ve.useEffect(()=>{if(!nt)return Et.value!==Vt.current&&(it==null||it.cancelValue(Vt.current),it==null||it.registerValue(Et.value),Vt.current=Et.value),()=>it==null?void 0:it.cancelValue(Et.value)},[Et.value]);const xn=Ct("checkbox",Fe),[He,un]=(0,ue.ZP)(xn),kn=Object.assign({},Et);it&&!nt&&(kn.onChange=function(){Et.onChange&&Et.onChange.apply(Et,arguments),it.toggleOption&&it.toggleOption({label:Xe,value:Et.value})},kn.name=it.name,kn.checked=it.value.includes(Et.value));const nr=fe()(`${xn}-wrapper`,{[`${xn}-rtl`]:nn==="rtl",[`${xn}-wrapper-checked`]:kn.checked,[`${xn}-wrapper-disabled`]:Jt,[`${xn}-wrapper-in-form-item`]:lt},on==null?void 0:on.className,Me,ut,un),Ln=fe()({[`${xn}-indeterminate`]:mt},me.A,un),Gt=mt?"mixed":void 0;return He(ve.createElement(se.Z,{component:"Checkbox",disabled:Jt},ve.createElement("label",{className:nr,style:Object.assign(Object.assign({},on==null?void 0:on.style),Ae),onMouseEnter:De,onMouseLeave:Be},ve.createElement(Pe.Z,Object.assign({"aria-checked":Gt},kn,{prefixCls:xn,className:Ln,disabled:Jt,ref:xe})),Xe!==void 0&&ve.createElement("span",null,Xe))))};var y=ve.forwardRef(ne),E=te(74902),b=te(10366),x=function(_e,xe){var we={};for(var Fe in _e)Object.prototype.hasOwnProperty.call(_e,Fe)&&xe.indexOf(Fe)<0&&(we[Fe]=_e[Fe]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,Fe=Object.getOwnPropertySymbols(_e);Me<Fe.length;Me++)xe.indexOf(Fe[Me])<0&&Object.prototype.propertyIsEnumerable.call(_e,Fe[Me])&&(we[Fe[Me]]=_e[Fe[Me]]);return we};const ee=(_e,xe)=>{const{defaultValue:we,children:Fe,options:Me=[],prefixCls:ut,className:Xe,rootClassName:mt,style:Ae,onChange:De}=_e,Be=x(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:nt,direction:Ke}=ve.useContext(he.E_),[Et,Ct]=ve.useState(Be.value||we||[]),[nn,on]=ve.useState([]);ve.useEffect(()=>{"value"in Be&&Ct(Be.value||[])},[Be.value]);const it=ve.useMemo(()=>Me.map(Je=>typeof Je=="string"||typeof Je=="number"?{label:Je,value:Je}:Je),[Me]),lt=Je=>{on(Qe=>Qe.filter(_t=>_t!==Je))},xt=Je=>{on(Qe=>[].concat((0,E.Z)(Qe),[Je]))},Jt=Je=>{const Qe=Et.indexOf(Je.value),_t=(0,E.Z)(Et);Qe===-1?_t.push(Je.value):_t.splice(Qe,1),"value"in Be||Ct(_t),De==null||De(_t.filter(Rt=>nn.includes(Rt)).sort((Rt,Yt)=>{const gt=it.findIndex(Dt=>Dt.value===Rt),wt=it.findIndex(Dt=>Dt.value===Yt);return gt-wt}))},Vt=nt("checkbox",ut),xn=`${Vt}-group`,[He,un]=(0,ue.ZP)(Vt),kn=(0,b.Z)(Be,["value","disabled"]),nr=Me.length?it.map(Je=>ve.createElement(y,{prefixCls:Vt,key:Je.value.toString(),disabled:"disabled"in Je?Je.disabled:Be.disabled,value:Je.value,checked:Et.includes(Je.value),onChange:Je.onChange,className:`${xn}-item`,style:Je.style,title:Je.title},Je.label)):Fe,Ln={toggleOption:Jt,value:Et,disabled:Be.disabled,name:Be.name,registerValue:xt,cancelValue:lt},Gt=fe()(xn,{[`${xn}-rtl`]:Ke==="rtl"},Xe,mt,un);return He(ve.createElement("div",Object.assign({className:Gt,style:Ae},kn,{ref:xe}),ve.createElement(le.Provider,{value:Ln},nr)))},oe=ve.forwardRef(ee);var ae=ve.memo(oe);const ce=y;ce.Group=ae,ce.__ANT_CHECKBOX=!0;var Se=ce},63185:function(at,We,te){"use strict";te.d(We,{C2:function(){return he}});var z=te(14747),fe=te(45503),Pe=te(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 he(pe,ie){const de=(0,fe.TS)(ie,{checkboxCls:`.${pe}`,checkboxSize:ie.controlInteractiveSize});return[ve(de)]}We.ZP=(0,Pe.Z)("Checkbox",(pe,ie)=>{let{prefixCls:de}=ie;return[he(de,pe)]})},72565:function(at,We,te){"use strict";te.d(We,{Z:function(){return $a}});var z=te(94184),fe=te.n(z),Pe=te(1413),ve=te(97685),he=te(67294),pe=te(73935);function ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var de={};function le(ft,dt){}function ue(ft,dt){}function se(){de={}}function me(ft,dt,zt){!dt&&!de[zt]&&(ft(!1,zt),de[zt]=!0)}function re(ft,dt){me(le,ft,dt)}function ne(ft,dt){me(ue,ft,dt)}var a=null,y=te(71002),E=te(18459);function b(ft,dt,zt){var qt=he.useRef({});return(!("value"in qt.current)||zt(qt.current.condition,dt))&&(qt.current.value=ft(),qt.current.condition=dt),qt.current.value}function x(ft,dt){typeof ft=="function"?ft(dt):(0,y.Z)(ft)==="object"&&ft&&"current"in ft&&(ft.current=dt)}function ee(){for(var ft=arguments.length,dt=new Array(ft),zt=0;zt<ft;zt++)dt[zt]=arguments[zt];var qt=dt.filter(function(Mn){return Mn});return qt.length<=1?qt[0]:function(Mn){dt.forEach(function(Nr){x(Nr,Mn)})}}function oe(){for(var ft=arguments.length,dt=new Array(ft),zt=0;zt<ft;zt++)dt[zt]=arguments[zt];return b(function(){return ee.apply(void 0,dt)},dt,function(qt,Mn){return qt.length===Mn.length&&qt.every(function(Nr,Tr){return Nr===Mn[Tr]})})}function ae(ft){var dt,zt,qt=(0,E.isMemo)(ft)?ft.type.type:ft.type;return!(typeof qt=="function"&&!((dt=qt.prototype)!==null&&dt!==void 0&&dt.render)||typeof ft=="function"&&!((zt=ft.prototype)!==null&&zt!==void 0&&zt.render))}var ce=he.createContext(null),Se=ce,_e=te(74902),xe=ie()?he.useLayoutEffect:he.useEffect,we=xe,Fe=function(dt,zt){var qt=React.useRef(!0);xe(function(){if(!qt.current)return dt()},zt),xe(function(){return qt.current=!1,function(){qt.current=!0}},[])},Me=[];function ut(ft,dt){var zt=he.useState(function(){if(!ie())return null;var vo=document.createElement("div");return vo}),qt=(0,ve.Z)(zt,1),Mn=qt[0],Nr=he.useRef(!1),Tr=he.useContext(Se),Wr=he.useState(Me),uo=(0,ve.Z)(Wr,2),Mo=uo[0],Qo=uo[1],mi=Tr||(Nr.current?void 0:function(vo){Qo(function(yi){var Mi=[vo].concat((0,_e.Z)(yi));return Mi})});function Fi(){Mn.parentElement||document.body.appendChild(Mn),Nr.current=!0}function oa(){var vo;(vo=Mn.parentElement)===null||vo===void 0||vo.removeChild(Mn),Nr.current=!1}return we(function(){return ft?Tr?Tr(Fi):Fi():oa(),oa},[ft]),we(function(){Mo.length&&(Mo.forEach(function(vo){return vo()}),Qo(Me))},[Mo]),[Mn,mi]}function Xe(ft,dt){if(!ft)return!1;if(ft.contains)return ft.contains(dt);for(var zt=dt;zt;){if(zt===ft)return!0;zt=zt.parentNode}return!1}var mt="data-rc-order",Ae="rc-util-key",De=new Map;function Be(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dt=ft.mark;return dt?dt.startsWith("data-")?dt:"data-".concat(dt):Ae}function nt(ft){if(ft.attachTo)return ft.attachTo;var dt=document.querySelector("head");return dt||document.body}function Ke(ft){return ft==="queue"?"prependQueue":ft?"prepend":"append"}function Et(ft){return Array.from((De.get(ft)||ft).children).filter(function(dt){return dt.tagName==="STYLE"})}function Ct(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ie())return null;var zt=dt.csp,qt=dt.prepend,Mn=document.createElement("style");Mn.setAttribute(mt,Ke(qt)),zt!=null&&zt.nonce&&(Mn.nonce=zt==null?void 0:zt.nonce),Mn.innerHTML=ft;var Nr=nt(dt),Tr=Nr.firstChild;if(qt){if(qt==="queue"){var Wr=Et(Nr).filter(function(uo){return["prepend","prependQueue"].includes(uo.getAttribute(mt))});if(Wr.length)return Nr.insertBefore(Mn,Wr[Wr.length-1].nextSibling),Mn}Nr.insertBefore(Mn,Tr)}else Nr.appendChild(Mn);return Mn}function nn(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=nt(dt);return Et(zt).find(function(qt){return qt.getAttribute(Be(dt))===ft})}function on(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zt=nn(ft,dt);if(zt){var qt=nt(dt);qt.removeChild(zt)}}function it(ft,dt){var zt=De.get(ft);if(!zt||!Xe(document,zt)){var qt=Ct("",dt),Mn=qt.parentNode;De.set(ft,Mn),ft.removeChild(qt)}}function lt(){De.clear()}function xt(ft,dt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},qt=nt(zt);it(qt,zt);var Mn=nn(dt,zt);if(Mn){var Nr,Tr;if((Nr=zt.csp)!==null&&Nr!==void 0&&Nr.nonce&&Mn.nonce!==((Tr=zt.csp)===null||Tr===void 0?void 0:Tr.nonce)){var Wr;Mn.nonce=(Wr=zt.csp)===null||Wr===void 0?void 0:Wr.nonce}return Mn.innerHTML!==ft&&(Mn.innerHTML=ft),Mn}var uo=Ct(ft,zt);return uo.setAttribute(Be(zt),dt),uo}var Jt;function Vt(ft){if(typeof document=="undefined")return 0;if(ft||Jt===void 0){var dt=document.createElement("div");dt.style.width="100%",dt.style.height="200px";var zt=document.createElement("div"),qt=zt.style;qt.position="absolute",qt.top="0",qt.left="0",qt.pointerEvents="none",qt.visibility="hidden",qt.width="200px",qt.height="150px",qt.overflow="hidden",zt.appendChild(dt),document.body.appendChild(zt);var Mn=dt.offsetWidth;zt.style.overflow="scroll";var Nr=dt.offsetWidth;Mn===Nr&&(Nr=zt.clientWidth),document.body.removeChild(zt),Jt=Mn-Nr}return Jt}function xn(ft){var dt=ft.match(/^(.*)px$/),zt=Number(dt==null?void 0:dt[1]);return Number.isNaN(zt)?Vt():zt}function He(ft){if(typeof document=="undefined"||!ft||!(ft instanceof Element))return{width:0,height:0};var dt=getComputedStyle(ft,"::-webkit-scrollbar"),zt=dt.width,qt=dt.height;return{width:xn(zt),height:xn(qt)}}function un(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var kn="rc-util-locker-".concat(Date.now()),nr=0;function Ln(ft){var dt=!!ft,zt=he.useState(function(){return nr+=1,"".concat(kn,"_").concat(nr)}),qt=(0,ve.Z)(zt,1),Mn=qt[0];we(function(){if(dt){var Nr=He(document.body).width,Tr=un();xt(`
html body {
overflow-y: hidden;
`.concat(Tr?"width: calc(100% - ".concat(Nr,"px);"):"",`
}`),Mn)}else on(Mn);return function(){on(Mn)}},[dt,Mn])}var Gt=!1;function Je(ft){return typeof ft=="boolean"&&(Gt=ft),Gt}var Qe=function(dt){return dt===!1?!1:!ie()||!dt?null:typeof dt=="string"?document.querySelector(dt):typeof dt=="function"?dt():dt},_t=he.forwardRef(function(ft,dt){var zt=ft.open,qt=ft.autoLock,Mn=ft.getContainer,Nr=ft.debug,Tr=ft.autoDestroy,Wr=Tr===void 0?!0:Tr,uo=ft.children,Mo=he.useState(zt),Qo=(0,ve.Z)(Mo,2),mi=Qo[0],Fi=Qo[1],oa=mi||zt;he.useEffect(function(){(Wr||zt)&&Fi(zt)},[zt,Wr]);var vo=he.useState(function(){return Qe(Mn)}),yi=(0,ve.Z)(vo,2),Mi=yi[0],pi=yi[1];he.useEffect(function(){var It=Qe(Mn);pi(It!=null?It:null)});var Pa=ut(oa&&!Mi,Nr),St=(0,ve.Z)(Pa,2),Lt=St[0],jt=St[1],$e=Mi!=null?Mi:Lt;Ln(qt&&zt&&ie()&&($e===Lt||$e===document.body));var Wt=null;if(uo&&ae(uo)&&dt){var bn=uo;Wt=bn.ref}var Rn=oe(Wt,dt);if(!oa||!ie()||Mi===void 0)return null;var Nt=$e===!1||Je(),$t=uo;return dt&&($t=he.cloneElement(uo,{ref:Rn})),he.createElement(Se.Provider,{value:jt},Nt?$t:(0,pe.createPortal)($t,$e))}),Rt=_t,Yt=Rt;function gt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var wt=gt()?he.useLayoutEffect:he.useEffect,Dt=function(dt,zt){var qt=he.useRef(!0);wt(function(){return dt(qt.current)},zt),wt(function(){return qt.current=!1,function(){qt.current=!0}},[])},tt=function(dt,zt){Dt(function(qt){if(!qt)return dt()},zt)},fn=Dt,hn=he.createContext(null),$n=he.createContext({}),no=hn,rt=te(4942),vt=te(87462),An=te(62874),Zt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(dt){var zt=dt.keyCode;if(dt.altKey&&!dt.ctrlKey||dt.metaKey||zt>=Zt.F1&&zt<=Zt.F12)return!1;switch(zt){case Zt.ALT:case Zt.CAPS_LOCK:case Zt.CONTEXT_MENU:case Zt.CTRL:case Zt.DOWN:case Zt.END:case Zt.ESC:case Zt.HOME:case Zt.INSERT:case Zt.LEFT:case Zt.MAC_FF_META:case Zt.META:case Zt.NUMLOCK:case Zt.NUM_CENTER:case Zt.PAGE_DOWN:case Zt.PAGE_UP:case Zt.PAUSE:case Zt.PRINT_SCREEN:case Zt.RIGHT:case Zt.SHIFT:case Zt.UP:case Zt.WIN_KEY:case Zt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(dt){if(dt>=Zt.ZERO&&dt<=Zt.NINE||dt>=Zt.NUM_ZERO&&dt<=Zt.NUM_MULTIPLY||dt>=Zt.A&&dt<=Zt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&dt===0)return!0;switch(dt){case Zt.SPACE:case Zt.QUESTION_MARK:case Zt.NUM_PLUS:case Zt.NUM_MINUS:case Zt.NUM_PERIOD:case Zt.NUM_DIVISION:case Zt.SEMICOLON:case Zt.DASH:case Zt.EQUALS:case Zt.COMMA:case Zt.PERIOD:case Zt.SLASH:case Zt.APOSTROPHE:case Zt.SINGLE_QUOTE:case Zt.OPEN_SQUARE_BRACKET:case Zt.BACKSLASH:case Zt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},yt=Zt,Nn=`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`,Xt=`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`,qn="".concat(Nn," ").concat(Xt).split(/[\s\n]+/),Br="aria-",or="data-";function Gn(ft,dt){return ft.indexOf(dt)===0}function ir(ft){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt;dt===!1?zt={aria:!0,data:!0,attr:!0}:dt===!0?zt={aria:!0}:zt=(0,Pe.Z)({},dt);var qt={};return Object.keys(ft).forEach(function(Mn){(zt.aria&&(Mn==="role"||Gn(Mn,Br))||zt.data&&Gn(Mn,or)||zt.attr&&qn.includes(Mn))&&(qt[Mn]=ft[Mn])}),qt}function So(ft){var dt=React.useRef();dt.current=ft;var zt=React.useCallback(function(){for(var qt,Mn=arguments.length,Nr=new Array(Mn),Tr=0;Tr<Mn;Tr++)Nr[Tr]=arguments[Tr];return(qt=dt.current)===null||qt===void 0?void 0:qt.call.apply(qt,[dt].concat(Nr))},[]);return zt}function On(ft){var dt=React.useRef(!1),zt=React.useState(ft),qt=_slicedToArray(zt,2),Mn=qt[0],Nr=qt[1];React.useEffect(function(){return dt.current=!1,function(){dt.current=!0}},[]);function Tr(Wr,uo){uo&&dt.current||Nr(Wr)}return[Mn,Tr]}function qr(ft){return ft!==void 0}function Yo(ft,dt){var zt=dt||{},qt=zt.defaultValue,Mn=zt.value,Nr=zt.onChange,Tr=zt.postState,Wr=useState(function(){return qr(Mn)?Mn:qr(qt)?typeof qt=="function"?qt():qt:typeof ft=="function"?ft():ft}),uo=_slicedToArray(Wr,2),Mo=uo[0],Qo=uo[1],mi=Mn!==void 0?Mn:Mo,Fi=Tr?Tr(mi):mi,oa=useEvent(Nr),vo=useState([mi]),yi=_slicedToArray(vo,2),Mi=yi[0],pi=yi[1];useLayoutUpdateEffect(function(){var St=Mi[0];Mo!==St&&oa(Mo,St)},[Mi]),useLayoutUpdateEffect(function(){qr(Mn)||Qo(Mn)},[Mn]);var Pa=useEvent(function(St,Lt){Qo(St,Lt),pi([mi],Lt)});return[Fi,Pa]}var Zo=te(33993);function qo(ft,dt,zt){var qt=he.useRef({});return(!("value"in qt.current)||zt(qt.current.condition,dt))&&(qt.current.value=ft(),qt.current.condition=dt),qt.current.value}function yr(ft,dt){typeof ft=="function"?ft(dt):(0,y.Z)(ft)==="object"&&ft&&"current"in ft&&(ft.current=dt)}function xo(){for(var ft=arguments.length,dt=new Array(ft),zt=0;zt<ft;zt++)dt[zt]=arguments[zt];var qt=dt.filter(function(Mn){return Mn});return qt.length<=1?qt[0]:function(Mn){dt.forEach(function(Nr){yr(Nr,Mn)})}}function Wo(){for(var ft=arguments.length,dt=new Array(ft),zt=0;zt<ft;zt++)dt[zt]=arguments[zt];return qo(function(){return xo.apply(void 0,dt)},dt,function(qt,Mn){return qt.length!==Mn.length||qt.every(function(Nr,Tr){return Nr!==Mn[Tr]})})}function Wi(ft){var dt,zt,qt=isMemo(ft)?ft.type.type:ft.type;return!(typeof qt=="function"&&!((dt=qt.prototype)!==null&&dt!==void 0&&dt.render)||typeof ft=="function"&&!((zt=ft.prototype)!==null&&zt!==void 0&&zt.render))}function $i(ft){return!isValidElement(ft)||isFragment(ft)?!1:Wi(ft)}function Ci(ft,dt,zt,qt){if(!dt.length)return zt;var Mn=_toArray(dt),Nr=Mn[0],Tr=Mn.slice(1),Wr;return!ft&&typeof Nr=="number"?Wr=[]:Array.isArray(ft)?Wr=_toConsumableArray(ft):Wr=_objectSpread({},ft),qt&&zt===void 0&&Tr.length===1?delete Wr[Nr][Tr[0]]:Wr[Nr]=Ci(Wr[Nr],Tr,zt,qt),Wr}function ei(ft,dt,zt){var qt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return dt.length&&qt&&zt===void 0&&!get(ft,dt.slice(0,-1))?ft:Ci(ft,dt,zt,qt)}function po(ft){return _typeof(ft)==="object"&&ft!==null&&Object.getPrototypeOf(ft)===Object.prototype}function co(ft){return Array.isArray(ft)?[]:{}}var Ta=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function yn(){for(var ft=arguments.length,dt=new Array(ft),zt=0;zt<ft;zt++)dt[zt]=arguments[zt];var qt=co(dt[0]);return dt.forEach(function(Mn){function Nr(Tr,Wr){var uo=new Set(Wr),Mo=get(Mn,Tr),Qo=Array.isArray(Mo);if(Qo||po(Mo)){if(!uo.has(Mo)){uo.add(Mo);var mi=get(qt,Tr);Qo?qt=ei(qt,Tr,[]):(!mi||_typeof(mi)!=="object")&&(qt=ei(qt,Tr,co(Mo))),Ta(Mo).forEach(function(Fi){Nr([].concat(_toConsumableArray(Tr),[Fi]),uo)})}}else qt=ei(qt,Tr,Mo)}Nr([])}),qt}var ge={},ye=[],be=function(dt){ye.push(dt)};function Le(ft,dt){if(0)var zt}function Ne(ft,dt){if(0)var zt}function et(){ge={}}function ct(ft,dt,zt){!dt&&!ge[zt]&&(ft(!1,zt),ge[zt]=!0)}function _n(ft,dt){ct(Le,ft,dt)}function rn(ft,dt){ct(Ne,ft,dt)}_n.preMessage=be,_n.resetWarned=et,_n.noteOnce=rn;var In=_n,pr=function(dt){var zt=dt.prefixCls,qt=dt.className,Mn=dt.style,Nr=dt.children,Tr=dt.containerRef,Wr=dt.id,uo=dt.onMouseEnter,Mo=dt.onMouseOver,Qo=dt.onMouseLeave,mi=dt.onClick,Fi=dt.onKeyDown,oa=dt.onKeyUp,vo={onMouseEnter:uo,onMouseOver:Mo,onMouseLeave:Qo,onClick:mi,onKeyDown:Fi,onKeyUp:oa},yi=he.useContext($n),Mi=yi.panel,pi=Wo(Mi,Tr);return he.createElement(he.Fragment,null,he.createElement("div",(0,vt.Z)({id:Wr,className:fe()("".concat(zt,"-content"),qt),style:(0,Pe.Z)({},Mn),"aria-modal":"true",role:"dialog",ref:pi},vo),Nr))},_r=pr;function Mt(ft){return typeof ft=="string"&&String(Number(ft))===ft?(In(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ft)):ft}function ur(ft){warning(!("wrapperClassName"in ft),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ft.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var er={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Tn(ft,dt){var zt,qt,Mn,Nr,Tr=ft.prefixCls,Wr=ft.open,uo=ft.placement,Mo=ft.inline,Qo=ft.push,mi=ft.forceRender,Fi=ft.autoFocus,oa=ft.keyboard,vo=ft.rootClassName,yi=ft.rootStyle,Mi=ft.zIndex,pi=ft.className,Pa=ft.id,St=ft.style,Lt=ft.motion,jt=ft.width,$e=ft.height,Wt=ft.children,bn=ft.contentWrapperStyle,Rn=ft.mask,Nt=ft.maskClosable,$t=ft.maskMotion,It=ft.maskClassName,Ft=ft.maskStyle,Tt=ft.afterOpenChange,Ht=ft.onClose,Kt=ft.onMouseEnter,jn=ft.onMouseOver,tr=ft.onMouseLeave,Pr=ft.onClick,Cn=ft.onKeyDown,dr=ft.onKeyUp,ze=he.useRef(),ke=he.useRef(),qe=he.useRef();he.useImperativeHandle(dt,function(){return ze.current});var bt=function(To){var mo=To.keyCode,Oo=To.shiftKey;switch(mo){case yt.TAB:{if(mo===yt.TAB){if(!Oo&&document.activeElement===qe.current){var ki;(ki=ke.current)===null||ki===void 0||ki.focus({preventScroll:!0})}else if(Oo&&document.activeElement===ke.current){var ma;(ma=qe.current)===null||ma===void 0||ma.focus({preventScroll:!0})}}break}case yt.ESC:{Ht&&oa&&(To.stopPropagation(),Ht(To));break}}};he.useEffect(function(){if(Wr&&Fi){var kr;(kr=ze.current)===null||kr===void 0||kr.focus({preventScroll:!0})}},[Wr]);var kt=he.useState(!1),Ut=(0,ve.Z)(kt,2),cn=Ut[0],an=Ut[1],mn=he.useContext(no),vn;Qo===!1?vn={distance:0}:Qo===!0?vn={}:vn=Qo||{};var Zn=(zt=(qt=(Mn=vn)===null||Mn===void 0?void 0:Mn.distance)!==null&&qt!==void 0?qt:mn==null?void 0:mn.pushDistance)!==null&&zt!==void 0?zt:180,Hn=he.useMemo(function(){return{pushDistance:Zn,push:function(){an(!0)},pull:function(){an(!1)}}},[Zn]);he.useEffect(function(){if(Wr){var kr;mn==null||(kr=mn.push)===null||kr===void 0||kr.call(mn)}else{var To;mn==null||(To=mn.pull)===null||To===void 0||To.call(mn)}},[Wr]),he.useEffect(function(){return function(){var kr;mn==null||(kr=mn.pull)===null||kr===void 0||kr.call(mn)}},[]);var gr=Rn&&he.createElement(An.Z,(0,vt.Z)({key:"mask"},$t,{visible:Wr}),function(kr,To){var mo=kr.className,Oo=kr.style;return he.createElement("div",{className:fe()("".concat(Tr,"-mask"),mo,It),style:(0,Pe.Z)((0,Pe.Z)({},Oo),Ft),onClick:Nt&&Wr?Ht:void 0,ref:To})}),Fr=typeof Lt=="function"?Lt(uo):Lt,Cr={};if(cn&&Zn)switch(uo){case"top":Cr.transform="translateY(".concat(Zn,"px)");break;case"bottom":Cr.transform="translateY(".concat(-Zn,"px)");break;case"left":Cr.transform="translateX(".concat(Zn,"px)");break;default:Cr.transform="translateX(".concat(-Zn,"px)");break}uo==="left"||uo==="right"?Cr.width=Mt(jt):Cr.height=Mt($e);var Or={onMouseEnter:Kt,onMouseOver:jn,onMouseLeave:tr,onClick:Pr,onKeyDown:Cn,onKeyUp:dr},so=he.createElement(An.Z,(0,vt.Z)({key:"panel"},Fr,{visible:Wr,forceRender:mi,onVisibleChanged:function(To){Tt==null||Tt(To)},removeOnLeave:!1,leavedClassName:"".concat(Tr,"-content-wrapper-hidden")}),function(kr,To){var mo=kr.className,Oo=kr.style;return he.createElement("div",(0,vt.Z)({className:fe()("".concat(Tr,"-content-wrapper"),mo),style:(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Cr),Oo),bn)},ir(ft,{data:!0})),he.createElement(_r,(0,vt.Z)({id:Pa,containerRef:To,prefixCls:Tr,className:pi,style:St},Or),Wt))}),Co=(0,Pe.Z)({},yi);return Mi&&(Co.zIndex=Mi),he.createElement(no.Provider,{value:Hn},he.createElement("div",{className:fe()(Tr,"".concat(Tr,"-").concat(uo),vo,(Nr={},(0,rt.Z)(Nr,"".concat(Tr,"-open"),Wr),(0,rt.Z)(Nr,"".concat(Tr,"-inline"),Mo),Nr)),style:Co,tabIndex:-1,ref:ze,onKeyDown:bt},gr,he.createElement("div",{tabIndex:0,ref:ke,style:er,"aria-hidden":"true","data-sentinel":"start"}),so,he.createElement("div",{tabIndex:0,ref:qe,style:er,"aria-hidden":"true","data-sentinel":"end"})))}var Un=he.forwardRef(Tn),sr=Un,Zr=function(dt){var zt=dt.open,qt=zt===void 0?!1:zt,Mn=dt.prefixCls,Nr=Mn===void 0?"rc-drawer":Mn,Tr=dt.placement,Wr=Tr===void 0?"right":Tr,uo=dt.autoFocus,Mo=uo===void 0?!0:uo,Qo=dt.keyboard,mi=Qo===void 0?!0:Qo,Fi=dt.width,oa=Fi===void 0?378:Fi,vo=dt.mask,yi=vo===void 0?!0:vo,Mi=dt.maskClosable,pi=Mi===void 0?!0:Mi,Pa=dt.getContainer,St=dt.forceRender,Lt=dt.afterOpenChange,jt=dt.destroyOnClose,$e=dt.onMouseEnter,Wt=dt.onMouseOver,bn=dt.onMouseLeave,Rn=dt.onClick,Nt=dt.onKeyDown,$t=dt.onKeyUp,It=dt.panelRef,Ft=he.useState(!1),Tt=(0,ve.Z)(Ft,2),Ht=Tt[0],Kt=Tt[1],jn=he.useState(!1),tr=(0,ve.Z)(jn,2),Pr=tr[0],Cn=tr[1];fn(function(){Cn(!0)},[]);var dr=Pr?qt:!1,ze=he.useRef(),ke=he.useRef();fn(function(){dr&&(ke.current=document.activeElement)},[dr]);var qe=function(an){var mn;if(Kt(an),Lt==null||Lt(an),!an&&ke.current&&!((mn=ze.current)!==null&&mn!==void 0&&mn.contains(ke.current))){var vn;(vn=ke.current)===null||vn===void 0||vn.focus({preventScroll:!0})}},bt=he.useMemo(function(){return{panel:It}},[It]);if(!St&&!Ht&&!dr&&jt)return null;var kt={onMouseEnter:$e,onMouseOver:Wt,onMouseLeave:bn,onClick:Rn,onKeyDown:Nt,onKeyUp:$t},Ut=(0,Pe.Z)((0,Pe.Z)({},dt),{},{open:dr,prefixCls:Nr,placement:Wr,autoFocus:Mo,keyboard:mi,width:oa,mask:yi,maskClosable:pi,inline:Pa===!1,afterOpenChange:qe,ref:ze},kt);return he.createElement($n.Provider,{value:bt},he.createElement(Yt,{open:dr||St||Ht,autoDestroy:!1,getContainer:Pa,autoLock:yi&&(dr||Ht)},he.createElement(sr,Ut)))},xr=Zr,Gi=xr,Xo=te(33603),br=te(53124),_o=te(65223),wi=te(69760),hi=ft=>{const{prefixCls:dt,title:zt,footer:qt,extra:Mn,closeIcon:Nr,closable:Tr,onClose:Wr,headerStyle:uo,drawerStyle:Mo,bodyStyle:Qo,footerStyle:mi,children:Fi}=ft,oa=he.useCallback(Pa=>he.createElement("button",{type:"button",onClick:Wr,"aria-label":"Close",className:`${dt}-close`},Pa),[Wr]),[vo,yi]=(0,wi.Z)(Tr,Nr,oa,void 0,!0),Mi=he.useMemo(()=>!zt&&!vo?null:he.createElement("div",{style:uo,className:fe()(`${dt}-header`,{[`${dt}-header-close-only`]:vo&&!zt&&!Mn})},he.createElement("div",{className:`${dt}-header-title`},yi,zt&&he.createElement("div",{className:`${dt}-title`},zt)),Mn&&he.createElement("div",{className:`${dt}-extra`},Mn)),[vo,yi,Mn,uo,dt,zt]),pi=he.useMemo(()=>{if(!qt)return null;const Pa=`${dt}-footer`;return he.createElement("div",{className:Pa,style:mi},qt)},[qt,mi,dt]);return he.createElement("div",{className:`${dt}-wrapper-body`,style:Mo},Mi,he.createElement("div",{className:`${dt}-body`,style:Qo},Fi),pi)},pn=te(4173),Ya=te(67968),Ti=te(45503),Aa=ft=>{const{componentCls:dt,motionDurationSlow:zt}=ft,qt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${zt}`}}};return{[dt]:{[`${dt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${zt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${dt}-panel-motion`]:{"&-left":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[qt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Bn=ft=>{const{componentCls:dt,zIndexPopup:zt,colorBgMask:qt,colorBgElevated:Mn,motionDurationSlow:Nr,motionDurationMid:Tr,padding:Wr,paddingLG:uo,fontSizeLG:Mo,lineHeightLG:Qo,lineWidth:mi,lineType:Fi,colorSplit:oa,marginSM:vo,colorIcon:yi,colorIconHover:Mi,colorText:pi,fontWeightStrong:Pa,footerPaddingBlock:St,footerPaddingInline:Lt}=ft,jt=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:zt,pointerEvents:"none","&-pure":{position:"relative",background:Mn,[`&${dt}-left`]:{boxShadow:ft.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:ft.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:ft.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:ft.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:zt,background:qt,pointerEvents:"auto"},[jt]:{position:"absolute",zIndex:zt,maxWidth:"100vw",transition:`all ${Nr}`,"&-hidden":{display:"none"}},[`&-left > ${jt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ft.boxShadowDrawerLeft},[`&-right > ${jt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ft.boxShadowDrawerRight},[`&-top > ${jt}`]:{top:0,insetInline:0,boxShadow:ft.boxShadowDrawerUp},[`&-bottom > ${jt}`]:{bottom:0,insetInline:0,boxShadow:ft.boxShadowDrawerDown},[`${dt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Mn,pointerEvents:"auto"},[`${dt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Wr}px ${uo}px`,fontSize:Mo,lineHeight:Qo,borderBottom:`${mi}px ${Fi} ${oa}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:{display:"inline-block",marginInlineEnd:vo,color:yi,fontWeight:Pa,fontSize:Mo,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Tr}`,textRendering:"auto","&:focus, &:hover":{color:Mi,textDecoration:"none"}},[`${dt}-title`]:{flex:1,margin:0,color:pi,fontWeight:ft.fontWeightStrong,fontSize:Mo,lineHeight:Qo},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:uo,overflow:"auto"},[`${dt}-footer`]:{flexShrink:0,padding:`${St}px ${Lt}px`,borderTop:`${mi}px ${Fi} ${oa}`},"&-rtl":{direction:"rtl"}}}};var Sr=(0,Ya.Z)("Drawer",ft=>{const dt=(0,Ti.TS)(ft,{});return[Bn(dt),Aa(dt)]},ft=>({zIndexPopup:ft.zIndexPopupBase,footerPaddingBlock:ft.paddingXS,footerPaddingInline:ft.padding})),Kr=te(16569),lr=function(ft,dt){var zt={};for(var qt in ft)Object.prototype.hasOwnProperty.call(ft,qt)&&dt.indexOf(qt)<0&&(zt[qt]=ft[qt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mn=0,qt=Object.getOwnPropertySymbols(ft);Mn<qt.length;Mn++)dt.indexOf(qt[Mn])<0&&Object.prototype.propertyIsEnumerable.call(ft,qt[Mn])&&(zt[qt[Mn]]=ft[qt[Mn]]);return zt};const ci=null,Li={distance:180},ra=ft=>{var dt;const{rootClassName:zt,width:qt,height:Mn,size:Nr="default",mask:Tr=!0,push:Wr=Li,open:uo,afterOpenChange:Mo,onClose:Qo,prefixCls:mi,getContainer:Fi,style:oa,className:vo,visible:yi,afterVisibleChange:Mi}=ft,pi=lr(ft,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Pa,getPrefixCls:St,direction:Lt,drawer:jt}=he.useContext(br.E_),$e=St("drawer",mi),[Wt,bn]=Sr($e),Rn=Fi===void 0&&Pa?()=>Pa(document.body):Fi,Nt=fe()({"no-mask":!Tr,[`${$e}-rtl`]:Lt==="rtl"},zt,bn),$t=he.useMemo(()=>qt!=null?qt:Nr==="large"?736:378,[qt,Nr]),It=he.useMemo(()=>Mn!=null?Mn:Nr==="large"?736:378,[Mn,Nr]),Ft={motionName:(0,Xo.m)($e,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Tt=Kt=>({motionName:(0,Xo.m)($e,`panel-motion-${Kt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Ht=(0,Kr.H)();return Wt(he.createElement(pn.BR,null,he.createElement(_o.Ux,{status:!0,override:!0},he.createElement(Gi,Object.assign({prefixCls:$e,onClose:Qo,maskMotion:Ft,motion:Tt},pi,{open:uo!=null?uo:yi,mask:Tr,push:Wr,width:$t,height:It,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),oa),className:fe()(jt==null?void 0:jt.className,vo),rootClassName:Nt,getContainer:Rn,afterOpenChange:Mo!=null?Mo:Mi,panelRef:Ht}),he.createElement(hi,Object.assign({prefixCls:$e},pi,{onClose:Qo}))))))},Oa=ft=>{const{prefixCls:dt,style:zt,className:qt,placement:Mn="right"}=ft,Nr=lr(ft,["prefixCls","style","className","placement"]),{getPrefixCls:Tr}=he.useContext(br.E_),Wr=Tr("drawer",dt),[uo,Mo]=Sr(Wr),Qo=fe()(Wr,`${Wr}-pure`,`${Wr}-${Mn}`,Mo,qt);return uo(he.createElement("div",{className:Qo,style:zt},he.createElement(hi,Object.assign({prefixCls:Wr},Nr))))};ra._InternalPanelDoNotUseOrYouWillBeFired=Oa;var $a=ra},56153:function(at,We,te){"use strict";te.d(We,{Z:function(){return qs}});var z=te(67294),fe=te.t(z,2),Pe=te(79269),ve=te(94184),he=te.n(ve),pe=te(87462),ie=te(4942),de=te(97685),le=te(45987),ue=te(1413),se=te(73935);function me(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re={};function ne(Ie,Ve){}function a(Ie,Ve){}function y(){re={}}function E(Ie,Ve,Ye){!Ve&&!re[Ye]&&(Ie(!1,Ye),re[Ye]=!0)}function b(Ie,Ve){E(ne,Ie,Ve)}function x(Ie,Ve){E(a,Ie,Ve)}var ee=null,oe=te(71002),ae=te(12060);function ce(Ie,Ve,Ye){var pt=z.useRef({});return(!("value"in pt.current)||Ye(pt.current.condition,Ve))&&(pt.current.value=Ie(),pt.current.condition=Ve),pt.current.value}function Se(Ie,Ve){typeof Ie=="function"?Ie(Ve):(0,oe.Z)(Ie)==="object"&&Ie&&"current"in Ie&&(Ie.current=Ve)}function _e(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye<Ie;Ye++)Ve[Ye]=arguments[Ye];var pt=Ve.filter(function(Bt){return Bt});return pt.length<=1?pt[0]:function(Bt){Ve.forEach(function(sn){Se(sn,Bt)})}}function xe(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye<Ie;Ye++)Ve[Ye]=arguments[Ye];return ce(function(){return _e.apply(void 0,Ve)},Ve,function(pt,Bt){return pt.length===Bt.length&&pt.every(function(sn,dn){return sn===Bt[dn]})})}function we(Ie){var Ve,Ye,pt=(0,ae.isMemo)(Ie)?Ie.type.type:Ie.type;return!(typeof pt=="function"&&!((Ve=pt.prototype)!==null&&Ve!==void 0&&Ve.render)||typeof Ie=="function"&&!((Ye=Ie.prototype)!==null&&Ye!==void 0&&Ye.render))}var Fe=z.createContext(null),Me=Fe,ut=te(74902),Xe=me()?z.useLayoutEffect:z.useEffect,mt=Xe,Ae=function(Ve,Ye){var pt=React.useRef(!0);Xe(function(){if(!pt.current)return Ve()},Ye),Xe(function(){return pt.current=!1,function(){pt.current=!0}},[])},De=[];function Be(Ie,Ve){var Ye=z.useState(function(){if(!me())return null;var eo=document.createElement("div");return eo}),pt=(0,de.Z)(Ye,1),Bt=pt[0],sn=z.useRef(!1),dn=z.useContext(Me),Dn=z.useState(De),Pn=(0,de.Z)(Dn,2),Jn=Pn[0],jr=Pn[1],Qn=dn||(sn.current?void 0:function(eo){jr(function(ko){var jo=[eo].concat((0,ut.Z)(ko));return jo})});function zr(){Bt.parentElement||document.body.appendChild(Bt),sn.current=!0}function fr(){var eo;(eo=Bt.parentElement)===null||eo===void 0||eo.removeChild(Bt),sn.current=!1}return mt(function(){return Ie?dn?dn(zr):zr():fr(),fr},[Ie]),mt(function(){Jn.length&&(Jn.forEach(function(eo){return eo()}),jr(De))},[Jn]),[Bt,Qn]}function nt(Ie,Ve){if(!Ie)return!1;if(Ie.contains)return Ie.contains(Ve);for(var Ye=Ve;Ye;){if(Ye===Ie)return!0;Ye=Ye.parentNode}return!1}var Ke="data-rc-order",Et="rc-util-key",Ct=new Map;function nn(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ve=Ie.mark;return Ve?Ve.startsWith("data-")?Ve:"data-".concat(Ve):Et}function on(Ie){if(Ie.attachTo)return Ie.attachTo;var Ve=document.querySelector("head");return Ve||document.body}function it(Ie){return Ie==="queue"?"prependQueue":Ie?"prepend":"append"}function lt(Ie){return Array.from((Ct.get(Ie)||Ie).children).filter(function(Ve){return Ve.tagName==="STYLE"})}function xt(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!me())return null;var Ye=Ve.csp,pt=Ve.prepend,Bt=document.createElement("style");Bt.setAttribute(Ke,it(pt)),Ye!=null&&Ye.nonce&&(Bt.nonce=Ye==null?void 0:Ye.nonce),Bt.innerHTML=Ie;var sn=on(Ve),dn=sn.firstChild;if(pt){if(pt==="queue"){var Dn=lt(sn).filter(function(Pn){return["prepend","prependQueue"].includes(Pn.getAttribute(Ke))});if(Dn.length)return sn.insertBefore(Bt,Dn[Dn.length-1].nextSibling),Bt}sn.insertBefore(Bt,dn)}else sn.appendChild(Bt);return Bt}function Jt(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=on(Ve);return lt(Ye).find(function(pt){return pt.getAttribute(nn(Ve))===Ie})}function Vt(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ye=Jt(Ie,Ve);if(Ye){var pt=on(Ve);pt.removeChild(Ye)}}function xn(Ie,Ve){var Ye=Ct.get(Ie);if(!Ye||!nt(document,Ye)){var pt=xt("",Ve),Bt=pt.parentNode;Ct.set(Ie,Bt),Ie.removeChild(pt)}}function He(){Ct.clear()}function un(Ie,Ve){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pt=on(Ye);xn(pt,Ye);var Bt=Jt(Ve,Ye);if(Bt){var sn,dn;if((sn=Ye.csp)!==null&&sn!==void 0&&sn.nonce&&Bt.nonce!==((dn=Ye.csp)===null||dn===void 0?void 0:dn.nonce)){var Dn;Bt.nonce=(Dn=Ye.csp)===null||Dn===void 0?void 0:Dn.nonce}return Bt.innerHTML!==Ie&&(Bt.innerHTML=Ie),Bt}var Pn=xt(Ie,Ye);return Pn.setAttribute(nn(Ye),Ve),Pn}var kn;function nr(Ie){if(typeof document=="undefined")return 0;if(Ie||kn===void 0){var Ve=document.createElement("div");Ve.style.width="100%",Ve.style.height="200px";var Ye=document.createElement("div"),pt=Ye.style;pt.position="absolute",pt.top="0",pt.left="0",pt.pointerEvents="none",pt.visibility="hidden",pt.width="200px",pt.height="150px",pt.overflow="hidden",Ye.appendChild(Ve),document.body.appendChild(Ye);var Bt=Ve.offsetWidth;Ye.style.overflow="scroll";var sn=Ve.offsetWidth;Bt===sn&&(sn=Ye.clientWidth),document.body.removeChild(Ye),kn=Bt-sn}return kn}function Ln(Ie){var Ve=Ie.match(/^(.*)px$/),Ye=Number(Ve==null?void 0:Ve[1]);return Number.isNaN(Ye)?nr():Ye}function Gt(Ie){if(typeof document=="undefined"||!Ie||!(Ie instanceof Element))return{width:0,height:0};var Ve=getComputedStyle(Ie,"::-webkit-scrollbar"),Ye=Ve.width,pt=Ve.height;return{width:Ln(Ye),height:Ln(pt)}}function Je(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Qe="rc-util-locker-".concat(Date.now()),_t=0;function Rt(Ie){var Ve=!!Ie,Ye=z.useState(function(){return _t+=1,"".concat(Qe,"_").concat(_t)}),pt=(0,de.Z)(Ye,1),Bt=pt[0];mt(function(){if(Ve){var sn=Gt(document.body).width,dn=Je();un(`
html body {
overflow-y: hidden;
`.concat(dn?"width: calc(100% - ".concat(sn,"px);"):"",`
}`),Bt)}else Vt(Bt);return function(){Vt(Bt)}},[Ve,Bt])}var Yt=!1;function gt(Ie){return typeof Ie=="boolean"&&(Yt=Ie),Yt}var wt=function(Ve){return Ve===!1?!1:!me()||!Ve?null:typeof Ve=="string"?document.querySelector(Ve):typeof Ve=="function"?Ve():Ve},Dt=z.forwardRef(function(Ie,Ve){var Ye=Ie.open,pt=Ie.autoLock,Bt=Ie.getContainer,sn=Ie.debug,dn=Ie.autoDestroy,Dn=dn===void 0?!0:dn,Pn=Ie.children,Jn=z.useState(Ye),jr=(0,de.Z)(Jn,2),Qn=jr[0],zr=jr[1],fr=Qn||Ye;z.useEffect(function(){(Dn||Ye)&&zr(Ye)},[Ye,Dn]);var eo=z.useState(function(){return wt(Bt)}),ko=(0,de.Z)(eo,2),jo=ko[0],ri=ko[1];z.useEffect(function(){var Qi=wt(Bt);ri(Qi!=null?Qi:null)});var Eo=Be(fr&&!jo,sn),wo=(0,de.Z)(Eo,2),Yr=wo[0],ga=wo[1],Vi=jo!=null?jo:Yr;Rt(pt&&Ye&&me()&&(Vi===Yr||Vi===document.body));var fa=null;if(Pn&&we(Pn)&&Ve){var va=Pn;fa=va.ref}var Ua=xe(fa,Ve);if(!fr||!me()||jo===void 0)return null;var ui=Vi===!1||gt(),si=Pn;return Ve&&(si=z.cloneElement(Pn,{ref:Ua})),z.createElement(Me.Provider,{value:ga},ui?si:(0,se.createPortal)(si,Vi))}),tt=Dt,fn=tt,hn=te(48555);function $n(Ie){return Ie instanceof HTMLElement||Ie instanceof SVGElement}function no(Ie){return $n(Ie)?Ie:Ie instanceof React.Component?ReactDOM.findDOMNode(Ie):null}function rt(Ie){var Ve;return Ie==null||(Ve=Ie.getRootNode)===null||Ve===void 0?void 0:Ve.call(Ie)}function vt(Ie){return rt(Ie)instanceof ShadowRoot}function An(Ie){return vt(Ie)?rt(Ie):null}function Zt(Ie){var Ve=z.useRef();Ve.current=Ie;var Ye=z.useCallback(function(){for(var pt,Bt=arguments.length,sn=new Array(Bt),dn=0;dn<Bt;dn++)sn[dn]=arguments[dn];return(pt=Ve.current)===null||pt===void 0?void 0:pt.call.apply(pt,[Ve].concat(sn))},[]);return Ye}function yt(){var Ie=(0,ue.Z)({},fe);return Ie.useId}var Nn=0;function Xt(){}var qn=yt(),Br=qn?function(Ve){var Ye=qn();return Ve||Ye}:function(Ve){var Ye=z.useState("ssr-id"),pt=(0,de.Z)(Ye,2),Bt=pt[0],sn=pt[1];return z.useEffect(function(){var dn=Nn;Nn+=1,sn("rc_unique_".concat(dn))},[]),Ve||Bt};function or(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Gn=or()?z.useLayoutEffect:z.useEffect,ir=function(Ve,Ye){var pt=z.useRef(!0);Gn(function(){return Ve(pt.current)},Ye),Gn(function(){return pt.current=!1,function(){pt.current=!0}},[])},So=function(Ve,Ye){ir(function(pt){if(!pt)return Ve()},Ye)},On=ir,qr=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var Ie=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(Ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(Ie==null?void 0:Ie.substr(0,4))},Yo=z.createContext(null),Zo=Yo;function qo(Ie){return Ie?Array.isArray(Ie)?Ie:[Ie]:[]}function yr(Ie,Ve,Ye,pt){return z.useMemo(function(){var Bt=qo(Ye!=null?Ye:Ve),sn=qo(pt!=null?pt:Ve),dn=new Set(Bt),Dn=new Set(sn);return Ie&&(dn.has("hover")&&(dn.delete("hover"),dn.add("click")),Dn.has("hover")&&(Dn.delete("hover"),Dn.add("click"))),[dn,Dn]},[Ie,Ve,Ye,pt])}var xo=function(Ie){if(!Ie)return!1;if(Ie instanceof Element){if(Ie.offsetParent)return!0;if(Ie.getBBox){var Ve=Ie.getBBox(),Ye=Ve.width,pt=Ve.height;if(Ye||pt)return!0}if(Ie.getBoundingClientRect){var Bt=Ie.getBoundingClientRect(),sn=Bt.width,dn=Bt.height;if(sn||dn)return!0}}return!1};function Wo(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=arguments.length>2?arguments[2]:void 0;return Ye?Ie[0]===Ve[0]:Ie[0]===Ve[0]&&Ie[1]===Ve[1]}function Wi(Ie,Ve,Ye,pt){for(var Bt=Ye.points,sn=Object.keys(Ie),dn=0;dn<sn.length;dn+=1){var Dn,Pn=sn[dn];if(Wo((Dn=Ie[Pn])===null||Dn===void 0?void 0:Dn.points,Bt,pt))return"".concat(Ve,"-placement-").concat(Pn)}return""}function $i(Ie,Ve,Ye,pt){return Ve||(Ye?{motionName:"".concat(Ie,"-").concat(Ye)}:pt?{motionName:pt}:null)}function Ci(Ie){return Ie.ownerDocument.defaultView}function ei(Ie){for(var Ve=[],Ye=Ie==null?void 0:Ie.parentElement,pt=["hidden","scroll","clip","auto"];Ye;){var Bt=Ci(Ye).getComputedStyle(Ye),sn=Bt.overflowX,dn=Bt.overflowY,Dn=Bt.overflow;[sn,dn,Dn].some(function(Pn){return pt.includes(Pn)})&&Ve.push(Ye),Ye=Ye.parentElement}return Ve}function po(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Ie)?Ve:Ie}function co(Ie){return po(parseFloat(Ie),0)}function Ta(Ie,Ve){var Ye=(0,ue.Z)({},Ie);return(Ve||[]).forEach(function(pt){if(!(pt instanceof HTMLBodyElement||pt instanceof HTMLHtmlElement)){var Bt=Ci(pt).getComputedStyle(pt),sn=Bt.overflow,dn=Bt.overflowClipMargin,Dn=Bt.borderTopWidth,Pn=Bt.borderBottomWidth,Jn=Bt.borderLeftWidth,jr=Bt.borderRightWidth,Qn=pt.getBoundingClientRect(),zr=pt.offsetHeight,fr=pt.clientHeight,eo=pt.offsetWidth,ko=pt.clientWidth,jo=co(Dn),ri=co(Pn),Eo=co(Jn),wo=co(jr),Yr=po(Math.round(Qn.width/eo*1e3)/1e3),ga=po(Math.round(Qn.height/zr*1e3)/1e3),Vi=(eo-ko-Eo-wo)*Yr,fa=(zr-fr-jo-ri)*ga,va=jo*ga,Ua=ri*ga,ui=Eo*Yr,si=wo*Yr,Qi=0,Da=0;if(sn==="clip"){var Ji=co(dn);Qi=Ji*Yr,Da=Ji*ga}var di=Qn.x+ui-Qi,Zi=Qn.y+va-Da,Ao=di+Qn.width+2*Qi-ui-si-Vi,Ia=Zi+Qn.height+2*Da-va-Ua-fa;Ye.left=Math.max(Ye.left,di),Ye.top=Math.max(Ye.top,Zi),Ye.right=Math.min(Ye.right,Ao),Ye.bottom=Math.min(Ye.bottom,Ia)}}),Ye}function yn(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ye="".concat(Ve),pt=Ye.match(/^(.*)\%$/);return pt?Ie*(parseFloat(pt[1])/100):parseFloat(Ye)}function ge(Ie,Ve){var Ye=Ve||[],pt=(0,de.Z)(Ye,2),Bt=pt[0],sn=pt[1];return[yn(Ie.width,Bt),yn(Ie.height,sn)]}function ye(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Ie[0],Ie[1]]}function be(Ie,Ve){var Ye=Ve[0],pt=Ve[1],Bt,sn;return Ye==="t"?sn=Ie.y:Ye==="b"?sn=Ie.y+Ie.height:sn=Ie.y+Ie.height/2,pt==="l"?Bt=Ie.x:pt==="r"?Bt=Ie.x+Ie.width:Bt=Ie.x+Ie.width/2,{x:Bt,y:sn}}function Le(Ie,Ve){var Ye={t:"b",b:"t",l:"r",r:"l"};return Ie.map(function(pt,Bt){return Bt===Ve?Ye[pt]||"c":pt}).join("")}function Ne(Ie,Ve,Ye,pt,Bt,sn,dn){var Dn=z.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Bt[pt]||{}}),Pn=(0,de.Z)(Dn,2),Jn=Pn[0],jr=Pn[1],Qn=z.useRef(0),zr=z.useMemo(function(){return Ve?ei(Ve):[]},[Ve]),fr=z.useRef({}),eo=function(){fr.current={}};Ie||eo();var ko=Zt(function(){if(Ve&&Ye&&Ie){let io=function(Dr,hr){var Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fa,Er=zi.x+Dr,oo=zi.y+hr,Uo=Er+qi,Po=oo+Sa,to=Math.max(Er,Xn.left),Go=Math.max(oo,Xn.top),Vo=Math.min(Uo,Xn.right),ar=Math.min(Po,Xn.bottom);return Math.max(0,(Vo-to)*(ar-Go))},cr=function(){$o=zi.y+wr,zs=$o+Sa,vs=zi.x+zo,Cs=vs+qi};var Eo,wo,Yr=Ve,ga=Yr.ownerDocument,Vi=Ci(Yr),fa=Vi.getComputedStyle(Yr),va=fa.width,Ua=fa.height,ui=fa.position,si=Yr.style.left,Qi=Yr.style.top,Da=Yr.style.right,Ji=Yr.style.bottom,di=(0,ue.Z)((0,ue.Z)({},Bt[pt]),sn),Zi=ga.createElement("div");(Eo=Yr.parentElement)===null||Eo===void 0||Eo.appendChild(Zi),Zi.style.left="".concat(Yr.offsetLeft,"px"),Zi.style.top="".concat(Yr.offsetTop,"px"),Zi.style.position=ui,Zi.style.height="".concat(Yr.offsetHeight,"px"),Zi.style.width="".concat(Yr.offsetWidth,"px"),Yr.style.left="0",Yr.style.top="0",Yr.style.right="auto",Yr.style.bottom="auto";var Ao;if(Array.isArray(Ye))Ao={x:Ye[0],y:Ye[1],width:0,height:0};else{var Ia=Ye.getBoundingClientRect();Ao={x:Ia.x,y:Ia.y,width:Ia.width,height:Ia.height}}var zi=Yr.getBoundingClientRect(),Ha=ga.documentElement,ss=Ha.clientWidth,Ka=Ha.clientHeight,Vr=Ha.scrollWidth,ms=Ha.scrollHeight,Ui=Ha.scrollTop,gs=Ha.scrollLeft,Sa=zi.height,qi=zi.width,Ba=Ao.height,ps=Ao.width,xi={left:0,top:0,right:ss,bottom:Ka},ya={left:-gs,top:-Ui,right:Vr-gs,bottom:ms-Ui},is=di.htmlRegion,sa="visible",As="visibleFirst";is!=="scroll"&&is!==As&&(is=sa);var es=is===As,la=Ta(ya,zr),yo=Ta(xi,zr),Fa=is===sa?yo:la,ls=es?yo:Fa;Yr.style.left="auto",Yr.style.top="auto",Yr.style.right="0",Yr.style.bottom="0";var Ds=Yr.getBoundingClientRect();Yr.style.left=si,Yr.style.top=Qi,Yr.style.right=Da,Yr.style.bottom=Ji,(wo=Yr.parentElement)===null||wo===void 0||wo.removeChild(Zi);var Ys=po(Math.round(qi/parseFloat(va)*1e3)/1e3),Zs=po(Math.round(Sa/parseFloat(Ua)*1e3)/1e3);if(Ys===0||Zs===0||$n(Ye)&&!xo(Ye))return;var Oe=di.offset,je=di.targetOffset,Ge=ge(zi,Oe),vr=(0,de.Z)(Ge,2),wn=vr[0],en=vr[1],En=ge(Ao,je),Qt=(0,de.Z)(En,2),Sn=Qt[0],Kn=Qt[1];Ao.x-=Sn,Ao.y-=Kn;var Do=di.points||[],Mr=(0,de.Z)(Do,2),Io=Mr[0],Hr=Mr[1],bo=ye(Hr),Ir=ye(Io),ea=be(Ao,bo),Lo=be(zi,Ir),Ho=(0,ue.Z)({},di),zo=ea.x-Lo.x+wn,wr=ea.y-Lo.y+en,li=io(zo,wr),Vn=io(zo,wr,yo),Di=be(Ao,["t","l"]),Jo=be(zi,["t","l"]),ha=be(Ao,["b","r"]),Ma=be(zi,["b","r"]),Lr=di.overflow||{},ca=Lr.adjustX,oi=Lr.adjustY,$r=Lr.shiftX,Ro=Lr.shiftY,gi=function(hr){return typeof hr=="boolean"?hr:hr>=0},$o,zs,vs,Cs;cr();var Rs=gi(oi),ws=Ir[0]===bo[0];if(Rs&&Ir[0]==="t"&&(zs>ls.bottom||fr.current.bt)){var cs=wr;ws?cs-=Sa-Ba:cs=Di.y-Ma.y-en;var ro=io(zo,cs),Si=io(zo,cs,yo);ro>li||ro===li&&(!es||Si>=Vn)?(fr.current.bt=!0,wr=cs,en=-en,Ho.points=[Le(Ir,0),Le(bo,0)]):fr.current.bt=!1}if(Rs&&Ir[0]==="b"&&($o<ls.top||fr.current.tb)){var Va=wr;ws?Va+=Sa-Ba:Va=ha.y-Jo.y-en;var Us=io(zo,Va),as=io(zo,Va,yo);Us>li||Us===li&&(!es||as>=Vn)?(fr.current.tb=!0,wr=Va,en=-en,Ho.points=[Le(Ir,0),Le(bo,0)]):fr.current.tb=!1}var el=gi(ca),Wa=Ir[1]===bo[1];if(el&&Ir[1]==="l"&&(Cs>ls.right||fr.current.rl)){var _a=zo;Wa?_a-=qi-ps:_a=Di.x-Ma.x-wn;var Hs=io(_a,wr),Ee=io(_a,wr,yo);Hs>li||Hs===li&&(!es||Ee>=Vn)?(fr.current.rl=!0,zo=_a,wn=-wn,Ho.points=[Le(Ir,1),Le(bo,1)]):fr.current.rl=!1}if(el&&Ir[1]==="r"&&(vs<ls.left||fr.current.lr)){var Ce=zo;Wa?Ce+=qi-ps:Ce=ha.x-Jo.x-wn;var Re=io(Ce,wr),Te=io(Ce,wr,yo);Re>li||Re===li&&(!es||Te>=Vn)?(fr.current.lr=!0,zo=Ce,wn=-wn,Ho.points=[Le(Ir,1),Le(bo,1)]):fr.current.lr=!1}cr();var Ue=$r===!0?0:$r;typeof Ue=="number"&&(vs<yo.left&&(zo-=vs-yo.left-wn,Ao.x+ps<yo.left+Ue&&(zo+=Ao.x-yo.left+ps-Ue)),Cs>yo.right&&(zo-=Cs-yo.right-wn,Ao.x>yo.right-Ue&&(zo+=Ao.x-yo.right+Ue)));var Ze=Ro===!0?0:Ro;typeof Ze=="number"&&($o<yo.top&&(wr-=$o-yo.top-en,Ao.y+Ba<yo.top+Ze&&(wr+=Ao.y-yo.top+Ba-Ze)),zs>yo.bottom&&(wr-=zs-yo.bottom-en,Ao.y>yo.bottom-Ze&&(wr+=Ao.y-yo.bottom+Ze)));var ot=zi.x+zo,st=ot+qi,ht=zi.y+wr,Pt=ht+Sa,Ot=Ao.x,At=Ot+ps,tn=Ao.y,gn=tn+Ba,ln=Math.max(ot,Ot),Wn=Math.min(st,At),Fn=(ln+Wn)/2,Yn=Fn-ot,zn=Math.max(ht,tn),rr=Math.min(Pt,gn),Ur=(zn+rr)/2,Xr=Ur-ht;dn==null||dn(Ve,Ho);var Ar=Ds.right-zi.x-(zo+zi.width),fo=Ds.bottom-zi.y-(wr+zi.height);jr({ready:!0,offsetX:zo/Ys,offsetY:wr/Zs,offsetR:Ar/Ys,offsetB:fo/Zs,arrowX:Yn/Ys,arrowY:Xr/Zs,scaleX:Ys,scaleY:Zs,align:Ho})}}),jo=function(){Qn.current+=1;var wo=Qn.current;Promise.resolve().then(function(){Qn.current===wo&&ko()})},ri=function(){jr(function(wo){return(0,ue.Z)((0,ue.Z)({},wo),{},{ready:!1})})};return On(ri,[pt]),On(function(){Ie||ri()},[Ie]),[Jn.ready,Jn.offsetX,Jn.offsetY,Jn.offsetR,Jn.offsetB,Jn.arrowX,Jn.arrowY,Jn.scaleX,Jn.scaleY,Jn.align,jo]}function et(Ie,Ve,Ye,pt,Bt){On(function(){if(Ie&&Ve&&Ye){let Qn=function(){pt(),Bt()};var sn=Ve,dn=Ye,Dn=ei(sn),Pn=ei(dn),Jn=Ci(dn),jr=new Set([Jn].concat((0,ut.Z)(Dn),(0,ut.Z)(Pn)));return jr.forEach(function(zr){zr.addEventListener("scroll",Qn,{passive:!0})}),Jn.addEventListener("resize",Qn,{passive:!0}),pt(),function(){jr.forEach(function(zr){zr.removeEventListener("scroll",Qn),Jn.removeEventListener("resize",Qn)})}}},[Ie,Ve,Ye])}function ct(Ie){var Ve=React.useRef(!1),Ye=React.useState(Ie),pt=_slicedToArray(Ye,2),Bt=pt[0],sn=pt[1];React.useEffect(function(){return Ve.current=!1,function(){Ve.current=!0}},[]);function dn(Dn,Pn){Pn&&Ve.current||sn(Dn)}return[Bt,dn]}function _n(Ie){return Ie!==void 0}function rn(Ie,Ve){var Ye=Ve||{},pt=Ye.defaultValue,Bt=Ye.value,sn=Ye.onChange,dn=Ye.postState,Dn=useState(function(){return _n(Bt)?Bt:_n(pt)?typeof pt=="function"?pt():pt:typeof Ie=="function"?Ie():Ie}),Pn=_slicedToArray(Dn,2),Jn=Pn[0],jr=Pn[1],Qn=Bt!==void 0?Bt:Jn,zr=dn?dn(Qn):Qn,fr=useEvent(sn),eo=useState([Qn]),ko=_slicedToArray(eo,2),jo=ko[0],ri=ko[1];useLayoutUpdateEffect(function(){var wo=jo[0];Jn!==wo&&fr(Jn,wo)},[jo]),useLayoutUpdateEffect(function(){_n(Bt)||jr(Bt)},[Bt]);var Eo=useEvent(function(wo,Yr){jr(wo,Yr),ri([Qn],Yr)});return[zr,Eo]}var In=te(95845);function pr(Ie,Ve,Ye){var pt=z.useRef({});return(!("value"in pt.current)||Ye(pt.current.condition,Ve))&&(pt.current.value=Ie(),pt.current.condition=Ve),pt.current.value}function _r(Ie,Ve){typeof Ie=="function"?Ie(Ve):(0,oe.Z)(Ie)==="object"&&Ie&&"current"in Ie&&(Ie.current=Ve)}function Mt(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye<Ie;Ye++)Ve[Ye]=arguments[Ye];var pt=Ve.filter(function(Bt){return Bt});return pt.length<=1?pt[0]:function(Bt){Ve.forEach(function(sn){_r(sn,Bt)})}}function ur(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye<Ie;Ye++)Ve[Ye]=arguments[Ye];return pr(function(){return Mt.apply(void 0,Ve)},Ve,function(pt,Bt){return pt.length!==Bt.length||pt.every(function(sn,dn){return sn!==Bt[dn]})})}function er(Ie){var Ve,Ye,pt=(0,In.isMemo)(Ie)?Ie.type.type:Ie.type;return!(typeof pt=="function"&&!((Ve=pt.prototype)!==null&&Ve!==void 0&&Ve.render)||typeof Ie=="function"&&!((Ye=Ie.prototype)!==null&&Ye!==void 0&&Ye.render))}function Tn(Ie){return!isValidElement(Ie)||isFragment(Ie)?!1:er(Ie)}function Un(Ie,Ve,Ye,pt){if(!Ve.length)return Ye;var Bt=_toArray(Ve),sn=Bt[0],dn=Bt.slice(1),Dn;return!Ie&&typeof sn=="number"?Dn=[]:Array.isArray(Ie)?Dn=_toConsumableArray(Ie):Dn=_objectSpread({},Ie),pt&&Ye===void 0&&dn.length===1?delete Dn[sn][dn[0]]:Dn[sn]=Un(Dn[sn],dn,Ye,pt),Dn}function sr(Ie,Ve,Ye){var pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ve.length&&pt&&Ye===void 0&&!get(Ie,Ve.slice(0,-1))?Ie:Un(Ie,Ve,Ye,pt)}function Zr(Ie){return _typeof(Ie)==="object"&&Ie!==null&&Object.getPrototypeOf(Ie)===Object.prototype}function xr(Ie){return Array.isArray(Ie)?[]:{}}var Gi=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Xo(){for(var Ie=arguments.length,Ve=new Array(Ie),Ye=0;Ye<Ie;Ye++)Ve[Ye]=arguments[Ye];var pt=xr(Ve[0]);return Ve.forEach(function(Bt){function sn(dn,Dn){var Pn=new Set(Dn),Jn=get(Bt,dn),jr=Array.isArray(Jn);if(jr||Zr(Jn)){if(!Pn.has(Jn)){Pn.add(Jn);var Qn=get(pt,dn);jr?pt=sr(pt,dn,[]):(!Qn||_typeof(Qn)!=="object")&&(pt=sr(pt,dn,xr(Jn))),Gi(Jn).forEach(function(zr){sn([].concat(_toConsumableArray(dn),[zr]),Pn)})}}else pt=sr(pt,dn,Jn)}sn([])}),pt}var br={},_o=[],wi=function(Ve){_o.push(Ve)};function ti(Ie,Ve){if(0)var Ye}function hi(Ie,Ve){if(0)var Ye}function pn(){br={}}function Ya(Ie,Ve,Ye){!Ve&&!br[Ye]&&(Ie(!1,Ye),br[Ye]=!0)}function Ti(Ie,Ve){Ya(ti,Ie,Ve)}function Bo(Ie,Ve){Ya(hi,Ie,Ve)}Ti.preMessage=wi,Ti.resetWarned=pn,Ti.noteOnce=Bo;var Aa=null,Bn=function(Ve){return+setTimeout(Ve,16)},Sr=function(Ve){return clearTimeout(Ve)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Bn=function(Ve){return window.requestAnimationFrame(Ve)},Sr=function(Ve){return window.cancelAnimationFrame(Ve)});var Kr=0,lr=new Map;function ci(Ie){lr.delete(Ie)}var Li=function(Ve){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Kr+=1;var pt=Kr;function Bt(sn){if(sn===0)ci(pt),Ve();else{var dn=Bn(function(){Bt(sn-1)});lr.set(pt,dn)}}return Bt(Ye),pt};Li.cancel=function(Ie){var Ve=lr.get(Ie);return ci(Ve),Sr(Ve)};var ra=Li;function Oa(Ie,Ve,Ye,pt,Bt,sn,dn,Dn){var Pn=z.useRef(Ie),Jn=z.useRef(!1);Pn.current!==Ie&&(Jn.current=!0,Pn.current=Ie),z.useEffect(function(){var jr=ra(function(){Jn.current=!1});return function(){ra.cancel(jr)}},[Ie]),z.useEffect(function(){if(Ve&&pt&&(!Bt||sn)){var jr=function(){var ui=!1,si=function(Ji){var di=Ji.target;ui=dn(di)},Qi=function(Ji){var di=Ji.target;!Jn.current&&Pn.current&&!ui&&!dn(di)&&Dn(!1)};return[si,Qi]},Qn=jr(),zr=(0,de.Z)(Qn,2),fr=zr[0],eo=zr[1],ko=jr(),jo=(0,de.Z)(ko,2),ri=jo[0],Eo=jo[1],wo=Ci(pt);wo.addEventListener("mousedown",fr,!0),wo.addEventListener("click",eo,!0),wo.addEventListener("contextmenu",eo,!0);var Yr=An(Ye);if(Yr&&(Yr.addEventListener("mousedown",ri,!0),Yr.addEventListener("click",Eo,!0),Yr.addEventListener("contextmenu",Eo,!0)),0)var ga,Vi,fa,va;return function(){wo.removeEventListener("mousedown",fr,!0),wo.removeEventListener("click",eo,!0),wo.removeEventListener("contextmenu",eo,!0),Yr&&(Yr.removeEventListener("mousedown",ri,!0),Yr.removeEventListener("click",Eo,!0),Yr.removeEventListener("contextmenu",Eo,!0))}}},[Ve,Ye,pt,Bt,sn])}function $a(Ie){return Ie instanceof HTMLElement||Ie instanceof SVGElement}function ft(Ie){return $a(Ie)?Ie:Ie instanceof z.Component?se.findDOMNode(Ie):null}function dt(Ie,Ve){var Ye={};return Ye[Ie.toLowerCase()]=Ve.toLowerCase(),Ye["Webkit".concat(Ie)]="webkit".concat(Ve),Ye["Moz".concat(Ie)]="moz".concat(Ve),Ye["ms".concat(Ie)]="MS".concat(Ve),Ye["O".concat(Ie)]="o".concat(Ve.toLowerCase()),Ye}function zt(Ie,Ve){var Ye={animationend:dt("Animation","AnimationEnd"),transitionend:dt("Transition","TransitionEnd")};return Ie&&("AnimationEvent"in Ve||delete Ye.animationend.animation,"TransitionEvent"in Ve||delete Ye.transitionend.transition),Ye}var qt=zt(me(),typeof window!="undefined"?window:{}),Mn={};if(me()){var Nr=document.createElement("div");Mn=Nr.style}var Tr={};function Wr(Ie){if(Tr[Ie])return Tr[Ie];var Ve=qt[Ie];if(Ve)for(var Ye=Object.keys(Ve),pt=Ye.length,Bt=0;Bt<pt;Bt+=1){var sn=Ye[Bt];if(Object.prototype.hasOwnProperty.call(Ve,sn)&&sn in Mn)return Tr[Ie]=Ve[sn],Tr[Ie]}return""}var uo=Wr("animationend"),Mo=Wr("transitionend"),Qo=!!(uo&&Mo),mi=uo||"animationend",Fi=Mo||"transitionend";function oa(Ie,Ve){if(!Ie)return null;if((0,oe.Z)(Ie)==="object"){var Ye=Ve.replace(/-\w/g,function(pt){return pt[1].toUpperCase()});return Ie[Ye]}return"".concat(Ie,"-").concat(Ve)}var vo="none",yi="appear",Mi="enter",pi="leave",Pa="none",St="prepare",Lt="start",jt="active",$e="end";function Wt(Ie){var Ve=z.useRef(!1),Ye=z.useState(Ie),pt=(0,de.Z)(Ye,2),Bt=pt[0],sn=pt[1];z.useEffect(function(){return Ve.current=!1,function(){Ve.current=!0}},[]);function dn(Dn,Pn){Pn&&Ve.current||sn(Dn)}return[Bt,dn]}var bn=function(Ve){return+setTimeout(Ve,16)},Rn=function(Ve){return clearTimeout(Ve)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(bn=function(Ve){return window.requestAnimationFrame(Ve)},Rn=function(Ve){return window.cancelAnimationFrame(Ve)});var Nt=0,$t=new Map;function It(Ie){$t.delete(Ie)}var Ft=function(Ve){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Nt+=1;var pt=Nt;function Bt(sn){if(sn===0)It(pt),Ve();else{var dn=bn(function(){Bt(sn-1)});$t.set(pt,dn)}}return Bt(Ye),pt};Ft.cancel=function(Ie){var Ve=$t.get(Ie);return It(Ve),Rn(Ve)};var Tt=Ft,Ht=function(){var Ie=z.useRef(null);function Ve(){Tt.cancel(Ie.current)}function Ye(pt){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Ve();var sn=Tt(function(){Bt<=1?pt({isCanceled:function(){return sn!==Ie.current}}):Ye(pt,Bt-1)});Ie.current=sn}return z.useEffect(function(){return function(){Ve()}},[]),[Ye,Ve]},Kt=me()?z.useLayoutEffect:z.useEffect,jn=Kt,tr=[St,Lt,jt,$e],Pr=!1,Cn=!0;function dr(Ie){return Ie===jt||Ie===$e}var ze=function(Ie,Ve){var Ye=Wt(Pa),pt=(0,de.Z)(Ye,2),Bt=pt[0],sn=pt[1],dn=Ht(),Dn=(0,de.Z)(dn,2),Pn=Dn[0],Jn=Dn[1];function jr(){sn(St,!0)}return jn(function(){if(Bt!==Pa&&Bt!==$e){var Qn=tr.indexOf(Bt),zr=tr[Qn+1],fr=Ve(Bt);fr===Pr?sn(zr,!0):Pn(function(eo){function ko(){eo.isCanceled()||sn(zr,!0)}fr===!0?ko():Promise.resolve(fr).then(ko)})}},[Ie,Bt]),z.useEffect(function(){return function(){Jn()}},[]),[jr,Bt]},ke=function(Ie){var Ve=(0,z.useRef)(),Ye=(0,z.useRef)(Ie);Ye.current=Ie;var pt=z.useCallback(function(dn){Ye.current(dn)},[]);function Bt(dn){dn&&(dn.removeEventListener(Fi,pt),dn.removeEventListener(mi,pt))}function sn(dn){Ve.current&&Ve.current!==dn&&Bt(Ve.current),dn&&dn!==Ve.current&&(dn.addEventListener(Fi,pt),dn.addEventListener(mi,pt),Ve.current=dn)}return z.useEffect(function(){return function(){Bt(Ve.current)}},[]),[sn,Bt]};function qe(Ie,Ve,Ye,pt){var Bt=pt.motionEnter,sn=Bt===void 0?!0:Bt,dn=pt.motionAppear,Dn=dn===void 0?!0:dn,Pn=pt.motionLeave,Jn=Pn===void 0?!0:Pn,jr=pt.motionDeadline,Qn=pt.motionLeaveImmediately,zr=pt.onAppearPrepare,fr=pt.onEnterPrepare,eo=pt.onLeavePrepare,ko=pt.onAppearStart,jo=pt.onEnterStart,ri=pt.onLeaveStart,Eo=pt.onAppearActive,wo=pt.onEnterActive,Yr=pt.onLeaveActive,ga=pt.onAppearEnd,Vi=pt.onEnterEnd,fa=pt.onLeaveEnd,va=pt.onVisibleChanged,Ua=Wt(),ui=(0,de.Z)(Ua,2),si=ui[0],Qi=ui[1],Da=Wt(vo),Ji=(0,de.Z)(Da,2),di=Ji[0],Zi=Ji[1],Ao=Wt(null),Ia=(0,de.Z)(Ao,2),zi=Ia[0],Ha=Ia[1],ss=(0,z.useRef)(!1),Ka=(0,z.useRef)(null);function Vr(){return Ye()}var ms=(0,z.useRef)(!1);function Ui(la){var yo=Vr();if(!(la&&!la.deadline&&la.target!==yo)){var Fa=ms.current,ls;di===yi&&Fa?ls=ga==null?void 0:ga(yo,la):di===Mi&&Fa?ls=Vi==null?void 0:Vi(yo,la):di===pi&&Fa&&(ls=fa==null?void 0:fa(yo,la)),di!==vo&&Fa&&ls!==!1&&(Zi(vo,!0),Ha(null,!0))}}var gs=ke(Ui),Sa=(0,de.Z)(gs,1),qi=Sa[0],Ba=z.useMemo(function(){var la,yo,Fa;switch(di){case yi:return la={},(0,ie.Z)(la,St,zr),(0,ie.Z)(la,Lt,ko),(0,ie.Z)(la,jt,Eo),la;case Mi:return yo={},(0,ie.Z)(yo,St,fr),(0,ie.Z)(yo,Lt,jo),(0,ie.Z)(yo,jt,wo),yo;case pi:return Fa={},(0,ie.Z)(Fa,St,eo),(0,ie.Z)(Fa,Lt,ri),(0,ie.Z)(Fa,jt,Yr),Fa;default:return{}}},[di]),ps=ze(di,function(la){if(la===St){var yo=Ba[St];return yo?yo(Vr()):Pr}if(is in Ba){var Fa;Ha(((Fa=Ba[is])===null||Fa===void 0?void 0:Fa.call(Ba,Vr(),null))||null)}return is===jt&&(qi(Vr()),jr>0&&(clearTimeout(Ka.current),Ka.current=setTimeout(function(){Ui({deadline:!0})},jr))),Cn}),xi=(0,de.Z)(ps,2),ya=xi[0],is=xi[1],sa=dr(is);ms.current=sa,jn(function(){Qi(Ve);var la=ss.current;if(ss.current=!0,!!Ie){var yo;!la&&Ve&&Dn&&(yo=yi),la&&Ve&&sn&&(yo=Mi),(la&&!Ve&&Jn||!la&&Qn&&!Ve&&Jn)&&(yo=pi),yo&&(Zi(yo),ya())}},[Ve]),(0,z.useEffect)(function(){(di===yi&&!Dn||di===Mi&&!sn||di===pi&&!Jn)&&Zi(vo)},[Dn,sn,Jn]),(0,z.useEffect)(function(){return function(){ss.current=!1,clearTimeout(Ka.current)}},[]);var As=z.useRef(!1);(0,z.useEffect)(function(){si&&(As.current=!0),si!==void 0&&di===vo&&((As.current||si)&&(va==null||va(si)),As.current=!0)},[si,di]);var es=zi;return Ba[St]&&is===Lt&&(es=(0,ue.Z)({transition:"none"},es)),[di,is,es,si!=null?si:Ve]}var bt=te(15671),kt=te(43144),Ut=te(60136),cn=te(51630),an=function(Ie){(0,Ut.Z)(Ye,Ie);var Ve=(0,cn.Z)(Ye);function Ye(){return(0,bt.Z)(this,Ye),Ve.apply(this,arguments)}return(0,kt.Z)(Ye,[{key:"render",value:function(){return this.props.children}}]),Ye}(z.Component),mn=an;function vn(Ie){var Ve=Ie;(0,oe.Z)(Ie)==="object"&&(Ve=Ie.transitionSupport);function Ye(Bt){return!!(Bt.motionName&&Ve)}var pt=z.forwardRef(function(Bt,sn){var dn=Bt.visible,Dn=dn===void 0?!0:dn,Pn=Bt.removeOnLeave,Jn=Pn===void 0?!0:Pn,jr=Bt.forceRender,Qn=Bt.children,zr=Bt.motionName,fr=Bt.leavedClassName,eo=Bt.eventProps,ko=Ye(Bt),jo=(0,z.useRef)(),ri=(0,z.useRef)();function Eo(){try{return jo.current instanceof HTMLElement?jo.current:ft(ri.current)}catch(Ao){return null}}var wo=qe(ko,Dn,Eo,Bt),Yr=(0,de.Z)(wo,4),ga=Yr[0],Vi=Yr[1],fa=Yr[2],va=Yr[3],Ua=z.useRef(va);va&&(Ua.current=!0);var ui=z.useCallback(function(Ao){jo.current=Ao,Se(sn,Ao)},[sn]),si,Qi=(0,ue.Z)((0,ue.Z)({},eo),{},{visible:Dn});if(!Qn)si=null;else if(ga===vo||!Ye(Bt))va?si=Qn((0,ue.Z)({},Qi),ui):!Jn&&Ua.current&&fr?si=Qn((0,ue.Z)((0,ue.Z)({},Qi),{},{className:fr}),ui):jr||!Jn&&!fr?si=Qn((0,ue.Z)((0,ue.Z)({},Qi),{},{style:{display:"none"}}),ui):si=null;else{var Da,Ji;Vi===St?Ji="prepare":dr(Vi)?Ji="active":Vi===Lt&&(Ji="start"),si=Qn((0,ue.Z)((0,ue.Z)({},Qi),{},{className:he()(oa(zr,ga),(Da={},(0,ie.Z)(Da,oa(zr,"".concat(ga,"-").concat(Ji)),Ji),(0,ie.Z)(Da,zr,typeof zr=="string"),Da)),style:fa}),ui)}if(z.isValidElement(si)&&we(si)){var di=si,Zi=di.ref;Zi||(si=z.cloneElement(si,{ref:ui}))}return z.createElement(mn,{ref:ri},si)});return pt.displayName="CSSMotion",pt}var Zn=vn(Qo),Hn=te(97326),gr="add",Fr="keep",Cr="remove",Or="removed";function so(Ie){var Ve;return Ie&&(0,oe.Z)(Ie)==="object"&&"key"in Ie?Ve=Ie:Ve={key:Ie},(0,ue.Z)((0,ue.Z)({},Ve),{},{key:String(Ve.key)})}function Co(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ie.map(so)}function kr(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=[],pt=0,Bt=Ve.length,sn=Co(Ie),dn=Co(Ve);sn.forEach(function(Jn){for(var jr=!1,Qn=pt;Qn<Bt;Qn+=1){var zr=dn[Qn];if(zr.key===Jn.key){pt<Qn&&(Ye=Ye.concat(dn.slice(pt,Qn).map(function(fr){return(0,ue.Z)((0,ue.Z)({},fr),{},{status:gr})})),pt=Qn),Ye.push((0,ue.Z)((0,ue.Z)({},zr),{},{status:Fr})),pt+=1,jr=!0;break}}jr||Ye.push((0,ue.Z)((0,ue.Z)({},Jn),{},{status:Cr}))}),pt<Bt&&(Ye=Ye.concat(dn.slice(pt).map(function(Jn){return(0,ue.Z)((0,ue.Z)({},Jn),{},{status:gr})})));var Dn={};Ye.forEach(function(Jn){var jr=Jn.key;Dn[jr]=(Dn[jr]||0)+1});var Pn=Object.keys(Dn).filter(function(Jn){return Dn[Jn]>1});return Pn.forEach(function(Jn){Ye=Ye.filter(function(jr){var Qn=jr.key,zr=jr.status;return Qn!==Jn||zr!==Cr}),Ye.forEach(function(jr){jr.key===Jn&&(jr.status=Fr)})}),Ye}var To=["component","children","onVisibleChanged","onAllRemoved"],mo=["status"],Oo=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ki(Ie){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zn,Ye=function(pt){(0,Ut.Z)(sn,pt);var Bt=(0,cn.Z)(sn);function sn(){var dn;(0,bt.Z)(this,sn);for(var Dn=arguments.length,Pn=new Array(Dn),Jn=0;Jn<Dn;Jn++)Pn[Jn]=arguments[Jn];return dn=Bt.call.apply(Bt,[this].concat(Pn)),(0,ie.Z)((0,Hn.Z)(dn),"state",{keyEntities:[]}),(0,ie.Z)((0,Hn.Z)(dn),"removeKey",function(jr){var Qn=dn.state.keyEntities,zr=Qn.map(function(fr){return fr.key!==jr?fr:(0,ue.Z)((0,ue.Z)({},fr),{},{status:Or})});return dn.setState({keyEntities:zr}),zr.filter(function(fr){var eo=fr.status;return eo!==Or}).length}),dn}return(0,kt.Z)(sn,[{key:"render",value:function(){var Dn=this,Pn=this.state.keyEntities,Jn=this.props,jr=Jn.component,Qn=Jn.children,zr=Jn.onVisibleChanged,fr=Jn.onAllRemoved,eo=(0,le.Z)(Jn,To),ko=jr||z.Fragment,jo={};return Oo.forEach(function(ri){jo[ri]=eo[ri],delete eo[ri]}),delete eo.keys,z.createElement(ko,eo,Pn.map(function(ri){var Eo=ri.status,wo=(0,le.Z)(ri,mo),Yr=Eo===gr||Eo===Fr;return z.createElement(Ve,(0,pe.Z)({},jo,{key:wo.key,visible:Yr,eventProps:wo,onVisibleChanged:function(Vi){if(zr==null||zr(Vi,{key:wo.key}),!Vi){var fa=Dn.removeKey(wo.key);fa===0&&fr&&fr()}}}),Qn)}))}}],[{key:"getDerivedStateFromProps",value:function(Dn,Pn){var Jn=Dn.keys,jr=Pn.keyEntities,Qn=Co(Jn),zr=kr(jr,Qn);return{keyEntities:zr.filter(function(fr){var eo=jr.find(function(ko){var jo=ko.key;return fr.key===jo});return!(eo&&eo.status===Or&&fr.status===Cr)})}}}]),sn}(z.Component);return(0,ie.Z)(Ye,"defaultProps",{component:"div"}),Ye}var ma=ki(Qo),vi=Zn;function ia(Ie){var Ve=Ie.prefixCls,Ye=Ie.align,pt=Ie.arrow,Bt=Ie.arrowPos,sn=pt||{},dn=sn.className,Dn=sn.content,Pn=Bt.x,Jn=Pn===void 0?0:Pn,jr=Bt.y,Qn=jr===void 0?0:jr,zr=z.useRef();if(!Ye||!Ye.points)return null;var fr={position:"absolute"};if(Ye.autoArrow!==!1){var eo=Ye.points[0],ko=Ye.points[1],jo=eo[0],ri=eo[1],Eo=ko[0],wo=ko[1];jo===Eo||!["t","b"].includes(jo)?fr.top=Qn:jo==="t"?fr.top=0:fr.bottom=0,ri===wo||!["l","r"].includes(ri)?fr.left=Jn:ri==="l"?fr.left=0:fr.right=0}return z.createElement("div",{ref:zr,className:he()("".concat(Ve,"-arrow"),dn),style:fr},Dn)}function ai(Ie){var Ve=Ie.prefixCls,Ye=Ie.open,pt=Ie.zIndex,Bt=Ie.mask,sn=Ie.motion;return Bt?z.createElement(vi,(0,pe.Z)({},sn,{motionAppear:!0,visible:Ye,removeOnLeave:!0}),function(dn){var Dn=dn.className;return z.createElement("div",{style:{zIndex:pt},className:he()("".concat(Ve,"-mask"),Dn)})}):null}var Ea=z.memo(function(Ie){var Ve=Ie.children;return Ve},function(Ie,Ve){return Ve.cache}),Ki=Ea,aa=z.forwardRef(function(Ie,Ve){var Ye=Ie.popup,pt=Ie.className,Bt=Ie.prefixCls,sn=Ie.style,dn=Ie.target,Dn=Ie.onVisibleChanged,Pn=Ie.open,Jn=Ie.keepDom,jr=Ie.fresh,Qn=Ie.onClick,zr=Ie.mask,fr=Ie.arrow,eo=Ie.arrowPos,ko=Ie.align,jo=Ie.motion,ri=Ie.maskMotion,Eo=Ie.forceRender,wo=Ie.getPopupContainer,Yr=Ie.autoDestroy,ga=Ie.portal,Vi=Ie.zIndex,fa=Ie.onMouseEnter,va=Ie.onMouseLeave,Ua=Ie.onPointerEnter,ui=Ie.ready,si=Ie.offsetX,Qi=Ie.offsetY,Da=Ie.offsetR,Ji=Ie.offsetB,di=Ie.onAlign,Zi=Ie.onPrepare,Ao=Ie.stretch,Ia=Ie.targetWidth,zi=Ie.targetHeight,Ha=typeof Ye=="function"?Ye():Ye,ss=Pn||Jn,Ka=(wo==null?void 0:wo.length)>0,Vr=z.useState(!wo||!Ka),ms=(0,de.Z)(Vr,2),Ui=ms[0],gs=ms[1];if(On(function(){!Ui&&Ka&&dn&&gs(!0)},[Ui,Ka,dn]),!Ui)return null;var Sa="auto",qi={left:"-1000vw",top:"-1000vh",right:Sa,bottom:Sa};if(ui||!Pn){var Ba,ps=ko.points,xi=ko.dynamicInset||((Ba=ko._experimental)===null||Ba===void 0?void 0:Ba.dynamicInset),ya=xi&&ps[0][1]==="r",is=xi&&ps[0][0]==="b";ya?(qi.right=Da,qi.left=Sa):(qi.left=si,qi.right=Sa),is?(qi.bottom=Ji,qi.top=Sa):(qi.top=Qi,qi.bottom=Sa)}var sa={};return Ao&&(Ao.includes("height")&&zi?sa.height=zi:Ao.includes("minHeight")&&zi&&(sa.minHeight=zi),Ao.includes("width")&&Ia?sa.width=Ia:Ao.includes("minWidth")&&Ia&&(sa.minWidth=Ia)),Pn||(sa.pointerEvents="none"),z.createElement(ga,{open:Eo||ss,getContainer:wo&&function(){return wo(dn)},autoDestroy:Yr},z.createElement(ai,{prefixCls:Bt,open:Pn,zIndex:Vi,mask:zr,motion:ri}),z.createElement(hn.Z,{onResize:di,disabled:!Pn},function(As){return z.createElement(vi,(0,pe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Eo,leavedClassName:"".concat(Bt,"-hidden")},jo,{onAppearPrepare:Zi,onEnterPrepare:Zi,visible:Pn,onVisibleChanged:function(la){var yo;jo==null||(yo=jo.onVisibleChanged)===null||yo===void 0||yo.call(jo,la),Dn(la)}}),function(es,la){var yo=es.className,Fa=es.style,ls=he()(Bt,yo,pt);return z.createElement("div",{ref:Mt(As,Ve,la),className:ls,style:(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({"--arrow-x":"".concat(eo.x||0,"px"),"--arrow-y":"".concat(eo.y||0,"px")},qi),sa),Fa),{},{boxSizing:"border-box",zIndex:Vi},sn),onMouseEnter:fa,onMouseLeave:va,onPointerEnter:Ua,onClick:Qn},fr&&z.createElement(ia,{prefixCls:Bt,arrow:fr,arrowPos:eo,align:ko}),z.createElement(Ki,{cache:!Pn&&!jr},Ha))})}))}),Xi=aa,Ga=z.forwardRef(function(Ie,Ve){var Ye=Ie.children,pt=Ie.getTriggerDOMNode,Bt=er(Ye),sn=z.useCallback(function(Dn){_r(Ve,pt?pt(Dn):Dn)},[pt]),dn=ur(sn,Ye.ref);return Bt?z.cloneElement(Ye,{ref:dn}):Ye}),xa=Ga,da=["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 Fo(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fn,Ve=z.forwardRef(function(Ye,pt){var Bt=Ye.prefixCls,sn=Bt===void 0?"rc-trigger-popup":Bt,dn=Ye.children,Dn=Ye.action,Pn=Dn===void 0?"hover":Dn,Jn=Ye.showAction,jr=Ye.hideAction,Qn=Ye.popupVisible,zr=Ye.defaultPopupVisible,fr=Ye.onPopupVisibleChange,eo=Ye.afterPopupVisibleChange,ko=Ye.mouseEnterDelay,jo=Ye.mouseLeaveDelay,ri=jo===void 0?.1:jo,Eo=Ye.focusDelay,wo=Ye.blurDelay,Yr=Ye.mask,ga=Ye.maskClosable,Vi=ga===void 0?!0:ga,fa=Ye.getPopupContainer,va=Ye.forceRender,Ua=Ye.autoDestroy,ui=Ye.destroyPopupOnHide,si=Ye.popup,Qi=Ye.popupClassName,Da=Ye.popupStyle,Ji=Ye.popupPlacement,di=Ye.builtinPlacements,Zi=di===void 0?{}:di,Ao=Ye.popupAlign,Ia=Ye.zIndex,zi=Ye.stretch,Ha=Ye.getPopupClassNameFromAlign,ss=Ye.fresh,Ka=Ye.alignPoint,Vr=Ye.onPopupClick,ms=Ye.onPopupAlign,Ui=Ye.arrow,gs=Ye.popupMotion,Sa=Ye.maskMotion,qi=Ye.popupTransitionName,Ba=Ye.popupAnimation,ps=Ye.maskTransitionName,xi=Ye.maskAnimation,ya=Ye.className,is=Ye.getTriggerDOMNode,sa=(0,le.Z)(Ye,da),As=Ua||ui||!1,es=z.useState(!1),la=(0,de.Z)(es,2),yo=la[0],Fa=la[1];On(function(){Fa(qr())},[]);var ls=z.useRef({}),Ds=z.useContext(Zo),Ys=z.useMemo(function(){return{registerSubPopup:function(Rr,Ko){ls.current[Rr]=Ko,Ds==null||Ds.registerSubPopup(Rr,Ko)}}},[Ds]),Zs=Br(),Oe=z.useState(null),je=(0,de.Z)(Oe,2),Ge=je[0],vr=je[1],wn=Zt(function(ar){$n(ar)&&Ge!==ar&&vr(ar),Ds==null||Ds.registerSubPopup(Zs,ar)}),en=z.useState(null),En=(0,de.Z)(en,2),Qt=En[0],Sn=En[1],Kn=Zt(function(ar){$n(ar)&&Qt!==ar&&Sn(ar)}),Do=z.Children.only(dn),Mr=(Do==null?void 0:Do.props)||{},Io={},Hr=Zt(function(ar){var Rr,Ko,ii=Qt;return(ii==null?void 0:ii.contains(ar))||((Rr=An(ii))===null||Rr===void 0?void 0:Rr.host)===ar||ar===ii||(Ge==null?void 0:Ge.contains(ar))||((Ko=An(Ge))===null||Ko===void 0?void 0:Ko.host)===ar||ar===Ge||Object.values(ls.current).some(function(Gr){return(Gr==null?void 0:Gr.contains(ar))||ar===Gr})}),bo=$i(sn,gs,Ba,qi),Ir=$i(sn,Sa,xi,ps),ea=z.useState(zr||!1),Lo=(0,de.Z)(ea,2),Ho=Lo[0],zo=Lo[1],wr=Qn!=null?Qn:Ho,li=Zt(function(ar){Qn===void 0&&zo(ar)});On(function(){zo(Qn||!1)},[Qn]);var Vn=z.useRef(wr);Vn.current=wr;var Di=Zt(function(ar){(0,se.flushSync)(function(){wr!==ar&&(li(ar),fr==null||fr(ar))})}),Jo=z.useRef(),ha=function(){clearTimeout(Jo.current)},Ma=function(Rr){var Ko=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ha(),Ko===0?Di(Rr):Jo.current=setTimeout(function(){Di(Rr)},Ko*1e3)};z.useEffect(function(){return ha},[]);var Lr=z.useState(!1),ca=(0,de.Z)(Lr,2),oi=ca[0],$r=ca[1];On(function(ar){(!ar||wr)&&$r(!0)},[wr]);var Ro=z.useState(null),gi=(0,de.Z)(Ro,2),$o=gi[0],zs=gi[1],vs=z.useState([0,0]),Cs=(0,de.Z)(vs,2),Rs=Cs[0],ws=Cs[1],cs=function(Rr){ws([Rr.clientX,Rr.clientY])},ro=Ne(wr,Ge,Ka?Rs:Qt,Ji,Zi,Ao,ms),Si=(0,de.Z)(ro,11),Va=Si[0],Us=Si[1],as=Si[2],el=Si[3],Wa=Si[4],_a=Si[5],Hs=Si[6],Ee=Si[7],Ce=Si[8],Re=Si[9],Te=Si[10],Ue=yr(yo,Pn,Jn,jr),Ze=(0,de.Z)(Ue,2),ot=Ze[0],st=Ze[1],ht=ot.has("click"),Pt=st.has("click")||st.has("contextMenu"),Ot=Zt(function(){oi||Te()}),At=function(){Vn.current&&Ka&&Pt&&Ma(!1)};et(wr,Qt,Ge,Ot,At),On(function(){Ot()},[Rs,Ji]),On(function(){wr&&!(Zi!=null&&Zi[Ji])&&Ot()},[JSON.stringify(Ao)]);var tn=z.useMemo(function(){var ar=Wi(Zi,sn,Re,Ka);return he()(ar,Ha==null?void 0:Ha(Re))},[Re,Ha,Zi,sn,Ka]);z.useImperativeHandle(pt,function(){return{forceAlign:Ot}});var gn=z.useState(0),ln=(0,de.Z)(gn,2),Wn=ln[0],Fn=ln[1],Yn=z.useState(0),zn=(0,de.Z)(Yn,2),rr=zn[0],Ur=zn[1],Xr=function(){if(zi&&Qt){var Rr=Qt.getBoundingClientRect();Fn(Rr.width),Ur(Rr.height)}},Ar=function(){Xr(),Ot()},fo=function(Rr){$r(!1),Te(),eo==null||eo(Rr)},io=function(){return new Promise(function(Rr){Xr(),zs(function(){return Rr})})};On(function(){$o&&(Te(),$o(),zs(null))},[$o]);function cr(ar,Rr,Ko,ii){Io[ar]=function(Gr){var Ra;ii==null||ii(Gr),Ma(Rr,Ko);for(var Pi=arguments.length,ba=new Array(Pi>1?Pi-1:0),ua=1;ua<Pi;ua++)ba[ua-1]=arguments[ua];(Ra=Mr[ar])===null||Ra===void 0||Ra.call.apply(Ra,[Mr,Gr].concat(ba))}}(ht||Pt)&&(Io.onClick=function(ar){var Rr;Vn.current&&Pt?Ma(!1):!Vn.current&&ht&&(cs(ar),Ma(!0));for(var Ko=arguments.length,ii=new Array(Ko>1?Ko-1:0),Gr=1;Gr<Ko;Gr++)ii[Gr-1]=arguments[Gr];(Rr=Mr.onClick)===null||Rr===void 0||Rr.call.apply(Rr,[Mr,ar].concat(ii))}),Oa(wr,Pt,Qt,Ge,Yr,Vi,Hr,Ma);var Dr=ot.has("hover"),hr=st.has("hover"),Xn,Er;Dr&&(cr("onMouseEnter",!0,ko,function(ar){cs(ar)}),cr("onPointerEnter",!0,ko,function(ar){cs(ar)}),Xn=function(){(wr||oi)&&Ma(!0,ko)},Ka&&(Io.onMouseMove=function(ar){var Rr;(Rr=Mr.onMouseMove)===null||Rr===void 0||Rr.call(Mr,ar)})),hr&&(cr("onMouseLeave",!1,ri),cr("onPointerLeave",!1,ri),Er=function(){Ma(!1,ri)}),ot.has("focus")&&cr("onFocus",!0,Eo),st.has("focus")&&cr("onBlur",!1,wo),ot.has("contextMenu")&&(Io.onContextMenu=function(ar){var Rr;Vn.current&&st.has("contextMenu")?Ma(!1):(cs(ar),Ma(!0)),ar.preventDefault();for(var Ko=arguments.length,ii=new Array(Ko>1?Ko-1:0),Gr=1;Gr<Ko;Gr++)ii[Gr-1]=arguments[Gr];(Rr=Mr.onContextMenu)===null||Rr===void 0||Rr.call.apply(Rr,[Mr,ar].concat(ii))}),ya&&(Io.className=he()(Mr.className,ya));var oo=(0,ue.Z)((0,ue.Z)({},Mr),Io),Uo={},Po=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Po.forEach(function(ar){sa[ar]&&(Uo[ar]=function(){for(var Rr,Ko=arguments.length,ii=new Array(Ko),Gr=0;Gr<Ko;Gr++)ii[Gr]=arguments[Gr];(Rr=oo[ar])===null||Rr===void 0||Rr.call.apply(Rr,[oo].concat(ii)),sa[ar].apply(sa,ii)})});var to=z.cloneElement(Do,(0,ue.Z)((0,ue.Z)({},oo),Uo)),Go={x:_a,y:Hs},Vo=Ui?(0,ue.Z)({},Ui!==!0?Ui:{}):null;return z.createElement(z.Fragment,null,z.createElement(hn.Z,{disabled:!wr,ref:Kn,onResize:Ar},z.createElement(xa,{getTriggerDOMNode:is},to)),z.createElement(Zo.Provider,{value:Ys},z.createElement(Xi,{portal:Ie,ref:wn,prefixCls:sn,popup:si,className:he()(Qi,tn),style:Da,target:Qt,onMouseEnter:Xn,onMouseLeave:Er,onPointerEnter:Xn,zIndex:Ia,open:wr,keepDom:oi,fresh:ss,onClick:Vr,mask:Yr,motion:bo,maskMotion:Ir,onVisibleChanged:fo,onPrepare:io,forceRender:va,autoDestroy:As,getPopupContainer:fa,align:Re,arrow:Vo,arrowPos:Go,ready:Va,offsetX:Us,offsetY:as,offsetR:el,offsetB:Wa,onAlign:Ot,stretch:zi,targetWidth:Wn/Ee,targetHeight:rr/Ce})))});return Ve}var ni=Fo(fn),mr={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(Ve){var Ye=Ve.keyCode;if(Ve.altKey&&!Ve.ctrlKey||Ve.metaKey||Ye>=mr.F1&&Ye<=mr.F12)return!1;switch(Ye){case mr.ALT:case mr.CAPS_LOCK:case mr.CONTEXT_MENU:case mr.CTRL:case mr.DOWN:case mr.END:case mr.ESC:case mr.HOME:case mr.INSERT:case mr.LEFT:case mr.MAC_FF_META:case mr.META:case mr.NUMLOCK:case mr.NUM_CENTER:case mr.PAGE_DOWN:case mr.PAGE_UP:case mr.PAUSE:case mr.PRINT_SCREEN:case mr.RIGHT:case mr.SHIFT:case mr.UP:case mr.WIN_KEY:case mr.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ve){if(Ve>=mr.ZERO&&Ve<=mr.NINE||Ve>=mr.NUM_ZERO&&Ve<=mr.NUM_MULTIPLY||Ve>=mr.A&&Ve<=mr.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ve===0)return!0;switch(Ve){case mr.SPACE:case mr.QUESTION_MARK:case mr.NUM_PLUS:case mr.NUM_MINUS:case mr.NUM_PERIOD:case mr.NUM_DIVISION:case mr.SEMICOLON:case mr.DASH:case mr.EQUALS:case mr.COMMA:case mr.PERIOD:case mr.SLASH:case mr.APOSTROPHE:case mr.SINGLE_QUOTE:case mr.OPEN_SQUARE_BRACKET:case mr.BACKSLASH:case mr.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ca=mr,Xa=Ca.ESC,Oi=Ca.TAB;function ji(Ie){var Ve=Ie.visible,Ye=Ie.triggerRef,pt=Ie.onVisibleChange,Bt=Ie.autoFocus,sn=Ie.overlayRef,dn=z.useRef(!1),Dn=function(){if(Ve){var Qn,zr;(Qn=Ye.current)===null||Qn===void 0||(zr=Qn.focus)===null||zr===void 0||zr.call(Qn),pt==null||pt(!1)}},Pn=function(){var Qn;return(Qn=sn.current)!==null&&Qn!==void 0&&Qn.focus?(sn.current.focus(),dn.current=!0,!0):!1},Jn=function(Qn){switch(Qn.keyCode){case Xa:Dn();break;case Oi:{var zr=!1;dn.current||(zr=Pn()),zr?Qn.preventDefault():Dn();break}}};z.useEffect(function(){return Ve?(window.addEventListener("keydown",Jn),Bt&&Tt(Pn,3),function(){window.removeEventListener("keydown",Jn),dn.current=!1}):function(){dn.current=!1}},[Ve])}var wa=(0,z.forwardRef)(function(Ie,Ve){var Ye=Ie.overlay,pt=Ie.arrow,Bt=Ie.prefixCls,sn=(0,z.useMemo)(function(){var Dn;return typeof Ye=="function"?Dn=Ye():Dn=Ye,Dn},[Ye]),dn=_e(Ve,sn==null?void 0:sn.ref);return z.createElement(z.Fragment,null,pt&&z.createElement("div",{className:"".concat(Bt,"-arrow")}),z.cloneElement(sn,{ref:we(sn)?dn:void 0}))}),Ii=wa,_i={adjustX:1,adjustY:1},bi=[0,0],Za={topLeft:{points:["bl","tl"],overflow:_i,offset:[0,-4],targetOffset:bi},top:{points:["bc","tc"],overflow:_i,offset:[0,-4],targetOffset:bi},topRight:{points:["br","tr"],overflow:_i,offset:[0,-4],targetOffset:bi},bottomLeft:{points:["tl","bl"],overflow:_i,offset:[0,4],targetOffset:bi},bottom:{points:["tc","bc"],overflow:_i,offset:[0,4],targetOffset:bi},bottomRight:{points:["tr","br"],overflow:_i,offset:[0,4],targetOffset:bi}},Ai=Za,Bi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function pa(Ie,Ve){var Ye,pt=Ie.arrow,Bt=pt===void 0?!1:pt,sn=Ie.prefixCls,dn=sn===void 0?"rc-dropdown":sn,Dn=Ie.transitionName,Pn=Ie.animation,Jn=Ie.align,jr=Ie.placement,Qn=jr===void 0?"bottomLeft":jr,zr=Ie.placements,fr=zr===void 0?Ai:zr,eo=Ie.getPopupContainer,ko=Ie.showAction,jo=Ie.hideAction,ri=Ie.overlayClassName,Eo=Ie.overlayStyle,wo=Ie.visible,Yr=Ie.trigger,ga=Yr===void 0?["hover"]:Yr,Vi=Ie.autoFocus,fa=Ie.overlay,va=Ie.children,Ua=Ie.onVisibleChange,ui=(0,le.Z)(Ie,Bi),si=z.useState(),Qi=(0,de.Z)(si,2),Da=Qi[0],Ji=Qi[1],di="visible"in Ie?wo:Da,Zi=z.useRef(null),Ao=z.useRef(null),Ia=z.useRef(null);z.useImperativeHandle(Ve,function(){return Zi.current});var zi=function(qi){Ji(qi),Ua==null||Ua(qi)};ji({visible:di,triggerRef:Ia,onVisibleChange:zi,autoFocus:Vi,overlayRef:Ao});var Ha=function(qi){var Ba=Ie.onOverlayClick;Ji(!1),Ba&&Ba(qi)},ss=function(){return z.createElement(Ii,{ref:Ao,overlay:fa,prefixCls:dn,arrow:Bt})},Ka=function(){return typeof fa=="function"?ss:ss()},Vr=function(){var qi=Ie.minOverlayWidthMatchTrigger,Ba=Ie.alignPoint;return"minOverlayWidthMatchTrigger"in Ie?qi:!Ba},ms=function(){var qi=Ie.openClassName;return qi!==void 0?qi:"".concat(dn,"-open")},Ui=z.cloneElement(va,{className:he()((Ye=va.props)===null||Ye===void 0?void 0:Ye.className,di&&ms()),ref:we(va)?_e(Ia,va.ref):void 0}),gs=jo;return!gs&&ga.indexOf("contextMenu")!==-1&&(gs=["click"]),z.createElement(ni,(0,pe.Z)({builtinPlacements:fr},ui,{prefixCls:dn,ref:Zi,popupClassName:he()(ri,(0,ie.Z)({},"".concat(dn,"-show-arrow"),Bt)),popupStyle:Eo,action:ga,showAction:ko,hideAction:gs,popupPlacement:Qn,popupAlign:Jn,popupTransitionName:Dn,popupAnimation:Pn,popupVisible:di,stretch:Vr()?"minWidth":"",popup:Ka(),onPopupVisibleChange:zi,onPopupClick:Ha,getPopupContainer:eo}),Ui)}var ds=z.forwardRef(pa),Fs=ds,bs=te(60276),Ws=te(5663),hs=te(10366),qa=te(80636),os=te(8745),Ps=te(96159),Es=te(53124),sl=te(68508),rl=te(76529),Gs=te(46605),ks=te(66748);const ul=null,Ks=Ie=>{const{menu:Ve,arrow:Ye,prefixCls:pt,children:Bt,trigger:sn,disabled:dn,dropdownRender:Dn,getPopupContainer:Pn,overlayClassName:Jn,rootClassName:jr,open:Qn,onOpenChange:zr,visible:fr,onVisibleChange:eo,mouseEnterDelay:ko=.15,mouseLeaveDelay:jo=.1,autoAdjustOverflow:ri=!0,placement:Eo="",overlay:wo,transitionName:Yr}=Ie,{getPopupContainer:ga,getPrefixCls:Vi,direction:fa}=z.useContext(Es.E_),va=z.useMemo(()=>{const Ui=Vi();return Yr!==void 0?Yr:Eo.includes("top")?`${Ui}-slide-down`:`${Ui}-slide-up`},[Vi,Eo,Yr]),Ua=z.useMemo(()=>Eo?Eo.includes("Center")?Eo.slice(0,Eo.indexOf("Center")):Eo:fa==="rtl"?"bottomRight":"bottomLeft",[Eo,fa]),ui=Vi("dropdown",pt),[si,Qi]=(0,ks.Z)(ui),[,Da]=(0,Gs.Z)(),Ji=z.Children.only(Bt),di=(0,Ps.Tm)(Ji,{className:he()(`${ui}-trigger`,{[`${ui}-rtl`]:fa==="rtl"},Ji.props.className),disabled:dn}),Zi=dn?[]:sn;let Ao;Zi&&Zi.includes("contextMenu")&&(Ao=!0);const[Ia,zi]=(0,Ws.Z)(!1,{value:Qn!=null?Qn:fr}),Ha=(0,bs.useEvent)(Ui=>{zr==null||zr(Ui),eo==null||eo(Ui),zi(Ui)}),ss=he()(Jn,jr,Qi,{[`${ui}-rtl`]:fa==="rtl"}),Ka=(0,qa.Z)({arrowPointAtCenter:typeof Ye=="object"&&Ye.pointAtCenter,autoAdjustOverflow:ri,offset:Da.marginXXS,arrowWidth:Ye?Da.sizePopupArrow:0,borderRadius:Da.borderRadius}),Vr=z.useCallback(()=>{zi(!1)},[]),ms=()=>{let Ui;return Ve!=null&&Ve.items?Ui=z.createElement(sl.default,Object.assign({},Ve)):typeof wo=="function"?Ui=wo():Ui=wo,Dn&&(Ui=Dn(Ui)),Ui=z.Children.only(typeof Ui=="string"?z.createElement("span",null,Ui):Ui),z.createElement(rl.J,{prefixCls:`${ui}-menu`,expandIcon:z.createElement("span",{className:`${ui}-menu-submenu-arrow`},z.createElement(Pe.Z,{className:`${ui}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Vr,validator:gs=>{let{mode:Sa}=gs}},Ui)};return si(z.createElement(Fs,Object.assign({alignPoint:Ao},(0,hs.Z)(Ie,["rootClassName"]),{mouseEnterDelay:ko,mouseLeaveDelay:jo,visible:Ia,builtinPlacements:Ka,arrow:!!Ye,overlayClassName:ss,prefixCls:ui,getPopupContainer:Pn||ga,transitionName:va,trigger:Zi,overlay:ms,placement:Ua,onVisibleChange:Ha}),di))};function js(Ie){return Object.assign(Object.assign({},Ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ms=(0,os.Z)(Ks,"dropdown",Ie=>Ie,js),Vs=Ie=>z.createElement(Ms,Object.assign({},Ie),z.createElement("span",null));Ks._InternalPanelDoNotUseOrYouWillBeFired=Vs;var qs=Ks},85418:function(at,We,te){"use strict";te.d(We,{Z:function(){return a}});var z=te(56153),fe=te(94184),Pe=te.n(fe),ve=te(67294),he=te(64582),pe=te(71577),ie=te(53124),de=te(93421),le=te(4173),ue=te(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 ee=0,x=Object.getOwnPropertySymbols(y);ee<x.length;ee++)E.indexOf(x[ee])<0&&Object.prototype.propertyIsEnumerable.call(y,x[ee])&&(b[x[ee]]=y[x[ee]]);return b};const me=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ve.useContext(ie.E_),{prefixCls:ee,type:oe="default",danger:ae,disabled:ce,loading:Se,onClick:_e,htmlType:xe,children:we,className:Fe,menu:Me,arrow:ut,autoFocus:Xe,overlay:mt,trigger:Ae,align:De,open:Be,onOpenChange:nt,placement:Ke,getPopupContainer:Et,href:Ct,icon:nn=ve.createElement(he.Z,null),title:on,buttonsRender:it=tt=>tt,mouseEnterDelay:lt,mouseLeaveDelay:xt,overlayClassName:Jt,overlayStyle:Vt,destroyPopupOnHide:xn,dropdownRender:He}=y,un=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"]),kn=b("dropdown",ee),nr=`${kn}-button`,[Ln,Gt]=(0,ue.Z)(kn),Je={menu:Me,arrow:ut,autoFocus:Xe,align:De,disabled:ce,trigger:ce?[]:Ae,onOpenChange:nt,getPopupContainer:Et||E,mouseEnterDelay:lt,mouseLeaveDelay:xt,overlayClassName:Jt,overlayStyle:Vt,destroyPopupOnHide:xn,dropdownRender:He},{compactSize:Qe,compactItemClassnames:_t}=(0,le.ri)(kn,x),Rt=Pe()(nr,_t,Fe,Gt);"overlay"in y&&(Je.overlay=mt),"open"in y&&(Je.open=Be),"placement"in y?Je.placement=Ke:Je.placement=x==="rtl"?"bottomLeft":"bottomRight";const Yt=ve.createElement(pe.ZP,{type:oe,danger:ae,disabled:ce,loading:Se,onClick:_e,htmlType:xe,href:Ct,title:on},we),gt=ve.createElement(pe.ZP,{type:oe,danger:ae,icon:nn}),[wt,Dt]=it([Yt,gt]);return Ln(ve.createElement(de.Z.Compact,Object.assign({className:Rt,size:Qe,block:!0},un),wt,ve.createElement(z.Z,Object.assign({},Je),Dt)))};me.__ANT_BUTTON=!0;var re=me;const ne=z.Z;ne.Button=re;var a=ne},66748:function(at,We,te){"use strict";te.d(We,{Z:function(){return se}});var z=te(14747),fe=te(67771),Pe=te(33297),ve=te(50438),he=te(97414),pe=te(67968),ie=te(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 ue=me=>{const{componentCls:re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:ee,dropdownPaddingVertical:oe,fontSize:ae,dropdownEdgeChildPadding:ce,colorTextDisabled:Se,fontSizeIcon:_e,controlPaddingHorizontal:xe,colorBgElevated:we}=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 ${ee}`}},[`${re}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topRight`]:{animationName:fe.ly}})},(0,he.ZP)(me,{colorBg:we,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:ce,listStyleType:"none",backgroundColor:we,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 ${ee}`},[`${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 ${ee}`,"&: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 ${ee}`,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:Se,cursor:"not-allowed","&:hover":{color:Se,backgroundColor:we,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:Se,backgroundColor:we,cursor:"not-allowed"}},[`${ne}-submenu-selected ${re}-menu-submenu-title`]:{color:me.colorPrimary}})}},[(0,fe.oN)(me,"slide-up"),(0,fe.oN)(me,"slide-down"),(0,Pe.Fm)(me,"move-up"),(0,Pe.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:ee,componentCls:oe,borderRadiusLG:ae}=me,ce=(E-b*x)/2,{dropdownArrowOffset:Se}=(0,he.fS)({contentRadius:ae}),_e=(0,ie.TS)(me,{menuCls:`${oe}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:Se,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:ee});return[ue(_e),le(_e)]},me=>({zIndexPopup:me.zIndexPopupBase+50}))},25378:function(at,We,te){"use strict";var z=te(67294),fe=te(14075),Pe=te(57838),ve=te(74443);function he(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,z.useRef)({}),de=(0,Pe.Z)(),le=(0,ve.ZP)();return(0,fe.Z)(()=>{const ue=le.subscribe(se=>{ie.current=se,pe&&de()});return()=>le.unsubscribe(ue)},[]),ie.current}We.Z=he},19249:function(at,We,te){"use strict";te.d(We,{D:function(){return x},Z:function(){return ae}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(44327),pe=function(Se,_e){return fe.createElement(he.Z,(0,z.Z)({},Se,{ref:_e,icon:ve}))},ie=fe.forwardRef(pe),de=te(55007),le=te(79269),ue=te(94184),se=te.n(ue),me=te(10366),ne=ce=>!isNaN(parseFloat(ce))&&isFinite(ce),a=te(53124),y=te(84321),E=function(ce,Se){var _e={};for(var xe in ce)Object.prototype.hasOwnProperty.call(ce,xe)&&Se.indexOf(xe)<0&&(_e[xe]=ce[xe]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,xe=Object.getOwnPropertySymbols(ce);we<xe.length;we++)Se.indexOf(xe[we])<0&&Object.prototype.propertyIsEnumerable.call(ce,xe[we])&&(_e[xe[we]]=ce[xe[we]]);return _e};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=fe.createContext({}),ee=(()=>{let ce=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ce+=1,`${Se}${ce}`}})();var ae=fe.forwardRef((ce,Se)=>{const{prefixCls:_e,className:xe,trigger:we,children:Fe,defaultCollapsed:Me=!1,theme:ut="dark",style:Xe={},collapsible:mt=!1,reverseArrow:Ae=!1,width:De=200,collapsedWidth:Be=80,zeroWidthTriggerStyle:nt,breakpoint:Ke,onCollapse:Et,onBreakpoint:Ct}=ce,nn=E(ce,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:on}=(0,fe.useContext)(y.Gs),[it,lt]=(0,fe.useState)("collapsed"in ce?ce.collapsed:Me),[xt,Jt]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ce&&lt(ce.collapsed)},[ce.collapsed]);const Vt=(Ln,Gt)=>{"collapsed"in ce||lt(Ln),Et==null||Et(Ln,Gt)},xn=(0,fe.useRef)();xn.current=Ln=>{Jt(Ln.matches),Ct==null||Ct(Ln.matches),it!==Ln.matches&&Vt(Ln.matches,"responsive")},(0,fe.useEffect)(()=>{function Ln(Je){return xn.current(Je)}let Gt;if(typeof window!="undefined"){const{matchMedia:Je}=window;if(Je&&Ke&&Ke in b){Gt=Je(`(max-width: ${b[Ke]})`);try{Gt.addEventListener("change",Ln)}catch(Qe){Gt.addListener(Ln)}Ln(Gt)}}return()=>{try{Gt==null||Gt.removeEventListener("change",Ln)}catch(Je){Gt==null||Gt.removeListener(Ln)}}},[Ke]),(0,fe.useEffect)(()=>{const Ln=ee("ant-sider-");return on.addSider(Ln),()=>on.removeSider(Ln)},[]);const He=()=>{Vt(!it,"clickTrigger")},{getPrefixCls:un}=(0,fe.useContext)(a.E_),kn=()=>{const Ln=un("layout-sider",_e),Gt=(0,me.Z)(nn,["collapsed"]),Je=it?Be:De,Qe=ne(Je)?`${Je}px`:String(Je),_t=parseFloat(String(Be||0))===0?fe.createElement("span",{onClick:He,className:se()(`${Ln}-zero-width-trigger`,`${Ln}-zero-width-trigger-${Ae?"right":"left"}`),style:nt},we||fe.createElement(ie,null)):null,gt={expanded:Ae?fe.createElement(le.Z,null):fe.createElement(de.Z,null),collapsed:Ae?fe.createElement(de.Z,null):fe.createElement(le.Z,null)}[it?"collapsed":"expanded"],wt=we!==null?_t||fe.createElement("div",{className:`${Ln}-trigger`,onClick:He,style:{width:Qe}},we||gt):null,Dt=Object.assign(Object.assign({},Xe),{flex:`0 0 ${Qe}`,maxWidth:Qe,minWidth:Qe,width:Qe}),tt=se()(Ln,`${Ln}-${ut}`,{[`${Ln}-collapsed`]:!!it,[`${Ln}-has-trigger`]:mt&&we!==null&&!_t,[`${Ln}-below`]:!!xt,[`${Ln}-zero-width`]:parseFloat(Qe)===0},xe);return fe.createElement("aside",Object.assign({className:tt},Gt,{style:Dt,ref:Se}),fe.createElement("div",{className:`${Ln}-children`},Fe),mt||xt&&_t?wt:null)},nr=fe.useMemo(()=>({siderCollapsed:it}),[it]);return fe.createElement(x.Provider,{value:nr},kn())})},84321:function(at,We,te){"use strict";te.d(We,{VY:function(){return ee},$_:function(){return x},h4:function(){return b},Gs:function(){return re},ZP:function(){return oe}});var z=te(74902),fe=te(94184),Pe=te.n(fe),ve=te(10366),he=te(67294),pe=te(53124),ie=te(67968),le=ae=>{const{componentCls:ce,bodyBg:Se,lightSiderBg:_e,lightTriggerBg:xe,lightTriggerColor:we}=ae;return{[`${ce}-sider-light`]:{background:_e,[`${ce}-sider-trigger`]:{color:we,background:xe},[`${ce}-sider-zero-width-trigger`]:{color:we,background:xe,border:`1px solid ${Se}`,borderInlineStart:0}}}};const ue=ae=>{const{antCls:ce,componentCls:Se,colorText:_e,triggerColor:xe,footerBg:we,triggerBg:Fe,headerHeight:Me,headerPadding:ut,headerColor:Xe,footerPadding:mt,triggerHeight:Ae,zeroTriggerHeight:De,zeroTriggerWidth:Be,motionDurationMid:nt,motionDurationSlow:Ke,fontSize:Et,borderRadius:Ct,bodyBg:nn,headerBg:on,siderBg:it}=ae;return{[Se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:nn,"&, *":{boxSizing:"border-box"},[`&${Se}-has-sider`]:{flexDirection:"row",[`> ${Se}, > ${Se}-content`]:{width:0}},[`${Se}-header, &${Se}-footer`]:{flex:"0 0 auto"},[`${Se}-sider`]:{position:"relative",minWidth:0,background:it,transition:`all ${nt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-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:Fe,cursor:"pointer",transition:`all ${nt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-Be,zIndex:1,width:Be,height:De,color:xe,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:it,borderStartStartRadius:0,borderStartEndRadius:Ct,borderEndEndRadius:Ct,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Be,borderStartStartRadius:Ct,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ct}}}}},le(ae)),{"&-rtl":{direction:"rtl"}}),[`${Se}-header`]:{height:Me,padding:ut,color:Xe,lineHeight:`${Me}px`,background:on,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${Se}-footer`]:{padding:mt,color:_e,fontSize:Et,background:we},[`${Se}-content`]:{flex:"auto",minHeight:0}}};var se=(0,ie.Z)("Layout",ae=>[ue(ae)],ae=>{const{colorBgLayout:ce,controlHeight:Se,controlHeightLG:_e,colorText:xe,controlHeightSM:we,marginXXS:Fe,colorTextLightSolid:Me,colorBgContainer:ut}=ae,Xe=_e*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:Se*2,headerPadding:`0 ${Xe}px`,headerColor:xe,footerPadding:`${we}px ${Xe}px`,footerBg:ce,siderBg:"#001529",triggerHeight:_e+Fe*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:_e,zeroTriggerHeight:_e,lightSiderBg:ut,lightTriggerBg:ut,lightTriggerColor:xe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),me=function(ae,ce){var Se={};for(var _e in ae)Object.prototype.hasOwnProperty.call(ae,_e)&&ce.indexOf(_e)<0&&(Se[_e]=ae[_e]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,_e=Object.getOwnPropertySymbols(ae);xe<_e.length;xe++)ce.indexOf(_e[xe])<0&&Object.prototype.propertyIsEnumerable.call(ae,_e[xe])&&(Se[_e[xe]]=ae[_e[xe]]);return Se};const re=he.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(ae){let{suffixCls:ce,tagName:Se,displayName:_e}=ae;return xe=>he.forwardRef((Fe,Me)=>he.createElement(xe,Object.assign({ref:Me,suffixCls:ce,tagName:Se},Fe)))}const a=he.forwardRef((ae,ce)=>{const{prefixCls:Se,suffixCls:_e,className:xe,tagName:we}=ae,Fe=me(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=he.useContext(pe.E_),ut=Me("layout",Se),[Xe,mt]=se(ut),Ae=_e?`${ut}-${_e}`:ut;return Xe(he.createElement(we,Object.assign({className:Pe()(Se||Ae,xe,mt),ref:ce},Fe)))}),y=he.forwardRef((ae,ce)=>{const{direction:Se}=he.useContext(pe.E_),[_e,xe]=he.useState([]),{prefixCls:we,className:Fe,rootClassName:Me,children:ut,hasSider:Xe,tagName:mt,style:Ae}=ae,De=me(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Be=(0,ve.Z)(De,["suffixCls"]),{getPrefixCls:nt,layout:Ke}=he.useContext(pe.E_),Et=nt("layout",we),[Ct,nn]=se(Et),on=Pe()(Et,{[`${Et}-has-sider`]:typeof Xe=="boolean"?Xe:_e.length>0,[`${Et}-rtl`]:Se==="rtl"},Ke==null?void 0:Ke.className,Fe,Me,nn),it=he.useMemo(()=>({siderHook:{addSider:lt=>{xe(xt=>[].concat((0,z.Z)(xt),[lt]))},removeSider:lt=>{xe(xt=>xt.filter(Jt=>Jt!==lt))}}}),[]);return Ct(he.createElement(re.Provider,{value:it},he.createElement(mt,Object.assign({ref:ce,className:on,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),Ae)},Be),ut)))}),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),ee=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var oe=E},76529:function(at,We,te){"use strict";te.d(We,{J:function(){return pe}});var z=te(67294),fe=te(4173),Pe=te(60276),ve=function(ie,de){var le={};for(var ue in ie)Object.prototype.hasOwnProperty.call(ie,ue)&&de.indexOf(ue)<0&&(le[ue]=ie[ue]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ue=Object.getOwnPropertySymbols(ie);se<ue.length;se++)de.indexOf(ue[se])<0&&Object.prototype.propertyIsEnumerable.call(ie,ue[se])&&(le[ue[se]]=ie[ue[se]]);return le};const he=z.createContext(null),pe=z.forwardRef((ie,de)=>{const{children:le}=ie,ue=ve(ie,["children"]),se=z.useContext(he),me=z.useMemo(()=>Object.assign(Object.assign({},se),ue),[se,ue.prefixCls,ue.mode,ue.selectable]);return z.createElement(he.Provider,{value:me},z.createElement(fe.BR,null,(0,Pe.supportNodeRef)(le)?z.cloneElement(le,{ref:de}):le))});We.Z=he},68508:function(at,We,te){"use strict";te.d(We,{default:function(){return Ln}});var z=te(52073),fe=te(67294),Pe=te(19249),ve=te(94184),he=te.n(ve),pe=te(53124),ie=function(Gt,Je){var Qe={};for(var _t in Gt)Object.prototype.hasOwnProperty.call(Gt,_t)&&Je.indexOf(_t)<0&&(Qe[_t]=Gt[_t]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,_t=Object.getOwnPropertySymbols(Gt);Rt<_t.length;Rt++)Je.indexOf(_t[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,_t[Rt])&&(Qe[_t[Rt]]=Gt[_t[Rt]]);return Qe},le=Gt=>{const{prefixCls:Je,className:Qe,dashed:_t}=Gt,Rt=ie(Gt,["prefixCls","className","dashed"]),{getPrefixCls:Yt}=fe.useContext(pe.E_),gt=Yt("menu",Je),wt=he()({[`${gt}-item-divider-dashed`]:!!_t},Qe);return fe.createElement(z.iz,Object.assign({className:wt},Rt))},ue=te(37419),se=te(10366),me=te(83062),re=te(96159),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Gt=>{var Je;const{className:Qe,children:_t,icon:Rt,title:Yt,danger:gt}=Gt,{prefixCls:wt,firstLevel:Dt,direction:tt,disableMenuItemTitleTooltip:fn,inlineCollapsed:hn}=fe.useContext(a),$n=yt=>{const Nn=fe.createElement("span",{className:`${wt}-title-content`},_t);return(!Rt||(0,re.l$)(_t)&&_t.type==="span")&&_t&&yt&&Dt&&typeof _t=="string"?fe.createElement("div",{className:`${wt}-inline-collapsed-noicon`},_t.charAt(0)):Nn},{siderCollapsed:no}=fe.useContext(Pe.D);let rt=Yt;typeof Yt=="undefined"?rt=Dt?_t:"":Yt===!1&&(rt="");const vt={title:rt};!no&&!hn&&(vt.title=null,vt.open=!1);const An=(0,ue.Z)(_t).length;let Zt=fe.createElement(z.ck,Object.assign({},(0,se.Z)(Gt,["title","icon","danger"]),{className:he()({[`${wt}-item-danger`]:gt,[`${wt}-item-only-child`]:(Rt?An+1:An)===1},Qe),title:typeof Yt=="string"?Yt:void 0}),(0,re.Tm)(Rt,{className:he()((0,re.l$)(Rt)?(Je=Rt.props)===null||Je===void 0?void 0:Je.className:"",`${wt}-item-icon`)}),$n(hn));return fn||(Zt=fe.createElement(me.Z,Object.assign({},vt,{placement:tt==="rtl"?"left":"right",overlayClassName:`${wt}-inline-collapsed-tooltip`}),Zt)),Zt},x=Gt=>{var Je;const{popupClassName:Qe,icon:_t,title:Rt,theme:Yt}=Gt,gt=fe.useContext(a),{prefixCls:wt,inlineCollapsed:Dt,theme:tt}=gt,fn=(0,z.Xl)();let hn;if(!_t)hn=Dt&&!fn.length&&Rt&&typeof Rt=="string"?fe.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Rt.charAt(0)):fe.createElement("span",{className:`${wt}-title-content`},Rt);else{const no=(0,re.l$)(Rt)&&Rt.type==="span";hn=fe.createElement(fe.Fragment,null,(0,re.Tm)(_t,{className:he()((0,re.l$)(_t)?(Je=_t.props)===null||Je===void 0?void 0:Je.className:"",`${wt}-item-icon`)}),no?Rt:fe.createElement("span",{className:`${wt}-title-content`},Rt))}const $n=fe.useMemo(()=>Object.assign(Object.assign({},gt),{firstLevel:!1}),[gt]);return fe.createElement(a.Provider,{value:$n},fe.createElement(z.Wd,Object.assign({},(0,se.Z)(Gt,["icon"]),{title:hn,popupClassName:he()(wt,Qe,`${wt}-${Yt||tt}`)})))},ee=te(64582),oe=te(60276),ae=te(33603),ce=te(76529),Se=function(Gt,Je){var Qe={};for(var _t in Gt)Object.prototype.hasOwnProperty.call(Gt,_t)&&Je.indexOf(_t)<0&&(Qe[_t]=Gt[_t]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,_t=Object.getOwnPropertySymbols(Gt);Rt<_t.length;Rt++)Je.indexOf(_t[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,_t[Rt])&&(Qe[_t[Rt]]=Gt[_t[Rt]]);return Qe};function _e(Gt){return(Gt||[]).map((Je,Qe)=>{if(Je&&typeof Je=="object"){const _t=Je,{label:Rt,children:Yt,key:gt,type:wt}=_t,Dt=Se(_t,["label","children","key","type"]),tt=gt!=null?gt:`tmp-${Qe}`;return Yt||wt==="group"?wt==="group"?fe.createElement(z.BW,Object.assign({key:tt},Dt,{title:Rt}),_e(Yt)):fe.createElement(x,Object.assign({key:tt},Dt,{title:Rt}),_e(Yt)):wt==="divider"?fe.createElement(le,Object.assign({key:tt},Dt)):fe.createElement(E,Object.assign({key:tt},Dt),Rt)}return null}).filter(Je=>Je)}function xe(Gt){return fe.useMemo(()=>Gt&&_e(Gt),[Gt])}var we=te(84780),Fe=te(14747),Me=te(33507),ut=te(67771),Xe=te(50438),mt=te(67968),Ae=te(45503),Be=Gt=>{const{componentCls:Je,motionDurationSlow:Qe,horizontalLineHeight:_t,colorSplit:Rt,lineWidth:Yt,lineType:gt,itemPaddingInline:wt}=Gt;return{[`${Je}-horizontal`]:{lineHeight:_t,border:0,borderBottom:`${Yt}px ${gt} ${Rt}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Je}-item, ${Je}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${Je}-item:hover,
> ${Je}-item-active,
> ${Je}-submenu ${Je}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Je}-item, ${Je}-submenu-title`]:{transition:[`border-color ${Qe}`,`background ${Qe}`].join(",")},[`${Je}-submenu-arrow`]:{display:"none"}}}},Ke=Gt=>{let{componentCls:Je,menuArrowOffset:Qe}=Gt;return{[`${Je}-rtl`]:{direction:"rtl"},[`${Je}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Je}-rtl${Je}-vertical,
${Je}-submenu-rtl ${Je}-vertical`]:{[`${Je}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Qe})`},"&::after":{transform:`rotate(45deg) translateY(${Qe})`}}}}};const Et=Gt=>Object.assign({},(0,Fe.oN)(Gt));var nn=(Gt,Je)=>{const{componentCls:Qe,itemColor:_t,itemSelectedColor:Rt,groupTitleColor:Yt,itemBg:gt,subMenuItemBg:wt,itemSelectedBg:Dt,activeBarHeight:tt,activeBarWidth:fn,activeBarBorderWidth:hn,motionDurationSlow:$n,motionEaseInOut:no,motionEaseOut:rt,itemPaddingInline:vt,motionDurationMid:An,itemHoverColor:Zt,lineType:yt,colorSplit:Nn,itemDisabledColor:Xt,dangerItemColor:qn,dangerItemHoverColor:Br,dangerItemSelectedColor:or,dangerItemActiveBg:Gn,dangerItemSelectedBg:ir,itemHoverBg:So,itemActiveBg:On,menuSubMenuBg:qr,horizontalItemSelectedColor:Yo,horizontalItemSelectedBg:Zo,horizontalItemBorderRadius:qo,horizontalItemHoverBg:yr,popupBg:xo}=Gt;return{[`${Qe}-${Je}, ${Qe}-${Je} > ${Qe}`]:{color:_t,background:gt,[`&${Qe}-root:focus-visible`]:Object.assign({},Et(Gt)),[`${Qe}-item-group-title`]:{color:Yt},[`${Qe}-submenu-selected`]:{[`> ${Qe}-submenu-title`]:{color:Rt}},[`${Qe}-item-disabled, ${Qe}-submenu-disabled`]:{color:`${Xt} !important`},[`${Qe}-item:not(${Qe}-item-selected):not(${Qe}-submenu-selected)`]:{[`&:hover, > ${Qe}-submenu-title:hover`]:{color:Zt}},[`&:not(${Qe}-horizontal)`]:{[`${Qe}-item:not(${Qe}-item-selected)`]:{"&:hover":{backgroundColor:So},"&:active":{backgroundColor:On}},[`${Qe}-submenu-title`]:{"&:hover":{backgroundColor:So},"&:active":{backgroundColor:On}}},[`${Qe}-item-danger`]:{color:qn,[`&${Qe}-item:hover`]:{[`&:not(${Qe}-item-selected):not(${Qe}-submenu-selected)`]:{color:Br}},[`&${Qe}-item:active`]:{background:Gn}},[`${Qe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Qe}-item-selected`]:{color:Rt,[`&${Qe}-item-danger`]:{color:or},"a, a:hover":{color:"inherit"}},[`& ${Qe}-item-selected`]:{backgroundColor:Dt,[`&${Qe}-item-danger`]:{backgroundColor:ir}},[`${Qe}-item, ${Qe}-submenu-title`]:{[`&:not(${Qe}-item-disabled):focus-visible`]:Object.assign({},Et(Gt))},[`&${Qe}-submenu > ${Qe}`]:{backgroundColor:qr},[`&${Qe}-popup > ${Qe}`]:{backgroundColor:xo},[`&${Qe}-horizontal`]:Object.assign(Object.assign({},Je==="dark"?{borderBottom:0}:{}),{[`> ${Qe}-item, > ${Qe}-submenu`]:{top:hn,marginTop:-hn,marginBottom:0,borderRadius:qo,"&::after":{position:"absolute",insetInline:vt,bottom:0,borderBottom:`${tt}px solid transparent`,transition:`border-color ${$n} ${no}`,content:'""'},"&:hover, &-active, &-open":{background:yr,"&::after":{borderBottomWidth:tt,borderBottomColor:Yo}},"&-selected":{color:Yo,backgroundColor:Zo,"&:hover":{backgroundColor:Zo},"&::after":{borderBottomWidth:tt,borderBottomColor:Yo}}}}),[`&${Qe}-root`]:{[`&${Qe}-inline, &${Qe}-vertical`]:{borderInlineEnd:`${hn}px ${yt} ${Nn}`}},[`&${Qe}-inline`]:{[`${Qe}-sub${Qe}-inline`]:{background:wt},[`${Qe}-item, ${Qe}-submenu-title`]:hn&&fn?{width:`calc(100% + ${hn}px)`}:{},[`${Qe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${fn}px solid ${Rt}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${An} ${rt}`,`opacity ${An} ${rt}`].join(","),content:'""'},[`&${Qe}-item-danger`]:{"&::after":{borderInlineEndColor:or}}},[`${Qe}-selected, ${Qe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${An} ${no}`,`opacity ${An} ${no}`].join(",")}}}}}};const on=Gt=>{const{componentCls:Je,itemHeight:Qe,itemMarginInline:_t,padding:Rt,menuArrowSize:Yt,marginXS:gt,itemMarginBlock:wt}=Gt,Dt=Rt+Yt+gt;return{[`${Je}-item`]:{position:"relative",overflow:"hidden"},[`${Je}-item, ${Je}-submenu-title`]:{height:Qe,lineHeight:`${Qe}px`,paddingInline:Rt,overflow:"hidden",textOverflow:"ellipsis",marginInline:_t,marginBlock:wt,width:`calc(100% - ${_t*2}px)`},[`> ${Je}-item,
> ${Je}-submenu > ${Je}-submenu-title`]:{height:Qe,lineHeight:`${Qe}px`},[`${Je}-item-group-list ${Je}-submenu-title,
${Je}-submenu-title`]:{paddingInlineEnd:Dt}}};var lt=Gt=>{const{componentCls:Je,iconCls:Qe,itemHeight:_t,colorTextLightSolid:Rt,dropdownWidth:Yt,controlHeightLG:gt,motionDurationMid:wt,motionEaseOut:Dt,paddingXL:tt,itemMarginInline:fn,fontSizeLG:hn,motionDurationSlow:$n,paddingXS:no,boxShadowSecondary:rt,collapsedWidth:vt,collapsedIconSize:An}=Gt,Zt={height:_t,lineHeight:`${_t}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Je]:{"&-inline, &-vertical":Object.assign({[`&${Je}-root`]:{boxShadow:"none"}},on(Gt))},[`${Je}-submenu-popup`]:{[`${Je}-vertical`]:Object.assign(Object.assign({},on(Gt)),{boxShadow:rt})}},{[`${Je}-submenu-popup ${Je}-vertical${Je}-sub`]:{minWidth:Yt,maxHeight:`calc(100vh - ${gt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Je}-inline`]:{width:"100%",[`&${Je}-root`]:{[`${Je}-item, ${Je}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${$n}`,`background ${$n}`,`padding ${wt} ${Dt}`].join(","),[`> ${Je}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Je}-sub${Je}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Je}-submenu > ${Je}-submenu-title`]:Zt,[`& ${Je}-item-group-title`]:{paddingInlineStart:tt}},[`${Je}-item`]:Zt}},{[`${Je}-inline-collapsed`]:{width:vt,[`&${Je}-root`]:{[`${Je}-item, ${Je}-submenu ${Je}-submenu-title`]:{[`> ${Je}-inline-collapsed-noicon`]:{fontSize:hn,textAlign:"center"}}},[`> ${Je}-item,
> ${Je}-item-group > ${Je}-item-group-list > ${Je}-item,
> ${Je}-item-group > ${Je}-item-group-list > ${Je}-submenu > ${Je}-submenu-title,
> ${Je}-submenu > ${Je}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${hn/2}px - ${fn}px)`,textOverflow:"clip",[`
${Je}-submenu-arrow,
${Je}-submenu-expand-icon
`]:{opacity:0},[`${Je}-item-icon, ${Qe}`]:{margin:0,fontSize:An,lineHeight:`${_t}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Je}-item-icon, ${Qe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Je}-item-icon, ${Qe}`]:{display:"none"},"a, a:hover":{color:Rt}},[`${Je}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:no})}}]};const xt=Gt=>{const{componentCls:Je,motionDurationSlow:Qe,motionDurationMid:_t,motionEaseInOut:Rt,motionEaseOut:Yt,iconCls:gt,iconSize:wt,iconMarginInlineEnd:Dt}=Gt;return{[`${Je}-item, ${Je}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Qe}`,`background ${Qe}`,`padding ${Qe} ${Rt}`].join(","),[`${Je}-item-icon, ${gt}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${_t} ${Yt}`,`margin ${Qe} ${Rt}`,`color ${Qe}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${Qe} ${Rt}`,`margin ${Qe}`,`color ${Qe}`].join(",")}},[`${Je}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${Je}-item-only-child`]:{[`> ${gt}, > ${Je}-item-icon`]:{marginInlineEnd:0}}},[`${Je}-item-disabled, ${Je}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Je}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Jt=Gt=>{const{componentCls:Je,motionDurationSlow:Qe,motionEaseInOut:_t,borderRadius:Rt,menuArrowSize:Yt,menuArrowOffset:gt}=Gt;return{[`${Je}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Gt.margin,width:Yt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Qe} ${_t}, opacity ${Qe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Yt*.6,height:Yt*.15,backgroundColor:"currentcolor",borderRadius:Rt,transition:[`background ${Qe} ${_t}`,`transform ${Qe} ${_t}`,`top ${Qe} ${_t}`,`color ${Qe} ${_t}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${gt})`},"&::after":{transform:`rotate(-45deg) translateY(${gt})`}}}}},Vt=Gt=>{const{antCls:Je,componentCls:Qe,fontSize:_t,motionDurationSlow:Rt,motionDurationMid:Yt,motionEaseInOut:gt,paddingXS:wt,padding:Dt,colorSplit:tt,lineWidth:fn,zIndexPopup:hn,borderRadiusLG:$n,subMenuItemBorderRadius:no,menuArrowSize:rt,menuArrowOffset:vt,lineType:An,menuPanelMaskInset:Zt,groupTitleLineHeight:yt,groupTitleFontSize:Nn}=Gt;return[{"":{[`${Qe}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Qe}-submenu-hidden`]:{display:"none"}},{[Qe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(Gt)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_t,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Rt} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Qe}-item`]:{flex:"none"}},[`${Qe}-item, ${Qe}-submenu, ${Qe}-submenu-title`]:{borderRadius:Gt.itemBorderRadius},[`${Qe}-item-group-title`]:{padding:`${wt}px ${Dt}px`,fontSize:Nn,lineHeight:yt,transition:`all ${Rt}`},[`&-horizontal ${Qe}-submenu`]:{transition:[`border-color ${Rt} ${gt}`,`background ${Rt} ${gt}`].join(",")},[`${Qe}-submenu, ${Qe}-submenu-inline`]:{transition:[`border-color ${Rt} ${gt}`,`background ${Rt} ${gt}`,`padding ${Yt} ${gt}`].join(",")},[`${Qe}-submenu ${Qe}-sub`]:{cursor:"initial",transition:[`background ${Rt} ${gt}`,`padding ${Rt} ${gt}`].join(",")},[`${Qe}-title-content`]:{transition:`color ${Rt}`},[`${Qe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Qe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:tt,borderStyle:An,borderWidth:0,borderTopWidth:fn,marginBlock:fn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),xt(Gt)),{[`${Qe}-item-group`]:{[`${Qe}-item-group-list`]:{margin:0,padding:0,[`${Qe}-item, ${Qe}-submenu-title`]:{paddingInline:`${_t*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:hn,borderRadius:$n,boxShadow:"none",transformOrigin:"0 0",[`&${Qe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Zt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Zt},"\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:Gt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Gt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Gt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Gt.paddingXS},[`> ${Qe}`]:Object.assign(Object.assign(Object.assign({borderRadius:$n},xt(Gt)),Jt(Gt)),{[`${Qe}-item, ${Qe}-submenu > ${Qe}-submenu-title`]:{borderRadius:no},[`${Qe}-submenu-title::after`]:{transition:`transform ${Rt} ${gt}`}})}}),Jt(Gt)),{[`&-inline-collapsed ${Qe}-submenu-arrow,
&-inline ${Qe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${vt})`},"&::after":{transform:`rotate(45deg) translateX(-${vt})`}},[`${Qe}-submenu-open${Qe}-submenu-inline > ${Qe}-submenu-title > ${Qe}-submenu-arrow`]:{transform:`translateY(-${rt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${vt})`},"&::before":{transform:`rotate(45deg) translateX(${vt})`}}})},{[`${Je}-layout-header`]:{[Qe]:{lineHeight:"inherit"}}}]};var xn=(Gt,Je)=>(0,mt.Z)("Menu",_t=>{if(Je===!1)return[];const{colorBgElevated:Rt,colorPrimary:Yt,colorTextLightSolid:gt,controlHeightLG:wt,fontSize:Dt,darkItemColor:tt,darkDangerItemColor:fn,darkItemBg:hn,darkSubMenuItemBg:$n,darkItemSelectedColor:no,darkItemSelectedBg:rt,darkDangerItemSelectedBg:vt,darkItemHoverBg:An,darkGroupTitleColor:Zt,darkItemHoverColor:yt,darkItemDisabledColor:Nn,darkDangerItemHoverColor:Xt,darkDangerItemSelectedColor:qn,darkDangerItemActiveBg:Br}=_t,or=Dt/7*5,Gn=(0,Ae.TS)(_t,{menuArrowSize:or,menuHorizontalHeight:wt*1.15,menuArrowOffset:`${or*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Rt}),ir=(0,Ae.TS)(Gn,{itemColor:tt,itemHoverColor:yt,groupTitleColor:Zt,itemSelectedColor:no,itemBg:hn,popupBg:hn,subMenuItemBg:$n,itemActiveBg:"transparent",itemSelectedBg:rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:An,itemDisabledColor:Nn,dangerItemColor:fn,dangerItemHoverColor:Xt,dangerItemSelectedColor:qn,dangerItemActiveBg:Br,dangerItemSelectedBg:vt,menuSubMenuBg:$n,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:Yt});return[Vt(Gn),Be(Gn),lt(Gn),nn(Gn,"light"),nn(ir,"dark"),Ke(Gn),(0,Me.Z)(Gn),(0,ut.oN)(Gn,"slide-up"),(0,ut.oN)(Gn,"slide-down"),(0,Xe._y)(Gn,"zoom-big")]},_t=>{const{colorPrimary:Rt,colorError:Yt,colorTextDisabled:gt,colorErrorBg:wt,colorText:Dt,colorTextDescription:tt,colorBgContainer:fn,colorFillAlter:hn,colorFillContent:$n,lineWidth:no,lineWidthBold:rt,controlItemBgActive:vt,colorBgTextHover:An,controlHeightLG:Zt,lineHeight:yt,colorBgElevated:Nn,marginXXS:Xt,padding:qn,fontSize:Br,controlHeightSM:or,fontSizeLG:Gn,colorTextLightSolid:ir,colorErrorHover:So}=_t,On=new we.C(ir).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_t.zIndexPopupBase+50,radiusItem:_t.borderRadiusLG,itemBorderRadius:_t.borderRadiusLG,radiusSubMenuItem:_t.borderRadiusSM,subMenuItemBorderRadius:_t.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:Rt,horizontalItemHoverColor:Rt,colorGroupTitle:tt,groupTitleColor:tt,colorItemTextSelected:Rt,itemSelectedColor:Rt,colorItemTextSelectedHorizontal:Rt,horizontalItemSelectedColor:Rt,colorItemBg:fn,itemBg:fn,colorItemBgHover:An,itemHoverBg:An,colorItemBgActive:$n,itemActiveBg:vt,colorSubItemBg:hn,subMenuItemBg:hn,colorItemBgSelected:vt,itemSelectedBg:vt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:rt,activeBarHeight:rt,colorActiveBarBorderSize:no,activeBarBorderWidth:no,colorItemTextDisabled:gt,itemDisabledColor:gt,colorDangerItemText:Yt,dangerItemColor:Yt,colorDangerItemTextHover:Yt,dangerItemHoverColor:Yt,colorDangerItemTextSelected:Yt,dangerItemSelectedColor:Yt,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:_t.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Zt,groupTitleLineHeight:yt,collapsedWidth:Zt*2,popupBg:Nn,itemMarginBlock:Xt,itemPaddingInline:qn,horizontalLineHeight:`${Zt*1.15}px`,iconSize:Br,iconMarginInlineEnd:or-Br,collapsedIconSize:Gn,groupTitleFontSize:Br,darkItemDisabledColor:new we.C(ir).setAlpha(.25).toRgbString(),darkItemColor:On,darkDangerItemColor:Yt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ir,darkItemSelectedBg:Rt,darkDangerItemSelectedBg:Yt,darkItemHoverBg:"transparent",darkGroupTitleColor:On,darkItemHoverColor:ir,darkDangerItemHoverColor:So,darkDangerItemSelectedColor:ir,darkDangerItemActiveBg:Yt}},{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"]]})(Gt),He=function(Gt,Je){var Qe={};for(var _t in Gt)Object.prototype.hasOwnProperty.call(Gt,_t)&&Je.indexOf(_t)<0&&(Qe[_t]=Gt[_t]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,_t=Object.getOwnPropertySymbols(Gt);Rt<_t.length;Rt++)Je.indexOf(_t[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Gt,_t[Rt])&&(Qe[_t[Rt]]=Gt[_t[Rt]]);return Qe},kn=(0,fe.forwardRef)((Gt,Je)=>{var Qe,_t;const Rt=fe.useContext(ce.Z),Yt=Rt||{},{getPrefixCls:gt,getPopupContainer:wt,direction:Dt,menu:tt}=fe.useContext(pe.E_),fn=gt(),{prefixCls:hn,className:$n,style:no,theme:rt="light",expandIcon:vt,_internalDisableMenuItemTitleTooltip:An,inlineCollapsed:Zt,siderCollapsed:yt,items:Nn,children:Xt,rootClassName:qn,mode:Br,selectable:or,onClick:Gn,overflowedIndicatorPopupClassName:ir}=Gt,So=He(Gt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),On=(0,se.Z)(So,["collapsedWidth"]),qr=xe(Nn)||Xt;(Qe=Yt.validator)===null||Qe===void 0||Qe.call(Yt,{mode:Br});const Yo=(0,oe.useEvent)(function(){var co;Gn==null||Gn.apply(void 0,arguments),(co=Yt.onClick)===null||co===void 0||co.call(Yt)}),Zo=Yt.mode||Br,qo=or!=null?or:Yt.selectable,yr=fe.useMemo(()=>yt!==void 0?yt:Zt,[Zt,yt]),xo={horizontal:{motionName:`${fn}-slide-up`},inline:(0,ae.Z)(fn),other:{motionName:`${fn}-zoom-big`}},Wo=gt("menu",hn||Yt.prefixCls),[Wi,$i]=xn(Wo,!Rt),Ci=he()(`${Wo}-${rt}`,tt==null?void 0:tt.className,$n);let ei;if(typeof vt=="function")ei=vt;else if(vt===null||vt===!1)ei=null;else if(Yt.expandIcon===null||Yt.expandIcon===!1)ei=null;else{const co=vt!=null?vt:Yt.expandIcon;ei=(0,re.Tm)(co,{className:he()(`${Wo}-submenu-expand-icon`,(0,re.l$)(co)?(_t=co.props)===null||_t===void 0?void 0:_t.className:"")})}const po=fe.useMemo(()=>({prefixCls:Wo,inlineCollapsed:yr||!1,direction:Dt,firstLevel:!0,theme:rt,mode:Zo,disableMenuItemTitleTooltip:An}),[Wo,yr,Dt,An,rt]);return Wi(fe.createElement(ce.Z.Provider,{value:null},fe.createElement(a.Provider,{value:po},fe.createElement(z.ZP,Object.assign({getPopupContainer:wt,overflowedIndicator:fe.createElement(ee.Z,null),overflowedIndicatorPopupClassName:he()(Wo,`${Wo}-${rt}`,ir),mode:Zo,selectable:qo,onClick:Yo},On,{inlineCollapsed:yr,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),no),className:Ci,prefixCls:Wo,direction:Dt,defaultMotions:xo,expandIcon:ei,ref:Je,rootClassName:he()(qn,$i)}),qr))))});const nr=(0,fe.forwardRef)((Gt,Je)=>{const Qe=(0,fe.useRef)(null),_t=fe.useContext(Pe.D);return(0,fe.useImperativeHandle)(Je,()=>({menu:Qe.current,focus:Rt=>{var Yt;(Yt=Qe.current)===null||Yt===void 0||Yt.focus(Rt)}})),fe.createElement(kn,Object.assign({ref:Qe},Gt,_t))});nr.Item=E,nr.SubMenu=x,nr.Divider=le,nr.ItemGroup=z.BW;var Ln=nr},34435:function(at,We,te){"use strict";te.d(We,{Z:function(){return no}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(44327),pe=function(vt,An){return fe.createElement(he.Z,(0,z.Z)({},vt,{ref:An,icon:ve}))},ie=fe.forwardRef(pe),de={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"},le=de,ue=function(vt,An){return fe.createElement(he.Z,(0,z.Z)({},vt,{ref:An,icon:le}))},se=fe.forwardRef(ue),me=te(55007),re=te(79269),ne=te(94184),a=te.n(ne),y=te(4942),E=te(1413),b=te(15671),x=te(43144),ee=te(60136),oe=te(51630),ae=`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`,ce=`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`,Se="".concat(ae," ").concat(ce).split(/[\s\n]+/),_e="aria-",xe="data-";function we(rt,vt){return rt.indexOf(vt)===0}function Fe(rt){var vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,An;vt===!1?An={aria:!0,data:!0,attr:!0}:vt===!0?An={aria:!0}:An=(0,E.Z)({},vt);var Zt={};return Object.keys(rt).forEach(function(yt){(An.aria&&(yt==="role"||we(yt,_e))||An.data&&we(yt,xe)||An.attr&&Se.includes(yt))&&(Zt[yt]=rt[yt])}),Zt}var Me={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ut=Me,Xe=te(81626),mt=function(rt){(0,ee.Z)(An,rt);var vt=(0,oe.Z)(An);function An(){var Zt;(0,b.Z)(this,An);for(var yt=arguments.length,Nn=new Array(yt),Xt=0;Xt<yt;Xt++)Nn[Xt]=arguments[Xt];return Zt=vt.call.apply(vt,[this].concat(Nn)),Zt.state={goInputText:""},Zt.getValidValue=function(){var qn=Zt.state.goInputText;return!qn||Number.isNaN(qn)?void 0:Number(qn)},Zt.buildOptionText=function(qn){return"".concat(qn," ").concat(Zt.props.locale.items_per_page)},Zt.changeSize=function(qn){Zt.props.changeSize(Number(qn))},Zt.handleChange=function(qn){Zt.setState({goInputText:qn.target.value})},Zt.handleBlur=function(qn){var Br=Zt.props,or=Br.goButton,Gn=Br.quickGo,ir=Br.rootPrefixCls,So=Zt.state.goInputText;or||So===""||(Zt.setState({goInputText:""}),!(qn.relatedTarget&&(qn.relatedTarget.className.indexOf("".concat(ir,"-item-link"))>=0||qn.relatedTarget.className.indexOf("".concat(ir,"-item"))>=0))&&Gn(Zt.getValidValue()))},Zt.go=function(qn){var Br=Zt.state.goInputText;Br!==""&&(qn.keyCode===ut.ENTER||qn.type==="click")&&(Zt.setState({goInputText:""}),Zt.props.quickGo(Zt.getValidValue()))},Zt}return(0,x.Z)(An,[{key:"getPageSizeOptions",value:function(){var yt=this.props,Nn=yt.pageSize,Xt=yt.pageSizeOptions;return Xt.some(function(qn){return qn.toString()===Nn.toString()})?Xt:Xt.concat([Nn.toString()]).sort(function(qn,Br){var or=Number.isNaN(Number(qn))?0:Number(qn),Gn=Number.isNaN(Number(Br))?0:Number(Br);return or-Gn})}},{key:"render",value:function(){var yt=this,Nn=this.props,Xt=Nn.pageSize,qn=Nn.locale,Br=Nn.rootPrefixCls,or=Nn.changeSize,Gn=Nn.quickGo,ir=Nn.goButton,So=Nn.selectComponentClass,On=Nn.buildOptionText,qr=Nn.selectPrefixCls,Yo=Nn.disabled,Zo=this.state.goInputText,qo="".concat(Br,"-options"),yr=So,xo=null,Wo=null,Wi=null;if(!or&&!Gn)return null;var $i=this.getPageSizeOptions();if(or&&yr){var Ci=$i.map(function(ei,po){return fe.createElement(yr.Option,{key:po,value:ei.toString()},(On||yt.buildOptionText)(ei))});xo=fe.createElement(yr,{disabled:Yo,prefixCls:qr,showSearch:!1,className:"".concat(qo,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Xt||$i[0]).toString(),onChange:this.changeSize,getPopupContainer:function(po){return po.parentNode},"aria-label":qn.page_size,defaultOpen:!1},Ci)}return Gn&&(ir&&(Wi=typeof ir=="boolean"?fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Yo,className:"".concat(qo,"-quick-jumper-button")},qn.jump_to_confirm):fe.createElement("span",{onClick:this.go,onKeyUp:this.go},ir)),Wo=fe.createElement("div",{className:"".concat(qo,"-quick-jumper")},qn.jump_to,fe.createElement("input",{disabled:Yo,type:"text",value:Zo,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":qn.page}),qn.page,Wi)),fe.createElement("li",{className:"".concat(qo)},xo,Wo)}}]),An}(fe.Component);mt.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ae=mt,De=function(vt){var An,Zt=vt.rootPrefixCls,yt=vt.page,Nn=vt.active,Xt=vt.className,qn=vt.showTitle,Br=vt.onClick,or=vt.onKeyPress,Gn=vt.itemRender,ir="".concat(Zt,"-item"),So=a()(ir,"".concat(ir,"-").concat(yt),(An={},(0,y.Z)(An,"".concat(ir,"-active"),Nn),(0,y.Z)(An,"".concat(ir,"-disabled"),!yt),(0,y.Z)(An,vt.className,Xt),An)),On=function(){Br(yt)},qr=function(qo){or(qo,Br,yt)},Yo=Gn(yt,"page",fe.createElement("a",{rel:"nofollow"},yt));return Yo?fe.createElement("li",{title:qn?yt.toString():null,className:So,onClick:On,onKeyPress:qr,tabIndex:0},Yo):null},Be=De;function nt(){}function Ke(rt){var vt=Number(rt);return typeof vt=="number"&&!Number.isNaN(vt)&&isFinite(vt)&&Math.floor(vt)===vt}var Et=function(vt,An,Zt){return Zt};function Ct(rt,vt,An){var Zt=typeof rt=="undefined"?vt.pageSize:rt;return Math.floor((An.total-1)/Zt)+1}var nn=function(rt){(0,ee.Z)(An,rt);var vt=(0,oe.Z)(An);function An(Zt){var yt;(0,b.Z)(this,An),yt=vt.call(this,Zt),yt.paginationNode=fe.createRef(),yt.getJumpPrevPage=function(){return Math.max(1,yt.state.current-(yt.props.showLessItems?3:5))},yt.getJumpNextPage=function(){return Math.min(Ct(void 0,yt.state,yt.props),yt.state.current+(yt.props.showLessItems?3:5))},yt.getItemIcon=function(or,Gn){var ir=yt.props.prefixCls,So=or||fe.createElement("button",{type:"button","aria-label":Gn,className:"".concat(ir,"-item-link")});return typeof or=="function"&&(So=fe.createElement(or,(0,E.Z)({},yt.props))),So},yt.isValid=function(or){var Gn=yt.props.total;return Ke(or)&&or!==yt.state.current&&Ke(Gn)&&Gn>0},yt.shouldDisplayQuickJumper=function(){var or=yt.props,Gn=or.showQuickJumper,ir=or.total,So=yt.state.pageSize;return ir<=So?!1:Gn},yt.handleKeyDown=function(or){(or.keyCode===ut.ARROW_UP||or.keyCode===ut.ARROW_DOWN)&&or.preventDefault()},yt.handleKeyUp=function(or){var Gn=yt.getValidValue(or),ir=yt.state.currentInputValue;Gn!==ir&&yt.setState({currentInputValue:Gn}),or.keyCode===ut.ENTER?yt.handleChange(Gn):or.keyCode===ut.ARROW_UP?yt.handleChange(Gn-1):or.keyCode===ut.ARROW_DOWN&&yt.handleChange(Gn+1)},yt.handleBlur=function(or){var Gn=yt.getValidValue(or);yt.handleChange(Gn)},yt.changePageSize=function(or){var Gn=yt.state.current,ir=Ct(or,yt.state,yt.props);Gn=Gn>ir?ir:Gn,ir===0&&(Gn=yt.state.current),typeof or=="number"&&("pageSize"in yt.props||yt.setState({pageSize:or}),"current"in yt.props||yt.setState({current:Gn,currentInputValue:Gn})),yt.props.onShowSizeChange(Gn,or),"onChange"in yt.props&&yt.props.onChange&&yt.props.onChange(Gn,or)},yt.handleChange=function(or){var Gn=yt.props,ir=Gn.disabled,So=Gn.onChange,On=yt.state,qr=On.pageSize,Yo=On.current,Zo=On.currentInputValue;if(yt.isValid(or)&&!ir){var qo=Ct(void 0,yt.state,yt.props),yr=or;return or>qo?yr=qo:or<1&&(yr=1),"current"in yt.props||yt.setState({current:yr}),yr!==Zo&&yt.setState({currentInputValue:yr}),So(yr,qr),yr}return Yo},yt.prev=function(){yt.hasPrev()&&yt.handleChange(yt.state.current-1)},yt.next=function(){yt.hasNext()&&yt.handleChange(yt.state.current+1)},yt.jumpPrev=function(){yt.handleChange(yt.getJumpPrevPage())},yt.jumpNext=function(){yt.handleChange(yt.getJumpNextPage())},yt.hasPrev=function(){return yt.state.current>1},yt.hasNext=function(){return yt.state.current<Ct(void 0,yt.state,yt.props)},yt.runIfEnter=function(or,Gn){if(or.key==="Enter"||or.charCode===13){for(var ir=arguments.length,So=new Array(ir>2?ir-2:0),On=2;On<ir;On++)So[On-2]=arguments[On];Gn.apply(void 0,So)}},yt.runIfEnterPrev=function(or){yt.runIfEnter(or,yt.prev)},yt.runIfEnterNext=function(or){yt.runIfEnter(or,yt.next)},yt.runIfEnterJumpPrev=function(or){yt.runIfEnter(or,yt.jumpPrev)},yt.runIfEnterJumpNext=function(or){yt.runIfEnter(or,yt.jumpNext)},yt.handleGoTO=function(or){(or.keyCode===ut.ENTER||or.type==="click")&&yt.handleChange(yt.state.currentInputValue)},yt.renderPrev=function(or){var Gn=yt.props,ir=Gn.prevIcon,So=Gn.itemRender,On=So(or,"prev",yt.getItemIcon(ir,"prev page")),qr=!yt.hasPrev();return(0,fe.isValidElement)(On)?(0,fe.cloneElement)(On,{disabled:qr}):On},yt.renderNext=function(or){var Gn=yt.props,ir=Gn.nextIcon,So=Gn.itemRender,On=So(or,"next",yt.getItemIcon(ir,"next page")),qr=!yt.hasNext();return(0,fe.isValidElement)(On)?(0,fe.cloneElement)(On,{disabled:qr}):On};var Nn=Zt.onChange!==nt,Xt="current"in Zt;Xt&&!Nn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var qn=Zt.defaultCurrent;"current"in Zt&&(qn=Zt.current);var Br=Zt.defaultPageSize;return"pageSize"in Zt&&(Br=Zt.pageSize),qn=Math.min(qn,Ct(Br,void 0,Zt)),yt.state={current:qn,currentInputValue:qn,pageSize:Br},yt}return(0,x.Z)(An,[{key:"componentDidUpdate",value:function(yt,Nn){var Xt=this.props.prefixCls;if(Nn.current!==this.state.current&&this.paginationNode.current){var qn=this.paginationNode.current.querySelector(".".concat(Xt,"-item-").concat(Nn.current));if(qn&&document.activeElement===qn){var Br;qn==null||(Br=qn.blur)===null||Br===void 0||Br.call(qn)}}}},{key:"getValidValue",value:function(yt){var Nn=yt.target.value,Xt=Ct(void 0,this.state,this.props),qn=this.state.currentInputValue,Br;return Nn===""?Br=Nn:Number.isNaN(Number(Nn))?Br=qn:Nn>=Xt?Br=Xt:Br=Number(Nn),Br}},{key:"getShowSizeChanger",value:function(){var yt=this.props,Nn=yt.showSizeChanger,Xt=yt.total,qn=yt.totalBoundaryShowSizeChanger;return typeof Nn!="undefined"?Nn:Xt>qn}},{key:"render",value:function(){var yt=this.props,Nn=yt.prefixCls,Xt=yt.className,qn=yt.style,Br=yt.disabled,or=yt.hideOnSinglePage,Gn=yt.total,ir=yt.locale,So=yt.showQuickJumper,On=yt.showLessItems,qr=yt.showTitle,Yo=yt.showTotal,Zo=yt.simple,qo=yt.itemRender,yr=yt.showPrevNextJumpers,xo=yt.jumpPrevIcon,Wo=yt.jumpNextIcon,Wi=yt.selectComponentClass,$i=yt.selectPrefixCls,Ci=yt.pageSizeOptions,ei=this.state,po=ei.current,co=ei.pageSize,Ta=ei.currentInputValue;if(or===!0&&Gn<=co)return null;var yn=Ct(void 0,this.state,this.props),ge=[],ye=null,be=null,Le=null,Ne=null,et=null,ct=So&&So.goButton,_n=On?1:2,rn=po-1>0?po-1:0,In=po+1<yn?po+1:yn,pr=Fe(this.props,{aria:!0,data:!0}),_r=Yo&&fe.createElement("li",{className:"".concat(Nn,"-total-text")},Yo(Gn,[Gn===0?0:(po-1)*co+1,po*co>Gn?Gn:po*co]));if(Zo){ct&&(typeof ct=="boolean"?et=fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ir.jump_to_confirm):et=fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ct),et=fe.createElement("li",{title:qr?"".concat(ir.jump_to).concat(po,"/").concat(yn):null,className:"".concat(Nn,"-simple-pager")},et));var Mt=this.renderPrev(rn);return fe.createElement("ul",(0,z.Z)({className:a()(Nn,"".concat(Nn,"-simple"),(0,y.Z)({},"".concat(Nn,"-disabled"),Br),Xt),style:qn,ref:this.paginationNode},pr),_r,Mt?fe.createElement("li",{title:qr?ir.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Nn,"-prev"),(0,y.Z)({},"".concat(Nn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Mt):null,fe.createElement("li",{title:qr?"".concat(po,"/").concat(yn):null,className:"".concat(Nn,"-simple-pager")},fe.createElement("input",{type:"text",value:Ta,disabled:Br,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),fe.createElement("span",{className:"".concat(Nn,"-slash")},"/"),yn),fe.createElement("li",{title:qr?ir.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:a()("".concat(Nn,"-next"),(0,y.Z)({},"".concat(Nn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(In)),et)}if(yn<=3+_n*2){var ur={locale:ir,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:qr,itemRender:qo};yn||ge.push(fe.createElement(Be,(0,z.Z)({},ur,{key:"noPager",page:1,className:"".concat(Nn,"-item-disabled")})));for(var er=1;er<=yn;er+=1){var Tn=po===er;ge.push(fe.createElement(Be,(0,z.Z)({},ur,{key:er,page:er,active:Tn})))}}else{var Un=On?ir.prev_3:ir.prev_5,sr=On?ir.next_3:ir.next_5,Zr=qo(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(xo,"prev page")),xr=qo(this.getJumpNextPage(),"jump-next",this.getItemIcon(Wo,"next page"));yr&&(ye=Zr?fe.createElement("li",{title:qr?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:a()("".concat(Nn,"-jump-prev"),(0,y.Z)({},"".concat(Nn,"-jump-prev-custom-icon"),!!xo))},Zr):null,be=xr?fe.createElement("li",{title:qr?sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:a()("".concat(Nn,"-jump-next"),(0,y.Z)({},"".concat(Nn,"-jump-next-custom-icon"),!!Wo))},xr):null),Ne=fe.createElement(Be,{locale:ir,last:!0,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:yn,page:yn,active:!1,showTitle:qr,itemRender:qo}),Le=fe.createElement(Be,{locale:ir,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:qr,itemRender:qo});var Gi=Math.max(1,po-_n),Xo=Math.min(po+_n,yn);po-1<=_n&&(Xo=1+_n*2),yn-po<=_n&&(Gi=yn-_n*2);for(var br=Gi;br<=Xo;br+=1){var _o=po===br;ge.push(fe.createElement(Be,{locale:ir,rootPrefixCls:Nn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:br,page:br,active:_o,showTitle:qr,itemRender:qo}))}po-1>=_n*2&&po!==3&&(ge[0]=(0,fe.cloneElement)(ge[0],{className:"".concat(Nn,"-item-after-jump-prev")}),ge.unshift(ye)),yn-po>=_n*2&&po!==yn-2&&(ge[ge.length-1]=(0,fe.cloneElement)(ge[ge.length-1],{className:"".concat(Nn,"-item-before-jump-next")}),ge.push(be)),Gi!==1&&ge.unshift(Le),Xo!==yn&&ge.push(Ne)}var wi=!this.hasPrev()||!yn,ti=!this.hasNext()||!yn,hi=this.renderPrev(rn),pn=this.renderNext(In);return fe.createElement("ul",(0,z.Z)({className:a()(Nn,Xt,(0,y.Z)({},"".concat(Nn,"-disabled"),Br)),style:qn,ref:this.paginationNode},pr),_r,hi?fe.createElement("li",{title:qr?ir.prev_page:null,onClick:this.prev,tabIndex:wi?null:0,onKeyPress:this.runIfEnterPrev,className:a()("".concat(Nn,"-prev"),(0,y.Z)({},"".concat(Nn,"-disabled"),wi)),"aria-disabled":wi},hi):null,ge,pn?fe.createElement("li",{title:qr?ir.next_page:null,onClick:this.next,tabIndex:ti?null:0,onKeyPress:this.runIfEnterNext,className:a()("".concat(Nn,"-next"),(0,y.Z)({},"".concat(Nn,"-disabled"),ti)),"aria-disabled":ti},pn):null,fe.createElement(Ae,{disabled:Br,locale:ir,rootPrefixCls:Nn,selectComponentClass:Wi,selectPrefixCls:$i,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:po,pageSize:co,pageSizeOptions:Ci,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ct}))}}],[{key:"getDerivedStateFromProps",value:function(yt,Nn){var Xt={};if("current"in yt&&(Xt.current=yt.current,yt.current!==Nn.current&&(Xt.currentInputValue=Xt.current)),"pageSize"in yt&&yt.pageSize!==Nn.pageSize){var qn=Nn.current,Br=Ct(yt.pageSize,Nn,yt);qn=qn>Br?Br:qn,"current"in yt||(Xt.current=qn,Xt.currentInputValue=qn),Xt.pageSize=yt.pageSize}return Xt}}]),An}(fe.Component);nn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:nt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:nt,locale:Xe.Z,style:{},itemRender:Et,totalBoundaryShowSizeChanger:50};var on=nn,it=te(62906),lt=te(53124),xt=te(98675),Jt=te(25378),Vt=te(10110),xn=te(42563);const He=rt=>fe.createElement(xn.default,Object.assign({},rt,{showSearch:!0,size:"small"})),un=rt=>fe.createElement(xn.default,Object.assign({},rt,{showSearch:!0,size:"middle"}));He.Option=xn.default.Option,un.Option=xn.default.Option;var kn=te(47673),nr=te(14747),Ln=te(67968),Gt=te(45503);const Je=rt=>{const{componentCls:vt}=rt;return{[`${vt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${vt}-item-link`]:{color:rt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${vt}-item-link`]:{color:rt.colorTextDisabled,cursor:"not-allowed"}}},[`&${vt}-disabled`]:{cursor:"not-allowed",[`${vt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:rt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:rt.colorBorder,backgroundColor:rt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:rt.itemActiveBgDisabled},a:{color:rt.itemActiveColorDisabled}}},[`${vt}-item-link`]:{color:rt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${vt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${vt}-simple-pager`]:{color:rt.colorTextDisabled},[`${vt}-jump-prev, ${vt}-jump-next`]:{[`${vt}-item-link-icon`]:{opacity:0},[`${vt}-item-ellipsis`]:{opacity:1}}},[`&${vt}-simple`]:{[`${vt}-prev, ${vt}-next`]:{[`&${vt}-disabled ${vt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Qe=rt=>{const{componentCls:vt}=rt;return{[`&${vt}-mini ${vt}-total-text, &${vt}-mini ${vt}-simple-pager`]:{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`},[`&${vt}-mini ${vt}-item`]:{minWidth:rt.itemSizeSM,height:rt.itemSizeSM,margin:0,lineHeight:`${rt.itemSizeSM-2}px`},[`&${vt}-mini:not(${vt}-disabled) ${vt}-item:not(${vt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:rt.colorBgTextHover},"&:active":{backgroundColor:rt.colorBgTextActive}},[`&${vt}-mini ${vt}-prev, &${vt}-mini ${vt}-next`]:{minWidth:rt.itemSizeSM,height:rt.itemSizeSM,margin:0,lineHeight:`${rt.itemSizeSM}px`},[`&${vt}-mini:not(${vt}-disabled)`]:{[`${vt}-prev, ${vt}-next`]:{[`&:hover ${vt}-item-link`]:{backgroundColor:rt.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:rt.colorBgTextActive},[`&${vt}-disabled:hover ${vt}-item-link`]:{backgroundColor:"transparent"}}},[`
&${vt}-mini ${vt}-prev ${vt}-item-link,
&${vt}-mini ${vt}-next ${vt}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`}},[`&${vt}-mini ${vt}-jump-prev, &${vt}-mini ${vt}-jump-next`]:{height:rt.itemSizeSM,marginInlineEnd:0,lineHeight:`${rt.itemSizeSM}px`},[`&${vt}-mini ${vt}-options`]:{marginInlineStart:rt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:rt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,kn.x0)(rt)),{width:rt.paginationMiniQuickJumperInputWidth,height:rt.controlHeightSM})}}}},_t=rt=>{const{componentCls:vt}=rt;return{[`
&${vt}-simple ${vt}-prev,
&${vt}-simple ${vt}-next
`]:{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`,verticalAlign:"top",[`${vt}-item-link`]:{height:rt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:rt.colorBgTextHover},"&:active":{backgroundColor:rt.colorBgTextActive},"&::after":{height:rt.itemSizeSM,lineHeight:`${rt.itemSizeSM}px`}}},[`&${vt}-simple ${vt}-simple-pager`]:{display:"inline-block",height:rt.itemSizeSM,marginInlineEnd:rt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:rt.marginXS,padding:`0 ${rt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:rt.itemInputBg,border:`${rt.lineWidth}px ${rt.lineType} ${rt.colorBorder}`,borderRadius:rt.borderRadius,outline:"none",transition:`border-color ${rt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:rt.colorPrimary},"&:focus":{borderColor:rt.colorPrimaryHover,boxShadow:`${rt.inputOutlineOffset}px 0 ${rt.controlOutlineWidth}px ${rt.controlOutline}`},"&[disabled]":{color:rt.colorTextDisabled,backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,cursor:"not-allowed"}}}}},Rt=rt=>{const{componentCls:vt}=rt;return{[`${vt}-jump-prev, ${vt}-jump-next`]:{outline:0,[`${vt}-item-container`]:{position:"relative",[`${vt}-item-link-icon`]:{color:rt.colorPrimary,fontSize:rt.fontSizeSM,opacity:0,transition:`all ${rt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${vt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:rt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:rt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:rt.paginationEllipsisTextIndent,opacity:1,transition:`all ${rt.motionDurationMid}`}},"&:hover":{[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}}},[`
${vt}-prev,
${vt}-jump-prev,
${vt}-jump-next
`]:{marginInlineEnd:rt.marginXS},[`
${vt}-prev,
${vt}-next,
${vt}-jump-prev,
${vt}-jump-next
`]:{display:"inline-block",minWidth:rt.itemSize,height:rt.itemSize,color:rt.colorText,fontFamily:rt.fontFamily,lineHeight:`${rt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:rt.borderRadius,cursor:"pointer",transition:`all ${rt.motionDurationMid}`},[`${vt}-prev, ${vt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:rt.colorText,cursor:"pointer",userSelect:"none"},[`${vt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:rt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${rt.lineWidth}px ${rt.lineType} transparent`,borderRadius:rt.borderRadius,outline:"none",transition:`all ${rt.motionDurationMid}`},[`&:hover ${vt}-item-link`]:{backgroundColor:rt.colorBgTextHover},[`&:active ${vt}-item-link`]:{backgroundColor:rt.colorBgTextActive},[`&${vt}-disabled:hover`]:{[`${vt}-item-link`]:{backgroundColor:"transparent"}}},[`${vt}-slash`]:{marginInlineEnd:rt.paginationSlashMarginInlineEnd,marginInlineStart:rt.paginationSlashMarginInlineStart},[`${vt}-options`]:{display:"inline-block",marginInlineStart:rt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:rt.controlHeight,marginInlineStart:rt.marginXS,lineHeight:`${rt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,kn.ik)(rt)),{width:rt.controlHeightLG*1.25,height:rt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:rt.marginXS,marginInlineEnd:rt.marginXS})}}}},Yt=rt=>{const{componentCls:vt}=rt;return{[`${vt}-item`]:{display:"inline-block",minWidth:rt.itemSize,height:rt.itemSize,marginInlineEnd:rt.marginXS,fontFamily:rt.fontFamily,lineHeight:`${rt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${rt.lineWidth}px ${rt.lineType} transparent`,borderRadius:rt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${rt.paginationItemPaddingInline}px`,color:rt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${vt}-item-active)`]:{"&:hover":{transition:`all ${rt.motionDurationMid}`,backgroundColor:rt.colorBgTextHover},"&:active":{backgroundColor:rt.colorBgTextActive}},"&-active":{fontWeight:rt.fontWeightStrong,backgroundColor:rt.itemActiveBg,borderColor:rt.colorPrimary,a:{color:rt.colorPrimary},"&:hover":{borderColor:rt.colorPrimaryHover},"&:hover a":{color:rt.colorPrimaryHover}}}}},gt=rt=>{const{componentCls:vt}=rt;return{[vt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nr.Wf)(rt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${vt}-total-text`]:{display:"inline-block",height:rt.itemSize,marginInlineEnd:rt.marginXS,lineHeight:`${rt.itemSize-2}px`,verticalAlign:"middle"}}),Yt(rt)),Rt(rt)),_t(rt)),Qe(rt)),Je(rt)),{[`@media only screen and (max-width: ${rt.screenLG}px)`]:{[`${vt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${rt.screenSM}px)`]:{[`${vt}-options`]:{display:"none"}}}),[`&${rt.componentCls}-rtl`]:{direction:"rtl"}}},wt=rt=>{const{componentCls:vt}=rt;return{[`${vt}${vt}-disabled:not(${vt}-mini)`]:{"&, &:hover":{[`${vt}-item-link`]:{borderColor:rt.colorBorder}},"&:focus-visible":{[`${vt}-item-link`]:{borderColor:rt.colorBorder}},[`${vt}-item, ${vt}-item-link`]:{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,[`&:hover:not(${vt}-item-active)`]:{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,a:{color:rt.colorTextDisabled}},[`&${vt}-item-active`]:{backgroundColor:rt.itemActiveBgDisabled}},[`${vt}-prev, ${vt}-next`]:{"&:hover button":{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder,color:rt.colorTextDisabled},[`${vt}-item-link`]:{backgroundColor:rt.colorBgContainerDisabled,borderColor:rt.colorBorder}}},[`${vt}:not(${vt}-mini)`]:{[`${vt}-prev, ${vt}-next`]:{"&:hover button":{borderColor:rt.colorPrimaryHover,backgroundColor:rt.itemBg},[`${vt}-item-link`]:{backgroundColor:rt.itemLinkBg,borderColor:rt.colorBorder},[`&:hover ${vt}-item-link`]:{borderColor:rt.colorPrimary,backgroundColor:rt.itemBg,color:rt.colorPrimary},[`&${vt}-disabled`]:{[`${vt}-item-link`]:{borderColor:rt.colorBorder,color:rt.colorTextDisabled}}},[`${vt}-item`]:{backgroundColor:rt.itemBg,border:`${rt.lineWidth}px ${rt.lineType} ${rt.colorBorder}`,[`&:hover:not(${vt}-item-active)`]:{borderColor:rt.colorPrimary,backgroundColor:rt.itemBg,a:{color:rt.colorPrimary}},"&-active":{borderColor:rt.colorPrimary}}}}},Dt=rt=>{const{componentCls:vt}=rt;return{[`${vt}:not(${vt}-disabled)`]:{[`${vt}-item`]:Object.assign({},(0,nr.Qy)(rt)),[`${vt}-jump-prev, ${vt}-jump-next`]:{"&:focus-visible":Object.assign({[`${vt}-item-link-icon`]:{opacity:1},[`${vt}-item-ellipsis`]:{opacity:0}},(0,nr.oN)(rt))},[`${vt}-prev, ${vt}-next`]:{[`&:focus-visible ${vt}-item-link`]:Object.assign({},(0,nr.oN)(rt))}}}};var tt=(0,Ln.Z)("Pagination",rt=>{const vt=(0,Gt.TS)(rt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:rt.marginXXS/2,paginationMiniQuickJumperInputWidth:rt.controlHeightLG*1.1,paginationItemPaddingInline:rt.marginXXS*1.5,paginationEllipsisLetterSpacing:rt.marginXXS/2,paginationSlashMarginInlineStart:rt.marginXXS,paginationSlashMarginInlineEnd:rt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,kn.e5)(rt),(0,kn.TM)(rt));return[gt(vt),Dt(vt),rt.wireframe&&wt(vt)]},rt=>({itemBg:rt.colorBgContainer,itemSize:rt.controlHeight,itemSizeSM:rt.controlHeightSM,itemActiveBg:rt.colorBgContainer,itemLinkBg:rt.colorBgContainer,itemActiveColorDisabled:rt.colorTextDisabled,itemActiveBgDisabled:rt.controlItemBgActiveDisabled,itemInputBg:rt.colorBgContainer,miniOptionsSizeChangerTop:0})),fn=function(rt,vt){var An={};for(var Zt in rt)Object.prototype.hasOwnProperty.call(rt,Zt)&&vt.indexOf(Zt)<0&&(An[Zt]=rt[Zt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Zt=Object.getOwnPropertySymbols(rt);yt<Zt.length;yt++)vt.indexOf(Zt[yt])<0&&Object.prototype.propertyIsEnumerable.call(rt,Zt[yt])&&(An[Zt[yt]]=rt[Zt[yt]]);return An},$n=rt=>{const{prefixCls:vt,selectPrefixCls:An,className:Zt,rootClassName:yt,style:Nn,size:Xt,locale:qn,selectComponentClass:Br,responsive:or,showSizeChanger:Gn}=rt,ir=fn(rt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:So}=(0,Jt.Z)(or),{getPrefixCls:On,direction:qr,pagination:Yo={}}=fe.useContext(lt.E_),Zo=On("pagination",vt),[qo,yr]=tt(Zo),xo=Gn!=null?Gn:Yo.showSizeChanger,Wo=fe.useMemo(()=>{const yn=fe.createElement("span",{className:`${Zo}-item-ellipsis`},"\u2022\u2022\u2022"),ge=fe.createElement("button",{className:`${Zo}-item-link`,type:"button",tabIndex:-1},qr==="rtl"?fe.createElement(re.Z,null):fe.createElement(me.Z,null)),ye=fe.createElement("button",{className:`${Zo}-item-link`,type:"button",tabIndex:-1},qr==="rtl"?fe.createElement(me.Z,null):fe.createElement(re.Z,null)),be=fe.createElement("a",{className:`${Zo}-item-link`},fe.createElement("div",{className:`${Zo}-item-container`},qr==="rtl"?fe.createElement(se,{className:`${Zo}-item-link-icon`}):fe.createElement(ie,{className:`${Zo}-item-link-icon`}),yn)),Le=fe.createElement("a",{className:`${Zo}-item-link`},fe.createElement("div",{className:`${Zo}-item-container`},qr==="rtl"?fe.createElement(ie,{className:`${Zo}-item-link-icon`}):fe.createElement(se,{className:`${Zo}-item-link-icon`}),yn));return{prevIcon:ge,nextIcon:ye,jumpPrevIcon:be,jumpNextIcon:Le}},[qr,Zo]),[Wi]=(0,Vt.Z)("Pagination",it.Z),$i=Object.assign(Object.assign({},Wi),qn),Ci=(0,xt.Z)(Xt),ei=Ci==="small"||!!(So&&!Ci&&or),po=On("select",An),co=a()({[`${Zo}-mini`]:ei,[`${Zo}-rtl`]:qr==="rtl"},Yo==null?void 0:Yo.className,Zt,yt,yr),Ta=Object.assign(Object.assign({},Yo==null?void 0:Yo.style),Nn);return qo(fe.createElement(on,Object.assign({},Wo,ir,{style:Ta,prefixCls:Zo,selectPrefixCls:po,className:co,selectComponentClass:Br||(ei?He:un),locale:$i,showSizeChanger:xo})))},no=$n},4310:function(at,We,te){"use strict";te.d(We,{Z:function(){return Gt}});var z=te(94184),fe=te.n(z),Pe=te(67294),ve=te(53124),he=te(10366),ie=Je=>{const{prefixCls:Qe,className:_t,style:Rt,size:Yt,shape:gt}=Je,wt=fe()({[`${Qe}-lg`]:Yt==="large",[`${Qe}-sm`]:Yt==="small"}),Dt=fe()({[`${Qe}-circle`]:gt==="circle",[`${Qe}-square`]:gt==="square",[`${Qe}-round`]:gt==="round"}),tt=Pe.useMemo(()=>typeof Yt=="number"?{width:Yt,height:Yt,lineHeight:`${Yt}px`}:{},[Yt]);return Pe.createElement("span",{className:fe()(Qe,wt,Dt,_t),style:Object.assign(Object.assign({},tt),Rt)})},de=te(45930),le=te(67968),ue=te(45503);const se=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),me=Je=>({height:Je,lineHeight:`${Je}px`}),re=Je=>Object.assign({width:Je},me(Je)),ne=Je=>({background:Je.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:se,animationDuration:Je.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Je=>Object.assign({width:Je*5,minWidth:Je*5},me(Je)),y=Je=>{const{skeletonAvatarCls:Qe,gradientFromColor:_t,controlHeight:Rt,controlHeightLG:Yt,controlHeightSM:gt}=Je;return{[`${Qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_t},re(Rt)),[`${Qe}${Qe}-circle`]:{borderRadius:"50%"},[`${Qe}${Qe}-lg`]:Object.assign({},re(Yt)),[`${Qe}${Qe}-sm`]:Object.assign({},re(gt))}},E=Je=>{const{controlHeight:Qe,borderRadiusSM:_t,skeletonInputCls:Rt,controlHeightLG:Yt,controlHeightSM:gt,gradientFromColor:wt}=Je;return{[`${Rt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt,borderRadius:_t},a(Qe)),[`${Rt}-lg`]:Object.assign({},a(Yt)),[`${Rt}-sm`]:Object.assign({},a(gt))}},b=Je=>Object.assign({width:Je},me(Je)),x=Je=>{const{skeletonImageCls:Qe,imageSizeBase:_t,gradientFromColor:Rt,borderRadiusSM:Yt}=Je;return{[`${Qe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Rt,borderRadius:Yt},b(_t*2)),{[`${Qe}-path`]:{fill:"#bfbfbf"},[`${Qe}-svg`]:Object.assign(Object.assign({},b(_t)),{maxWidth:_t*4,maxHeight:_t*4}),[`${Qe}-svg${Qe}-svg-circle`]:{borderRadius:"50%"}}),[`${Qe}${Qe}-circle`]:{borderRadius:"50%"}}},ee=(Je,Qe,_t)=>{const{skeletonButtonCls:Rt}=Je;return{[`${_t}${Rt}-circle`]:{width:Qe,minWidth:Qe,borderRadius:"50%"},[`${_t}${Rt}-round`]:{borderRadius:Qe}}},oe=Je=>Object.assign({width:Je*2,minWidth:Je*2},me(Je)),ae=Je=>{const{borderRadiusSM:Qe,skeletonButtonCls:_t,controlHeight:Rt,controlHeightLG:Yt,controlHeightSM:gt,gradientFromColor:wt}=Je;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${_t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:wt,borderRadius:Qe,width:Rt*2,minWidth:Rt*2},oe(Rt))},ee(Je,Rt,_t)),{[`${_t}-lg`]:Object.assign({},oe(Yt))}),ee(Je,Yt,`${_t}-lg`)),{[`${_t}-sm`]:Object.assign({},oe(gt))}),ee(Je,gt,`${_t}-sm`))},ce=Je=>{const{componentCls:Qe,skeletonAvatarCls:_t,skeletonTitleCls:Rt,skeletonParagraphCls:Yt,skeletonButtonCls:gt,skeletonInputCls:wt,skeletonImageCls:Dt,controlHeight:tt,controlHeightLG:fn,controlHeightSM:hn,gradientFromColor:$n,padding:no,marginSM:rt,borderRadius:vt,titleHeight:An,blockRadius:Zt,paragraphLiHeight:yt,controlHeightXS:Nn,paragraphMarginTop:Xt}=Je;return{[`${Qe}`]:{display:"table",width:"100%",[`${Qe}-header`]:{display:"table-cell",paddingInlineEnd:no,verticalAlign:"top",[`${_t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:$n},re(tt)),[`${_t}-circle`]:{borderRadius:"50%"},[`${_t}-lg`]:Object.assign({},re(fn)),[`${_t}-sm`]:Object.assign({},re(hn))},[`${Qe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Rt}`]:{width:"100%",height:An,background:$n,borderRadius:Zt,[`+ ${Yt}`]:{marginBlockStart:hn}},[`${Yt}`]:{padding:0,"> li":{width:"100%",height:yt,listStyle:"none",background:$n,borderRadius:Zt,"+ li":{marginBlockStart:Nn}}},[`${Yt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Qe}-content`]:{[`${Rt}, ${Yt} > li`]:{borderRadius:vt}}},[`${Qe}-with-avatar ${Qe}-content`]:{[`${Rt}`]:{marginBlockStart:rt,[`+ ${Yt}`]:{marginBlockStart:Xt}}},[`${Qe}${Qe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ae(Je)),y(Je)),E(Je)),x(Je)),[`${Qe}${Qe}-block`]:{width:"100%",[`${gt}`]:{width:"100%"},[`${wt}`]:{width:"100%"}},[`${Qe}${Qe}-active`]:{[`
${Rt},
${Yt} > li,
${_t},
${gt},
${wt},
${Dt}
`]:Object.assign({},ne(Je))}}};var Se=(0,le.Z)("Skeleton",Je=>{const{componentCls:Qe}=Je,_t=(0,ue.TS)(Je,{skeletonAvatarCls:`${Qe}-avatar`,skeletonTitleCls:`${Qe}-title`,skeletonParagraphCls:`${Qe}-paragraph`,skeletonButtonCls:`${Qe}-button`,skeletonInputCls:`${Qe}-input`,skeletonImageCls:`${Qe}-image`,imageSizeBase:Je.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Je.gradientFromColor} 25%, ${Je.gradientToColor} 37%, ${Je.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ce(_t)]},Je=>{const{colorFillContent:Qe,colorFill:_t}=Je,Rt=Qe,Yt=_t;return{color:Rt,colorGradientEnd:Yt,gradientFromColor:Rt,gradientToColor:Yt,titleHeight:Je.controlHeight/2,blockRadius:Je.borderRadiusSM,paragraphMarginTop:Je.marginLG+Je.marginXXS,paragraphLiHeight:Je.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),xe=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,active:Yt,shape:gt="circle",size:wt="default"}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=(0,he.Z)(Je,["prefixCls","className"]),no=fe()(tt,`${tt}-element`,{[`${tt}-active`]:Yt},_t,Rt,hn);return fn(Pe.createElement("div",{className:no},Pe.createElement(ie,Object.assign({prefixCls:`${tt}-avatar`,shape:gt,size:wt},$n))))},Fe=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,active:Yt,block:gt=!1,size:wt="default"}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=(0,he.Z)(Je,["prefixCls"]),no=fe()(tt,`${tt}-element`,{[`${tt}-active`]:Yt,[`${tt}-block`]:gt},_t,Rt,hn);return fn(Pe.createElement("div",{className:no},Pe.createElement(ie,Object.assign({prefixCls:`${tt}-button`,size:wt},$n))))};const Me="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Xe=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,style:Yt,active:gt}=Je,{getPrefixCls:wt}=Pe.useContext(ve.E_),Dt=wt("skeleton",Qe),[tt,fn]=Se(Dt),hn=fe()(Dt,`${Dt}-element`,{[`${Dt}-active`]:gt},_t,Rt,fn);return tt(Pe.createElement("div",{className:hn},Pe.createElement("div",{className:fe()(`${Dt}-image`,_t),style:Yt},Pe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Dt}-image-svg`},Pe.createElement("path",{d:Me,className:`${Dt}-image-path`})))))},Ae=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,active:Yt,block:gt,size:wt="default"}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=(0,he.Z)(Je,["prefixCls"]),no=fe()(tt,`${tt}-element`,{[`${tt}-active`]:Yt,[`${tt}-block`]:gt},_t,Rt,hn);return fn(Pe.createElement("div",{className:no},Pe.createElement(ie,Object.assign({prefixCls:`${tt}-input`,size:wt},$n))))},De=te(87462),Be={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"},nt=Be,Ke=te(44327),Et=function(Qe,_t){return Pe.createElement(Ke.Z,(0,De.Z)({},Qe,{ref:_t,icon:nt}))},Ct=Pe.forwardRef(Et),on=Je=>{const{prefixCls:Qe,className:_t,rootClassName:Rt,style:Yt,active:gt,children:wt}=Je,{getPrefixCls:Dt}=Pe.useContext(ve.E_),tt=Dt("skeleton",Qe),[fn,hn]=Se(tt),$n=fe()(tt,`${tt}-element`,{[`${tt}-active`]:gt},hn,_t,Rt),no=wt!=null?wt:Pe.createElement(Ct,null);return fn(Pe.createElement("div",{className:$n},Pe.createElement("div",{className:fe()(`${tt}-image`,_t),style:Yt},no)))},it=te(74902),xt=Je=>{const Qe=Dt=>{const{width:tt,rows:fn=2}=Je;if(Array.isArray(tt))return tt[Dt];if(fn-1===Dt)return tt},{prefixCls:_t,className:Rt,style:Yt,rows:gt}=Je,wt=(0,it.Z)(Array(gt)).map((Dt,tt)=>Pe.createElement("li",{key:tt,style:{width:Qe(tt)}}));return Pe.createElement("ul",{className:fe()(_t,Rt),style:Yt},wt)},Vt=Je=>{let{prefixCls:Qe,className:_t,width:Rt,style:Yt}=Je;return Pe.createElement("h3",{className:fe()(Qe,_t),style:Object.assign({width:Rt},Yt)})};function xn(Je){return Je&&typeof Je=="object"?Je:{}}function He(Je,Qe){return Je&&!Qe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function un(Je,Qe){return!Je&&Qe?{width:"38%"}:Je&&Qe?{width:"50%"}:{}}function kn(Je,Qe){const _t={};return(!Je||!Qe)&&(_t.width="61%"),!Je&&Qe?_t.rows=3:_t.rows=2,_t}const nr=Je=>{const{prefixCls:Qe,loading:_t,className:Rt,rootClassName:Yt,style:gt,children:wt,avatar:Dt=!1,title:tt=!0,paragraph:fn=!0,active:hn,round:$n}=Je,{getPrefixCls:no,direction:rt,skeleton:vt}=Pe.useContext(ve.E_),An=no("skeleton",Qe),[Zt,yt]=Se(An);if(_t||!("loading"in Je)){const Nn=!!Dt,Xt=!!tt,qn=!!fn;let Br;if(Nn){const ir=Object.assign(Object.assign({prefixCls:`${An}-avatar`},He(Xt,qn)),xn(Dt));Br=Pe.createElement("div",{className:`${An}-header`},Pe.createElement(ie,Object.assign({},ir)))}let or;if(Xt||qn){let ir;if(Xt){const On=Object.assign(Object.assign({prefixCls:`${An}-title`},un(Nn,qn)),xn(tt));ir=Pe.createElement(Vt,Object.assign({},On))}let So;if(qn){const On=Object.assign(Object.assign({prefixCls:`${An}-paragraph`},kn(Nn,Xt)),xn(fn));So=Pe.createElement(xt,Object.assign({},On))}or=Pe.createElement("div",{className:`${An}-content`},ir,So)}const Gn=fe()(An,{[`${An}-with-avatar`]:Nn,[`${An}-active`]:hn,[`${An}-rtl`]:rt==="rtl",[`${An}-round`]:$n},vt==null?void 0:vt.className,Rt,Yt,yt);return Zt(Pe.createElement("div",{className:Gn,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),gt)},Br,or))}return typeof wt!="undefined"?wt:null};nr.Button=Fe,nr.Avatar=xe,nr.Input=Ae,nr.Image=Xe,nr.Node=on;var Ln=nr,Gt=Ln},55054:function(at,We,te){"use strict";te.d(We,{default:function(){return Se}});var z=te(67294),fe=te(57838),Pe=te(96159),ve=te(94184),he=te.n(ve),pe=te(53124),ie=te(4310),le=_e=>{const{value:xe,formatter:we,precision:Fe,decimalSeparator:Me,groupSeparator:ut="",prefixCls:Xe}=_e;let mt;if(typeof we=="function")mt=we(xe);else{const Ae=String(xe),De=Ae.match(/^(-?)(\d*)(\.(\d+))?$/);if(!De||Ae==="-")mt=Ae;else{const Be=De[1];let nt=De[2]||"0",Ke=De[4]||"";nt=nt.replace(/\B(?=(\d{3})+(?!\d))/g,ut),typeof Fe=="number"&&(Ke=Ke.padEnd(Fe,"0").slice(0,Fe>0?Fe:0)),Ke&&(Ke=`${Me}${Ke}`),mt=[z.createElement("span",{key:"int",className:`${Xe}-content-value-int`},Be,nt),Ke&&z.createElement("span",{key:"decimal",className:`${Xe}-content-value-decimal`},Ke)]}}return z.createElement("span",{className:`${Xe}-content-value`},mt)},ue=te(14747),se=te(67968),me=te(45503);const re=_e=>{const{componentCls:xe,marginXXS:we,padding:Fe,colorTextDescription:Me,titleFontSize:ut,colorTextHeading:Xe,contentFontSize:mt,fontFamily:Ae}=_e;return{[`${xe}`]:Object.assign(Object.assign({},(0,ue.Wf)(_e)),{[`${xe}-title`]:{marginBottom:we,color:Me,fontSize:ut},[`${xe}-skeleton`]:{paddingTop:Fe},[`${xe}-content`]:{color:Xe,fontSize:mt,fontFamily:Ae,[`${xe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${xe}-content-prefix, ${xe}-content-suffix`]:{display:"inline-block"},[`${xe}-content-prefix`]:{marginInlineEnd:we},[`${xe}-content-suffix`]:{marginInlineStart:we}}})}};var ne=(0,se.Z)("Statistic",_e=>{const xe=(0,me.TS)(_e,{});return[re(xe)]},_e=>{const{fontSizeHeading3:xe,fontSize:we}=_e;return{titleFontSize:we,contentFontSize:xe}}),y=_e=>{const{prefixCls:xe,className:we,rootClassName:Fe,style:Me,valueStyle:ut,value:Xe=0,title:mt,valueRender:Ae,prefix:De,suffix:Be,loading:nt=!1,onMouseEnter:Ke,onMouseLeave:Et,decimalSeparator:Ct=".",groupSeparator:nn=","}=_e,{getPrefixCls:on,direction:it,statistic:lt}=z.useContext(pe.E_),xt=on("statistic",xe),[Jt,Vt]=ne(xt),xn=z.createElement(le,Object.assign({decimalSeparator:Ct,groupSeparator:nn,prefixCls:xt},_e,{value:Xe})),He=he()(xt,{[`${xt}-rtl`]:it==="rtl"},lt==null?void 0:lt.className,we,Fe,Vt);return Jt(z.createElement("div",{className:He,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),Me),onMouseEnter:Ke,onMouseLeave:Et},mt&&z.createElement("div",{className:`${xt}-title`},mt),z.createElement(ie.Z,{paragraph:!1,loading:nt,className:`${xt}-skeleton`},z.createElement("div",{style:ut,className:`${xt}-content`},De&&z.createElement("span",{className:`${xt}-content-prefix`},De),Ae?Ae(xn):xn,Be&&z.createElement("span",{className:`${xt}-content-suffix`},Be)))))};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 we=_e;const Fe=/\[[^\]]*]/g,Me=(xe.match(Fe)||[]).map(Ae=>Ae.slice(1,-1)),ut=xe.replace(Fe,"[]"),Xe=E.reduce((Ae,De)=>{let[Be,nt]=De;if(Ae.includes(Be)){const Ke=Math.floor(we/nt);return we-=Ke*nt,Ae.replace(new RegExp(`${Be}+`,"g"),Et=>{const Ct=Et.length;return Ke.toString().padStart(Ct,"0")})}return Ae},ut);let mt=0;return Xe.replace(Fe,()=>{const Ae=Me[mt];return mt+=1,Ae})}function x(_e,xe){const{format:we=""}=xe,Fe=new Date(_e).getTime(),Me=Date.now(),ut=Math.max(Fe-Me,0);return b(ut,we)}const ee=1e3/30;function oe(_e){return new Date(_e).getTime()}const ae=_e=>{const{value:xe,format:we="HH:mm:ss",onChange:Fe,onFinish:Me}=_e,ut=(0,fe.Z)(),Xe=z.useRef(null),mt=()=>{Me==null||Me(),Xe.current&&(clearInterval(Xe.current),Xe.current=null)},Ae=()=>{const nt=oe(xe);nt>=Date.now()&&(Xe.current=setInterval(()=>{ut(),Fe==null||Fe(nt-Date.now()),nt<Date.now()&&mt()},ee))};z.useEffect(()=>(Ae(),()=>{Xe.current&&(clearInterval(Xe.current),Xe.current=null)}),[xe]);const De=(nt,Ke)=>x(nt,Object.assign(Object.assign({},Ke),{format:we})),Be=nt=>(0,Pe.Tm)(nt,{title:void 0});return z.createElement(y,Object.assign({},_e,{valueRender:Be,formatter:De}))};var ce=z.memo(ae);y.Countdown=ce;var Se=y},49867:function(at,We,te){"use strict";te.d(We,{N:function(){return z}});const z=fe=>({color:fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${fe.motionDurationSlow}`,"&:focus, &:hover":{color:fe.colorLinkHover},"&:active":{color:fe.colorLinkActive}})},86129:function(at,We,te){"use strict";te.d(We,{default:function(){return Hs}});var z={},fe="rc-table-internal-hook",Pe=te(97685),ve=te(66680),he=te(8410),pe=te(91881),ie=te(67294),de=te(73935);function le(Ee){var Ce=ie.createContext(void 0),Re=function(Ue){var Ze=Ue.value,ot=Ue.children,st=ie.useRef(Ze);st.current=Ze;var ht=ie.useState(function(){return{getValue:function(){return st.current},listeners:new Set}}),Pt=(0,Pe.Z)(ht,1),Ot=Pt[0];return(0,he.Z)(function(){(0,de.unstable_batchedUpdates)(function(){Ot.listeners.forEach(function(At){At(Ze)})})},[Ze]),ie.createElement(Ce.Provider,{value:Ot},ot)};return{Context:Ce,Provider:Re,defaultValue:Ee}}function ue(Ee,Ce){var Re=(0,ve.Z)(typeof Ce=="function"?Ce:function(At){if(Ce===void 0)return At;if(!Array.isArray(Ce))return At[Ce];var tn={};return Ce.forEach(function(gn){tn[gn]=At[gn]}),tn}),Te=ie.useContext(Ee==null?void 0:Ee.Context),Ue=Te||{},Ze=Ue.listeners,ot=Ue.getValue,st=ie.useRef();st.current=Re(Te?ot():Ee==null?void 0:Ee.defaultValue);var ht=ie.useState({}),Pt=(0,Pe.Z)(ht,2),Ot=Pt[1];return(0,he.Z)(function(){if(!Te)return;function At(tn){var gn=Re(tn);(0,pe.Z)(st.current,gn,!0)||Ot({})}return Ze.add(At),function(){Ze.delete(At)}},[Te]),st.current}var se=te(87462),me=te(42550);function re(){var Ee=ie.createContext(null);function Ce(){return ie.useContext(Ee)}function Re(Ue,Ze){var ot=(0,me.Yr)(Ue),st=function(Pt,Ot){var At=ot?{ref:Ot}:{},tn=ie.useRef(0),gn=ie.useRef(Pt),ln=Ce();return ln!==null?ie.createElement(Ue,(0,se.Z)({},Pt,At)):((!Ze||Ze(gn.current,Pt))&&(tn.current+=1),gn.current=Pt,ie.createElement(Ee.Provider,{value:tn.current},ie.createElement(Ue,(0,se.Z)({},Pt,At))))};return ot?ie.forwardRef(st):st}function Te(Ue,Ze){var ot=(0,me.Yr)(Ue),st=function(Pt,Ot){var At=ot?{ref:Ot}:{};return Ce(),ie.createElement(Ue,(0,se.Z)({},Pt,At))};return ot?ie.memo(ie.forwardRef(st),Ze):ie.memo(st,Ze)}return{makeImmutable:Re,responseImmutable:Te,useImmutableMark:Ce}}var ne=re(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=re(),x=b.makeImmutable,ee=b.responseImmutable,oe=b.useImmutableMark,ae=le(),ce=ae;function Se(Ee,Ce){var Re=ie.useRef(0);Re.current+=1;var Te=ie.useRef(Ee),Ue=[];Object.keys(Ee||{}).map(function(ot){var st;(Ee==null?void 0:Ee[ot])!==((st=Te.current)===null||st===void 0?void 0:st[ot])&&Ue.push(ot)}),Te.current=Ee;var Ze=ie.useRef([]);return Ue.length&&(Ze.current=Ue),ie.useDebugValue(Re.current),ie.useDebugValue(Ze.current.join(", ")),Ce&&console.log("".concat(Ce,":"),Re.current,Ze.current),Re.current}var _e=null,xe=ie.memo(function(){var Ee=Se();return ie.createElement("h1",null,"Render Times: ",Ee)});xe.displayName="RenderBlock";var we=te(71002),Fe=te(1413),Me=te(4942),ut=te(94184),Xe=te.n(ut);function mt(Ee,Ce,Re){var Te=ie.useRef({});return(!("value"in Te.current)||Re(Te.current.condition,Ce))&&(Te.current.value=Ee(),Te.current.condition=Ce),Te.current.value}var Ae={},De=[],Be=function(Ce){De.push(Ce)};function nt(Ee,Ce){if(0)var Re}function Ke(Ee,Ce){if(0)var Re}function Et(){Ae={}}function Ct(Ee,Ce,Re){!Ce&&!Ae[Re]&&(Ee(!1,Re),Ae[Re]=!0)}function nn(Ee,Ce){Ct(nt,Ee,Ce)}function on(Ee,Ce){Ct(Ke,Ee,Ce)}nn.preMessage=Be,nn.resetWarned=Et,nn.noteOnce=on;var it=nn;function lt(Ee,Ce){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Te=new Set;function Ue(Ze,ot){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ht=Te.has(Ze);if(it(!ht,"Warning: There may be circular references"),ht)return!1;if(Ze===ot)return!0;if(Re&&st>1)return!1;Te.add(Ze);var Pt=st+1;if(Array.isArray(Ze)){if(!Array.isArray(ot)||Ze.length!==ot.length)return!1;for(var Ot=0;Ot<Ze.length;Ot++)if(!Ue(Ze[Ot],ot[Ot],Pt))return!1;return!0}if(Ze&&ot&&(0,we.Z)(Ze)==="object"&&(0,we.Z)(ot)==="object"){var At=Object.keys(Ze);return At.length!==Object.keys(ot).length?!1:At.every(function(tn){return Ue(Ze[tn],ot[tn],Pt)})}return!1}return Ue(Ee,Ce)}var xt=lt;function Jt(Ee,Ce){for(var Re=Ee,Te=0;Te<Ce.length;Te+=1){if(Re==null)return;Re=Re[Ce[Te]]}return Re}var Vt=ie.createContext({renderWithProps:!1}),xn=Vt,He="RC_TABLE_KEY";function un(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function kn(Ee){var Ce=[],Re={};return Ee.forEach(function(Te){for(var Ue=Te||{},Ze=Ue.key,ot=Ue.dataIndex,st=Ze||un(ot).join("-")||He;Re[st];)st="".concat(st,"_next");Re[st]=!0,Ce.push(st)}),Ce}function nr(Ee){return Ee!=null}function Ln(Ee){return Ee&&(0,we.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!ie.isValidElement(Ee)}function Gt(Ee,Ce,Re,Te,Ue,Ze){var ot=ie.useContext(xn),st=oe(),ht=mt(function(){if(nr(Te))return[Te];var Pt=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],Ot=Jt(Ee,Pt),At=Ot,tn=void 0;if(Ue){var gn=Ue(Ot,Ee,Re);Ln(gn)?(At=gn.children,tn=gn.props,ot.renderWithProps=!0):At=gn}return[At,tn]},[st,Ee,Te,Ce,Ue,Re],function(Pt,Ot){if(Ze){var At=(0,Pe.Z)(Pt,2),tn=At[1],gn=(0,Pe.Z)(Ot,2),ln=gn[1];return Ze(ln,tn)}return ot.renderWithProps?!0:!xt(Pt,Ot,!0)});return ht}function Je(Ee,Ce,Re,Te){var Ue=Ee+Ce-1;return Ee<=Te&&Ue>=Re}function Qe(Ee,Ce){return ue(ce,function(Re){var Te=Je(Ee,Ce||1,Re.hoverStartRow,Re.hoverEndRow);return[Te,Re.onHover]})}var _t=function(Ce){var Re=Ce.ellipsis,Te=Ce.rowType,Ue=Ce.children,Ze,ot=Re===!0?{showTitle:!0}:Re;return ot&&(ot.showTitle||Te==="header")&&(typeof Ue=="string"||typeof Ue=="number"?Ze=Ue.toString():ie.isValidElement(Ue)&&typeof Ue.props.children=="string"&&(Ze=Ue.props.children)),Ze};function Rt(Ee){var Ce,Re,Te,Ue,Ze,ot,st,ht,Pt=Ee.component,Ot=Ee.children,At=Ee.ellipsis,tn=Ee.scope,gn=Ee.prefixCls,ln=Ee.className,Wn=Ee.align,Fn=Ee.record,Yn=Ee.render,zn=Ee.dataIndex,rr=Ee.renderIndex,Ur=Ee.shouldCellUpdate,Xr=Ee.index,Ar=Ee.rowType,fo=Ee.colSpan,io=Ee.rowSpan,cr=Ee.fixLeft,Dr=Ee.fixRight,hr=Ee.firstFixLeft,Xn=Ee.lastFixLeft,Er=Ee.firstFixRight,oo=Ee.lastFixRight,Uo=Ee.appendNode,Po=Ee.additionalProps,to=Po===void 0?{}:Po,Go=Ee.isSticky,Vo="".concat(gn,"-cell"),ar=ue(ce,["supportSticky","allColumnsFixedLeft"]),Rr=ar.supportSticky,Ko=ar.allColumnsFixedLeft,ii=Gt(Fn,zn,rr,Ot,Yn,Ur),Gr=(0,Pe.Z)(ii,2),Ra=Gr[0],Pi=Gr[1],ba={},ua=typeof cr=="number"&&Rr,Ns=typeof Dr=="number"&&Rr;ua&&(ba.position="sticky",ba.left=cr),Ns&&(ba.position="sticky",ba.right=Dr);var ho=(Ce=(Re=(Te=Pi==null?void 0:Pi.colSpan)!==null&&Te!==void 0?Te:to.colSpan)!==null&&Re!==void 0?Re:fo)!==null&&Ce!==void 0?Ce:1,lo=(Ue=(Ze=(ot=Pi==null?void 0:Pi.rowSpan)!==null&&ot!==void 0?ot:to.rowSpan)!==null&&Ze!==void 0?Ze:io)!==null&&Ue!==void 0?Ue:1,ao=Qe(Xr,lo),Qr=(0,Pe.Z)(ao,2),Hi=Qr[0],Jr=Qr[1],No=function(Ja){var Ts;Fn&&Jr(Xr,Xr+lo-1),to==null||(Ts=to.onMouseEnter)===null||Ts===void 0||Ts.call(to,Ja)},Ri=function(Ja){var Ts;Fn&&Jr(-1,-1),to==null||(Ts=to.onMouseLeave)===null||Ts===void 0||Ts.call(to,Ja)};if(ho===0||lo===0)return null;var Ei=(st=to.title)!==null&&st!==void 0?st:_t({rowType:Ar,ellipsis:At,children:Ra}),Ss=Xe()(Vo,ln,(ht={},(0,Me.Z)(ht,"".concat(Vo,"-fix-left"),ua&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-left-first"),hr&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-left-last"),Xn&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-left-all"),Xn&&Ko&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-right"),Ns&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-right-first"),Er&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-fix-right-last"),oo&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-ellipsis"),At),(0,Me.Z)(ht,"".concat(Vo,"-with-append"),Uo),(0,Me.Z)(ht,"".concat(Vo,"-fix-sticky"),(ua||Ns)&&Go&&Rr),(0,Me.Z)(ht,"".concat(Vo,"-row-hover"),!Pi&&Hi),ht),to.className,Pi==null?void 0:Pi.className),us={};Wn&&(us.textAlign=Wn);var tl=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},ba),to.style),us),Pi==null?void 0:Pi.style),Qa=Ra;return(0,we.Z)(Qa)==="object"&&!Array.isArray(Qa)&&!ie.isValidElement(Qa)&&(Qa=null),At&&(Xn||Er)&&(Qa=ie.createElement("span",{className:"".concat(Vo,"-content")},Qa)),ie.createElement(Pt,(0,se.Z)({},Pi,to,{className:Ss,style:tl,title:Ei,scope:tn,onMouseEnter:No,onMouseLeave:Ri,colSpan:ho!==1?ho:null,rowSpan:lo!==1?lo:null}),Uo,Qa)}var Yt=ie.memo(Rt);function gt(Ee,Ce,Re,Te,Ue,Ze){var ot=Re[Ee]||{},st=Re[Ce]||{},ht,Pt;ot.fixed==="left"?ht=Te.left[Ue==="rtl"?Ce:Ee]:st.fixed==="right"&&(Pt=Te.right[Ue==="rtl"?Ee:Ce]);var Ot=!1,At=!1,tn=!1,gn=!1,ln=Re[Ce+1],Wn=Re[Ee-1],Fn=!(Ze!=null&&Ze.children);if(Ue==="rtl"){if(ht!==void 0){var Yn=Wn&&Wn.fixed==="left";gn=!Yn&&Fn}else if(Pt!==void 0){var zn=ln&&ln.fixed==="right";tn=!zn&&Fn}}else if(ht!==void 0){var rr=ln&&ln.fixed==="left";Ot=!rr&&Fn}else if(Pt!==void 0){var Ur=Wn&&Wn.fixed==="right";At=!Ur&&Fn}return{fixLeft:ht,fixRight:Pt,lastFixLeft:Ot,firstFixRight:At,lastFixRight:tn,firstFixLeft:gn,isSticky:Te.isSticky}}var wt=ie.createContext({}),Dt=wt;function tt(Ee){var Ce=Ee.className,Re=Ee.index,Te=Ee.children,Ue=Ee.colSpan,Ze=Ue===void 0?1:Ue,ot=Ee.rowSpan,st=Ee.align,ht=ue(ce,["prefixCls","direction"]),Pt=ht.prefixCls,Ot=ht.direction,At=ie.useContext(Dt),tn=At.scrollColumnIndex,gn=At.stickyOffsets,ln=At.flattenColumns,Wn=At.columns,Fn=Re+Ze-1,Yn=Fn+1===tn?Ze+1:Ze,zn=gt(Re,Re+Yn-1,ln,gn,Ot,Wn==null?void 0:Wn[Re]);return ie.createElement(Yt,(0,se.Z)({className:Ce,index:Re,component:"td",prefixCls:Pt,record:null,dataIndex:null,align:st,colSpan:Yn,rowSpan:ot,render:function(){return Te}},zn))}var fn=te(45987),hn=["children"];function $n(Ee){var Ce=Ee.children,Re=(0,fn.Z)(Ee,hn);return ie.createElement("tr",Re,Ce)}function no(Ee){var Ce=Ee.children;return Ce}no.Row=$n,no.Cell=tt;var rt=no;function vt(Ee){var Ce=Ee.children,Re=Ee.stickyOffsets,Te=Ee.flattenColumns,Ue=Ee.columns,Ze=ue(ce,"prefixCls"),ot=Te.length-1,st=Te[ot],ht=ie.useMemo(function(){return{stickyOffsets:Re,flattenColumns:Te,scrollColumnIndex:st!=null&&st.scrollbar?ot:null,columns:Ue}},[st,Te,ot,Re,Ue]);return ie.createElement(Dt.Provider,{value:ht},ie.createElement("tfoot",{className:"".concat(Ze,"-summary")},Ce))}var An=ee(vt),Zt=rt;function yt(Ee){var Ce=ie.useRef();Ce.current=Ee;var Re=ie.useCallback(function(){for(var Te,Ue=arguments.length,Ze=new Array(Ue),ot=0;ot<Ue;ot++)Ze[ot]=arguments[ot];return(Te=Ce.current)===null||Te===void 0?void 0:Te.call.apply(Te,[Ce].concat(Ze))},[]);return Re}function Nn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xt=Nn()?ie.useLayoutEffect:ie.useEffect,qn=function(Ce,Re){var Te=React.useRef(!0);Xt(function(){return Ce(Te.current)},Re),Xt(function(){return Te.current=!1,function(){Te.current=!0}},[])},Br=function(Ce,Re){qn(function(Te){if(!Te)return Ce()},Re)},or=null;function Gn(Ee){var Ce=React.useRef(!1),Re=React.useState(Ee),Te=_slicedToArray(Re,2),Ue=Te[0],Ze=Te[1];React.useEffect(function(){return Ce.current=!1,function(){Ce.current=!0}},[]);function ot(st,ht){ht&&Ce.current||Ze(st)}return[Ue,ot]}function ir(Ee){return Ee!==void 0}function So(Ee,Ce){var Re=Ce||{},Te=Re.defaultValue,Ue=Re.value,Ze=Re.onChange,ot=Re.postState,st=useState(function(){return ir(Ue)?Ue:ir(Te)?typeof Te=="function"?Te():Te:typeof Ee=="function"?Ee():Ee}),ht=_slicedToArray(st,2),Pt=ht[0],Ot=ht[1],At=Ue!==void 0?Ue:Pt,tn=ot?ot(At):At,gn=useEvent(Ze),ln=useState([At]),Wn=_slicedToArray(ln,2),Fn=Wn[0],Yn=Wn[1];useLayoutUpdateEffect(function(){var rr=Fn[0];Pt!==rr&&gn(Pt,rr)},[Fn]),useLayoutUpdateEffect(function(){ir(Ue)||Ot(Ue)},[Ue]);var zn=useEvent(function(rr,Ur){Ot(rr,Ur),Yn([At],Ur)});return[tn,zn]}var On=te(35110);function qr(Ee,Ce){typeof Ee=="function"?Ee(Ce):(0,we.Z)(Ee)==="object"&&Ee&&"current"in Ee&&(Ee.current=Ce)}function Yo(){for(var Ee=arguments.length,Ce=new Array(Ee),Re=0;Re<Ee;Re++)Ce[Re]=arguments[Re];var Te=Ce.filter(function(Ue){return Ue});return Te.length<=1?Te[0]:function(Ue){Ce.forEach(function(Ze){qr(Ze,Ue)})}}function Zo(){for(var Ee=arguments.length,Ce=new Array(Ee),Re=0;Re<Ee;Re++)Ce[Re]=arguments[Re];return useMemo(function(){return Yo.apply(void 0,Ce)},Ce,function(Te,Ue){return Te.length!==Ue.length||Te.every(function(Ze,ot){return Ze!==Ue[ot]})})}function qo(Ee){var Ce,Re,Te=isMemo(Ee)?Ee.type.type:Ee.type;return!(typeof Te=="function"&&!((Ce=Te.prototype)!==null&&Ce!==void 0&&Ce.render)||typeof Ee=="function"&&!((Re=Ee.prototype)!==null&&Re!==void 0&&Re.render))}function yr(Ee){return!isValidElement(Ee)||isFragment(Ee)?!1:qo(Ee)}function xo(Ee,Ce,Re,Te){if(!Ce.length)return Re;var Ue=_toArray(Ce),Ze=Ue[0],ot=Ue.slice(1),st;return!Ee&&typeof Ze=="number"?st=[]:Array.isArray(Ee)?st=_toConsumableArray(Ee):st=_objectSpread({},Ee),Te&&Re===void 0&&ot.length===1?delete st[Ze][ot[0]]:st[Ze]=xo(st[Ze],ot,Re,Te),st}function Wo(Ee,Ce,Re){var Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ce.length&&Te&&Re===void 0&&!get(Ee,Ce.slice(0,-1))?Ee:xo(Ee,Ce,Re,Te)}function Wi(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function $i(Ee){return Array.isArray(Ee)?[]:{}}var Ci=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ei(){for(var Ee=arguments.length,Ce=new Array(Ee),Re=0;Re<Ee;Re++)Ce[Re]=arguments[Re];var Te=$i(Ce[0]);return Ce.forEach(function(Ue){function Ze(ot,st){var ht=new Set(st),Pt=get(Ue,ot),Ot=Array.isArray(Pt);if(Ot||Wi(Pt)){if(!ht.has(Pt)){ht.add(Pt);var At=get(Te,ot);Ot?Te=Wo(Te,ot,[]):(!At||_typeof(At)!=="object")&&(Te=Wo(Te,ot,$i(Pt))),Ci(Pt).forEach(function(tn){Ze([].concat(_toConsumableArray(ot),[tn]),ht)})}}else Te=Wo(Te,ot,Pt)}Ze([])}),Te}var po=te(48555),co=function(Ee){if(!Ee)return!1;if(Ee instanceof Element){if(Ee.offsetParent)return!0;if(Ee.getBBox){var Ce=Ee.getBBox(),Re=Ce.width,Te=Ce.height;if(Re||Te)return!0}if(Ee.getBoundingClientRect){var Ue=Ee.getBoundingClientRect(),Ze=Ue.width,ot=Ue.height;if(Ze||ot)return!0}}return!1},Ta=function(Ce){if(Nn()&&window.document.documentElement){var Re=Array.isArray(Ce)?Ce:[Ce],Te=window.document.documentElement;return Re.some(function(Ue){return Ue in Te.style})}return!1},yn=function(Ce,Re){if(!Ta(Ce))return!1;var Te=document.createElement("div"),Ue=Te.style[Ce];return Te.style[Ce]=Re,Te.style[Ce]!==Ue};function ge(Ee,Ce){return!Array.isArray(Ee)&&Ce!==void 0?yn(Ee,Ce):Ta(Ee)}var ye;function be(Ee){if(typeof document=="undefined")return 0;if(Ee||ye===void 0){var Ce=document.createElement("div");Ce.style.width="100%",Ce.style.height="200px";var Re=document.createElement("div"),Te=Re.style;Te.position="absolute",Te.top="0",Te.left="0",Te.pointerEvents="none",Te.visibility="hidden",Te.width="200px",Te.height="150px",Te.overflow="hidden",Re.appendChild(Ce),document.body.appendChild(Re);var Ue=Ce.offsetWidth;Re.style.overflow="scroll";var Ze=Ce.offsetWidth;Ue===Ze&&(Ze=Re.clientWidth),document.body.removeChild(Re),ye=Ue-Ze}return ye}function Le(Ee){var Ce=Ee.match(/^(.*)px$/),Re=Number(Ce==null?void 0:Ce[1]);return Number.isNaN(Re)?be():Re}function Ne(Ee){if(typeof document=="undefined"||!Ee||!(Ee instanceof Element))return{width:0,height:0};var Ce=getComputedStyle(Ee,"::-webkit-scrollbar"),Re=Ce.width,Te=Ce.height;return{width:Le(Re),height:Le(Te)}}var et=`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`,ct=`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`,_n="".concat(et," ").concat(ct).split(/[\s\n]+/),rn="aria-",In="data-";function pr(Ee,Ce){return Ee.indexOf(Ce)===0}function _r(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re;Ce===!1?Re={aria:!0,data:!0,attr:!0}:Ce===!0?Re={aria:!0}:Re=(0,Fe.Z)({},Ce);var Te={};return Object.keys(Ee).forEach(function(Ue){(Re.aria&&(Ue==="role"||pr(Ue,rn))||Re.data&&pr(Ue,In)||Re.attr&&_n.includes(Ue))&&(Te[Ue]=Ee[Ue])}),Te}function Mt(Ee,Ce,Re,Te,Ue,Ze,ot){Ee.push({record:Ce,indent:Re,index:ot});var st=Ze(Ce),ht=Ue==null?void 0:Ue.has(st);if(Ce&&Array.isArray(Ce[Te])&&ht)for(var Pt=0;Pt<Ce[Te].length;Pt+=1)Mt(Ee,Ce[Te][Pt],Re+1,Te,Ue,Ze,Pt)}function ur(Ee,Ce,Re,Te){var Ue=ie.useMemo(function(){if(Re!=null&&Re.size){for(var Ze=[],ot=0;ot<(Ee==null?void 0:Ee.length);ot+=1){var st=Ee[ot];Mt(Ze,st,0,Ce,Re,Te,ot)}return Ze}return Ee==null?void 0:Ee.map(function(ht,Pt){return{record:ht,indent:0,index:Pt}})},[Ee,Ce,Re,Te]);return Ue}function er(Ee){var Ce=Ee.prefixCls,Re=Ee.children,Te=Ee.component,Ue=Ee.cellComponent,Ze=Ee.className,ot=Ee.expanded,st=Ee.colSpan,ht=Ee.isEmpty,Pt=ue(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ot=Pt.scrollbarSize,At=Pt.fixHeader,tn=Pt.fixColumn,gn=Pt.componentWidth,ln=Pt.horizonScroll,Wn=Re;return(ht?ln&&gn:tn)&&(Wn=ie.createElement("div",{style:{width:gn-(At?Ot:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Wn)),ie.createElement(Te,{className:Ze,style:{display:ot?null:"none"}},ie.createElement(Yt,{component:Ue,prefixCls:Ce,colSpan:st},Wn))}var Tn=er;function Un(Ee,Ce,Re,Te){var Ue=ue(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ze=Ue.flattenColumns,ot=Ue.expandableType,st=Ue.expandedKeys,ht=Ue.childrenColumnName,Pt=Ue.onTriggerExpand,Ot=Ue.rowExpandable,At=Ue.onRow,tn=Ue.expandRowByClick,gn=Ue.rowClassName,ln=ot==="nest",Wn=ot==="row"&&(!Ot||Ot(Ee)),Fn=Wn||ln,Yn=st&&st.has(Ce),zn=ht&&Ee&&Ee[ht],rr=yt(Pt),Ur=At==null?void 0:At(Ee,Re),Xr=Ur==null?void 0:Ur.onClick,Ar=function(Dr){tn&&Fn&&Pt(Ee,Dr);for(var hr=arguments.length,Xn=new Array(hr>1?hr-1:0),Er=1;Er<hr;Er++)Xn[Er-1]=arguments[Er];Xr==null||Xr.apply(void 0,[Dr].concat(Xn))},fo;typeof gn=="string"?fo=gn:typeof gn=="function"&&(fo=gn(Ee,Re,Te));var io=kn(Ze);return(0,Fe.Z)((0,Fe.Z)({},Ue),{},{columnsKey:io,nestExpandable:ln,expanded:Yn,hasNestChildren:zn,record:Ee,onTriggerExpand:rr,rowSupportExpand:Wn,expandable:Fn,rowProps:(0,Fe.Z)((0,Fe.Z)({},Ur),{},{className:Xe()(fo,Ur==null?void 0:Ur.className),onClick:Ar})})}function sr(Ee,Ce,Re,Te,Ue){var Ze=Ee.record,ot=Ee.prefixCls,st=Ee.columnsKey,ht=Ee.fixedInfoList,Pt=Ee.expandIconColumnIndex,Ot=Ee.nestExpandable,At=Ee.indentSize,tn=Ee.expandIcon,gn=Ee.expanded,ln=Ee.hasNestChildren,Wn=Ee.onTriggerExpand,Fn=st[Re],Yn=ht[Re],zn;Re===(Pt||0)&&Ot&&(zn=ie.createElement(ie.Fragment,null,ie.createElement("span",{style:{paddingLeft:"".concat(At*Te,"px")},className:"".concat(ot,"-row-indent indent-level-").concat(Te)}),tn({prefixCls:ot,expanded:gn,expandable:ln,record:Ze,onExpand:Wn})));var rr;return Ce.onCell&&(rr=Ce.onCell(Ze,Ue)),{key:Fn,fixedInfo:Yn,appendCellNode:zn,additionalCellProps:rr||{}}}function Zr(Ee){var Ce=Ee.className,Re=Ee.style,Te=Ee.record,Ue=Ee.index,Ze=Ee.renderIndex,ot=Ee.rowKey,st=Ee.indent,ht=st===void 0?0:st,Pt=Ee.rowComponent,Ot=Ee.cellComponent,At=Ee.scopeCellComponent,tn=Un(Te,ot,Ue,ht),gn=tn.prefixCls,ln=tn.flattenColumns,Wn=tn.expandedRowClassName,Fn=tn.expandedRowRender,Yn=tn.rowProps,zn=tn.expanded,rr=tn.rowSupportExpand,Ur=ie.useState(!1),Xr=(0,Pe.Z)(Ur,2),Ar=Xr[0],fo=Xr[1];ie.useEffect(function(){zn&&fo(!0)},[zn]);var io=ie.createElement(Pt,(0,se.Z)({},Yn,{"data-row-key":ot,className:Xe()(Ce,"".concat(gn,"-row"),"".concat(gn,"-row-level-").concat(ht),Yn==null?void 0:Yn.className),style:(0,Fe.Z)((0,Fe.Z)({},Re),Yn==null?void 0:Yn.style)}),ln.map(function(Xn,Er){var oo=Xn.render,Uo=Xn.dataIndex,Po=Xn.className,to=sr(tn,Xn,Er,ht,Ue),Go=to.key,Vo=to.fixedInfo,ar=to.appendCellNode,Rr=to.additionalCellProps;return ie.createElement(Yt,(0,se.Z)({className:Po,ellipsis:Xn.ellipsis,align:Xn.align,scope:Xn.rowScope,component:Xn.rowScope?At:Ot,prefixCls:gn,key:Go,record:Te,index:Ue,renderIndex:Ze,dataIndex:Uo,render:oo,shouldCellUpdate:Xn.shouldCellUpdate},Vo,{appendNode:ar,additionalProps:Rr}))})),cr;if(rr&&(Ar||zn)){var Dr=Fn(Te,Ue,ht+1,zn),hr=Wn&&Wn(Te,Ue,ht);cr=ie.createElement(Tn,{expanded:zn,className:Xe()("".concat(gn,"-expanded-row"),"".concat(gn,"-expanded-row-level-").concat(ht+1),hr),prefixCls:gn,component:Pt,cellComponent:Ot,colSpan:ln.length,isEmpty:!1},Dr)}return ie.createElement(ie.Fragment,null,io,cr)}Zr.displayName="BodyRow";var xr=ee(Zr);function Gi(Ee){var Ce=Ee.columnKey,Re=Ee.onColumnResize,Te=ie.useRef();return ie.useEffect(function(){Te.current&&Re(Ce,Te.current.offsetWidth)},[]),ie.createElement(po.Z,{data:Ce},ie.createElement("td",{ref:Te,style:{padding:0,border:0,height:0}},ie.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Xo(Ee){var Ce=Ee.prefixCls,Re=Ee.columnsKey,Te=Ee.onColumnResize;return ie.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},ie.createElement(po.Z.Collection,{onBatchResize:function(Ze){Ze.forEach(function(ot){var st=ot.data,ht=ot.size;Te(st,ht.offsetWidth)})}},Re.map(function(Ue){return ie.createElement(Gi,{key:Ue,columnKey:Ue,onColumnResize:Te})})))}function br(Ee){var Ce=Ee.data,Re=Ee.measureColumnWidth,Te=ue(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ue=Te.prefixCls,Ze=Te.getComponent,ot=Te.onColumnResize,st=Te.flattenColumns,ht=Te.getRowKey,Pt=Te.expandedKeys,Ot=Te.childrenColumnName,At=Te.emptyNode,tn=ur(Ce,Ot,Pt,ht),gn=ie.useRef({renderWithProps:!1}),ln=Ze(["body","wrapper"],"tbody"),Wn=Ze(["body","row"],"tr"),Fn=Ze(["body","cell"],"td"),Yn=Ze(["body","cell"],"th"),zn;Ce.length?zn=tn.map(function(Ur,Xr){var Ar=Ur.record,fo=Ur.indent,io=Ur.index,cr=ht(Ar,Xr);return ie.createElement(xr,{key:cr,rowKey:cr,record:Ar,index:Xr,renderIndex:io,rowComponent:Wn,cellComponent:Fn,scopeCellComponent:Yn,getRowKey:ht,indent:fo})}):zn=ie.createElement(Tn,{expanded:!0,className:"".concat(Ue,"-placeholder"),prefixCls:Ue,component:Wn,cellComponent:Fn,colSpan:st.length,isEmpty:!0},At);var rr=kn(st);return ie.createElement(xn.Provider,{value:gn.current},ie.createElement(ln,{className:"".concat(Ue,"-tbody")},Re&&ie.createElement(Xo,{prefixCls:Ue,columnsKey:rr,onColumnResize:ot}),zn))}br.displayName="Body";var _o=ee(br),wi=["expandable"],ti="RC_TABLE_INTERNAL_COL_DEFINE";function hi(Ee){var Ce=Ee.expandable,Re=(0,fn.Z)(Ee,wi),Te;return"expandable"in Ee?Te=(0,Fe.Z)((0,Fe.Z)({},Re),Ce):Te=Re,Te.showExpandColumn===!1&&(Te.expandIconColumnIndex=-1),Te}var pn=["columnType"];function Ya(Ee){for(var Ce=Ee.colWidths,Re=Ee.columns,Te=Ee.columCount,Ue=[],Ze=Te||Re.length,ot=!1,st=Ze-1;st>=0;st-=1){var ht=Ce[st],Pt=Re&&Re[st],Ot=Pt&&Pt[ti];if(ht||Ot||ot){var At=Ot||{},tn=At.columnType,gn=(0,fn.Z)(At,pn);Ue.unshift(ie.createElement("col",(0,se.Z)({key:st,style:{width:ht}},gn))),ot=!0}}return ie.createElement("colgroup",null,Ue)}var Ti=Ya,Bo=te(74902),Aa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Bn(Ee,Ce){return(0,ie.useMemo)(function(){for(var Re=[],Te=0;Te<Ce;Te+=1){var Ue=Ee[Te];if(Ue!==void 0)Re[Te]=Ue;else return null}return Re},[Ee.join("_"),Ce])}var Sr=ie.forwardRef(function(Ee,Ce){var Re=Ee.className,Te=Ee.noData,Ue=Ee.columns,Ze=Ee.flattenColumns,ot=Ee.colWidths,st=Ee.columCount,ht=Ee.stickyOffsets,Pt=Ee.direction,Ot=Ee.fixHeader,At=Ee.stickyTopOffset,tn=Ee.stickyBottomOffset,gn=Ee.stickyClassName,ln=Ee.onScroll,Wn=Ee.maxContentScroll,Fn=Ee.children,Yn=(0,fn.Z)(Ee,Aa),zn=ue(ce,["prefixCls","scrollbarSize","isSticky"]),rr=zn.prefixCls,Ur=zn.scrollbarSize,Xr=zn.isSticky,Ar=Xr&&!Ot?0:Ur,fo=ie.useRef(null),io=ie.useCallback(function(Po){qr(Ce,Po),qr(fo,Po)},[]);ie.useEffect(function(){var Po;function to(Go){var Vo=Go,ar=Vo.currentTarget,Rr=Vo.deltaX;Rr&&(ln({currentTarget:ar,scrollLeft:ar.scrollLeft+Rr}),Go.preventDefault())}return(Po=fo.current)===null||Po===void 0||Po.addEventListener("wheel",to),function(){var Go;(Go=fo.current)===null||Go===void 0||Go.removeEventListener("wheel",to)}},[]);var cr=ie.useMemo(function(){return Ze.every(function(Po){return Po.width})},[Ze]),Dr=Ze[Ze.length-1],hr={fixed:Dr?Dr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(rr,"-cell-scrollbar")}}},Xn=(0,ie.useMemo)(function(){return Ar?[].concat((0,Bo.Z)(Ue),[hr]):Ue},[Ar,Ue]),Er=(0,ie.useMemo)(function(){return Ar?[].concat((0,Bo.Z)(Ze),[hr]):Ze},[Ar,Ze]),oo=(0,ie.useMemo)(function(){var Po=ht.right,to=ht.left;return(0,Fe.Z)((0,Fe.Z)({},ht),{},{left:Pt==="rtl"?[].concat((0,Bo.Z)(to.map(function(Go){return Go+Ar})),[0]):to,right:Pt==="rtl"?Po:[].concat((0,Bo.Z)(Po.map(function(Go){return Go+Ar})),[0]),isSticky:Xr})},[Ar,ht,Xr]),Uo=Bn(ot,st);return ie.createElement("div",{style:(0,Fe.Z)({overflow:"hidden"},Xr?{top:At,bottom:tn}:{}),ref:io,className:Xe()(Re,(0,Me.Z)({},gn,!!gn))},ie.createElement("table",{style:{tableLayout:"fixed",visibility:Te||Uo?null:"hidden"}},(!Te||!Wn||cr)&&ie.createElement(Ti,{colWidths:Uo?[].concat((0,Bo.Z)(Uo),[Ar]):[],columCount:st+1,columns:Er}),Fn((0,Fe.Z)((0,Fe.Z)({},Yn),{},{stickyOffsets:oo,columns:Xn,flattenColumns:Er}))))});Sr.displayName="FixedHolder";var Kr=ie.memo(Sr);function lr(Ee){var Ce=Ee.cells,Re=Ee.stickyOffsets,Te=Ee.flattenColumns,Ue=Ee.rowComponent,Ze=Ee.cellComponent,ot=Ee.tdCellComponent,st=Ee.onHeaderRow,ht=Ee.index,Pt=ue(ce,["prefixCls","direction"]),Ot=Pt.prefixCls,At=Pt.direction,tn;st&&(tn=st(Ce.map(function(ln){return ln.column}),ht));var gn=kn(Ce.map(function(ln){return ln.column}));return ie.createElement(Ue,tn,Ce.map(function(ln,Wn){var Fn=ln.column,Yn=gt(ln.colStart,ln.colEnd,Te,Re,At,Fn),zn;return Fn&&Fn.onHeaderCell&&(zn=ln.column.onHeaderCell(Fn)),ie.createElement(Yt,(0,se.Z)({},ln,{scope:Fn.title?ln.colSpan>1?"colgroup":"col":null,ellipsis:Fn.ellipsis,align:Fn.align,component:Fn.title?Ze:ot,prefixCls:Ot,key:gn[Wn]},Yn,{additionalProps:zn,rowType:"header"}))}))}lr.displayName="HeaderRow";var ci=lr;function Li(Ee){var Ce=[];function Re(ot,st){var ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[ht]=Ce[ht]||[];var Pt=st,Ot=ot.filter(Boolean).map(function(At){var tn={key:At.key,className:At.className||"",children:At.title,column:At,colStart:Pt},gn=1,ln=At.children;return ln&&ln.length>0&&(gn=Re(ln,Pt,ht+1).reduce(function(Wn,Fn){return Wn+Fn},0),tn.hasSubColumns=!0),"colSpan"in At&&(gn=At.colSpan),"rowSpan"in At&&(tn.rowSpan=At.rowSpan),tn.colSpan=gn,tn.colEnd=tn.colStart+gn-1,Ce[ht].push(tn),Pt+=gn,gn});return Ot}Re(Ee,0);for(var Te=Ce.length,Ue=function(st){Ce[st].forEach(function(ht){!("rowSpan"in ht)&&!ht.hasSubColumns&&(ht.rowSpan=Te-st)})},Ze=0;Ze<Te;Ze+=1)Ue(Ze);return Ce}function ra(Ee){var Ce=Ee.stickyOffsets,Re=Ee.columns,Te=Ee.flattenColumns,Ue=Ee.onHeaderRow,Ze=ue(ce,["prefixCls","getComponent"]),ot=Ze.prefixCls,st=Ze.getComponent,ht=ie.useMemo(function(){return Li(Re)},[Re]),Pt=st(["header","wrapper"],"thead"),Ot=st(["header","row"],"tr"),At=st(["header","cell"],"th"),tn=st(["header","cell"],"td");return ie.createElement(Pt,{className:"".concat(ot,"-thead")},ht.map(function(gn,ln){var Wn=ie.createElement(ci,{key:ln,flattenColumns:Te,cells:gn,stickyOffsets:Ce,rowComponent:Ot,cellComponent:At,tdCellComponent:tn,onHeaderRow:Ue,index:ln});return Wn}))}var Oa=ee(ra);function $a(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=[];return ie.Children.forEach(Ee,function(Te){Te==null&&!Ce.keepEmpty||(Array.isArray(Te)?Re=Re.concat($a(Te)):(0,On.isFragment)(Te)&&Te.props?Re=Re.concat($a(Te.props.children,Ce)):Re.push(Te))}),Re}function ft(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?Ee*parseFloat(Ce)/100:null}function dt(Ee,Ce){return ie.useMemo(function(){if(Ce&&Ce>0){var Re=0,Te=0;Ee.forEach(function(Pt){var Ot=ft(Ce,Pt.width);Ot?Re+=Ot:Te+=1});var Ue=Ce-Re,Ze=Te,ot=Ue/Te,st=0,ht=Ee.map(function(Pt){var Ot=(0,Fe.Z)({},Pt),At=ft(Ce,Ot.width);if(At)Ot.width=At;else{var tn=Math.floor(ot);Ot.width=Ze===1?Ue:tn,Ue-=tn,Ze-=1}return st+=Ot.width,Ot});return[ht,st]}return[Ee,Ce]},[Ee,Ce])}var zt=["children"],qt=["fixed"];function Mn(Ee){return $a(Ee).filter(function(Ce){return ie.isValidElement(Ce)}).map(function(Ce){var Re=Ce.key,Te=Ce.props,Ue=Te.children,Ze=(0,fn.Z)(Te,zt),ot=(0,Fe.Z)({key:Re},Ze);return Ue&&(ot.children=Mn(Ue)),ot})}function Nr(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(Re){return Re&&(0,we.Z)(Re)==="object"}).reduce(function(Re,Te,Ue){var Ze=Te.fixed,ot=Ze===!0?"left":Ze,st="".concat(Ce,"-").concat(Ue),ht=Te.children;return ht&&ht.length>0?[].concat((0,Bo.Z)(Re),(0,Bo.Z)(Nr(ht,st).map(function(Pt){return(0,Fe.Z)({fixed:ot},Pt)}))):[].concat((0,Bo.Z)(Re),[(0,Fe.Z)((0,Fe.Z)({key:st},Te),{},{fixed:ot})])},[])}function Tr(Ee){for(var Ce=!0,Re=0;Re<Ee.length;Re+=1){var Te=Ee[Re];if(Ce&&Te.fixed!=="left")Ce=!1;else if(!Ce&&Te.fixed==="left"){warning(!1,"Index ".concat(Re-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ue=!0,Ze=Ee.length-1;Ze>=0;Ze-=1){var ot=Ee[Ze];if(Ue&&ot.fixed!=="right")Ue=!1;else if(!Ue&&ot.fixed==="right"){warning(!1,"Index ".concat(Ze+1," of `columns` missing `fixed='right'` prop."));break}}}function Wr(Ee){return Ee.map(function(Ce){var Re=Ce.fixed,Te=(0,fn.Z)(Ce,qt),Ue=Re;return Re==="left"?Ue="right":Re==="right"&&(Ue="left"),(0,Fe.Z)({fixed:Ue},Te)})}function uo(Ee,Ce){var Re=Ee.prefixCls,Te=Ee.columns,Ue=Ee.children,Ze=Ee.expandable,ot=Ee.expandedKeys,st=Ee.columnTitle,ht=Ee.getRowKey,Pt=Ee.onTriggerExpand,Ot=Ee.expandIcon,At=Ee.rowExpandable,tn=Ee.expandIconColumnIndex,gn=Ee.direction,ln=Ee.expandRowByClick,Wn=Ee.columnWidth,Fn=Ee.fixed,Yn=Ee.scrollWidth,zn=ie.useMemo(function(){return Te||Mn(Ue)},[Te,Ue]),rr=ie.useMemo(function(){if(Ze){var Dr,hr=zn.slice();if(!hr.includes(z)){var Xn=tn||0;Xn>=0&&hr.splice(Xn,0,z)}var Er=hr.indexOf(z);hr=hr.filter(function(to,Go){return to!==z||Go===Er});var oo=zn[Er],Uo;(Fn==="left"||Fn)&&!tn?Uo="left":(Fn==="right"||Fn)&&tn===zn.length?Uo="right":Uo=oo?oo.fixed:null;var Po=(Dr={},(0,Me.Z)(Dr,ti,{className:"".concat(Re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Me.Z)(Dr,"title",st),(0,Me.Z)(Dr,"fixed",Uo),(0,Me.Z)(Dr,"className","".concat(Re,"-row-expand-icon-cell")),(0,Me.Z)(Dr,"width",Wn),(0,Me.Z)(Dr,"render",function(Go,Vo,ar){var Rr=ht(Vo,ar),Ko=ot.has(Rr),ii=At?At(Vo):!0,Gr=Ot({prefixCls:Re,expanded:Ko,expandable:ii,record:Vo,onExpand:Pt});return ln?ie.createElement("span",{onClick:function(Pi){return Pi.stopPropagation()}},Gr):Gr}),Dr);return hr.map(function(to){return to===z?Po:to})}return zn.filter(function(to){return to!==z})},[Ze,zn,ht,ot,Ot,gn]),Ur=ie.useMemo(function(){var Dr=rr;return Ce&&(Dr=Ce(Dr)),Dr.length||(Dr=[{render:function(){return null}}]),Dr},[Ce,rr,gn]),Xr=ie.useMemo(function(){return gn==="rtl"?Wr(Nr(Ur)):Nr(Ur)},[Ur,gn,Yn]),Ar=dt(Xr,Yn),fo=(0,Pe.Z)(Ar,2),io=fo[0],cr=fo[1];return[Ur,io,cr]}var Mo=uo;function Qo(Ee){var Ce,Re=Ee.prefixCls,Te=Ee.record,Ue=Ee.onExpand,Ze=Ee.expanded,ot=Ee.expandable,st="".concat(Re,"-row-expand-icon");if(!ot)return ie.createElement("span",{className:Xe()(st,"".concat(Re,"-row-spaced"))});var ht=function(Ot){Ue(Te,Ot),Ot.stopPropagation()};return ie.createElement("span",{className:Xe()(st,(Ce={},(0,Me.Z)(Ce,"".concat(Re,"-row-expanded"),Ze),(0,Me.Z)(Ce,"".concat(Re,"-row-collapsed"),!Ze),Ce)),onClick:ht})}function mi(Ee,Ce,Re){var Te=[];function Ue(Ze){(Ze||[]).forEach(function(ot,st){Te.push(Ce(ot,st)),Ue(ot[Re])})}return Ue(Ee),Te}function Fi(Ee,Ce,Re){var Te=hi(Ee),Ue=Te.expandIcon,Ze=Te.expandedRowKeys,ot=Te.defaultExpandedRowKeys,st=Te.defaultExpandAllRows,ht=Te.expandedRowRender,Pt=Te.onExpand,Ot=Te.onExpandedRowsChange,At=Te.childrenColumnName,tn=Ue||Qo,gn=At||"children",ln=ie.useMemo(function(){return ht?"row":Ee.expandable&&Ee.internalHooks===fe&&Ee.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Xr){return Xr&&(0,we.Z)(Xr)==="object"&&Xr[gn]})?"nest":!1},[!!ht,Ce]),Wn=ie.useState(function(){return ot||(st?mi(Ce,Re,gn):[])}),Fn=(0,Pe.Z)(Wn,2),Yn=Fn[0],zn=Fn[1],rr=ie.useMemo(function(){return new Set(Ze||Yn||[])},[Ze,Yn]),Ur=ie.useCallback(function(Xr){var Ar=Re(Xr,Ce.indexOf(Xr)),fo,io=rr.has(Ar);io?(rr.delete(Ar),fo=(0,Bo.Z)(rr)):fo=[].concat((0,Bo.Z)(rr),[Ar]),zn(fo),Pt&&Pt(!io,Xr),Ot&&Ot(fo)},[Re,rr,Ce,Pt,Ot]);return[Te,ln,rr,tn,gn,Ur]}function oa(Ee,Ce,Re,Te){var Ue=Ee.map(function(Ze,ot){return gt(ot,ot,Ee,Ce,Re,Te==null?void 0:Te[ot])});return mt(function(){return Ue},[Ue],function(Ze,ot){return!xt(Ze,ot)})}function vo(Ee){var Ce=(0,ie.useRef)(Ee),Re=(0,ie.useState)({}),Te=(0,Pe.Z)(Re,2),Ue=Te[1],Ze=(0,ie.useRef)(null),ot=(0,ie.useRef)([]);function st(ht){ot.current.push(ht);var Pt=Promise.resolve();Ze.current=Pt,Pt.then(function(){if(Ze.current===Pt){var Ot=ot.current,At=Ce.current;ot.current=[],Ot.forEach(function(tn){Ce.current=tn(Ce.current)}),Ze.current=null,At!==Ce.current&&Ue({})}})}return(0,ie.useEffect)(function(){return function(){Ze.current=null}},[]),[Ce.current,st]}function yi(Ee){var Ce=(0,ie.useRef)(Ee||null),Re=(0,ie.useRef)();function Te(){window.clearTimeout(Re.current)}function Ue(ot){Ce.current=ot,Te(),Re.current=window.setTimeout(function(){Ce.current=null,Re.current=void 0},100)}function Ze(){return Ce.current}return(0,ie.useEffect)(function(){return Te},[]),[Ue,Ze]}function Mi(){var Ee=ie.useState(-1),Ce=(0,Pe.Z)(Ee,2),Re=Ce[0],Te=Ce[1],Ue=ie.useState(-1),Ze=(0,Pe.Z)(Ue,2),ot=Ze[0],st=Ze[1],ht=ie.useCallback(function(Pt,Ot){Te(Pt),st(Ot)},[]);return[Re,ot,ht]}var pi=Nn()?window:null;function Pa(Ee,Ce){var Re=(0,we.Z)(Ee)==="object"?Ee:{},Te=Re.offsetHeader,Ue=Te===void 0?0:Te,Ze=Re.offsetSummary,ot=Ze===void 0?0:Ze,st=Re.offsetScroll,ht=st===void 0?0:st,Pt=Re.getContainer,Ot=Pt===void 0?function(){return pi}:Pt,At=Ot()||pi;return ie.useMemo(function(){var tn=!!Ee;return{isSticky:tn,stickyClassName:tn?"".concat(Ce,"-sticky-holder"):"",offsetHeader:Ue,offsetSummary:ot,offsetScroll:ht,container:At}},[ht,Ue,ot,Ce,At])}function St(Ee,Ce,Re){var Te=(0,ie.useMemo)(function(){for(var Ue=[],Ze=[],ot=0,st=0,ht=0;ht<Ce;ht+=1)if(Re==="rtl"){Ze[ht]=st,st+=Ee[ht]||0;var Pt=Ce-ht-1;Ue[Pt]=ot,ot+=Ee[Pt]||0}else{Ue[ht]=ot,ot+=Ee[ht]||0;var Ot=Ce-ht-1;Ze[Ot]=st,st+=Ee[Ot]||0}return{left:Ue,right:Ze}},[Ee,Ce,Re]);return Te}var Lt=St;function jt(Ee){var Ce=Ee.className,Re=Ee.children;return ie.createElement("div",{className:Ce},Re)}var $e=jt;function Wt(Ee,Ce,Re,Te){var Ue=de.unstable_batchedUpdates?function(ot){de.unstable_batchedUpdates(Re,ot)}:Re;return Ee!=null&&Ee.addEventListener&&Ee.addEventListener(Ce,Ue,Te),{remove:function(){Ee!=null&&Ee.removeEventListener&&Ee.removeEventListener(Ce,Ue,Te)}}}var bn=/margin|padding|width|height|max|min|offset/,Rn={left:!0,top:!0},Nt={cssFloat:1,styleFloat:1,float:1};function $t(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function It(Ee,Ce,Re){if(Ce=Ce.toLowerCase(),Re==="auto"){if(Ce==="height")return Ee.offsetHeight;if(Ce==="width")return Ee.offsetWidth}return Ce in Rn||(Rn[Ce]=bn.test(Ce)),Rn[Ce]?parseFloat(Re)||0:Re}function Ft(Ee,Ce){var Re=arguments.length,Te=$t(Ee);return Ce=Nt[Ce]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":Ce,Re===1?Te:It(Ee,Ce,Te[Ce]||Ee.style[Ce])}function Tt(Ee,Ce,Re){var Te=arguments.length;if(Ce=Nt[Ce]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":Ce,Te===3)return typeof Re=="number"&&bn.test(Ce)&&(Re="".concat(Re,"px")),Ee.style[Ce]=Re,Re;for(var Ue in Ce)Ce.hasOwnProperty(Ue)&&Tt(Ee,Ue,Ce[Ue]);return $t(Ee)}function Ht(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function Kt(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function jn(){var Ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ce=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ee,height:Ce}}function tr(){var Ee=document.documentElement.clientWidth,Ce=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:Ce}}function Pr(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Cn(Ee){var Ce=Ee.getBoundingClientRect(),Re=document.documentElement;return{left:Ce.left+(window.pageXOffset||Re.scrollLeft)-(Re.clientLeft||document.body.clientLeft||0),top:Ce.top+(window.pageYOffset||Re.scrollTop)-(Re.clientTop||document.body.clientTop||0)}}var dr=function(Ce,Re){var Te,Ue,Ze=Ce.scrollBodyRef,ot=Ce.onScroll,st=Ce.offsetScroll,ht=Ce.container,Pt=ue(ce,"prefixCls"),Ot=((Te=Ze.current)===null||Te===void 0?void 0:Te.scrollWidth)||0,At=((Ue=Ze.current)===null||Ue===void 0?void 0:Ue.clientWidth)||0,tn=Ot&&At*(At/Ot),gn=ie.useRef(),ln=vo({scrollLeft:0,isHiddenScrollBar:!1}),Wn=(0,Pe.Z)(ln,2),Fn=Wn[0],Yn=Wn[1],zn=ie.useRef({delta:0,x:0}),rr=ie.useState(!1),Ur=(0,Pe.Z)(rr,2),Xr=Ur[0],Ar=Ur[1],fo=function(){Ar(!1)},io=function(Er){Er.persist(),zn.current.delta=Er.pageX-Fn.scrollLeft,zn.current.x=0,Ar(!0),Er.preventDefault()},cr=function(Er){var oo,Uo=Er||((oo=window)===null||oo===void 0?void 0:oo.event),Po=Uo.buttons;if(!Xr||Po===0){Xr&&Ar(!1);return}var to=zn.current.x+Er.pageX-zn.current.x-zn.current.delta;to<=0&&(to=0),to+tn>=At&&(to=At-tn),ot({scrollLeft:to/At*(Ot+2)}),zn.current.x=Er.pageX},Dr=function(){if(Ze.current){var Er=Cn(Ze.current).top,oo=Er+Ze.current.offsetHeight,Uo=ht===window?document.documentElement.scrollTop+window.innerHeight:Cn(ht).top+ht.clientHeight;oo-be()<=Uo||Er>=Uo-st?Yn(function(Po){return(0,Fe.Z)((0,Fe.Z)({},Po),{},{isHiddenScrollBar:!0})}):Yn(function(Po){return(0,Fe.Z)((0,Fe.Z)({},Po),{},{isHiddenScrollBar:!1})})}},hr=function(Er){Yn(function(oo){return(0,Fe.Z)((0,Fe.Z)({},oo),{},{scrollLeft:Er/Ot*At||0})})};return ie.useImperativeHandle(Re,function(){return{setScrollLeft:hr}}),ie.useEffect(function(){var Xn=Wt(document.body,"mouseup",fo,!1),Er=Wt(document.body,"mousemove",cr,!1);return Dr(),function(){Xn.remove(),Er.remove()}},[tn,Xr]),ie.useEffect(function(){var Xn=Wt(ht,"scroll",Dr,!1),Er=Wt(window,"resize",Dr,!1);return function(){Xn.remove(),Er.remove()}},[ht]),ie.useEffect(function(){Fn.isHiddenScrollBar||Yn(function(Xn){var Er=Ze.current;return Er?(0,Fe.Z)((0,Fe.Z)({},Xn),{},{scrollLeft:Er.scrollLeft/Er.scrollWidth*Er.clientWidth}):Xn})},[Fn.isHiddenScrollBar]),Ot<=At||!tn||Fn.isHiddenScrollBar?null:ie.createElement("div",{style:{height:be(),width:At,bottom:st},className:"".concat(Pt,"-sticky-scroll")},ie.createElement("div",{onMouseDown:io,ref:gn,className:Xe()("".concat(Pt,"-sticky-scroll-bar"),(0,Me.Z)({},"".concat(Pt,"-sticky-scroll-bar-active"),Xr)),style:{width:"".concat(tn,"px"),transform:"translate3d(".concat(Fn.scrollLeft,"px, 0, 0)")}}))},ze=ie.forwardRef(dr);function ke(Ee){return null}var qe=ke;function bt(Ee){return null}var kt=bt,Ut="rc-table",cn=[],an={};function mn(){return"No Data"}function vn(Ee){var Ce,Re=(0,Fe.Z)({rowKey:"key",prefixCls:Ut,emptyText:mn},Ee),Te=Re.prefixCls,Ue=Re.className,Ze=Re.rowClassName,ot=Re.style,st=Re.data,ht=Re.rowKey,Pt=Re.scroll,Ot=Re.tableLayout,At=Re.direction,tn=Re.title,gn=Re.footer,ln=Re.summary,Wn=Re.caption,Fn=Re.id,Yn=Re.showHeader,zn=Re.components,rr=Re.emptyText,Ur=Re.onRow,Xr=Re.onHeaderRow,Ar=Re.internalHooks,fo=Re.transformColumns,io=Re.internalRefs,cr=Re.tailor,Dr=Re.sticky,hr=st||cn,Xn=!!hr.length,Er=Ar===fe,oo=ie.useCallback(function(na,Na){return Jt(zn,na)||Na},[zn]),Uo=ie.useMemo(function(){return typeof ht=="function"?ht:function(na){var Na=na&&na[ht];return Na}},[ht]),Po=oo(["body"]),to=Mi(),Go=(0,Pe.Z)(to,3),Vo=Go[0],ar=Go[1],Rr=Go[2],Ko=Fi(Re,hr,Uo),ii=(0,Pe.Z)(Ko,6),Gr=ii[0],Ra=ii[1],Pi=ii[2],ba=ii[3],ua=ii[4],Ns=ii[5],ho=Pt==null?void 0:Pt.x,lo=ie.useState(0),ao=(0,Pe.Z)(lo,2),Qr=ao[0],Hi=ao[1],Jr=Mo((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Re),Gr),{},{expandable:!!Gr.expandedRowRender,columnTitle:Gr.columnTitle,expandedKeys:Pi,getRowKey:Uo,onTriggerExpand:Ns,expandIcon:ba,expandIconColumnIndex:Gr.expandIconColumnIndex,direction:At,scrollWidth:Er&&cr&&typeof ho=="number"?ho:null}),Er?fo:null),No=(0,Pe.Z)(Jr,3),Ri=No[0],Ei=No[1],Ss=No[2],us=Ss!=null?Ss:ho,tl=ie.useMemo(function(){return{columns:Ri,flattenColumns:Ei}},[Ri,Ei]),Qa=ie.useRef(),Xs=ie.useRef(),Ja=ie.useRef(),Ts=ie.useRef(),hl=ie.useRef(),Yi=ie.useState(!1),ta=(0,Pe.Z)(Yi,2),ka=ta[0],ts=ta[1],ns=ie.useState(!1),fi=(0,Pe.Z)(ns,2),Ls=fi[0],ys=fi[1],$s=vo(new Map),ol=(0,Pe.Z)($s,2),nl=ol[0],vl=ol[1],ll=kn(Ei),Qs=ll.map(function(na){return nl.get(na)}),Os=ie.useMemo(function(){return Qs},[Qs.join("_")]),xs=Lt(Os,Ei.length,At),rs=Pt&&nr(Pt.y),ja=Pt&&nr(us)||!!Gr.fixed,il=ja&&Ei.some(function(na){var Na=na.fixed;return Na}),ml=ie.useRef(),dl=Pa(Dr,Te),al=dl.isSticky,Sl=dl.offsetHeader,Pl=dl.offsetSummary,Ni=dl.offsetScroll,La=dl.stickyClassName,fs=dl.container,za=ie.useMemo(function(){return ln==null?void 0:ln(hr)},[ln,hr]),_s=(rs||al)&&ie.isValidElement(za)&&za.type===rt&&za.props.fixed,Is,Bs,cl;rs&&(Bs={overflowY:"scroll",maxHeight:Pt.y}),ja&&(Is={overflowX:"auto"},rs||(Bs={overflowY:"hidden"}),cl={width:us===!0?"auto":us,minWidth:"100%"});var Rl=ie.useCallback(function(na,Na){co(Qa.current)&&vl(function(Js){if(Js.get(na)!==Na){var gl=new Map(Js);return gl.set(na,Na),gl}return Js})},[]),Yl=yi(null),Nl=(0,Pe.Z)(Yl,2),Xl=Nl[0],Tl=Nl[1];function yl(na,Na){Na&&(typeof Na=="function"?Na(na):Na.scrollLeft!==na&&(Na.scrollLeft=na,Na.scrollLeft!==na&&setTimeout(function(){Na.scrollLeft=na},0)))}var pl=yt(function(na){var Na=na.currentTarget,Js=na.scrollLeft,gl=At==="rtl",fl=typeof Js=="number"?Js:Na.scrollLeft,Vl=Na||an;if(!Tl()||Tl()===Vl){var xl;Xl(Vl),yl(fl,Xs.current),yl(fl,Ja.current),yl(fl,hl.current),yl(fl,(xl=ml.current)===null||xl===void 0?void 0:xl.setScrollLeft)}var Ml=Na||Xs.current;if(Ml){var Al=Ml.scrollWidth,Dl=Ml.clientWidth;if(Al===Dl){ts(!1),ys(!1);return}gl?(ts(-fl<Al-Dl),ys(-fl>0)):(ts(fl>0),ys(fl<Al-Dl))}}),Ol=function(){ja&&Ja.current?pl({currentTarget:Ja.current}):(ts(!1),ys(!1))},Ql=function(Na){var Js=Na.width;Js!==Qr&&(Ol(),Hi(Qa.current?Qa.current.offsetWidth:Js))},Il=ie.useRef(!1);ie.useEffect(function(){Il.current&&Ol()},[ja,st,Ri.length]),ie.useEffect(function(){Il.current=!0},[]);var Jl=ie.useState(0),Bl=(0,Pe.Z)(Jl,2),_l=Bl[0],Fl=Bl[1],ql=ie.useState(!0),kl=(0,Pe.Z)(ql,2),jl=kl[0],ec=kl[1];ie.useEffect(function(){(!cr||!Er)&&(Ja.current instanceof Element?Fl(Ne(Ja.current).width):Fl(Ne(Ts.current).width)),ec(ge("position","sticky"))},[]),ie.useEffect(function(){Er&&io&&(io.body.current=Ja.current)});var tc=ie.useCallback(function(na){return ie.createElement(ie.Fragment,null,ie.createElement(Oa,na),_s==="top"&&ie.createElement(An,na,za))},[_s,za]),nc=ie.useCallback(function(na){return ie.createElement(An,na,za)},[za]),zl=oo(["table"],"table"),bl=ie.useMemo(function(){return Ot||(il?us==="max-content"?"auto":"fixed":rs||al||Ei.some(function(na){var Na=na.ellipsis;return Na})?"fixed":"auto")},[rs,il,Ei,Ot,al]),El,Cl={colWidths:Os,columCount:Ei.length,stickyOffsets:xs,onHeaderRow:Xr,fixHeader:rs,scroll:Pt},Ul=ie.useMemo(function(){return Xn?null:typeof rr=="function"?rr():rr},[Xn,rr]),Hl=ie.createElement(_o,{data:hr,measureColumnWidth:rs||ja||al}),$l=ie.createElement(Ti,{colWidths:Ei.map(function(na){var Na=na.width;return Na}),columns:Ei}),Gl=Wn!=null?ie.createElement("caption",{className:"".concat(Te,"-caption")},Wn):void 0,rc=_r(Re,{data:!0}),Zl=_r(Re,{aria:!0});if(rs||al){var wl;typeof Po=="function"?(wl=Po(hr,{scrollbarSize:_l,ref:Ja,onScroll:pl}),Cl.colWidths=Ei.map(function(na,Na){var Js=na.width,gl=Na===Ei.length-1?Js-_l:Js;return typeof gl=="number"&&!Number.isNaN(gl)?gl:0})):wl=ie.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},Is),Bs),onScroll:pl,ref:Ja,className:Xe()("".concat(Te,"-body"))},ie.createElement(zl,(0,se.Z)({style:(0,Fe.Z)((0,Fe.Z)({},cl),{},{tableLayout:bl})},Zl),Gl,$l,Hl,!_s&&za&&ie.createElement(An,{stickyOffsets:xs,flattenColumns:Ei,columns:Ri},za)));var Wl=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({noData:!hr.length,maxContentScroll:ja&&us==="max-content"},Cl),tl),{},{direction:At,stickyClassName:La,onScroll:pl});El=ie.createElement(ie.Fragment,null,Yn!==!1&&ie.createElement(Kr,(0,se.Z)({},Wl,{stickyTopOffset:Sl,className:"".concat(Te,"-header"),ref:Xs}),tc),wl,_s&&_s!=="top"&&ie.createElement(Kr,(0,se.Z)({},Wl,{stickyBottomOffset:Pl,className:"".concat(Te,"-summary"),ref:hl}),nc),al&&ie.createElement(ze,{ref:ml,offsetScroll:Ni,scrollBodyRef:Ja,onScroll:pl,container:fs}))}else El=ie.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},Is),Bs),className:Xe()("".concat(Te,"-content")),onScroll:pl,ref:Ja},ie.createElement(zl,(0,se.Z)({style:(0,Fe.Z)((0,Fe.Z)({},cl),{},{tableLayout:bl})},Zl),Gl,$l,Yn!==!1&&ie.createElement(Oa,(0,se.Z)({},Cl,tl)),Hl,za&&ie.createElement(An,{stickyOffsets:xs,flattenColumns:Ei,columns:Ri},za)));var Ll=ie.createElement("div",(0,se.Z)({className:Xe()(Te,Ue,(Ce={},(0,Me.Z)(Ce,"".concat(Te,"-rtl"),At==="rtl"),(0,Me.Z)(Ce,"".concat(Te,"-ping-left"),ka),(0,Me.Z)(Ce,"".concat(Te,"-ping-right"),Ls),(0,Me.Z)(Ce,"".concat(Te,"-layout-fixed"),Ot==="fixed"),(0,Me.Z)(Ce,"".concat(Te,"-fixed-header"),rs),(0,Me.Z)(Ce,"".concat(Te,"-fixed-column"),il),(0,Me.Z)(Ce,"".concat(Te,"-scroll-horizontal"),ja),(0,Me.Z)(Ce,"".concat(Te,"-has-fix-left"),Ei[0]&&Ei[0].fixed),(0,Me.Z)(Ce,"".concat(Te,"-has-fix-right"),Ei[Ei.length-1]&&Ei[Ei.length-1].fixed==="right"),Ce)),style:ot,id:Fn,ref:Qa},rc),tn&&ie.createElement($e,{className:"".concat(Te,"-title")},tn(hr)),ie.createElement("div",{ref:Ts,className:"".concat(Te,"-container")},El),gn&&ie.createElement($e,{className:"".concat(Te,"-footer")},gn(hr)));ja&&(Ll=ie.createElement(po.Z,{onResize:Ql},Ll));var Kl=oa(Ei,xs,At,Ri),oc=ie.useMemo(function(){return{scrollX:us,prefixCls:Te,getComponent:oo,scrollbarSize:_l,direction:At,fixedInfoList:Kl,isSticky:al,supportSticky:jl,componentWidth:Qr,fixHeader:rs,fixColumn:il,horizonScroll:ja,tableLayout:bl,rowClassName:Ze,expandedRowClassName:Gr.expandedRowClassName,expandIcon:ba,expandableType:Ra,expandRowByClick:Gr.expandRowByClick,expandedRowRender:Gr.expandedRowRender,onTriggerExpand:Ns,expandIconColumnIndex:Gr.expandIconColumnIndex,indentSize:Gr.indentSize,allColumnsFixedLeft:Ei.every(function(na){return na.fixed==="left"}),emptyNode:Ul,columns:Ri,flattenColumns:Ei,onColumnResize:Rl,hoverStartRow:Vo,hoverEndRow:ar,onHover:Rr,rowExpandable:Gr.rowExpandable,onRow:Ur,getRowKey:Uo,expandedKeys:Pi,childrenColumnName:ua}},[us,Te,oo,_l,At,Kl,al,jl,Qr,rs,il,ja,bl,Ze,Gr.expandedRowClassName,ba,Ra,Gr.expandRowByClick,Gr.expandedRowRender,Ns,Gr.expandIconColumnIndex,Gr.indentSize,Ul,Ri,Ei,Rl,Vo,ar,Rr,Gr.rowExpandable,Ur,Uo,Pi,ua]);return ie.createElement(ce.Provider,{value:oc},Ll)}function Zn(Ee){return x(vn,Ee)}var Hn=Zn();Hn.EXPAND_COLUMN=z,Hn.INTERNAL_HOOKS=fe,Hn.Column=qe,Hn.ColumnGroup=kt,Hn.Summary=Zt;var gr=Hn,Fr=te(73299),Cr=le(null),Or=le(null);function so(Ee,Ce,Re){var Te=Ce||1;return Re[Ee+Te]-(Re[Ee]||0)}function Co(Ee){var Ce=Ee.rowInfo,Re=Ee.column,Te=Ee.colIndex,Ue=Ee.indent,Ze=Ee.index,ot=Ee.renderIndex,st=Ee.record,ht=Ee.style,Pt=Ee.className,Ot=Ee.inverse,At=Ee.getHeight,tn=Re.render,gn=Re.dataIndex,ln=Re.className,Wn=Re.width,Fn=ue(Or,["columnsOffset"]),Yn=Fn.columnsOffset,zn=sr(Ce,Re,Te,Ue,Ze),rr=zn.key,Ur=zn.fixedInfo,Xr=zn.appendCellNode,Ar=zn.additionalCellProps,fo=Ar.style,io=Ar.colSpan,cr=io===void 0?1:io,Dr=Ar.rowSpan,hr=Dr===void 0?1:Dr,Xn=Te-1,Er=so(Xn,cr,Yn),oo=cr>1?Wn-Er:0,Uo=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},fo),ht),{},{flex:"0 0 ".concat(Er,"px"),width:"".concat(Er,"px"),marginRight:oo,pointerEvents:"auto"}),Po=ie.useMemo(function(){return Ot?hr<=1:cr===0||hr===0||hr>1},[hr,cr,Ot]);Po?Uo.visibility="hidden":Ot&&(Uo.height=At==null?void 0:At(hr));var to=Po?function(){return null}:tn,Go={};return(hr===0||cr===0)&&(Go.rowSpan=1,Go.colSpan=1),ie.createElement(Yt,(0,se.Z)({className:Xe()(ln,Pt),ellipsis:Re.ellipsis,align:Re.align,scope:Re.rowScope,component:"div",prefixCls:Ce.prefixCls,key:rr,record:st,index:Ze,renderIndex:ot,dataIndex:gn,render:to,shouldCellUpdate:Re.shouldCellUpdate},Ur,{appendNode:Xr,additionalProps:(0,Fe.Z)((0,Fe.Z)({},Ar),{},{style:Uo},Go)}))}var kr=Co,To=["data","index","className","rowKey","style","extra","getHeight"],mo=ie.forwardRef(function(Ee,Ce){var Re=Ee.data,Te=Ee.index,Ue=Ee.className,Ze=Ee.rowKey,ot=Ee.style,st=Ee.extra,ht=Ee.getHeight,Pt=(0,fn.Z)(Ee,To),Ot=Re.record,At=Re.indent,tn=Re.index,gn=ue(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ln=gn.scrollX,Wn=gn.flattenColumns,Fn=gn.prefixCls,Yn=gn.fixColumn,zn=gn.componentWidth,rr=Un(Ot,Ze,Te,At),Ur=rr.rowSupportExpand,Xr=rr.expanded,Ar=rr.rowProps,fo=rr.expandedRowRender,io=rr.expandedRowClassName,cr;if(Ur&&Xr){var Dr=fo(Ot,Te,At+1,Xr),hr=io==null?void 0:io(Ot,Te,At),Xn={};Yn&&(Xn={style:(0,Me.Z)({},"--virtual-width","".concat(zn,"px"))});var Er="".concat(Fn,"-expanded-row-cell");cr=ie.createElement("div",{className:Xe()("".concat(Fn,"-expanded-row"),"".concat(Fn,"-expanded-row-level-").concat(At+1),hr)},ie.createElement(Yt,{component:"div",prefixCls:Fn,className:Xe()(Er,(0,Me.Z)({},"".concat(Er,"-fixed"),Yn)),additionalProps:Xn},Dr))}var oo=(0,Fe.Z)((0,Fe.Z)({},ot),{},{width:ln});st&&(oo.position="absolute",oo.pointerEvents="none");var Uo=ie.createElement("div",(0,se.Z)({},Ar,Pt,{ref:Ur?null:Ce,className:Xe()(Ue,"".concat(Fn,"-row"),Ar==null?void 0:Ar.className,(0,Me.Z)({},"".concat(Fn,"-row-extra"),st)),style:(0,Fe.Z)((0,Fe.Z)({},oo),Ar==null?void 0:Ar.style)}),Wn.map(function(Po,to){return ie.createElement(kr,{key:to,rowInfo:rr,column:Po,colIndex:to,indent:At,index:Te,renderIndex:tn,record:Ot,inverse:st,getHeight:ht})}));return Ur?ie.createElement("div",{ref:Ce},Uo,cr):Uo}),Oo=ee(mo),ki=Oo,ma=ie.forwardRef(function(Ee,Ce){var Re=Ee.data,Te=Ee.onScroll,Ue=ue(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ze=Ue.flattenColumns,ot=Ue.onColumnResize,st=Ue.getRowKey,ht=Ue.expandedKeys,Pt=Ue.prefixCls,Ot=Ue.childrenColumnName,At=Ue.emptyNode,tn=Ue.scrollX,gn=ue(Cr),ln=gn.scrollY,Wn=gn.listItemHeight,Fn=ie.useRef(),Yn=ur(Re,Ot,ht,st),zn=ie.useMemo(function(){var cr=0;return Ze.map(function(Dr){var hr=Dr.width,Xn=Dr.key;return cr+=hr,[Xn,hr,cr]})},[Ze]),rr=ie.useMemo(function(){return zn.map(function(cr){return cr[2]})},[zn]);ie.useEffect(function(){zn.forEach(function(cr){var Dr=(0,Pe.Z)(cr,2),hr=Dr[0],Xn=Dr[1];ot(hr,Xn)})},[zn]),ie.useImperativeHandle(Ce,function(){var cr={};return Object.defineProperty(cr,"scrollLeft",{get:function(){var hr;return((hr=Fn.current)===null||hr===void 0?void 0:hr.getScrollInfo().x)||0},set:function(hr){var Xn;(Xn=Fn.current)===null||Xn===void 0||Xn.scrollTo({left:hr})}}),cr});var Ur=function(Dr,hr){var Xn,Er=(Xn=Yn[hr])===null||Xn===void 0?void 0:Xn.record,oo=Dr.onCell;if(oo){var Uo,Po=oo(Er,hr);return(Uo=Po==null?void 0:Po.rowSpan)!==null&&Uo!==void 0?Uo:1}return 1},Xr=function(Dr){var hr=Dr.start,Xn=Dr.end,Er=Dr.getSize,oo=Dr.offsetY;if(Xn<0)return null;for(var Uo=Ze.filter(function(ho){return Ur(ho,hr)===0}),Po=hr,to=function(lo){if(Uo=Uo.filter(function(ao){return Ur(ao,lo)===0}),!Uo.length)return Po=lo,"break"},Go=hr;Go>=0;Go-=1){var Vo=to(Go);if(Vo==="break")break}for(var ar=Ze.filter(function(ho){return Ur(ho,Xn)!==1}),Rr=Xn,Ko=function(lo){if(ar=ar.filter(function(ao){return Ur(ao,lo)!==1}),!ar.length)return Rr=Math.max(lo-1,Xn),"break"},ii=Xn;ii<Yn.length;ii+=1){var Gr=Ko(ii);if(Gr==="break")break}for(var Ra=[],Pi=function(lo){var ao=Yn[lo];if(!ao)return"continue";Ze.some(function(Qr){return Ur(Qr,lo)>1})&&Ra.push(lo)},ba=Po;ba<=Rr;ba+=1)var ua=Pi(ba);var Ns=Ra.map(function(ho){var lo=Yn[ho],ao=st(lo.record,ho),Qr=function(No){var Ri=ho+No-1,Ei=st(Yn[Ri].record,Ri),Ss=Er(ao,Ei);return Ss.bottom-Ss.top},Hi=Er(ao);return ie.createElement(ki,{key:ho,data:lo,rowKey:ao,index:ho,style:{top:-oo+Hi.top},extra:!0,getHeight:Qr})});return Ns},Ar=ie.useMemo(function(){return{columnsOffset:rr}},[rr]),fo="".concat(Pt,"-tbody"),io;return Yn.length?io=ie.createElement(Fr.Z,{fullHeight:!1,ref:Fn,className:Xe()(fo,"".concat(fo,"-virtual")),height:ln,itemHeight:Wn||24,data:Yn,itemKey:function(Dr){return st(Dr.record)},scrollWidth:tn,onVirtualScroll:function(Dr){var hr=Dr.x;Te({scrollLeft:hr})},extraRender:Xr},function(cr,Dr,hr){var Xn=st(cr.record,Dr);return ie.createElement(ki,(0,se.Z)({data:cr,rowKey:Xn,index:Dr},hr))}):io=ie.createElement("div",{className:Xe()("".concat(Pt,"-placeholder"))},ie.createElement(Yt,{component:"div",prefixCls:Pt},At)),ie.createElement(Or.Provider,{value:Ar},io)}),vi=ee(ma),ia=vi,ai=function(Ce,Re){var Te=Re.ref,Ue=Re.onScroll;return ie.createElement(ia,{ref:Te,data:Ce,onScroll:Ue})},Ea=100;function Ki(Ee){var Ce=Ee.columns,Re=Ee.scroll,Te=Ee.prefixCls,Ue=Te===void 0?Ut:Te,Ze=Ee.className,ot=Ee.listItemHeight,st=Re||{},ht=st.x,Pt=st.y;typeof ht!="number"&&(ht=((Ce||[]).length+1)*Ea),typeof Pt!="number"&&(Pt=500);var Ot=ie.useMemo(function(){return{scrollY:Pt,listItemHeight:ot}},[Pt,ot]);return ie.createElement(Cr.Provider,{value:Ot},ie.createElement(gr,(0,se.Z)({},Ee,{className:Xe()(Ze,"".concat(Ue,"-virtual")),scroll:(0,Fe.Z)((0,Fe.Z)({},Re),{},{x:ht}),components:{body:ai},columns:Ce,internalHooks:fe,tailor:!0})))}function aa(Ee){return x(Ki,Ee)}var Xi=aa(),Ga=null;function xa(Ee){return null}var da=xa;function Fo(Ee){return null}var ni=Fo,mr=te(10366),Ca=te(58375),Xa=te(53124),Oi=te(88258),ji=te(98675),wa=te(25378),Ii=te(24457),_i=te(34435),bi=te(57953),Za=te(46605);function Ai(Ee){return function(Re){let{prefixCls:Te,onExpand:Ue,record:Ze,expanded:ot,expandable:st}=Re;const ht=`${Te}-row-expand-icon`;return ie.createElement("button",{type:"button",onClick:Pt=>{Ue(Ze,Pt),Pt.stopPropagation()},className:Xe()(ht,{[`${ht}-spaced`]:!st,[`${ht}-expanded`]:st&&ot,[`${ht}-collapsed`]:st&&!ot}),"aria-label":ot?Ee.collapse:Ee.expand,"aria-expanded":ot})}}var Bi=Ai;function pa(Ee,Ce){return"key"in Ee&&Ee.key!==void 0&&Ee.key!==null?Ee.key:Ee.dataIndex?Array.isArray(Ee.dataIndex)?Ee.dataIndex.join("."):Ee.dataIndex:Ce}function ds(Ee,Ce){return Ce?`${Ce}-${Ee}`:`${Ee}`}function Fs(Ee,Ce){return typeof Ee=="function"?Ee(Ce):Ee}function bs(Ee,Ce){const Re=Fs(Ee,Ce);return Object.prototype.toString.call(Re)==="[object Object]"?"":Re}var Ws={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},hs=Ws,qa=te(44327),os=function(Ce,Re){return ie.createElement(qa.Z,(0,se.Z)({},Ce,{ref:Re,icon:hs}))},Ps=ie.forwardRef(os),Es=te(7699),sl=te(57838);function rl(Ee){const Ce=ie.useRef(Ee),Re=(0,sl.Z)();return[()=>Ce.current,Te=>{Ce.current=Te,Re()}]}var Gs=te(71577),ks=te(84567),ul=te(85418),Ks=te(32983),js=te(68508),Ms=te(76529),Vs=te(78045),qs=te(86132),Ie=te(47880),Ve=te(11486);function Ye(Ee){let{value:Ce,onChange:Re,filterSearch:Te,tablePrefixCls:Ue,locale:Ze}=Ee;return Te?ie.createElement("div",{className:`${Ue}-filter-dropdown-search`},ie.createElement(Ve.default,{prefix:ie.createElement(Ie.Z,null),placeholder:Ze.filterSearchPlaceholder,onChange:Re,value:Ce,htmlSize:1,className:`${Ue}-filter-dropdown-search-input`})):null}var pt=Ye,Bt=te(92389);const sn=Ee=>{const{keyCode:Ce}=Ee;Ce===Bt.Z.ENTER&&Ee.stopPropagation()};var Dn=ie.forwardRef((Ee,Ce)=>ie.createElement("div",{className:Ee.className,onClick:Re=>Re.stopPropagation(),onKeyDown:sn,ref:Ce},Ee.children));function Pn(Ee){let Ce=[];return(Ee||[]).forEach(Re=>{let{value:Te,children:Ue}=Re;Ce.push(Te),Ue&&(Ce=[].concat((0,Bo.Z)(Ce),(0,Bo.Z)(Pn(Ue))))}),Ce}function Jn(Ee){return Ee.some(Ce=>{let{children:Re}=Ce;return Re})}function jr(Ee,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(Ee.trim().toLowerCase()):!1}function Qn(Ee){let{filters:Ce,prefixCls:Re,filteredKeys:Te,filterMultiple:Ue,searchValue:Ze,filterSearch:ot}=Ee;return Ce.map((st,ht)=>{const Pt=String(st.value);if(st.children)return{key:Pt||ht,label:st.text,popupClassName:`${Re}-dropdown-submenu`,children:Qn({filters:st.children,prefixCls:Re,filteredKeys:Te,filterMultiple:Ue,searchValue:Ze,filterSearch:ot})};const Ot=Ue?ks.default:Vs.ZP,At={key:st.value!==void 0?Pt:ht,label:ie.createElement(ie.Fragment,null,ie.createElement(Ot,{checked:Te.includes(Pt)}),ie.createElement("span",null,st.text))};return Ze.trim()?typeof ot=="function"?ot(Ze,st)?At:null:jr(Ze,st.text)?At:null:At})}function zr(Ee){var Ce,Re;const{tablePrefixCls:Te,prefixCls:Ue,column:Ze,dropdownPrefixCls:ot,columnKey:st,filterMultiple:ht,filterMode:Pt="menu",filterSearch:Ot=!1,filterState:At,triggerFilter:tn,locale:gn,children:ln,getPopupContainer:Wn}=Ee,{filterDropdownOpen:Fn,onFilterDropdownOpenChange:Yn,filterResetToDefaultFilteredValue:zn,defaultFilteredValue:rr,filterDropdownVisible:Ur,onFilterDropdownVisibleChange:Xr}=Ze,[Ar,fo]=ie.useState(!1),io=!!(At&&(!((Ce=At.filteredKeys)===null||Ce===void 0)&&Ce.length||At.forceFiltered)),cr=Jr=>{fo(Jr),Yn==null||Yn(Jr),Xr==null||Xr(Jr)},Dr=(Re=Fn!=null?Fn:Ur)!==null&&Re!==void 0?Re:Ar,hr=At==null?void 0:At.filteredKeys,[Xn,Er]=rl(hr||[]),oo=Jr=>{let{selectedKeys:No}=Jr;Er(No)},Uo=(Jr,No)=>{let{node:Ri,checked:Ei}=No;oo(ht?{selectedKeys:Jr}:{selectedKeys:Ei&&Ri.key?[Ri.key]:[]})};ie.useEffect(()=>{Ar&&oo({selectedKeys:hr||[]})},[hr]);const[Po,to]=ie.useState([]),Go=Jr=>{to(Jr)},[Vo,ar]=ie.useState(""),Rr=Jr=>{const{value:No}=Jr.target;ar(No)};ie.useEffect(()=>{Ar||ar("")},[Ar]);const Ko=Jr=>{const No=Jr&&Jr.length?Jr:null;if(No===null&&(!At||!At.filteredKeys)||(0,Es.Z)(No,At==null?void 0:At.filteredKeys,!0))return null;tn({column:Ze,key:st,filteredKeys:No})},ii=()=>{cr(!1),Ko(Xn())},Gr=function(){let{confirm:Jr,closeDropdown:No}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Jr&&Ko([]),No&&cr(!1),ar(""),Er(zn?(rr||[]).map(Ri=>String(Ri)):[])},Ra=function(){let{closeDropdown:Jr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Jr&&cr(!1),Ko(Xn())},Pi=Jr=>{Jr&&hr!==void 0&&Er(hr||[]),cr(Jr),!Jr&&!Ze.filterDropdown&&ii()},ba=Xe()({[`${ot}-menu-without-submenu`]:!Jn(Ze.filters||[])}),ua=Jr=>{if(Jr.target.checked){const No=Pn(Ze==null?void 0:Ze.filters).map(Ri=>String(Ri));Er(No)}else Er([])},Ns=Jr=>{let{filters:No}=Jr;return(No||[]).map((Ri,Ei)=>{const Ss=String(Ri.value),us={title:Ri.text,key:Ri.value!==void 0?Ss:Ei};return Ri.children&&(us.children=Ns({filters:Ri.children})),us})},ho=Jr=>{var No;return Object.assign(Object.assign({},Jr),{text:Jr.title,value:Jr.key,children:((No=Jr.children)===null||No===void 0?void 0:No.map(Ri=>ho(Ri)))||[]})};let lo;if(typeof Ze.filterDropdown=="function")lo=Ze.filterDropdown({prefixCls:`${ot}-custom`,setSelectedKeys:Jr=>oo({selectedKeys:Jr}),selectedKeys:Xn(),confirm:Ra,clearFilters:Gr,filters:Ze.filters,visible:Dr,close:()=>{cr(!1)}});else if(Ze.filterDropdown)lo=Ze.filterDropdown;else{const Jr=Xn()||[],No=()=>(Ze.filters||[]).length===0?ie.createElement(Ks.Z,{image:Ks.Z.PRESENTED_IMAGE_SIMPLE,description:gn.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Pt==="tree"?ie.createElement(ie.Fragment,null,ie.createElement(pt,{filterSearch:Ot,value:Vo,onChange:Rr,tablePrefixCls:Te,locale:gn}),ie.createElement("div",{className:`${Te}-filter-dropdown-tree`},ht?ie.createElement(ks.default,{checked:Jr.length===Pn(Ze.filters).length,indeterminate:Jr.length>0&&Jr.length<Pn(Ze.filters).length,className:`${Te}-filter-dropdown-checkall`,onChange:ua},gn.filterCheckall):null,ie.createElement(qs.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:ht,checkStrictly:!ht,className:`${ot}-menu`,onCheck:Uo,checkedKeys:Jr,selectedKeys:Jr,showIcon:!1,treeData:Ns({filters:Ze.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Vo.trim()?Ei=>typeof Ot=="function"?Ot(Vo,ho(Ei)):jr(Vo,Ei.title):void 0}))):ie.createElement(ie.Fragment,null,ie.createElement(pt,{filterSearch:Ot,value:Vo,onChange:Rr,tablePrefixCls:Te,locale:gn}),ie.createElement(js.default,{selectable:!0,multiple:ht,prefixCls:`${ot}-menu`,className:ba,onSelect:oo,onDeselect:oo,selectedKeys:Jr,getPopupContainer:Wn,openKeys:Po,onOpenChange:Go,items:Qn({filters:Ze.filters||[],filterSearch:Ot,prefixCls:Ue,filteredKeys:Xn(),filterMultiple:ht,searchValue:Vo})})),Ri=()=>zn?(0,Es.Z)((rr||[]).map(Ei=>String(Ei)),Jr,!0):Jr.length===0;lo=ie.createElement(ie.Fragment,null,No(),ie.createElement("div",{className:`${Ue}-dropdown-btns`},ie.createElement(Gs.ZP,{type:"link",size:"small",disabled:Ri(),onClick:()=>Gr()},gn.filterReset),ie.createElement(Gs.ZP,{type:"primary",size:"small",onClick:ii},gn.filterConfirm)))}Ze.filterDropdown&&(lo=ie.createElement(Ms.J,{selectable:void 0},lo));const ao=()=>ie.createElement(Dn,{className:`${Ue}-dropdown`},lo);let Qr;typeof Ze.filterIcon=="function"?Qr=Ze.filterIcon(io):Ze.filterIcon?Qr=Ze.filterIcon:Qr=ie.createElement(Ps,null);const{direction:Hi}=ie.useContext(Xa.E_);return ie.createElement("div",{className:`${Ue}-column`},ie.createElement("span",{className:`${Te}-column-title`},ln),ie.createElement(ul.Z,{dropdownRender:ao,trigger:["click"],open:Dr,onOpenChange:Pi,getPopupContainer:Wn,placement:Hi==="rtl"?"bottomLeft":"bottomRight"},ie.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${Ue}-trigger`,{active:io}),onClick:Jr=>{Jr.stopPropagation()}},Qr)))}var fr=zr;function eo(Ee,Ce,Re){let Te=[];return(Ee||[]).forEach((Ue,Ze)=>{var ot;const st=ds(Ze,Re);if(Ue.filters||"filterDropdown"in Ue||"onFilter"in Ue)if("filteredValue"in Ue){let ht=Ue.filteredValue;"filterDropdown"in Ue||(ht=(ot=ht==null?void 0:ht.map(String))!==null&&ot!==void 0?ot:ht),Te.push({column:Ue,key:pa(Ue,st),filteredKeys:ht,forceFiltered:Ue.filtered})}else Te.push({column:Ue,key:pa(Ue,st),filteredKeys:Ce&&Ue.defaultFilteredValue?Ue.defaultFilteredValue:void 0,forceFiltered:Ue.filtered});"children"in Ue&&(Te=[].concat((0,Bo.Z)(Te),(0,Bo.Z)(eo(Ue.children,Ce,st))))}),Te}function ko(Ee,Ce,Re,Te,Ue,Ze,ot,st){return Re.map((ht,Pt)=>{const Ot=ds(Pt,st),{filterMultiple:At=!0,filterMode:tn,filterSearch:gn}=ht;let ln=ht;if(ln.filters||ln.filterDropdown){const Wn=pa(ln,Ot),Fn=Te.find(Yn=>{let{key:zn}=Yn;return Wn===zn});ln=Object.assign(Object.assign({},ln),{title:Yn=>ie.createElement(fr,{tablePrefixCls:Ee,prefixCls:`${Ee}-filter`,dropdownPrefixCls:Ce,column:ln,columnKey:Wn,filterState:Fn,filterMultiple:At,filterMode:tn,filterSearch:gn,triggerFilter:Ze,locale:Ue,getPopupContainer:ot},Fs(ht.title,Yn))})}return"children"in ln&&(ln=Object.assign(Object.assign({},ln),{children:ko(Ee,Ce,ln.children,Te,Ue,Ze,ot,Ot)})),ln})}function jo(Ee){const Ce={};return Ee.forEach(Re=>{let{key:Te,filteredKeys:Ue,column:Ze}=Re;const{filters:ot,filterDropdown:st}=Ze;if(st)Ce[Te]=Ue||null;else if(Array.isArray(Ue)){const ht=Pn(ot);Ce[Te]=ht.filter(Pt=>Ue.includes(String(Pt)))}else Ce[Te]=null}),Ce}function ri(Ee,Ce){return Ce.reduce((Re,Te)=>{const{column:{onFilter:Ue,filters:Ze},filteredKeys:ot}=Te;return Ue&&ot&&ot.length?Re.filter(st=>ot.some(ht=>{const Pt=Pn(Ze),Ot=Pt.findIndex(tn=>String(tn)===String(ht)),At=Ot!==-1?Pt[Ot]:ht;return Ue(At,st)})):Re},Ee)}const Eo=Ee=>Ee.flatMap(Ce=>"children"in Ce?[Ce].concat((0,Bo.Z)(Eo(Ce.children||[]))):[Ce]);function wo(Ee){let{prefixCls:Ce,dropdownPrefixCls:Re,mergedColumns:Te,onFilterChange:Ue,getPopupContainer:Ze,locale:ot}=Ee;const st=ie.useMemo(()=>Eo(Te||[]),[Te]),[ht,Pt]=ie.useState(()=>eo(st,!0)),Ot=ie.useMemo(()=>{const ln=eo(st,!1);if(ln.length===0)return ln;let Wn=!0,Fn=!0;if(ln.forEach(Yn=>{let{filteredKeys:zn}=Yn;zn!==void 0?Wn=!1:Fn=!1}),Wn){const Yn=(st||[]).map((zn,rr)=>pa(zn,ds(rr)));return ht.filter(zn=>{let{key:rr}=zn;return Yn.includes(rr)}).map(zn=>{const rr=st[Yn.findIndex(Ur=>Ur===zn.key)];return Object.assign(Object.assign({},zn),{column:Object.assign(Object.assign({},zn.column),rr),forceFiltered:rr.filtered})})}return ln},[st,ht]),At=ie.useMemo(()=>jo(Ot),[Ot]),tn=ln=>{const Wn=Ot.filter(Fn=>{let{key:Yn}=Fn;return Yn!==ln.key});Wn.push(ln),Pt(Wn),Ue(jo(Wn),Wn)};return[ln=>ko(Ce,Re,ln,Ot,ot,tn,Ze),Ot,At]}var Yr=wo;function ga(Ee,Ce,Re){const Te=ie.useRef({});function Ue(Ze){if(!Te.current||Te.current.data!==Ee||Te.current.childrenColumnName!==Ce||Te.current.getRowKey!==Re){let st=function(ht){ht.forEach((Pt,Ot)=>{const At=Re(Pt,Ot);ot.set(At,Pt),Pt&&typeof Pt=="object"&&Ce in Pt&&st(Pt[Ce]||[])})};const ot=new Map;st(Ee),Te.current={data:Ee,childrenColumnName:Ce,kvMap:ot,getRowKey:Re}}return Te.current.kvMap.get(Ze)}return[Ue]}var Vi=te(38780),fa=function(Ee,Ce){var Re={};for(var Te in Ee)Object.prototype.hasOwnProperty.call(Ee,Te)&&Ce.indexOf(Te)<0&&(Re[Te]=Ee[Te]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Te=Object.getOwnPropertySymbols(Ee);Ue<Te.length;Ue++)Ce.indexOf(Te[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Te[Ue])&&(Re[Te[Ue]]=Ee[Te[Ue]]);return Re};const va=10;function Ua(Ee,Ce){const Re={current:Ee.current,pageSize:Ee.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(Ue=>{const Ze=Ee[Ue];typeof Ze!="function"&&(Re[Ue]=Ze)}),Re}function ui(Ee,Ce,Re){const Te=Re&&typeof Re=="object"?Re:{},{total:Ue=0}=Te,Ze=fa(Te,["total"]),[ot,st]=(0,ie.useState)(()=>({current:"defaultCurrent"in Ze?Ze.defaultCurrent:1,pageSize:"defaultPageSize"in Ze?Ze.defaultPageSize:va})),ht=(0,Vi.Z)(ot,Ze,{total:Ue>0?Ue:Ee}),Pt=Math.ceil((Ue||Ee)/ht.pageSize);ht.current>Pt&&(ht.current=Pt||1);const Ot=(tn,gn)=>{st({current:tn!=null?tn:1,pageSize:gn||ht.pageSize})},At=(tn,gn)=>{var ln;Re&&((ln=Re.onChange)===null||ln===void 0||ln.call(Re,tn,gn)),Ot(tn,gn),Ce(tn,gn||(ht==null?void 0:ht.pageSize))};return Re===!1?[{},()=>{}]:[Object.assign(Object.assign({},ht),{onChange:At}),Ot]}var si=ui,Qi=te(15558),Da=te(29873),Ji=te(97153),di=te(83898),Zi=te(5663);const Ao={},Ia="SELECT_ALL",zi="SELECT_INVERT",Ha="SELECT_NONE",ss=[],Ka=(Ee,Ce)=>{let Re=[];return(Ce||[]).forEach(Te=>{Re.push(Te),Te&&typeof Te=="object"&&Ee in Te&&(Re=[].concat((0,Bo.Z)(Re),(0,Bo.Z)(Ka(Ee,Te[Ee]))))}),Re};var ms=(Ee,Ce)=>{const{preserveSelectedRowKeys:Re,selectedRowKeys:Te,defaultSelectedRowKeys:Ue,getCheckboxProps:Ze,onChange:ot,onSelect:st,onSelectAll:ht,onSelectInvert:Pt,onSelectNone:Ot,onSelectMultiple:At,columnWidth:tn,type:gn,selections:ln,fixed:Wn,renderCell:Fn,hideSelectAll:Yn,checkStrictly:zn=!0}=Ce||{},{prefixCls:rr,data:Ur,pageData:Xr,getRecordByKey:Ar,getRowKey:fo,expandType:io,childrenColumnName:cr,locale:Dr,getPopupContainer:hr}=Ee,[Xn,Er]=(0,Zi.Z)(Te||Ue||ss,{value:Te}),oo=ie.useRef(new Map),Uo=(0,ie.useCallback)(ho=>{if(Re){const lo=new Map;ho.forEach(ao=>{let Qr=Ar(ao);!Qr&&oo.current.has(ao)&&(Qr=oo.current.get(ao)),lo.set(ao,Qr)}),oo.current=lo}},[Ar,Re]);ie.useEffect(()=>{Uo(Xn)},[Xn]);const{keyEntities:Po}=(0,ie.useMemo)(()=>{if(zn)return{keyEntities:null};let ho=Ur;if(Re){const lo=new Set(Ur.map((Qr,Hi)=>fo(Qr,Hi))),ao=Array.from(oo.current).reduce((Qr,Hi)=>{let[Jr,No]=Hi;return lo.has(Jr)?Qr:Qr.concat(No)},[]);ho=[].concat((0,Bo.Z)(ho),(0,Bo.Z)(ao))}return(0,di.I8)(ho,{externalGetKey:fo,childrenPropName:cr})},[Ur,fo,zn,cr,Re]),to=(0,ie.useMemo)(()=>Ka(cr,Xr),[cr,Xr]),Go=(0,ie.useMemo)(()=>{const ho=new Map;return to.forEach((lo,ao)=>{const Qr=fo(lo,ao),Hi=(Ze?Ze(lo):null)||{};ho.set(Qr,Hi)}),ho},[to,fo,Ze]),Vo=(0,ie.useCallback)(ho=>{var lo;return!!(!((lo=Go.get(fo(ho)))===null||lo===void 0)&&lo.disabled)},[Go,fo]),[ar,Rr]=(0,ie.useMemo)(()=>{if(zn)return[Xn||[],[]];const{checkedKeys:ho,halfCheckedKeys:lo}=(0,Ji.S)(Xn,!0,Po,Vo);return[ho||[],lo]},[Xn,zn,Po,Vo]),Ko=(0,ie.useMemo)(()=>{const ho=gn==="radio"?ar.slice(0,1):ar;return new Set(ho)},[ar,gn]),ii=(0,ie.useMemo)(()=>gn==="radio"?new Set:new Set(Rr),[Rr,gn]),[Gr,Ra]=(0,ie.useState)(null);ie.useEffect(()=>{Ce||Er(ss)},[!!Ce]);const Pi=(0,ie.useCallback)((ho,lo)=>{let ao,Qr;Uo(ho),Re?(ao=ho,Qr=ho.map(Hi=>oo.current.get(Hi))):(ao=[],Qr=[],ho.forEach(Hi=>{const Jr=Ar(Hi);Jr!==void 0&&(ao.push(Hi),Qr.push(Jr))})),Er(ao),ot==null||ot(ao,Qr,{type:lo})},[Er,Ar,ot,Re]),ba=(0,ie.useCallback)((ho,lo,ao,Qr)=>{if(st){const Hi=ao.map(Jr=>Ar(Jr));st(Ar(ho),lo,Hi,Qr)}Pi(ao,"single")},[st,Ar,Pi]),ua=(0,ie.useMemo)(()=>!ln||Yn?null:(ln===!0?[Ia,zi,Ha]:ln).map(lo=>lo===Ia?{key:"all",text:Dr.selectionAll,onSelect(){Pi(Ur.map((ao,Qr)=>fo(ao,Qr)).filter(ao=>{const Qr=Go.get(ao);return!(Qr!=null&&Qr.disabled)||Ko.has(ao)}),"all")}}:lo===zi?{key:"invert",text:Dr.selectInvert,onSelect(){const ao=new Set(Ko);Xr.forEach((Hi,Jr)=>{const No=fo(Hi,Jr),Ri=Go.get(No);Ri!=null&&Ri.disabled||(ao.has(No)?ao.delete(No):ao.add(No))});const Qr=Array.from(ao);Pt&&Pt(Qr),Pi(Qr,"invert")}}:lo===Ha?{key:"none",text:Dr.selectNone,onSelect(){Ot==null||Ot(),Pi(Array.from(Ko).filter(ao=>{const Qr=Go.get(ao);return Qr==null?void 0:Qr.disabled}),"none")}}:lo).map(lo=>Object.assign(Object.assign({},lo),{onSelect:function(){for(var ao,Qr,Hi=arguments.length,Jr=new Array(Hi),No=0;No<Hi;No++)Jr[No]=arguments[No];(Qr=lo.onSelect)===null||Qr===void 0||(ao=Qr).call.apply(ao,[lo].concat(Jr)),Ra(null)}})),[ln,Ko,Xr,fo,Pt,Pi]);return[(0,ie.useCallback)(ho=>{var lo;if(!Ce)return ho.filter(Yi=>Yi!==Ao);let ao=(0,Bo.Z)(ho);const Qr=new Set(Ko),Hi=to.map(fo).filter(Yi=>!Go.get(Yi).disabled),Jr=Hi.every(Yi=>Qr.has(Yi)),No=Hi.some(Yi=>Qr.has(Yi)),Ri=()=>{const Yi=[];Jr?Hi.forEach(ka=>{Qr.delete(ka),Yi.push(ka)}):Hi.forEach(ka=>{Qr.has(ka)||(Qr.add(ka),Yi.push(ka))});const ta=Array.from(Qr);ht==null||ht(!Jr,ta.map(ka=>Ar(ka)),Yi.map(ka=>Ar(ka))),Pi(ta,"all"),Ra(null)};let Ei;if(gn!=="radio"){let Yi;if(ua){const fi={getPopupContainer:hr,items:ua.map((Ls,ys)=>{const{key:$s,text:ol,onSelect:nl}=Ls;return{key:$s!=null?$s:ys,onClick:()=>{nl==null||nl(Hi)},label:ol}})};Yi=ie.createElement("div",{className:`${rr}-selection-extra`},ie.createElement(ul.Z,{menu:fi,getPopupContainer:hr},ie.createElement("span",null,ie.createElement(Qi.Z,null))))}const ta=to.map((fi,Ls)=>{const ys=fo(fi,Ls),$s=Go.get(ys)||{};return Object.assign({checked:Qr.has(ys)},$s)}).filter(fi=>{let{disabled:Ls}=fi;return Ls}),ka=!!ta.length&&ta.length===to.length,ts=ka&&ta.every(fi=>{let{checked:Ls}=fi;return Ls}),ns=ka&&ta.some(fi=>{let{checked:Ls}=fi;return Ls});Ei=!Yn&&ie.createElement("div",{className:`${rr}-selection`},ie.createElement(ks.default,{checked:ka?ts:!!to.length&&Jr,indeterminate:ka?!ts&&ns:!Jr&&No,onChange:Ri,disabled:to.length===0||ka,"aria-label":Yi?"Custom selection":"Select all",skipGroup:!0}),Yi)}let Ss;gn==="radio"?Ss=(Yi,ta,ka)=>{const ts=fo(ta,ka),ns=Qr.has(ts);return{node:ie.createElement(Vs.ZP,Object.assign({},Go.get(ts),{checked:ns,onClick:fi=>fi.stopPropagation(),onChange:fi=>{Qr.has(ts)||ba(ts,!0,[ts],fi.nativeEvent)}})),checked:ns}}:Ss=(Yi,ta,ka)=>{var ts;const ns=fo(ta,ka),fi=Qr.has(ns),Ls=ii.has(ns),ys=Go.get(ns);let $s;return io==="nest"?$s=Ls:$s=(ts=ys==null?void 0:ys.indeterminate)!==null&&ts!==void 0?ts:Ls,{node:ie.createElement(ks.default,Object.assign({},ys,{indeterminate:$s,checked:fi,skipGroup:!0,onClick:ol=>ol.stopPropagation(),onChange:ol=>{let{nativeEvent:nl}=ol;const{shiftKey:vl}=nl;let ll=-1,Qs=-1;if(vl&&zn){const Os=new Set([Gr,ns]);Hi.some((xs,rs)=>{if(Os.has(xs))if(ll===-1)ll=rs;else return Qs=rs,!0;return!1})}if(Qs!==-1&&ll!==Qs&&zn){const Os=Hi.slice(ll,Qs+1),xs=[];fi?Os.forEach(ja=>{Qr.has(ja)&&(xs.push(ja),Qr.delete(ja))}):Os.forEach(ja=>{Qr.has(ja)||(xs.push(ja),Qr.add(ja))});const rs=Array.from(Qr);At==null||At(!fi,rs.map(ja=>Ar(ja)),xs.map(ja=>Ar(ja))),Pi(rs,"multiple")}else{const Os=ar;if(zn){const xs=fi?(0,Da._5)(Os,ns):(0,Da.L0)(Os,ns);ba(ns,!fi,xs,nl)}else{const xs=(0,Ji.S)([].concat((0,Bo.Z)(Os),[ns]),!0,Po,Vo),{checkedKeys:rs,halfCheckedKeys:ja}=xs;let il=rs;if(fi){const ml=new Set(rs);ml.delete(ns),il=(0,Ji.S)(Array.from(ml),{checked:!1,halfCheckedKeys:ja},Po,Vo).checkedKeys}ba(ns,!fi,il,nl)}}Ra(fi?null:ns)}})),checked:fi}};const us=(Yi,ta,ka)=>{const{node:ts,checked:ns}=Ss(Yi,ta,ka);return Fn?Fn(ns,ta,ka,ts):ts};if(!ao.includes(Ao))if(ao.findIndex(Yi=>{var ta;return((ta=Yi[ti])===null||ta===void 0?void 0:ta.columnType)==="EXPAND_COLUMN"})===0){const[Yi,...ta]=ao;ao=[Yi,Ao].concat((0,Bo.Z)(ta))}else ao=[Ao].concat((0,Bo.Z)(ao));const tl=ao.indexOf(Ao);ao=ao.filter((Yi,ta)=>Yi!==Ao||ta===tl);const Qa=ao[tl-1],Xs=ao[tl+1];let Ja=Wn;Ja===void 0&&((Xs==null?void 0:Xs.fixed)!==void 0?Ja=Xs.fixed:(Qa==null?void 0:Qa.fixed)!==void 0&&(Ja=Qa.fixed)),Ja&&Qa&&((lo=Qa[ti])===null||lo===void 0?void 0:lo.columnType)==="EXPAND_COLUMN"&&Qa.fixed===void 0&&(Qa.fixed=Ja);const Ts=Xe()(`${rr}-selection-col`,{[`${rr}-selection-col-with-dropdown`]:ln&&gn==="checkbox"}),hl={fixed:Ja,width:tn,className:`${rr}-selection-column`,title:Ce.columnTitle||Ei,render:us,onCell:Ce.onCell,[ti]:{className:Ts}};return ao.map(Yi=>Yi===Ao?hl:Yi)},[fo,to,Ce,ar,Ko,ii,tn,ua,io,Gr,Go,At,ba,Vo]),Ko]},Ui={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"},gs=Ui,Sa=function(Ce,Re){return ie.createElement(qa.Z,(0,se.Z)({},Ce,{ref:Re,icon:gs}))},qi=ie.forwardRef(Sa),Ba={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"},ps=Ba,xi=function(Ce,Re){return ie.createElement(qa.Z,(0,se.Z)({},Ce,{ref:Re,icon:ps}))},ya=ie.forwardRef(xi),is=te(83062);const sa="ascend",As="descend";function es(Ee){return typeof Ee.sorter=="object"&&typeof Ee.sorter.multiple=="number"?Ee.sorter.multiple:!1}function la(Ee){return typeof Ee=="function"?Ee:Ee&&typeof Ee=="object"&&Ee.compare?Ee.compare:!1}function yo(Ee,Ce){return Ce?Ee[Ee.indexOf(Ce)+1]:Ee[0]}function Fa(Ee,Ce,Re){let Te=[];function Ue(Ze,ot){Te.push({column:Ze,key:pa(Ze,ot),multiplePriority:es(Ze),sortOrder:Ze.sortOrder})}return(Ee||[]).forEach((Ze,ot)=>{const st=ds(ot,Re);Ze.children?("sortOrder"in Ze&&Ue(Ze,st),Te=[].concat((0,Bo.Z)(Te),(0,Bo.Z)(Fa(Ze.children,Ce,st)))):Ze.sorter&&("sortOrder"in Ze?Ue(Ze,st):Ce&&Ze.defaultSortOrder&&Te.push({column:Ze,key:pa(Ze,st),multiplePriority:es(Ze),sortOrder:Ze.defaultSortOrder}))}),Te}function ls(Ee,Ce,Re,Te,Ue,Ze,ot,st){return(Ce||[]).map((ht,Pt)=>{const Ot=ds(Pt,st);let At=ht;if(At.sorter){const tn=At.sortDirections||Ue,gn=At.showSorterTooltip===void 0?ot:At.showSorterTooltip,ln=pa(At,Ot),Wn=Re.find(io=>{let{key:cr}=io;return cr===ln}),Fn=Wn?Wn.sortOrder:null,Yn=yo(tn,Fn);let zn;if(ht.sortIcon)zn=ht.sortIcon({sortOrder:Fn});else{const io=tn.includes(sa)&&ie.createElement(ya,{className:Xe()(`${Ee}-column-sorter-up`,{active:Fn===sa})}),cr=tn.includes(As)&&ie.createElement(qi,{className:Xe()(`${Ee}-column-sorter-down`,{active:Fn===As})});zn=ie.createElement("span",{className:Xe()(`${Ee}-column-sorter`,{[`${Ee}-column-sorter-full`]:!!(io&&cr)})},ie.createElement("span",{className:`${Ee}-column-sorter-inner`,"aria-hidden":"true"},io,cr))}const{cancelSort:rr,triggerAsc:Ur,triggerDesc:Xr}=Ze||{};let Ar=rr;Yn===As?Ar=Xr:Yn===sa&&(Ar=Ur);const fo=typeof gn=="object"?gn:{title:Ar};At=Object.assign(Object.assign({},At),{className:Xe()(At.className,{[`${Ee}-column-sort`]:Fn}),title:io=>{const cr=ie.createElement("div",{className:`${Ee}-column-sorters`},ie.createElement("span",{className:`${Ee}-column-title`},Fs(ht.title,io)),zn);return gn?ie.createElement(is.Z,Object.assign({},fo),cr):cr},onHeaderCell:io=>{const cr=ht.onHeaderCell&&ht.onHeaderCell(io)||{},Dr=cr.onClick,hr=cr.onKeyDown;cr.onClick=oo=>{Te({column:ht,key:ln,sortOrder:Yn,multiplePriority:es(ht)}),Dr==null||Dr(oo)},cr.onKeyDown=oo=>{oo.keyCode===Bt.Z.ENTER&&(Te({column:ht,key:ln,sortOrder:Yn,multiplePriority:es(ht)}),hr==null||hr(oo))};const Xn=bs(ht.title,{}),Er=Xn==null?void 0:Xn.toString();return Fn?cr["aria-sort"]=Fn==="ascend"?"ascending":"descending":cr["aria-label"]=Er||"",cr.className=Xe()(cr.className,`${Ee}-column-has-sorters`),cr.tabIndex=0,ht.ellipsis&&(cr.title=(Xn!=null?Xn:"").toString()),cr}})}return"children"in At&&(At=Object.assign(Object.assign({},At),{children:ls(Ee,At.children,Re,Te,Ue,Ze,ot,Ot)})),At})}function Ds(Ee){const{column:Ce,sortOrder:Re}=Ee;return{column:Ce,order:Re,field:Ce.dataIndex,columnKey:Ce.key}}function Ys(Ee){const Ce=Ee.filter(Re=>{let{sortOrder:Te}=Re;return Te}).map(Ds);return Ce.length===0&&Ee.length?Object.assign(Object.assign({},Ds(Ee[Ee.length-1])),{column:void 0}):Ce.length<=1?Ce[0]||{}:Ce}function Zs(Ee,Ce,Re){const Te=Ce.slice().sort((ot,st)=>st.multiplePriority-ot.multiplePriority),Ue=Ee.slice(),Ze=Te.filter(ot=>{let{column:{sorter:st},sortOrder:ht}=ot;return la(st)&&ht});return Ze.length?Ue.sort((ot,st)=>{for(let ht=0;ht<Ze.length;ht+=1){const Pt=Ze[ht],{column:{sorter:Ot},sortOrder:At}=Pt,tn=la(Ot);if(tn&&At){const gn=tn(ot,st,At);if(gn!==0)return At===sa?gn:-gn}}return 0}).map(ot=>{const st=ot[Re];return st?Object.assign(Object.assign({},ot),{[Re]:Zs(st,Ce,Re)}):ot}):Ue}function Oe(Ee){let{prefixCls:Ce,mergedColumns:Re,onSorterChange:Te,sortDirections:Ue,tableLocale:Ze,showSorterTooltip:ot}=Ee;const[st,ht]=ie.useState(Fa(Re,!0)),Pt=ie.useMemo(()=>{let ln=!0;const Wn=Fa(Re,!1);if(!Wn.length)return st;const Fn=[];function Yn(rr){ln?Fn.push(rr):Fn.push(Object.assign(Object.assign({},rr),{sortOrder:null}))}let zn=null;return Wn.forEach(rr=>{zn===null?(Yn(rr),rr.sortOrder&&(rr.multiplePriority===!1?ln=!1:zn=!0)):(zn&&rr.multiplePriority!==!1||(ln=!1),Yn(rr))}),Fn},[Re,st]),Ot=ie.useMemo(()=>{const ln=Pt.map(Wn=>{let{column:Fn,sortOrder:Yn}=Wn;return{column:Fn,order:Yn}});return{sortColumns:ln,sortColumn:ln[0]&&ln[0].column,sortOrder:ln[0]&&ln[0].order}},[Pt]);function At(ln){let Wn;ln.multiplePriority===!1||!Pt.length||Pt[0].multiplePriority===!1?Wn=[ln]:Wn=[].concat((0,Bo.Z)(Pt.filter(Fn=>{let{key:Yn}=Fn;return Yn!==ln.key})),[ln]),ht(Wn),Te(Ys(Wn),Wn)}return[ln=>ls(Ce,ln,Pt,At,Ue,Ze,ot),Pt,Ot,()=>Ys(Pt)]}function je(Ee,Ce){return Ee.map(Re=>{const Te=Object.assign({},Re);return Te.title=Fs(Re.title,Ce),"children"in Te&&(Te.children=je(Te.children,Ce)),Te})}function Ge(Ee){return[ie.useCallback(Re=>je(Re,Ee),[Ee])]}var vr=Zn((Ee,Ce)=>{const{_renderTimes:Re}=Ee,{_renderTimes:Te}=Ce;return Re!==Te}),wn=aa((Ee,Ce)=>{const{_renderTimes:Re}=Ee,{_renderTimes:Te}=Ce;return Re!==Te}),en=te(84780),En=te(14747),Qt=te(67968),Sn=te(45503),Do=Ee=>{const{componentCls:Ce}=Ee,Re=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Te=(Ue,Ze,ot)=>({[`&${Ce}-${Ue}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${Ze}px -${ot+Ee.lineWidth}px`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:Re,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:Re,borderTop:Re,[`
> ${Ce}-content,
> ${Ce}-header,
> ${Ce}-body,
> ${Ce}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Re},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Re},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:Re}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${Ee.tablePaddingVertical}px -${Ee.tablePaddingHorizontal+Ee.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ee.lineWidth,bottom:0,borderInlineEnd:Re,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
> tr${Ce}-expanded-row,
> tr${Ce}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Te("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle)),Te("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:Re,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ee.lineWidth}px 0 ${Ee.lineWidth}px ${Ee.tableHeaderBg}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:Re}}}},Io=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},En.vS),{wordBreak:"keep-all",[`
&${Ce}-cell-fix-left-last,
&${Ce}-cell-fix-right-first
`]:{overflow:"visible",[`${Ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},bo=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:Ee.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ee.colorBgContainer}}}}},Ir=te(49867),Lo=Ee=>{const{componentCls:Ce,antCls:Re,controlInteractiveSize:Te,motionDurationSlow:Ue,lineWidth:Ze,paddingXS:ot,lineType:st,tableBorderColor:ht,tableExpandIconBg:Pt,tableExpandColumnWidth:Ot,borderRadius:At,fontSize:tn,fontSizeSM:gn,lineHeight:ln,tablePaddingVertical:Wn,tablePaddingHorizontal:Fn,tableExpandedRowBg:Yn,paddingXXS:zn}=Ee,rr=Te/2-Ze,Ur=rr*2+Ze*3,Xr=`${Ze}px ${st} ${ht}`,Ar=zn-Ze;return{[`${Ce}-wrapper`]:{[`${Ce}-expand-icon-col`]:{width:Ot},[`${Ce}-row-expand-icon-cell`]:{textAlign:"center",[`${Ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ce}-row-indent`]:{height:1,float:"left"},[`${Ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ir.N)(Ee)),{position:"relative",float:"left",boxSizing:"border-box",width:Ur,height:Ur,padding:0,color:"inherit",lineHeight:`${Ur}px`,background:Pt,border:Xr,borderRadius:At,transform:`scale(${Te/Ur})`,transition:`all ${Ue}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ue} ease-out`,content:'""'},"&::before":{top:rr,insetInlineEnd:Ar,insetInlineStart:Ar,height:Ze},"&::after":{top:Ar,bottom:Ar,insetInlineStart:rr,width:Ze,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Ce}-row-indent + ${Ce}-row-expand-icon`]:{marginTop:(tn*ln-Ze*3)/2-Math.ceil((gn*1.4-Ze*3)/2),marginInlineEnd:ot},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Yn}},[`${Re}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`-${Wn}px -${Fn}px`,padding:`${Wn}px ${Fn}px`}}}},zo=Ee=>{const{componentCls:Ce,antCls:Re,iconCls:Te,tableFilterDropdownWidth:Ue,tableFilterDropdownSearchWidth:Ze,paddingXXS:ot,paddingXS:st,colorText:ht,lineWidth:Pt,lineType:Ot,tableBorderColor:At,tableHeaderIconColor:tn,fontSizeSM:gn,tablePaddingHorizontal:ln,borderRadius:Wn,motionDurationSlow:Fn,colorTextDescription:Yn,colorPrimary:zn,tableHeaderFilterActiveBg:rr,colorTextDisabled:Ur,tableFilterDropdownBg:Xr,tableFilterDropdownHeight:Ar,controlItemBgHover:fo,controlItemBgActive:io,boxShadowSecondary:cr,filterDropdownMenuBg:Dr}=Ee,hr=`${Re}-dropdown`,Xn=`${Ce}-filter-dropdown`,Er=`${Re}-tree`,oo=`${Pt}px ${Ot} ${At}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ot,marginInline:`${ot}px ${-ln/2}px`,padding:`0 ${ot}px`,color:tn,fontSize:gn,borderRadius:Wn,cursor:"pointer",transition:`all ${Fn}`,"&:hover":{color:Yn,background:rr},"&.active":{color:zn}}}},{[`${Re}-dropdown`]:{[Xn]:Object.assign(Object.assign({},(0,En.Wf)(Ee)),{minWidth:Ue,backgroundColor:Xr,borderRadius:Wn,boxShadow:cr,overflow:"hidden",[`${hr}-menu`]:{maxHeight:Ar,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Dr,"&:empty::after":{display:"block",padding:`${st}px 0`,color:Ur,fontSize:gn,textAlign:"center",content:'"Not Found"'}},[`${Xn}-tree`]:{paddingBlock:`${st}px 0`,paddingInline:st,[Er]:{padding:0},[`${Er}-treenode ${Er}-node-content-wrapper:hover`]:{backgroundColor:fo},[`${Er}-treenode-checkbox-checked ${Er}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:io}}},[`${Xn}-search`]:{padding:st,borderBottom:oo,"&-input":{input:{minWidth:Ze},[Te]:{color:Ur}}},[`${Xn}-checkall`]:{width:"100%",marginBottom:ot,marginInlineStart:ot},[`${Xn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${st-Pt}px ${st}px`,overflow:"hidden",borderTop:oo}})}},{[`${Re}-dropdown ${Xn}, ${Xn}-submenu`]:{[`${Re}-checkbox-wrapper + span`]:{paddingInlineStart:st,color:ht},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},li=Ee=>{const{componentCls:Ce,lineWidth:Re,colorSplit:Te,motionDurationSlow:Ue,zIndexTableFixed:Ze,tableBg:ot,zIndexTableSticky:st}=Ee,ht=Te;return{[`${Ce}-wrapper`]:{[`
${Ce}-cell-fix-left,
${Ce}-cell-fix-right
`]:{position:"sticky !important",zIndex:Ze,background:ot},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Re,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ue}`,content:'""',pointerEvents:"none"},[`${Ce}-cell-fix-left-all::after`]:{display:"none"},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Re,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ue}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:st+1,width:30,transition:`box-shadow ${Ue}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ht}`}},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${ht}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ht}`}},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${ht}`}}}}},Di=Ee=>{const{componentCls:Ce,antCls:Re}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${Re}-pagination`]:{margin:`${Ee.margin}px 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ee.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},ha=Ee=>{const{componentCls:Ce,tableRadius:Re}=Ee;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${Re}px ${Re}px 0 0`},[`${Ce}-title + ${Ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ce}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Re,borderStartEndRadius:Re,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Re},"> *:last-child":{borderStartEndRadius:Re}}},"&-footer":{borderRadius:`0 0 ${Re}px ${Re}px`}}}}},Lr=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ce}-pagination-left`]:{justifyContent:"flex-end"},[`${Ce}-pagination-right`]:{justifyContent:"flex-start"},[`${Ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ce}-row-indent`]:{float:"right"}}}}},oi=Ee=>{const{componentCls:Ce,antCls:Re,iconCls:Te,fontSizeIcon:Ue,padding:Ze,paddingXS:ot,tableHeaderIconColor:st,tableHeaderIconColorHover:ht,tableSelectionColumnWidth:Pt}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:Pt,[`&${Ce}-selection-col-with-dropdown`]:{width:Pt+Ue+Ze/4}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:Pt+ot*2,[`&${Ce}-selection-col-with-dropdown`]:{width:Pt+Ue+Ze/4+ot*2}},[`
table tr th${Ce}-selection-column,
table tr td${Ce}-selection-column
`]:{paddingInlineEnd:Ee.paddingXS,paddingInlineStart:Ee.paddingXS,textAlign:"center",[`${Re}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:Ee.zIndexTableFixed+1},[`table tr th${Ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ee.tablePaddingHorizontal/4}px`,[Te]:{color:st,fontSize:Ue,verticalAlign:"baseline","&:hover":{color:ht}}}}}},Ro=Ee=>{const{componentCls:Ce}=Ee,Re=(Te,Ue,Ze,ot)=>({[`${Ce}${Ce}-${Te}`]:{fontSize:ot,[`
${Ce}-title,
${Ce}-footer,
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Ue}px ${Ze}px`},[`${Ce}-filter-trigger`]:{marginInlineEnd:`-${Ze/2}px`},[`${Ce}-expanded-row-fixed`]:{margin:`-${Ue}px -${Ze}px`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:`-${Ue}px`,marginInline:`${Ee.tableExpandColumnWidth-Ze}px -${Ze}px`}},[`${Ce}-selection-column`]:{paddingInlineStart:`${Ze/4}px`}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},Re("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle,Ee.tableFontSizeMiddle)),Re("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall,Ee.tableFontSizeSmall))}},$o=Ee=>{const{componentCls:Ce,marginXXS:Re,fontSizeIcon:Te,tableHeaderIconColor:Ue,tableHeaderIconColorHover:Ze}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,"&:hover":{background:Ee.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ee.colorPrimary},[`
&${Ce}-cell-fix-left:hover,
&${Ce}-cell-fix-right:hover
`]:{background:Ee.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:Ee.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:Ee.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorter`]:{marginInlineStart:Re,color:Ue,fontSize:0,transition:`color ${Ee.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Te,"&.active":{color:Ee.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:Ze}}}},vs=Ee=>{const{componentCls:Ce,opacityLoading:Re,tableScrollThumbBg:Te,tableScrollThumbBgHover:Ue,tableScrollThumbSize:Ze,tableScrollBg:ot,zIndexTableSticky:st,stickyScrollBarBorderRadius:ht}=Ee,Pt=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:st,background:Ee.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ze}px !important`,zIndex:st,display:"flex",alignItems:"center",background:ot,borderTop:Pt,opacity:Re,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ze,backgroundColor:Te,borderRadius:ht,transition:`all ${Ee.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ue}}}}}}},Rs=Ee=>{const{componentCls:Ce,lineWidth:Re,tableBorderColor:Te}=Ee,Ue=`${Re}px ${Ee.lineType} ${Te}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:Ee.zIndexTableFixed,background:Ee.tableBg,"> tr":{"> th, > td":{borderBottom:Ue}}},[`div${Ce}-summary`]:{boxShadow:`0 -${Re}px 0 ${Te}`}}}},cs=Ee=>{const{componentCls:Ce}=Ee,Re=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Te=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ce}-cell`]:{borderBottom:Re},[`${Ce}-expanded-row`]:{[`${Te}${Te}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ee.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Re,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:Re,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ee.lineWidth,borderInlineStart:Re}}}}}}};const ro=Ee=>{const{componentCls:Ce,fontWeightStrong:Re,tablePaddingVertical:Te,tablePaddingHorizontal:Ue,lineWidth:Ze,lineType:ot,tableBorderColor:st,tableFontSize:ht,tableBg:Pt,tableRadius:Ot,tableHeaderTextColor:At,motionDurationMid:tn,tableHeaderBg:gn,tableHeaderCellSplitColor:ln,tableRowHoverBg:Wn,tableSelectedRowBg:Fn,tableSelectedRowHoverBg:Yn,tableFooterTextColor:zn,tableFooterBg:rr,paddingContentVerticalLG:Ur}=Ee,Xr=`${Ze}px ${ot} ${st}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,En.dF)()),{[Ce]:Object.assign(Object.assign({},(0,En.Wf)(Ee)),{fontSize:ht,background:Pt,borderRadius:`${Ot}px ${Ot}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ot}px ${Ot}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ur}px ${Ue}px`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${Te}px ${Ue}px`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:At,fontWeight:Re,textAlign:"start",background:gn,borderBottom:Xr,transition:`background ${tn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ce}-selection-column):not(${Ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ln,transform:"translateY(-50%)",transition:`background-color ${tn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${tn}, border-color ${tn}`,borderBottom:Xr,[`
> ${Ce}-wrapper:only-child,
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
`]:{[Ce]:{marginBlock:`-${Te}px`,marginInline:`${Ee.tableExpandColumnWidth-Ue}px -${Ue}px`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:At,fontWeight:Re,textAlign:"start",background:gn,borderBottom:Xr,transition:`background ${tn} ease`},[`
&${Ce}-row:hover > th,
&${Ce}-row:hover > td,
> th${Ce}-cell-row-hover,
> td${Ce}-cell-row-hover
`]:{background:Wn},[`&${Ce}-row-selected`]:{"> th, > td":{background:Fn},"&:hover > th, &:hover > td":{background:Yn}}}},[`${Ce}-footer`]:{padding:`${Te}px ${Ue}px`,color:zn,background:rr}})}};var Si=(0,Qt.Z)("Table",Ee=>{const{colorTextHeading:Ce,colorSplit:Re,colorIcon:Te,colorIconHover:Ue,opacityLoading:Ze,colorBgContainer:ot,controlInteractiveSize:st,headerBg:ht,headerColor:Pt,headerSortActiveBg:Ot,headerSortHoverBg:At,bodySortBg:tn,rowHoverBg:gn,rowSelectedBg:ln,rowSelectedHoverBg:Wn,rowExpandedBg:Fn,cellPaddingBlock:Yn,cellPaddingInline:zn,cellPaddingBlockMD:rr,cellPaddingInlineMD:Ur,cellPaddingBlockSM:Xr,cellPaddingInlineSM:Ar,borderColor:fo,footerBg:io,footerColor:cr,headerBorderRadius:Dr,cellFontSize:hr,cellFontSizeMD:Xn,cellFontSizeSM:Er,headerSplitColor:oo,fixedHeaderSortActiveBg:Uo,headerFilterHoverBg:Po,filterDropdownBg:to,expandIconBg:Go,selectionColumnWidth:Vo,stickyScrollBarBg:ar}=Ee,Rr=new en.C(Te),Ko=new en.C(Ue),ii=2,Gr=(0,Sn.TS)(Ee,{tableFontSize:hr,tableBg:ot,tableRadius:Dr,tablePaddingVertical:Yn,tablePaddingHorizontal:zn,tablePaddingVerticalMiddle:rr,tablePaddingHorizontalMiddle:Ur,tablePaddingVerticalSmall:Xr,tablePaddingHorizontalSmall:Ar,tableBorderColor:fo,tableHeaderTextColor:Pt,tableHeaderBg:ht,tableFooterTextColor:cr,tableFooterBg:io,tableHeaderCellSplitColor:oo,tableHeaderSortBg:Ot,tableHeaderSortHoverBg:At,tableHeaderIconColor:Rr.clone().setAlpha(Rr.getAlpha()*Ze).toRgbString(),tableHeaderIconColorHover:Ko.clone().setAlpha(Ko.getAlpha()*Ze).toRgbString(),tableBodySortBg:tn,tableFixedHeaderSortActiveBg:Uo,tableHeaderFilterActiveBg:Po,tableFilterDropdownBg:to,tableRowHoverBg:gn,tableSelectedRowBg:ln,tableSelectedRowHoverBg:Wn,zIndexTableFixed:ii,zIndexTableSticky:ii+1,tableFontSizeMiddle:Xn,tableFontSizeSmall:Er,tableSelectionColumnWidth:Vo,tableExpandIconBg:Go,tableExpandColumnWidth:st+2*Ee.padding,tableExpandedRowBg:Fn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ar,tableScrollThumbBgHover:Ce,tableScrollBg:Re});return[ro(Gr),Di(Gr),Rs(Gr),$o(Gr),zo(Gr),Do(Gr),ha(Gr),Lo(Gr),Rs(Gr),bo(Gr),oi(Gr),li(Gr),vs(Gr),Io(Gr),Ro(Gr),Lr(Gr),cs(Gr)]},Ee=>{const{colorFillAlter:Ce,colorBgContainer:Re,colorTextHeading:Te,colorFillSecondary:Ue,colorFillContent:Ze,controlItemBgActive:ot,controlItemBgActiveHover:st,padding:ht,paddingSM:Pt,paddingXS:Ot,colorBorderSecondary:At,borderRadiusLG:tn,fontSize:gn,controlHeight:ln,colorTextPlaceholder:Wn}=Ee,Fn=new en.C(Ue).onBackground(Re).toHexShortString(),Yn=new en.C(Ze).onBackground(Re).toHexShortString(),zn=new en.C(Ce).onBackground(Re).toHexShortString();return{headerBg:zn,headerColor:Te,headerSortActiveBg:Fn,headerSortHoverBg:Yn,bodySortBg:zn,rowHoverBg:zn,rowSelectedBg:ot,rowSelectedHoverBg:st,rowExpandedBg:Ce,cellPaddingBlock:ht,cellPaddingInline:ht,cellPaddingBlockMD:Pt,cellPaddingInlineMD:Ot,cellPaddingBlockSM:Ot,cellPaddingInlineSM:Ot,borderColor:At,headerBorderRadius:tn,footerBg:zn,footerColor:Te,cellFontSize:gn,cellFontSizeMD:gn,cellFontSizeSM:gn,headerSplitColor:At,fixedHeaderSortActiveBg:Fn,headerFilterHoverBg:Ze,filterDropdownMenuBg:Re,filterDropdownBg:Re,expandIconBg:Re,selectionColumnWidth:ln,stickyScrollBarBg:Wn,stickyScrollBarBorderRadius:100}});const Va=[],Us=(Ee,Ce)=>{const{prefixCls:Re,className:Te,rootClassName:Ue,style:Ze,size:ot,bordered:st,dropdownPrefixCls:ht,dataSource:Pt,pagination:Ot,rowSelection:At,rowKey:tn="key",rowClassName:gn,columns:ln,children:Wn,childrenColumnName:Fn,onChange:Yn,getPopupContainer:zn,loading:rr,expandIcon:Ur,expandable:Xr,expandedRowRender:Ar,expandIconColumnIndex:fo,indentSize:io,scroll:cr,sortDirections:Dr,locale:hr,showSorterTooltip:Xn=!0,virtual:Er}=Ee,oo=ie.useMemo(()=>ln||Mn(Wn),[ln,Wn]),Uo=ie.useMemo(()=>oo.some(Ni=>Ni.responsive),[oo]),Po=(0,wa.Z)(Uo),to=ie.useMemo(()=>{const Ni=new Set(Object.keys(Po).filter(La=>Po[La]));return oo.filter(La=>!La.responsive||La.responsive.some(fs=>Ni.has(fs)))},[oo,Po]),Go=(0,mr.Z)(Ee,["className","style","columns"]),{locale:Vo=Ii.Z,direction:ar,table:Rr,renderEmpty:Ko,getPrefixCls:ii,getPopupContainer:Gr}=ie.useContext(Xa.E_),Ra=(0,ji.Z)(ot),Pi=Object.assign(Object.assign({},Vo.Table),hr),ba=Pt||Va,ua=ii("table",Re),Ns=ii("dropdown",ht),ho=Object.assign({childrenColumnName:Fn,expandIconColumnIndex:fo},Xr),{childrenColumnName:lo="children"}=ho,ao=ie.useMemo(()=>ba.some(Ni=>Ni==null?void 0:Ni[lo])?"nest":Ar||Xr&&Xr.expandedRowRender?"row":null,[ba]),Qr={body:ie.useRef()},Hi=ie.useMemo(()=>typeof tn=="function"?tn:Ni=>Ni==null?void 0:Ni[tn],[tn]),[Jr]=ga(ba,lo,Hi),No={},Ri=function(Ni,La){let fs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var za,_s,Is;const Bs=Object.assign(Object.assign({},No),Ni);fs&&((za=No.resetPagination)===null||za===void 0||za.call(No),!((_s=Bs.pagination)===null||_s===void 0)&&_s.current&&(Bs.pagination.current=1),Ot&&Ot.onChange&&Ot.onChange(1,(Is=Bs.pagination)===null||Is===void 0?void 0:Is.pageSize)),cr&&cr.scrollToFirstRowOnChange!==!1&&Qr.body.current&&(0,Ca.Z)(0,{getContainer:()=>Qr.body.current}),Yn==null||Yn(Bs.pagination,Bs.filters,Bs.sorter,{currentDataSource:ri(Zs(ba,Bs.sorterStates,lo),Bs.filterStates),action:La})},Ei=(Ni,La)=>{Ri({sorter:Ni,sorterStates:La},"sort",!1)},[Ss,us,tl,Qa]=Oe({prefixCls:ua,mergedColumns:to,onSorterChange:Ei,sortDirections:Dr||["ascend","descend"],tableLocale:Pi,showSorterTooltip:Xn}),Xs=ie.useMemo(()=>Zs(ba,us,lo),[ba,us]);No.sorter=Qa(),No.sorterStates=us;const Ja=(Ni,La)=>{Ri({filters:Ni,filterStates:La},"filter",!0)},[Ts,hl,Yi]=Yr({prefixCls:ua,locale:Pi,dropdownPrefixCls:Ns,mergedColumns:to,onFilterChange:Ja,getPopupContainer:zn||Gr}),ta=ri(Xs,hl);No.filters=Yi,No.filterStates=hl;const ka=ie.useMemo(()=>{const Ni={};return Object.keys(Yi).forEach(La=>{Yi[La]!==null&&(Ni[La]=Yi[La])}),Object.assign(Object.assign({},tl),{filters:Ni})},[tl,Yi]),[ts]=Ge(ka),ns=(Ni,La)=>{Ri({pagination:Object.assign(Object.assign({},No.pagination),{current:Ni,pageSize:La})},"paginate")},[fi,Ls]=si(ta.length,ns,Ot);No.pagination=Ot===!1?{}:Ua(fi,Ot),No.resetPagination=Ls;const ys=ie.useMemo(()=>{if(Ot===!1||!fi.pageSize)return ta;const{current:Ni=1,total:La,pageSize:fs=va}=fi;return ta.length<La?ta.length>fs?ta.slice((Ni-1)*fs,Ni*fs):ta:ta.slice((Ni-1)*fs,Ni*fs)},[!!Ot,ta,fi&&fi.current,fi&&fi.pageSize,fi&&fi.total]),[$s,ol]=ms({prefixCls:ua,data:ta,pageData:ys,getRowKey:Hi,getRecordByKey:Jr,expandType:ao,childrenColumnName:lo,locale:Pi,getPopupContainer:zn||Gr},At),nl=(Ni,La,fs)=>{let za;return typeof gn=="function"?za=Xe()(gn(Ni,La,fs)):za=Xe()(gn),Xe()({[`${ua}-row-selected`]:ol.has(Hi(Ni,La))},za)};ho.__PARENT_RENDER_ICON__=ho.expandIcon,ho.expandIcon=ho.expandIcon||Ur||Bi(Pi),ao==="nest"&&ho.expandIconColumnIndex===void 0?ho.expandIconColumnIndex=At?1:0:ho.expandIconColumnIndex>0&&At&&(ho.expandIconColumnIndex-=1),typeof ho.indentSize!="number"&&(ho.indentSize=typeof io=="number"?io:15);const vl=ie.useCallback(Ni=>ts($s(Ts(Ss(Ni)))),[Ss,Ts,$s]);let ll,Qs;if(Ot!==!1&&(fi!=null&&fi.total)){let Ni;fi.size?Ni=fi.size:Ni=Ra==="small"||Ra==="middle"?"small":void 0;const La=_s=>ie.createElement(_i.Z,Object.assign({},fi,{className:Xe()(`${ua}-pagination ${ua}-pagination-${_s}`,fi.className),size:Ni})),fs=ar==="rtl"?"left":"right",{position:za}=fi;if(za!==null&&Array.isArray(za)){const _s=za.find(cl=>cl.includes("top")),Is=za.find(cl=>cl.includes("bottom")),Bs=za.every(cl=>`${cl}`=="none");!_s&&!Is&&!Bs&&(Qs=La(fs)),_s&&(ll=La(_s.toLowerCase().replace("top",""))),Is&&(Qs=La(Is.toLowerCase().replace("bottom","")))}else Qs=La(fs)}let Os;typeof rr=="boolean"?Os={spinning:rr}:typeof rr=="object"&&(Os=Object.assign({spinning:!0},rr));const[xs,rs]=Si(ua),[,ja]=(0,Za.Z)(),il=Xe()(`${ua}-wrapper`,Rr==null?void 0:Rr.className,{[`${ua}-wrapper-rtl`]:ar==="rtl"},Te,Ue,rs),ml=Object.assign(Object.assign({},Rr==null?void 0:Rr.style),Ze),dl=hr&&hr.emptyText||(Ko==null?void 0:Ko("Table"))||ie.createElement(Oi.Z,{componentName:"Table"}),al=Er?wn:vr,Sl={},Pl=ie.useMemo(()=>{const{fontSize:Ni,lineHeight:La,padding:fs,paddingXS:za,paddingSM:_s}=ja,Is=Math.floor(Ni*La);switch(Ra){case"large":return fs*2+Is;case"small":return za*2+Is;default:return _s*2+Is}},[ja,Ra]);return Er&&(Sl.listItemHeight=Pl),xs(ie.createElement("div",{ref:Ce,className:il,style:ml},ie.createElement(bi.Z,Object.assign({spinning:!1},Os),ll,ie.createElement(al,Object.assign({},Sl,Go,{columns:to,direction:ar,expandable:ho,prefixCls:ua,className:Xe()({[`${ua}-middle`]:Ra==="middle",[`${ua}-small`]:Ra==="small",[`${ua}-bordered`]:st,[`${ua}-empty`]:ba.length===0}),data:ys,rowKey:Hi,rowClassName:nl,emptyText:dl,internalHooks:fe,internalRefs:Qr,transformColumns:vl})),Qs)))};var as=ie.forwardRef(Us);const el=(Ee,Ce)=>{const Re=ie.useRef(0);return Re.current+=1,ie.createElement(as,Object.assign({},Ee,{ref:Ce,_renderTimes:Re.current}))},Wa=ie.forwardRef(el);Wa.SELECTION_COLUMN=Ao,Wa.EXPAND_COLUMN=z,Wa.SELECTION_ALL=Ia,Wa.SELECTION_INVERT=zi,Wa.SELECTION_NONE=Ha,Wa.Column=da,Wa.ColumnGroup=ni,Wa.Summary=Zt;var _a=Wa,Hs=_a},66309:function(at,We,te){"use strict";te.d(We,{default:function(){return Fe}});var z=te(67294),fe=te(85846),Pe=te(94184),ve=te.n(Pe),he=te(98787),pe=te(69760),ie=te(45353),de=te(53124),le=te(14747),ue=te(45503),se=te(67968);const me=Me=>{const{paddingXXS:ut,lineWidth:Xe,tagPaddingHorizontal:mt,componentCls:Ae}=Me,De=mt-Xe,Be=ut-Xe;return{[Ae]:Object.assign(Object.assign({},(0,le.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:De,fontSize:Me.tagFontSize,lineHeight:Me.tagLineHeight,whiteSpace:"nowrap",background:Me.defaultBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,opacity:1,transition:`all ${Me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ae}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Me.defaultColor},[`${Ae}-close-icon`]:{marginInlineStart:Be,color:Me.colorTextDescription,fontSize:Me.tagIconSize,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,"&:hover":{color:Me.colorTextHeading}},[`&${Ae}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Me.iconCls}-close, ${Me.iconCls}-close:hover`]:{color:Me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Ae}-checkable-checked):hover`]:{color:Me.colorPrimary,backgroundColor:Me.colorFillSecondary},"&:active, &-checked":{color:Me.colorTextLightSolid},"&-checked":{backgroundColor:Me.colorPrimary,"&:hover":{backgroundColor:Me.colorPrimaryHover}},"&:active":{backgroundColor:Me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Me.iconCls} + span, > span + ${Me.iconCls}`]:{marginInlineStart:De}}),[`${Ae}-borderless`]:{borderColor:"transparent",background:Me.tagBorderlessBg}}},re=Me=>{const{lineWidth:ut,fontSizeIcon:Xe}=Me,mt=Me.fontSizeSM,Ae=`${Me.lineHeightSM*mt}px`;return(0,ue.TS)(Me,{tagFontSize:mt,tagLineHeight:Ae,tagIconSize:Xe-2*ut,tagPaddingHorizontal:8,tagBorderlessBg:Me.colorFillTertiary})},ne=Me=>({defaultBg:Me.colorFillQuaternary,defaultColor:Me.colorText});var a=(0,se.Z)("Tag",Me=>{const ut=re(Me);return me(ut)},ne),y=function(Me,ut){var Xe={};for(var mt in Me)Object.prototype.hasOwnProperty.call(Me,mt)&&ut.indexOf(mt)<0&&(Xe[mt]=Me[mt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,mt=Object.getOwnPropertySymbols(Me);Ae<mt.length;Ae++)ut.indexOf(mt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Me,mt[Ae])&&(Xe[mt[Ae]]=Me[mt[Ae]]);return Xe},b=Me=>{const{prefixCls:ut,style:Xe,className:mt,checked:Ae,onChange:De,onClick:Be}=Me,nt=y(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ke,tag:Et}=z.useContext(de.E_),Ct=xt=>{De==null||De(!Ae),Be==null||Be(xt)},nn=Ke("tag",ut),[on,it]=a(nn),lt=ve()(nn,`${nn}-checkable`,{[`${nn}-checkable-checked`]:Ae},Et==null?void 0:Et.className,mt,it);return on(z.createElement("span",Object.assign({},nt,{style:Object.assign(Object.assign({},Xe),Et==null?void 0:Et.style),className:lt,onClick:Ct})))},x=te(98719);const ee=Me=>(0,x.Z)(Me,(ut,Xe)=>{let{textColor:mt,lightBorderColor:Ae,lightColor:De,darkColor:Be}=Xe;return{[`${Me.componentCls}-${ut}`]:{color:mt,background:De,borderColor:Ae,"&-inverse":{color:Me.colorTextLightSolid,background:Be,borderColor:Be},[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,se.b)(["Tag","preset"],Me=>{const ut=re(Me);return ee(ut)},ne);function ae(Me){return typeof Me!="string"?Me:Me.charAt(0).toUpperCase()+Me.slice(1)}const ce=(Me,ut,Xe)=>{const mt=ae(Xe);return{[`${Me.componentCls}-${ut}`]:{color:Me[`color${Xe}`],background:Me[`color${mt}Bg`],borderColor:Me[`color${mt}Border`],[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Se=(0,se.b)(["Tag","status"],Me=>{const ut=re(Me);return[ce(ut,"success","Success"),ce(ut,"processing","Info"),ce(ut,"error","Error"),ce(ut,"warning","Warning")]},ne),_e=function(Me,ut){var Xe={};for(var mt in Me)Object.prototype.hasOwnProperty.call(Me,mt)&&ut.indexOf(mt)<0&&(Xe[mt]=Me[mt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,mt=Object.getOwnPropertySymbols(Me);Ae<mt.length;Ae++)ut.indexOf(mt[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Me,mt[Ae])&&(Xe[mt[Ae]]=Me[mt[Ae]]);return Xe};const xe=(Me,ut)=>{const{prefixCls:Xe,className:mt,rootClassName:Ae,style:De,children:Be,icon:nt,color:Ke,onClose:Et,closeIcon:Ct,closable:nn,bordered:on=!0}=Me,it=_e(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:lt,direction:xt,tag:Jt}=z.useContext(de.E_),[Vt,xn]=z.useState(!0);z.useEffect(()=>{"visible"in it&&xn(it.visible)},[it.visible]);const He=(0,he.o2)(Ke),un=(0,he.yT)(Ke),kn=He||un,nr=Object.assign(Object.assign({backgroundColor:Ke&&!kn?Ke:void 0},Jt==null?void 0:Jt.style),De),Ln=lt("tag",Xe),[Gt,Je]=a(Ln),Qe=ve()(Ln,Jt==null?void 0:Jt.className,{[`${Ln}-${Ke}`]:kn,[`${Ln}-has-color`]:Ke&&!kn,[`${Ln}-hidden`]:!Vt,[`${Ln}-rtl`]:xt==="rtl",[`${Ln}-borderless`]:!on},mt,Ae,Je),_t=tt=>{tt.stopPropagation(),Et==null||Et(tt),!tt.defaultPrevented&&xn(!1)},[,Rt]=(0,pe.Z)(nn,Ct,tt=>tt===null?z.createElement(fe.Z,{className:`${Ln}-close-icon`,onClick:_t}):z.createElement("span",{className:`${Ln}-close-icon`,onClick:_t},tt),null,!1),Yt=typeof it.onClick=="function"||Be&&Be.type==="a",gt=nt||null,wt=gt?z.createElement(z.Fragment,null,gt,Be&&z.createElement("span",null,Be)):Be,Dt=z.createElement("span",Object.assign({},it,{ref:ut,className:Qe,style:nr}),wt,Rt,He&&z.createElement(oe,{key:"preset",prefixCls:Ln}),un&&z.createElement(Se,{key:"status",prefixCls:Ln}));return Gt(Yt?z.createElement(ie.Z,{component:"Tag"},Dt):Dt)},we=z.forwardRef(xe);we.CheckableTag=b;var Fe=we},86132:function(at,We,te){"use strict";te.d(We,{default:function(){return Pa}});var z=te(87462),fe=te(4942),Pe=te(71002),ve=te(1413),he=te(74902),pe=te(15671),ie=te(43144),de=te(97326),le=te(60136),ue=te(51630),se=te(94184),me=te.n(se),re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Lt){var jt=Lt.keyCode;if(Lt.altKey&&!Lt.ctrlKey||Lt.metaKey||jt>=re.F1&&jt<=re.F12)return!1;switch(jt){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Lt){if(Lt>=re.ZERO&&Lt<=re.NINE||Lt>=re.NUM_ZERO&&Lt<=re.NUM_MULTIPLY||Lt>=re.A&&Lt<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Lt===0)return!0;switch(Lt){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ne=re,a=te(34952),y=te(72978),E=te(67294),b=te(69610);function x(St){var Lt=St.dropPosition,jt=St.dropLevelOffset,$e=St.indent,Wt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Lt){case-1:Wt.top=0,Wt.left=-jt*$e;break;case 1:Wt.bottom=0,Wt.left=-jt*$e;break;case 0:Wt.bottom=0,Wt.left=$e;break}return E.createElement("div",{style:Wt})}var ee=te(36459),oe=te(97685),ae=te(45987);function ce(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Se=ce()?E.useLayoutEffect:E.useEffect,_e=Se,xe=function(Lt,jt){var $e=React.useRef(!0);Se(function(){if(!$e.current)return Lt()},jt),Se(function(){return $e.current=!1,function(){$e.current=!0}},[])},we=te(73299),Fe=te(73935);function Me(St){return St instanceof HTMLElement||St instanceof SVGElement}function ut(St){return Me(St)?St:St instanceof E.Component?Fe.findDOMNode(St):null}var Xe=te(28580);function mt(St,Lt,jt){var $e=React.useRef({});return(!("value"in $e.current)||jt($e.current.condition,Lt))&&($e.current.value=St(),$e.current.condition=Lt),$e.current.value}function Ae(St,Lt){typeof St=="function"?St(Lt):(0,Pe.Z)(St)==="object"&&St&&"current"in St&&(St.current=Lt)}function De(){for(var St=arguments.length,Lt=new Array(St),jt=0;jt<St;jt++)Lt[jt]=arguments[jt];var $e=Lt.filter(function(Wt){return Wt});return $e.length<=1?$e[0]:function(Wt){Lt.forEach(function(bn){Ae(bn,Wt)})}}function Be(){for(var St=arguments.length,Lt=new Array(St),jt=0;jt<St;jt++)Lt[jt]=arguments[jt];return useMemo(function(){return De.apply(void 0,Lt)},Lt,function($e,Wt){return $e.length===Wt.length&&$e.every(function(bn,Rn){return bn===Wt[Rn]})})}function nt(St){var Lt,jt,$e=(0,Xe.isMemo)(St)?St.type.type:St.type;return!(typeof $e=="function"&&!((Lt=$e.prototype)!==null&&Lt!==void 0&&Lt.render)||typeof St=="function"&&!((jt=St.prototype)!==null&&jt!==void 0&&jt.render))}function Ke(St,Lt){var jt={};return jt[St.toLowerCase()]=Lt.toLowerCase(),jt["Webkit".concat(St)]="webkit".concat(Lt),jt["Moz".concat(St)]="moz".concat(Lt),jt["ms".concat(St)]="MS".concat(Lt),jt["O".concat(St)]="o".concat(Lt.toLowerCase()),jt}function Et(St,Lt){var jt={animationend:Ke("Animation","AnimationEnd"),transitionend:Ke("Transition","TransitionEnd")};return St&&("AnimationEvent"in Lt||delete jt.animationend.animation,"TransitionEvent"in Lt||delete jt.transitionend.transition),jt}var Ct=Et(ce(),typeof window!="undefined"?window:{}),nn={};if(ce()){var on=document.createElement("div");nn=on.style}var it={};function lt(St){if(it[St])return it[St];var Lt=Ct[St];if(Lt)for(var jt=Object.keys(Lt),$e=jt.length,Wt=0;Wt<$e;Wt+=1){var bn=jt[Wt];if(Object.prototype.hasOwnProperty.call(Lt,bn)&&bn in nn)return it[St]=Lt[bn],it[St]}return""}var xt=lt("animationend"),Jt=lt("transitionend"),Vt=!!(xt&&Jt),xn=xt||"animationend",He=Jt||"transitionend";function un(St,Lt){if(!St)return null;if((0,Pe.Z)(St)==="object"){var jt=Lt.replace(/-\w/g,function($e){return $e[1].toUpperCase()});return St[jt]}return"".concat(St,"-").concat(Lt)}var kn="none",nr="appear",Ln="enter",Gt="leave",Je="none",Qe="prepare",_t="start",Rt="active",Yt="end";function gt(St){var Lt=E.useRef(!1),jt=E.useState(St),$e=(0,oe.Z)(jt,2),Wt=$e[0],bn=$e[1];E.useEffect(function(){return Lt.current=!1,function(){Lt.current=!0}},[]);function Rn(Nt,$t){$t&&Lt.current||bn(Nt)}return[Wt,Rn]}var wt=function(Lt){return+setTimeout(Lt,16)},Dt=function(Lt){return clearTimeout(Lt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wt=function(Lt){return window.requestAnimationFrame(Lt)},Dt=function(Lt){return window.cancelAnimationFrame(Lt)});var tt=0,fn=new Map;function hn(St){fn.delete(St)}var $n=function(Lt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;tt+=1;var $e=tt;function Wt(bn){if(bn===0)hn($e),Lt();else{var Rn=wt(function(){Wt(bn-1)});fn.set($e,Rn)}}return Wt(jt),$e};$n.cancel=function(St){var Lt=fn.get(St);return hn(Lt),Dt(Lt)};var no=$n,rt=function(){var St=E.useRef(null);function Lt(){no.cancel(St.current)}function jt($e){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Lt();var bn=no(function(){Wt<=1?$e({isCanceled:function(){return bn!==St.current}}):jt($e,Wt-1)});St.current=bn}return E.useEffect(function(){return function(){Lt()}},[]),[jt,Lt]},vt=ce()?E.useLayoutEffect:E.useEffect,An=vt,Zt=[Qe,_t,Rt,Yt],yt=!1,Nn=!0;function Xt(St){return St===Rt||St===Yt}var qn=function(St,Lt){var jt=gt(Je),$e=(0,oe.Z)(jt,2),Wt=$e[0],bn=$e[1],Rn=rt(),Nt=(0,oe.Z)(Rn,2),$t=Nt[0],It=Nt[1];function Ft(){bn(Qe,!0)}return An(function(){if(Wt!==Je&&Wt!==Yt){var Tt=Zt.indexOf(Wt),Ht=Zt[Tt+1],Kt=Lt(Wt);Kt===yt?bn(Ht,!0):$t(function(jn){function tr(){jn.isCanceled()||bn(Ht,!0)}Kt===!0?tr():Promise.resolve(Kt).then(tr)})}},[St,Wt]),E.useEffect(function(){return function(){It()}},[]),[Ft,Wt]},Br=function(St){var Lt=(0,E.useRef)(),jt=(0,E.useRef)(St);jt.current=St;var $e=E.useCallback(function(Rn){jt.current(Rn)},[]);function Wt(Rn){Rn&&(Rn.removeEventListener(He,$e),Rn.removeEventListener(xn,$e))}function bn(Rn){Lt.current&&Lt.current!==Rn&&Wt(Lt.current),Rn&&Rn!==Lt.current&&(Rn.addEventListener(He,$e),Rn.addEventListener(xn,$e),Lt.current=Rn)}return E.useEffect(function(){return function(){Wt(Lt.current)}},[]),[bn,Wt]};function or(St,Lt,jt,$e){var Wt=$e.motionEnter,bn=Wt===void 0?!0:Wt,Rn=$e.motionAppear,Nt=Rn===void 0?!0:Rn,$t=$e.motionLeave,It=$t===void 0?!0:$t,Ft=$e.motionDeadline,Tt=$e.motionLeaveImmediately,Ht=$e.onAppearPrepare,Kt=$e.onEnterPrepare,jn=$e.onLeavePrepare,tr=$e.onAppearStart,Pr=$e.onEnterStart,Cn=$e.onLeaveStart,dr=$e.onAppearActive,ze=$e.onEnterActive,ke=$e.onLeaveActive,qe=$e.onAppearEnd,bt=$e.onEnterEnd,kt=$e.onLeaveEnd,Ut=$e.onVisibleChanged,cn=gt(),an=(0,oe.Z)(cn,2),mn=an[0],vn=an[1],Zn=gt(kn),Hn=(0,oe.Z)(Zn,2),gr=Hn[0],Fr=Hn[1],Cr=gt(null),Or=(0,oe.Z)(Cr,2),so=Or[0],Co=Or[1],kr=(0,E.useRef)(!1),To=(0,E.useRef)(null);function mo(){return jt()}var Oo=(0,E.useRef)(!1);function ki(Fo){var ni=mo();if(!(Fo&&!Fo.deadline&&Fo.target!==ni)){var mr=Oo.current,Ca;gr===nr&&mr?Ca=qe==null?void 0:qe(ni,Fo):gr===Ln&&mr?Ca=bt==null?void 0:bt(ni,Fo):gr===Gt&&mr&&(Ca=kt==null?void 0:kt(ni,Fo)),gr!==kn&&mr&&Ca!==!1&&(Fr(kn,!0),Co(null,!0))}}var ma=Br(ki),vi=(0,oe.Z)(ma,1),ia=vi[0],ai=E.useMemo(function(){var Fo,ni,mr;switch(gr){case nr:return Fo={},(0,fe.Z)(Fo,Qe,Ht),(0,fe.Z)(Fo,_t,tr),(0,fe.Z)(Fo,Rt,dr),Fo;case Ln:return ni={},(0,fe.Z)(ni,Qe,Kt),(0,fe.Z)(ni,_t,Pr),(0,fe.Z)(ni,Rt,ze),ni;case Gt:return mr={},(0,fe.Z)(mr,Qe,jn),(0,fe.Z)(mr,_t,Cn),(0,fe.Z)(mr,Rt,ke),mr;default:return{}}},[gr]),Ea=qn(gr,function(Fo){if(Fo===Qe){var ni=ai[Qe];return ni?ni(mo()):yt}if(Xi in ai){var mr;Co(((mr=ai[Xi])===null||mr===void 0?void 0:mr.call(ai,mo(),null))||null)}return Xi===Rt&&(ia(mo()),Ft>0&&(clearTimeout(To.current),To.current=setTimeout(function(){ki({deadline:!0})},Ft))),Nn}),Ki=(0,oe.Z)(Ea,2),aa=Ki[0],Xi=Ki[1],Ga=Xt(Xi);Oo.current=Ga,An(function(){vn(Lt);var Fo=kr.current;if(kr.current=!0,!!St){var ni;!Fo&&Lt&&Nt&&(ni=nr),Fo&&Lt&&bn&&(ni=Ln),(Fo&&!Lt&&It||!Fo&&Tt&&!Lt&&It)&&(ni=Gt),ni&&(Fr(ni),aa())}},[Lt]),(0,E.useEffect)(function(){(gr===nr&&!Nt||gr===Ln&&!bn||gr===Gt&&!It)&&Fr(kn)},[Nt,bn,It]),(0,E.useEffect)(function(){return function(){kr.current=!1,clearTimeout(To.current)}},[]);var xa=E.useRef(!1);(0,E.useEffect)(function(){mn&&(xa.current=!0),mn!==void 0&&gr===kn&&((xa.current||mn)&&(Ut==null||Ut(mn)),xa.current=!0)},[mn,gr]);var da=so;return ai[Qe]&&Xi===_t&&(da=(0,ve.Z)({transition:"none"},da)),[gr,Xi,da,mn!=null?mn:Lt]}var Gn=function(St){(0,le.Z)(jt,St);var Lt=(0,ue.Z)(jt);function jt(){return(0,pe.Z)(this,jt),Lt.apply(this,arguments)}return(0,ie.Z)(jt,[{key:"render",value:function(){return this.props.children}}]),jt}(E.Component),ir=Gn;function So(St){var Lt=St;(0,Pe.Z)(St)==="object"&&(Lt=St.transitionSupport);function jt(Wt){return!!(Wt.motionName&&Lt)}var $e=E.forwardRef(function(Wt,bn){var Rn=Wt.visible,Nt=Rn===void 0?!0:Rn,$t=Wt.removeOnLeave,It=$t===void 0?!0:$t,Ft=Wt.forceRender,Tt=Wt.children,Ht=Wt.motionName,Kt=Wt.leavedClassName,jn=Wt.eventProps,tr=jt(Wt),Pr=(0,E.useRef)(),Cn=(0,E.useRef)();function dr(){try{return Pr.current instanceof HTMLElement?Pr.current:ut(Cn.current)}catch(Cr){return null}}var ze=or(tr,Nt,dr,Wt),ke=(0,oe.Z)(ze,4),qe=ke[0],bt=ke[1],kt=ke[2],Ut=ke[3],cn=E.useRef(Ut);Ut&&(cn.current=!0);var an=E.useCallback(function(Cr){Pr.current=Cr,Ae(bn,Cr)},[bn]),mn,vn=(0,ve.Z)((0,ve.Z)({},jn),{},{visible:Nt});if(!Tt)mn=null;else if(qe===kn||!jt(Wt))Ut?mn=Tt((0,ve.Z)({},vn),an):!It&&cn.current&&Kt?mn=Tt((0,ve.Z)((0,ve.Z)({},vn),{},{className:Kt}),an):Ft||!It&&!Kt?mn=Tt((0,ve.Z)((0,ve.Z)({},vn),{},{style:{display:"none"}}),an):mn=null;else{var Zn,Hn;bt===Qe?Hn="prepare":Xt(bt)?Hn="active":bt===_t&&(Hn="start"),mn=Tt((0,ve.Z)((0,ve.Z)({},vn),{},{className:me()(un(Ht,qe),(Zn={},(0,fe.Z)(Zn,un(Ht,"".concat(qe,"-").concat(Hn)),Hn),(0,fe.Z)(Zn,Ht,typeof Ht=="string"),Zn)),style:kt}),an)}if(E.isValidElement(mn)&&nt(mn)){var gr=mn,Fr=gr.ref;Fr||(mn=E.cloneElement(mn,{ref:an}))}return E.createElement(ir,{ref:Cn},mn)});return $e.displayName="CSSMotion",$e}var On=So(Vt),qr="add",Yo="keep",Zo="remove",qo="removed";function yr(St){var Lt;return St&&(0,Pe.Z)(St)==="object"&&"key"in St?Lt=St:Lt={key:St},(0,ve.Z)((0,ve.Z)({},Lt),{},{key:String(Lt.key)})}function xo(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return St.map(yr)}function Wo(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=[],$e=0,Wt=Lt.length,bn=xo(St),Rn=xo(Lt);bn.forEach(function(It){for(var Ft=!1,Tt=$e;Tt<Wt;Tt+=1){var Ht=Rn[Tt];if(Ht.key===It.key){$e<Tt&&(jt=jt.concat(Rn.slice($e,Tt).map(function(Kt){return(0,ve.Z)((0,ve.Z)({},Kt),{},{status:qr})})),$e=Tt),jt.push((0,ve.Z)((0,ve.Z)({},Ht),{},{status:Yo})),$e+=1,Ft=!0;break}}Ft||jt.push((0,ve.Z)((0,ve.Z)({},It),{},{status:Zo}))}),$e<Wt&&(jt=jt.concat(Rn.slice($e).map(function(It){return(0,ve.Z)((0,ve.Z)({},It),{},{status:qr})})));var Nt={};jt.forEach(function(It){var Ft=It.key;Nt[Ft]=(Nt[Ft]||0)+1});var $t=Object.keys(Nt).filter(function(It){return Nt[It]>1});return $t.forEach(function(It){jt=jt.filter(function(Ft){var Tt=Ft.key,Ht=Ft.status;return Tt!==It||Ht!==Zo}),jt.forEach(function(Ft){Ft.key===It&&(Ft.status=Yo)})}),jt}var Wi=["component","children","onVisibleChanged","onAllRemoved"],$i=["status"],Ci=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ei(St){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:On,jt=function($e){(0,le.Z)(bn,$e);var Wt=(0,ue.Z)(bn);function bn(){var Rn;(0,pe.Z)(this,bn);for(var Nt=arguments.length,$t=new Array(Nt),It=0;It<Nt;It++)$t[It]=arguments[It];return Rn=Wt.call.apply(Wt,[this].concat($t)),(0,fe.Z)((0,de.Z)(Rn),"state",{keyEntities:[]}),(0,fe.Z)((0,de.Z)(Rn),"removeKey",function(Ft){var Tt=Rn.state.keyEntities,Ht=Tt.map(function(Kt){return Kt.key!==Ft?Kt:(0,ve.Z)((0,ve.Z)({},Kt),{},{status:qo})});return Rn.setState({keyEntities:Ht}),Ht.filter(function(Kt){var jn=Kt.status;return jn!==qo}).length}),Rn}return(0,ie.Z)(bn,[{key:"render",value:function(){var Nt=this,$t=this.state.keyEntities,It=this.props,Ft=It.component,Tt=It.children,Ht=It.onVisibleChanged,Kt=It.onAllRemoved,jn=(0,ae.Z)(It,Wi),tr=Ft||E.Fragment,Pr={};return Ci.forEach(function(Cn){Pr[Cn]=jn[Cn],delete jn[Cn]}),delete jn.keys,E.createElement(tr,jn,$t.map(function(Cn){var dr=Cn.status,ze=(0,ae.Z)(Cn,$i),ke=dr===qr||dr===Yo;return E.createElement(Lt,(0,z.Z)({},Pr,{key:ze.key,visible:ke,eventProps:ze,onVisibleChanged:function(bt){if(Ht==null||Ht(bt,{key:ze.key}),!bt){var kt=Nt.removeKey(ze.key);kt===0&&Kt&&Kt()}}}),Tt)}))}}],[{key:"getDerivedStateFromProps",value:function(Nt,$t){var It=Nt.keys,Ft=$t.keyEntities,Tt=xo(It),Ht=Wo(Ft,Tt);return{keyEntities:Ht.filter(function(Kt){var jn=Ft.find(function(tr){var Pr=tr.key;return Kt.key===Pr});return!(jn&&jn.status===qo&&Kt.status===Zo)})}}}]),bn}(E.Component);return(0,fe.Z)(jt,"defaultProps",{component:"div"}),jt}var po=ei(Vt),co=On,Ta=te(56261);function yn(St,Lt){var jt=E.useState(!1),$e=(0,oe.Z)(jt,2),Wt=$e[0],bn=$e[1];E.useLayoutEffect(function(){if(Wt)return St(),function(){Lt()}},[Wt]),E.useLayoutEffect(function(){return bn(!0),function(){bn(!1)}},[])}var ge=te(83898),ye=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],be=function(Lt,jt){var $e=Lt.className,Wt=Lt.style,bn=Lt.motion,Rn=Lt.motionNodes,Nt=Lt.motionType,$t=Lt.onMotionStart,It=Lt.onMotionEnd,Ft=Lt.active,Tt=Lt.treeNodeRequiredProps,Ht=(0,ae.Z)(Lt,ye),Kt=E.useState(!0),jn=(0,oe.Z)(Kt,2),tr=jn[0],Pr=jn[1],Cn=E.useContext(b.k),dr=Cn.prefixCls,ze=Rn&&Nt!=="hide";_e(function(){Rn&&ze!==tr&&Pr(ze)},[Rn]);var ke=function(){Rn&&$t()},qe=E.useRef(!1),bt=function(){Rn&&!qe.current&&(qe.current=!0,It())};yn(ke,bt);var kt=function(cn){ze===cn&&bt()};return Rn?E.createElement(co,(0,z.Z)({ref:jt,visible:tr},bn,{motionAppear:Nt==="show",onVisibleChanged:kt}),function(Ut,cn){var an=Ut.className,mn=Ut.style;return E.createElement("div",{ref:cn,className:me()("".concat(dr,"-treenode-motion"),an),style:mn},Rn.map(function(vn){var Zn=(0,z.Z)({},((0,ee.Z)(vn.data),vn.data)),Hn=vn.title,gr=vn.key,Fr=vn.isStart,Cr=vn.isEnd;delete Zn.children;var Or=(0,ge.H8)(gr,Tt);return E.createElement(Ta.Z,(0,z.Z)({},Zn,Or,{title:Hn,active:Ft,data:vn.data,key:gr,isStart:Fr,isEnd:Cr}))}))}):E.createElement(Ta.Z,(0,z.Z)({domRef:jt,className:$e,style:Wt},Ht,{active:Ft}))};be.displayName="MotionTreeNode";var Le=E.forwardRef(be),Ne=Le;function et(){var St=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=St.length,$e=Lt.length;if(Math.abs(jt-$e)!==1)return{add:!1,key:null};function Wt(bn,Rn){var Nt=new Map;bn.forEach(function(It){Nt.set(It,!0)});var $t=Rn.filter(function(It){return!Nt.has(It)});return $t.length===1?$t[0]:null}return jt<$e?{add:!0,key:Wt(St,Lt)}:{add:!1,key:Wt(Lt,St)}}function ct(St,Lt,jt){var $e=St.findIndex(function(Nt){return Nt.key===jt}),Wt=St[$e+1],bn=Lt.findIndex(function(Nt){return Nt.key===jt});if(Wt){var Rn=Lt.findIndex(function(Nt){return Nt.key===Wt.key});return Lt.slice(bn+1,Rn)}return Lt.slice(bn+1)}var _n=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],rn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},In=function(){},pr="RC_TREE_MOTION_".concat(Math.random()),_r={key:pr},Mt={key:pr,level:0,index:0,pos:"0",node:_r,nodes:[_r]},ur={parent:null,children:[],pos:Mt.pos,data:_r,title:null,key:pr,isStart:[],isEnd:[]};function er(St,Lt,jt,$e){return Lt===!1||!jt?St:St.slice(0,Math.ceil(jt/$e)+1)}function Tn(St){var Lt=St.key,jt=St.pos;return(0,ge.km)(Lt,jt)}function Un(St){for(var Lt=String(St.data.key),jt=St;jt.parent;)jt=jt.parent,Lt="".concat(jt.data.key," > ").concat(Lt);return Lt}var sr=E.forwardRef(function(St,Lt){var jt=St.prefixCls,$e=St.data,Wt=St.selectable,bn=St.checkable,Rn=St.expandedKeys,Nt=St.selectedKeys,$t=St.checkedKeys,It=St.loadedKeys,Ft=St.loadingKeys,Tt=St.halfCheckedKeys,Ht=St.keyEntities,Kt=St.disabled,jn=St.dragging,tr=St.dragOverNodeKey,Pr=St.dropPosition,Cn=St.motion,dr=St.height,ze=St.itemHeight,ke=St.virtual,qe=St.focusable,bt=St.activeItem,kt=St.focused,Ut=St.tabIndex,cn=St.onKeyDown,an=St.onFocus,mn=St.onBlur,vn=St.onActiveChange,Zn=St.onListChangeStart,Hn=St.onListChangeEnd,gr=(0,ae.Z)(St,_n),Fr=E.useRef(null),Cr=E.useRef(null);E.useImperativeHandle(Lt,function(){return{scrollTo:function(ji){Fr.current.scrollTo(ji)},getIndentWidth:function(){return Cr.current.offsetWidth}}});var Or=E.useState(Rn),so=(0,oe.Z)(Or,2),Co=so[0],kr=so[1],To=E.useState($e),mo=(0,oe.Z)(To,2),Oo=mo[0],ki=mo[1],ma=E.useState($e),vi=(0,oe.Z)(ma,2),ia=vi[0],ai=vi[1],Ea=E.useState([]),Ki=(0,oe.Z)(Ea,2),aa=Ki[0],Xi=Ki[1],Ga=E.useState(null),xa=(0,oe.Z)(Ga,2),da=xa[0],Fo=xa[1],ni=E.useRef($e);ni.current=$e;function mr(){var Oi=ni.current;ki(Oi),ai(Oi),Xi([]),Fo(null),Hn()}_e(function(){kr(Rn);var Oi=et(Co,Rn);if(Oi.key!==null)if(Oi.add){var ji=Oo.findIndex(function(Ai){var Bi=Ai.key;return Bi===Oi.key}),wa=er(ct(Oo,$e,Oi.key),ke,dr,ze),Ii=Oo.slice();Ii.splice(ji+1,0,ur),ai(Ii),Xi(wa),Fo("show")}else{var _i=$e.findIndex(function(Ai){var Bi=Ai.key;return Bi===Oi.key}),bi=er(ct($e,Oo,Oi.key),ke,dr,ze),Za=$e.slice();Za.splice(_i+1,0,ur),ai(Za),Xi(bi),Fo("hide")}else Oo!==$e&&(ki($e),ai($e))},[Rn,$e]),E.useEffect(function(){jn||mr()},[jn]);var Ca=Cn?ia:$e,Xa={expandedKeys:Rn,selectedKeys:Nt,loadedKeys:It,loadingKeys:Ft,checkedKeys:$t,halfCheckedKeys:Tt,dragOverNodeKey:tr,dropPosition:Pr,keyEntities:Ht};return E.createElement(E.Fragment,null,kt&&bt&&E.createElement("span",{style:rn,"aria-live":"assertive"},Un(bt)),E.createElement("div",null,E.createElement("input",{style:rn,disabled:qe===!1||Kt,tabIndex:qe!==!1?Ut:null,onKeyDown:cn,onFocus:an,onBlur:mn,value:"",onChange:In,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(jt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(jt,"-indent")},E.createElement("div",{ref:Cr,className:"".concat(jt,"-indent-unit")}))),E.createElement(we.Z,(0,z.Z)({},gr,{data:Ca,itemKey:Tn,height:dr,fullHeight:!1,virtual:ke,itemHeight:ze,prefixCls:"".concat(jt,"-list"),ref:Fr,onVisibleChange:function(ji,wa){var Ii=new Set(ji),_i=wa.filter(function(bi){return!Ii.has(bi)});_i.some(function(bi){return Tn(bi)===pr})&&mr()}}),function(Oi){var ji=Oi.pos,wa=(0,z.Z)({},((0,ee.Z)(Oi.data),Oi.data)),Ii=Oi.title,_i=Oi.key,bi=Oi.isStart,Za=Oi.isEnd,Ai=(0,ge.km)(_i,ji);delete wa.key,delete wa.children;var Bi=(0,ge.H8)(Ai,Xa);return E.createElement(Ne,(0,z.Z)({},wa,Bi,{title:Ii,active:!!bt&&_i===bt.key,pos:ji,data:Oi.data,isStart:bi,isEnd:Za,motion:Cn,motionNodes:_i===pr?aa:null,motionType:da,onMotionStart:Zn,onMotionEnd:mr,treeNodeRequiredProps:Xa,onMouseMove:function(){vn(null)}}))}))});sr.displayName="NodeList";var Zr=sr,xr=te(29873),Gi=te(97153),Xo=te(3596),br=10,_o=function(St){(0,le.Z)(jt,St);var Lt=(0,ue.Z)(jt);function jt(){var $e;(0,pe.Z)(this,jt);for(var Wt=arguments.length,bn=new Array(Wt),Rn=0;Rn<Wt;Rn++)bn[Rn]=arguments[Rn];return $e=Lt.call.apply(Lt,[this].concat(bn)),$e.destroyed=!1,$e.delayedDragEnterLogic=void 0,$e.loadingRetryTimes={},$e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ge.w$)()},$e.dragStartMousePosition=null,$e.dragNode=void 0,$e.currentMouseOverDroppableNodeKey=null,$e.listRef=E.createRef(),$e.onNodeDragStart=function(Nt,$t){var It=$e.state,Ft=It.expandedKeys,Tt=It.keyEntities,Ht=$e.props.onDragStart,Kt=$t.props.eventKey;$e.dragNode=$t,$e.dragStartMousePosition={x:Nt.clientX,y:Nt.clientY};var jn=(0,xr._5)(Ft,Kt);$e.setState({draggingNodeKey:Kt,dragChildrenKeys:(0,xr.wA)(Kt,Tt),indent:$e.listRef.current.getIndentWidth()}),$e.setExpandedKeys(jn),window.addEventListener("dragend",$e.onWindowDragEnd),Ht==null||Ht({event:Nt,node:(0,ge.F)($t.props)})},$e.onNodeDragEnter=function(Nt,$t){var It=$e.state,Ft=It.expandedKeys,Tt=It.keyEntities,Ht=It.dragChildrenKeys,Kt=It.flattenNodes,jn=It.indent,tr=$e.props,Pr=tr.onDragEnter,Cn=tr.onExpand,dr=tr.allowDrop,ze=tr.direction,ke=$t.props,qe=ke.pos,bt=ke.eventKey,kt=(0,de.Z)($e),Ut=kt.dragNode;if($e.currentMouseOverDroppableNodeKey!==bt&&($e.currentMouseOverDroppableNodeKey=bt),!Ut){$e.resetDragState();return}var cn=(0,xr.OM)(Nt,Ut,$t,jn,$e.dragStartMousePosition,dr,Kt,Tt,Ft,ze),an=cn.dropPosition,mn=cn.dropLevelOffset,vn=cn.dropTargetKey,Zn=cn.dropContainerKey,Hn=cn.dropTargetPos,gr=cn.dropAllowed,Fr=cn.dragOverNodeKey;if(Ht.indexOf(vn)!==-1||!gr){$e.resetDragState();return}if($e.delayedDragEnterLogic||($e.delayedDragEnterLogic={}),Object.keys($e.delayedDragEnterLogic).forEach(function(Cr){clearTimeout($e.delayedDragEnterLogic[Cr])}),Ut.props.eventKey!==$t.props.eventKey&&(Nt.persist(),$e.delayedDragEnterLogic[qe]=window.setTimeout(function(){if($e.state.draggingNodeKey!==null){var Cr=(0,he.Z)(Ft),Or=(0,Xo.Z)(Tt,$t.props.eventKey);Or&&(Or.children||[]).length&&(Cr=(0,xr.L0)(Ft,$t.props.eventKey)),"expandedKeys"in $e.props||$e.setExpandedKeys(Cr),Cn==null||Cn(Cr,{node:(0,ge.F)($t.props),expanded:!0,nativeEvent:Nt.nativeEvent})}},800)),Ut.props.eventKey===vn&&mn===0){$e.resetDragState();return}$e.setState({dragOverNodeKey:Fr,dropPosition:an,dropLevelOffset:mn,dropTargetKey:vn,dropContainerKey:Zn,dropTargetPos:Hn,dropAllowed:gr}),Pr==null||Pr({event:Nt,node:(0,ge.F)($t.props),expandedKeys:Ft})},$e.onNodeDragOver=function(Nt,$t){var It=$e.state,Ft=It.dragChildrenKeys,Tt=It.flattenNodes,Ht=It.keyEntities,Kt=It.expandedKeys,jn=It.indent,tr=$e.props,Pr=tr.onDragOver,Cn=tr.allowDrop,dr=tr.direction,ze=(0,de.Z)($e),ke=ze.dragNode;if(ke){var qe=(0,xr.OM)(Nt,ke,$t,jn,$e.dragStartMousePosition,Cn,Tt,Ht,Kt,dr),bt=qe.dropPosition,kt=qe.dropLevelOffset,Ut=qe.dropTargetKey,cn=qe.dropContainerKey,an=qe.dropAllowed,mn=qe.dropTargetPos,vn=qe.dragOverNodeKey;Ft.indexOf(Ut)!==-1||!an||(ke.props.eventKey===Ut&&kt===0?$e.state.dropPosition===null&&$e.state.dropLevelOffset===null&&$e.state.dropTargetKey===null&&$e.state.dropContainerKey===null&&$e.state.dropTargetPos===null&&$e.state.dropAllowed===!1&&$e.state.dragOverNodeKey===null||$e.resetDragState():bt===$e.state.dropPosition&&kt===$e.state.dropLevelOffset&&Ut===$e.state.dropTargetKey&&cn===$e.state.dropContainerKey&&mn===$e.state.dropTargetPos&&an===$e.state.dropAllowed&&vn===$e.state.dragOverNodeKey||$e.setState({dropPosition:bt,dropLevelOffset:kt,dropTargetKey:Ut,dropContainerKey:cn,dropTargetPos:mn,dropAllowed:an,dragOverNodeKey:vn}),Pr==null||Pr({event:Nt,node:(0,ge.F)($t.props)}))}},$e.onNodeDragLeave=function(Nt,$t){$e.currentMouseOverDroppableNodeKey===$t.props.eventKey&&!Nt.currentTarget.contains(Nt.relatedTarget)&&($e.resetDragState(),$e.currentMouseOverDroppableNodeKey=null);var It=$e.props.onDragLeave;It==null||It({event:Nt,node:(0,ge.F)($t.props)})},$e.onWindowDragEnd=function(Nt){$e.onNodeDragEnd(Nt,null,!0),window.removeEventListener("dragend",$e.onWindowDragEnd)},$e.onNodeDragEnd=function(Nt,$t){var It=$e.props.onDragEnd;$e.setState({dragOverNodeKey:null}),$e.cleanDragState(),It==null||It({event:Nt,node:(0,ge.F)($t.props)}),$e.dragNode=null,window.removeEventListener("dragend",$e.onWindowDragEnd)},$e.onNodeDrop=function(Nt,$t){var It,Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Tt=$e.state,Ht=Tt.dragChildrenKeys,Kt=Tt.dropPosition,jn=Tt.dropTargetKey,tr=Tt.dropTargetPos,Pr=Tt.dropAllowed;if(Pr){var Cn=$e.props.onDrop;if($e.setState({dragOverNodeKey:null}),$e.cleanDragState(),jn!==null){var dr=(0,ve.Z)((0,ve.Z)({},(0,ge.H8)(jn,$e.getTreeNodeRequiredProps())),{},{active:((It=$e.getActiveItem())===null||It===void 0?void 0:It.key)===jn,data:(0,Xo.Z)($e.state.keyEntities,jn).node}),ze=Ht.indexOf(jn)!==-1;(0,y.ZP)(!ze,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ke=(0,xr.yx)(tr),qe={event:Nt,node:(0,ge.F)(dr),dragNode:$e.dragNode?(0,ge.F)($e.dragNode.props):null,dragNodesKeys:[$e.dragNode.props.eventKey].concat(Ht),dropToGap:Kt!==0,dropPosition:Kt+Number(ke[ke.length-1])};Ft||Cn==null||Cn(qe),$e.dragNode=null}}},$e.cleanDragState=function(){var Nt=$e.state.draggingNodeKey;Nt!==null&&$e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$e.dragStartMousePosition=null,$e.currentMouseOverDroppableNodeKey=null},$e.triggerExpandActionExpand=function(Nt,$t){var It=$e.state,Ft=It.expandedKeys,Tt=It.flattenNodes,Ht=$t.expanded,Kt=$t.key,jn=$t.isLeaf;if(!(jn||Nt.shiftKey||Nt.metaKey||Nt.ctrlKey)){var tr=Tt.filter(function(Cn){return Cn.key===Kt})[0],Pr=(0,ge.F)((0,ve.Z)((0,ve.Z)({},(0,ge.H8)(Kt,$e.getTreeNodeRequiredProps())),{},{data:tr.data}));$e.setExpandedKeys(Ht?(0,xr._5)(Ft,Kt):(0,xr.L0)(Ft,Kt)),$e.onNodeExpand(Nt,Pr)}},$e.onNodeClick=function(Nt,$t){var It=$e.props,Ft=It.onClick,Tt=It.expandAction;Tt==="click"&&$e.triggerExpandActionExpand(Nt,$t),Ft==null||Ft(Nt,$t)},$e.onNodeDoubleClick=function(Nt,$t){var It=$e.props,Ft=It.onDoubleClick,Tt=It.expandAction;Tt==="doubleClick"&&$e.triggerExpandActionExpand(Nt,$t),Ft==null||Ft(Nt,$t)},$e.onNodeSelect=function(Nt,$t){var It=$e.state.selectedKeys,Ft=$e.state,Tt=Ft.keyEntities,Ht=Ft.fieldNames,Kt=$e.props,jn=Kt.onSelect,tr=Kt.multiple,Pr=$t.selected,Cn=$t[Ht.key],dr=!Pr;dr?tr?It=(0,xr.L0)(It,Cn):It=[Cn]:It=(0,xr._5)(It,Cn);var ze=It.map(function(ke){var qe=(0,Xo.Z)(Tt,ke);return qe?qe.node:null}).filter(function(ke){return ke});$e.setUncontrolledState({selectedKeys:It}),jn==null||jn(It,{event:"select",selected:dr,node:$t,selectedNodes:ze,nativeEvent:Nt.nativeEvent})},$e.onNodeCheck=function(Nt,$t,It){var Ft=$e.state,Tt=Ft.keyEntities,Ht=Ft.checkedKeys,Kt=Ft.halfCheckedKeys,jn=$e.props,tr=jn.checkStrictly,Pr=jn.onCheck,Cn=$t.key,dr,ze={event:"check",node:$t,checked:It,nativeEvent:Nt.nativeEvent};if(tr){var ke=It?(0,xr.L0)(Ht,Cn):(0,xr._5)(Ht,Cn),qe=(0,xr._5)(Kt,Cn);dr={checked:ke,halfChecked:qe},ze.checkedNodes=ke.map(function(mn){return(0,Xo.Z)(Tt,mn)}).filter(function(mn){return mn}).map(function(mn){return mn.node}),$e.setUncontrolledState({checkedKeys:ke})}else{var bt=(0,Gi.S)([].concat((0,he.Z)(Ht),[Cn]),!0,Tt),kt=bt.checkedKeys,Ut=bt.halfCheckedKeys;if(!It){var cn=new Set(kt);cn.delete(Cn);var an=(0,Gi.S)(Array.from(cn),{checked:!1,halfCheckedKeys:Ut},Tt);kt=an.checkedKeys,Ut=an.halfCheckedKeys}dr=kt,ze.checkedNodes=[],ze.checkedNodesPositions=[],ze.halfCheckedKeys=Ut,kt.forEach(function(mn){var vn=(0,Xo.Z)(Tt,mn);if(vn){var Zn=vn.node,Hn=vn.pos;ze.checkedNodes.push(Zn),ze.checkedNodesPositions.push({node:Zn,pos:Hn})}}),$e.setUncontrolledState({checkedKeys:kt},!1,{halfCheckedKeys:Ut})}Pr==null||Pr(dr,ze)},$e.onNodeLoad=function(Nt){var $t=Nt.key,It=new Promise(function(Ft,Tt){$e.setState(function(Ht){var Kt=Ht.loadedKeys,jn=Kt===void 0?[]:Kt,tr=Ht.loadingKeys,Pr=tr===void 0?[]:tr,Cn=$e.props,dr=Cn.loadData,ze=Cn.onLoad;if(!dr||jn.indexOf($t)!==-1||Pr.indexOf($t)!==-1)return null;var ke=dr(Nt);return ke.then(function(){var qe=$e.state.loadedKeys,bt=(0,xr.L0)(qe,$t);ze==null||ze(bt,{event:"load",node:Nt}),$e.setUncontrolledState({loadedKeys:bt}),$e.setState(function(kt){return{loadingKeys:(0,xr._5)(kt.loadingKeys,$t)}}),Ft()}).catch(function(qe){if($e.setState(function(kt){return{loadingKeys:(0,xr._5)(kt.loadingKeys,$t)}}),$e.loadingRetryTimes[$t]=($e.loadingRetryTimes[$t]||0)+1,$e.loadingRetryTimes[$t]>=br){var bt=$e.state.loadedKeys;(0,y.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),$e.setUncontrolledState({loadedKeys:(0,xr.L0)(bt,$t)}),Ft()}Tt(qe)}),{loadingKeys:(0,xr.L0)(Pr,$t)}})});return It.catch(function(){}),It},$e.onNodeMouseEnter=function(Nt,$t){var It=$e.props.onMouseEnter;It==null||It({event:Nt,node:$t})},$e.onNodeMouseLeave=function(Nt,$t){var It=$e.props.onMouseLeave;It==null||It({event:Nt,node:$t})},$e.onNodeContextMenu=function(Nt,$t){var It=$e.props.onRightClick;It&&(Nt.preventDefault(),It({event:Nt,node:$t}))},$e.onFocus=function(){var Nt=$e.props.onFocus;$e.setState({focused:!0});for(var $t=arguments.length,It=new Array($t),Ft=0;Ft<$t;Ft++)It[Ft]=arguments[Ft];Nt==null||Nt.apply(void 0,It)},$e.onBlur=function(){var Nt=$e.props.onBlur;$e.setState({focused:!1}),$e.onActiveChange(null);for(var $t=arguments.length,It=new Array($t),Ft=0;Ft<$t;Ft++)It[Ft]=arguments[Ft];Nt==null||Nt.apply(void 0,It)},$e.getTreeNodeRequiredProps=function(){var Nt=$e.state,$t=Nt.expandedKeys,It=Nt.selectedKeys,Ft=Nt.loadedKeys,Tt=Nt.loadingKeys,Ht=Nt.checkedKeys,Kt=Nt.halfCheckedKeys,jn=Nt.dragOverNodeKey,tr=Nt.dropPosition,Pr=Nt.keyEntities;return{expandedKeys:$t||[],selectedKeys:It||[],loadedKeys:Ft||[],loadingKeys:Tt||[],checkedKeys:Ht||[],halfCheckedKeys:Kt||[],dragOverNodeKey:jn,dropPosition:tr,keyEntities:Pr}},$e.setExpandedKeys=function(Nt){var $t=$e.state,It=$t.treeData,Ft=$t.fieldNames,Tt=(0,ge.oH)(It,Nt,Ft);$e.setUncontrolledState({expandedKeys:Nt,flattenNodes:Tt},!0)},$e.onNodeExpand=function(Nt,$t){var It=$e.state.expandedKeys,Ft=$e.state,Tt=Ft.listChanging,Ht=Ft.fieldNames,Kt=$e.props,jn=Kt.onExpand,tr=Kt.loadData,Pr=$t.expanded,Cn=$t[Ht.key];if(!Tt){var dr=It.indexOf(Cn),ze=!Pr;if((0,y.ZP)(Pr&&dr!==-1||!Pr&&dr===-1,"Expand state not sync with index check"),ze?It=(0,xr.L0)(It,Cn):It=(0,xr._5)(It,Cn),$e.setExpandedKeys(It),jn==null||jn(It,{node:$t,expanded:ze,nativeEvent:Nt.nativeEvent}),ze&&tr){var ke=$e.onNodeLoad($t);ke&&ke.then(function(){var qe=(0,ge.oH)($e.state.treeData,It,Ht);$e.setUncontrolledState({flattenNodes:qe})}).catch(function(){var qe=$e.state.expandedKeys,bt=(0,xr._5)(qe,Cn);$e.setExpandedKeys(bt)})}}},$e.onListChangeStart=function(){$e.setUncontrolledState({listChanging:!0})},$e.onListChangeEnd=function(){setTimeout(function(){$e.setUncontrolledState({listChanging:!1})})},$e.onActiveChange=function(Nt){var $t=$e.state.activeKey,It=$e.props.onActiveChange;$t!==Nt&&($e.setState({activeKey:Nt}),Nt!==null&&$e.scrollTo({key:Nt}),It==null||It(Nt))},$e.getActiveItem=function(){var Nt=$e.state,$t=Nt.activeKey,It=Nt.flattenNodes;return $t===null?null:It.find(function(Ft){var Tt=Ft.key;return Tt===$t})||null},$e.offsetActiveKey=function(Nt){var $t=$e.state,It=$t.flattenNodes,Ft=$t.activeKey,Tt=It.findIndex(function(jn){var tr=jn.key;return tr===Ft});Tt===-1&&Nt<0&&(Tt=It.length),Tt=(Tt+Nt+It.length)%It.length;var Ht=It[Tt];if(Ht){var Kt=Ht.key;$e.onActiveChange(Kt)}else $e.onActiveChange(null)},$e.onKeyDown=function(Nt){var $t=$e.state,It=$t.activeKey,Ft=$t.expandedKeys,Tt=$t.checkedKeys,Ht=$t.fieldNames,Kt=$e.props,jn=Kt.onKeyDown,tr=Kt.checkable,Pr=Kt.selectable;switch(Nt.which){case ne.UP:{$e.offsetActiveKey(-1),Nt.preventDefault();break}case ne.DOWN:{$e.offsetActiveKey(1),Nt.preventDefault();break}}var Cn=$e.getActiveItem();if(Cn&&Cn.data){var dr=$e.getTreeNodeRequiredProps(),ze=Cn.data.isLeaf===!1||!!(Cn.data[Ht.children]||[]).length,ke=(0,ge.F)((0,ve.Z)((0,ve.Z)({},(0,ge.H8)(It,dr)),{},{data:Cn.data,active:!0}));switch(Nt.which){case ne.LEFT:{ze&&Ft.includes(It)?$e.onNodeExpand({},ke):Cn.parent&&$e.onActiveChange(Cn.parent.key),Nt.preventDefault();break}case ne.RIGHT:{ze&&!Ft.includes(It)?$e.onNodeExpand({},ke):Cn.children&&Cn.children.length&&$e.onActiveChange(Cn.children[0].key),Nt.preventDefault();break}case ne.ENTER:case ne.SPACE:{tr&&!ke.disabled&&ke.checkable!==!1&&!ke.disableCheckbox?$e.onNodeCheck({},ke,!Tt.includes(It)):!tr&&Pr&&!ke.disabled&&ke.selectable!==!1&&$e.onNodeSelect({},ke);break}}}jn==null||jn(Nt)},$e.setUncontrolledState=function(Nt){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!$e.destroyed){var Ft=!1,Tt=!0,Ht={};Object.keys(Nt).forEach(function(Kt){if(Kt in $e.props){Tt=!1;return}Ft=!0,Ht[Kt]=Nt[Kt]}),Ft&&(!$t||Tt)&&$e.setState((0,ve.Z)((0,ve.Z)({},Ht),It))}},$e.scrollTo=function(Nt){$e.listRef.current.scrollTo(Nt)},$e}return(0,ie.Z)(jt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Wt=this.props.activeKey;Wt!==void 0&&Wt!==this.state.activeKey&&(this.setState({activeKey:Wt}),Wt!==null&&this.scrollTo({key:Wt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Wt,bn=this.state,Rn=bn.focused,Nt=bn.flattenNodes,$t=bn.keyEntities,It=bn.draggingNodeKey,Ft=bn.activeKey,Tt=bn.dropLevelOffset,Ht=bn.dropContainerKey,Kt=bn.dropTargetKey,jn=bn.dropPosition,tr=bn.dragOverNodeKey,Pr=bn.indent,Cn=this.props,dr=Cn.prefixCls,ze=Cn.className,ke=Cn.style,qe=Cn.showLine,bt=Cn.focusable,kt=Cn.tabIndex,Ut=kt===void 0?0:kt,cn=Cn.selectable,an=Cn.showIcon,mn=Cn.icon,vn=Cn.switcherIcon,Zn=Cn.draggable,Hn=Cn.checkable,gr=Cn.checkStrictly,Fr=Cn.disabled,Cr=Cn.motion,Or=Cn.loadData,so=Cn.filterTreeNode,Co=Cn.height,kr=Cn.itemHeight,To=Cn.virtual,mo=Cn.titleRender,Oo=Cn.dropIndicatorRender,ki=Cn.onContextMenu,ma=Cn.onScroll,vi=Cn.direction,ia=Cn.rootClassName,ai=Cn.rootStyle,Ea=(0,a.Z)(this.props,{aria:!0,data:!0}),Ki;return Zn&&((0,Pe.Z)(Zn)==="object"?Ki=Zn:typeof Zn=="function"?Ki={nodeDraggable:Zn}:Ki={}),E.createElement(b.k.Provider,{value:{prefixCls:dr,selectable:cn,showIcon:an,icon:mn,switcherIcon:vn,draggable:Ki,draggingNodeKey:It,checkable:Hn,checkStrictly:gr,disabled:Fr,keyEntities:$t,dropLevelOffset:Tt,dropContainerKey:Ht,dropTargetKey:Kt,dropPosition:jn,dragOverNodeKey:tr,indent:Pr,direction:vi,dropIndicatorRender:Oo,loadData:Or,filterTreeNode:so,titleRender:mo,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},E.createElement("div",{role:"tree",className:me()(dr,ze,ia,(Wt={},(0,fe.Z)(Wt,"".concat(dr,"-show-line"),qe),(0,fe.Z)(Wt,"".concat(dr,"-focused"),Rn),(0,fe.Z)(Wt,"".concat(dr,"-active-focused"),Ft!==null),Wt)),style:ai},E.createElement(Zr,(0,z.Z)({ref:this.listRef,prefixCls:dr,style:ke,data:Nt,disabled:Fr,selectable:cn,checkable:!!Hn,motion:Cr,dragging:It!==null,height:Co,itemHeight:kr,virtual:To,focusable:bt,focused:Rn,tabIndex:Ut,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ki,onScroll:ma},this.getTreeNodeRequiredProps(),Ea))))}}],[{key:"getDerivedStateFromProps",value:function(Wt,bn){var Rn=bn.prevProps,Nt={prevProps:Wt};function $t(bt){return!Rn&&bt in Wt||Rn&&Rn[bt]!==Wt[bt]}var It,Ft=bn.fieldNames;if($t("fieldNames")&&(Ft=(0,ge.w$)(Wt.fieldNames),Nt.fieldNames=Ft),$t("treeData")?It=Wt.treeData:$t("children")&&((0,y.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),It=(0,ge.zn)(Wt.children)),It){Nt.treeData=It;var Tt=(0,ge.I8)(It,{fieldNames:Ft});Nt.keyEntities=(0,ve.Z)((0,fe.Z)({},pr,Mt),Tt.keyEntities)}var Ht=Nt.keyEntities||bn.keyEntities;if($t("expandedKeys")||Rn&&$t("autoExpandParent"))Nt.expandedKeys=Wt.autoExpandParent||!Rn&&Wt.defaultExpandParent?(0,xr.r7)(Wt.expandedKeys,Ht):Wt.expandedKeys;else if(!Rn&&Wt.defaultExpandAll){var Kt=(0,ve.Z)({},Ht);delete Kt[pr],Nt.expandedKeys=Object.keys(Kt).map(function(bt){return Kt[bt].key})}else!Rn&&Wt.defaultExpandedKeys&&(Nt.expandedKeys=Wt.autoExpandParent||Wt.defaultExpandParent?(0,xr.r7)(Wt.defaultExpandedKeys,Ht):Wt.defaultExpandedKeys);if(Nt.expandedKeys||delete Nt.expandedKeys,It||Nt.expandedKeys){var jn=(0,ge.oH)(It||bn.treeData,Nt.expandedKeys||bn.expandedKeys,Ft);Nt.flattenNodes=jn}if(Wt.selectable&&($t("selectedKeys")?Nt.selectedKeys=(0,xr.BT)(Wt.selectedKeys,Wt):!Rn&&Wt.defaultSelectedKeys&&(Nt.selectedKeys=(0,xr.BT)(Wt.defaultSelectedKeys,Wt))),Wt.checkable){var tr;if($t("checkedKeys")?tr=(0,xr.E6)(Wt.checkedKeys)||{}:!Rn&&Wt.defaultCheckedKeys?tr=(0,xr.E6)(Wt.defaultCheckedKeys)||{}:It&&(tr=(0,xr.E6)(Wt.checkedKeys)||{checkedKeys:bn.checkedKeys,halfCheckedKeys:bn.halfCheckedKeys}),tr){var Pr=tr,Cn=Pr.checkedKeys,dr=Cn===void 0?[]:Cn,ze=Pr.halfCheckedKeys,ke=ze===void 0?[]:ze;if(!Wt.checkStrictly){var qe=(0,Gi.S)(dr,!0,Ht);dr=qe.checkedKeys,ke=qe.halfCheckedKeys}Nt.checkedKeys=dr,Nt.halfCheckedKeys=ke}}return $t("loadedKeys")&&(Nt.loadedKeys=Wt.loadedKeys),Nt}}]),jt}(E.Component);_o.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:x,allowDrop:function(){return!0},expandAction:!1},_o.TreeNode=Ta.Z;var wi=_o,ti=wi,hi=te(46214),pn={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"},Ya=pn,Ti=te(44327),Bo=function(Lt,jt){return E.createElement(Ti.Z,(0,z.Z)({},Lt,{ref:jt,icon:Ya}))},Aa=E.forwardRef(Bo),Bn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},Sr=Bn,Kr=function(Lt,jt){return E.createElement(Ti.Z,(0,z.Z)({},Lt,{ref:jt,icon:Sr}))},lr=E.forwardRef(Kr),ci=te(53124),Li={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"},ra=Li,Oa=function(Lt,jt){return E.createElement(Ti.Z,(0,z.Z)({},Lt,{ref:jt,icon:ra}))},$a=E.forwardRef(Oa),ft=te(33603),dt=te(32157);const zt=4;function qt(St){const{dropPosition:Lt,dropLevelOffset:jt,prefixCls:$e,indent:Wt,direction:bn="ltr"}=St,Rn=bn==="ltr"?"left":"right",Nt=bn==="ltr"?"right":"left",$t={[Rn]:-jt*Wt+zt,[Nt]:0};switch(Lt){case-1:$t.top=-3;break;case 1:$t.bottom=-3;break;default:$t.bottom=-3,$t[Rn]=Wt+zt;break}return E.createElement("div",{style:$t,className:`${$e}-drop-indicator`})}var Mn=te(7349),Tr=E.forwardRef((St,Lt)=>{const{getPrefixCls:jt,direction:$e,virtual:Wt,tree:bn}=E.useContext(ci.E_),{prefixCls:Rn,className:Nt,showIcon:$t=!1,showLine:It,switcherIcon:Ft,blockNode:Tt=!1,children:Ht,checkable:Kt=!1,selectable:jn=!0,draggable:tr,motion:Pr,style:Cn}=St,dr=jt("tree",Rn),ze=jt(),ke=Pr!=null?Pr:Object.assign(Object.assign({},(0,ft.Z)(ze)),{motionAppear:!1}),qe=Object.assign(Object.assign({},St),{checkable:Kt,selectable:jn,showIcon:$t,motion:ke,blockNode:Tt,showLine:!!It,dropIndicatorRender:qt}),[bt,kt]=(0,dt.ZP)(dr),Ut=E.useMemo(()=>{if(!tr)return!1;let an={};switch(typeof tr){case"function":an.nodeDraggable=tr;break;case"object":an=Object.assign({},tr);break;default:break}return an.icon!==!1&&(an.icon=an.icon||E.createElement($a,null)),an},[tr]),cn=an=>E.createElement(Mn.Z,{prefixCls:dr,switcherIcon:Ft,treeNodeProps:an,showLine:It});return bt(E.createElement(ti,Object.assign({itemHeight:20,ref:Lt,virtual:Wt},qe,{style:Object.assign(Object.assign({},bn==null?void 0:bn.style),Cn),prefixCls:dr,className:me()({[`${dr}-icon-hide`]:!$t,[`${dr}-block-node`]:Tt,[`${dr}-unselectable`]:!jn,[`${dr}-rtl`]:$e==="rtl"},bn==null?void 0:bn.className,Nt,kt),direction:$e,checkable:Kt&&E.createElement("span",{className:`${dr}-checkbox-inner`}),selectable:jn,switcherIcon:cn,draggable:Ut}),Ht))}),Wr;(function(St){St[St.None=0]="None",St[St.Start=1]="Start",St[St.End=2]="End"})(Wr||(Wr={}));function uo(St,Lt){function jt($e){const{key:Wt,children:bn}=$e;Lt(Wt,$e)!==!1&&uo(bn||[],Lt)}St.forEach(jt)}function Mo(St){let{treeData:Lt,expandedKeys:jt,startKey:$e,endKey:Wt}=St;const bn=[];let Rn=Wr.None;if($e&&$e===Wt)return[$e];if(!$e||!Wt)return[];function Nt($t){return $t===$e||$t===Wt}return uo(Lt,$t=>{if(Rn===Wr.End)return!1;if(Nt($t)){if(bn.push($t),Rn===Wr.None)Rn=Wr.Start;else if(Rn===Wr.Start)return Rn=Wr.End,!1}else Rn===Wr.Start&&bn.push($t);return jt.includes($t)}),bn}function Qo(St,Lt){const jt=(0,he.Z)(Lt),$e=[];return uo(St,(Wt,bn)=>{const Rn=jt.indexOf(Wt);return Rn!==-1&&($e.push(bn),jt.splice(Rn,1)),!!jt.length}),$e}var mi=function(St,Lt){var jt={};for(var $e in St)Object.prototype.hasOwnProperty.call(St,$e)&&Lt.indexOf($e)<0&&(jt[$e]=St[$e]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,$e=Object.getOwnPropertySymbols(St);Wt<$e.length;Wt++)Lt.indexOf($e[Wt])<0&&Object.prototype.propertyIsEnumerable.call(St,$e[Wt])&&(jt[$e[Wt]]=St[$e[Wt]]);return jt};function Fi(St){const{isLeaf:Lt,expanded:jt}=St;return Lt?E.createElement(hi.Z,null):jt?E.createElement(Aa,null):E.createElement(lr,null)}function oa(St){let{treeData:Lt,children:jt}=St;return Lt||(0,ge.zn)(jt)}const vo=(St,Lt)=>{var{defaultExpandAll:jt,defaultExpandParent:$e,defaultExpandedKeys:Wt}=St,bn=mi(St,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Rn=E.useRef(),Nt=E.useRef(),$t=()=>{const{keyEntities:Ut}=(0,ge.I8)(oa(bn));let cn;return jt?cn=Object.keys(Ut):$e?cn=(0,xr.r7)(bn.expandedKeys||Wt||[],Ut):cn=bn.expandedKeys||Wt,cn},[It,Ft]=E.useState(bn.selectedKeys||bn.defaultSelectedKeys||[]),[Tt,Ht]=E.useState(()=>$t());E.useEffect(()=>{"selectedKeys"in bn&&Ft(bn.selectedKeys)},[bn.selectedKeys]),E.useEffect(()=>{"expandedKeys"in bn&&Ht(bn.expandedKeys)},[bn.expandedKeys]);const Kt=(Ut,cn)=>{var an;return"expandedKeys"in bn||Ht(Ut),(an=bn.onExpand)===null||an===void 0?void 0:an.call(bn,Ut,cn)},jn=(Ut,cn)=>{var an;const{multiple:mn}=bn,{node:vn,nativeEvent:Zn}=cn,{key:Hn=""}=vn,gr=oa(bn),Fr=Object.assign(Object.assign({},cn),{selected:!0}),Cr=(Zn==null?void 0:Zn.ctrlKey)||(Zn==null?void 0:Zn.metaKey),Or=Zn==null?void 0:Zn.shiftKey;let so;mn&&Cr?(so=Ut,Rn.current=Hn,Nt.current=so,Fr.selectedNodes=Qo(gr,so)):mn&&Or?(so=Array.from(new Set([].concat((0,he.Z)(Nt.current||[]),(0,he.Z)(Mo({treeData:gr,expandedKeys:Tt,startKey:Hn,endKey:Rn.current}))))),Fr.selectedNodes=Qo(gr,so)):(so=[Hn],Rn.current=Hn,Nt.current=so,Fr.selectedNodes=Qo(gr,so)),(an=bn.onSelect)===null||an===void 0||an.call(bn,so,Fr),"selectedKeys"in bn||Ft(so)},{getPrefixCls:tr,direction:Pr}=E.useContext(ci.E_),{prefixCls:Cn,className:dr,showIcon:ze=!0,expandAction:ke="click"}=bn,qe=mi(bn,["prefixCls","className","showIcon","expandAction"]),bt=tr("tree",Cn),kt=me()(`${bt}-directory`,{[`${bt}-directory-rtl`]:Pr==="rtl"},dr);return E.createElement(Tr,Object.assign({icon:Fi,ref:Lt,blockNode:!0},qe,{showIcon:ze,expandAction:ke,prefixCls:bt,className:kt,expandedKeys:Tt,selectedKeys:It,onSelect:jn,onExpand:Kt}))};var Mi=E.forwardRef(vo);const pi=Tr;pi.DirectoryTree=Mi,pi.TreeNode=Ta.Z;var Pa=pi},32157:function(at,We,te){"use strict";te.d(We,{TM:function(){return re},Yk:function(){return me}});var z=te(45930),fe=te(63185),Pe=te(14747),ve=te(33507),he=te(45503),pe=te(67968);const ie=new z.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),de=(ne,a)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),le=(ne,a)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:a.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${a.lineWidthBold}px solid ${a.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ue=(ne,a)=>{const{treeCls:y,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:ee,nodeHoverBg:oe}=a,ae=a.paddingXS;return{[y]:Object.assign(Object.assign({},(0,Pe.Wf)(a)),{background:a.colorBgContainer,borderRadius:a.borderRadius,transition:`background-color ${a.motionDurationSlow}`,[`&${y}-rtl`]:{[`${y}-switcher`]:{"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${y}-active-focused)`]:Object.assign({},(0,Pe.oN)(a)),[`${y}-list-holder-inner`]:{alignItems:"flex-start"},[`&${y}-block-node`]:{[`${y}-list-holder-inner`]:{alignItems:"stretch",[`${y}-node-content-wrapper`]:{flex:"auto"},[`${E}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${a.colorPrimary}`,opacity:0,animationName:ie,animationDuration:a.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${E}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${y}-node-content-wrapper`]:{color:a.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${y}-node-content-wrapper`]:Object.assign({},(0,Pe.oN)(a)),[`&:not(${E}-disabled).filter-node ${y}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${y}-draggable-icon`]:{flexShrink:0,width:x,lineHeight:`${x}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${a.motionDurationSlow}`,[`${E}:hover &`]:{opacity:.45}},[`&${E}-disabled`]:{[`${y}-draggable-icon`]:{visibility:"hidden"}}}},[`${y}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${y}-draggable-icon`]:{visibility:"hidden"},[`${y}-switcher`]:Object.assign(Object.assign({},de(ne,a)),{position:"relative",flex:"none",alignSelf:"stretch",width:x,margin:0,lineHeight:`${x}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:a.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:x/2*.8,height:x/2,borderBottom:`1px solid ${a.colorBorder}`,content:'""'}}}),[`${y}-checkbox`]:{top:"initial",marginInlineEnd:ae},[`${y}-node-content-wrapper, ${y}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:x,margin:0,padding:`0 ${a.paddingXS/2}px`,color:"inherit",lineHeight:`${x}px`,background:"transparent",borderRadius:a.borderRadius,cursor:"pointer",transition:`all ${a.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:oe},[`&${y}-node-selected`]:{backgroundColor:ee},[`${y}-iconEle`]:{display:"inline-block",width:x,height:x,lineHeight:`${x}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${y}-unselectable ${y}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${y}-node-content-wrapper`]:Object.assign({lineHeight:`${x}px`,userSelect:"none"},le(ne,a)),[`${E}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${a.colorPrimary}`}},"&-show-line":{[`${y}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${y}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${E}-leaf-last`]:{[`${y}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${x/2}px !important`}}}}})}},se=ne=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:x}=ne;return{[`${a}${a}-directory`]:{[y]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:E,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${a}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:x,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:x},[`${a}-node-content-wrapper`]:{color:x,background:"transparent"}}}}}},me=(ne,a)=>{const y=`.${ne}`,E=`${y}-treenode`,b=a.paddingXS/2,x=(0,he.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[ue(ne,x),se(x)]},re=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};We.ZP=(0,pe.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,fe.C2)(`${y}-checkbox`,ne)},me(y,ne),(0,ve.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},re(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},7349:function(at,We,te){"use strict";te.d(We,{Z:function(){return ae}});var z=te(87462),fe=te(67294),Pe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},ve=Pe,he=te(44327),pe=function(Se,_e){return fe.createElement(he.Z,(0,z.Z)({},Se,{ref:_e,icon:ve}))},ie=fe.forwardRef(pe),de=te(46214),le=te(77322),ue={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"},se=ue,me=function(Se,_e){return fe.createElement(he.Z,(0,z.Z)({},Se,{ref:_e,icon:se}))},re=fe.forwardRef(me),ne={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"},a=ne,y=function(Se,_e){return fe.createElement(he.Z,(0,z.Z)({},Se,{ref:_e,icon:a}))},E=fe.forwardRef(y),b=te(94184),x=te.n(b),ee=te(96159),ae=ce=>{const{prefixCls:Se,switcherIcon:_e,treeNodeProps:xe,showLine:we}=ce,{isLeaf:Fe,expanded:Me,loading:ut}=xe;if(ut)return fe.createElement(le.Z,{className:`${Se}-switcher-loading-icon`});let Xe;if(we&&typeof we=="object"&&(Xe=we.showLeafIcon),Fe){if(!we)return null;if(typeof Xe!="boolean"&&Xe){const De=typeof Xe=="function"?Xe(xe):Xe,Be=`${Se}-switcher-line-custom-icon`;return(0,ee.l$)(De)?(0,ee.Tm)(De,{className:x()(De.props.className||"",Be)}):De}return Xe?fe.createElement(de.Z,{className:`${Se}-switcher-line-icon`}):fe.createElement("span",{className:`${Se}-switcher-leaf-line`})}const mt=`${Se}-switcher-icon`,Ae=typeof _e=="function"?_e(xe):_e;return(0,ee.l$)(Ae)?(0,ee.Tm)(Ae,{className:x()(Ae.props.className||"",mt)}):Ae!==void 0?Ae:we?Me?fe.createElement(re,{className:`${Se}-switcher-line-icon`}):fe.createElement(E,{className:`${Se}-switcher-line-icon`}):fe.createElement(ie,{className:mt})}},46214:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(44327),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},55007:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(44327),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},79269:function(at,We,te){"use strict";te.d(We,{Z:function(){return ie}});var z=te(87462),fe=te(67294),Pe={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=Pe,he=te(44327),pe=function(le,ue){return fe.createElement(he.Z,(0,z.Z)({},le,{ref:ue,icon:ve}))},ie=fe.forwardRef(pe)},62661:function(at,We){"use strict";var te;var z=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Pe=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ie=Symbol.for("react.context"),de=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case z:switch(E=E.type,E){case Pe:case he:case ve:case ue:case se:return E;default:switch(E=E&&E.$$typeof,E){case de:case ie:case le:case re:case me:case pe:return E;default:return b}}case fe:return b}}}te=ie,te=pe,te=z,te=le,te=Pe,te=re,te=me,te=fe,te=he,te=ve,te=ue,te=se,te=function(){return!1},te=function(){return!1},te=function(E){return y(E)===ie},te=function(E){return y(E)===pe},te=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===z},te=function(E){return y(E)===le},te=function(E){return y(E)===Pe},te=function(E){return y(E)===re},We.isMemo=function(E){return y(E)===me},te=function(E){return y(E)===fe},te=function(E){return y(E)===he},te=function(E){return y(E)===ve},te=function(E){return y(E)===ue},te=function(E){return y(E)===se},te=function(E){return typeof E=="string"||typeof E=="function"||E===Pe||E===he||E===ve||E===ue||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ie||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},te=y},95845:function(at,We,te){"use strict";at.exports=te(62661)},72665:function(at,We){"use strict";var te;var z=typeof Symbol=="function"&&Symbol.for,fe=z?Symbol.for("react.element"):60103,Pe=z?Symbol.for("react.portal"):60106,ve=z?Symbol.for("react.fragment"):60107,he=z?Symbol.for("react.strict_mode"):60108,pe=z?Symbol.for("react.profiler"):60114,ie=z?Symbol.for("react.provider"):60109,de=z?Symbol.for("react.context"):60110,le=z?Symbol.for("react.async_mode"):60111,ue=z?Symbol.for("react.concurrent_mode"):60111,se=z?Symbol.for("react.forward_ref"):60112,me=z?Symbol.for("react.suspense"):60113,re=z?Symbol.for("react.suspense_list"):60120,ne=z?Symbol.for("react.memo"):60115,a=z?Symbol.for("react.lazy"):60116,y=z?Symbol.for("react.block"):60121,E=z?Symbol.for("react.fundamental"):60117,b=z?Symbol.for("react.responder"):60118,x=z?Symbol.for("react.scope"):60119;function ee(ae){if(typeof ae=="object"&&ae!==null){var ce=ae.$$typeof;switch(ce){case fe:switch(ae=ae.type,ae){case le:case ue:case ve:case pe:case he:case me:return ae;default:switch(ae=ae&&ae.$$typeof,ae){case de:case se:case a:case ne:case ie:return ae;default:return ce}}case Pe:return ce}}}function oe(ae){return ee(ae)===ue}te=le,te=ue,te=de,te=ie,te=fe,te=se,te=ve,te=a,te=ne,te=Pe,te=pe,te=he,te=me,te=function(ae){return oe(ae)||ee(ae)===le},te=oe,te=function(ae){return ee(ae)===de},te=function(ae){return ee(ae)===ie},te=function(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===fe},te=function(ae){return ee(ae)===se},te=function(ae){return ee(ae)===ve},te=function(ae){return ee(ae)===a},We.isMemo=function(ae){return ee(ae)===ne},te=function(ae){return ee(ae)===Pe},te=function(ae){return ee(ae)===pe},te=function(ae){return ee(ae)===he},te=function(ae){return ee(ae)===me},te=function(ae){return typeof ae=="string"||typeof ae=="function"||ae===ve||ae===ue||ae===pe||ae===he||ae===me||ae===re||typeof ae=="object"&&ae!==null&&(ae.$$typeof===a||ae.$$typeof===ne||ae.$$typeof===ie||ae.$$typeof===de||ae.$$typeof===se||ae.$$typeof===E||ae.$$typeof===b||ae.$$typeof===x||ae.$$typeof===y)},te=ee},12060:function(at,We,te){"use strict";at.exports=te(72665)},56261:function(at,We,te){"use strict";te.d(We,{Z:function(){return _e}});var z=te(87462),fe=te(4942),Pe=te(45987),ve=te(1413),he=te(15671),pe=te(43144),ie=te(97326),de=te(60136),le=te(51630),ue=te(94184),se=te.n(ue),me=te(34952),re=te(67294),ne=te(69610),a=function(we){for(var Fe=we.prefixCls,Me=we.level,ut=we.isStart,Xe=we.isEnd,mt="".concat(Fe,"-indent-unit"),Ae=[],De=0;De<Me;De+=1){var Be;Ae.push(re.createElement("span",{key:De,className:se()(mt,(Be={},(0,fe.Z)(Be,"".concat(mt,"-start"),ut[De]),(0,fe.Z)(Be,"".concat(mt,"-end"),Xe[De]),Be))}))}return re.createElement("span",{"aria-hidden":"true",className:"".concat(Fe,"-indent")},Ae)},y=re.memo(a),E=te(3596),b=te(83898),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ee="open",oe="close",ae="---",ce=function(xe){(0,de.Z)(Fe,xe);var we=(0,le.Z)(Fe);function Fe(){var Me;(0,he.Z)(this,Fe);for(var ut=arguments.length,Xe=new Array(ut),mt=0;mt<ut;mt++)Xe[mt]=arguments[mt];return Me=we.call.apply(we,[this].concat(Xe)),Me.state={dragNodeHighlight:!1},Me.selectHandle=void 0,Me.cacheIndent=void 0,Me.onSelectorClick=function(Ae){var De=Me.props.context.onNodeClick;De(Ae,(0,b.F)(Me.props)),Me.isSelectable()?Me.onSelect(Ae):Me.onCheck(Ae)},Me.onSelectorDoubleClick=function(Ae){var De=Me.props.context.onNodeDoubleClick;De(Ae,(0,b.F)(Me.props))},Me.onSelect=function(Ae){if(!Me.isDisabled()){var De=Me.props.context.onNodeSelect;De(Ae,(0,b.F)(Me.props))}},Me.onCheck=function(Ae){if(!Me.isDisabled()){var De=Me.props,Be=De.disableCheckbox,nt=De.checked,Ke=Me.props.context.onNodeCheck;if(!(!Me.isCheckable()||Be)){var Et=!nt;Ke(Ae,(0,b.F)(Me.props),Et)}}},Me.onMouseEnter=function(Ae){var De=Me.props.context.onNodeMouseEnter;De(Ae,(0,b.F)(Me.props))},Me.onMouseLeave=function(Ae){var De=Me.props.context.onNodeMouseLeave;De(Ae,(0,b.F)(Me.props))},Me.onContextMenu=function(Ae){var De=Me.props.context.onNodeContextMenu;De(Ae,(0,b.F)(Me.props))},Me.onDragStart=function(Ae){var De=Me.props.context.onNodeDragStart;Ae.stopPropagation(),Me.setState({dragNodeHighlight:!0}),De(Ae,(0,ie.Z)(Me));try{Ae.dataTransfer.setData("text/plain","")}catch(Be){}},Me.onDragEnter=function(Ae){var De=Me.props.context.onNodeDragEnter;Ae.preventDefault(),Ae.stopPropagation(),De(Ae,(0,ie.Z)(Me))},Me.onDragOver=function(Ae){var De=Me.props.context.onNodeDragOver;Ae.preventDefault(),Ae.stopPropagation(),De(Ae,(0,ie.Z)(Me))},Me.onDragLeave=function(Ae){var De=Me.props.context.onNodeDragLeave;Ae.stopPropagation(),De(Ae,(0,ie.Z)(Me))},Me.onDragEnd=function(Ae){var De=Me.props.context.onNodeDragEnd;Ae.stopPropagation(),Me.setState({dragNodeHighlight:!1}),De(Ae,(0,ie.Z)(Me))},Me.onDrop=function(Ae){var De=Me.props.context.onNodeDrop;Ae.preventDefault(),Ae.stopPropagation(),Me.setState({dragNodeHighlight:!1}),De(Ae,(0,ie.Z)(Me))},Me.onExpand=function(Ae){var De=Me.props,Be=De.loading,nt=De.context.onNodeExpand;Be||nt(Ae,(0,b.F)(Me.props))},Me.setSelectHandle=function(Ae){Me.selectHandle=Ae},Me.getNodeState=function(){var Ae=Me.props.expanded;return Me.isLeaf()?null:Ae?ee:oe},Me.hasChildren=function(){var Ae=Me.props.eventKey,De=Me.props.context.keyEntities,Be=(0,E.Z)(De,Ae)||{},nt=Be.children;return!!(nt||[]).length},Me.isLeaf=function(){var Ae=Me.props,De=Ae.isLeaf,Be=Ae.loaded,nt=Me.props.context.loadData,Ke=Me.hasChildren();return De===!1?!1:De||!nt&&!Ke||nt&&Be&&!Ke},Me.isDisabled=function(){var Ae=Me.props.disabled,De=Me.props.context.disabled;return!!(De||Ae)},Me.isCheckable=function(){var Ae=Me.props.checkable,De=Me.props.context.checkable;return!De||Ae===!1?!1:De},Me.syncLoadData=function(Ae){var De=Ae.expanded,Be=Ae.loading,nt=Ae.loaded,Ke=Me.props.context,Et=Ke.loadData,Ct=Ke.onNodeLoad;Be||Et&&De&&!Me.isLeaf()&&!Me.hasChildren()&&!nt&&Ct((0,b.F)(Me.props))},Me.isDraggable=function(){var Ae=Me.props,De=Ae.data,Be=Ae.context.draggable;return!!(Be&&(!Be.nodeDraggable||Be.nodeDraggable(De)))},Me.renderDragHandler=function(){var Ae=Me.props.context,De=Ae.draggable,Be=Ae.prefixCls;return De!=null&&De.icon?re.createElement("span",{className:"".concat(Be,"-draggable-icon")},De.icon):null},Me.renderSwitcherIconDom=function(Ae){var De=Me.props.switcherIcon,Be=Me.props.context.switcherIcon,nt=De||Be;return typeof nt=="function"?nt((0,ve.Z)((0,ve.Z)({},Me.props),{},{isLeaf:Ae})):nt},Me.renderSwitcher=function(){var Ae=Me.props.expanded,De=Me.props.context.prefixCls;if(Me.isLeaf()){var Be=Me.renderSwitcherIconDom(!0);return Be!==!1?re.createElement("span",{className:se()("".concat(De,"-switcher"),"".concat(De,"-switcher-noop"))},Be):null}var nt=se()("".concat(De,"-switcher"),"".concat(De,"-switcher_").concat(Ae?ee:oe)),Ke=Me.renderSwitcherIconDom(!1);return Ke!==!1?re.createElement("span",{onClick:Me.onExpand,className:nt},Ke):null},Me.renderCheckbox=function(){var Ae=Me.props,De=Ae.checked,Be=Ae.halfChecked,nt=Ae.disableCheckbox,Ke=Me.props.context.prefixCls,Et=Me.isDisabled(),Ct=Me.isCheckable();if(!Ct)return null;var nn=typeof Ct!="boolean"?Ct:null;return re.createElement("span",{className:se()("".concat(Ke,"-checkbox"),De&&"".concat(Ke,"-checkbox-checked"),!De&&Be&&"".concat(Ke,"-checkbox-indeterminate"),(Et||nt)&&"".concat(Ke,"-checkbox-disabled")),onClick:Me.onCheck},nn)},Me.renderIcon=function(){var Ae=Me.props.loading,De=Me.props.context.prefixCls;return re.createElement("span",{className:se()("".concat(De,"-iconEle"),"".concat(De,"-icon__").concat(Me.getNodeState()||"docu"),Ae&&"".concat(De,"-icon_loading"))})},Me.renderSelector=function(){var Ae=Me.state.dragNodeHighlight,De=Me.props,Be=De.title,nt=Be===void 0?ae:Be,Ke=De.selected,Et=De.icon,Ct=De.loading,nn=De.data,on=Me.props.context,it=on.prefixCls,lt=on.showIcon,xt=on.icon,Jt=on.loadData,Vt=on.titleRender,xn=Me.isDisabled(),He="".concat(it,"-node-content-wrapper"),un;if(lt){var kn=Et||xt;un=kn?re.createElement("span",{className:se()("".concat(it,"-iconEle"),"".concat(it,"-icon__customize"))},typeof kn=="function"?kn(Me.props):kn):Me.renderIcon()}else Jt&&Ct&&(un=Me.renderIcon());var nr;typeof nt=="function"?nr=nt(nn):Vt?nr=Vt(nn):nr=nt;var Ln=re.createElement("span",{className:"".concat(it,"-title")},nr);return re.createElement("span",{ref:Me.setSelectHandle,title:typeof nt=="string"?nt:"",className:se()("".concat(He),"".concat(He,"-").concat(Me.getNodeState()||"normal"),!xn&&(Ke||Ae)&&"".concat(it,"-node-selected")),onMouseEnter:Me.onMouseEnter,onMouseLeave:Me.onMouseLeave,onContextMenu:Me.onContextMenu,onClick:Me.onSelectorClick,onDoubleClick:Me.onSelectorDoubleClick},un,Ln,Me.renderDropIndicator())},Me.renderDropIndicator=function(){var Ae=Me.props,De=Ae.disabled,Be=Ae.eventKey,nt=Me.props.context,Ke=nt.draggable,Et=nt.dropLevelOffset,Ct=nt.dropPosition,nn=nt.prefixCls,on=nt.indent,it=nt.dropIndicatorRender,lt=nt.dragOverNodeKey,xt=nt.direction,Jt=!!Ke,Vt=!De&&Jt&&lt===Be,xn=on!=null?on:Me.cacheIndent;return Me.cacheIndent=on,Vt?it({dropPosition:Ct,dropLevelOffset:Et,indent:xn,prefixCls:nn,direction:xt}):null},Me}return(0,pe.Z)(Fe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ut=this.props.selectable,Xe=this.props.context.selectable;return typeof ut=="boolean"?ut:Xe}},{key:"render",value:function(){var ut,Xe=this.props,mt=Xe.eventKey,Ae=Xe.className,De=Xe.style,Be=Xe.dragOver,nt=Xe.dragOverGapTop,Ke=Xe.dragOverGapBottom,Et=Xe.isLeaf,Ct=Xe.isStart,nn=Xe.isEnd,on=Xe.expanded,it=Xe.selected,lt=Xe.checked,xt=Xe.halfChecked,Jt=Xe.loading,Vt=Xe.domRef,xn=Xe.active,He=Xe.data,un=Xe.onMouseMove,kn=Xe.selectable,nr=(0,Pe.Z)(Xe,x),Ln=this.props.context,Gt=Ln.prefixCls,Je=Ln.filterTreeNode,Qe=Ln.keyEntities,_t=Ln.dropContainerKey,Rt=Ln.dropTargetKey,Yt=Ln.draggingNodeKey,gt=this.isDisabled(),wt=(0,me.Z)(nr,{aria:!0,data:!0}),Dt=(0,E.Z)(Qe,mt)||{},tt=Dt.level,fn=nn[nn.length-1],hn=this.isDraggable(),$n=!gt&&hn,no=Yt===mt,rt=kn!==void 0?{"aria-selected":!!kn}:void 0;return re.createElement("div",(0,z.Z)({ref:Vt,className:se()(Ae,"".concat(Gt,"-treenode"),(ut={},(0,fe.Z)(ut,"".concat(Gt,"-treenode-disabled"),gt),(0,fe.Z)(ut,"".concat(Gt,"-treenode-switcher-").concat(on?"open":"close"),!Et),(0,fe.Z)(ut,"".concat(Gt,"-treenode-checkbox-checked"),lt),(0,fe.Z)(ut,"".concat(Gt,"-treenode-checkbox-indeterminate"),xt),(0,fe.Z)(ut,"".concat(Gt,"-treenode-selected"),it),(0,fe.Z)(ut,"".concat(Gt,"-treenode-loading"),Jt),(0,fe.Z)(ut,"".concat(Gt,"-treenode-active"),xn),(0,fe.Z)(ut,"".concat(Gt,"-treenode-leaf-last"),fn),(0,fe.Z)(ut,"".concat(Gt,"-treenode-draggable"),hn),(0,fe.Z)(ut,"dragging",no),(0,fe.Z)(ut,"drop-target",Rt===mt),(0,fe.Z)(ut,"drop-container",_t===mt),(0,fe.Z)(ut,"drag-over",!gt&&Be),(0,fe.Z)(ut,"drag-over-gap-top",!gt&&nt),(0,fe.Z)(ut,"drag-over-gap-bottom",!gt&&Ke),(0,fe.Z)(ut,"filter-node",Je&&Je((0,b.F)(this.props))),ut)),style:De,draggable:$n,"aria-grabbed":no,onDragStart:$n?this.onDragStart:void 0,onDragEnter:hn?this.onDragEnter:void 0,onDragOver:hn?this.onDragOver:void 0,onDragLeave:hn?this.onDragLeave:void 0,onDrop:hn?this.onDrop:void 0,onDragEnd:hn?this.onDragEnd:void 0,onMouseMove:un},rt,wt),re.createElement(y,{prefixCls:Gt,level:tt,isStart:Ct,isEnd:nn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Fe}(re.Component),Se=function(we){return re.createElement(ne.k.Consumer,null,function(Fe){return re.createElement(ce,(0,z.Z)({},we,{context:Fe}))})};Se.displayName="TreeNode",Se.isTreeNode=1;var _e=Se},69610:function(at,We,te){"use strict";te.d(We,{k:function(){return fe}});var z=te(67294),fe=z.createContext(null)},29873:function(at,We,te){"use strict";te.d(We,{BT:function(){return y},E6:function(){return x},L0:function(){return ue},OM:function(){return a},_5:function(){return le},r7:function(){return ee},wA:function(){return me},yx:function(){return se}});var z=te(74902),fe=te(71002),Pe=te(72978),ve=te(67294),he=te(56261),pe=te(3596),ie=te(83898),de=null;function le(oe,ae){if(!oe)return[];var ce=oe.slice(),Se=ce.indexOf(ae);return Se>=0&&ce.splice(Se,1),ce}function ue(oe,ae){var ce=(oe||[]).slice();return ce.indexOf(ae)===-1&&ce.push(ae),ce}function se(oe){return oe.split("-")}function me(oe,ae){var ce=[],Se=(0,pe.Z)(ae,oe);function _e(){var xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];xe.forEach(function(we){var Fe=we.key,Me=we.children;ce.push(Fe),_e(Me)})}return _e(Se.children),ce}function re(oe){if(oe.parent){var ae=se(oe.pos);return Number(ae[ae.length-1])===oe.parent.children.length-1}return!1}function ne(oe){var ae=se(oe.pos);return Number(ae[ae.length-1])===0}function a(oe,ae,ce,Se,_e,xe,we,Fe,Me,ut){var Xe,mt=oe.clientX,Ae=oe.clientY,De=oe.target.getBoundingClientRect(),Be=De.top,nt=De.height,Ke=(ut==="rtl"?-1:1)*(((_e==null?void 0:_e.x)||0)-mt),Et=(Ke-12)/Se,Ct=(0,pe.Z)(Fe,ce.props.eventKey);if(Ae<Be+nt/2){var nn=we.findIndex(function(Ln){return Ln.key===Ct.key}),on=nn<=0?0:nn-1,it=we[on].key;Ct=(0,pe.Z)(Fe,it)}var lt=Ct.key,xt=Ct,Jt=Ct.key,Vt=0,xn=0;if(!Me.includes(lt))for(var He=0;He<Et&&re(Ct);He+=1)Ct=Ct.parent,xn+=1;var un=ae.props.data,kn=Ct.node,nr=!0;return ne(Ct)&&Ct.level===0&&Ae<Be+nt/2&&xe({dragNode:un,dropNode:kn,dropPosition:-1})&&Ct.key===ce.props.eventKey?Vt=-1:(xt.children||[]).length&&Me.includes(Jt)?xe({dragNode:un,dropNode:kn,dropPosition:0})?Vt=0:nr=!1:xn===0?Et>-1.5?xe({dragNode:un,dropNode:kn,dropPosition:1})?Vt=1:nr=!1:xe({dragNode:un,dropNode:kn,dropPosition:0})?Vt=0:xe({dragNode:un,dropNode:kn,dropPosition:1})?Vt=1:nr=!1:xe({dragNode:un,dropNode:kn,dropPosition:1})?Vt=1:nr=!1,{dropPosition:Vt,dropLevelOffset:xn,dropTargetKey:Ct.key,dropTargetPos:Ct.pos,dragOverNodeKey:Jt,dropContainerKey:Vt===0?null:((Xe=Ct.parent)===null||Xe===void 0?void 0:Xe.key)||null,dropAllowed:nr}}function y(oe,ae){if(oe){var ce=ae.multiple;return ce?oe.slice():oe.length?[oe[0]]:oe}}var E=function(ae){return ae};function b(oe,ae){if(!oe)return[];var ce=ae||{},Se=ce.processProps,_e=Se===void 0?E:Se,xe=Array.isArray(oe)?oe:[oe];return xe.map(function(we){var Fe=we.children,Me=_objectWithoutProperties(we,de),ut=b(Fe,ae);return React.createElement(TreeNode,_extends({key:Me.key},_e(Me)),ut)})}function x(oe){if(!oe)return null;var ae;if(Array.isArray(oe))ae={checkedKeys:oe,halfCheckedKeys:void 0};else if((0,fe.Z)(oe)==="object")ae={checkedKeys:oe.checked||void 0,halfCheckedKeys:oe.halfChecked||void 0};else return(0,Pe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ae}function ee(oe,ae){var ce=new Set;function Se(_e){if(!ce.has(_e)){var xe=(0,pe.Z)(ae,_e);if(xe){ce.add(_e);var we=xe.parent,Fe=xe.node;Fe.disabled||we&&Se(we.key)}}}return(oe||[]).forEach(function(_e){Se(_e)}),(0,z.Z)(ce)}},97153:function(at,We,te){"use strict";te.d(We,{S:function(){return ie}});var z=te(72978),fe=te(3596);function Pe(de,le){var ue=new Set;return de.forEach(function(se){le.has(se)||ue.add(se)}),ue}function ve(de){var le=de||{},ue=le.disabled,se=le.disableCheckbox,me=le.checkable;return!!(ue||se)||me===!1}function he(de,le,ue,se){for(var me=new Set(de),re=new Set,ne=0;ne<=ue;ne+=1){var a=le.get(ne)||new Set;a.forEach(function(x){var ee=x.key,oe=x.node,ae=x.children,ce=ae===void 0?[]:ae;me.has(ee)&&!se(oe)&&ce.filter(function(Se){return!se(Se.node)}).forEach(function(Se){me.add(Se.key)})})}for(var y=new Set,E=ue;E>=0;E-=1){var b=le.get(E)||new Set;b.forEach(function(x){var ee=x.parent,oe=x.node;if(!(se(oe)||!x.parent||y.has(x.parent.key))){if(se(x.parent.node)){y.add(ee.key);return}var ae=!0,ce=!1;(ee.children||[]).filter(function(Se){return!se(Se.node)}).forEach(function(Se){var _e=Se.key,xe=me.has(_e);ae&&!xe&&(ae=!1),!ce&&(xe||re.has(_e))&&(ce=!0)}),ae&&me.add(ee.key),ce&&re.add(ee.key),y.add(ee.key)}})}return{checkedKeys:Array.from(me),halfCheckedKeys:Array.from(Pe(re,me))}}function pe(de,le,ue,se,me){for(var re=new Set(de),ne=new Set(le),a=0;a<=se;a+=1){var y=ue.get(a)||new Set;y.forEach(function(ee){var oe=ee.key,ae=ee.node,ce=ee.children,Se=ce===void 0?[]:ce;!re.has(oe)&&!ne.has(oe)&&!me(ae)&&Se.filter(function(_e){return!me(_e.node)}).forEach(function(_e){re.delete(_e.key)})})}ne=new Set;for(var E=new Set,b=se;b>=0;b-=1){var x=ue.get(b)||new Set;x.forEach(function(ee){var oe=ee.parent,ae=ee.node;if(!(me(ae)||!ee.parent||E.has(ee.parent.key))){if(me(ee.parent.node)){E.add(oe.key);return}var ce=!0,Se=!1;(oe.children||[]).filter(function(_e){return!me(_e.node)}).forEach(function(_e){var xe=_e.key,we=re.has(xe);ce&&!we&&(ce=!1),!Se&&(we||ne.has(xe))&&(Se=!0)}),ce||re.delete(oe.key),Se&&ne.add(oe.key),E.add(oe.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(Pe(ne,re))}}function ie(de,le,ue,se){var me=[],re;se?re=se:re=ve;var ne=new Set(de.filter(function(b){var x=!!(0,fe.Z)(ue,b);return x||me.push(b),x})),a=new Map,y=0;Object.keys(ue).forEach(function(b){var x=ue[b],ee=x.level,oe=a.get(ee);oe||(oe=new Set,a.set(ee,oe)),oe.add(x),y=Math.max(y,ee)}),(0,z.ZP)(!me.length,"Tree missing follow keys: ".concat(me.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return le===!0?E=he(ne,a,y,re):E=pe(ne,le.halfCheckedKeys,a,y,re),E}},3596:function(at,We,te){"use strict";te.d(We,{Z:function(){return z}});function z(fe,Pe){return fe[Pe]}},83898:function(at,We,te){"use strict";te.d(We,{I8:function(){return ee},F:function(){return ae},zn:function(){return E},w$:function(){return a},oH:function(){return b},km:function(){return ne},H8:function(){return oe}});var z=te(71002),fe=te(74902),Pe=te(1413),ve=te(45987),he=te(67294),pe=te(28580);function ie(ce){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=[];return he.Children.forEach(ce,function(xe){xe==null&&!Se.keepEmpty||(Array.isArray(xe)?_e=_e.concat(ie(xe)):(0,pe.isFragment)(xe)&&xe.props?_e=_e.concat(ie(xe.props.children,Se)):_e.push(xe))}),_e}function de(ce,Se){var _e=(0,Pe.Z)({},ce);return Array.isArray(Se)&&Se.forEach(function(xe){delete _e[xe]}),_e}var le=te(72978),ue=te(3596),se=["children"];function me(ce,Se){return"".concat(ce,"-").concat(Se)}function re(ce){return ce&&ce.type&&ce.type.isTreeNode}function ne(ce,Se){return ce!=null?ce:Se}function a(ce){var Se=ce||{},_e=Se.title,xe=Se._title,we=Se.key,Fe=Se.children,Me=_e||"title";return{title:Me,_title:xe||[Me],key:we||"key",children:Fe||"children"}}function y(ce,Se){var _e=new Map;function xe(we){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(we||[]).forEach(function(Me){var ut=Me[Se.key],Xe=Me[Se.children];warning(ut!=null,"Tree node must have a certain key: [".concat(Fe).concat(ut,"]"));var mt=String(ut);warning(!_e.has(mt)||ut===null||ut===void 0,"Same 'key' exist in the Tree: ".concat(mt)),_e.set(mt,!0),xe(Xe,"".concat(Fe).concat(mt," > "))})}xe(ce)}function E(ce){function Se(_e){var xe=ie(_e);return xe.map(function(we){if(!re(we))return(0,le.ZP)(!we,"Tree/TreeNode can only accept TreeNode as children."),null;var Fe=we.key,Me=we.props,ut=Me.children,Xe=(0,ve.Z)(Me,se),mt=(0,Pe.Z)({key:Fe},Xe),Ae=Se(ut);return Ae.length&&(mt.children=Ae),mt}).filter(function(we){return we})}return Se(ce)}function b(ce,Se,_e){var xe=a(_e),we=xe._title,Fe=xe.key,Me=xe.children,ut=new Set(Se===!0?[]:Se),Xe=[];function mt(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ae.map(function(Be,nt){for(var Ke=me(De?De.pos:"0",nt),Et=ne(Be[Fe],Ke),Ct,nn=0;nn<we.length;nn+=1){var on=we[nn];if(Be[on]!==void 0){Ct=Be[on];break}}var it=(0,Pe.Z)((0,Pe.Z)({},de(Be,[].concat((0,fe.Z)(we),[Fe,Me]))),{},{title:Ct,key:Et,parent:De,pos:Ke,children:null,data:Be,isStart:[].concat((0,fe.Z)(De?De.isStart:[]),[nt===0]),isEnd:[].concat((0,fe.Z)(De?De.isEnd:[]),[nt===Ae.length-1])});return Xe.push(it),Se===!0||ut.has(Et)?it.children=mt(Be[Me]||[],it):it.children=[],it})}return mt(ce),Xe}function x(ce,Se,_e){var xe={};(0,z.Z)(_e)==="object"?xe=_e:xe={externalGetKey:_e},xe=xe||{};var we=xe,Fe=we.childrenPropName,Me=we.externalGetKey,ut=we.fieldNames,Xe=a(ut),mt=Xe.key,Ae=Xe.children,De=Fe||Ae,Be;Me?typeof Me=="string"?Be=function(Et){return Et[Me]}:typeof Me=="function"&&(Be=function(Et){return Me(Et)}):Be=function(Et,Ct){return ne(Et[mt],Ct)};function nt(Ke,Et,Ct,nn){var on=Ke?Ke[De]:ce,it=Ke?me(Ct.pos,Et):"0",lt=Ke?[].concat((0,fe.Z)(nn),[Ke]):[];if(Ke){var xt=Be(Ke,it),Jt={node:Ke,index:Et,pos:it,key:xt,parentPos:Ct.node?Ct.pos:null,level:Ct.level+1,nodes:lt};Se(Jt)}on&&on.forEach(function(Vt,xn){nt(Vt,xn,{node:Ke,pos:it,level:Ct?Ct.level+1:-1},lt)})}nt(null)}function ee(ce){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_e=Se.initWrapper,xe=Se.processEntity,we=Se.onProcessFinished,Fe=Se.externalGetKey,Me=Se.childrenPropName,ut=Se.fieldNames,Xe=arguments.length>2?arguments[2]:void 0,mt=Fe||Xe,Ae={},De={},Be={posEntities:Ae,keyEntities:De};return _e&&(Be=_e(Be)||Be),x(ce,function(nt){var Ke=nt.node,Et=nt.index,Ct=nt.pos,nn=nt.key,on=nt.parentPos,it=nt.level,lt=nt.nodes,xt={node:Ke,nodes:lt,index:Et,key:nn,pos:Ct,level:it},Jt=ne(nn,Ct);Ae[Ct]=xt,De[Jt]=xt,xt.parent=Ae[on],xt.parent&&(xt.parent.children=xt.parent.children||[],xt.parent.children.push(xt)),xe&&xe(xt,Be)},{externalGetKey:mt,childrenPropName:Me,fieldNames:ut}),we&&we(Be),Be}function oe(ce,Se){var _e=Se.expandedKeys,xe=Se.selectedKeys,we=Se.loadedKeys,Fe=Se.loadingKeys,Me=Se.checkedKeys,ut=Se.halfCheckedKeys,Xe=Se.dragOverNodeKey,mt=Se.dropPosition,Ae=Se.keyEntities,De=(0,ue.Z)(Ae,ce),Be={eventKey:ce,expanded:_e.indexOf(ce)!==-1,selected:xe.indexOf(ce)!==-1,loaded:we.indexOf(ce)!==-1,loading:Fe.indexOf(ce)!==-1,checked:Me.indexOf(ce)!==-1,halfChecked:ut.indexOf(ce)!==-1,pos:String(De?De.pos:""),dragOver:Xe===ce&&mt===0,dragOverGapTop:Xe===ce&&mt===-1,dragOverGapBottom:Xe===ce&&mt===1};return Be}function ae(ce){var Se=ce.data,_e=ce.expanded,xe=ce.selected,we=ce.checked,Fe=ce.loaded,Me=ce.loading,ut=ce.halfChecked,Xe=ce.dragOver,mt=ce.dragOverGapTop,Ae=ce.dragOverGapBottom,De=ce.pos,Be=ce.active,nt=ce.eventKey,Ke=(0,Pe.Z)((0,Pe.Z)({},Se),{},{expanded:_e,selected:xe,checked:we,loaded:Fe,loading:Me,halfChecked:ut,dragOver:Xe,dragOverGapTop:mt,dragOverGapBottom:Ae,pos:De,active:Be,key:nt});return"props"in Ke||Object.defineProperty(Ke,"props",{get:function(){return(0,le.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ce}}),Ke}},34952:function(at,We,te){"use strict";te.d(We,{Z:function(){return de}});var z=te(1413),fe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Pe=`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`,ve="".concat(fe," ").concat(Pe).split(/[\s\n]+/),he="aria-",pe="data-";function ie(le,ue){return le.indexOf(ue)===0}function de(le){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se;ue===!1?se={aria:!0,data:!0,attr:!0}:ue===!0?se={aria:!0}:se=(0,z.Z)({},ue);var me={};return Object.keys(le).forEach(function(re){(se.aria&&(re==="role"||ie(re,he))||se.data&&ie(re,pe)||se.attr&&ve.includes(re))&&(me[re]=le[re])}),me}},72978:function(at,We,te){"use strict";var z={};function fe(de,le){}function Pe(de,le){}function ve(){z={}}function he(de,le,ue){!le&&!z[ue]&&(de(!1,ue),z[ue]=!0)}function pe(de,le){he(fe,de,le)}function ie(de,le){he(Pe,de,le)}We.ZP=pe},81533:function(at,We){"use strict";var te;var z=typeof Symbol=="function"&&Symbol.for,fe=z?Symbol.for("react.element"):60103,Pe=z?Symbol.for("react.portal"):60106,ve=z?Symbol.for("react.fragment"):60107,he=z?Symbol.for("react.strict_mode"):60108,pe=z?Symbol.for("react.profiler"):60114,ie=z?Symbol.for("react.provider"):60109,de=z?Symbol.for("react.context"):60110,le=z?Symbol.for("react.async_mode"):60111,ue=z?Symbol.for("react.concurrent_mode"):60111,se=z?Symbol.for("react.forward_ref"):60112,me=z?Symbol.for("react.suspense"):60113,re=z?Symbol.for("react.suspense_list"):60120,ne=z?Symbol.for("react.memo"):60115,a=z?Symbol.for("react.lazy"):60116,y=z?Symbol.for("react.block"):60121,E=z?Symbol.for("react.fundamental"):60117,b=z?Symbol.for("react.responder"):60118,x=z?Symbol.for("react.scope"):60119;function ee(ae){if(typeof ae=="object"&&ae!==null){var ce=ae.$$typeof;switch(ce){case fe:switch(ae=ae.type,ae){case le:case ue:case ve:case pe:case he:case me:return ae;default:switch(ae=ae&&ae.$$typeof,ae){case de:case se:case a:case ne:case ie:return ae;default:return ce}}case Pe:return ce}}}function oe(ae){return ee(ae)===ue}te=le,te=ue,te=de,te=ie,te=fe,te=se,te=ve,te=a,te=ne,te=Pe,te=pe,te=he,te=me,te=function(ae){return oe(ae)||ee(ae)===le},te=oe,te=function(ae){return ee(ae)===de},te=function(ae){return ee(ae)===ie},te=function(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===fe},te=function(ae){return ee(ae)===se},We.isFragment=function(ae){return ee(ae)===ve},te=function(ae){return ee(ae)===a},We.isMemo=function(ae){return ee(ae)===ne},te=function(ae){return ee(ae)===Pe},te=function(ae){return ee(ae)===pe},te=function(ae){return ee(ae)===he},te=function(ae){return ee(ae)===me},te=function(ae){return typeof ae=="string"||typeof ae=="function"||ae===ve||ae===ue||ae===pe||ae===he||ae===me||ae===re||typeof ae=="object"&&ae!==null&&(ae.$$typeof===a||ae.$$typeof===ne||ae.$$typeof===ie||ae.$$typeof===de||ae.$$typeof===se||ae.$$typeof===E||ae.$$typeof===b||ae.$$typeof===x||ae.$$typeof===y)},te=ee},28580:function(at,We,te){"use strict";at.exports=te(81533)},92389:function(at,We){"use strict";var te={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(fe){var Pe=fe.keyCode;if(fe.altKey&&!fe.ctrlKey||fe.metaKey||Pe>=te.F1&&Pe<=te.F12)return!1;switch(Pe){case te.ALT:case te.CAPS_LOCK:case te.CONTEXT_MENU:case te.CTRL:case te.DOWN:case te.END:case te.ESC:case te.HOME:case te.INSERT:case te.LEFT:case te.MAC_FF_META:case te.META:case te.NUMLOCK:case te.NUM_CENTER:case te.PAGE_DOWN:case te.PAGE_UP:case te.PAUSE:case te.PRINT_SCREEN:case te.RIGHT:case te.SHIFT:case te.UP:case te.WIN_KEY:case te.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(fe){if(fe>=te.ZERO&&fe<=te.NINE||fe>=te.NUM_ZERO&&fe<=te.NUM_MULTIPLY||fe>=te.A&&fe<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&fe===0)return!0;switch(fe){case te.SPACE:case te.QUESTION_MARK:case te.NUM_PLUS:case te.NUM_MINUS:case te.NUM_PERIOD:case te.NUM_DIVISION:case te.SEMICOLON:case te.DASH:case te.EQUALS:case te.COMMA:case te.PERIOD:case te.SLASH:case te.APOSTROPHE:case te.SINGLE_QUOTE:case te.OPEN_SQUARE_BRACKET:case te.BACKSLASH:case te.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};We.Z=te},82702:function(at,We,te){var z=te(34155);(function(fe,Pe){at.exports=Pe()})(this,function(){"use strict";function fe(gt){var wt=typeof gt;return gt!==null&&(wt==="object"||wt==="function")}function Pe(gt){return typeof gt=="function"}var ve=void 0;Array.isArray?ve=Array.isArray:ve=function(gt){return Object.prototype.toString.call(gt)==="[object Array]"};var he=ve,pe=0,ie=void 0,de=void 0,le=function(wt,Dt){ae[pe]=wt,ae[pe+1]=Dt,pe+=2,pe===2&&(de?de(ce):_e())};function ue(gt){de=gt}function se(gt){le=gt}var me=typeof window!="undefined"?window:void 0,re=me||{},ne=re.MutationObserver||re.WebKitMutationObserver,a=typeof self=="undefined"&&typeof z!="undefined"&&{}.toString.call(z)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return z.nextTick(ce)}}function b(){return typeof ie!="undefined"?function(){ie(ce)}:oe()}function x(){var gt=0,wt=new ne(ce),Dt=document.createTextNode("");return wt.observe(Dt,{characterData:!0}),function(){Dt.data=gt=++gt%2}}function ee(){var gt=new MessageChannel;return gt.port1.onmessage=ce,function(){return gt.port2.postMessage(0)}}function oe(){var gt=setTimeout;return function(){return gt(ce,1)}}var ae=new Array(1e3);function ce(){for(var gt=0;gt<pe;gt+=2){var wt=ae[gt],Dt=ae[gt+1];wt(Dt),ae[gt]=void 0,ae[gt+1]=void 0}pe=0}function Se(){try{var gt=Function("return this")().require("vertx");return ie=gt.runOnLoop||gt.runOnContext,b()}catch(wt){return oe()}}var _e=void 0;a?_e=E():ne?_e=x():y?_e=ee():me===void 0?_e=Se():_e=oe();function xe(gt,wt){var Dt=this,tt=new this.constructor(Me);tt[Fe]===void 0&&un(tt);var fn=Dt._state;if(fn){var hn=arguments[fn-1];le(function(){return Jt(fn,tt,hn,Dt._result)})}else lt(Dt,tt,gt,wt);return tt}function we(gt){var wt=this;if(gt&&typeof gt=="object"&&gt.constructor===wt)return gt;var Dt=new wt(Me);return Ct(Dt,gt),Dt}var Fe=Math.random().toString(36).substring(2);function Me(){}var ut=void 0,Xe=1,mt=2;function Ae(){return new TypeError("You cannot resolve a promise with itself")}function De(){return new TypeError("A promises callback cannot return that same promise.")}function Be(gt,wt,Dt,tt){try{gt.call(wt,Dt,tt)}catch(fn){return fn}}function nt(gt,wt,Dt){le(function(tt){var fn=!1,hn=Be(Dt,wt,function($n){fn||(fn=!0,wt!==$n?Ct(tt,$n):on(tt,$n))},function($n){fn||(fn=!0,it(tt,$n))},"Settle: "+(tt._label||" unknown promise"));!fn&&hn&&(fn=!0,it(tt,hn))},gt)}function Ke(gt,wt){wt._state===Xe?on(gt,wt._result):wt._state===mt?it(gt,wt._result):lt(wt,void 0,function(Dt){return Ct(gt,Dt)},function(Dt){return it(gt,Dt)})}function Et(gt,wt,Dt){wt.constructor===gt.constructor&&Dt===xe&&wt.constructor.resolve===we?Ke(gt,wt):Dt===void 0?on(gt,wt):Pe(Dt)?nt(gt,wt,Dt):on(gt,wt)}function Ct(gt,wt){if(gt===wt)it(gt,Ae());else if(fe(wt)){var Dt=void 0;try{Dt=wt.then}catch(tt){it(gt,tt);return}Et(gt,wt,Dt)}else on(gt,wt)}function nn(gt){gt._onerror&&gt._onerror(gt._result),xt(gt)}function on(gt,wt){gt._state===ut&&(gt._result=wt,gt._state=Xe,gt._subscribers.length!==0&&le(xt,gt))}function it(gt,wt){gt._state===ut&&(gt._state=mt,gt._result=wt,le(nn,gt))}function lt(gt,wt,Dt,tt){var fn=gt._subscribers,hn=fn.length;gt._onerror=null,fn[hn]=wt,fn[hn+Xe]=Dt,fn[hn+mt]=tt,hn===0&&gt._state&&le(xt,gt)}function xt(gt){var wt=gt._subscribers,Dt=gt._state;if(wt.length!==0){for(var tt=void 0,fn=void 0,hn=gt._result,$n=0;$n<wt.length;$n+=3)tt=wt[$n],fn=wt[$n+Dt],tt?Jt(Dt,tt,fn,hn):fn(hn);gt._subscribers.length=0}}function Jt(gt,wt,Dt,tt){var fn=Pe(Dt),hn=void 0,$n=void 0,no=!0;if(fn){try{hn=Dt(tt)}catch(rt){no=!1,$n=rt}if(wt===hn){it(wt,De());return}}else hn=tt;wt._state!==ut||(fn&&no?Ct(wt,hn):no===!1?it(wt,$n):gt===Xe?on(wt,hn):gt===mt&&it(wt,hn))}function Vt(gt,wt){try{wt(function(tt){Ct(gt,tt)},function(tt){it(gt,tt)})}catch(Dt){it(gt,Dt)}}var xn=0;function He(){return xn++}function un(gt){gt[Fe]=xn++,gt._state=void 0,gt._result=void 0,gt._subscribers=[]}function kn(){return new Error("Array Methods must be provided an Array")}var nr=function(){function gt(wt,Dt){this._instanceConstructor=wt,this.promise=new wt(Me),this.promise[Fe]||un(this.promise),he(Dt)?(this.length=Dt.length,this._remaining=Dt.length,this._result=new Array(this.length),this.length===0?on(this.promise,this._result):(this.length=this.length||0,this._enumerate(Dt),this._remaining===0&&on(this.promise,this._result))):it(this.promise,kn())}return gt.prototype._enumerate=function(Dt){for(var tt=0;this._state===ut&&tt<Dt.length;tt++)this._eachEntry(Dt[tt],tt)},gt.prototype._eachEntry=function(Dt,tt){var fn=this._instanceConstructor,hn=fn.resolve;if(hn===we){var $n=void 0,no=void 0,rt=!1;try{$n=Dt.then}catch(An){rt=!0,no=An}if($n===xe&&Dt._state!==ut)this._settledAt(Dt._state,tt,Dt._result);else if(typeof $n!="function")this._remaining--,this._result[tt]=Dt;else if(fn===Rt){var vt=new fn(Me);rt?it(vt,no):Et(vt,Dt,$n),this._willSettleAt(vt,tt)}else this._willSettleAt(new fn(function(An){return An(Dt)}),tt)}else this._willSettleAt(hn(Dt),tt)},gt.prototype._settledAt=function(Dt,tt,fn){var hn=this.promise;hn._state===ut&&(this._remaining--,Dt===mt?it(hn,fn):this._result[tt]=fn),this._remaining===0&&on(hn,this._result)},gt.prototype._willSettleAt=function(Dt,tt){var fn=this;lt(Dt,void 0,function(hn){return fn._settledAt(Xe,tt,hn)},function(hn){return fn._settledAt(mt,tt,hn)})},gt}();function Ln(gt){return new nr(this,gt).promise}function Gt(gt){var wt=this;return he(gt)?new wt(function(Dt,tt){for(var fn=gt.length,hn=0;hn<fn;hn++)wt.resolve(gt[hn]).then(Dt,tt)}):new wt(function(Dt,tt){return tt(new TypeError("You must pass an array to race."))})}function Je(gt){var wt=this,Dt=new wt(Me);return it(Dt,gt),Dt}function Qe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function _t(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Rt=function(){function gt(wt){this[Fe]=He(),this._result=this._state=void 0,this._subscribers=[],Me!==wt&&(typeof wt!="function"&&Qe(),this instanceof gt?Vt(this,wt):_t())}return gt.prototype.catch=function(Dt){return this.then(null,Dt)},gt.prototype.finally=function(Dt){var tt=this,fn=tt.constructor;return Pe(Dt)?tt.then(function(hn){return fn.resolve(Dt()).then(function(){return hn})},function(hn){return fn.resolve(Dt()).then(function(){throw hn})}):tt.then(Dt,Dt)},gt}();Rt.prototype.then=xe,Rt.all=Ln,Rt.race=Gt,Rt.resolve=we,Rt.reject=Je,Rt._setScheduler=ue,Rt._setAsap=se,Rt._asap=le;function Yt(){var gt=void 0;if(typeof te.g!="undefined")gt=te.g;else if(typeof self!="undefined")gt=self;else try{gt=Function("return this")()}catch(tt){throw new Error("polyfill failed because global object is unavailable in this environment")}var wt=gt.Promise;if(wt){var Dt=null;try{Dt=Object.prototype.toString.call(wt.resolve())}catch(tt){}if(Dt==="[object Promise]"&&!wt.cast)return}gt.Promise=Rt}return Rt.polyfill=Yt,Rt.Promise=Rt,Rt})},17187:function(at){"use strict";var We=typeof Reflect=="object"?Reflect:null,te=We&&typeof We.apply=="function"?We.apply:function(ee,oe,ae){return Function.prototype.apply.call(ee,oe,ae)},z;We&&typeof We.ownKeys=="function"?z=We.ownKeys:Object.getOwnPropertySymbols?z=function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:z=function(ee){return Object.getOwnPropertyNames(ee)};function fe(x){console&&console.warn&&console.warn(x)}var Pe=Number.isNaN||function(ee){return ee!==ee};function ve(){ve.init.call(this)}at.exports=ve,at.exports.once=y,ve.EventEmitter=ve,ve.prototype._events=void 0,ve.prototype._eventsCount=0,ve.prototype._maxListeners=void 0;var he=10;function pe(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(ve,"defaultMaxListeners",{enumerable:!0,get:function(){return he},set:function(x){if(typeof x!="number"||x<0||Pe(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");he=x}}),ve.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ve.prototype.setMaxListeners=function(ee){if(typeof ee!="number"||ee<0||Pe(ee))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ee+".");return this._maxListeners=ee,this};function ie(x){return x._maxListeners===void 0?ve.defaultMaxListeners:x._maxListeners}ve.prototype.getMaxListeners=function(){return ie(this)},ve.prototype.emit=function(ee){for(var oe=[],ae=1;ae<arguments.length;ae++)oe.push(arguments[ae]);var ce=ee==="error",Se=this._events;if(Se!==void 0)ce=ce&&Se.error===void 0;else if(!ce)return!1;if(ce){var _e;if(oe.length>0&&(_e=oe[0]),_e instanceof Error)throw _e;var xe=new Error("Unhandled error."+(_e?" ("+_e.message+")":""));throw xe.context=_e,xe}var we=Se[ee];if(we===void 0)return!1;if(typeof we=="function")te(we,this,oe);else for(var Fe=we.length,Me=re(we,Fe),ae=0;ae<Fe;++ae)te(Me[ae],this,oe);return!0};function de(x,ee,oe,ae){var ce,Se,_e;if(pe(oe),Se=x._events,Se===void 0?(Se=x._events=Object.create(null),x._eventsCount=0):(Se.newListener!==void 0&&(x.emit("newListener",ee,oe.listener?oe.listener:oe),Se=x._events),_e=Se[ee]),_e===void 0)_e=Se[ee]=oe,++x._eventsCount;else if(typeof _e=="function"?_e=Se[ee]=ae?[oe,_e]:[_e,oe]:ae?_e.unshift(oe):_e.push(oe),ce=ie(x),ce>0&&_e.length>ce&&!_e.warned){_e.warned=!0;var xe=new Error("Possible EventEmitter memory leak detected. "+_e.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");xe.name="MaxListenersExceededWarning",xe.emitter=x,xe.type=ee,xe.count=_e.length,fe(xe)}return x}ve.prototype.addListener=function(ee,oe){return de(this,ee,oe,!1)},ve.prototype.on=ve.prototype.addListener,ve.prototype.prependListener=function(ee,oe){return de(this,ee,oe,!0)};function le(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ue(x,ee,oe){var ae={fired:!1,wrapFn:void 0,target:x,type:ee,listener:oe},ce=le.bind(ae);return ce.listener=oe,ae.wrapFn=ce,ce}ve.prototype.once=function(ee,oe){return pe(oe),this.on(ee,ue(this,ee,oe)),this},ve.prototype.prependOnceListener=function(ee,oe){return pe(oe),this.prependListener(ee,ue(this,ee,oe)),this},ve.prototype.removeListener=function(ee,oe){var ae,ce,Se,_e,xe;if(pe(oe),ce=this._events,ce===void 0)return this;if(ae=ce[ee],ae===void 0)return this;if(ae===oe||ae.listener===oe)--this._eventsCount===0?this._events=Object.create(null):(delete ce[ee],ce.removeListener&&this.emit("removeListener",ee,ae.listener||oe));else if(typeof ae!="function"){for(Se=-1,_e=ae.length-1;_e>=0;_e--)if(ae[_e]===oe||ae[_e].listener===oe){xe=ae[_e].listener,Se=_e;break}if(Se<0)return this;Se===0?ae.shift():ne(ae,Se),ae.length===1&&(ce[ee]=ae[0]),ce.removeListener!==void 0&&this.emit("removeListener",ee,xe||oe)}return this},ve.prototype.off=ve.prototype.removeListener,ve.prototype.removeAllListeners=function(ee){var oe,ae,ce;if(ae=this._events,ae===void 0)return this;if(ae.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ae[ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ae[ee]),this;if(arguments.length===0){var Se=Object.keys(ae),_e;for(ce=0;ce<Se.length;++ce)_e=Se[ce],_e!=="removeListener"&&this.removeAllListeners(_e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(oe=ae[ee],typeof oe=="function")this.removeListener(ee,oe);else if(oe!==void 0)for(ce=oe.length-1;ce>=0;ce--)this.removeListener(ee,oe[ce]);return this};function se(x,ee,oe){var ae=x._events;if(ae===void 0)return[];var ce=ae[ee];return ce===void 0?[]:typeof ce=="function"?oe?[ce.listener||ce]:[ce]:oe?a(ce):re(ce,ce.length)}ve.prototype.listeners=function(ee){return se(this,ee,!0)},ve.prototype.rawListeners=function(ee){return se(this,ee,!1)},ve.listenerCount=function(x,ee){return typeof x.listenerCount=="function"?x.listenerCount(ee):me.call(x,ee)},ve.prototype.listenerCount=me;function me(x){var ee=this._events;if(ee!==void 0){var oe=ee[x];if(typeof oe=="function")return 1;if(oe!==void 0)return oe.length}return 0}ve.prototype.eventNames=function(){return this._eventsCount>0?z(this._events):[]};function re(x,ee){for(var oe=new Array(ee),ae=0;ae<ee;++ae)oe[ae]=x[ae];return oe}function ne(x,ee){for(;ee+1<x.length;ee++)x[ee]=x[ee+1];x.pop()}function a(x){for(var ee=new Array(x.length),oe=0;oe<ee.length;++oe)ee[oe]=x[oe].listener||x[oe];return ee}function y(x,ee){return new Promise(function(oe,ae){function ce(_e){x.removeListener(ee,Se),ae(_e)}function Se(){typeof x.removeListener=="function"&&x.removeListener("error",ce),oe([].slice.call(arguments))}b(x,ee,Se,{once:!0}),ee!=="error"&&E(x,ce,{once:!0})})}function E(x,ee,oe){typeof x.on=="function"&&b(x,"error",ee,oe)}function b(x,ee,oe,ae){if(typeof x.on=="function")ae.once?x.once(ee,oe):x.on(ee,oe);else if(typeof x.addEventListener=="function")x.addEventListener(ee,function ce(Se){ae.once&&x.removeEventListener(ee,ce),oe(Se)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},19575:function(at,We,te){var z,fe;(function(Pe,ve){at.exports=ve(Pe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te.g!="undefined"?te.g:this,function(Pe){"use strict";Pe=Pe||{};var ve=Pe.Base64,he="2.6.4",pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(Xe){for(var mt={},Ae=0,De=Xe.length;Ae<De;Ae++)mt[Xe.charAt(Ae)]=Ae;return mt}(pe),de=String.fromCharCode,le=function(Xe){if(Xe.length<2){var mt=Xe.charCodeAt(0);return mt<128?Xe:mt<2048?de(192|mt>>>6)+de(128|mt&63):de(224|mt>>>12&15)+de(128|mt>>>6&63)+de(128|mt&63)}else{var mt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return de(240|mt>>>18&7)+de(128|mt>>>12&63)+de(128|mt>>>6&63)+de(128|mt&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Xe){return Xe.replace(ue,le)},me=function(Xe){var mt=[0,2,1][Xe.length%3],Ae=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),De=[pe.charAt(Ae>>>18),pe.charAt(Ae>>>12&63),mt>=2?"=":pe.charAt(Ae>>>6&63),mt>=1?"=":pe.charAt(Ae&63)];return De.join("")},re=Pe.btoa&&typeof Pe.btoa=="function"?function(Xe){return Pe.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,me)},ne=function(Xe){return re(se(String(Xe)))},a=function(Xe){return Xe.replace(/[+\/]/g,function(mt){return mt=="+"?"-":"_"}).replace(/=/g,"")},y=function(Xe,mt){return mt?a(ne(Xe)):ne(Xe)},E=function(Xe){return y(Xe,!0)},b;Pe.Uint8Array&&(b=function(Xe,mt){for(var Ae="",De=0,Be=Xe.length;De<Be;De+=3){var nt=Xe[De],Ke=Xe[De+1],Et=Xe[De+2],Ct=nt<<16|Ke<<8|Et;Ae+=pe.charAt(Ct>>>18)+pe.charAt(Ct>>>12&63)+(typeof Ke!="undefined"?pe.charAt(Ct>>>6&63):"=")+(typeof Et!="undefined"?pe.charAt(Ct&63):"=")}return mt?a(Ae):Ae});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ee=function(Xe){switch(Xe.length){case 4:var mt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),Ae=mt-65536;return de((Ae>>>10)+55296)+de((Ae&1023)+56320);case 3:return de((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return de((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},oe=function(Xe){return Xe.replace(x,ee)},ae=function(Xe){var mt=Xe.length,Ae=mt%4,De=(mt>0?ie[Xe.charAt(0)]<<18:0)|(mt>1?ie[Xe.charAt(1)]<<12:0)|(mt>2?ie[Xe.charAt(2)]<<6:0)|(mt>3?ie[Xe.charAt(3)]:0),Be=[de(De>>>16),de(De>>>8&255),de(De&255)];return Be.length-=[0,0,2,1][Ae],Be.join("")},ce=Pe.atob&&typeof Pe.atob=="function"?function(Xe){return Pe.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,ae)},Se=function(Xe){return ce(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(Xe){return oe(ce(Xe))},xe=function(Xe){return String(Xe).replace(/[-_]/g,function(mt){return mt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},we=function(Xe){return _e(xe(Xe))},Fe;Pe.Uint8Array&&(Fe=function(Xe){return Uint8Array.from(Se(xe(Xe)),function(mt){return mt.charCodeAt(0)})});var Me=function(){var Xe=Pe.Base64;return Pe.Base64=ve,Xe};if(Pe.Base64={VERSION:he,atob:Se,btoa:re,fromBase64:we,toBase64:y,utob:se,encode:y,encodeURI:E,btou:oe,decode:we,noConflict:Me,fromUint8Array:b,toUint8Array:Fe},typeof Object.defineProperty=="function"){var ut=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};Pe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ut(function(){return we(this)})),Object.defineProperty(String.prototype,"toBase64",ut(function(Xe){return y(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",ut(function(){return y(this,!0)}))}}return Pe.Meteor&&(Base64=Pe.Base64),at.exports?at.exports.Base64=Pe.Base64:(z=[],fe=function(){return Pe.Base64}.apply(We,z),fe!==void 0&&(at.exports=fe)),{Base64:Pe.Base64}})},26819:function(at,We){"use strict";var te;var z=typeof Symbol=="function"&&Symbol.for,fe=z?Symbol.for("react.element"):60103,Pe=z?Symbol.for("react.portal"):60106,ve=z?Symbol.for("react.fragment"):60107,he=z?Symbol.for("react.strict_mode"):60108,pe=z?Symbol.for("react.profiler"):60114,ie=z?Symbol.for("react.provider"):60109,de=z?Symbol.for("react.context"):60110,le=z?Symbol.for("react.async_mode"):60111,ue=z?Symbol.for("react.concurrent_mode"):60111,se=z?Symbol.for("react.forward_ref"):60112,me=z?Symbol.for("react.suspense"):60113,re=z?Symbol.for("react.suspense_list"):60120,ne=z?Symbol.for("react.memo"):60115,a=z?Symbol.for("react.lazy"):60116,y=z?Symbol.for("react.block"):60121,E=z?Symbol.for("react.fundamental"):60117,b=z?Symbol.for("react.responder"):60118,x=z?Symbol.for("react.scope"):60119;function ee(ae){if(typeof ae=="object"&&ae!==null){var ce=ae.$$typeof;switch(ce){case fe:switch(ae=ae.type,ae){case le:case ue:case ve:case pe:case he:case me:return ae;default:switch(ae=ae&&ae.$$typeof,ae){case de:case se:case a:case ne:case ie:return ae;default:return ce}}case Pe:return ce}}}function oe(ae){return ee(ae)===ue}te=le,te=ue,te=de,te=ie,te=fe,te=se,te=ve,te=a,te=ne,te=Pe,te=pe,te=he,te=me,te=function(ae){return oe(ae)||ee(ae)===le},te=oe,te=function(ae){return ee(ae)===de},te=function(ae){return ee(ae)===ie},te=function(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===fe},te=function(ae){return ee(ae)===se},te=function(ae){return ee(ae)===ve},te=function(ae){return ee(ae)===a},We.isMemo=function(ae){return ee(ae)===ne},te=function(ae){return ee(ae)===Pe},te=function(ae){return ee(ae)===pe},te=function(ae){return ee(ae)===he},te=function(ae){return ee(ae)===me},te=function(ae){return typeof ae=="string"||typeof ae=="function"||ae===ve||ae===ue||ae===pe||ae===he||ae===me||ae===re||typeof ae=="object"&&ae!==null&&(ae.$$typeof===a||ae.$$typeof===ne||ae.$$typeof===ie||ae.$$typeof===de||ae.$$typeof===se||ae.$$typeof===E||ae.$$typeof===b||ae.$$typeof===x||ae.$$typeof===y)},te=ee},18459:function(at,We,te){"use strict";at.exports=te(26819)},16651:function(at,We){"use strict";var te;var z=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Pe=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ie=Symbol.for("react.context"),de=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case z:switch(E=E.type,E){case Pe:case he:case ve:case ue:case se:return E;default:switch(E=E&&E.$$typeof,E){case de:case ie:case le:case re:case me:case pe:return E;default:return b}}case fe:return b}}}te=ie,te=pe,te=z,te=le,te=Pe,te=re,te=me,te=fe,te=he,te=ve,te=ue,te=se,te=function(){return!1},te=function(){return!1},te=function(E){return y(E)===ie},te=function(E){return y(E)===pe},te=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===z},te=function(E){return y(E)===le},te=function(E){return y(E)===Pe},te=function(E){return y(E)===re},te=function(E){return y(E)===me},te=function(E){return y(E)===fe},te=function(E){return y(E)===he},te=function(E){return y(E)===ve},te=function(E){return y(E)===ue},te=function(E){return y(E)===se},te=function(E){return typeof E=="string"||typeof E=="function"||E===Pe||E===he||E===ve||E===ue||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ie||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},te=y},33993:function(at,We,te){"use strict";te(16651)},46762:function(at,We){"use strict";var te;var z=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Pe=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),he=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ie=Symbol.for("react.context"),de=Symbol.for("react.server_context"),le=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case z:switch(E=E.type,E){case Pe:case he:case ve:case ue:case se:return E;default:switch(E=E&&E.$$typeof,E){case de:case ie:case le:case re:case me:case pe:return E;default:return b}}case fe:return b}}}te=ie,te=pe,te=z,te=le,te=Pe,te=re,te=me,te=fe,te=he,te=ve,te=ue,te=se,te=function(){return!1},te=function(){return!1},te=function(E){return y(E)===ie},te=function(E){return y(E)===pe},te=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===z},te=function(E){return y(E)===le},We.isFragment=function(E){return y(E)===Pe},te=function(E){return y(E)===re},te=function(E){return y(E)===me},te=function(E){return y(E)===fe},te=function(E){return y(E)===he},te=function(E){return y(E)===ve},te=function(E){return y(E)===ue},te=function(E){return y(E)===se},te=function(E){return typeof E=="string"||typeof E=="function"||E===Pe||E===he||E===ve||E===ue||E===se||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===me||E.$$typeof===pe||E.$$typeof===ie||E.$$typeof===le||E.$$typeof===a||E.getModuleId!==void 0)},te=y},35110:function(at,We,te){"use strict";at.exports=te(46762)},58971:function(at,We,te){var z=te(62195),fe=te(39015),Pe=[te(19257)];at.exports=z.createStore(fe,Pe)},19257:function(at,We,te){at.exports=z;function z(){return te(55703),{}}},55703:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(at){return at<10?"0"+at:at}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(at){return rx_escapable.lastIndex=0,rx_escapable.test(at)?'"'+at.replace(rx_escapable,function(We){var te=meta[We];return typeof te=="string"?te:"\\u"+("0000"+We.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+at+'"'}function str(at,We){var te,z,fe,Pe,ve=gap,he,pe=We[at];switch(pe&&typeof pe=="object"&&typeof pe.toJSON=="function"&&(pe=pe.toJSON(at)),typeof rep=="function"&&(pe=rep.call(We,at,pe)),typeof pe){case"string":return quote(pe);case"number":return isFinite(pe)?String(pe):"null";case"boolean":case"null":return String(pe);case"object":if(!pe)return"null";if(gap+=indent,he=[],Object.prototype.toString.apply(pe)==="[object Array]"){for(Pe=pe.length,te=0;te<Pe;te+=1)he[te]=str(te,pe)||"null";return fe=he.length===0?"[]":gap?`[
`+gap+he.join(`,
`+gap)+`
`+ve+"]":"["+he.join(",")+"]",gap=ve,fe}if(rep&&typeof rep=="object")for(Pe=rep.length,te=0;te<Pe;te+=1)typeof rep[te]=="string"&&(z=rep[te],fe=str(z,pe),fe&&he.push(quote(z)+(gap?": ":":")+fe));else for(z in pe)Object.prototype.hasOwnProperty.call(pe,z)&&(fe=str(z,pe),fe&&he.push(quote(z)+(gap?": ":":")+fe));return fe=he.length===0?"{}":gap?`{
`+gap+he.join(`,
`+gap)+`
`+ve+"}":"{"+he.join(",")+"}",gap=ve,fe}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(at,We,te){var z;if(gap="",indent="",typeof te=="number")for(z=0;z<te;z+=1)indent+=" ";else typeof te=="string"&&(indent=te);if(rep=We,We&&typeof We!="function"&&(typeof We!="object"||typeof We.length!="number"))throw new Error("JSON.stringify");return str("",{"":at})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(at,We){var te,z,fe=at[We];if(fe&&typeof fe=="object")for(te in fe)Object.prototype.hasOwnProperty.call(fe,te)&&(z=walk(fe,te),z!==void 0?fe[te]=z:delete fe[te]);return reviver.call(at,We,fe)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(at){return"\\u"+("0000"+at.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},62195:function(at,We,te){var z=te(69078),fe=z.slice,Pe=z.pluck,ve=z.each,he=z.bind,pe=z.create,ie=z.isList,de=z.isFunction,le=z.isObject;at.exports={createStore:me};var ue={version:"2.0.12",enabled:!1,get:function(re,ne){var a=this.storage.read(this._namespacePrefix+re);return this._deserialize(a,ne)},set:function(re,ne){return ne===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(ne)),ne)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var ne=this;this.storage.each(function(a,y){re.call(ne,ne._deserialize(a),(y||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return me.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return me(this.storage,this.plugins,re)}};function se(){var re=typeof console=="undefined"?null:console;if(re){var ne=re.warn?re.warn:re.log;ne.apply(re,arguments)}}function me(re,ne,a){a||(a=""),re&&!ie(re)&&(re=[re]),ne&&!ie(ne)&&(ne=[ne]);var y=a?"__storejs_"+a+"_":"",E=a?new RegExp("^"+y):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var x={_namespacePrefix:y,_namespaceRegexp:E,_testStorage:function(oe){try{var ae="__storejs__test__";oe.write(ae,ae);var ce=oe.read(ae)===ae;return oe.remove(ae),ce}catch(Se){return!1}},_assignPluginFnProp:function(oe,ae){var ce=this[ae];this[ae]=function(){var _e=fe(arguments,0),xe=this;function we(){if(ce)return ve(arguments,function(Me,ut){_e[ut]=Me}),ce.apply(xe,_e)}var Fe=[we].concat(_e);return oe.apply(xe,Fe)}},_serialize:function(oe){return JSON.stringify(oe)},_deserialize:function(oe,ae){if(!oe)return ae;var ce="";try{ce=JSON.parse(oe)}catch(Se){ce=oe}return ce!==void 0?ce:ae},_addStorage:function(oe){this.enabled||this._testStorage(oe)&&(this.storage=oe,this.enabled=!0)},_addPlugin:function(oe){var ae=this;if(ie(oe)){ve(oe,function(_e){ae._addPlugin(_e)});return}var ce=Pe(this.plugins,function(_e){return oe===_e});if(!ce){if(this.plugins.push(oe),!de(oe))throw new Error("Plugins must be function values that return objects");var Se=oe.call(this);if(!le(Se))throw new Error("Plugins must return an object of function properties");ve(Se,function(_e,xe){if(!de(_e))throw new Error("Bad plugin property: "+xe+" from plugin "+oe.name+". Plugins should only return functions.");ae._assignPluginFnProp(_e,xe)})}},addStorage:function(oe){se("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(oe)}},ee=pe(x,ue,{plugins:[]});return ee.raw={},ve(ee,function(oe,ae){de(oe)&&(ee.raw[ae]=he(ee,oe))}),ve(re,function(oe){ee._addStorage(oe)}),ve(ne,function(oe){ee._addPlugin(oe)}),ee}},69078:function(at,We,te){var z=he(),fe=pe(),Pe=ie(),ve=typeof window!="undefined"?window:te.g;at.exports={assign:z,create:fe,trim:Pe,bind:de,slice:le,each:ue,map:se,pluck:me,isList:re,isFunction:ne,isObject:a,Global:ve};function he(){return Object.assign?Object.assign:function(E,b,x,ee){for(var oe=1;oe<arguments.length;oe++)ue(Object(arguments[oe]),function(ae,ce){E[ce]=ae});return E}}function pe(){if(Object.create)return function(b,x,ee,oe){var ae=le(arguments,1);return z.apply(this,[Object.create(b)].concat(ae))};{let E=function(){};var y=E;return function(x,ee,oe,ae){var ce=le(arguments,1);return E.prototype=x,z.apply(this,[new E].concat(ce))}}}function ie(){return String.prototype.trim?function(E){return String.prototype.trim.call(E)}:function(E){return E.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function de(y,E){return function(){return E.apply(y,Array.prototype.slice.call(arguments,0))}}function le(y,E){return Array.prototype.slice.call(y,E||0)}function ue(y,E){me(y,function(b,x){return E(b,x),!1})}function se(y,E){var b=re(y)?[]:{};return me(y,function(x,ee){return b[ee]=E(x,ee),!1}),b}function me(y,E){if(re(y)){for(var b=0;b<y.length;b++)if(E(y[b],b))return y[b]}else for(var x in y)if(y.hasOwnProperty(x)&&E(y[x],x))return y[x]}function re(y){return y!=null&&typeof y!="function"&&typeof y.length=="number"}function ne(y){return y&&{}.toString.call(y)==="[object Function]"}function a(y){return y&&{}.toString.call(y)==="[object Object]"}},39015:function(at,We,te){at.exports=[te(39627),te(95347),te(34524),te(45580),te(58855),te(8728)]},45580:function(at,We,te){var z=te(69078),fe=z.Global,Pe=z.trim;at.exports={name:"cookieStorage",read:he,write:ie,each:pe,remove:de,clearAll:le};var ve=fe.document;function he(se){if(!se||!ue(se))return null;var me="(?:^|.*;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ve.cookie.replace(new RegExp(me),"$1"))}function pe(se){for(var me=ve.cookie.split(/; ?/g),re=me.length-1;re>=0;re--)if(Pe(me[re])){var ne=me[re].split("="),a=unescape(ne[0]),y=unescape(ne[1]);se(y,a)}}function ie(se,me){se&&(ve.cookie=escape(se)+"="+escape(me)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function de(se){!se||!ue(se)||(ve.cookie=escape(se)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){pe(function(se,me){de(me)})}function ue(se){return new RegExp("(?:^|;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ve.cookie)}},39627:function(at,We,te){var z=te(69078),fe=z.Global;at.exports={name:"localStorage",read:ve,write:he,each:pe,remove:ie,clearAll:de};function Pe(){return fe.localStorage}function ve(le){return Pe().getItem(le)}function he(le,ue){return Pe().setItem(le,ue)}function pe(le){for(var ue=Pe().length-1;ue>=0;ue--){var se=Pe().key(ue);le(ve(se),se)}}function ie(le){return Pe().removeItem(le)}function de(){return Pe().clear()}},8728:function(at){at.exports={name:"memoryStorage",read:te,write:z,each:fe,remove:Pe,clearAll:ve};var We={};function te(he){return We[he]}function z(he,pe){We[he]=pe}function fe(he){for(var pe in We)We.hasOwnProperty(pe)&&he(We[pe],pe)}function Pe(he){delete We[he]}function ve(he){We={}}},95347:function(at,We,te){var z=te(69078),fe=z.Global;at.exports={name:"oldFF-globalStorage",read:ve,write:he,each:pe,remove:ie,clearAll:de};var Pe=fe.globalStorage;function ve(le){return Pe[le]}function he(le,ue){Pe[le]=ue}function pe(le){for(var ue=Pe.length-1;ue>=0;ue--){var se=Pe.key(ue);le(Pe[se],se)}}function ie(le){return Pe.removeItem(le)}function de(){pe(function(le,ue){delete Pe[le]})}},34524:function(at,We,te){var z=te(69078),fe=z.Global;at.exports={name:"oldIE-userDataStorage",write:ie,read:de,each:le,remove:ue,clearAll:se};var Pe="storejs",ve=fe.document,he=ne(),pe=(fe.navigator?fe.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ie(a,y){if(!pe){var E=re(a);he(function(b){b.setAttribute(E,y),b.save(Pe)})}}function de(a){if(!pe){var y=re(a),E=null;return he(function(b){E=b.getAttribute(y)}),E}}function le(a){he(function(y){for(var E=y.XMLDocument.documentElement.attributes,b=E.length-1;b>=0;b--){var x=E[b];a(y.getAttribute(x.name),x.name)}})}function ue(a){var y=re(a);he(function(E){E.removeAttribute(y),E.save(Pe)})}function se(){he(function(a){var y=a.XMLDocument.documentElement.attributes;a.load(Pe);for(var E=y.length-1;E>=0;E--)a.removeAttribute(y[E].name);a.save(Pe)})}var me=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(a){return a.replace(/^\d/,"___$&").replace(me,"___")}function ne(){if(!ve||!ve.documentElement||!ve.documentElement.addBehavior)return null;var a="script",y,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),E.close(),y=E.w.frames[0].document,b=y.createElement("div")}catch(x){b=ve.createElement("div"),y=ve.body}return function(x){var ee=[].slice.call(arguments,0);ee.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(Pe),x.apply(this,ee),y.removeChild(b)}}},58855:function(at,We,te){var z=te(69078),fe=z.Global;at.exports={name:"sessionStorage",read:ve,write:he,each:pe,remove:ie,clearAll:de};function Pe(){return fe.sessionStorage}function ve(le){return Pe().getItem(le)}function he(le,ue){return Pe().setItem(le,ue)}function pe(le){for(var ue=Pe().length-1;ue>=0;ue--){var se=Pe().key(ue);le(ve(se),se)}}function ie(le){return Pe().removeItem(le)}function de(){return Pe().clear()}},18034:function(at){var We=arguments[3],te=arguments[4],z=arguments[5],fe=JSON.stringify;at.exports=function(Pe,ve){for(var he,pe=Object.keys(z),ie=0,de=pe.length;ie<de;ie++){var le=pe[ie],ue=z[le].exports;if(ue===Pe||ue&&ue.default===Pe){he=le;break}}if(!he){he=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var se={},ie=0,de=pe.length;ie<de;ie++){var le=pe[ie];se[le]=le}te[he]=["function(require,module,exports){"+Pe+"(self); }",se]}var me=Math.floor(Math.pow(16,8)*Math.random()).toString(16),re={};re[he]=he,te[me]=["function(require,module,exports){var f = require("+fe(he)+");(f.default ? f.default : f)(self);}",re];var ne={};a(me);function a(oe){ne[oe]=!0;for(var ae in te[oe][1]){var ce=te[oe][1][ae];ne[ce]||a(ce)}}var y="("+We+")({"+Object.keys(ne).map(function(oe){return fe(oe)+":["+te[oe][0]+","+fe(te[oe][1])+"]"}).join(",")+"},{},["+fe(me)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(ve&&ve.bare)return b;var x=E.createObjectURL(b),ee=new Worker(x);return ee.objectURL=x,ee}},12320:function(at){(function(We,te){if(1)at.exports=te();else var z,fe})(window,function(){return function(We){var te={};function z(fe){if(te[fe])return te[fe].exports;var Pe=te[fe]={i:fe,l:!1,exports:{}};return We[fe].call(Pe.exports,Pe,Pe.exports,z),Pe.l=!0,Pe.exports}return z.m=We,z.c=te,z.d=function(fe,Pe,ve){z.o(fe,Pe)||Object.defineProperty(fe,Pe,{enumerable:!0,get:ve})},z.r=function(fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(fe,"__esModule",{value:!0})},z.t=function(fe,Pe){if(1&Pe&&(fe=z(fe)),8&Pe||4&Pe&&typeof fe=="object"&&fe&&fe.__esModule)return fe;var ve=Object.create(null);if(z.r(ve),Object.defineProperty(ve,"default",{enumerable:!0,value:fe}),2&Pe&&typeof fe!="string")for(var he in fe)z.d(ve,he,function(pe){return fe[pe]}.bind(null,he));return ve},z.n=function(fe){var Pe=fe&&fe.__esModule?function(){return fe.default}:function(){return fe};return z.d(Pe,"a",Pe),Pe},z.o=function(fe,Pe){return Object.prototype.hasOwnProperty.call(fe,Pe)},z.p="",z(z.s=34)}([function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.forwardEvent=te.EventEmitter=void 0;var fe=function(){function Pe(){this._listeners=[],this._disposed=!1}return Object.defineProperty(Pe.prototype,"event",{get:function(){var ve=this;return this._event||(this._event=function(he){return ve._listeners.push(he),{dispose:function(){if(!ve._disposed){for(var pe=0;pe<ve._listeners.length;pe++)if(ve._listeners[pe]===he)return void ve._listeners.splice(pe,1)}}}}),this._event},enumerable:!1,configurable:!0}),Pe.prototype.fire=function(ve,he){for(var pe=[],ie=0;ie<this._listeners.length;ie++)pe.push(this._listeners[ie]);for(ie=0;ie<pe.length;ie++)pe[ie].call(void 0,ve,he)},Pe.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},Pe}();te.EventEmitter=fe,te.forwardEvent=function(Pe,ve){return Pe(function(he){return ve.fire(he)})}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.IUnicodeService=te.IOptionsService=te.ILogService=te.IInstantiationService=te.IDirtyRowService=te.ICharsetService=te.ICoreService=te.ICoreMouseService=te.IBufferService=void 0;var fe=z(14);te.IBufferService=fe.createDecorator("BufferService"),te.ICoreMouseService=fe.createDecorator("CoreMouseService"),te.ICoreService=fe.createDecorator("CoreService"),te.ICharsetService=fe.createDecorator("CharsetService"),te.IDirtyRowService=fe.createDecorator("DirtyRowService"),te.IInstantiationService=fe.createDecorator("InstantiationService"),te.ILogService=fe.createDecorator("LogService"),te.IOptionsService=fe.createDecorator("OptionsService"),te.IUnicodeService=fe.createDecorator("UnicodeService")},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.getDisposeArrayDisposable=te.disposeArray=te.Disposable=void 0;var fe=function(){function ve(){this._disposables=[],this._isDisposed=!1}return ve.prototype.dispose=function(){this._isDisposed=!0;for(var he=0,pe=this._disposables;he<pe.length;he++)pe[he].dispose();this._disposables.length=0},ve.prototype.register=function(he){return this._disposables.push(he),he},ve.prototype.unregister=function(he){var pe=this._disposables.indexOf(he);pe!==-1&&this._disposables.splice(pe,1)},ve}();function Pe(ve){for(var he=0,pe=ve;he<pe.length;he++)pe[he].dispose();ve.length=0}te.Disposable=fe,te.disposeArray=Pe,te.getDisposeArrayDisposable=function(ve){return{dispose:function(){return Pe(ve)}}}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WHITESPACE_CELL_CODE=te.WHITESPACE_CELL_WIDTH=te.WHITESPACE_CELL_CHAR=te.NULL_CELL_CODE=te.NULL_CELL_WIDTH=te.NULL_CELL_CHAR=te.CHAR_DATA_CODE_INDEX=te.CHAR_DATA_WIDTH_INDEX=te.CHAR_DATA_CHAR_INDEX=te.CHAR_DATA_ATTR_INDEX=te.DEFAULT_ATTR=te.DEFAULT_COLOR=void 0,te.DEFAULT_COLOR=256,te.DEFAULT_ATTR=256|te.DEFAULT_COLOR<<9,te.CHAR_DATA_ATTR_INDEX=0,te.CHAR_DATA_CHAR_INDEX=1,te.CHAR_DATA_WIDTH_INDEX=2,te.CHAR_DATA_CODE_INDEX=3,te.NULL_CELL_CHAR="",te.NULL_CELL_WIDTH=1,te.NULL_CELL_CODE=0,te.WHITESPACE_CELL_CHAR=" ",te.WHITESPACE_CELL_WIDTH=1,te.WHITESPACE_CELL_CODE=32},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(de,le){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,se){ue.__proto__=se}||function(ue,se){for(var me in se)se.hasOwnProperty(me)&&(ue[me]=se[me])})(de,le)},function(de,le){function ue(){this.constructor=de}fe(de,le),de.prototype=le===null?Object.create(le):(ue.prototype=le.prototype,new ue)});Object.defineProperty(te,"__esModule",{value:!0}),te.CellData=void 0;var ve=z(8),he=z(3),pe=z(6),ie=function(de){function le(){var ue=de!==null&&de.apply(this,arguments)||this;return ue.content=0,ue.fg=0,ue.bg=0,ue.extended=new pe.ExtendedAttrs,ue.combinedData="",ue}return Pe(le,de),le.fromCharData=function(ue){var se=new le;return se.setFromCharData(ue),se},le.prototype.isCombined=function(){return 2097152&this.content},le.prototype.getWidth=function(){return this.content>>22},le.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?ve.stringFromCodePoint(2097151&this.content):""},le.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},le.prototype.setFromCharData=function(ue){this.fg=ue[he.CHAR_DATA_ATTR_INDEX],this.bg=0;var se=!1;if(ue[he.CHAR_DATA_CHAR_INDEX].length>2)se=!0;else if(ue[he.CHAR_DATA_CHAR_INDEX].length===2){var me=ue[he.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=me&&me<=56319){var re=ue[he.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=re&&re<=57343?this.content=1024*(me-55296)+re-56320+65536|ue[he.CHAR_DATA_WIDTH_INDEX]<<22:se=!0}else se=!0}else this.content=ue[he.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ue[he.CHAR_DATA_WIDTH_INDEX]<<22;se&&(this.combinedData=ue[he.CHAR_DATA_CHAR_INDEX],this.content=2097152|ue[he.CHAR_DATA_WIDTH_INDEX]<<22)},le.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},le}(pe.AttributeData);te.CellData=ie},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ISoundService=te.ISelectionService=te.IRenderService=te.IMouseService=te.ICoreBrowserService=te.ICharSizeService=void 0;var fe=z(14);te.ICharSizeService=fe.createDecorator("CharSizeService"),te.ICoreBrowserService=fe.createDecorator("CoreBrowserService"),te.IMouseService=fe.createDecorator("MouseService"),te.IRenderService=fe.createDecorator("RenderService"),te.ISelectionService=fe.createDecorator("SelectionService"),te.ISoundService=fe.createDecorator("SoundService")},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ExtendedAttrs=te.AttributeData=void 0;var fe=function(){function ve(){this.fg=0,this.bg=0,this.extended=new Pe}return ve.toColorRGB=function(he){return[he>>>16&255,he>>>8&255,255&he]},ve.fromColorRGB=function(he){return(255&he[0])<<16|(255&he[1])<<8|255&he[2]},ve.prototype.clone=function(){var he=new ve;return he.fg=this.fg,he.bg=this.bg,he.extended=this.extended.clone(),he},ve.prototype.isInverse=function(){return 67108864&this.fg},ve.prototype.isBold=function(){return 134217728&this.fg},ve.prototype.isUnderline=function(){return 268435456&this.fg},ve.prototype.isBlink=function(){return 536870912&this.fg},ve.prototype.isInvisible=function(){return 1073741824&this.fg},ve.prototype.isItalic=function(){return 67108864&this.bg},ve.prototype.isDim=function(){return 134217728&this.bg},ve.prototype.getFgColorMode=function(){return 50331648&this.fg},ve.prototype.getBgColorMode=function(){return 50331648&this.bg},ve.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},ve.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},ve.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},ve.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},ve.prototype.isFgDefault=function(){return(50331648&this.fg)==0},ve.prototype.isBgDefault=function(){return(50331648&this.bg)==0},ve.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},ve.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},ve.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},ve.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},ve.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},ve.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},ve.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},ve.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},ve.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},ve.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},ve.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},ve}();te.AttributeData=fe;var Pe=function(){function ve(he,pe){he===void 0&&(he=0),pe===void 0&&(pe=-1),this.underlineStyle=he,this.underlineColor=pe}return ve.prototype.clone=function(){return new ve(this.underlineStyle,this.underlineColor)},ve.prototype.isEmpty=function(){return this.underlineStyle===0},ve}();te.ExtendedAttrs=Pe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.addDisposableDomListener=void 0,te.addDisposableDomListener=function(fe,Pe,ve,he){fe.addEventListener(Pe,ve,he);var pe=!1;return{dispose:function(){pe||(pe=!0,fe.removeEventListener(Pe,ve,he))}}}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Utf8ToUtf32=te.StringToUtf32=te.utf32ToString=te.stringFromCodePoint=void 0,te.stringFromCodePoint=function(ve){return ve>65535?(ve-=65536,String.fromCharCode(55296+(ve>>10))+String.fromCharCode(ve%1024+56320)):String.fromCharCode(ve)},te.utf32ToString=function(ve,he,pe){he===void 0&&(he=0),pe===void 0&&(pe=ve.length);for(var ie="",de=he;de<pe;++de){var le=ve[de];le>65535?(le-=65536,ie+=String.fromCharCode(55296+(le>>10))+String.fromCharCode(le%1024+56320)):ie+=String.fromCharCode(le)}return ie};var fe=function(){function ve(){this._interim=0}return ve.prototype.clear=function(){this._interim=0},ve.prototype.decode=function(he,pe){var ie=he.length;if(!ie)return 0;var de=0,le=0;this._interim&&(56320<=(me=he.charCodeAt(le++))&&me<=57343?pe[de++]=1024*(this._interim-55296)+me-56320+65536:(pe[de++]=this._interim,pe[de++]=me),this._interim=0);for(var ue=le;ue<ie;++ue){var se=he.charCodeAt(ue);if(55296<=se&&se<=56319){if(++ue>=ie)return this._interim=se,de;var me;56320<=(me=he.charCodeAt(ue))&&me<=57343?pe[de++]=1024*(se-55296)+me-56320+65536:(pe[de++]=se,pe[de++]=me)}else pe[de++]=se}return de},ve}();te.StringToUtf32=fe;var Pe=function(){function ve(){this.interim=new Uint8Array(3)}return ve.prototype.clear=function(){this.interim.fill(0)},ve.prototype.decode=function(he,pe){var ie=he.length;if(!ie)return 0;var de,le,ue,se,me=0,re=0,ne=0;if(this.interim[0]){var a=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var E=0,b=void 0;(b=63&this.interim[++E])&&E<4;)y<<=6,y|=b;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,ee=x-E;ne<ee;){if(ne>=ie)return 0;if((192&(b=he[ne++]))!=128){ne--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(x===2?y<128?ne--:pe[me++]=y:x===3?y<2048||y>=55296&&y<=57343||(pe[me++]=y):y<65536||y>1114111||(pe[me++]=y)),this.interim.fill(0)}for(var oe=ie-4,ae=ne;ae<ie;){for(;!(!(ae<oe)||128&(de=he[ae])||128&(le=he[ae+1])||128&(ue=he[ae+2])||128&(se=he[ae+3]));)pe[me++]=de,pe[me++]=le,pe[me++]=ue,pe[me++]=se,ae+=4;if((de=he[ae++])<128)pe[me++]=de;else if((224&de)==192){if(ae>=ie)return this.interim[0]=de,me;if((192&(le=he[ae++]))!=128){ae--;continue}if((re=(31&de)<<6|63&le)<128){ae--;continue}pe[me++]=re}else if((240&de)==224){if(ae>=ie)return this.interim[0]=de,me;if((192&(le=he[ae++]))!=128){ae--;continue}if(ae>=ie)return this.interim[0]=de,this.interim[1]=le,me;if((192&(ue=he[ae++]))!=128){ae--;continue}if((re=(15&de)<<12|(63&le)<<6|63&ue)<2048||re>=55296&&re<=57343)continue;pe[me++]=re}else if((248&de)==240){if(ae>=ie)return this.interim[0]=de,me;if((192&(le=he[ae++]))!=128){ae--;continue}if(ae>=ie)return this.interim[0]=de,this.interim[1]=le,me;if((192&(ue=he[ae++]))!=128){ae--;continue}if(ae>=ie)return this.interim[0]=de,this.interim[1]=le,this.interim[2]=ue,me;if((192&(se=he[ae++]))!=128){ae--;continue}if((re=(7&de)<<18|(63&le)<<12|(63&ue)<<6|63&se)<65536||re>1114111)continue;pe[me++]=re}}return me},ve}();te.Utf8ToUtf32=Pe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CHAR_ATLAS_CELL_SPACING=te.DIM_OPACITY=te.INVERTED_DEFAULT_COLOR=void 0,te.INVERTED_DEFAULT_COLOR=257,te.DIM_OPACITY=.5,te.CHAR_ATLAS_CELL_SPACING=1},function(We,te,z){"use strict";var fe,Pe,ve,he;function pe(de){var le=de.toString(16);return le.length<2?"0"+le:le}function ie(de,le){return de<le?(le+.05)/(de+.05):(de+.05)/(le+.05)}Object.defineProperty(te,"__esModule",{value:!0}),te.contrastRatio=te.toPaddedHex=te.rgba=te.rgb=te.css=te.color=te.channels=void 0,function(de){de.toCss=function(le,ue,se,me){return me!==void 0?"#"+pe(le)+pe(ue)+pe(se)+pe(me):"#"+pe(le)+pe(ue)+pe(se)},de.toRgba=function(le,ue,se,me){return me===void 0&&(me=255),(le<<24|ue<<16|se<<8|me)>>>0}}(fe=te.channels||(te.channels={})),(Pe=te.color||(te.color={})).blend=function(de,le){var ue=(255&le.rgba)/255;if(ue===1)return{css:le.css,rgba:le.rgba};var se=le.rgba>>24&255,me=le.rgba>>16&255,re=le.rgba>>8&255,ne=de.rgba>>24&255,a=de.rgba>>16&255,y=de.rgba>>8&255,E=ne+Math.round((se-ne)*ue),b=a+Math.round((me-a)*ue),x=y+Math.round((re-y)*ue);return{css:fe.toCss(E,b,x),rgba:fe.toRgba(E,b,x)}},Pe.isOpaque=function(de){return(255&de.rgba)==255},Pe.ensureContrastRatio=function(de,le,ue){var se=he.ensureContrastRatio(de.rgba,le.rgba,ue);if(se)return he.toColor(se>>24&255,se>>16&255,se>>8&255)},Pe.opaque=function(de){var le=(255|de.rgba)>>>0,ue=he.toChannels(le),se=ue[0],me=ue[1],re=ue[2];return{css:fe.toCss(se,me,re),rgba:le}},Pe.opacity=function(de,le){var ue=Math.round(255*le),se=he.toChannels(de.rgba),me=se[0],re=se[1],ne=se[2];return{css:fe.toCss(me,re,ne,ue),rgba:fe.toRgba(me,re,ne,ue)}},(te.css||(te.css={})).toColor=function(de){switch(de.length){case 7:return{css:de,rgba:(parseInt(de.slice(1),16)<<8|255)>>>0};case 9:return{css:de,rgba:parseInt(de.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(de){function le(ue,se,me){var re=ue/255,ne=se/255,a=me/255;return .2126*(re<=.03928?re/12.92:Math.pow((re+.055)/1.055,2.4))+.7152*(ne<=.03928?ne/12.92:Math.pow((ne+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}de.relativeLuminance=function(ue){return le(ue>>16&255,ue>>8&255,255&ue)},de.relativeLuminance2=le}(ve=te.rgb||(te.rgb={})),function(de){function le(se,me,re){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=me>>24&255,b=me>>16&255,x=me>>8&255,ee=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));ee<re&&(E>0||b>0||x>0);)E-=Math.max(0,Math.ceil(.1*E)),b-=Math.max(0,Math.ceil(.1*b)),x-=Math.max(0,Math.ceil(.1*x)),ee=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function ue(se,me,re){for(var ne=se>>24&255,a=se>>16&255,y=se>>8&255,E=me>>24&255,b=me>>16&255,x=me>>8&255,ee=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));ee<re&&(E<255||b<255||x<255);)E=Math.min(255,E+Math.ceil(.1*(255-E))),b=Math.min(255,b+Math.ceil(.1*(255-b))),x=Math.min(255,x+Math.ceil(.1*(255-x))),ee=ie(ve.relativeLuminance2(E,x,b),ve.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}de.ensureContrastRatio=function(se,me,re){var ne=ve.relativeLuminance(se>>8),a=ve.relativeLuminance(me>>8);if(ie(ne,a)<re)return a<ne?le(se,me,re):ue(se,me,re)},de.reduceLuminance=le,de.increaseLuminance=ue,de.toChannels=function(se){return[se>>24&255,se>>16&255,se>>8&255,255&se]},de.toColor=function(se,me,re){return{css:fe.toCss(se,me,re),rgba:fe.toRgba(se,me,re)}}}(he=te.rgba||(te.rgba={})),te.toPaddedHex=pe,te.contrastRatio=ie},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.isLinux=te.isWindows=te.isIphone=te.isIpad=te.isMac=te.isSafari=te.isFirefox=void 0;var fe=typeof navigator=="undefined",Pe=fe?"node":navigator.userAgent,ve=fe?"node":navigator.platform;function he(pe,ie){return pe.indexOf(ie)>=0}te.isFirefox=!!~Pe.indexOf("Firefox"),te.isSafari=/^((?!chrome|android).)*safari/i.test(Pe),te.isMac=he(["Macintosh","MacIntel","MacPPC","Mac68K"],ve),te.isIpad=ve==="iPad",te.isIphone=ve==="iPhone",te.isWindows=he(["Windows","Win16","Win32","WinCE"],ve),te.isLinux=ve.indexOf("Linux")>=0},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.C1=te.C0=void 0,function(fe){fe.NUL="\0",fe.SOH="",fe.STX="",fe.ETX="",fe.EOT="",fe.ENQ="",fe.ACK="",fe.BEL="\x07",fe.BS="\b",fe.HT=" ",fe.LF=`
`,fe.VT="\v",fe.FF="\f",fe.CR="\r",fe.SO="",fe.SI="",fe.DLE="",fe.DC1="",fe.DC2="",fe.DC3="",fe.DC4="",fe.NAK="",fe.SYN="",fe.ETB="",fe.CAN="",fe.EM="",fe.SUB="",fe.ESC="\x1B",fe.FS="",fe.GS="",fe.RS="",fe.US="",fe.SP=" ",fe.DEL="\x7F"}(te.C0||(te.C0={})),function(fe){fe.PAD="\x80",fe.HOP="\x81",fe.BPH="\x82",fe.NBH="\x83",fe.IND="\x84",fe.NEL="\x85",fe.SSA="\x86",fe.ESA="\x87",fe.HTS="\x88",fe.HTJ="\x89",fe.VTS="\x8A",fe.PLD="\x8B",fe.PLU="\x8C",fe.RI="\x8D",fe.SS2="\x8E",fe.SS3="\x8F",fe.DCS="\x90",fe.PU1="\x91",fe.PU2="\x92",fe.STS="\x93",fe.CCH="\x94",fe.MW="\x95",fe.SPA="\x96",fe.EPA="\x97",fe.SOS="\x98",fe.SGCI="\x99",fe.SCI="\x9A",fe.CSI="\x9B",fe.ST="\x9C",fe.OSC="\x9D",fe.PM="\x9E",fe.APC="\x9F"}(te.C1||(te.C1={}))},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseRenderLayer=void 0;var fe=z(3),Pe=z(9),ve=z(25),he=z(6),pe=z(28),ie=z(10),de=z(17),le=function(){function ue(se,me,re,ne,a,y,E,b){this._container=se,this._alpha=ne,this._colors=a,this._rendererId=y,this._bufferService=E,this._optionsService=b,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+me+"-layer"),this._canvas.style.zIndex=re.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return ue.prototype.dispose=function(){var se;de.removeElementFromParent(this._canvas),(se=this._charAtlas)===null||se===void 0||se.dispose()},ue.prototype._initCanvas=function(){this._ctx=pe.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},ue.prototype.onOptionsChanged=function(){},ue.prototype.onBlur=function(){},ue.prototype.onFocus=function(){},ue.prototype.onCursorMove=function(){},ue.prototype.onGridChanged=function(se,me){},ue.prototype.onSelectionChanged=function(se,me,re){re===void 0&&(re=!1)},ue.prototype.setColors=function(se){this._refreshCharAtlas(se)},ue.prototype._setTransparency=function(se){if(se!==this._alpha){var me=this._canvas;this._alpha=se,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,me),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},ue.prototype._refreshCharAtlas=function(se){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=ve.acquireCharAtlas(this._optionsService.options,this._rendererId,se,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},ue.prototype.resize=function(se){this._scaledCellWidth=se.scaledCellWidth,this._scaledCellHeight=se.scaledCellHeight,this._scaledCharWidth=se.scaledCharWidth,this._scaledCharHeight=se.scaledCharHeight,this._scaledCharLeft=se.scaledCharLeft,this._scaledCharTop=se.scaledCharTop,this._canvas.width=se.scaledCanvasWidth,this._canvas.height=se.scaledCanvasHeight,this._canvas.style.width=se.canvasWidth+"px",this._canvas.style.height=se.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},ue.prototype._fillCells=function(se,me,re,ne){this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight)},ue.prototype._fillBottomLineAtCells=function(se,me,re){re===void 0&&(re=1),this._ctx.fillRect(se*this._scaledCellWidth,(me+1)*this._scaledCellHeight-window.devicePixelRatio-1,re*this._scaledCellWidth,window.devicePixelRatio)},ue.prototype._fillLeftLineAtCell=function(se,me,re){this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,window.devicePixelRatio*re,this._scaledCellHeight)},ue.prototype._strokeRectAtCell=function(se,me,re,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(se*this._scaledCellWidth+window.devicePixelRatio/2,me*this._scaledCellHeight+window.devicePixelRatio/2,re*this._scaledCellWidth-window.devicePixelRatio,ne*this._scaledCellHeight-window.devicePixelRatio)},ue.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},ue.prototype._clearCells=function(se,me,re,ne){this._alpha?this._ctx.clearRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(se*this._scaledCellWidth,me*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight))},ue.prototype._fillCharTrueColor=function(se,me,re){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(re),this._ctx.fillText(se.getChars(),me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},ue.prototype._drawChars=function(se,me,re){var ne,a,y=this._getContrastColor(se);y||se.isFgRGB()||se.isBgRGB()?this._drawUncachedChars(se,me,re,y):(se.isInverse()?(ne=se.isBgDefault()?Pe.INVERTED_DEFAULT_COLOR:se.getBgColor(),a=se.isFgDefault()?Pe.INVERTED_DEFAULT_COLOR:se.getFgColor()):(a=se.isBgDefault()?fe.DEFAULT_COLOR:se.getBgColor(),ne=se.isFgDefault()?fe.DEFAULT_COLOR:se.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=se.getChars()||fe.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=se.getCode()||fe.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!se.isBold(),this._currentGlyphIdentifier.dim=!!se.isDim(),this._currentGlyphIdentifier.italic=!!se.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(se,me,re))},ue.prototype._drawUncachedChars=function(se,me,re,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!se.isBold(),!!se.isItalic()),this._ctx.textBaseline="middle",se.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(se.isBgDefault())this._ctx.fillStyle=ie.color.opaque(this._colors.background).css;else if(se.isBgRGB())this._ctx.fillStyle="rgb("+he.AttributeData.toColorRGB(se.getBgColor()).join(",")+")";else{var a=se.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(se.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(se.isFgRGB())this._ctx.fillStyle="rgb("+he.AttributeData.toColorRGB(se.getFgColor()).join(",")+")";else{var y=se.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&se.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(re),se.isDim()&&(this._ctx.globalAlpha=Pe.DIM_OPACITY),this._ctx.fillText(se.getChars(),me*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},ue.prototype._clipRow=function(se){this._ctx.beginPath(),this._ctx.rect(0,se*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},ue.prototype._getFont=function(se,me){return(me?"italic":"")+" "+(se?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},ue.prototype._getContrastColor=function(se){if(this._optionsService.options.minimumContrastRatio!==1){var me=this._colors.contrastCache.getColor(se.bg,se.fg);if(me!==void 0)return me||void 0;var re=se.getFgColor(),ne=se.getFgColorMode(),a=se.getBgColor(),y=se.getBgColorMode(),E=!!se.isInverse(),b=!!se.isInverse();if(E){var x=re;re=a,a=x;var ee=ne;ne=y,y=ee}var oe=this._resolveBackgroundRgba(y,a,E),ae=this._resolveForegroundRgba(ne,re,E,b),ce=ie.rgba.ensureContrastRatio(oe,ae,this._optionsService.options.minimumContrastRatio);if(ce){var Se={css:ie.channels.toCss(ce>>24&255,ce>>16&255,ce>>8&255),rgba:ce};return this._colors.contrastCache.setColor(se.bg,se.fg,Se),Se}this._colors.contrastCache.setColor(se.bg,se.fg,null)}},ue.prototype._resolveBackgroundRgba=function(se,me,re){switch(se){case 16777216:case 33554432:return this._colors.ansi[me].rgba;case 50331648:return me<<8;case 0:default:return re?this._colors.foreground.rgba:this._colors.background.rgba}},ue.prototype._resolveForegroundRgba=function(se,me,re,ne){switch(se){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&me<8&&(me+=8),this._colors.ansi[me].rgba;case 50331648:return me<<8;case 0:default:return re?this._colors.background.rgba:this._colors.foreground.rgba}},ue}();te.BaseRenderLayer=le},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createDecorator=te.getServiceDependencies=te.serviceRegistry=void 0;function fe(Pe,ve,he){ve.di$target===ve?ve.di$dependencies.push({id:Pe,index:he}):(ve.di$dependencies=[{id:Pe,index:he}],ve.di$target=ve)}te.serviceRegistry=new Map,te.getServiceDependencies=function(Pe){return Pe.di$dependencies||[]},te.createDecorator=function(Pe){if(te.serviceRegistry.has(Pe))return te.serviceRegistry.get(Pe);var ve=function(he,pe,ie){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");fe(ve,he,ie)};return ve.toString=function(){return Pe},te.serviceRegistry.set(Pe,ve),ve}},function(We,te,z){"use strict";function fe(Pe,ve,he,pe){if(he===void 0&&(he=0),pe===void 0&&(pe=Pe.length),he>=Pe.length)return Pe;he=(Pe.length+he)%Pe.length,pe=pe>=Pe.length?Pe.length:(Pe.length+pe)%Pe.length;for(var ie=he;ie<pe;++ie)Pe[ie]=ve;return Pe}Object.defineProperty(te,"__esModule",{value:!0}),te.concat=te.fillFallback=te.fill=void 0,te.fill=function(Pe,ve,he,pe){return Pe.fill?Pe.fill(ve,he,pe):fe(Pe,ve,he,pe)},te.fillFallback=fe,te.concat=function(Pe,ve){var he=new Pe.constructor(Pe.length+ve.length);return he.set(Pe),he.set(ve,Pe.length),he}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferLine=te.DEFAULT_ATTR_DATA=void 0;var fe=z(8),Pe=z(3),ve=z(4),he=z(6);te.DEFAULT_ATTR_DATA=Object.freeze(new he.AttributeData);var pe=function(){function ie(de,le,ue){ue===void 0&&(ue=!1),this.isWrapped=ue,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*de);for(var se=le||ve.CellData.fromCharData([0,Pe.NULL_CELL_CHAR,Pe.NULL_CELL_WIDTH,Pe.NULL_CELL_CODE]),me=0;me<de;++me)this.setCell(me,se);this.length=de}return ie.prototype.get=function(de){var le=this._data[3*de+0],ue=2097151&le;return[this._data[3*de+1],2097152&le?this._combined[de]:ue?fe.stringFromCodePoint(ue):"",le>>22,2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):ue]},ie.prototype.set=function(de,le){this._data[3*de+1]=le[Pe.CHAR_DATA_ATTR_INDEX],le[Pe.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[de]=le[1],this._data[3*de+0]=2097152|de|le[Pe.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*de+0]=le[Pe.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|le[Pe.CHAR_DATA_WIDTH_INDEX]<<22},ie.prototype.getWidth=function(de){return this._data[3*de+0]>>22},ie.prototype.hasWidth=function(de){return 12582912&this._data[3*de+0]},ie.prototype.getFg=function(de){return this._data[3*de+1]},ie.prototype.getBg=function(de){return this._data[3*de+2]},ie.prototype.hasContent=function(de){return 4194303&this._data[3*de+0]},ie.prototype.getCodePoint=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):2097151&le},ie.prototype.isCombined=function(de){return 2097152&this._data[3*de+0]},ie.prototype.getString=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de]:2097151&le?fe.stringFromCodePoint(2097151&le):""},ie.prototype.loadCell=function(de,le){var ue=3*de;return le.content=this._data[ue+0],le.fg=this._data[ue+1],le.bg=this._data[ue+2],2097152&le.content&&(le.combinedData=this._combined[de]),268435456&le.bg&&(le.extended=this._extendedAttrs[de]),le},ie.prototype.setCell=function(de,le){2097152&le.content&&(this._combined[de]=le.combinedData),268435456&le.bg&&(this._extendedAttrs[de]=le.extended),this._data[3*de+0]=le.content,this._data[3*de+1]=le.fg,this._data[3*de+2]=le.bg},ie.prototype.setCellFromCodePoint=function(de,le,ue,se,me,re){268435456&me&&(this._extendedAttrs[de]=re),this._data[3*de+0]=le|ue<<22,this._data[3*de+1]=se,this._data[3*de+2]=me},ie.prototype.addCodepointToCell=function(de,le){var ue=this._data[3*de+0];2097152&ue?this._combined[de]+=fe.stringFromCodePoint(le):(2097151&ue?(this._combined[de]=fe.stringFromCodePoint(2097151&ue)+fe.stringFromCodePoint(le),ue&=-2097152,ue|=2097152):ue=le|1<<22,this._data[3*de+0]=ue)},ie.prototype.insertCells=function(de,le,ue,se){if((de%=this.length)&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),le<this.length-de){for(var me=new ve.CellData,re=this.length-de-le-1;re>=0;--re)this.setCell(de+le+re,this.loadCell(de+re,me));for(re=0;re<le;++re)this.setCell(de+re,ue)}else for(re=de;re<this.length;++re)this.setCell(re,ue);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs)},ie.prototype.deleteCells=function(de,le,ue,se){if(de%=this.length,le<this.length-de){for(var me=new ve.CellData,re=0;re<this.length-de-le;++re)this.setCell(de+re,this.loadCell(de+le+re,me));for(re=this.length-le;re<this.length;++re)this.setCell(re,ue)}else for(re=de;re<this.length;++re)this.setCell(re,ue);de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),this.getWidth(de)!==0||this.hasContent(de)||this.setCellFromCodePoint(de,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs)},ie.prototype.replaceCells=function(de,le,ue,se){for(de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs),le<this.length&&this.getWidth(le-1)===2&&this.setCellFromCodePoint(le,0,1,(se==null?void 0:se.fg)||0,(se==null?void 0:se.bg)||0,(se==null?void 0:se.extended)||new he.ExtendedAttrs);de<le&&de<this.length;)this.setCell(de++,ue)},ie.prototype.resize=function(de,le){if(de!==this.length){if(de>this.length){var ue=new Uint32Array(3*de);this.length&&(3*de<this._data.length?ue.set(this._data.subarray(0,3*de)):ue.set(this._data)),this._data=ue;for(var se=this.length;se<de;++se)this.setCell(se,le)}else if(de){(ue=new Uint32Array(3*de)).set(this._data.subarray(0,3*de)),this._data=ue;var me=Object.keys(this._combined);for(se=0;se<me.length;se++){var re=parseInt(me[se],10);re>=de&&delete this._combined[re]}}else this._data=new Uint32Array(0),this._combined={};this.length=de}},ie.prototype.fill=function(de){this._combined={},this._extendedAttrs={};for(var le=0;le<this.length;++le)this.setCell(le,de)},ie.prototype.copyFrom=function(de){for(var le in this.length!==de.length?this._data=new Uint32Array(de._data):this._data.set(de._data),this.length=de.length,this._combined={},de._combined)this._combined[le]=de._combined[le];for(var le in this._extendedAttrs={},de._extendedAttrs)this._extendedAttrs[le]=de._extendedAttrs[le];this.isWrapped=de.isWrapped},ie.prototype.clone=function(){var de=new ie(0);for(var le in de._data=new Uint32Array(this._data),de.length=this.length,this._combined)de._combined[le]=this._combined[le];for(var le in this._extendedAttrs)de._extendedAttrs[le]=this._extendedAttrs[le];return de.isWrapped=this.isWrapped,de},ie.prototype.getTrimmedLength=function(){for(var de=this.length-1;de>=0;--de)if(4194303&this._data[3*de+0])return de+(this._data[3*de+0]>>22);return 0},ie.prototype.copyCellsFrom=function(de,le,ue,se,me){var re=de._data;if(me)for(var ne=se-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(ue+ne)+a]=re[3*(le+ne)+a];else for(ne=0;ne<se;ne++)for(a=0;a<3;a++)this._data[3*(ue+ne)+a]=re[3*(le+ne)+a];var y=Object.keys(de._combined);for(a=0;a<y.length;a++){var E=parseInt(y[a],10);E>=le&&(this._combined[E-le+ue]=de._combined[E])}},ie.prototype.translateToString=function(de,le,ue){de===void 0&&(de=!1),le===void 0&&(le=0),ue===void 0&&(ue=this.length),de&&(ue=Math.min(ue,this.getTrimmedLength()));for(var se="";le<ue;){var me=this._data[3*le+0],re=2097151&me;se+=2097152&me?this._combined[le]:re?fe.stringFromCodePoint(re):Pe.WHITESPACE_CELL_CHAR,le+=me>>22||1}return se},ie}();te.BufferLine=pe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeElementFromParent=void 0,te.removeElementFromParent=function(){for(var fe,Pe=[],ve=0;ve<arguments.length;ve++)Pe[ve]=arguments[ve];for(var he=0,pe=Pe;he<pe.length;he++){var ie=pe[he];(fe=ie==null?void 0:ie.parentElement)===null||fe===void 0||fe.removeChild(ie)}}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.tooMuchOutput=te.promptLabel=void 0,te.promptLabel="Terminal input",te.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(ae,ce){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,_e){Se.__proto__=_e}||function(Se,_e){for(var xe in _e)_e.hasOwnProperty(xe)&&(Se[xe]=_e[xe])})(ae,ce)},function(ae,ce){function Se(){this.constructor=ae}fe(ae,ce),ae.prototype=ce===null?Object.create(ce):(Se.prototype=ce.prototype,new Se)});Object.defineProperty(te,"__esModule",{value:!0}),te.InputHandler=te.WindowsOptionsReportType=void 0;var ve,he=z(12),pe=z(20),ie=z(39),de=z(2),le=z(15),ue=z(8),se=z(16),me=z(0),re=z(3),ne=z(4),a=z(6),y=z(22),E=z(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(ae,ce){if(ae>24)return ce.setWinLines||!1;switch(ae){case 1:return!!ce.restoreWin;case 2:return!!ce.minimizeWin;case 3:return!!ce.setWinPosition;case 4:return!!ce.setWinSizePixels;case 5:return!!ce.raiseWin;case 6:return!!ce.lowerWin;case 7:return!!ce.refreshWin;case 8:return!!ce.setWinSizeChars;case 9:return!!ce.maximizeWin;case 10:return!!ce.fullscreenWin;case 11:return!!ce.getWinState;case 13:return!!ce.getWinPosition;case 14:return!!ce.getWinSizePixels;case 15:return!!ce.getScreenSizePixels;case 16:return!!ce.getCellSizePixels;case 18:return!!ce.getWinSizeChars;case 19:return!!ce.getScreenSizeChars;case 20:return!!ce.getIconTitle;case 21:return!!ce.getWinTitle;case 22:return!!ce.pushTitle;case 23:return!!ce.popTitle;case 24:return!!ce.setWinLines}return!1}(function(ae){ae[ae.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ae[ae.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(ve=te.WindowsOptionsReportType||(te.WindowsOptionsReportType={}));var ee=function(){function ae(ce,Se,_e,xe){this._bufferService=ce,this._coreService=Se,this._logService=_e,this._optionsService=xe,this._data=new Uint32Array(0)}return ae.prototype.hook=function(ce){this._data=new Uint32Array(0)},ae.prototype.put=function(ce,Se,_e){this._data=le.concat(this._data,ce.subarray(Se,_e))},ae.prototype.unhook=function(ce){if(ce){var Se=ue.utf32ToString(this._data);switch(this._data=new Uint32Array(0),Se){case'"q':return this._coreService.triggerDataEvent(he.C0.ESC+'P1$r0"q'+he.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(he.C0.ESC+'P1$r61;1"p'+he.C0.ESC+"\\");case"r":var _e=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(he.C0.ESC+"P1$r"+_e+he.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(he.C0.ESC+"P1$r0m"+he.C0.ESC+"\\");case" q":var xe={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return xe-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(he.C0.ESC+"P1$r"+xe+" q"+he.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",Se),this._coreService.triggerDataEvent(he.C0.ESC+"P0$r"+he.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},ae}(),oe=function(ae){function ce(Se,_e,xe,we,Fe,Me,ut,Xe,mt){mt===void 0&&(mt=new ie.EscapeSequenceParser);var Ae=ae.call(this)||this;Ae._bufferService=Se,Ae._charsetService=_e,Ae._coreService=xe,Ae._dirtyRowService=we,Ae._logService=Fe,Ae._optionsService=Me,Ae._coreMouseService=ut,Ae._unicodeService=Xe,Ae._parser=mt,Ae._parseBuffer=new Uint32Array(4096),Ae._stringDecoder=new ue.StringToUtf32,Ae._utf8Decoder=new ue.Utf8ToUtf32,Ae._workCell=new ne.CellData,Ae._windowTitle="",Ae._iconName="",Ae._windowTitleStack=[],Ae._iconNameStack=[],Ae._curAttrData=se.DEFAULT_ATTR_DATA.clone(),Ae._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone(),Ae._onRequestBell=new me.EventEmitter,Ae._onRequestRefreshRows=new me.EventEmitter,Ae._onRequestReset=new me.EventEmitter,Ae._onRequestScroll=new me.EventEmitter,Ae._onRequestSyncScrollBar=new me.EventEmitter,Ae._onRequestWindowsOptionsReport=new me.EventEmitter,Ae._onA11yChar=new me.EventEmitter,Ae._onA11yTab=new me.EventEmitter,Ae._onCursorMove=new me.EventEmitter,Ae._onLineFeed=new me.EventEmitter,Ae._onScroll=new me.EventEmitter,Ae._onTitleChange=new me.EventEmitter,Ae.register(Ae._parser),Ae._parser.setCsiHandlerFallback(function(Ke,Et){Ae._logService.debug("Unknown CSI code: ",{identifier:Ae._parser.identToString(Ke),params:Et.toArray()})}),Ae._parser.setEscHandlerFallback(function(Ke){Ae._logService.debug("Unknown ESC code: ",{identifier:Ae._parser.identToString(Ke)})}),Ae._parser.setExecuteHandlerFallback(function(Ke){Ae._logService.debug("Unknown EXECUTE code: ",{code:Ke})}),Ae._parser.setOscHandlerFallback(function(Ke,Et,Ct){Ae._logService.debug("Unknown OSC code: ",{identifier:Ke,action:Et,data:Ct})}),Ae._parser.setDcsHandlerFallback(function(Ke,Et,Ct){Et==="HOOK"&&(Ct=Ct.toArray()),Ae._logService.debug("Unknown DCS code: ",{identifier:Ae._parser.identToString(Ke),action:Et,payload:Ct})}),Ae._parser.setPrintHandler(function(Ke,Et,Ct){return Ae.print(Ke,Et,Ct)}),Ae._parser.setCsiHandler({final:"@"},function(Ke){return Ae.insertChars(Ke)}),Ae._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ke){return Ae.scrollLeft(Ke)}),Ae._parser.setCsiHandler({final:"A"},function(Ke){return Ae.cursorUp(Ke)}),Ae._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ke){return Ae.scrollRight(Ke)}),Ae._parser.setCsiHandler({final:"B"},function(Ke){return Ae.cursorDown(Ke)}),Ae._parser.setCsiHandler({final:"C"},function(Ke){return Ae.cursorForward(Ke)}),Ae._parser.setCsiHandler({final:"D"},function(Ke){return Ae.cursorBackward(Ke)}),Ae._parser.setCsiHandler({final:"E"},function(Ke){return Ae.cursorNextLine(Ke)}),Ae._parser.setCsiHandler({final:"F"},function(Ke){return Ae.cursorPrecedingLine(Ke)}),Ae._parser.setCsiHandler({final:"G"},function(Ke){return Ae.cursorCharAbsolute(Ke)}),Ae._parser.setCsiHandler({final:"H"},function(Ke){return Ae.cursorPosition(Ke)}),Ae._parser.setCsiHandler({final:"I"},function(Ke){return Ae.cursorForwardTab(Ke)}),Ae._parser.setCsiHandler({final:"J"},function(Ke){return Ae.eraseInDisplay(Ke)}),Ae._parser.setCsiHandler({prefix:"?",final:"J"},function(Ke){return Ae.eraseInDisplay(Ke)}),Ae._parser.setCsiHandler({final:"K"},function(Ke){return Ae.eraseInLine(Ke)}),Ae._parser.setCsiHandler({prefix:"?",final:"K"},function(Ke){return Ae.eraseInLine(Ke)}),Ae._parser.setCsiHandler({final:"L"},function(Ke){return Ae.insertLines(Ke)}),Ae._parser.setCsiHandler({final:"M"},function(Ke){return Ae.deleteLines(Ke)}),Ae._parser.setCsiHandler({final:"P"},function(Ke){return Ae.deleteChars(Ke)}),Ae._parser.setCsiHandler({final:"S"},function(Ke){return Ae.scrollUp(Ke)}),Ae._parser.setCsiHandler({final:"T"},function(Ke){return Ae.scrollDown(Ke)}),Ae._parser.setCsiHandler({final:"X"},function(Ke){return Ae.eraseChars(Ke)}),Ae._parser.setCsiHandler({final:"Z"},function(Ke){return Ae.cursorBackwardTab(Ke)}),Ae._parser.setCsiHandler({final:"`"},function(Ke){return Ae.charPosAbsolute(Ke)}),Ae._parser.setCsiHandler({final:"a"},function(Ke){return Ae.hPositionRelative(Ke)}),Ae._parser.setCsiHandler({final:"b"},function(Ke){return Ae.repeatPrecedingCharacter(Ke)}),Ae._parser.setCsiHandler({final:"c"},function(Ke){return Ae.sendDeviceAttributesPrimary(Ke)}),Ae._parser.setCsiHandler({prefix:">",final:"c"},function(Ke){return Ae.sendDeviceAttributesSecondary(Ke)}),Ae._parser.setCsiHandler({final:"d"},function(Ke){return Ae.linePosAbsolute(Ke)}),Ae._parser.setCsiHandler({final:"e"},function(Ke){return Ae.vPositionRelative(Ke)}),Ae._parser.setCsiHandler({final:"f"},function(Ke){return Ae.hVPosition(Ke)}),Ae._parser.setCsiHandler({final:"g"},function(Ke){return Ae.tabClear(Ke)}),Ae._parser.setCsiHandler({final:"h"},function(Ke){return Ae.setMode(Ke)}),Ae._parser.setCsiHandler({prefix:"?",final:"h"},function(Ke){return Ae.setModePrivate(Ke)}),Ae._parser.setCsiHandler({final:"l"},function(Ke){return Ae.resetMode(Ke)}),Ae._parser.setCsiHandler({prefix:"?",final:"l"},function(Ke){return Ae.resetModePrivate(Ke)}),Ae._parser.setCsiHandler({final:"m"},function(Ke){return Ae.charAttributes(Ke)}),Ae._parser.setCsiHandler({final:"n"},function(Ke){return Ae.deviceStatus(Ke)}),Ae._parser.setCsiHandler({prefix:"?",final:"n"},function(Ke){return Ae.deviceStatusPrivate(Ke)}),Ae._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ke){return Ae.softReset(Ke)}),Ae._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ke){return Ae.setCursorStyle(Ke)}),Ae._parser.setCsiHandler({final:"r"},function(Ke){return Ae.setScrollRegion(Ke)}),Ae._parser.setCsiHandler({final:"s"},function(Ke){return Ae.saveCursor(Ke)}),Ae._parser.setCsiHandler({final:"t"},function(Ke){return Ae.windowOptions(Ke)}),Ae._parser.setCsiHandler({final:"u"},function(Ke){return Ae.restoreCursor(Ke)}),Ae._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ke){return Ae.insertColumns(Ke)}),Ae._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ke){return Ae.deleteColumns(Ke)}),Ae._parser.setExecuteHandler(he.C0.BEL,function(){return Ae.bell()}),Ae._parser.setExecuteHandler(he.C0.LF,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(he.C0.VT,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(he.C0.FF,function(){return Ae.lineFeed()}),Ae._parser.setExecuteHandler(he.C0.CR,function(){return Ae.carriageReturn()}),Ae._parser.setExecuteHandler(he.C0.BS,function(){return Ae.backspace()}),Ae._parser.setExecuteHandler(he.C0.HT,function(){return Ae.tab()}),Ae._parser.setExecuteHandler(he.C0.SO,function(){return Ae.shiftOut()}),Ae._parser.setExecuteHandler(he.C0.SI,function(){return Ae.shiftIn()}),Ae._parser.setExecuteHandler(he.C1.IND,function(){return Ae.index()}),Ae._parser.setExecuteHandler(he.C1.NEL,function(){return Ae.nextLine()}),Ae._parser.setExecuteHandler(he.C1.HTS,function(){return Ae.tabSet()}),Ae._parser.setOscHandler(0,new y.OscHandler(function(Ke){Ae.setTitle(Ke),Ae.setIconName(Ke)})),Ae._parser.setOscHandler(1,new y.OscHandler(function(Ke){return Ae.setIconName(Ke)})),Ae._parser.setOscHandler(2,new y.OscHandler(function(Ke){return Ae.setTitle(Ke)})),Ae._parser.setEscHandler({final:"7"},function(){return Ae.saveCursor()}),Ae._parser.setEscHandler({final:"8"},function(){return Ae.restoreCursor()}),Ae._parser.setEscHandler({final:"D"},function(){return Ae.index()}),Ae._parser.setEscHandler({final:"E"},function(){return Ae.nextLine()}),Ae._parser.setEscHandler({final:"H"},function(){return Ae.tabSet()}),Ae._parser.setEscHandler({final:"M"},function(){return Ae.reverseIndex()}),Ae._parser.setEscHandler({final:"="},function(){return Ae.keypadApplicationMode()}),Ae._parser.setEscHandler({final:">"},function(){return Ae.keypadNumericMode()}),Ae._parser.setEscHandler({final:"c"},function(){return Ae.fullReset()}),Ae._parser.setEscHandler({final:"n"},function(){return Ae.setgLevel(2)}),Ae._parser.setEscHandler({final:"o"},function(){return Ae.setgLevel(3)}),Ae._parser.setEscHandler({final:"|"},function(){return Ae.setgLevel(3)}),Ae._parser.setEscHandler({final:"}"},function(){return Ae.setgLevel(2)}),Ae._parser.setEscHandler({final:"~"},function(){return Ae.setgLevel(1)}),Ae._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Ae.selectDefaultCharset()}),Ae._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Ae.selectDefaultCharset()});var De=function(Ke){Be._parser.setEscHandler({intermediates:"(",final:Ke},function(){return Ae.selectCharset("("+Ke)}),Be._parser.setEscHandler({intermediates:")",final:Ke},function(){return Ae.selectCharset(")"+Ke)}),Be._parser.setEscHandler({intermediates:"*",final:Ke},function(){return Ae.selectCharset("*"+Ke)}),Be._parser.setEscHandler({intermediates:"+",final:Ke},function(){return Ae.selectCharset("+"+Ke)}),Be._parser.setEscHandler({intermediates:"-",final:Ke},function(){return Ae.selectCharset("-"+Ke)}),Be._parser.setEscHandler({intermediates:".",final:Ke},function(){return Ae.selectCharset("."+Ke)}),Be._parser.setEscHandler({intermediates:"/",final:Ke},function(){return Ae.selectCharset("/"+Ke)})},Be=this;for(var nt in pe.CHARSETS)De(nt);return Ae._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Ae.screenAlignmentPattern()}),Ae._parser.setErrorHandler(function(Ke){return Ae._logService.error("Parsing error: ",Ke),Ke}),Ae._parser.setDcsHandler({intermediates:"$",final:"q"},new ee(Ae._bufferService,Ae._coreService,Ae._logService,Ae._optionsService)),Ae}return Pe(ce,ae),Object.defineProperty(ce.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){ae.prototype.dispose.call(this)},ce.prototype.parse=function(Se){var _e=this._bufferService.buffer,xe=_e.x,we=_e.y;if(this._logService.debug("parsing data",Se),this._parseBuffer.length<Se.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(Se.length,131072))),this._dirtyRowService.clearRange(),Se.length>131072)for(var Fe=0;Fe<Se.length;Fe+=131072){var Me=Fe+131072<Se.length?Fe+131072:Se.length,ut=typeof Se=="string"?this._stringDecoder.decode(Se.substring(Fe,Me),this._parseBuffer):this._utf8Decoder.decode(Se.subarray(Fe,Me),this._parseBuffer);this._parser.parse(this._parseBuffer,ut)}else ut=typeof Se=="string"?this._stringDecoder.decode(Se,this._parseBuffer):this._utf8Decoder.decode(Se,this._parseBuffer),this._parser.parse(this._parseBuffer,ut);(_e=this._bufferService.buffer).x===xe&&_e.y===we||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ce.prototype.print=function(Se,_e,xe){var we,Fe,Me=this._bufferService.buffer,ut=this._charsetService.charset,Xe=this._optionsService.options.screenReaderMode,mt=this._bufferService.cols,Ae=this._coreService.decPrivateModes.wraparound,De=this._coreService.modes.insertMode,Be=this._curAttrData,nt=Me.lines.get(Me.ybase+Me.y);this._dirtyRowService.markDirty(Me.y),Me.x&&xe-_e>0&&nt.getWidth(Me.x-1)===2&&nt.setCellFromCodePoint(Me.x-1,0,1,Be.fg,Be.bg,Be.extended);for(var Ke=_e;Ke<xe;++Ke){if(we=Se[Ke],Fe=this._unicodeService.wcwidth(we),we<127&&ut){var Et=ut[String.fromCharCode(we)];Et&&(we=Et.charCodeAt(0))}if(Xe&&this._onA11yChar.fire(ue.stringFromCodePoint(we)),Fe||!Me.x){if(Me.x+Fe-1>=mt){if(Ae){for(;Me.x<mt;)nt.setCellFromCodePoint(Me.x++,0,1,Be.fg,Be.bg,Be.extended);Me.x=0,Me.y++,Me.y===Me.scrollBottom+1?(Me.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Me.y>=this._bufferService.rows&&(Me.y=this._bufferService.rows-1),Me.lines.get(Me.ybase+Me.y).isWrapped=!0),nt=Me.lines.get(Me.ybase+Me.y)}else if(Me.x=mt-1,Fe===2)continue}if(De&&(nt.insertCells(Me.x,Fe,Me.getNullCell(Be),Be),nt.getWidth(mt-1)===2&&nt.setCellFromCodePoint(mt-1,re.NULL_CELL_CODE,re.NULL_CELL_WIDTH,Be.fg,Be.bg,Be.extended)),nt.setCellFromCodePoint(Me.x++,we,Fe,Be.fg,Be.bg,Be.extended),Fe>0)for(;--Fe;)nt.setCellFromCodePoint(Me.x++,0,0,Be.fg,Be.bg,Be.extended)}else nt.getWidth(Me.x-1)?nt.addCodepointToCell(Me.x-1,we):nt.addCodepointToCell(Me.x-2,we)}xe-_e>0&&(nt.loadCell(Me.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Me.x<mt&&xe-_e>0&&nt.getWidth(Me.x)===0&&!nt.hasContent(Me.x)&&nt.setCellFromCodePoint(Me.x,0,1,Be.fg,Be.bg,Be.extended),this._dirtyRowService.markDirty(Me.y)},ce.prototype.addCsiHandler=function(Se,_e){var xe=this;return Se.final!=="t"||Se.prefix||Se.intermediates?this._parser.addCsiHandler(Se,_e):this._parser.addCsiHandler(Se,function(we){return!x(we.params[0],xe._optionsService.options.windowOptions)||_e(we)})},ce.prototype.addDcsHandler=function(Se,_e){return this._parser.addDcsHandler(Se,new E.DcsHandler(_e))},ce.prototype.addEscHandler=function(Se,_e){return this._parser.addEscHandler(Se,_e)},ce.prototype.addOscHandler=function(Se,_e){return this._parser.addOscHandler(Se,new y.OscHandler(_e))},ce.prototype.bell=function(){this._onRequestBell.fire()},ce.prototype.lineFeed=function(){var Se=this._bufferService.buffer;this._dirtyRowService.markDirty(Se.y),this._optionsService.options.convertEol&&(Se.x=0),Se.y++,Se.y===Se.scrollBottom+1?(Se.y--,this._onRequestScroll.fire(this._eraseAttrData())):Se.y>=this._bufferService.rows&&(Se.y=this._bufferService.rows-1),Se.x>=this._bufferService.cols&&Se.x--,this._dirtyRowService.markDirty(Se.y),this._onLineFeed.fire()},ce.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ce.prototype.backspace=function(){var Se,_e=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(_e.x>0&&_e.x--);if(this._restrictCursor(this._bufferService.cols),_e.x>0)_e.x--;else if(_e.x===0&&_e.y>_e.scrollTop&&_e.y<=_e.scrollBottom&&(!((Se=_e.lines.get(_e.ybase+_e.y))===null||Se===void 0)&&Se.isWrapped)){_e.lines.get(_e.ybase+_e.y).isWrapped=!1,_e.y--,_e.x=this._bufferService.cols-1;var xe=_e.lines.get(_e.ybase+_e.y);xe.hasWidth(_e.x)&&!xe.hasContent(_e.x)&&_e.x--}this._restrictCursor()},ce.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var Se=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-Se)}},ce.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ce.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ce.prototype._restrictCursor=function(Se){Se===void 0&&(Se=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(Se,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype._setCursor=function(Se,_e){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=Se,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+_e):(this._bufferService.buffer.x=Se,this._bufferService.buffer.y=_e),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype._moveCursor=function(Se,_e){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+Se,this._bufferService.buffer.y+_e)},ce.prototype.cursorUp=function(Se){var _e=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;_e>=0?this._moveCursor(0,-Math.min(_e,Se.params[0]||1)):this._moveCursor(0,-(Se.params[0]||1))},ce.prototype.cursorDown=function(Se){var _e=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;_e>=0?this._moveCursor(0,Math.min(_e,Se.params[0]||1)):this._moveCursor(0,Se.params[0]||1)},ce.prototype.cursorForward=function(Se){this._moveCursor(Se.params[0]||1,0)},ce.prototype.cursorBackward=function(Se){this._moveCursor(-(Se.params[0]||1),0)},ce.prototype.cursorNextLine=function(Se){this.cursorDown(Se),this._bufferService.buffer.x=0},ce.prototype.cursorPrecedingLine=function(Se){this.cursorUp(Se),this._bufferService.buffer.x=0},ce.prototype.cursorCharAbsolute=function(Se){this._setCursor((Se.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.cursorPosition=function(Se){this._setCursor(Se.length>=2?(Se.params[1]||1)-1:0,(Se.params[0]||1)-1)},ce.prototype.charPosAbsolute=function(Se){this._setCursor((Se.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.hPositionRelative=function(Se){this._moveCursor(Se.params[0]||1,0)},ce.prototype.linePosAbsolute=function(Se){this._setCursor(this._bufferService.buffer.x,(Se.params[0]||1)-1)},ce.prototype.vPositionRelative=function(Se){this._moveCursor(0,Se.params[0]||1)},ce.prototype.hVPosition=function(Se){this.cursorPosition(Se)},ce.prototype.tabClear=function(Se){var _e=Se.params[0];_e===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:_e===3&&(this._bufferService.buffer.tabs={})},ce.prototype.cursorForwardTab=function(Se){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var _e=Se.params[0]||1;_e--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ce.prototype.cursorBackwardTab=function(Se){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var _e=Se.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.x=xe.prevStop()},ce.prototype._eraseInBufferLine=function(Se,_e,xe,we){we===void 0&&(we=!1);var Fe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+Se);Fe.replaceCells(_e,xe,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),we&&(Fe.isWrapped=!1)},ce.prototype._resetBufferLine=function(Se){var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+Se);_e.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),_e.isWrapped=!1},ce.prototype.eraseInDisplay=function(Se){var _e;switch(this._restrictCursor(),Se.params[0]){case 0:for(_e=this._bufferService.buffer.y,this._dirtyRowService.markDirty(_e),this._eraseInBufferLine(_e++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);_e<this._bufferService.rows;_e++)this._resetBufferLine(_e);this._dirtyRowService.markDirty(_e);break;case 1:for(_e=this._bufferService.buffer.y,this._dirtyRowService.markDirty(_e),this._eraseInBufferLine(_e,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(_e+1).isWrapped=!1);_e--;)this._resetBufferLine(_e);this._dirtyRowService.markDirty(0);break;case 2:for(_e=this._bufferService.rows,this._dirtyRowService.markDirty(_e-1);_e--;)this._resetBufferLine(_e);this._dirtyRowService.markDirty(0);break;case 3:var xe=this._bufferService.buffer.lines.length-this._bufferService.rows;xe>0&&(this._bufferService.buffer.lines.trimStart(xe),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-xe,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-xe,0),this._onScroll.fire(0))}},ce.prototype.eraseInLine=function(Se){switch(this._restrictCursor(),Se.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype.insertLines=function(Se){this._restrictCursor();var _e=Se.params[0]||1,xe=this._bufferService.buffer;if(!(xe.y>xe.scrollBottom||xe.y<xe.scrollTop)){for(var we=xe.ybase+xe.y,Fe=this._bufferService.rows-1-xe.scrollBottom,Me=this._bufferService.rows-1+xe.ybase-Fe+1;_e--;)xe.lines.splice(Me-1,1),xe.lines.splice(we,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.y,xe.scrollBottom),xe.x=0}},ce.prototype.deleteLines=function(Se){this._restrictCursor();var _e=Se.params[0]||1,xe=this._bufferService.buffer;if(!(xe.y>xe.scrollBottom||xe.y<xe.scrollTop)){var we,Fe=xe.ybase+xe.y;for(we=this._bufferService.rows-1-xe.scrollBottom,we=this._bufferService.rows-1+xe.ybase-we;_e--;)xe.lines.splice(Fe,1),xe.lines.splice(we,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.y,xe.scrollBottom),xe.x=0}},ce.prototype.insertChars=function(Se){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.insertCells(this._bufferService.buffer.x,Se.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.deleteChars=function(Se){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.deleteCells(this._bufferService.buffer.x,Se.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.scrollUp=function(Se){for(var _e=Se.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.lines.splice(xe.ybase+xe.scrollTop,1),xe.lines.splice(xe.ybase+xe.scrollBottom,0,xe.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(xe.scrollTop,xe.scrollBottom)},ce.prototype.scrollDown=function(Se){for(var _e=Se.params[0]||1,xe=this._bufferService.buffer;_e--;)xe.lines.splice(xe.ybase+xe.scrollBottom,1),xe.lines.splice(xe.ybase+xe.scrollTop,0,xe.getBlankLine(se.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(xe.scrollTop,xe.scrollBottom)},ce.prototype.scrollLeft=function(Se){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=Se.params[0]||1,we=_e.scrollTop;we<=_e.scrollBottom;++we){var Fe=_e.lines.get(_e.ybase+we);Fe.deleteCells(0,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.scrollRight=function(Se){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=Se.params[0]||1,we=_e.scrollTop;we<=_e.scrollBottom;++we){var Fe=_e.lines.get(_e.ybase+we);Fe.insertCells(0,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.insertColumns=function(Se){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=Se.params[0]||1,we=_e.scrollTop;we<=_e.scrollBottom;++we){var Fe=this._bufferService.buffer.lines.get(_e.ybase+we);Fe.insertCells(_e.x,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.deleteColumns=function(Se){var _e=this._bufferService.buffer;if(!(_e.y>_e.scrollBottom||_e.y<_e.scrollTop)){for(var xe=Se.params[0]||1,we=_e.scrollTop;we<=_e.scrollBottom;++we){var Fe=_e.lines.get(_e.ybase+we);Fe.deleteCells(_e.x,xe,_e.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom)}},ce.prototype.eraseChars=function(Se){this._restrictCursor();var _e=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);_e&&(_e.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(Se.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.repeatPrecedingCharacter=function(Se){if(this._parser.precedingCodepoint){for(var _e=Se.params[0]||1,xe=new Uint32Array(_e),we=0;we<_e;++we)xe[we]=this._parser.precedingCodepoint;this.print(xe,0,xe.length)}},ce.prototype.sendDeviceAttributesPrimary=function(Se){Se.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(he.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(he.C0.ESC+"[?6c"))},ce.prototype.sendDeviceAttributesSecondary=function(Se){Se.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(he.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(he.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(Se.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(he.C0.ESC+"[>83;40003;0c"))},ce.prototype._is=function(Se){return(this._optionsService.options.termName+"").indexOf(Se)===0},ce.prototype.setMode=function(Se){for(var _e=0;_e<Se.length;_e++)switch(Se.params[_e]){case 4:this._coreService.modes.insertMode=!0}},ce.prototype.setModePrivate=function(Se){for(var _e=0;_e<Se.length;_e++)switch(Se.params[_e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,pe.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},ce.prototype.resetMode=function(Se){for(var _e=0;_e<Se.length;_e++)switch(Se.params[_e]){case 4:this._coreService.modes.insertMode=!1}},ce.prototype.resetModePrivate=function(Se){for(var _e=0;_e<Se.length;_e++)switch(Se.params[_e]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),Se.params[_e]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},ce.prototype._updateAttrColor=function(Se,_e,xe,we,Fe){return _e===2?(Se|=50331648,Se&=-16777216,Se|=a.AttributeData.fromColorRGB([xe,we,Fe])):_e===5&&(Se&=-50331904,Se|=33554432|255&xe),Se},ce.prototype._extractColor=function(Se,_e,xe){var we=[0,0,-1,0,0,0],Fe=0,Me=0;do{if(we[Me+Fe]=Se.params[_e+Me],Se.hasSubParams(_e+Me)){var ut=Se.getSubParams(_e+Me),Xe=0;do we[1]===5&&(Fe=1),we[Me+Xe+1+Fe]=ut[Xe];while(++Xe<ut.length&&Xe+Me+1+Fe<we.length);break}if(we[1]===5&&Me+Fe>=2||we[1]===2&&Me+Fe>=5)break;we[1]&&(Fe=1)}while(++Me+_e<Se.length&&Me+Fe<we.length);for(Xe=2;Xe<we.length;++Xe)we[Xe]===-1&&(we[Xe]=0);switch(we[0]){case 38:xe.fg=this._updateAttrColor(xe.fg,we[1],we[3],we[4],we[5]);break;case 48:xe.bg=this._updateAttrColor(xe.bg,we[1],we[3],we[4],we[5]);break;case 58:xe.extended=xe.extended.clone(),xe.extended.underlineColor=this._updateAttrColor(xe.extended.underlineColor,we[1],we[3],we[4],we[5])}return Me},ce.prototype._processUnderline=function(Se,_e){_e.extended=_e.extended.clone(),(!~Se||Se>5)&&(Se=1),_e.extended.underlineStyle=Se,_e.fg|=268435456,Se===0&&(_e.fg&=-268435457),_e.updateExtended()},ce.prototype.charAttributes=function(Se){if(Se.length===1&&Se.params[0]===0)return this._curAttrData.fg=se.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=se.DEFAULT_ATTR_DATA.bg);for(var _e,xe=Se.length,we=this._curAttrData,Fe=0;Fe<xe;Fe++)(_e=Se.params[Fe])>=30&&_e<=37?(we.fg&=-50331904,we.fg|=16777216|_e-30):_e>=40&&_e<=47?(we.bg&=-50331904,we.bg|=16777216|_e-40):_e>=90&&_e<=97?(we.fg&=-50331904,we.fg|=16777224|_e-90):_e>=100&&_e<=107?(we.bg&=-50331904,we.bg|=16777224|_e-100):_e===0?(we.fg=se.DEFAULT_ATTR_DATA.fg,we.bg=se.DEFAULT_ATTR_DATA.bg):_e===1?we.fg|=134217728:_e===3?we.bg|=67108864:_e===4?(we.fg|=268435456,this._processUnderline(Se.hasSubParams(Fe)?Se.getSubParams(Fe)[0]:1,we)):_e===5?we.fg|=536870912:_e===7?we.fg|=67108864:_e===8?we.fg|=1073741824:_e===2?we.bg|=134217728:_e===21?this._processUnderline(2,we):_e===22?(we.fg&=-134217729,we.bg&=-134217729):_e===23?we.bg&=-67108865:_e===24?we.fg&=-268435457:_e===25?we.fg&=-536870913:_e===27?we.fg&=-67108865:_e===28?we.fg&=-1073741825:_e===39?(we.fg&=-67108864,we.fg|=16777215&se.DEFAULT_ATTR_DATA.fg):_e===49?(we.bg&=-67108864,we.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):_e===38||_e===48||_e===58?Fe+=this._extractColor(Se,Fe,we):_e===59?(we.extended=we.extended.clone(),we.extended.underlineColor=-1,we.updateExtended()):_e===100?(we.fg&=-67108864,we.fg|=16777215&se.DEFAULT_ATTR_DATA.fg,we.bg&=-67108864,we.bg|=16777215&se.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",_e)},ce.prototype.deviceStatus=function(Se){switch(Se.params[0]){case 5:this._coreService.triggerDataEvent(he.C0.ESC+"[0n");break;case 6:var _e=this._bufferService.buffer.y+1,xe=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(he.C0.ESC+"["+_e+";"+xe+"R")}},ce.prototype.deviceStatusPrivate=function(Se){switch(Se.params[0]){case 6:var _e=this._bufferService.buffer.y+1,xe=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(he.C0.ESC+"[?"+_e+";"+xe+"R")}},ce.prototype.softReset=function(Se){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},ce.prototype.setCursorStyle=function(Se){var _e=Se.params[0]||1;switch(_e){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var xe=_e%2==1;this._optionsService.options.cursorBlink=xe},ce.prototype.setScrollRegion=function(Se){var _e,xe=Se.params[0]||1;(Se.length<2||(_e=Se.params[1])>this._bufferService.rows||_e===0)&&(_e=this._bufferService.rows),_e>xe&&(this._bufferService.buffer.scrollTop=xe-1,this._bufferService.buffer.scrollBottom=_e-1,this._setCursor(0,0))},ce.prototype.windowOptions=function(Se){if(x(Se.params[0],this._optionsService.options.windowOptions)){var _e=Se.length>1?Se.params[1]:0;switch(Se.params[0]){case 14:_e!==2&&this._onRequestWindowsOptionsReport.fire(ve.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(ve.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(he.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:_e!==0&&_e!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),_e!==0&&_e!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:_e!==0&&_e!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),_e!==0&&_e!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ce.prototype.saveCursor=function(Se){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},ce.prototype.restoreCursor=function(Se){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},ce.prototype.setTitle=function(Se){this._windowTitle=Se,this._onTitleChange.fire(Se)},ce.prototype.setIconName=function(Se){this._iconName=Se},ce.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ce.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ce.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ce.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET)},ce.prototype.selectCharset=function(Se){Se.length===2?Se[0]!=="/"&&this._charsetService.setgCharset(b[Se[0]],pe.CHARSETS[Se[1]]||pe.DEFAULT_CHARSET):this.selectDefaultCharset()},ce.prototype.index=function(){this._restrictCursor();var Se=this._bufferService.buffer;this._bufferService.buffer.y++,Se.y===Se.scrollBottom+1?(Se.y--,this._onRequestScroll.fire(this._eraseAttrData())):Se.y>=this._bufferService.rows&&(Se.y=this._bufferService.rows-1),this._restrictCursor()},ce.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ce.prototype.reverseIndex=function(){this._restrictCursor();var Se=this._bufferService.buffer;if(Se.y===Se.scrollTop){var _e=Se.scrollBottom-Se.scrollTop;Se.lines.shiftElements(Se.ybase+Se.y,_e,1),Se.lines.set(Se.ybase+Se.y,Se.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}else Se.y--,this._restrictCursor()},ce.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ce.prototype.reset=function(){this._curAttrData=se.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=se.DEFAULT_ATTR_DATA.clone()},ce.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ce.prototype.setgLevel=function(Se){this._charsetService.setgLevel(Se)},ce.prototype.screenAlignmentPattern=function(){var Se=new ne.CellData;Se.content=1<<22|69,Se.fg=this._curAttrData.fg,Se.bg=this._curAttrData.bg;var _e=this._bufferService.buffer;this._setCursor(0,0);for(var xe=0;xe<this._bufferService.rows;++xe){var we=_e.ybase+_e.y+xe,Fe=_e.lines.get(we);Fe&&(Fe.fill(Se),Fe.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ce}(de.Disposable);te.InputHandler=oe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DEFAULT_CHARSET=te.CHARSETS=void 0,te.CHARSETS={},te.DEFAULT_CHARSET=te.CHARSETS.B,te.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},te.CHARSETS.A={"#":"\xA3"},te.CHARSETS.B=void 0,te.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},te.CHARSETS.C=te.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},te.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},te.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},te.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},te.CHARSETS.E=te.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},te.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},te.CHARSETS.H=te.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Params=void 0;var fe=function(){function Pe(ve,he){if(ve===void 0&&(ve=32),he===void 0&&(he=32),this.maxLength=ve,this.maxSubParamsLength=he,he>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(ve),this.length=0,this._subParams=new Int32Array(he),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(ve),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return Pe.fromArray=function(ve){var he=new Pe;if(!ve.length)return he;for(var pe=ve[0]instanceof Array?1:0;pe<ve.length;++pe){var ie=ve[pe];if(ie instanceof Array)for(var de=0;de<ie.length;++de)he.addSubParam(ie[de]);else he.addParam(ie)}return he},Pe.prototype.clone=function(){var ve=new Pe(this.maxLength,this.maxSubParamsLength);return ve.params.set(this.params),ve.length=this.length,ve._subParams.set(this._subParams),ve._subParamsLength=this._subParamsLength,ve._subParamsIdx.set(this._subParamsIdx),ve._rejectDigits=this._rejectDigits,ve._rejectSubDigits=this._rejectSubDigits,ve._digitIsSub=this._digitIsSub,ve},Pe.prototype.toArray=function(){for(var ve=[],he=0;he<this.length;++he){ve.push(this.params[he]);var pe=this._subParamsIdx[he]>>8,ie=255&this._subParamsIdx[he];ie-pe>0&&ve.push(Array.prototype.slice.call(this._subParams,pe,ie))}return ve},Pe.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},Pe.prototype.addParam=function(ve){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(ve<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=ve>2147483647?2147483647:ve}},Pe.prototype.addSubParam=function(ve){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(ve<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=ve>2147483647?2147483647:ve,this._subParamsIdx[this.length-1]++}},Pe.prototype.hasSubParams=function(ve){return(255&this._subParamsIdx[ve])-(this._subParamsIdx[ve]>>8)>0},Pe.prototype.getSubParams=function(ve){var he=this._subParamsIdx[ve]>>8,pe=255&this._subParamsIdx[ve];return pe-he>0?this._subParams.subarray(he,pe):null},Pe.prototype.getSubParamsAll=function(){for(var ve={},he=0;he<this.length;++he){var pe=this._subParamsIdx[he]>>8,ie=255&this._subParamsIdx[he];ie-pe>0&&(ve[he]=this._subParams.slice(pe,ie))}return ve},Pe.prototype.addDigit=function(ve){var he;if(!(this._rejectDigits||!(he=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var pe=this._digitIsSub?this._subParams:this.params,ie=pe[he-1];pe[he-1]=~ie?Math.min(10*ie+ve,2147483647):ve}},Pe}();te.Params=fe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OscHandler=te.OscParser=void 0;var fe=z(23),Pe=z(8),ve=function(){function pe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return pe.prototype.addHandler=function(ie,de){this._handlers[ie]===void 0&&(this._handlers[ie]=[]);var le=this._handlers[ie];return le.push(de),{dispose:function(){var ue=le.indexOf(de);ue!==-1&&le.splice(ue,1)}}},pe.prototype.setHandler=function(ie,de){this._handlers[ie]=[de]},pe.prototype.clearHandler=function(ie){this._handlers[ie]&&delete this._handlers[ie]},pe.prototype.setHandlerFallback=function(ie){this._handlerFb=ie},pe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},pe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},pe.prototype._start=function(){var ie=this._handlers[this._id];if(ie)for(var de=ie.length-1;de>=0;de--)ie[de].start();else this._handlerFb(this._id,"START")},pe.prototype._put=function(ie,de,le){var ue=this._handlers[this._id];if(ue)for(var se=ue.length-1;se>=0;se--)ue[se].put(ie,de,le);else this._handlerFb(this._id,"PUT",Pe.utf32ToString(ie,de,le))},pe.prototype._end=function(ie){var de=this._handlers[this._id];if(de){for(var le=de.length-1;le>=0&&de[le].end(ie)===!1;le--);for(le--;le>=0;le--)de[le].end(!1)}else this._handlerFb(this._id,"END",ie)},pe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},pe.prototype.put=function(ie,de,le){if(this._state!==3){if(this._state===1)for(;de<le;){var ue=ie[de++];if(ue===59){this._state=2,this._start();break}if(ue<48||57<ue)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+ue-48}this._state===2&&le-de>0&&this._put(ie,de,le)}},pe.prototype.end=function(ie){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ie)),this._id=-1,this._state=0)},pe}();te.OscParser=ve;var he=function(){function pe(ie){this._handler=ie,this._data="",this._hitLimit=!1}return pe.prototype.start=function(){this._data="",this._hitLimit=!1},pe.prototype.put=function(ie,de,le){this._hitLimit||(this._data+=Pe.utf32ToString(ie,de,le),this._data.length>fe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},pe.prototype.end=function(ie){var de;return this._hitLimit?de=!1:ie&&(de=this._handler(this._data)),this._data="",this._hitLimit=!1,de},pe}();te.OscHandler=he},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.PAYLOAD_LIMIT=void 0,te.PAYLOAD_LIMIT=1e7},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DcsHandler=te.DcsParser=void 0;var fe=z(8),Pe=z(21),ve=z(23),he=[],pe=function(){function de(){this._handlers=Object.create(null),this._active=he,this._ident=0,this._handlerFb=function(){}}return de.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},de.prototype.addHandler=function(le,ue){this._handlers[le]===void 0&&(this._handlers[le]=[]);var se=this._handlers[le];return se.push(ue),{dispose:function(){var me=se.indexOf(ue);me!==-1&&se.splice(me,1)}}},de.prototype.setHandler=function(le,ue){this._handlers[le]=[ue]},de.prototype.clearHandler=function(le){this._handlers[le]&&delete this._handlers[le]},de.prototype.setHandlerFallback=function(le){this._handlerFb=le},de.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=he,this._ident=0},de.prototype.hook=function(le,ue){if(this.reset(),this._ident=le,this._active=this._handlers[le]||he,this._active.length)for(var se=this._active.length-1;se>=0;se--)this._active[se].hook(ue);else this._handlerFb(this._ident,"HOOK",ue)},de.prototype.put=function(le,ue,se){if(this._active.length)for(var me=this._active.length-1;me>=0;me--)this._active[me].put(le,ue,se);else this._handlerFb(this._ident,"PUT",fe.utf32ToString(le,ue,se))},de.prototype.unhook=function(le){if(this._active.length){for(var ue=this._active.length-1;ue>=0&&this._active[ue].unhook(le)===!1;ue--);for(ue--;ue>=0;ue--)this._active[ue].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",le);this._active=he,this._ident=0},de}();te.DcsParser=pe;var ie=function(){function de(le){this._handler=le,this._data="",this._hitLimit=!1}return de.prototype.hook=function(le){this._params=le.clone(),this._data="",this._hitLimit=!1},de.prototype.put=function(le,ue,se){this._hitLimit||(this._data+=fe.utf32ToString(le,ue,se),this._data.length>ve.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},de.prototype.unhook=function(le){var ue;return this._hitLimit?ue=!1:le&&(ue=this._handler(this._data,this._params||new Pe.Params)),this._params=void 0,this._data="",this._hitLimit=!1,ue},de}();te.DcsHandler=ie},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeTerminalFromCache=te.acquireCharAtlas=void 0;var fe=z(26),Pe=z(43),ve=[];te.acquireCharAtlas=function(he,pe,ie,de,le){for(var ue=fe.generateConfig(de,le,he,ie),se=0;se<ve.length;se++){var me=(re=ve[se]).ownedBy.indexOf(pe);if(me>=0){if(fe.configEquals(re.config,ue))return re.atlas;re.ownedBy.length===1?(re.atlas.dispose(),ve.splice(se,1)):re.ownedBy.splice(me,1);break}}for(se=0;se<ve.length;se++){var re=ve[se];if(fe.configEquals(re.config,ue))return re.ownedBy.push(pe),re.atlas}var ne={atlas:new Pe.DynamicCharAtlas(document,ue),config:ue,ownedBy:[pe]};return ve.push(ne),ne.atlas},te.removeTerminalFromCache=function(he){for(var pe=0;pe<ve.length;pe++){var ie=ve[pe].ownedBy.indexOf(he);if(ie!==-1){ve[pe].ownedBy.length===1?(ve[pe].atlas.dispose(),ve.splice(pe,1)):ve[pe].ownedBy.splice(ie,1);break}}}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.is256Color=te.configEquals=te.generateConfig=void 0;var fe=z(3);te.generateConfig=function(Pe,ve,he,pe){var ie={foreground:pe.foreground,background:pe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:pe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:Pe,scaledCharHeight:ve,fontFamily:he.fontFamily,fontSize:he.fontSize,fontWeight:he.fontWeight,fontWeightBold:he.fontWeightBold,allowTransparency:he.allowTransparency,colors:ie}},te.configEquals=function(Pe,ve){for(var he=0;he<Pe.colors.ansi.length;he++)if(Pe.colors.ansi[he].rgba!==ve.colors.ansi[he].rgba)return!1;return Pe.devicePixelRatio===ve.devicePixelRatio&&Pe.fontFamily===ve.fontFamily&&Pe.fontSize===ve.fontSize&&Pe.fontWeight===ve.fontWeight&&Pe.fontWeightBold===ve.fontWeightBold&&Pe.allowTransparency===ve.allowTransparency&&Pe.scaledCharWidth===ve.scaledCharWidth&&Pe.scaledCharHeight===ve.scaledCharHeight&&Pe.colors.foreground===ve.colors.foreground&&Pe.colors.background===ve.colors.background},te.is256Color=function(Pe){return Pe<fe.DEFAULT_COLOR}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorManager=te.DEFAULT_ANSI_COLORS=void 0;var fe=z(10),Pe=z(45),ve=fe.css.toColor("#ffffff"),he=fe.css.toColor("#000000"),pe=fe.css.toColor("#ffffff"),ie=fe.css.toColor("#000000"),de={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};te.DEFAULT_ANSI_COLORS=function(){for(var ue=[fe.css.toColor("#2e3436"),fe.css.toColor("#cc0000"),fe.css.toColor("#4e9a06"),fe.css.toColor("#c4a000"),fe.css.toColor("#3465a4"),fe.css.toColor("#75507b"),fe.css.toColor("#06989a"),fe.css.toColor("#d3d7cf"),fe.css.toColor("#555753"),fe.css.toColor("#ef2929"),fe.css.toColor("#8ae234"),fe.css.toColor("#fce94f"),fe.css.toColor("#729fcf"),fe.css.toColor("#ad7fa8"),fe.css.toColor("#34e2e2"),fe.css.toColor("#eeeeec")],se=[0,95,135,175,215,255],me=0;me<216;me++){var re=se[me/36%6|0],ne=se[me/6%6|0],a=se[me%6];ue.push({css:fe.channels.toCss(re,ne,a),rgba:fe.channels.toRgba(re,ne,a)})}for(me=0;me<24;me++){var y=8+10*me;ue.push({css:fe.channels.toCss(y,y,y),rgba:fe.channels.toRgba(y,y,y)})}return ue}();var le=function(){function ue(se,me){this.allowTransparency=me;var re=se.createElement("canvas");re.width=1,re.height=1;var ne=re.getContext("2d");if(!ne)throw new Error("Could not get rendering context");this._ctx=ne,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new Pe.ColorContrastCache,this.colors={foreground:ve,background:he,cursor:pe,cursorAccent:ie,selectionTransparent:de,selectionOpaque:fe.color.blend(he,de),ansi:te.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return ue.prototype.onOptionsChange=function(se){se==="minimumContrastRatio"&&this._contrastCache.clear()},ue.prototype.setTheme=function(se){se===void 0&&(se={}),this.colors.foreground=this._parseColor(se.foreground,ve),this.colors.background=this._parseColor(se.background,he),this.colors.cursor=this._parseColor(se.cursor,pe,!0),this.colors.cursorAccent=this._parseColor(se.cursorAccent,ie,!0),this.colors.selectionTransparent=this._parseColor(se.selection,de,!0),this.colors.selectionOpaque=fe.color.blend(this.colors.background,this.colors.selectionTransparent),fe.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=fe.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(se.black,te.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(se.red,te.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(se.green,te.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(se.yellow,te.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(se.blue,te.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(se.magenta,te.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(se.cyan,te.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(se.white,te.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(se.brightBlack,te.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(se.brightRed,te.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(se.brightGreen,te.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(se.brightYellow,te.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(se.brightBlue,te.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(se.brightMagenta,te.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(se.brightCyan,te.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(se.brightWhite,te.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},ue.prototype._parseColor=function(se,me,re){if(re===void 0&&(re=this.allowTransparency),se===void 0)return me;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=se,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+se+" is invalid using fallback "+me.css),me;this._ctx.fillRect(0,0,1,1);var ne=this._ctx.getImageData(0,0,1,1).data;if(ne[3]!==255){if(!re)return console.warn("Color: "+se+" is using transparency, but allowTransparency is false. Using fallback "+me.css+"."),me;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(oe){return Number(oe)}),y=a[0],E=a[1],b=a[2],x=a[3],ee=Math.round(255*x);return{rgba:fe.channels.toRgba(y,E,b,ee),css:se}}return{css:this._ctx.fillStyle,rgba:fe.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},ue}();te.ColorManager=le},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.throwIfFalsy=void 0,te.throwIfFalsy=function(fe){if(!fe)throw new Error("value must not be falsy");return fe}},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(le,ue){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,me){se.__proto__=me}||function(se,me){for(var re in me)me.hasOwnProperty(re)&&(se[re]=me[re])})(le,ue)},function(le,ue){function se(){this.constructor=le}fe(le,ue),le.prototype=ue===null?Object.create(ue):(se.prototype=ue.prototype,new se)});Object.defineProperty(te,"__esModule",{value:!0}),te.CharacterJoinerRegistry=te.JoinedCellData=void 0;var ve=z(6),he=z(3),pe=z(4),ie=function(le){function ue(se,me,re){var ne=le.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=se.fg,ne.bg=se.bg,ne.combinedData=me,ne._width=re,ne}return Pe(ue,le),ue.prototype.isCombined=function(){return 2097152},ue.prototype.getWidth=function(){return this._width},ue.prototype.getChars=function(){return this.combinedData},ue.prototype.getCode=function(){return 2097151},ue.prototype.setFromCharData=function(se){throw new Error("not implemented")},ue.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ue}(ve.AttributeData);te.JoinedCellData=ie;var de=function(){function le(ue){this._bufferService=ue,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new pe.CellData}return le.prototype.registerCharacterJoiner=function(ue){var se={id:this._nextCharacterJoinerId++,handler:ue};return this._characterJoiners.push(se),se.id},le.prototype.deregisterCharacterJoiner=function(ue){for(var se=0;se<this._characterJoiners.length;se++)if(this._characterJoiners[se].id===ue)return this._characterJoiners.splice(se,1),!0;return!1},le.prototype.getJoinedCharacters=function(ue){if(this._characterJoiners.length===0)return[];var se=this._bufferService.buffer.lines.get(ue);if(!se||se.length===0)return[];for(var me=[],re=se.translateToString(!0),ne=0,a=0,y=0,E=se.getFg(0),b=se.getBg(0),x=0;x<se.getTrimmedLength();x++)if(se.loadCell(x,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==E||this._workCell.bg!==b){if(x-ne>1)for(var ee=this._getJoinedRanges(re,y,a,se,ne),oe=0;oe<ee.length;oe++)me.push(ee[oe]);ne=x,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||he.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(ee=this._getJoinedRanges(re,y,a,se,ne),oe=0;oe<ee.length;oe++)me.push(ee[oe]);return me},le.prototype._getJoinedRanges=function(ue,se,me,re,ne){for(var a=ue.substring(se,me),y=this._characterJoiners[0].handler(a),E=1;E<this._characterJoiners.length;E++)for(var b=this._characterJoiners[E].handler(a),x=0;x<b.length;x++)le._mergeRanges(y,b[x]);return this._stringRangesToCellRanges(y,re,ne),y},le.prototype._stringRangesToCellRanges=function(ue,se,me){var re=0,ne=!1,a=0,y=ue[re];if(y){for(var E=me;E<this._bufferService.cols;E++){var b=se.getWidth(E),x=se.getString(E).length||he.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!ne&&y[0]<=a&&(y[0]=E,ne=!0),y[1]<=a){if(y[1]=E,!(y=ue[++re]))break;y[0]<=a?(y[0]=E,ne=!0):ne=!1}a+=x}}y&&(y[1]=this._bufferService.cols)}},le._mergeRanges=function(ue,se){for(var me=!1,re=0;re<ue.length;re++){var ne=ue[re];if(me){if(se[1]<=ne[0])return ue[re-1][1]=se[1],ue;if(se[1]<=ne[1])return ue[re-1][1]=Math.max(se[1],ne[1]),ue.splice(re,1),ue;ue.splice(re,1),re--}else{if(se[1]<=ne[0])return ue.splice(re,0,se),ue;if(se[1]<=ne[1])return ne[0]=Math.min(se[0],ne[0]),ue;se[0]<ne[1]&&(ne[0]=Math.min(se[0],ne[0]),me=!0)}}return me?ue[ue.length-1][1]=se[1]:ue.push(se),ue},le}();te.CharacterJoinerRegistry=de},function(We,te,z){"use strict";function fe(Pe,ve){var he=ve.getBoundingClientRect();return[Pe.clientX-he.left,Pe.clientY-he.top]}Object.defineProperty(te,"__esModule",{value:!0}),te.getRawByteCoords=te.getCoords=te.getCoordsRelativeToElement=void 0,te.getCoordsRelativeToElement=fe,te.getCoords=function(Pe,ve,he,pe,ie,de,le,ue){if(ie){var se=fe(Pe,ve);if(se)return se[0]=Math.ceil((se[0]+(ue?de/2:0))/de),se[1]=Math.ceil(se[1]/le),se[0]=Math.min(Math.max(se[0],1),he+(ue?1:0)),se[1]=Math.min(Math.max(se[1],1),pe),se}},te.getRawByteCoords=function(Pe){if(Pe)return{x:Pe[0]+32,y:Pe[1]+32}}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.RenderDebouncer=void 0;var fe=function(){function Pe(ve){this._renderCallback=ve}return Pe.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},Pe.prototype.refresh=function(ve,he,pe){var ie=this;this._rowCount=pe,ve=ve!==void 0?ve:0,he=he!==void 0?he:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,ve):ve,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,he):he,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return ie._innerRefresh()}))},Pe.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var ve=Math.max(this._rowStart,0),he=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(ve,he)}},Pe}();te.RenderDebouncer=fe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(he,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,de){ie.__proto__=de}||function(ie,de){for(var le in de)de.hasOwnProperty(le)&&(ie[le]=de[le])})(he,pe)},function(he,pe){function ie(){this.constructor=he}fe(he,pe),he.prototype=pe===null?Object.create(pe):(ie.prototype=pe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.ScreenDprMonitor=void 0;var ve=function(he){function pe(){var ie=he!==null&&he.apply(this,arguments)||this;return ie._currentDevicePixelRatio=window.devicePixelRatio,ie}return Pe(pe,he),pe.prototype.setListener=function(ie){var de=this;this._listener&&this.clearListener(),this._listener=ie,this._outerListener=function(){de._listener&&(de._listener(window.devicePixelRatio,de._currentDevicePixelRatio),de._updateDpr())},this._updateDpr()},pe.prototype.dispose=function(){he.prototype.dispose.call(this),this.clearListener()},pe.prototype._updateDpr=function(){var ie;this._outerListener&&((ie=this._resolutionMediaMatchList)===null||ie===void 0||ie.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},pe.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},pe}(z(2).Disposable);te.ScreenDprMonitor=ve},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.clone=void 0,te.clone=function fe(Pe,ve){if(ve===void 0&&(ve=5),typeof Pe!="object")return Pe;var he=Array.isArray(Pe)?[]:{};for(var pe in Pe)he[pe]=ve<=1?Pe[pe]:Pe[pe]?fe(Pe[pe],ve-1):Pe[pe];return he}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var fe=z(4),Pe=z(35),ve=z(18),he=z(0),pe=z(83),ie=function(){function re(ne){this._core=new Pe.Terminal(ne),this._addonManager=new pe.AddonManager}return re.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(re.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new se(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"unicode",{get:function(){return this._checkProposedApi(),new me(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffer",{get:function(){return this._checkProposedApi(),new le(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),re.prototype.blur=function(){this._core.blur()},re.prototype.focus=function(){this._core.focus()},re.prototype.resize=function(ne,a){this._verifyIntegers(ne,a),this._core.resize(ne,a)},re.prototype.open=function(ne){this._core.open(ne)},re.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},re.prototype.registerLinkMatcher=function(ne,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,a,y)},re.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},re.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},re.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},re.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},re.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},re.prototype.addMarker=function(ne){return this.registerMarker(ne)},re.prototype.hasSelection=function(){return this._core.hasSelection()},re.prototype.select=function(ne,a,y){this._verifyIntegers(ne,a,y),this._core.select(ne,a,y)},re.prototype.getSelection=function(){return this._core.getSelection()},re.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},re.prototype.clearSelection=function(){this._core.clearSelection()},re.prototype.selectAll=function(){this._core.selectAll()},re.prototype.selectLines=function(ne,a){this._verifyIntegers(ne,a),this._core.selectLines(ne,a)},re.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},re.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},re.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},re.prototype.scrollToTop=function(){this._core.scrollToTop()},re.prototype.scrollToBottom=function(){this._core.scrollToBottom()},re.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},re.prototype.clear=function(){this._core.clear()},re.prototype.write=function(ne,a){this._core.write(ne,a)},re.prototype.writeUtf8=function(ne,a){this._core.write(ne,a)},re.prototype.writeln=function(ne,a){this._core.write(ne),this._core.write(`\r
`,a)},re.prototype.paste=function(ne){this._core.paste(ne)},re.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},re.prototype.setOption=function(ne,a){this._core.optionsService.setOption(ne,a)},re.prototype.refresh=function(ne,a){this._verifyIntegers(ne,a),this._core.refresh(ne,a)},re.prototype.reset=function(){this._core.reset()},re.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(re,"strings",{get:function(){return ve},enumerable:!1,configurable:!0}),re.prototype._verifyIntegers=function(){for(var ne=[],a=0;a<arguments.length;a++)ne[a]=arguments[a];for(var y=0,E=ne;y<E.length;y++){var b=E[y];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},re}();te.Terminal=ie;var de=function(){function re(ne,a){this._buffer=ne,this.type=a}return re.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(re.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),re.prototype.getLine=function(ne){var a=this._buffer.lines.get(ne);if(a)return new ue(a)},re.prototype.getNullCell=function(){return new fe.CellData},re}(),le=function(){function re(ne){var a=this;this._buffers=ne,this._onBufferChange=new he.EventEmitter,this._normal=new de(this._buffers.normal,"normal"),this._alternate=new de(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return a._onBufferChange.fire(a.active)})}return Object.defineProperty(re.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),re}(),ue=function(){function re(ne){this._line=ne}return Object.defineProperty(re.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),re.prototype.getCell=function(ne,a){if(!(ne<0||ne>=this._line.length))return a?(this._line.loadCell(ne,a),a):this._line.loadCell(ne,new fe.CellData)},re.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},re}(),se=function(){function re(ne){this._core=ne}return re.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},re.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},re.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,E){return a(y,E.toArray())})},re.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},re.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},re.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},re.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},re.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},re}(),me=function(){function re(ne){this._core=ne}return re.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(re.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),re}()},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(mt,Ae){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Be){De.__proto__=Be}||function(De,Be){for(var nt in Be)Be.hasOwnProperty(nt)&&(De[nt]=Be[nt])})(mt,Ae)},function(mt,Ae){function De(){this.constructor=mt}fe(mt,Ae),mt.prototype=Ae===null?Object.create(Ae):(De.prototype=Ae.prototype,new De)});Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var ve=z(36),he=z(37),pe=z(38),ie=z(12),de=z(19),le=z(40),ue=z(50),se=z(51),me=z(11),re=z(7),ne=z(18),a=z(54),y=z(55),E=z(56),b=z(57),x=z(59),ee=z(0),oe=z(16),ae=z(27),ce=z(60),Se=z(5),_e=z(61),xe=z(62),we=z(63),Fe=z(64),Me=z(65),ut=typeof window!="undefined"?window.document:null,Xe=function(mt){function Ae(De){De===void 0&&(De={});var Be=mt.call(this,De)||this;return Be.browser=me,Be._keyDownHandled=!1,Be._onCursorMove=new ee.EventEmitter,Be._onKey=new ee.EventEmitter,Be._onRender=new ee.EventEmitter,Be._onSelectionChange=new ee.EventEmitter,Be._onTitleChange=new ee.EventEmitter,Be._onFocus=new ee.EventEmitter,Be._onBlur=new ee.EventEmitter,Be._onA11yCharEmitter=new ee.EventEmitter,Be._onA11yTabEmitter=new ee.EventEmitter,Be._setup(),Be.linkifier=Be._instantiationService.createInstance(ue.Linkifier),Be.linkifier2=Be.register(Be._instantiationService.createInstance(we.Linkifier2)),Be.register(Be._inputHandler.onRequestBell(function(){return Be.bell()})),Be.register(Be._inputHandler.onRequestRefreshRows(function(nt,Ke){return Be.refresh(nt,Ke)})),Be.register(Be._inputHandler.onRequestReset(function(){return Be.reset()})),Be.register(Be._inputHandler.onRequestScroll(function(nt,Ke){return Be.scroll(nt,Ke||void 0)})),Be.register(Be._inputHandler.onRequestWindowsOptionsReport(function(nt){return Be._reportWindowsOptions(nt)})),Be.register(ee.forwardEvent(Be._inputHandler.onCursorMove,Be._onCursorMove)),Be.register(ee.forwardEvent(Be._inputHandler.onTitleChange,Be._onTitleChange)),Be.register(ee.forwardEvent(Be._inputHandler.onA11yChar,Be._onA11yCharEmitter)),Be.register(ee.forwardEvent(Be._inputHandler.onA11yTab,Be._onA11yTabEmitter)),Be.register(Be._bufferService.onResize(function(nt){return Be._afterResize(nt.cols,nt.rows)})),Be}return Pe(Ae,mt),Object.defineProperty(Ae.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ae.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Ae.prototype.dispose=function(){var De,Be,nt;this._isDisposed||(mt.prototype.dispose.call(this),(De=this._renderService)===null||De===void 0||De.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(nt=(Be=this.element)===null||Be===void 0?void 0:Be.parentNode)===null||nt===void 0||nt.removeChild(this.element))},Ae.prototype._setup=function(){mt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Ae.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Ae.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Ae.prototype._updateOptions=function(De){var Be,nt,Ke,Et;switch(mt.prototype._updateOptions.call(this,De),De){case"fontFamily":case"fontSize":(Be=this._renderService)===null||Be===void 0||Be.clear(),(nt=this._charSizeService)===null||nt===void 0||nt.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Ke=this.viewport)===null||Ke===void 0||Ke.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((Et=this._accessibilityManager)===null||Et===void 0||Et.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Ae.prototype._onTextAreaFocus=function(De){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[I"),this.updateCursorStyle(De),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Ae.prototype.blur=function(){var De;return(De=this.textarea)===null||De===void 0?void 0:De.blur()},Ae.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Ae.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var De=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Be=this._bufferService.buffer.y*De,nt=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=nt+"px",this.textarea.style.top=Be+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=De+"px",this.textarea.style.lineHeight=De+"px",this.textarea.style.zIndex="-5"}},Ae.prototype._initGlobal=function(){var De=this;this._bindKeys(),this.register(re.addDisposableDomListener(this.element,"copy",function(nt){De.hasSelection()&&pe.copyHandler(nt,De._selectionService)}));var Be=function(nt){return pe.handlePasteEvent(nt,De.textarea,De._coreService)};this.register(re.addDisposableDomListener(this.textarea,"paste",Be)),this.register(re.addDisposableDomListener(this.element,"paste",Be)),me.isFirefox?this.register(re.addDisposableDomListener(this.element,"mousedown",function(nt){nt.button===2&&pe.rightClickHandler(nt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})):this.register(re.addDisposableDomListener(this.element,"contextmenu",function(nt){pe.rightClickHandler(nt,De.textarea,De.screenElement,De._selectionService,De.options.rightClickSelectsWord)})),me.isLinux&&this.register(re.addDisposableDomListener(this.element,"auxclick",function(nt){nt.button===1&&pe.moveTextAreaUnderMouseCursor(nt,De.textarea,De.screenElement)}))},Ae.prototype._bindKeys=function(){var De=this;this.register(re.addDisposableDomListener(this.textarea,"keyup",function(Be){return De._keyUp(Be)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keydown",function(Be){return De._keyDown(Be)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keypress",function(Be){return De._keyPress(Be)},!0)),this.register(re.addDisposableDomListener(this.textarea,"compositionstart",function(){return De._compositionHelper.compositionstart()})),this.register(re.addDisposableDomListener(this.textarea,"compositionupdate",function(Be){return De._compositionHelper.compositionupdate(Be)})),this.register(re.addDisposableDomListener(this.textarea,"compositionend",function(){return De._compositionHelper.compositionend()})),this.register(this.onRender(function(){return De._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Be){return De._queueLinkification(Be.start,Be.end)}))},Ae.prototype.open=function(De){var Be=this;if(!De)throw new Error("Terminal requires a parent element.");ut.body.contains(De)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=De.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),De.appendChild(this.element);var nt=ut.createDocumentFragment();this._viewportElement=ut.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),nt.appendChild(this._viewportElement),this._viewportScrollArea=ut.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=ut.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=ut.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),nt.appendChild(this.screenElement),this.textarea=ut.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",ne.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(re.addDisposableDomListener(this.textarea,"focus",function(Ct){return Be._onTextAreaFocus(Ct)})),this.register(re.addDisposableDomListener(this.textarea,"blur",function(){return Be._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ke=this._instantiationService.createInstance(Fe.CoreBrowserService,this.textarea);this._instantiationService.setService(Se.ICoreBrowserService,Ke),this._charSizeService=this._instantiationService.createInstance(_e.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(Se.ICharSizeService,this._charSizeService),this._compositionView=ut.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(ve.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(nt),this._theme=this.options.theme||this._theme,this._colorManager=new ae.ColorManager(ut,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Ct){return Be._colorManager.onOptionsChange(Ct)})),this._colorManager.setTheme(this._theme);var Et=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ce.RenderService,Et,this.rows,this.screenElement)),this._instantiationService.setService(Se.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Ct){return Be._onRender.fire(Ct)})),this.onResize(function(Ct){return Be._renderService.resize(Ct.cols,Ct.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(Se.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(xe.MouseService),this._instantiationService.setService(Se.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(he.Viewport,function(Ct,nn){return Be.scrollLines(Ct,nn)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Be.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Be._renderService.onCursorMove(),Be._syncTextArea()})),this.register(this.onResize(function(){return Be._renderService.onResize(Be.cols,Be.rows)})),this.register(this.onBlur(function(){return Be._renderService.onBlur()})),this.register(this.onFocus(function(){return Be._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Be.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(se.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(Se.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Ct){return Be.scrollLines(Ct.amount,Ct.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Be._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Ct){return Be._renderService.onSelectionChanged(Ct.start,Ct.end,Ct.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Ct){Be.textarea.value=Ct,Be.textarea.focus(),Be.textarea.select()})),this.register(this.onScroll(function(){Be.viewport.syncScrollArea(),Be._selectionService.refresh()})),this.register(re.addDisposableDomListener(this._viewportElement,"scroll",function(){return Be._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Be._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(re.addDisposableDomListener(this.element,"mousedown",function(Ct){return Be._selectionService.onMouseDown(Ct)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Ae.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(le.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Ae.prototype._setTheme=function(De){var Be,nt,Ke;this._theme=De,(Be=this._colorManager)===null||Be===void 0||Be.setTheme(De),(nt=this._renderService)===null||nt===void 0||nt.setColors(this._colorManager.colors),(Ke=this.viewport)===null||Ke===void 0||Ke.onThemeChange(this._colorManager.colors)},Ae.prototype.bindMouse=function(){var De=this,Be=this,nt=this.element;function Ke(lt){var xt,Jt,Vt=Be._mouseService.getRawByteCoords(lt,Be.screenElement,Be.cols,Be.rows);if(!Vt)return!1;switch(lt.overrideType||lt.type){case"mousemove":Jt=32,lt.buttons===void 0?(xt=3,lt.button!==void 0&&(xt=lt.button<3?lt.button:3)):xt=1&lt.buttons?0:4&lt.buttons?1:2&lt.buttons?2:3;break;case"mouseup":Jt=0,xt=lt.button<3?lt.button:3;break;case"mousedown":Jt=1,xt=lt.button<3?lt.button:3;break;case"wheel":lt.deltaY!==0&&(Jt=lt.deltaY<0?0:1),xt=4;break;default:return!1}return!(Jt===void 0||xt===void 0||xt>4)&&Be._coreMouseService.triggerMouseEvent({col:Vt.x-33,row:Vt.y-33,button:xt,action:Jt,ctrl:lt.ctrlKey,alt:lt.altKey,shift:lt.shiftKey})}var Et={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Ct=function(lt){return Ke(lt),lt.buttons||(De._document.removeEventListener("mouseup",Et.mouseup),Et.mousedrag&&De._document.removeEventListener("mousemove",Et.mousedrag)),De.cancel(lt)},nn=function(lt){return Ke(lt),lt.preventDefault(),De.cancel(lt)},on=function(lt){lt.buttons&&Ke(lt)},it=function(lt){lt.buttons||Ke(lt)};this.register(this._coreMouseService.onProtocolChange(function(lt){lt?(De.optionsService.options.logLevel==="debug"&&De._logService.debug("Binding to mouse events:",De._coreMouseService.explainEvents(lt)),De.element.classList.add("enable-mouse-events"),De._selectionService.disable()):(De._logService.debug("Unbinding from mouse events."),De.element.classList.remove("enable-mouse-events"),De._selectionService.enable()),8&lt?Et.mousemove||(nt.addEventListener("mousemove",it),Et.mousemove=it):(nt.removeEventListener("mousemove",Et.mousemove),Et.mousemove=null),16&lt?Et.wheel||(nt.addEventListener("wheel",nn,{passive:!1}),Et.wheel=nn):(nt.removeEventListener("wheel",Et.wheel),Et.wheel=null),2&lt?Et.mouseup||(Et.mouseup=Ct):(De._document.removeEventListener("mouseup",Et.mouseup),Et.mouseup=null),4&lt?Et.mousedrag||(Et.mousedrag=on):(De._document.removeEventListener("mousemove",Et.mousedrag),Et.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(re.addDisposableDomListener(nt,"mousedown",function(lt){if(lt.preventDefault(),De.focus(),De._coreMouseService.areMouseEventsActive&&!De._selectionService.shouldForceSelection(lt))return Ke(lt),Et.mouseup&&De._document.addEventListener("mouseup",Et.mouseup),Et.mousedrag&&De._document.addEventListener("mousemove",Et.mousedrag),De.cancel(lt)})),this.register(re.addDisposableDomListener(nt,"wheel",function(lt){if(!Et.wheel){if(!De.buffer.hasScrollback){var xt=De.viewport.getLinesScrolled(lt);if(xt===0)return;for(var Jt=ie.C0.ESC+(De._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(lt.deltaY<0?"A":"B"),Vt="",xn=0;xn<Math.abs(xt);xn++)Vt+=Jt;De._coreService.triggerDataEvent(Vt,!0)}}},{passive:!0})),this.register(re.addDisposableDomListener(nt,"wheel",function(lt){if(!Et.wheel)return De.viewport.onWheel(lt)?void 0:De.cancel(lt)},{passive:!1})),this.register(re.addDisposableDomListener(nt,"touchstart",function(lt){if(!De._coreMouseService.areMouseEventsActive)return De.viewport.onTouchStart(lt),De.cancel(lt)},{passive:!0})),this.register(re.addDisposableDomListener(nt,"touchmove",function(lt){if(!De._coreMouseService.areMouseEventsActive)return De.viewport.onTouchMove(lt)?void 0:De.cancel(lt)},{passive:!1}))},Ae.prototype.refresh=function(De,Be){var nt;(nt=this._renderService)===null||nt===void 0||nt.refreshRows(De,Be)},Ae.prototype._queueLinkification=function(De,Be){var nt;(nt=this.linkifier)===null||nt===void 0||nt.linkifyRows(De,Be)},Ae.prototype.updateCursorStyle=function(De){this._selectionService&&this._selectionService.shouldColumnSelect(De)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Ae.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Ae.prototype.scrollLines=function(De,Be){mt.prototype.scrollLines.call(this,De,Be),this.refresh(0,this.rows-1)},Ae.prototype.paste=function(De){pe.paste(De,this.textarea,this._coreService)},Ae.prototype.attachCustomKeyEventHandler=function(De){this._customKeyEventHandler=De},Ae.prototype.registerLinkMatcher=function(De,Be,nt){var Ke=this.linkifier.registerLinkMatcher(De,Be,nt);return this.refresh(0,this.rows-1),Ke},Ae.prototype.deregisterLinkMatcher=function(De){this.linkifier.deregisterLinkMatcher(De)&&this.refresh(0,this.rows-1)},Ae.prototype.registerLinkProvider=function(De){return this.linkifier2.registerLinkProvider(De)},Ae.prototype.registerCharacterJoiner=function(De){var Be=this._renderService.registerCharacterJoiner(De);return this.refresh(0,this.rows-1),Be},Ae.prototype.deregisterCharacterJoiner=function(De){this._renderService.deregisterCharacterJoiner(De)&&this.refresh(0,this.rows-1)},Object.defineProperty(Ae.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Ae.prototype.addMarker=function(De){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+De)},Ae.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Ae.prototype.select=function(De,Be,nt){this._selectionService.setSelection(De,Be,nt)},Ae.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Ae.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},Ae.prototype.clearSelection=function(){var De;(De=this._selectionService)===null||De===void 0||De.clearSelection()},Ae.prototype.selectAll=function(){var De;(De=this._selectionService)===null||De===void 0||De.selectAll()},Ae.prototype.selectLines=function(De,Be){var nt;(nt=this._selectionService)===null||nt===void 0||nt.selectLines(De,Be)},Ae.prototype._keyDown=function(De){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1)return!1;if(!this._compositionHelper.keydown(De))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var Be=x.evaluateKeyboardEvent(De,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(De),Be.type===3||Be.type===2){var nt=this.rows-1;return this.scrollLines(Be.type===2?-nt:nt),this.cancel(De,!0)}return Be.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,De)||(Be.cancel&&this.cancel(De,!0),!Be.key||(Be.key!==ie.C0.ETX&&Be.key!==ie.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Be.key,domEvent:De}),this._showCursor(),this._coreService.triggerDataEvent(Be.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(De,!0)))},Ae.prototype._isThirdLevelShift=function(De,Be){var nt=De.isMac&&!this.options.macOptionIsMeta&&Be.altKey&&!Be.ctrlKey&&!Be.metaKey||De.isWindows&&Be.altKey&&Be.ctrlKey&&!Be.metaKey;return Be.type==="keypress"?nt:nt&&(!Be.keyCode||Be.keyCode>47)},Ae.prototype._keyUp=function(De){this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1||(function(Be){return Be.keyCode===16||Be.keyCode===17||Be.keyCode===18}(De)||this.focus(),this.updateCursorStyle(De))},Ae.prototype._keyPress=function(De){var Be;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(De)===!1)return!1;if(this.cancel(De),De.charCode)Be=De.charCode;else if(De.which===null||De.which===void 0)Be=De.keyCode;else{if(De.which===0||De.charCode===0)return!1;Be=De.which}return!(!Be||(De.altKey||De.ctrlKey||De.metaKey)&&!this._isThirdLevelShift(this.browser,De))&&(Be=String.fromCharCode(Be),this._onKey.fire({key:Be,domEvent:De}),this._showCursor(),this._coreService.triggerDataEvent(Be,!0),!0)},Ae.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Ae.prototype.resize=function(De,Be){De!==this.cols||Be!==this.rows?mt.prototype.resize.call(this,De,Be):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Ae.prototype._afterResize=function(De,Be){var nt,Ke;(nt=this._charSizeService)===null||nt===void 0||nt.measure(),(Ke=this.viewport)===null||Ke===void 0||Ke.syncScrollArea(!0)},Ae.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var De=1;De<this.rows;De++)this.buffer.lines.push(this.buffer.getBlankLine(oe.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Ae.prototype.reset=function(){var De,Be;this.options.rows=this.rows,this.options.cols=this.cols;var nt=this._customKeyEventHandler;this._setup(),mt.prototype.reset.call(this),(De=this._selectionService)===null||De===void 0||De.reset(),this._customKeyEventHandler=nt,this.refresh(0,this.rows-1),(Be=this.viewport)===null||Be===void 0||Be.syncScrollArea()},Ae.prototype._reportWindowsOptions=function(De){if(this._renderService)switch(De){case de.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Be=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),nt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[4;"+nt+";"+Be+"t");break;case de.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ke=this._renderService.dimensions.scaledCellWidth.toFixed(0),Et=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[6;"+Et+";"+Ke+"t")}},Ae.prototype.cancel=function(De,Be){if(this.options.cancelEvents||Be)return De.preventDefault(),De.stopPropagation(),!1},Ae.prototype._visualBell=function(){return!1},Ae.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Ae}(Me.CoreTerminal);te.Terminal=Xe},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(ie,de,le,ue){var se,me=arguments.length,re=me<3?de:ue===null?ue=Object.getOwnPropertyDescriptor(de,le):ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ie,de,le,ue);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(re=(me<3?se(re):me>3?se(de,le,re):se(de,le))||re);return me>3&&re&&Object.defineProperty(de,le,re),re},Pe=this&&this.__param||function(ie,de){return function(le,ue){de(le,ue,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CompositionHelper=void 0;var ve=z(5),he=z(1),pe=function(){function ie(de,le,ue,se,me,re){this._textarea=de,this._compositionView=le,this._bufferService=ue,this._optionsService=se,this._charSizeService=me,this._coreService=re,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(ie.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),ie.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},ie.prototype.compositionupdate=function(de){var le=this;this._compositionView.textContent=de.data,this.updateCompositionElements(),setTimeout(function(){le._compositionPosition.end=le._textarea.value.length},0)},ie.prototype.compositionend=function(){this._finalizeComposition(!0)},ie.prototype.keydown=function(de){if(this._isComposing||this._isSendingComposition){if(de.keyCode===229||de.keyCode===16||de.keyCode===17||de.keyCode===18)return!1;this._finalizeComposition(!1)}return de.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ie.prototype._finalizeComposition=function(de){var le=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,de){var ue={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(le._isSendingComposition){le._isSendingComposition=!1;var me=void 0;me=le._isComposing?le._textarea.value.substring(ue.start,ue.end):le._textarea.value.substring(ue.start),le._coreService.triggerDataEvent(me,!0)}},0)}else{this._isSendingComposition=!1;var se=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(se,!0)}},ie.prototype._handleAnyTextareaChanges=function(){var de=this,le=this._textarea.value;setTimeout(function(){if(!de._isComposing){var ue=de._textarea.value.replace(le,"");ue.length>0&&de._coreService.triggerDataEvent(ue,!0)}},0)},ie.prototype.updateCompositionElements=function(de){var le=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var ue=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),se=this._bufferService.buffer.y*ue,me=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=me+"px",this._compositionView.style.top=se+"px",this._compositionView.style.height=ue+"px",this._compositionView.style.lineHeight=ue+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var re=this._compositionView.getBoundingClientRect();this._textarea.style.left=me+"px",this._textarea.style.top=se+"px",this._textarea.style.width=re.width+"px",this._textarea.style.height=re.height+"px",this._textarea.style.lineHeight=re.height+"px"}de||setTimeout(function(){return le.updateCompositionElements(!0)},0)}},ie=fe([Pe(2,he.IBufferService),Pe(3,he.IOptionsService),Pe(4,ve.ICharSizeService),Pe(5,he.ICoreService)],ie)}();te.CompositionHelper=pe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(se,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}fe(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},he=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Viewport=void 0;var pe=z(2),ie=z(7),de=z(5),le=z(1),ue=function(se){function me(re,ne,a,y,E,b,x){var ee=se.call(this)||this;return ee._scrollLines=re,ee._viewportElement=ne,ee._scrollArea=a,ee._bufferService=y,ee._optionsService=E,ee._charSizeService=b,ee._renderService=x,ee.scrollBarWidth=0,ee._currentRowHeight=0,ee._lastRecordedBufferLength=0,ee._lastRecordedViewportHeight=0,ee._lastRecordedBufferHeight=0,ee._lastTouchY=0,ee._lastScrollTop=0,ee._wheelPartialScroll=0,ee._refreshAnimationFrame=null,ee._ignoreNextScrollEvent=!1,ee.scrollBarWidth=ee._viewportElement.offsetWidth-ee._scrollArea.offsetWidth||15,ee.register(ie.addDisposableDomListener(ee._viewportElement,"scroll",ee._onScroll.bind(ee))),setTimeout(function(){return ee.syncScrollArea()},0),ee}return Pe(me,se),me.prototype.onThemeChange=function(re){this._viewportElement.style.backgroundColor=re.background.css},me.prototype._refresh=function(re){var ne=this;if(re)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ne._innerRefresh()}))},me.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var re=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==re&&(this._lastRecordedBufferHeight=re,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==ne&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=ne),this._refreshAnimationFrame=null},me.prototype.syncScrollArea=function(re){if(re===void 0&&(re=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(re);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===ne&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(re)}else this._refresh(re)},me.prototype._onScroll=function(re){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var ne=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(ne,!0)}},me.prototype._bubbleScroll=function(re,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a<this._lastRecordedBufferHeight)||(re.cancelable&&re.preventDefault(),!1)},me.prototype.onWheel=function(re){var ne=this._getPixelsScrolled(re);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},me.prototype._getPixelsScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},me.prototype.getLinesScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(ne/=this._currentRowHeight+0,this._wheelPartialScroll+=ne,ne=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},me.prototype._applyScrollModifier=function(re,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?re*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:re*this._optionsService.options.scrollSensitivity},me.prototype.onTouchStart=function(re){this._lastTouchY=re.touches[0].pageY},me.prototype.onTouchMove=function(re){var ne=this._lastTouchY-re.touches[0].pageY;return this._lastTouchY=re.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},me=ve([he(3,le.IBufferService),he(4,le.IOptionsService),he(5,de.ICharSizeService),he(6,de.IRenderService)],me)}(pe.Disposable);te.Viewport=ue},function(We,te,z){"use strict";function fe(pe){return pe.replace(/\r?\n/g,"\r")}function Pe(pe,ie){return ie?"\x1B[200~"+pe+"\x1B[201~":pe}function ve(pe,ie,de){pe=Pe(pe=fe(pe),de.decPrivateModes.bracketedPasteMode),de.triggerDataEvent(pe,!0),ie.value=""}function he(pe,ie,de){var le=de.getBoundingClientRect(),ue=pe.clientX-le.left-10,se=pe.clientY-le.top-10;ie.style.width="20px",ie.style.height="20px",ie.style.left=ue+"px",ie.style.top=se+"px",ie.style.zIndex="1000",ie.focus()}Object.defineProperty(te,"__esModule",{value:!0}),te.rightClickHandler=te.moveTextAreaUnderMouseCursor=te.paste=te.handlePasteEvent=te.copyHandler=te.bracketTextForPaste=te.prepareTextForTerminal=void 0,te.prepareTextForTerminal=fe,te.bracketTextForPaste=Pe,te.copyHandler=function(pe,ie){pe.clipboardData&&pe.clipboardData.setData("text/plain",ie.selectionText),pe.preventDefault()},te.handlePasteEvent=function(pe,ie,de){pe.stopPropagation(),pe.clipboardData&&ve(pe.clipboardData.getData("text/plain"),ie,de)},te.paste=ve,te.moveTextAreaUnderMouseCursor=he,te.rightClickHandler=function(pe,ie,de,le,ue){he(pe,ie,de),ue&&!le.isClickInSelection(pe)&&le.selectWordAtCursor(pe),ie.value=le.selectionText,ie.select()}},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(se,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}fe(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)});Object.defineProperty(te,"__esModule",{value:!0}),te.EscapeSequenceParser=te.VT500_TRANSITION_TABLE=te.TransitionTable=void 0;var ve=z(2),he=z(15),pe=z(21),ie=z(22),de=z(24),le=function(){function se(me){this.table=new Uint8Array(me)}return se.prototype.setDefault=function(me,re){he.fill(this.table,me<<4|re)},se.prototype.add=function(me,re,ne,a){this.table[re<<8|me]=ne<<4|a},se.prototype.addMany=function(me,re,ne,a){for(var y=0;y<me.length;y++)this.table[re<<8|me[y]]=ne<<4|a},se}();te.TransitionTable=le,te.VT500_TRANSITION_TABLE=function(){var se=new le(4095),me=Array.apply(null,Array(256)).map(function(b,x){return x}),re=function(b,x){return me.slice(b,x)},ne=re(32,127),a=re(0,24);a.push(25),a.push.apply(a,re(28,32));var y,E=re(0,14);for(y in se.setDefault(1,0),se.addMany(ne,0,2,0),E)se.addMany([24,26,153,154],y,3,0),se.addMany(re(128,144),y,3,0),se.addMany(re(144,152),y,3,0),se.add(156,y,0,0),se.add(27,y,11,1),se.add(157,y,4,8),se.addMany([152,158,159],y,0,7),se.add(155,y,11,3),se.add(144,y,11,9);return se.addMany(a,0,3,0),se.addMany(a,1,3,1),se.add(127,1,0,1),se.addMany(a,8,0,8),se.addMany(a,3,3,3),se.add(127,3,0,3),se.addMany(a,4,3,4),se.add(127,4,0,4),se.addMany(a,6,3,6),se.addMany(a,5,3,5),se.add(127,5,0,5),se.addMany(a,2,3,2),se.add(127,2,0,2),se.add(93,1,4,8),se.addMany(ne,8,5,8),se.add(127,8,5,8),se.addMany([156,27,24,26,7],8,6,0),se.addMany(re(28,32),8,0,8),se.addMany([88,94,95],1,0,7),se.addMany(ne,7,0,7),se.addMany(a,7,0,7),se.add(156,7,0,0),se.add(127,7,0,7),se.add(91,1,11,3),se.addMany(re(64,127),3,7,0),se.addMany(re(48,60),3,8,4),se.addMany([60,61,62,63],3,9,4),se.addMany(re(48,60),4,8,4),se.addMany(re(64,127),4,7,0),se.addMany([60,61,62,63],4,0,6),se.addMany(re(32,64),6,0,6),se.add(127,6,0,6),se.addMany(re(64,127),6,0,0),se.addMany(re(32,48),3,9,5),se.addMany(re(32,48),5,9,5),se.addMany(re(48,64),5,0,6),se.addMany(re(64,127),5,7,0),se.addMany(re(32,48),4,9,5),se.addMany(re(32,48),1,9,2),se.addMany(re(32,48),2,9,2),se.addMany(re(48,127),2,10,0),se.addMany(re(48,80),1,10,0),se.addMany(re(81,88),1,10,0),se.addMany([89,90,92],1,10,0),se.addMany(re(96,127),1,10,0),se.add(80,1,11,9),se.addMany(a,9,0,9),se.add(127,9,0,9),se.addMany(re(28,32),9,0,9),se.addMany(re(32,48),9,9,12),se.addMany(re(48,60),9,8,10),se.addMany([60,61,62,63],9,9,10),se.addMany(a,11,0,11),se.addMany(re(32,128),11,0,11),se.addMany(re(28,32),11,0,11),se.addMany(a,10,0,10),se.add(127,10,0,10),se.addMany(re(28,32),10,0,10),se.addMany(re(48,60),10,8,10),se.addMany([60,61,62,63],10,0,11),se.addMany(re(32,48),10,9,12),se.addMany(a,12,0,12),se.add(127,12,0,12),se.addMany(re(28,32),12,0,12),se.addMany(re(32,48),12,9,12),se.addMany(re(48,64),12,0,11),se.addMany(re(64,127),12,12,13),se.addMany(re(64,127),10,12,13),se.addMany(re(64,127),9,12,13),se.addMany(a,13,13,13),se.addMany(ne,13,13,13),se.add(127,13,0,13),se.addMany([27,156,24,26],13,14,0),se.add(160,0,2,0),se.add(160,8,5,8),se.add(160,6,0,6),se.add(160,11,0,11),se.add(160,13,13,13),se}();var ue=function(se){function me(re){re===void 0&&(re=te.VT500_TRANSITION_TABLE);var ne=se.call(this)||this;return ne._transitions=re,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new pe.Params,ne._params.addParam(0),ne._collect=0,ne.precedingCodepoint=0,ne._printHandlerFb=function(a,y,E){},ne._executeHandlerFb=function(a){},ne._csiHandlerFb=function(a,y){},ne._escHandlerFb=function(a){},ne._errorHandlerFb=function(a){return a},ne._printHandler=ne._printHandlerFb,ne._executeHandlers=Object.create(null),ne._csiHandlers=Object.create(null),ne._escHandlers=Object.create(null),ne._oscParser=new ie.OscParser,ne._dcsParser=new de.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return Pe(me,se),me.prototype._identifier=function(re,ne){ne===void 0&&(ne=[64,126]);var a=0;if(re.prefix){if(re.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=re.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(re.intermediates){if(re.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<re.intermediates.length;++y){var E=re.intermediates.charCodeAt(y);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(re.final.length!==1)throw new Error("final must be a single byte");var b=re.final.charCodeAt(0);if(ne[0]>b||b>ne[1])throw new Error("final must be in range "+ne[0]+" .. "+ne[1]);return a<<=8,a|=b},me.prototype.identToString=function(re){for(var ne=[];re;)ne.push(String.fromCharCode(255&re)),re>>=8;return ne.reverse().join("")},me.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},me.prototype.setPrintHandler=function(re){this._printHandler=re},me.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},me.prototype.addEscHandler=function(re,ne){var a=this._identifier(re,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);var y=this._escHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},me.prototype.setEscHandler=function(re,ne){this._escHandlers[this._identifier(re,[48,126])]=[ne]},me.prototype.clearEscHandler=function(re){this._escHandlers[this._identifier(re,[48,126])]&&delete this._escHandlers[this._identifier(re,[48,126])]},me.prototype.setEscHandlerFallback=function(re){this._escHandlerFb=re},me.prototype.setExecuteHandler=function(re,ne){this._executeHandlers[re.charCodeAt(0)]=ne},me.prototype.clearExecuteHandler=function(re){this._executeHandlers[re.charCodeAt(0)]&&delete this._executeHandlers[re.charCodeAt(0)]},me.prototype.setExecuteHandlerFallback=function(re){this._executeHandlerFb=re},me.prototype.addCsiHandler=function(re,ne){var a=this._identifier(re);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);var y=this._csiHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},me.prototype.setCsiHandler=function(re,ne){this._csiHandlers[this._identifier(re)]=[ne]},me.prototype.clearCsiHandler=function(re){this._csiHandlers[this._identifier(re)]&&delete this._csiHandlers[this._identifier(re)]},me.prototype.setCsiHandlerFallback=function(re){this._csiHandlerFb=re},me.prototype.addDcsHandler=function(re,ne){return this._dcsParser.addHandler(this._identifier(re),ne)},me.prototype.setDcsHandler=function(re,ne){this._dcsParser.setHandler(this._identifier(re),ne)},me.prototype.clearDcsHandler=function(re){this._dcsParser.clearHandler(this._identifier(re))},me.prototype.setDcsHandlerFallback=function(re){this._dcsParser.setHandlerFallback(re)},me.prototype.addOscHandler=function(re,ne){return this._oscParser.addHandler(re,ne)},me.prototype.setOscHandler=function(re,ne){this._oscParser.setHandler(re,ne)},me.prototype.clearOscHandler=function(re){this._oscParser.clearHandler(re)},me.prototype.setOscHandlerFallback=function(re){this._oscParser.setHandlerFallback(re)},me.prototype.setErrorHandler=function(re){this._errorHandler=re},me.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},me.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},me.prototype.parse=function(re,ne){for(var a=0,y=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,ee=this._collect,oe=this._params,ae=this._transitions.table,ce=0;ce<ne;++ce){switch((y=ae[E<<8|((a=re[ce])<160?a:160)])>>4){case 2:for(var Se=ce+1;;++Se){if(Se>=ne||(a=re[Se])<32||a>126&&a<160){this._printHandler(re,ce,Se),ce=Se-1;break}if(++Se>=ne||(a=re[Se])<32||a>126&&a<160){this._printHandler(re,ce,Se),ce=Se-1;break}if(++Se>=ne||(a=re[Se])<32||a>126&&a<160){this._printHandler(re,ce,Se),ce=Se-1;break}if(++Se>=ne||(a=re[Se])<32||a>126&&a<160){this._printHandler(re,ce,Se),ce=Se-1;break}}break;case 3:this._executeHandlers[a]?this._executeHandlers[a]():this._executeHandlerFb(a),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ce,code:a,currentState:E,collect:ee,params:oe,abort:!1}).abort)return;break;case 7:for(var _e=this._csiHandlers[ee<<8|a],xe=_e?_e.length-1:-1;xe>=0&&_e[xe](oe)===!1;xe--);xe<0&&this._csiHandlerFb(ee<<8|a,oe),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:oe.addParam(0);break;case 58:oe.addSubParam(-1);break;default:oe.addDigit(a-48)}while(++ce<ne&&(a=re[ce])>47&&a<60);ce--;break;case 9:ee<<=8,ee|=a;break;case 10:for(var we=this._escHandlers[ee<<8|a],Fe=we?we.length-1:-1;Fe>=0&&we[Fe]()===!1;Fe--);Fe<0&&this._escHandlerFb(ee<<8|a),this.precedingCodepoint=0;break;case 11:oe.reset(),oe.addParam(0),ee=0;break;case 12:x.hook(ee<<8|a,oe);break;case 13:for(var Me=ce+1;;++Me)if(Me>=ne||(a=re[Me])===24||a===26||a===27||a>127&&a<160){x.put(re,ce,Me),ce=Me-1;break}break;case 14:x.unhook(a!==24&&a!==26),a===27&&(y|=1),oe.reset(),oe.addParam(0),ee=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var ut=ce+1;;ut++)if(ut>=ne||(a=re[ut])<32||a>127&&a<=159){b.put(re,ce,ut),ce=ut-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),oe.reset(),oe.addParam(0),ee=0,this.precedingCodepoint=0}E=15&y}this._collect=ee,this.currentState=E},me}(ve.Disposable);te.EscapeSequenceParser=ue},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ae in oe)oe.hasOwnProperty(ae)&&(ee[ae]=oe[ae])})(b,x)},function(b,x){function ee(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(ee.prototype=x.prototype,new ee)}),ve=this&&this.__decorate||function(b,x,ee,oe){var ae,ce=arguments.length,Se=ce<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,ee):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Se=Reflect.decorate(b,x,ee,oe);else for(var _e=b.length-1;_e>=0;_e--)(ae=b[_e])&&(Se=(ce<3?ae(Se):ce>3?ae(x,ee,Se):ae(x,ee))||Se);return ce>3&&Se&&Object.defineProperty(x,ee,Se),Se},he=this&&this.__param||function(b,x){return function(ee,oe){x(ee,oe,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Renderer=void 0;var pe=z(41),ie=z(47),de=z(48),le=z(49),ue=z(29),se=z(2),me=z(5),re=z(1),ne=z(25),a=z(0),y=1,E=function(b){function x(ee,oe,ae,ce,Se,_e,xe,we,Fe){var Me=b.call(this)||this;Me._colors=ee,Me._screenElement=oe,Me._bufferService=Se,Me._charSizeService=_e,Me._optionsService=xe,Me._id=y++,Me._onRequestRedraw=new a.EventEmitter;var ut=Me._optionsService.options.allowTransparency;return Me._characterJoinerRegistry=new ue.CharacterJoinerRegistry(Me._bufferService),Me._renderLayers=[new pe.TextRenderLayer(Me._screenElement,0,Me._colors,Me._characterJoinerRegistry,ut,Me._id,Me._bufferService,xe),new ie.SelectionRenderLayer(Me._screenElement,1,Me._colors,Me._id,Me._bufferService,xe),new le.LinkRenderLayer(Me._screenElement,2,Me._colors,Me._id,ae,ce,Me._bufferService,xe),new de.CursorRenderLayer(Me._screenElement,3,Me._colors,Me._id,Me._onRequestRedraw,Me._bufferService,xe,we,Fe)],Me.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Me._devicePixelRatio=window.devicePixelRatio,Me._updateDimensions(),Me.onOptionsChanged(),Me}return Pe(x,b),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){for(var ee=0,oe=this._renderLayers;ee<oe.length;ee++)oe[ee].dispose();b.prototype.dispose.call(this),ne.removeTerminalFromCache(this._id)},x.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},x.prototype.setColors=function(ee){this._colors=ee;for(var oe=0,ae=this._renderLayers;oe<ae.length;oe++){var ce=ae[oe];ce.setColors(this._colors),ce.reset()}},x.prototype.onResize=function(ee,oe){this._updateDimensions();for(var ae=0,ce=this._renderLayers;ae<ce.length;ae++)ce[ae].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},x.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},x.prototype.onBlur=function(){this._runOperation(function(ee){return ee.onBlur()})},x.prototype.onFocus=function(){this._runOperation(function(ee){return ee.onFocus()})},x.prototype.onSelectionChanged=function(ee,oe,ae){ae===void 0&&(ae=!1),this._runOperation(function(ce){return ce.onSelectionChanged(ee,oe,ae)})},x.prototype.onCursorMove=function(){this._runOperation(function(ee){return ee.onCursorMove()})},x.prototype.onOptionsChanged=function(){this._runOperation(function(ee){return ee.onOptionsChanged()})},x.prototype.clear=function(){this._runOperation(function(ee){return ee.reset()})},x.prototype._runOperation=function(ee){for(var oe=0,ae=this._renderLayers;oe<ae.length;oe++)ee(ae[oe])},x.prototype.renderRows=function(ee,oe){for(var ae=0,ce=this._renderLayers;ae<ce.length;ae++)ce[ae].onGridChanged(ee,oe)},x.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},x.prototype.registerCharacterJoiner=function(ee){return this._characterJoinerRegistry.registerCharacterJoiner(ee)},x.prototype.deregisterCharacterJoiner=function(ee){return this._characterJoinerRegistry.deregisterCharacterJoiner(ee)},x=ve([he(4,re.IBufferService),he(5,me.ICharSizeService),he(6,re.IOptionsService),he(7,re.ICoreService),he(8,me.ICoreBrowserService)],x)}(se.Disposable);te.Renderer=E},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(se,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}fe(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)});Object.defineProperty(te,"__esModule",{value:!0}),te.TextRenderLayer=void 0;var ve=z(42),he=z(13),pe=z(6),ie=z(3),de=z(29),le=z(4),ue=function(se){function me(re,ne,a,y,E,b,x,ee){var oe=se.call(this,re,"text",ne,E,a,b,x,ee)||this;return oe._characterWidth=0,oe._characterFont="",oe._characterOverlapCache={},oe._workCell=new le.CellData,oe._state=new ve.GridCache,oe._characterJoinerRegistry=y,oe}return Pe(me,se),me.prototype.resize=function(re){se.prototype.resize.call(this,re);var ne=this._getFont(!1,!1);this._characterWidth===re.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=re.scaledCharWidth,this._characterFont=ne,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},me.prototype.reset=function(){this._state.clear(),this._clearAll()},me.prototype._forEachCell=function(re,ne,a,y){for(var E=re;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),ee=a?a.getJoinedCharacters(b):[],oe=0;oe<this._bufferService.cols;oe++){x.loadCell(oe,this._workCell);var ae=this._workCell,ce=!1,Se=oe;if(ae.getWidth()!==0){if(ee.length>0&&oe===ee[0][0]){ce=!0;var _e=ee.shift();ae=new de.JoinedCellData(this._workCell,x.translateToString(!0,_e[0],_e[1]),_e[1]-_e[0]),Se=_e[1]-1}!ce&&this._isOverlapping(ae)&&Se<x.length-1&&x.getCodePoint(Se+1)===ie.NULL_CELL_CODE&&(ae.content&=-12582913,ae.content|=2<<22),y(ae,oe,E),oe=Se}}},me.prototype._drawBackground=function(re,ne){var a=this,y=this._ctx,E=this._bufferService.cols,b=0,x=0,ee=null;y.save(),this._forEachCell(re,ne,null,function(oe,ae,ce){var Se=null;oe.isInverse()?Se=oe.isFgDefault()?a._colors.foreground.css:oe.isFgRGB()?"rgb("+pe.AttributeData.toColorRGB(oe.getFgColor()).join(",")+")":a._colors.ansi[oe.getFgColor()].css:oe.isBgRGB()?Se="rgb("+pe.AttributeData.toColorRGB(oe.getBgColor()).join(",")+")":oe.isBgPalette()&&(Se=a._colors.ansi[oe.getBgColor()].css),ee===null&&(b=ae,x=ce),ce!==x?(y.fillStyle=ee||"",a._fillCells(b,x,E-b,1),b=ae,x=ce):ee!==Se&&(y.fillStyle=ee||"",a._fillCells(b,x,ae-b,1),b=ae,x=ce),ee=Se}),ee!==null&&(y.fillStyle=ee,this._fillCells(b,x,E-b,1)),y.restore()},me.prototype._drawForeground=function(re,ne){var a=this;this._forEachCell(re,ne,this._characterJoinerRegistry,function(y,E,b){if(!y.isInvisible()&&(a._drawChars(y,E,b),y.isUnderline())){if(a._ctx.save(),y.isInverse())if(y.isBgDefault())a._ctx.fillStyle=a._colors.background.css;else if(y.isBgRGB())a._ctx.fillStyle="rgb("+pe.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var x=y.getBgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&x<8&&(x+=8),a._ctx.fillStyle=a._colors.ansi[x].css}else if(y.isFgDefault())a._ctx.fillStyle=a._colors.foreground.css;else if(y.isFgRGB())a._ctx.fillStyle="rgb("+pe.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var ee=y.getFgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&ee<8&&(ee+=8),a._ctx.fillStyle=a._colors.ansi[ee].css}a._fillBottomLineAtCells(E,b,y.getWidth()),a._ctx.restore()}})},me.prototype.onGridChanged=function(re,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,re,this._bufferService.cols,ne-re+1),this._drawBackground(re,ne),this._drawForeground(re,ne))},me.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},me.prototype._isOverlapping=function(re){if(re.getWidth()!==1||re.getCode()<256)return!1;var ne=re.getChars();if(this._characterOverlapCache.hasOwnProperty(ne))return this._characterOverlapCache[ne];this._ctx.save(),this._ctx.font=this._characterFont;var a=Math.floor(this._ctx.measureText(ne).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=a,a},me}(he.BaseRenderLayer);te.TextRenderLayer=ue},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.GridCache=void 0;var fe=function(){function Pe(){this.cache=[]}return Pe.prototype.resize=function(ve,he){for(var pe=0;pe<ve;pe++){this.cache.length<=pe&&this.cache.push([]);for(var ie=this.cache[pe].length;ie<he;ie++)this.cache[pe].push(void 0);this.cache[pe].length=he}this.cache.length=ve},Pe.prototype.clear=function(){for(var ve=0;ve<this.cache.length;ve++)for(var he=0;he<this.cache[ve].length;he++)this.cache[ve][he]=void 0},Pe}();te.GridCache=fe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(a,y){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,b){E.__proto__=b}||function(E,b){for(var x in b)b.hasOwnProperty(x)&&(E[x]=b[x])})(a,y)},function(a,y){function E(){this.constructor=a}fe(a,y),a.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(te,"__esModule",{value:!0}),te.NoneCharAtlas=te.DynamicCharAtlas=te.getGlyphCacheKey=void 0;var ve=z(9),he=z(44),pe=z(27),ie=z(46),de=z(11),le=z(28),ue=z(10),se={css:"rgba(0, 0, 0, 0)",rgba:0};function me(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}te.getGlyphCacheKey=me;var re=function(a){function y(E,b){var x=a.call(this)||this;x._config=b,x._drawToCacheCount=0,x._glyphsWaitingOnBitmap=[],x._bitmapCommitTimeout=null,x._bitmap=null,x._cacheCanvas=E.createElement("canvas"),x._cacheCanvas.width=1024,x._cacheCanvas.height=1024,x._cacheCtx=le.throwIfFalsy(x._cacheCanvas.getContext("2d",{alpha:!0}));var ee=E.createElement("canvas");ee.width=x._config.scaledCharWidth,ee.height=x._config.scaledCharHeight,x._tmpCtx=le.throwIfFalsy(ee.getContext("2d",{alpha:x._config.allowTransparency})),x._width=Math.floor(1024/x._config.scaledCharWidth),x._height=Math.floor(1024/x._config.scaledCharHeight);var oe=x._width*x._height;return x._cacheMap=new ie.LRUMap(oe),x._cacheMap.prealloc(oe),x}return Pe(y,a),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.draw=function(E,b,x,ee){if(b.code===32)return!0;if(!this._canCache(b))return!1;var oe=me(b),ae=this._cacheMap.get(oe);if(ae!=null)return this._drawFromCache(E,ae,x,ee),!0;if(this._drawToCacheCount<100){var ce=void 0;ce=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var Se=this._drawToCache(b,ce);return this._cacheMap.set(oe,Se),this._drawFromCache(E,Se,x,ee),!0}return!1},y.prototype._canCache=function(E){return E.code<256},y.prototype._toCoordinateX=function(E){return E%this._width*this._config.scaledCharWidth},y.prototype._toCoordinateY=function(E){return Math.floor(E/this._width)*this._config.scaledCharHeight},y.prototype._drawFromCache=function(E,b,x,ee){if(!b.isEmpty){var oe=this._toCoordinateX(b.index),ae=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,oe,ae,this._config.scaledCharWidth,this._config.scaledCharHeight,x,ee,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:pe.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?se:E.bg===ve.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:E.bg<256?this._getColorFromAnsiIndex(E.bg):this._config.colors.background},y.prototype._getForegroundColor=function(E){return E.fg===ve.INVERTED_DEFAULT_COLOR?ue.color.opaque(this._config.colors.background):E.fg<256?this._getColorFromAnsiIndex(E.fg):this._config.colors.foreground},y.prototype._drawToCache=function(E,b){this._drawToCacheCount++,this._tmpCtx.save();var x=this._getBackgroundColor(E);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=x.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ee=E.bold?this._config.fontWeightBold:this._config.fontWeight,oe=E.italic?"italic":"";this._tmpCtx.font=oe+" "+ee+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(E).css,E.dim&&(this._tmpCtx.globalAlpha=ve.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var ae=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ce=!1;this._config.allowTransparency||(ce=function(we,Fe){for(var Me=!0,ut=Fe.rgba>>>24,Xe=Fe.rgba>>>16&255,mt=Fe.rgba>>>8&255,Ae=0;Ae<we.data.length;Ae+=4)we.data[Ae]===ut&&we.data[Ae+1]===Xe&&we.data[Ae+2]===mt?we.data[Ae+3]=0:Me=!1;return Me}(ae,x));var Se=this._toCoordinateX(b),_e=this._toCoordinateY(b);this._cacheCtx.putImageData(ae,Se,_e);var xe={index:b,isEmpty:ce,inBitmap:!1};return this._addGlyphToBitmap(xe),xe},y.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||de.isFirefox||de.isSafari||(this._glyphsWaitingOnBitmap.push(E),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},y.prototype._generateBitmap=function(){var E=this,b=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(x){E._bitmap=x;for(var ee=0;ee<b.length;ee++)b[ee].inBitmap=!0}),this._bitmapCommitTimeout=null},y}(he.BaseCharAtlas);te.DynamicCharAtlas=re;var ne=function(a){function y(E,b){return a.call(this)||this}return Pe(y,a),y.prototype.draw=function(E,b,x,ee){return!1},y}(he.BaseCharAtlas);te.NoneCharAtlas=ne},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseCharAtlas=void 0;var fe=function(){function Pe(){this._didWarmUp=!1}return Pe.prototype.dispose=function(){},Pe.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},Pe.prototype._doWarmUp=function(){},Pe.prototype.beginFrame=function(){},Pe}();te.BaseCharAtlas=fe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorContrastCache=void 0;var fe=function(){function Pe(){this._color={},this._rgba={}}return Pe.prototype.clear=function(){this._color={},this._rgba={}},Pe.prototype.setCss=function(ve,he,pe){this._rgba[ve]||(this._rgba[ve]={}),this._rgba[ve][he]=pe},Pe.prototype.getCss=function(ve,he){return this._rgba[ve]?this._rgba[ve][he]:void 0},Pe.prototype.setColor=function(ve,he,pe){this._color[ve]||(this._color[ve]={}),this._color[ve][he]=pe},Pe.prototype.getColor=function(ve,he){return this._color[ve]?this._color[ve][he]:void 0},Pe}();te.ColorContrastCache=fe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.LRUMap=void 0;var fe=function(){function Pe(ve){this.capacity=ve,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return Pe.prototype._unlinkNode=function(ve){var he=ve.prev,pe=ve.next;ve===this._head&&(this._head=pe),ve===this._tail&&(this._tail=he),he!==null&&(he.next=pe),pe!==null&&(pe.prev=he)},Pe.prototype._appendNode=function(ve){var he=this._tail;he!==null&&(he.next=ve),ve.prev=he,ve.next=null,this._tail=ve,this._head===null&&(this._head=ve)},Pe.prototype.prealloc=function(ve){for(var he=this._nodePool,pe=0;pe<ve;pe++)he.push({prev:null,next:null,key:null,value:null})},Pe.prototype.get=function(ve){var he=this._map[ve];return he!==void 0?(this._unlinkNode(he),this._appendNode(he),he.value):null},Pe.prototype.peekValue=function(ve){var he=this._map[ve];return he!==void 0?he.value:null},Pe.prototype.peek=function(){var ve=this._head;return ve===null?null:ve.value},Pe.prototype.set=function(ve,he){var pe=this._map[ve];if(pe!==void 0)pe=this._map[ve],this._unlinkNode(pe),pe.value=he;else if(this.size>=this.capacity)pe=this._head,this._unlinkNode(pe),delete this._map[pe.key],pe.key=ve,pe.value=he,this._map[ve]=pe;else{var ie=this._nodePool;ie.length>0?((pe=ie.pop()).key=ve,pe.value=he):pe={prev:null,next:null,key:ve,value:he},this._map[ve]=pe,this.size++}this._appendNode(pe)},Pe}();te.LRUMap=fe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(he,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,de){ie.__proto__=de}||function(ie,de){for(var le in de)de.hasOwnProperty(le)&&(ie[le]=de[le])})(he,pe)},function(he,pe){function ie(){this.constructor=he}fe(he,pe),he.prototype=pe===null?Object.create(pe):(ie.prototype=pe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionRenderLayer=void 0;var ve=function(he){function pe(ie,de,le,ue,se,me){var re=he.call(this,ie,"selection",de,!0,le,ue,se,me)||this;return re._clearState(),re}return Pe(pe,he),pe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},pe.prototype.resize=function(ie){he.prototype.resize.call(this,ie),this._clearState()},pe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},pe.prototype.onSelectionChanged=function(ie,de,le){if(this._didStateChange(ie,de,le,this._bufferService.buffer.ydisp))if(this._clearAll(),ie&&de){var ue=ie[1]-this._bufferService.buffer.ydisp,se=de[1]-this._bufferService.buffer.ydisp,me=Math.max(ue,0),re=Math.min(se,this._bufferService.rows-1);if(!(me>=this._bufferService.rows||re<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,le){var ne=ie[0],a=de[0]-ne,y=re-me+1;this._fillCells(ne,me,a,y)}else{ne=ue===me?ie[0]:0;var E=me===re?de[0]:this._bufferService.cols;this._fillCells(ne,me,E-ne,1);var b=Math.max(re-me-1,0);if(this._fillCells(0,me+1,this._bufferService.cols,b),me!==re){var x=se===re?de[0]:this._bufferService.cols;this._fillCells(0,re,x,1)}}this._state.start=[ie[0],ie[1]],this._state.end=[de[0],de[1]],this._state.columnSelectMode=le,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},pe.prototype._didStateChange=function(ie,de,le,ue){return!this._areCoordinatesEqual(ie,this._state.start)||!this._areCoordinatesEqual(de,this._state.end)||le!==this._state.columnSelectMode||ue!==this._state.ydisp},pe.prototype._areCoordinatesEqual=function(ie,de){return!(!ie||!de)&&ie[0]===de[0]&&ie[1]===de[1]},pe}(z(13).BaseRenderLayer);te.SelectionRenderLayer=ve},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(de,le){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,se){ue.__proto__=se}||function(ue,se){for(var me in se)se.hasOwnProperty(me)&&(ue[me]=se[me])})(de,le)},function(de,le){function ue(){this.constructor=de}fe(de,le),de.prototype=le===null?Object.create(le):(ue.prototype=le.prototype,new ue)});Object.defineProperty(te,"__esModule",{value:!0}),te.CursorRenderLayer=void 0;var ve=z(13),he=z(4),pe=function(de){function le(ue,se,me,re,ne,a,y,E,b){var x=de.call(this,ue,"cursor",se,!0,me,re,a,y)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new he.CellData,x._state={x:0,y:0,isFocused:!1,style:"",width:0},x._cursorRenderers={bar:x._renderBarCursor.bind(x),block:x._renderBlockCursor.bind(x),underline:x._renderUnderlineCursor.bind(x)},x}return Pe(le,de),le.prototype.resize=function(ue){de.prototype.resize.call(this,ue),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},le.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},le.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onOptionsChanged=function(){var ue,se=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ie(this._coreBrowserService.isFocused,function(){se._render(!0)})):((ue=this._cursorBlinkStateManager)===null||ue===void 0||ue.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype.onGridChanged=function(ue,se){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype._render=function(ue){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var se=this._bufferService.buffer.ybase+this._bufferService.buffer.y,me=se-this._bufferService.buffer.ydisp;if(me<0||me>=this._bufferService.rows)this._clearCursor();else{var re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(se).loadCell(re,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var ne=this._optionsService.options.cursorStyle;return ne&&ne!=="block"?this._cursorRenderers[ne](re,me,this._cell):this._renderBlurCursor(re,me,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=me,this._state.isFocused=!1,this._state.style=ne,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===re&&this._state.y===me&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](re,me,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=me,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},le.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},le.prototype._renderBarCursor=function(ue,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(ue,se,this._optionsService.options.cursorWidth),this._ctx.restore()},le.prototype._renderBlockCursor=function(ue,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(ue,se,me.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(me,ue,se),this._ctx.restore()},le.prototype._renderUnderlineCursor=function(ue,se,me){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(ue,se),this._ctx.restore()},le.prototype._renderBlurCursor=function(ue,se,me){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(ue,se,me.getWidth(),1),this._ctx.restore()},le}(ve.BaseRenderLayer);te.CursorRenderLayer=pe;var ie=function(){function de(le,ue){this._renderCallback=ue,this.isCursorVisible=!0,le&&this._restartInterval()}return Object.defineProperty(de.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),de.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},de.prototype.restartBlinkAnimation=function(){var le=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){le._renderCallback(),le._animationFrame=void 0})))},de.prototype._restartInterval=function(le){var ue=this;le===void 0&&(le=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(ue._animationTimeRestarted){var se=600-(Date.now()-ue._animationTimeRestarted);if(ue._animationTimeRestarted=void 0,se>0)return void ue._restartInterval(se)}ue.isCursorVisible=!1,ue._animationFrame=window.requestAnimationFrame(function(){ue._renderCallback(),ue._animationFrame=void 0}),ue._blinkInterval=window.setInterval(function(){if(ue._animationTimeRestarted){var me=600-(Date.now()-ue._animationTimeRestarted);return ue._animationTimeRestarted=void 0,void ue._restartInterval(me)}ue.isCursorVisible=!ue.isCursorVisible,ue._animationFrame=window.requestAnimationFrame(function(){ue._renderCallback(),ue._animationFrame=void 0})},600)},le)},de.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},de.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},de}()},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(de,le){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,se){ue.__proto__=se}||function(ue,se){for(var me in se)se.hasOwnProperty(me)&&(ue[me]=se[me])})(de,le)},function(de,le){function ue(){this.constructor=de}fe(de,le),de.prototype=le===null?Object.create(le):(ue.prototype=le.prototype,new ue)});Object.defineProperty(te,"__esModule",{value:!0}),te.LinkRenderLayer=void 0;var ve=z(13),he=z(9),pe=z(26),ie=function(de){function le(ue,se,me,re,ne,a,y,E){var b=de.call(this,ue,"link",se,!0,me,re,y,E)||this;return ne.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),ne.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),a.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),a.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),b}return Pe(le,de),le.prototype.resize=function(ue){de.prototype.resize.call(this,ue),this._state=void 0},le.prototype.reset=function(){this._clearCurrentLink()},le.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var ue=this._state.y2-this._state.y1-1;ue>0&&this._clearCells(0,this._state.y1+1,this._state.cols,ue),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},le.prototype._onShowLinkUnderline=function(ue){if(ue.fg===he.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:ue.fg&&pe.is256Color(ue.fg)?this._ctx.fillStyle=this._colors.ansi[ue.fg].css:this._ctx.fillStyle=this._colors.foreground.css,ue.y1===ue.y2)this._fillBottomLineAtCells(ue.x1,ue.y1,ue.x2-ue.x1);else{this._fillBottomLineAtCells(ue.x1,ue.y1,ue.cols-ue.x1);for(var se=ue.y1+1;se<ue.y2;se++)this._fillBottomLineAtCells(0,se,ue.cols);this._fillBottomLineAtCells(0,ue.y2,ue.x2)}this._state=ue},le.prototype._onHideLinkUnderline=function(ue){this._clearCurrentLink()},le}(ve.BaseRenderLayer);te.LinkRenderLayer=ie},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(de,le,ue,se){var me,re=arguments.length,ne=re<3?le:se===null?se=Object.getOwnPropertyDescriptor(le,ue):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,ue,se);else for(var a=de.length-1;a>=0;a--)(me=de[a])&&(ne=(re<3?me(ne):re>3?me(le,ue,ne):me(le,ue))||ne);return re>3&&ne&&Object.defineProperty(le,ue,ne),ne},Pe=this&&this.__param||function(de,le){return function(ue,se){le(ue,se,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZone=te.Linkifier=void 0;var ve=z(0),he=z(1),pe=function(){function de(le,ue,se){this._bufferService=le,this._logService=ue,this._unicodeService=se,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new ve.EventEmitter,this._onHideLinkUnderline=new ve.EventEmitter,this._onLinkTooltip=new ve.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(de.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),de.prototype.attachToDom=function(le,ue){this._element=le,this._mouseZoneManager=ue},de.prototype.linkifyRows=function(le,ue){var se=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=le,this._rowsToLinkify.end=ue):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,le),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,ue)),this._mouseZoneManager.clearAll(le,ue),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return se._linkifyRows()},de._timeBeforeLatency))},de.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var le=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var ue=le.ydisp+this._rowsToLinkify.start;if(!(ue>=le.lines.length)){for(var se=le.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,me=Math.ceil(2e3/this._bufferService.cols),re=this._bufferService.buffer.iterator(!1,ue,se,me,me);re.hasNext();)for(var ne=re.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(ne.range.first,ne.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},de.prototype.registerLinkMatcher=function(le,ue,se){if(se===void 0&&(se={}),!ue)throw new Error("handler must be defined");var me={id:this._nextLinkMatcherId++,regex:le,handler:ue,matchIndex:se.matchIndex,validationCallback:se.validationCallback,hoverTooltipCallback:se.tooltipCallback,hoverLeaveCallback:se.leaveCallback,willLinkActivate:se.willLinkActivate,priority:se.priority||0};return this._addLinkMatcherToList(me),me.id},de.prototype._addLinkMatcherToList=function(le){if(this._linkMatchers.length!==0){for(var ue=this._linkMatchers.length-1;ue>=0;ue--)if(le.priority<=this._linkMatchers[ue].priority)return void this._linkMatchers.splice(ue+1,0,le);this._linkMatchers.splice(0,0,le)}else this._linkMatchers.push(le)},de.prototype.deregisterLinkMatcher=function(le){for(var ue=0;ue<this._linkMatchers.length;ue++)if(this._linkMatchers[ue].id===le)return this._linkMatchers.splice(ue,1),!0;return!1},de.prototype._doLinkifyRow=function(le,ue,se){for(var me,re=this,ne=new RegExp(se.regex.source,(se.regex.flags||"")+"g"),a=-1,y=function(){var b=me[typeof se.matchIndex!="number"?0:se.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",me,se),"break";if(a=ue.indexOf(b,a+1),ne.lastIndex=a+b.length,a<0)return"break";var x=E._bufferService.buffer.stringIndexToBufferIndex(le,a);if(x[0]<0)return"break";var ee=E._bufferService.buffer.lines.get(x[0]);if(!ee)return"break";var oe=ee.getFg(x[1]),ae=oe?oe>>9&511:void 0;se.validationCallback?se.validationCallback(b,function(ce){re._rowsTimeoutId||ce&&re._addLink(x[1],x[0]-re._bufferService.buffer.ydisp,b,se,ae)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,se,ae)},E=this;(me=ne.exec(ue))!==null&&y()!=="break";);},de.prototype._addLink=function(le,ue,se,me,re){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(se),y=le%this._bufferService.cols,E=ue+Math.floor(le/this._bufferService.cols),b=(y+a)%this._bufferService.cols,x=E+Math.floor((y+a)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,x--),this._mouseZoneManager.add(new ie(y+1,E+1,b+1,x+1,function(ee){if(me.handler)return me.handler(ee,se);var oe=window.open();oe?(oe.opener=null,oe.location.href=se):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,re)),ne._element.classList.add("xterm-cursor-pointer")},function(ee){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,E,b,x,re)),me.hoverTooltipCallback&&me.hoverTooltipCallback(ee,se,{start:{x:y,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,re)),ne._element.classList.remove("xterm-cursor-pointer"),me.hoverLeaveCallback&&me.hoverLeaveCallback()},function(ee){return!me.willLinkActivate||me.willLinkActivate(ee,se)}))}},de.prototype._createLinkHoverEvent=function(le,ue,se,me,re){return{x1:le,y1:ue,x2:se,y2:me,cols:this._bufferService.cols,fg:re}},de._timeBeforeLatency=200,de=fe([Pe(0,he.IBufferService),Pe(1,he.ILogService),Pe(2,he.IUnicodeService)],de)}();te.Linkifier=pe;var ie=function(de,le,ue,se,me,re,ne,a,y){this.x1=de,this.y1=le,this.x2=ue,this.y2=se,this.clickCallback=me,this.hoverCallback=re,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};te.MouseZone=ie},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var ae in oe)oe.hasOwnProperty(ae)&&(ee[ae]=oe[ae])})(b,x)},function(b,x){function ee(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(ee.prototype=x.prototype,new ee)}),ve=this&&this.__decorate||function(b,x,ee,oe){var ae,ce=arguments.length,Se=ce<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,ee):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Se=Reflect.decorate(b,x,ee,oe);else for(var _e=b.length-1;_e>=0;_e--)(ae=b[_e])&&(Se=(ce<3?ae(Se):ce>3?ae(x,ee,Se):ae(x,ee))||Se);return ce>3&&Se&&Object.defineProperty(x,ee,Se),Se},he=this&&this.__param||function(b,x){return function(ee,oe){x(ee,oe,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionService=void 0;var pe=z(11),ie=z(52),de=z(4),le=z(0),ue=z(5),se=z(1),me=z(30),re=z(53),ne=z(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function x(ee,oe,ae,ce,Se,_e,xe){var we=b.call(this)||this;return we._element=ee,we._screenElement=oe,we._bufferService=ae,we._coreService=ce,we._mouseService=Se,we._optionsService=_e,we._renderService=xe,we._dragScrollAmount=0,we._enabled=!0,we._workCell=new de.CellData,we._mouseDownTimeStamp=0,we._onLinuxMouseSelection=we.register(new le.EventEmitter),we._onRedrawRequest=we.register(new le.EventEmitter),we._onSelectionChange=we.register(new le.EventEmitter),we._onRequestScrollLines=we.register(new le.EventEmitter),we._mouseMoveListener=function(Fe){return we._onMouseMove(Fe)},we._mouseUpListener=function(Fe){return we._onMouseUp(Fe)},we._coreService.onUserInput(function(){we.hasSelection&&we.clearSelection()}),we._trimListener=we._bufferService.buffer.lines.onTrim(function(Fe){return we._onTrim(Fe)}),we.register(we._bufferService.buffers.onBufferActivate(function(Fe){return we._onBufferActivate(Fe)})),we.enable(),we._model=new ie.SelectionModel(we._bufferService),we._activeSelectionMode=0,we}return Pe(x,b),Object.defineProperty(x.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._removeMouseDownListeners()},x.prototype.reset=function(){this.clearSelection()},x.prototype.disable=function(){this.clearSelection(),this._enabled=!1},x.prototype.enable=function(){this._enabled=!0},Object.defineProperty(x.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasSelection",{get:function(){var ee=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;return!(!ee||!oe)&&(ee[0]!==oe[0]||ee[1]!==oe[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var ee=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;if(!ee||!oe)return"";var ae=this._bufferService.buffer,ce=[];if(this._activeSelectionMode===3){if(ee[0]===oe[0])return"";for(var Se=ee[1];Se<=oe[1];Se++){var _e=ae.translateBufferLineToString(Se,!0,ee[0],oe[0]);ce.push(_e)}}else{var xe=ee[1]===oe[1]?oe[0]:void 0;for(ce.push(ae.translateBufferLineToString(ee[1],!0,ee[0],xe)),Se=ee[1]+1;Se<=oe[1]-1;Se++){var we=ae.lines.get(Se);_e=ae.translateBufferLineToString(Se,!0),we&&we.isWrapped?ce[ce.length-1]+=_e:ce.push(_e)}ee[1]!==oe[1]&&(we=ae.lines.get(oe[1]),_e=ae.translateBufferLineToString(oe[1],!0,0,oe[0]),we&&we.isWrapped?ce[ce.length-1]+=_e:ce.push(_e))}return ce.map(function(Fe){return Fe.replace(y," ")}).join(pe.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),x.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},x.prototype.refresh=function(ee){var oe=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return oe._refresh()})),pe.isLinux&&ee&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},x.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},x.prototype.isClickInSelection=function(ee){var oe=this._getMouseBufferCoords(ee),ae=this._model.finalSelectionStart,ce=this._model.finalSelectionEnd;return!!(ae&&ce&&oe)&&this._areCoordsInSelection(oe,ae,ce)},x.prototype._areCoordsInSelection=function(ee,oe,ae){return ee[1]>oe[1]&&ee[1]<ae[1]||oe[1]===ae[1]&&ee[1]===oe[1]&&ee[0]>=oe[0]&&ee[0]<ae[0]||oe[1]<ae[1]&&ee[1]===ae[1]&&ee[0]<ae[0]||oe[1]<ae[1]&&ee[1]===oe[1]&&ee[0]>=oe[0]},x.prototype.selectWordAtCursor=function(ee){var oe=this._getMouseBufferCoords(ee);oe&&(this._selectWordAt(oe,!1),this._model.selectionEnd=void 0,this.refresh(!0))},x.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},x.prototype.selectLines=function(ee,oe){this._model.clearSelection(),ee=Math.max(ee,0),oe=Math.min(oe,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ee],this._model.selectionEnd=[this._bufferService.cols,oe],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(ee){this._model.onTrim(ee)&&this.refresh()},x.prototype._getMouseBufferCoords=function(ee){var oe=this._mouseService.getCoords(ee,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(oe)return oe[0]--,oe[1]--,oe[1]+=this._bufferService.buffer.ydisp,oe},x.prototype._getMouseEventScrollAmount=function(ee){var oe=me.getCoordsRelativeToElement(ee,this._screenElement)[1],ae=this._renderService.dimensions.canvasHeight;return oe>=0&&oe<=ae?0:(oe>ae&&(oe-=ae),oe=Math.min(Math.max(oe,-50),50),(oe/=50)/Math.abs(oe)+Math.round(14*oe))},x.prototype.shouldForceSelection=function(ee){return pe.isMac?ee.altKey&&this._optionsService.options.macOptionClickForcesSelection:ee.shiftKey},x.prototype.onMouseDown=function(ee){if(this._mouseDownTimeStamp=ee.timeStamp,(ee.button!==2||!this.hasSelection)&&ee.button===0){if(!this._enabled){if(!this.shouldForceSelection(ee))return;ee.stopPropagation()}ee.preventDefault(),this._dragScrollAmount=0,this._enabled&&ee.shiftKey?this._onIncrementalClick(ee):ee.detail===1?this._onSingleClick(ee):ee.detail===2?this._onDoubleClick(ee):ee.detail===3&&this._onTripleClick(ee),this._addMouseDownListeners(),this.refresh(!0)}},x.prototype._addMouseDownListeners=function(){var ee=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return ee._dragScroll()},50)},x.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},x.prototype._onIncrementalClick=function(ee){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ee))},x.prototype._onSingleClick=function(ee){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(ee)?3:0,this._model.selectionStart=this._getMouseBufferCoords(ee),this._model.selectionStart){this._model.selectionEnd=void 0;var oe=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);oe&&oe.length!==this._model.selectionStart[0]&&oe.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(ee){var oe=this._getMouseBufferCoords(ee);oe&&(this._activeSelectionMode=1,this._selectWordAt(oe,!0))},x.prototype._onTripleClick=function(ee){var oe=this._getMouseBufferCoords(ee);oe&&(this._activeSelectionMode=2,this._selectLineAt(oe[1]))},x.prototype.shouldColumnSelect=function(ee){return ee.altKey&&!(pe.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(ee){if(ee.stopImmediatePropagation(),this._model.selectionStart){var oe=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(ee),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(ee),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ae=this._bufferService.buffer;if(this._model.selectionEnd[1]<ae.lines.length){var ce=ae.lines.get(this._model.selectionEnd[1]);ce&&ce.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}oe&&oe[0]===this._model.selectionEnd[0]&&oe[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},x.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var ee=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(ee.ydisp+this._bufferService.rows,ee.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=ee.ydisp),this.refresh()}},x.prototype._onMouseUp=function(ee){var oe=ee.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&oe<500&&ee.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ae=this._mouseService.getCoords(ee,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ae&&ae[0]!==void 0&&ae[1]!==void 0){var ce=re.moveToCellSequence(ae[0]-1,ae[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ce,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(ee){var oe=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ee.activeBuffer.lines.onTrim(function(ae){return oe._onTrim(ae)})},x.prototype._convertViewportColToCharacterIndex=function(ee,oe){for(var ae=oe[0],ce=0;oe[0]>=ce;ce++){var Se=ee.loadCell(ce,this._workCell).getChars().length;this._workCell.getWidth()===0?ae--:Se>1&&oe[0]!==ce&&(ae+=Se-1)}return ae},x.prototype.setSelection=function(ee,oe,ae){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ee,oe],this._model.selectionStartLength=ae,this.refresh()},x.prototype._getWordAt=function(ee,oe,ae,ce){if(ae===void 0&&(ae=!0),ce===void 0&&(ce=!0),!(ee[0]>=this._bufferService.cols)){var Se=this._bufferService.buffer,_e=Se.lines.get(ee[1]);if(_e){var xe=Se.translateBufferLineToString(ee[1],!1),we=this._convertViewportColToCharacterIndex(_e,ee),Fe=we,Me=ee[0]-we,ut=0,Xe=0,mt=0,Ae=0;if(xe.charAt(we)===" "){for(;we>0&&xe.charAt(we-1)===" ";)we--;for(;Fe<xe.length&&xe.charAt(Fe+1)===" ";)Fe++}else{var De=ee[0],Be=ee[0];_e.getWidth(De)===0&&(ut++,De--),_e.getWidth(Be)===2&&(Xe++,Be++);var nt=_e.getString(Be).length;for(nt>1&&(Ae+=nt-1,Fe+=nt-1);De>0&&we>0&&!this._isCharWordSeparator(_e.loadCell(De-1,this._workCell));){_e.loadCell(De-1,this._workCell);var Ke=this._workCell.getChars().length;this._workCell.getWidth()===0?(ut++,De--):Ke>1&&(mt+=Ke-1,we-=Ke-1),we--,De--}for(;Be<_e.length&&Fe+1<xe.length&&!this._isCharWordSeparator(_e.loadCell(Be+1,this._workCell));){_e.loadCell(Be+1,this._workCell);var Et=this._workCell.getChars().length;this._workCell.getWidth()===2?(Xe++,Be++):Et>1&&(Ae+=Et-1,Fe+=Et-1),Fe++,Be++}}Fe++;var Ct=we+Me-ut+mt,nn=Math.min(this._bufferService.cols,Fe-we+ut+Xe-mt-Ae);if(oe||xe.slice(we,Fe).trim()!==""){if(ae&&Ct===0&&_e.getCodePoint(0)!==32){var on=Se.lines.get(ee[1]-1);if(on&&_e.isWrapped&&on.getCodePoint(this._bufferService.cols-1)!==32){var it=this._getWordAt([this._bufferService.cols-1,ee[1]-1],!1,!0,!1);if(it){var lt=this._bufferService.cols-it.start;Ct-=lt,nn+=lt}}}if(ce&&Ct+nn===this._bufferService.cols&&_e.getCodePoint(this._bufferService.cols-1)!==32){var xt=Se.lines.get(ee[1]+1);if(xt&&xt.isWrapped&&xt.getCodePoint(0)!==32){var Jt=this._getWordAt([0,ee[1]+1],!1,!1,!0);Jt&&(nn+=Jt.length)}}return{start:Ct,length:nn}}}}},x.prototype._selectWordAt=function(ee,oe){var ae=this._getWordAt(ee,oe);if(ae){for(;ae.start<0;)ae.start+=this._bufferService.cols,ee[1]--;this._model.selectionStart=[ae.start,ee[1]],this._model.selectionStartLength=ae.length}},x.prototype._selectToWordAt=function(ee){var oe=this._getWordAt(ee,!0);if(oe){for(var ae=ee[1];oe.start<0;)oe.start+=this._bufferService.cols,ae--;if(!this._model.areSelectionValuesReversed())for(;oe.start+oe.length>this._bufferService.cols;)oe.length-=this._bufferService.cols,ae++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?oe.start:oe.start+oe.length,ae]}},x.prototype._isCharWordSeparator=function(ee){return ee.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(ee.getChars())>=0},x.prototype._selectLineAt=function(ee){var oe=this._bufferService.buffer.getWrappedRangeForLine(ee);this._model.selectionStart=[0,oe.first],this._model.selectionEnd=[this._bufferService.cols,oe.last],this._model.selectionStartLength=0},x=ve([he(2,se.IBufferService),he(3,se.ICoreService),he(4,ue.IMouseService),he(5,se.IOptionsService),he(6,ue.IRenderService)],x)}(ne.Disposable);te.SelectionService=E},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionModel=void 0;var fe=function(){function Pe(ve){this._bufferService=ve,this.isSelectAllActive=!1,this.selectionStartLength=0}return Pe.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(Pe.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var ve=this.selectionStart[0]+this.selectionStartLength;return ve>this._bufferService.cols?[ve%this._bufferService.cols,this.selectionStart[1]+Math.floor(ve/this._bufferService.cols)]:[ve,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),Pe.prototype.areSelectionValuesReversed=function(){var ve=this.selectionStart,he=this.selectionEnd;return!(!ve||!he)&&(ve[1]>he[1]||ve[1]===he[1]&&ve[0]>he[0])},Pe.prototype.onTrim=function(ve){return this.selectionStart&&(this.selectionStart[1]-=ve),this.selectionEnd&&(this.selectionEnd[1]-=ve),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},Pe}();te.SelectionModel=fe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.moveToCellSequence=void 0;var fe=z(12);function Pe(le,ue,se,me){var re=le-ve(se,le),ne=ue-ve(se,ue);return de(Math.abs(re-ne)-function(a,y,E){for(var b=0,x=a-ve(E,a),ee=y-ve(E,y),oe=0;oe<Math.abs(x-ee);oe++){var ae=he(a,y)==="A"?-1:1,ce=E.buffer.lines.get(x+ae*oe);ce&&ce.isWrapped&&b++}return b}(le,ue,se),ie(he(le,ue),me))}function ve(le,ue){for(var se=0,me=le.buffer.lines.get(ue),re=me&&me.isWrapped;re&&ue>=0&&ue<le.rows;)se++,re=(me=le.buffer.lines.get(--ue))&&me.isWrapped;return se}function he(le,ue){return le>ue?"A":"B"}function pe(le,ue,se,me,re,ne){for(var a=le,y=ue,E="";a!==se||y!==me;)a+=re?1:-1,re&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,le,a),a=0,le=0,y++):!re&&a<0&&(E+=ne.buffer.translateBufferLineToString(y,!1,0,le+1),le=a=ne.cols-1,y--);return E+ne.buffer.translateBufferLineToString(y,!1,le,a)}function ie(le,ue){var se=ue?"O":"[";return fe.C0.ESC+se+le}function de(le,ue){le=Math.floor(le);for(var se="",me=0;me<le;me++)se+=ue;return se}te.moveToCellSequence=function(le,ue,se,me){var re,ne=se.buffer.x,a=se.buffer.y;if(!se.buffer.hasScrollback)return function(E,b,x,ee,oe,ae){return Pe(b,ee,oe,ae).length===0?"":de(pe(E,b,E,b-ve(oe,b),!1,oe).length,ie("D",ae))}(ne,a,0,ue,se,me)+Pe(a,ue,se,me)+function(E,b,x,ee,oe,ae){var ce;ce=Pe(b,ee,oe,ae).length>0?ee-ve(oe,ee):b;var Se=ee,_e=function(xe,we,Fe,Me,ut,Xe){var mt;return mt=Pe(Fe,Me,ut,Xe).length>0?Me-ve(ut,Me):we,xe<Fe&&mt<=Me||xe>=Fe&&mt<Me?"C":"D"}(E,b,x,ee,oe,ae);return de(pe(E,ce,x,Se,_e==="C",oe).length,ie(_e,ae))}(ne,a,le,ue,se,me);if(a===ue)return re=ne>le?"D":"C",de(Math.abs(ne-le),ie(re,me));re=a>ue?"D":"C";var y=Math.abs(a-ue);return de(function(E,b){return b.cols-E}(a>ue?le:ne,se)+(y-1)*se.cols+1+((a>ue?ne:le)-1),ie(re,me))}},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(pe,ie,de,le){var ue,se=arguments.length,me=se<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(pe,ie,de,le);else for(var re=pe.length-1;re>=0;re--)(ue=pe[re])&&(me=(se<3?ue(me):se>3?ue(ie,de,me):ue(ie,de))||me);return se>3&&me&&Object.defineProperty(ie,de,me),me},Pe=this&&this.__param||function(pe,ie){return function(de,le){ie(de,le,pe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SoundService=void 0;var ve=z(1),he=function(){function pe(ie){this._optionsService=ie}return Object.defineProperty(pe,"audioContext",{get:function(){if(!pe._audioContext){var ie=window.AudioContext||window.webkitAudioContext;if(!ie)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;pe._audioContext=new ie}return pe._audioContext},enumerable:!1,configurable:!0}),pe.prototype.playBellSound=function(){var ie=pe.audioContext;if(ie){var de=ie.createBufferSource();ie.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(le){de.buffer=le,de.connect(ie.destination),de.start(0)})}},pe.prototype._base64ToArrayBuffer=function(ie){for(var de=window.atob(ie),le=de.length,ue=new Uint8Array(le),se=0;se<le;se++)ue[se]=de.charCodeAt(se);return ue.buffer},pe.prototype._removeMimeType=function(ie){return ie.split(",")[1]},pe=fe([Pe(0,ve.IOptionsService)],pe)}();te.SoundService=he},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(se,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}fe(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},he=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZoneManager=void 0;var pe=z(2),ie=z(7),de=z(5),le=z(1),ue=function(se){function me(re,ne,a,y,E,b){var x=se.call(this)||this;return x._element=re,x._screenElement=ne,x._bufferService=a,x._mouseService=y,x._selectionService=E,x._optionsService=b,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(ie.addDisposableDomListener(x._element,"mousedown",function(ee){return x._onMouseDown(ee)})),x._mouseMoveListener=function(ee){return x._onMouseMove(ee)},x._mouseLeaveListener=function(ee){return x._onMouseLeave(ee)},x._clickListener=function(ee){return x._onClick(ee)},x}return Pe(me,se),me.prototype.dispose=function(){se.prototype.dispose.call(this),this._deactivate()},me.prototype.add=function(re){this._zones.push(re),this._zones.length===1&&this._activate()},me.prototype.clearAll=function(re,ne){if(this._zones.length!==0){re&&ne||(re=0,ne=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>re&&y.y1<=ne+1||y.y2>re&&y.y2<=ne+1||y.y1<re&&y.y2>ne+1)&&(this._currentZone&&this._currentZone===y&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(a--,1))}this._zones.length===0&&this._deactivate()}},me.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},me.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},me.prototype._onMouseMove=function(re){this._lastHoverCoords[0]===re.pageX&&this._lastHoverCoords[1]===re.pageY||(this._onHover(re),this._lastHoverCoords=[re.pageX,re.pageY])},me.prototype._onHover=function(re){var ne=this,a=this._findZoneEventAt(re);a!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),a&&(this._currentZone=a,a.hoverCallback&&a.hoverCallback(re),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(re)},this._optionsService.options.linkTooltipHoverDuration)))},me.prototype._onTooltip=function(re){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(re);ne&&ne.tooltipCallback&&ne.tooltipCallback(re)},me.prototype._onMouseDown=function(re){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(re);ne!=null&&ne.willLinkActivate(re)&&(re.preventDefault(),re.stopImmediatePropagation())}},me.prototype._onMouseLeave=function(re){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},me.prototype._onClick=function(re){var ne=this._findZoneEventAt(re),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(re),re.preventDefault(),re.stopImmediatePropagation())},me.prototype._getSelectionLength=function(){var re=this._selectionService.selectionText;return re?re.length:0},me.prototype._findZoneEventAt=function(re){var ne=this._mouseService.getCoords(re,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var a=ne[0],y=ne[1],E=0;E<this._zones.length;E++){var b=this._zones[E];if(b.y1===b.y2){if(y===b.y1&&a>=b.x1&&a<b.x2)return b}else if(y===b.y1&&a>=b.x1||y===b.y2&&a<b.x2||y>b.y1&&y<b.y2)return b}},me=ve([he(2,le.IBufferService),he(3,de.IMouseService),he(4,de.ISelectionService),he(5,le.IOptionsService)],me)}(pe.Disposable);te.MouseZoneManager=ue},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(me,re){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,a){ne.__proto__=a}||function(ne,a){for(var y in a)a.hasOwnProperty(y)&&(ne[y]=a[y])})(me,re)},function(me,re){function ne(){this.constructor=me}fe(me,re),me.prototype=re===null?Object.create(re):(ne.prototype=re.prototype,new ne)});Object.defineProperty(te,"__esModule",{value:!0}),te.AccessibilityManager=void 0;var ve=z(18),he=z(11),pe=z(31),ie=z(7),de=z(2),le=z(32),ue=z(17),se=function(me){function re(ne,a){var y=me.call(this)||this;y._terminal=ne,y._renderService=a,y._liveRegionLineCount=0,y._charsToConsume=[],y._charsToAnnounce="",y._accessibilityTreeRoot=document.createElement("div"),y._accessibilityTreeRoot.classList.add("xterm-accessibility"),y._rowContainer=document.createElement("div"),y._rowContainer.classList.add("xterm-accessibility-tree"),y._rowContainer.setAttribute("role","list"),y._rowElements=[];for(var E=0;E<y._terminal.rows;E++)y._rowElements[E]=y._createAccessibilityTreeNode(),y._rowContainer.appendChild(y._rowElements[E]);if(y._topBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,0)},y._bottomBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,1)},y._rowElements[0].addEventListener("focus",y._topBoundaryFocusListener),y._rowElements[y._rowElements.length-1].addEventListener("focus",y._bottomBoundaryFocusListener),y._refreshRowsDimensions(),y._accessibilityTreeRoot.appendChild(y._rowContainer),y._renderRowsDebouncer=new pe.RenderDebouncer(y._renderRows.bind(y)),y._refreshRows(),y._liveRegion=document.createElement("div"),y._liveRegion.classList.add("live-region"),y._liveRegion.setAttribute("aria-live","assertive"),y._accessibilityTreeRoot.appendChild(y._liveRegion),!y._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return y._terminal.element.insertAdjacentElement("afterbegin",y._accessibilityTreeRoot),y.register(y._renderRowsDebouncer),y.register(y._terminal.onResize(function(b){return y._onResize(b.rows)})),y.register(y._terminal.onRender(function(b){return y._refreshRows(b.start,b.end)})),y.register(y._terminal.onScroll(function(){return y._refreshRows()})),y.register(y._terminal.onA11yChar(function(b){return y._onChar(b)})),y.register(y._terminal.onLineFeed(function(){return y._onChar(`
`)})),y.register(y._terminal.onA11yTab(function(b){return y._onTab(b)})),y.register(y._terminal.onKey(function(b){return y._onKey(b.key)})),y.register(y._terminal.onBlur(function(){return y._clearLiveRegion()})),y.register(y._renderService.onDimensionsChange(function(){return y._refreshRowsDimensions()})),y._screenDprMonitor=new le.ScreenDprMonitor,y.register(y._screenDprMonitor),y._screenDprMonitor.setListener(function(){return y._refreshRowsDimensions()}),y.register(ie.addDisposableDomListener(window,"resize",function(){return y._refreshRowsDimensions()})),y}return Pe(re,me),re.prototype.dispose=function(){me.prototype.dispose.call(this),ue.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},re.prototype._onBoundaryFocus=function(ne,a){var y=ne.target,E=this._rowElements[a===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")!==(a===0?"1":""+this._terminal.buffer.lines.length)&&ne.relatedTarget===E){var b,x;if(a===0?(b=y,x=this._rowElements.pop(),this._rowContainer.removeChild(x)):(b=this._rowElements.shift(),x=y,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),x.removeEventListener("focus",this._bottomBoundaryFocusListener),a===0){var ee=this._createAccessibilityTreeNode();this._rowElements.unshift(ee),this._rowContainer.insertAdjacentElement("afterbegin",ee)}else ee=this._createAccessibilityTreeNode(),this._rowElements.push(ee),this._rowContainer.appendChild(ee);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),ne.preventDefault(),ne.stopImmediatePropagation()}},re.prototype._onResize=function(ne){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>ne;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},re.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},re.prototype._onTab=function(ne){for(var a=0;a<ne;a++)this._onChar(" ")},re.prototype._onChar=function(ne){var a=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==ne&&(this._charsToAnnounce+=ne):this._charsToAnnounce+=ne,ne===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=ve.tooMuchOutput)),he.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},re.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,he.isMac&&ue.removeElementFromParent(this._liveRegion)},re.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},re.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},re.prototype._renderRows=function(ne,a){for(var y=this._terminal.buffer,E=y.lines.length.toString(),b=ne;b<=a;b++){var x=y.translateBufferLineToString(y.ydisp+b,!0),ee=(y.ydisp+b+1).toString(),oe=this._rowElements[b];oe&&(x.length===0?oe.innerHTML="&nbsp;":oe.textContent=x,oe.setAttribute("aria-posinset",ee),oe.setAttribute("aria-setsize",E))}this._announceCharacters()},re.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var ne=0;ne<this._terminal.rows;ne++)this._refreshRowDimensions(this._rowElements[ne])}},re.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},re.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},re}(de.Disposable);te.AccessibilityManager=se},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(y,E){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var ee in x)x.hasOwnProperty(ee)&&(b[ee]=x[ee])})(y,E)},function(y,E){function b(){this.constructor=y}fe(y,E),y.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),ve=this&&this.__decorate||function(y,E,b,x){var ee,oe=arguments.length,ae=oe<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ae=Reflect.decorate(y,E,b,x);else for(var ce=y.length-1;ce>=0;ce--)(ee=y[ce])&&(ae=(oe<3?ee(ae):oe>3?ee(E,b,ae):ee(E,b))||ae);return oe>3&&ae&&Object.defineProperty(E,b,ae),ae},he=this&&this.__param||function(y,E){return function(b,x){E(b,x,y)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DomRenderer=void 0;var pe=z(58),ie=z(9),de=z(2),le=z(5),ue=z(1),se=z(0),me=z(10),re=z(17),ne=1,a=function(y){function E(b,x,ee,oe,ae,ce,Se,_e,xe){var we=y.call(this)||this;return we._colors=b,we._element=x,we._screenElement=ee,we._viewportElement=oe,we._linkifier=ae,we._linkifier2=ce,we._charSizeService=Se,we._optionsService=_e,we._bufferService=xe,we._terminalClass=ne++,we._rowElements=[],we._rowContainer=document.createElement("div"),we._rowContainer.classList.add("xterm-rows"),we._rowContainer.style.lineHeight="normal",we._rowContainer.setAttribute("aria-hidden","true"),we._refreshRowElements(we._bufferService.cols,we._bufferService.rows),we._selectionContainer=document.createElement("div"),we._selectionContainer.classList.add("xterm-selection"),we._selectionContainer.setAttribute("aria-hidden","true"),we.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},we._updateDimensions(),we._injectCss(),we._rowFactory=new pe.DomRendererRowFactory(document,we._optionsService,we._colors),we._element.classList.add("xterm-dom-renderer-owner-"+we._terminalClass),we._screenElement.appendChild(we._rowContainer),we._screenElement.appendChild(we._selectionContainer),we._linkifier.onShowLinkUnderline(function(Fe){return we._onLinkHover(Fe)}),we._linkifier.onHideLinkUnderline(function(Fe){return we._onLinkLeave(Fe)}),we._linkifier2.onShowLinkUnderline(function(Fe){return we._onLinkHover(Fe)}),we._linkifier2.onHideLinkUnderline(function(Fe){return we._onLinkLeave(Fe)}),we}return Pe(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new se.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),re.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.prototype.dispose.call(this)},E.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var b=0,x=this._rowElements;b<x.length;b++){var ee=x[b];ee.style.width=this.dimensions.canvasWidth+"px",ee.style.height=this.dimensions.actualCellHeight+"px",ee.style.lineHeight=this.dimensions.actualCellHeight+"px",ee.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var oe=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=oe,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},E.prototype.setColors=function(b){this._colors=b,this._injectCss()},E.prototype._injectCss=function(){var b=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var x=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";x+=this._terminalSelector+" span:not(."+pe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+pe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+pe.ITALIC_CLASS+" { font-style: italic;}",x+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",x+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",x+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+":not(."+pe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",x+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(ee,oe){x+=b._terminalSelector+" .xterm-fg-"+oe+" { color: "+ee.css+"; }"+b._terminalSelector+" .xterm-bg-"+oe+" { background-color: "+ee.css+"; }"}),x+=this._terminalSelector+" .xterm-fg-"+ie.INVERTED_DEFAULT_COLOR+" { color: "+me.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+ie.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=x},E.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},E.prototype._refreshRowElements=function(b,x){for(var ee=this._rowElements.length;ee<=x;ee++){var oe=document.createElement("div");this._rowContainer.appendChild(oe),this._rowElements.push(oe)}for(;this._rowElements.length>x;)this._rowContainer.removeChild(this._rowElements.pop())},E.prototype.onResize=function(b,x){this._refreshRowElements(b,x),this._updateDimensions()},E.prototype.onCharSizeChanged=function(){this._updateDimensions()},E.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},E.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},E.prototype.onSelectionChanged=function(b,x,ee){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&x){var oe=b[1]-this._bufferService.buffer.ydisp,ae=x[1]-this._bufferService.buffer.ydisp,ce=Math.max(oe,0),Se=Math.min(ae,this._bufferService.rows-1);if(!(ce>=this._bufferService.rows||Se<0)){var _e=document.createDocumentFragment();if(ee)_e.appendChild(this._createSelectionElement(ce,b[0],x[0],Se-ce+1));else{var xe=oe===ce?b[0]:0,we=ce===Se?x[0]:this._bufferService.cols;_e.appendChild(this._createSelectionElement(ce,xe,we));var Fe=Se-ce-1;if(_e.appendChild(this._createSelectionElement(ce+1,0,this._bufferService.cols,Fe)),ce!==Se){var Me=ae===Se?x[0]:this._bufferService.cols;_e.appendChild(this._createSelectionElement(Se,0,Me))}}this._selectionContainer.appendChild(_e)}}},E.prototype._createSelectionElement=function(b,x,ee,oe){oe===void 0&&(oe=1);var ae=document.createElement("div");return ae.style.height=oe*this.dimensions.actualCellHeight+"px",ae.style.top=b*this.dimensions.actualCellHeight+"px",ae.style.left=x*this.dimensions.actualCellWidth+"px",ae.style.width=this.dimensions.actualCellWidth*(ee-x)+"px",ae},E.prototype.onCursorMove=function(){},E.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},E.prototype.clear=function(){for(var b=0,x=this._rowElements;b<x.length;b++)x[b].innerHTML=""},E.prototype.renderRows=function(b,x){for(var ee=this._bufferService.buffer.ybase+this._bufferService.buffer.y,oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),ae=this._optionsService.options.cursorBlink,ce=b;ce<=x;ce++){var Se=this._rowElements[ce];Se.innerHTML="";var _e=ce+this._bufferService.buffer.ydisp,xe=this._bufferService.buffer.lines.get(_e),we=this._optionsService.options.cursorStyle;Se.appendChild(this._rowFactory.createRow(xe,_e===ee,we,oe,ae,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(E.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),E.prototype.registerCharacterJoiner=function(b){return-1},E.prototype.deregisterCharacterJoiner=function(b){return!1},E.prototype._onLinkHover=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)},E.prototype._onLinkLeave=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)},E.prototype._setCellUnderline=function(b,x,ee,oe,ae,ce){for(;b!==x||ee!==oe;){var Se=this._rowElements[ee];if(!Se)return;var _e=Se.children[b];_e&&(_e.style.textDecoration=ce?"underline":"none"),++b>=ae&&(b=0,ee++)}},E=ve([he(6,le.ICharSizeService),he(7,ue.IOptionsService),he(8,ue.IBufferService)],E)}(de.Disposable);te.DomRenderer=a},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DomRendererRowFactory=te.CURSOR_STYLE_UNDERLINE_CLASS=te.CURSOR_STYLE_BAR_CLASS=te.CURSOR_STYLE_BLOCK_CLASS=te.CURSOR_BLINK_CLASS=te.CURSOR_CLASS=te.UNDERLINE_CLASS=te.ITALIC_CLASS=te.DIM_CLASS=te.BOLD_CLASS=void 0;var fe=z(9),Pe=z(3),ve=z(4),he=z(10);te.BOLD_CLASS="xterm-bold",te.DIM_CLASS="xterm-dim",te.ITALIC_CLASS="xterm-italic",te.UNDERLINE_CLASS="xterm-underline",te.CURSOR_CLASS="xterm-cursor",te.CURSOR_BLINK_CLASS="xterm-cursor-blink",te.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",te.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",te.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var pe=function(){function de(le,ue,se){this._document=le,this._optionsService=ue,this._colors=se,this._workCell=new ve.CellData}return de.prototype.setColors=function(le){this._colors=le},de.prototype.createRow=function(le,ue,se,me,re,ne,a){for(var y=this._document.createDocumentFragment(),E=0,b=Math.min(le.length,a)-1;b>=0;b--)if(le.loadCell(b,this._workCell).getCode()!==Pe.NULL_CELL_CODE||ue&&b===me){E=b+1;break}for(b=0;b<E;b++){le.loadCell(b,this._workCell);var x=this._workCell.getWidth();if(x!==0){var ee=this._document.createElement("span");if(x>1&&(ee.style.width=ne*x+"px"),ue&&b===me)switch(ee.classList.add(te.CURSOR_CLASS),re&&ee.classList.add(te.CURSOR_BLINK_CLASS),se){case"bar":ee.classList.add(te.CURSOR_STYLE_BAR_CLASS);break;case"underline":ee.classList.add(te.CURSOR_STYLE_UNDERLINE_CLASS);break;default:ee.classList.add(te.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&ee.classList.add(te.BOLD_CLASS),this._workCell.isItalic()&&ee.classList.add(te.ITALIC_CLASS),this._workCell.isDim()&&ee.classList.add(te.DIM_CLASS),this._workCell.isUnderline()&&ee.classList.add(te.UNDERLINE_CLASS),this._workCell.isInvisible()?ee.textContent=Pe.WHITESPACE_CELL_CHAR:ee.textContent=this._workCell.getChars()||Pe.WHITESPACE_CELL_CHAR;var oe=this._workCell.getFgColor(),ae=this._workCell.getFgColorMode(),ce=this._workCell.getBgColor(),Se=this._workCell.getBgColorMode(),_e=!!this._workCell.isInverse();if(_e){var xe=oe;oe=ce,ce=xe;var we=ae;ae=Se,Se=we}switch(ae){case 16777216:case 33554432:this._workCell.isBold()&&oe<8&&this._optionsService.options.drawBoldTextInBrightColors&&(oe+=8),this._applyMinimumContrast(ee,this._colors.background,this._colors.ansi[oe])||ee.classList.add("xterm-fg-"+oe);break;case 50331648:var Fe=he.rgba.toColor(oe>>16&255,oe>>8&255,255&oe);this._applyMinimumContrast(ee,this._colors.background,Fe)||this._addStyle(ee,"color:#"+ie(oe.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(ee,this._colors.background,this._colors.foreground)||_e&&ee.classList.add("xterm-fg-"+fe.INVERTED_DEFAULT_COLOR)}switch(Se){case 16777216:case 33554432:ee.classList.add("xterm-bg-"+ce);break;case 50331648:this._addStyle(ee,"background-color:#"+ie(ce.toString(16),"0",6));break;case 0:default:_e&&ee.classList.add("xterm-bg-"+fe.INVERTED_DEFAULT_COLOR)}y.appendChild(ee)}}return y},de.prototype._applyMinimumContrast=function(le,ue,se){if(this._optionsService.options.minimumContrastRatio===1)return!1;var me=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return me===void 0&&(me=he.color.ensureContrastRatio(ue,se,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,me!=null?me:null)),!!me&&(this._addStyle(le,"color:"+me.css),!0)},de.prototype._addStyle=function(le,ue){le.setAttribute("style",""+(le.getAttribute("style")||"")+ue+";")},de}();function ie(de,le,ue){for(;de.length<ue;)de=le+de;return de}te.DomRendererRowFactory=pe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.evaluateKeyboardEvent=void 0;var fe=z(12),Pe={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};te.evaluateKeyboardEvent=function(ve,he,pe,ie){var de={type:0,cancel:!1,key:void 0},le=(ve.shiftKey?1:0)|(ve.altKey?2:0)|(ve.ctrlKey?4:0)|(ve.metaKey?8:0);switch(ve.keyCode){case 0:ve.key==="UIKeyInputUpArrow"?de.key=he?fe.C0.ESC+"OA":fe.C0.ESC+"[A":ve.key==="UIKeyInputLeftArrow"?de.key=he?fe.C0.ESC+"OD":fe.C0.ESC+"[D":ve.key==="UIKeyInputRightArrow"?de.key=he?fe.C0.ESC+"OC":fe.C0.ESC+"[C":ve.key==="UIKeyInputDownArrow"&&(de.key=he?fe.C0.ESC+"OB":fe.C0.ESC+"[B");break;case 8:if(ve.shiftKey){de.key=fe.C0.BS;break}if(ve.altKey){de.key=fe.C0.ESC+fe.C0.DEL;break}de.key=fe.C0.DEL;break;case 9:if(ve.shiftKey){de.key=fe.C0.ESC+"[Z";break}de.key=fe.C0.HT,de.cancel=!0;break;case 13:de.key=ve.altKey?fe.C0.ESC+fe.C0.CR:fe.C0.CR,de.cancel=!0;break;case 27:de.key=fe.C0.ESC,ve.altKey&&(de.key=fe.C0.ESC+fe.C0.ESC),de.cancel=!0;break;case 37:if(ve.metaKey)break;le?(de.key=fe.C0.ESC+"[1;"+(le+1)+"D",de.key===fe.C0.ESC+"[1;3D"&&(de.key=fe.C0.ESC+(pe?"b":"[1;5D"))):de.key=he?fe.C0.ESC+"OD":fe.C0.ESC+"[D";break;case 39:if(ve.metaKey)break;le?(de.key=fe.C0.ESC+"[1;"+(le+1)+"C",de.key===fe.C0.ESC+"[1;3C"&&(de.key=fe.C0.ESC+(pe?"f":"[1;5C"))):de.key=he?fe.C0.ESC+"OC":fe.C0.ESC+"[C";break;case 38:if(ve.metaKey)break;le?(de.key=fe.C0.ESC+"[1;"+(le+1)+"A",pe||de.key!==fe.C0.ESC+"[1;3A"||(de.key=fe.C0.ESC+"[1;5A")):de.key=he?fe.C0.ESC+"OA":fe.C0.ESC+"[A";break;case 40:if(ve.metaKey)break;le?(de.key=fe.C0.ESC+"[1;"+(le+1)+"B",pe||de.key!==fe.C0.ESC+"[1;3B"||(de.key=fe.C0.ESC+"[1;5B")):de.key=he?fe.C0.ESC+"OB":fe.C0.ESC+"[B";break;case 45:ve.shiftKey||ve.ctrlKey||(de.key=fe.C0.ESC+"[2~");break;case 46:de.key=le?fe.C0.ESC+"[3;"+(le+1)+"~":fe.C0.ESC+"[3~";break;case 36:de.key=le?fe.C0.ESC+"[1;"+(le+1)+"H":he?fe.C0.ESC+"OH":fe.C0.ESC+"[H";break;case 35:de.key=le?fe.C0.ESC+"[1;"+(le+1)+"F":he?fe.C0.ESC+"OF":fe.C0.ESC+"[F";break;case 33:ve.shiftKey?de.type=2:de.key=fe.C0.ESC+"[5~";break;case 34:ve.shiftKey?de.type=3:de.key=fe.C0.ESC+"[6~";break;case 112:de.key=le?fe.C0.ESC+"[1;"+(le+1)+"P":fe.C0.ESC+"OP";break;case 113:de.key=le?fe.C0.ESC+"[1;"+(le+1)+"Q":fe.C0.ESC+"OQ";break;case 114:de.key=le?fe.C0.ESC+"[1;"+(le+1)+"R":fe.C0.ESC+"OR";break;case 115:de.key=le?fe.C0.ESC+"[1;"+(le+1)+"S":fe.C0.ESC+"OS";break;case 116:de.key=le?fe.C0.ESC+"[15;"+(le+1)+"~":fe.C0.ESC+"[15~";break;case 117:de.key=le?fe.C0.ESC+"[17;"+(le+1)+"~":fe.C0.ESC+"[17~";break;case 118:de.key=le?fe.C0.ESC+"[18;"+(le+1)+"~":fe.C0.ESC+"[18~";break;case 119:de.key=le?fe.C0.ESC+"[19;"+(le+1)+"~":fe.C0.ESC+"[19~";break;case 120:de.key=le?fe.C0.ESC+"[20;"+(le+1)+"~":fe.C0.ESC+"[20~";break;case 121:de.key=le?fe.C0.ESC+"[21;"+(le+1)+"~":fe.C0.ESC+"[21~";break;case 122:de.key=le?fe.C0.ESC+"[23;"+(le+1)+"~":fe.C0.ESC+"[23~";break;case 123:de.key=le?fe.C0.ESC+"[24;"+(le+1)+"~":fe.C0.ESC+"[24~";break;default:if(!ve.ctrlKey||ve.shiftKey||ve.altKey||ve.metaKey)if(pe&&!ie||!ve.altKey||ve.metaKey)pe&&!ve.altKey&&!ve.ctrlKey&&ve.metaKey?ve.keyCode===65&&(de.type=1):ve.key&&!ve.ctrlKey&&!ve.altKey&&!ve.metaKey&&ve.keyCode>=48&&ve.key.length===1?de.key=ve.key:ve.key&&ve.ctrlKey&&ve.key==="_"&&(de.key=fe.C0.US);else{var ue=Pe[ve.keyCode],se=ue&&ue[ve.shiftKey?1:0];if(se)de.key=fe.C0.ESC+se;else if(ve.keyCode>=65&&ve.keyCode<=90){var me=ve.ctrlKey?ve.keyCode-64:ve.keyCode+32;de.key=fe.C0.ESC+String.fromCharCode(me)}}else ve.keyCode>=65&&ve.keyCode<=90?de.key=String.fromCharCode(ve.keyCode-64):ve.keyCode===32?de.key=fe.C0.NUL:ve.keyCode>=51&&ve.keyCode<=55?de.key=String.fromCharCode(ve.keyCode-51+27):ve.keyCode===56?de.key=fe.C0.DEL:ve.keyCode===219?de.key=fe.C0.ESC:ve.keyCode===220?de.key=fe.C0.FS:ve.keyCode===221&&(de.key=fe.C0.GS)}return de}},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(ne,a){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var b in E)E.hasOwnProperty(b)&&(y[b]=E[b])})(ne,a)},function(ne,a){function y(){this.constructor=ne}fe(ne,a),ne.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),ve=this&&this.__decorate||function(ne,a,y,E){var b,x=arguments.length,ee=x<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,y):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(ne,a,y,E);else for(var oe=ne.length-1;oe>=0;oe--)(b=ne[oe])&&(ee=(x<3?b(ee):x>3?b(a,y,ee):b(a,y))||ee);return x>3&&ee&&Object.defineProperty(a,y,ee),ee},he=this&&this.__param||function(ne,a){return function(y,E){a(y,E,ne)}};Object.defineProperty(te,"__esModule",{value:!0}),te.RenderService=void 0;var pe=z(31),ie=z(0),de=z(2),le=z(32),ue=z(7),se=z(1),me=z(5),re=function(ne){function a(y,E,b,x,ee,oe){var ae=ne.call(this)||this;if(ae._renderer=y,ae._rowCount=E,ae._isPaused=!1,ae._needsFullRefresh=!1,ae._isNextRenderRedrawOnly=!0,ae._needsSelectionRefresh=!1,ae._canvasWidth=0,ae._canvasHeight=0,ae._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ae._onDimensionsChange=new ie.EventEmitter,ae._onRender=new ie.EventEmitter,ae._onRefreshRequest=new ie.EventEmitter,ae.register({dispose:function(){return ae._renderer.dispose()}}),ae._renderDebouncer=new pe.RenderDebouncer(function(Se,_e){return ae._renderRows(Se,_e)}),ae.register(ae._renderDebouncer),ae._screenDprMonitor=new le.ScreenDprMonitor,ae._screenDprMonitor.setListener(function(){return ae.onDevicePixelRatioChange()}),ae.register(ae._screenDprMonitor),ae.register(oe.onResize(function(Se){return ae._fullRefresh()})),ae.register(x.onOptionChange(function(){return ae._renderer.onOptionsChanged()})),ae.register(ee.onCharSizeChange(function(){return ae.onCharSizeChanged()})),ae._renderer.onRequestRedraw(function(Se){return ae.refreshRows(Se.start,Se.end,!0)}),ae.register(ue.addDisposableDomListener(window,"resize",function(){return ae.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ce=new IntersectionObserver(function(Se){return ae._onIntersectionChange(Se[Se.length-1])},{threshold:0});ce.observe(b),ae.register({dispose:function(){return ce.disconnect()}})}return ae}return Pe(a,ne),Object.defineProperty(a.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),a.prototype._onIntersectionChange=function(y){this._isPaused=y.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},a.prototype.refreshRows=function(y,E,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(y,E,this._rowCount))},a.prototype._renderRows=function(y,E){this._renderer.renderRows(y,E),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:y,end:E}),this._isNextRenderRedrawOnly=!0},a.prototype.resize=function(y,E){this._rowCount=E,this._fireOnCanvasResize()},a.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},a.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},a.prototype.dispose=function(){ne.prototype.dispose.call(this)},a.prototype.setRenderer=function(y){var E=this;this._renderer.dispose(),this._renderer=y,this._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},a.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},a.prototype.setColors=function(y){this._renderer.setColors(y),this._fullRefresh()},a.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},a.prototype.onResize=function(y,E){this._renderer.onResize(y,E),this._fullRefresh()},a.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},a.prototype.onBlur=function(){this._renderer.onBlur()},a.prototype.onFocus=function(){this._renderer.onFocus()},a.prototype.onSelectionChanged=function(y,E,b){this._selectionState.start=y,this._selectionState.end=E,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(y,E,b)},a.prototype.onCursorMove=function(){this._renderer.onCursorMove()},a.prototype.clear=function(){this._renderer.clear()},a.prototype.registerCharacterJoiner=function(y){return this._renderer.registerCharacterJoiner(y)},a.prototype.deregisterCharacterJoiner=function(y){return this._renderer.deregisterCharacterJoiner(y)},a=ve([he(3,se.IOptionsService),he(4,me.ICharSizeService),he(5,se.IBufferService)],a)}(de.Disposable);te.RenderService=re},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(de,le,ue,se){var me,re=arguments.length,ne=re<3?le:se===null?se=Object.getOwnPropertyDescriptor(le,ue):se;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,ue,se);else for(var a=de.length-1;a>=0;a--)(me=de[a])&&(ne=(re<3?me(ne):re>3?me(le,ue,ne):me(le,ue))||ne);return re>3&&ne&&Object.defineProperty(le,ue,ne),ne},Pe=this&&this.__param||function(de,le){return function(ue,se){le(ue,se,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CharSizeService=void 0;var ve=z(1),he=z(0),pe=function(){function de(le,ue,se){this._optionsService=se,this.width=0,this.height=0,this._onCharSizeChange=new he.EventEmitter,this._measureStrategy=new ie(le,ue,this._optionsService)}return Object.defineProperty(de.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),de.prototype.measure=function(){var le=this._measureStrategy.measure();le.width===this.width&&le.height===this.height||(this.width=le.width,this.height=le.height,this._onCharSizeChange.fire())},de=fe([Pe(2,ve.IOptionsService)],de)}();te.CharSizeService=pe;var ie=function(){function de(le,ue,se){this._document=le,this._parentElement=ue,this._optionsService=se,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return de.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var le=this._measureElement.getBoundingClientRect();return le.width!==0&&le.height!==0&&(this._result.width=le.width,this._result.height=Math.ceil(le.height)),this._result},de}()},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(ie,de,le,ue){var se,me=arguments.length,re=me<3?de:ue===null?ue=Object.getOwnPropertyDescriptor(de,le):ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ie,de,le,ue);else for(var ne=ie.length-1;ne>=0;ne--)(se=ie[ne])&&(re=(me<3?se(re):me>3?se(de,le,re):se(de,le))||re);return me>3&&re&&Object.defineProperty(de,le,re),re},Pe=this&&this.__param||function(ie,de){return function(le,ue){de(le,ue,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseService=void 0;var ve=z(5),he=z(30),pe=function(){function ie(de,le){this._renderService=de,this._charSizeService=le}return ie.prototype.getCoords=function(de,le,ue,se,me){return he.getCoords(de,le,ue,se,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,me)},ie.prototype.getRawByteCoords=function(de,le,ue,se){var me=this.getCoords(de,le,ue,se);return he.getRawByteCoords(me)},ie=fe([Pe(0,ve.IRenderService),Pe(1,ve.ICharSizeService)],ie)}();te.MouseService=pe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(se,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}fe(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},he=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Linkifier2=void 0;var pe=z(1),ie=z(0),de=z(2),le=z(7),ue=function(se){function me(re){var ne=se.call(this)||this;return ne._bufferService=re,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new ie.EventEmitter),ne._onHideLinkUnderline=ne.register(new ie.EventEmitter),ne.register(de.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return Pe(me,se),Object.defineProperty(me.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),me.prototype.registerLinkProvider=function(re){var ne=this;return this._linkProviders.push(re),{dispose:function(){var a=ne._linkProviders.indexOf(re);a!==-1&&ne._linkProviders.splice(a,1)}}},me.prototype.attachToDom=function(re,ne,a){var y=this;this._element=re,this._mouseService=ne,this._renderService=a,this.register(le.addDisposableDomListener(this._element,"mouseleave",function(){y._isMouseOut=!0,y._clearCurrentLink()})),this.register(le.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(le.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},me.prototype._onMouseMove=function(re){if(this._lastMouseEvent=re,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=re.composedPath(),y=0;y<a.length;y++){var E=a[y];if(E.classList.contains("xterm"))break;if(E.classList.contains("xterm-hover"))return}this._lastBufferCell&&ne.x===this._lastBufferCell.x&&ne.y===this._lastBufferCell.y||(this._onHover(ne),this._lastBufferCell=ne)}}},me.prototype._onHover=function(re){if(this._activeLine!==re.y)return this._clearCurrentLink(),void this._askForLink(re,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,re)||(this._clearCurrentLink(),this._askForLink(re,!0))},me.prototype._askForLink=function(re,ne){var a=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=re.y);var y=!1;this._linkProviders.forEach(function(E,b){var x;ne?!((x=a._activeProviderReplies)===null||x===void 0)&&x.get(b)&&(y=a._checkLinkProviderResult(b,re,y)):E.provideLinks(re.y,function(ee){var oe,ae;if(!a._isMouseOut){var ce=ee==null?void 0:ee.map(function(Se){return{link:Se}});(oe=a._activeProviderReplies)===null||oe===void 0||oe.set(b,ce),y=a._checkLinkProviderResult(b,re,y),((ae=a._activeProviderReplies)===null||ae===void 0?void 0:ae.size)===a._linkProviders.length&&a._removeIntersectingLinks(re.y,a._activeProviderReplies)}})})},me.prototype._removeIntersectingLinks=function(re,ne){for(var a=new Set,y=0;y<ne.size;y++){var E=ne.get(y);if(E)for(var b=0;b<E.length;b++)for(var x=E[b],ee=x.link.range.start.y<re?0:x.link.range.start.x,oe=x.link.range.end.y>re?this._bufferService.cols:x.link.range.end.x,ae=ee;ae<=oe;ae++){if(a.has(ae)){E.splice(b--,1);break}a.add(ae)}}},me.prototype._checkLinkProviderResult=function(re,ne,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(re),x=!1,ee=0;ee<re;ee++)this._activeProviderReplies.has(ee)&&!this._activeProviderReplies.get(ee)||(x=!0);if(!x&&b){var oe=b.find(function(ce){return E._linkAtPosition(ce.link,ne)});oe&&(a=!0,this._handleNewLink(oe))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(ee=0;ee<this._activeProviderReplies.size;ee++){var ae=(y=this._activeProviderReplies.get(ee))===null||y===void 0?void 0:y.find(function(ce){return E._linkAtPosition(ce.link,ne)});if(ae){a=!0,this._handleNewLink(ae);break}}return a},me.prototype._onClick=function(re){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(re,this._currentLink.link.text)}},me.prototype._clearCurrentLink=function(re,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!re||!ne||this._currentLink.link.range.start.y>=re&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,de.disposeArray(this._linkCacheDisposables))},me.prototype._handleNewLink=function(re){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(re.link,a)&&(this._currentLink=re,this._currentLink.state={decorations:{underline:re.link.decorations===void 0||re.link.decorations.underline,pointerCursor:re.link.decorations===void 0||re.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,re.link,this._lastMouseEvent),re.link.decorations={},Object.defineProperties(re.link.decorations,{pointerCursor:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.pointerCursor},set:function(y){var E,b;!((E=ne._currentLink)===null||E===void 0)&&E.state&&ne._currentLink.state.decorations.pointerCursor!==y&&(ne._currentLink.state.decorations.pointerCursor=y,ne._currentLink.state.isHovered&&((b=ne._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",y)))}},underline:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.underline},set:function(y){var E,b,x;!((E=ne._currentLink)===null||E===void 0)&&E.state&&((x=(b=ne._currentLink)===null||b===void 0?void 0:b.state)===null||x===void 0?void 0:x.decorations.underline)!==y&&(ne._currentLink.state.decorations.underline=y,ne._currentLink.state.isHovered&&ne._fireUnderlineEvent(re.link,y))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(y){var E=y.start===0?0:y.start+1+ne._bufferService.buffer.ydisp;ne._clearCurrentLink(E,y.end+1+ne._bufferService.buffer.ydisp)})))}},me.prototype._linkHover=function(re,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!0),this._currentLink.state.decorations.pointerCursor&&re.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},me.prototype._fireUnderlineEvent=function(re,ne){var a=re.range,y=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-y-1,a.end.x,a.end.y-y-1,void 0);(ne?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)},me.prototype._linkLeave=function(re,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!1),this._currentLink.state.decorations.pointerCursor&&re.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},me.prototype._linkAtPosition=function(re,ne){var a=re.range.start.y===re.range.end.y,y=re.range.start.y<ne.y,E=re.range.end.y>ne.y;return(a&&re.range.start.x<=ne.x&&re.range.end.x>=ne.x||y&&re.range.end.x>=ne.x||E&&re.range.start.x<=ne.x||y&&E)&&re.range.start.y<=ne.y&&re.range.end.y>=ne.y},me.prototype._positionFromMouseEvent=function(re,ne,a){var y=a.getCoords(re,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},me.prototype._createLinkUnderlineEvent=function(re,ne,a,y,E){return{x1:re,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},me=ve([he(0,pe.IBufferService)],me)}(de.Disposable);te.Linkifier2=ue},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CoreBrowserService=void 0;var fe=function(){function Pe(ve){this._textarea=ve}return Object.defineProperty(Pe.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),Pe}();te.CoreBrowserService=fe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(ee,oe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ce){ae.__proto__=ce}||function(ae,ce){for(var Se in ce)ce.hasOwnProperty(Se)&&(ae[Se]=ce[Se])})(ee,oe)},function(ee,oe){function ae(){this.constructor=ee}fe(ee,oe),ee.prototype=oe===null?Object.create(oe):(ae.prototype=oe.prototype,new ae)});Object.defineProperty(te,"__esModule",{value:!0}),te.CoreTerminal=void 0;var ve=z(2),he=z(1),pe=z(66),ie=z(67),de=z(68),le=z(74),ue=z(75),se=z(0),me=z(76),re=z(77),ne=z(78),a=z(80),y=z(81),E=z(19),b=z(82),x=function(ee){function oe(ae){var ce=ee.call(this)||this;return ce._onBinary=new se.EventEmitter,ce._onData=new se.EventEmitter,ce._onLineFeed=new se.EventEmitter,ce._onResize=new se.EventEmitter,ce._onScroll=new se.EventEmitter,ce._instantiationService=new pe.InstantiationService,ce.optionsService=new le.OptionsService(ae),ce._instantiationService.setService(he.IOptionsService,ce.optionsService),ce._bufferService=ce.register(ce._instantiationService.createInstance(de.BufferService)),ce._instantiationService.setService(he.IBufferService,ce._bufferService),ce._logService=ce._instantiationService.createInstance(ie.LogService),ce._instantiationService.setService(he.ILogService,ce._logService),ce._coreService=ce.register(ce._instantiationService.createInstance(ue.CoreService,function(){return ce.scrollToBottom()})),ce._instantiationService.setService(he.ICoreService,ce._coreService),ce._coreMouseService=ce._instantiationService.createInstance(me.CoreMouseService),ce._instantiationService.setService(he.ICoreMouseService,ce._coreMouseService),ce._dirtyRowService=ce._instantiationService.createInstance(re.DirtyRowService),ce._instantiationService.setService(he.IDirtyRowService,ce._dirtyRowService),ce.unicodeService=ce._instantiationService.createInstance(ne.UnicodeService),ce._instantiationService.setService(he.IUnicodeService,ce.unicodeService),ce._charsetService=ce._instantiationService.createInstance(a.CharsetService),ce._instantiationService.setService(he.ICharsetService,ce._charsetService),ce._inputHandler=new E.InputHandler(ce._bufferService,ce._charsetService,ce._coreService,ce._dirtyRowService,ce._logService,ce.optionsService,ce._coreMouseService,ce.unicodeService),ce.register(se.forwardEvent(ce._inputHandler.onLineFeed,ce._onLineFeed)),ce.register(ce._inputHandler),ce.register(se.forwardEvent(ce._bufferService.onResize,ce._onResize)),ce.register(se.forwardEvent(ce._coreService.onData,ce._onData)),ce.register(se.forwardEvent(ce._coreService.onBinary,ce._onBinary)),ce.register(ce.optionsService.onOptionChange(function(Se){return ce._updateOptions(Se)})),ce._writeBuffer=new b.WriteBuffer(function(Se){return ce._inputHandler.parse(Se)}),ce}return Pe(oe,ee),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){var ae;this._isDisposed||(ee.prototype.dispose.call(this),(ae=this._windowsMode)===null||ae===void 0||ae.dispose(),this._windowsMode=void 0)},oe.prototype.write=function(ae,ce){this._writeBuffer.write(ae,ce)},oe.prototype.writeSync=function(ae){this._writeBuffer.writeSync(ae)},oe.prototype.resize=function(ae,ce){isNaN(ae)||isNaN(ce)||(ae=Math.max(ae,de.MINIMUM_COLS),ce=Math.max(ce,de.MINIMUM_ROWS),this._bufferService.resize(ae,ce))},oe.prototype.scroll=function(ae,ce){ce===void 0&&(ce=!1);var Se,_e=this._bufferService.buffer;(Se=this._cachedBlankLine)&&Se.length===this.cols&&Se.getFg(0)===ae.fg&&Se.getBg(0)===ae.bg||(Se=_e.getBlankLine(ae,ce),this._cachedBlankLine=Se),Se.isWrapped=ce;var xe=_e.ybase+_e.scrollTop,we=_e.ybase+_e.scrollBottom;if(_e.scrollTop===0){var Fe=_e.lines.isFull;we===_e.lines.length-1?Fe?_e.lines.recycle().copyFrom(Se):_e.lines.push(Se.clone()):_e.lines.splice(we+1,0,Se.clone()),Fe?this._bufferService.isUserScrolling&&(_e.ydisp=Math.max(_e.ydisp-1,0)):(_e.ybase++,this._bufferService.isUserScrolling||_e.ydisp++)}else{var Me=we-xe+1;_e.lines.shiftElements(xe+1,Me-1,-1),_e.lines.set(we,Se.clone())}this._bufferService.isUserScrolling||(_e.ydisp=_e.ybase),this._dirtyRowService.markRangeDirty(_e.scrollTop,_e.scrollBottom),this._onScroll.fire(_e.ydisp)},oe.prototype.scrollLines=function(ae,ce){var Se=this._bufferService.buffer;if(ae<0){if(Se.ydisp===0)return;this._bufferService.isUserScrolling=!0}else ae+Se.ydisp>=Se.ybase&&(this._bufferService.isUserScrolling=!1);var _e=Se.ydisp;Se.ydisp=Math.max(Math.min(Se.ydisp+ae,Se.ybase),0),_e!==Se.ydisp&&(ce||this._onScroll.fire(Se.ydisp))},oe.prototype.scrollPages=function(ae){this.scrollLines(ae*(this.rows-1))},oe.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},oe.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},oe.prototype.scrollToLine=function(ae){var ce=ae-this._bufferService.buffer.ydisp;ce!==0&&this.scrollLines(ce)},oe.prototype.addEscHandler=function(ae,ce){return this._inputHandler.addEscHandler(ae,ce)},oe.prototype.addDcsHandler=function(ae,ce){return this._inputHandler.addDcsHandler(ae,ce)},oe.prototype.addCsiHandler=function(ae,ce){return this._inputHandler.addCsiHandler(ae,ce)},oe.prototype.addOscHandler=function(ae,ce){return this._inputHandler.addOscHandler(ae,ce)},oe.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},oe.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},oe.prototype._updateOptions=function(ae){var ce;switch(ae){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ce=this._windowsMode)===null||ce===void 0||ce.dispose(),this._windowsMode=void 0)}},oe.prototype._enableWindowsMode=function(){var ae=this;if(!this._windowsMode){var ce=[];ce.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),ce.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(ae._bufferService),!1})),this._windowsMode={dispose:function(){for(var Se=0,_e=ce;Se<_e.length;Se++)_e[Se].dispose()}}}},oe}(ve.Disposable);te.CoreTerminal=x},function(We,te,z){"use strict";var fe=this&&this.__spreadArrays||function(){for(var ie=0,de=0,le=arguments.length;de<le;de++)ie+=arguments[de].length;var ue=Array(ie),se=0;for(de=0;de<le;de++)for(var me=arguments[de],re=0,ne=me.length;re<ne;re++,se++)ue[se]=me[re];return ue};Object.defineProperty(te,"__esModule",{value:!0}),te.InstantiationService=te.ServiceCollection=void 0;var Pe=z(1),ve=z(14),he=function(){function ie(){for(var de=[],le=0;le<arguments.length;le++)de[le]=arguments[le];this._entries=new Map;for(var ue=0,se=de;ue<se.length;ue++){var me=se[ue],re=me[0],ne=me[1];this.set(re,ne)}}return ie.prototype.set=function(de,le){var ue=this._entries.get(de);return this._entries.set(de,le),ue},ie.prototype.forEach=function(de){this._entries.forEach(function(le,ue){return de(ue,le)})},ie.prototype.has=function(de){return this._entries.has(de)},ie.prototype.get=function(de){return this._entries.get(de)},ie}();te.ServiceCollection=he;var pe=function(){function ie(){this._services=new he,this._services.set(Pe.IInstantiationService,this)}return ie.prototype.setService=function(de,le){this._services.set(de,le)},ie.prototype.getService=function(de){return this._services.get(de)},ie.prototype.createInstance=function(de){for(var le=[],ue=1;ue<arguments.length;ue++)le[ue-1]=arguments[ue];for(var se=ve.getServiceDependencies(de).sort(function(b,x){return b.index-x.index}),me=[],re=0,ne=se;re<ne.length;re++){var a=ne[re],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+de.name+" depends on UNKNOWN service "+a.id+".");me.push(y)}var E=se.length>0?se[0].index:le.length;if(le.length!==E)throw new Error("[createInstance] First service dependency of "+de.name+" at position "+(E+1)+" conflicts with "+le.length+" static arguments");return new(de.bind.apply(de,fe([void 0],fe(le,me))))},ie}();te.InstantiationService=pe},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(le,ue,se,me){var re,ne=arguments.length,a=ne<3?ue:me===null?me=Object.getOwnPropertyDescriptor(ue,se):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(le,ue,se,me);else for(var y=le.length-1;y>=0;y--)(re=le[y])&&(a=(ne<3?re(a):ne>3?re(ue,se,a):re(ue,se))||a);return ne>3&&a&&Object.defineProperty(ue,se,a),a},Pe=this&&this.__param||function(le,ue){return function(se,me){ue(se,me,le)}},ve=this&&this.__spreadArrays||function(){for(var le=0,ue=0,se=arguments.length;ue<se;ue++)le+=arguments[ue].length;var me=Array(le),re=0;for(ue=0;ue<se;ue++)for(var ne=arguments[ue],a=0,y=ne.length;a<y;a++,re++)me[re]=ne[a];return me};Object.defineProperty(te,"__esModule",{value:!0}),te.LogService=te.LogLevel=void 0;var he,pe=z(1);(function(le){le[le.DEBUG=0]="DEBUG",le[le.INFO=1]="INFO",le[le.WARN=2]="WARN",le[le.ERROR=3]="ERROR",le[le.OFF=4]="OFF"})(he=te.LogLevel||(te.LogLevel={}));var ie={debug:he.DEBUG,info:he.INFO,warn:he.WARN,error:he.ERROR,off:he.OFF},de=function(){function le(ue){var se=this;this._optionsService=ue,this._updateLogLevel(),this._optionsService.onOptionChange(function(me){me==="logLevel"&&se._updateLogLevel()})}return le.prototype._updateLogLevel=function(){this._logLevel=ie[this._optionsService.options.logLevel]},le.prototype._evalLazyOptionalParams=function(ue){for(var se=0;se<ue.length;se++)typeof ue[se]=="function"&&(ue[se]=ue[se]())},le.prototype._log=function(ue,se,me){this._evalLazyOptionalParams(me),ue.call.apply(ue,ve([console,"xterm.js: "+se],me))},le.prototype.debug=function(ue){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=he.DEBUG&&this._log(console.log,ue,se)},le.prototype.info=function(ue){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=he.INFO&&this._log(console.info,ue,se)},le.prototype.warn=function(ue){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=he.WARN&&this._log(console.warn,ue,se)},le.prototype.error=function(ue){for(var se=[],me=1;me<arguments.length;me++)se[me-1]=arguments[me];this._logLevel<=he.ERROR&&this._log(console.error,ue,se)},le=fe([Pe(0,pe.IOptionsService)],le)}();te.LogService=de},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(se,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var a in ne)ne.hasOwnProperty(a)&&(re[a]=ne[a])})(se,me)},function(se,me){function re(){this.constructor=se}fe(se,me),se.prototype=me===null?Object.create(me):(re.prototype=me.prototype,new re)}),ve=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},he=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(te,"__esModule",{value:!0}),te.BufferService=te.MINIMUM_ROWS=te.MINIMUM_COLS=void 0;var pe=z(1),ie=z(69),de=z(0),le=z(2);te.MINIMUM_COLS=2,te.MINIMUM_ROWS=1;var ue=function(se){function me(re){var ne=se.call(this)||this;return ne._optionsService=re,ne.isUserScrolling=!1,ne._onResize=new de.EventEmitter,ne.cols=Math.max(re.options.cols,te.MINIMUM_COLS),ne.rows=Math.max(re.options.rows,te.MINIMUM_ROWS),ne.buffers=new ie.BufferSet(re,ne),ne}return Pe(me,se),Object.defineProperty(me.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),me.prototype.dispose=function(){se.prototype.dispose.call(this),this.buffers.dispose()},me.prototype.resize=function(re,ne){this.cols=re,this.rows=ne,this.buffers.resize(re,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:re,rows:ne})},me.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ie.BufferSet(this._optionsService,this),this.isUserScrolling=!1},me=ve([he(0,pe.IOptionsService)],me)}(le.Disposable);te.BufferService=ue},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(ie,de){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ue){le.__proto__=ue}||function(le,ue){for(var se in ue)ue.hasOwnProperty(se)&&(le[se]=ue[se])})(ie,de)},function(ie,de){function le(){this.constructor=ie}fe(ie,de),ie.prototype=de===null?Object.create(de):(le.prototype=de.prototype,new le)});Object.defineProperty(te,"__esModule",{value:!0}),te.BufferSet=void 0;var ve=z(70),he=z(0),pe=function(ie){function de(le,ue){var se=ie.call(this)||this;return se._onBufferActivate=se.register(new he.EventEmitter),se._normal=new ve.Buffer(!0,le,ue),se._normal.fillViewportRows(),se._alt=new ve.Buffer(!1,le,ue),se._activeBuffer=se._normal,se.setupTabStops(),se}return Pe(de,ie),Object.defineProperty(de.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),de.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},de.prototype.activateAltBuffer=function(le){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(le),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},de.prototype.resize=function(le,ue){this._normal.resize(le,ue),this._alt.resize(le,ue)},de.prototype.setupTabStops=function(le){this._normal.setupTabStops(le),this._alt.setupTabStops(le)},de}(z(2).Disposable);te.BufferSet=pe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferStringIterator=te.Buffer=te.MAX_BUFFER_SIZE=void 0;var fe=z(71),Pe=z(16),ve=z(4),he=z(3),pe=z(72),ie=z(73),de=z(20),le=z(6);te.MAX_BUFFER_SIZE=4294967295;var ue=function(){function me(re,ne,a){this._hasScrollback=re,this._optionsService=ne,this._bufferService=a,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=Pe.DEFAULT_ATTR_DATA.clone(),this.savedCharset=de.DEFAULT_CHARSET,this.markers=[],this._nullCell=ve.CellData.fromCharData([0,he.NULL_CELL_CHAR,he.NULL_CELL_WIDTH,he.NULL_CELL_CODE]),this._whitespaceCell=ve.CellData.fromCharData([0,he.WHITESPACE_CELL_CHAR,he.WHITESPACE_CELL_WIDTH,he.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return me.prototype.getNullCell=function(re){return re?(this._nullCell.fg=re.fg,this._nullCell.bg=re.bg,this._nullCell.extended=re.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new le.ExtendedAttrs),this._nullCell},me.prototype.getWhitespaceCell=function(re){return re?(this._whitespaceCell.fg=re.fg,this._whitespaceCell.bg=re.bg,this._whitespaceCell.extended=re.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new le.ExtendedAttrs),this._whitespaceCell},me.prototype.getBlankLine=function(re,ne){return new Pe.BufferLine(this._bufferService.cols,this.getNullCell(re),ne)},Object.defineProperty(me.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"isCursorInViewport",{get:function(){var re=this.ybase+this.y-this.ydisp;return re>=0&&re<this._rows},enumerable:!1,configurable:!0}),me.prototype._getCorrectBufferLength=function(re){if(!this._hasScrollback)return re;var ne=re+this._optionsService.options.scrollback;return ne>te.MAX_BUFFER_SIZE?te.MAX_BUFFER_SIZE:ne},me.prototype.fillViewportRows=function(re){if(this.lines.length===0){re===void 0&&(re=Pe.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(re))}},me.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},me.prototype.resize=function(re,ne){var a=this.getNullCell(Pe.DEFAULT_ATTR_DATA),y=this._getCorrectBufferLength(ne);if(y>this.lines.maxLength&&(this.lines.maxLength=y),this.lines.length>0){if(this._cols<re)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,a);var b=0;if(this._rows<ne)for(var x=this._rows;x<ne;x++)this.lines.length<ne+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new Pe.BufferLine(re,a)):this.ybase>0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new Pe.BufferLine(re,a)));else for(x=this._rows;x>ne;x--)this.lines.length>ne+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(y<this.lines.maxLength){var ee=this.lines.length-y;ee>0&&(this.lines.trimStart(ee),this.ybase=Math.max(this.ybase-ee,0),this.ydisp=Math.max(this.ydisp-ee,0),this.savedY=Math.max(this.savedY-ee,0)),this.lines.maxLength=y}this.x=Math.min(this.x,re-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,re-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(re,ne),this._cols>re))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,a);this._cols=re,this._rows=ne},Object.defineProperty(me.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),me.prototype._reflow=function(re,ne){this._cols!==re&&(re>this._cols?this._reflowLarger(re,ne):this._reflowSmaller(re,ne))},me.prototype._reflowLarger=function(re,ne){var a=pe.reflowLargerGetLinesToRemove(this.lines,this._cols,re,this.ybase+this.y,this.getNullCell(Pe.DEFAULT_ATTR_DATA));if(a.length>0){var y=pe.reflowLargerCreateNewLayout(this.lines,a);pe.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(re,ne,y.countRemoved)}},me.prototype._reflowLargerAdjustViewport=function(re,ne,a){for(var y=this.getNullCell(Pe.DEFAULT_ATTR_DATA),E=a;E-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<ne&&this.lines.push(new Pe.BufferLine(re,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},me.prototype._reflowSmaller=function(re,ne){for(var a=this.getNullCell(Pe.DEFAULT_ATTR_DATA),y=[],E=0,b=this.lines.length-1;b>=0;b--){var x=this.lines.get(b);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=re)){for(var ee=[x];x.isWrapped&&b>0;)x=this.lines.get(--b),ee.unshift(x);var oe=this.ybase+this.y;if(!(oe>=b&&oe<b+ee.length)){var ae=ee[ee.length-1].getTrimmedLength(),ce=pe.reflowSmallerGetNewLineLengths(ee,this._cols,re),Se=ce.length-ee.length,_e=void 0;_e=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+Se):Math.max(0,this.lines.length-this.lines.maxLength+Se);for(var xe=[],we=0;we<Se;we++){var Fe=this.getBlankLine(Pe.DEFAULT_ATTR_DATA,!0);xe.push(Fe)}xe.length>0&&(y.push({start:b+ee.length+E,newLines:xe}),E+=xe.length),ee.push.apply(ee,xe);var Me=ce.length-1,ut=ce[Me];ut===0&&(ut=ce[--Me]);for(var Xe=ee.length-Se-1,mt=ae;Xe>=0;){var Ae=Math.min(mt,ut);if(ee[Me].copyCellsFrom(ee[Xe],mt-Ae,ut-Ae,Ae,!0),(ut-=Ae)===0&&(ut=ce[--Me]),(mt-=Ae)===0){Xe--;var De=Math.max(Xe,0);mt=pe.getWrappedLineTrimmedLength(ee,De,this._cols)}}for(we=0;we<ee.length;we++)ce[we]<re&&ee[we].setCell(ce[we],a);for(var Be=Se-_e;Be-- >0;)this.ybase===0?this.y<ne-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+E)-ne&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+Se,this.ybase+ne-1)}}}if(y.length>0){var nt=[],Ke=[];for(we=0;we<this.lines.length;we++)Ke.push(this.lines.get(we));var Et=this.lines.length,Ct=Et-1,nn=0,on=y[nn];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var it=0;for(we=Math.min(this.lines.maxLength-1,Et+E-1);we>=0;we--)if(on&&on.start>Ct+it){for(var lt=on.newLines.length-1;lt>=0;lt--)this.lines.set(we--,on.newLines[lt]);we++,nt.push({index:Ct+1,amount:on.newLines.length}),it+=on.newLines.length,on=y[++nn]}else this.lines.set(we,Ke[Ct--]);var xt=0;for(we=nt.length-1;we>=0;we--)nt[we].index+=xt,this.lines.onInsertEmitter.fire(nt[we]),xt+=nt[we].amount;var Jt=Math.max(0,Et+E-this.lines.maxLength);Jt>0&&this.lines.onTrimEmitter.fire(Jt)}},me.prototype.stringIndexToBufferIndex=function(re,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(re);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b<E;++b)if(y.get(b)[he.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[he.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[re,b];re++}return[re,0]},me.prototype.translateBufferLineToString=function(re,ne,a,y){a===void 0&&(a=0);var E=this.lines.get(re);return E?E.translateToString(ne,a,y):""},me.prototype.getWrappedRangeForLine=function(re){for(var ne=re,a=re;ne>0&&this.lines.get(ne).isWrapped;)ne--;for(;a+1<this.lines.length&&this.lines.get(a+1).isWrapped;)a++;return{first:ne,last:a}},me.prototype.setupTabStops=function(re){for(re!=null?this.tabs[re]||(re=this.prevStop(re)):(this.tabs={},re=0);re<this._cols;re+=this._optionsService.options.tabStopWidth)this.tabs[re]=!0},me.prototype.prevStop=function(re){for(re==null&&(re=this.x);!this.tabs[--re]&&re>0;);return re>=this._cols?this._cols-1:re<0?0:re},me.prototype.nextStop=function(re){for(re==null&&(re=this.x);!this.tabs[++re]&&re<this._cols;);return re>=this._cols?this._cols-1:re<0?0:re},me.prototype.addMarker=function(re){var ne=this,a=new ie.Marker(re);return this.markers.push(a),a.register(this.lines.onTrim(function(y){a.line-=y,a.line<0&&a.dispose()})),a.register(this.lines.onInsert(function(y){a.line>=y.index&&(a.line+=y.amount)})),a.register(this.lines.onDelete(function(y){a.line>=y.index&&a.line<y.index+y.amount&&a.dispose(),a.line>y.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return ne._removeMarker(a)})),a},me.prototype._removeMarker=function(re){this.markers.splice(this.markers.indexOf(re),1)},me.prototype.iterator=function(re,ne,a,y,E){return new se(this,re,ne,a,y,E)},me}();te.Buffer=ue;var se=function(){function me(re,ne,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=re.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=re,this._trimRight=ne,this._startIndex=a,this._endIndex=y,this._startOverscan=E,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return me.prototype.hasNext=function(){return this._current<this._endIndex},me.prototype.next=function(){var re=this._buffer.getWrappedRangeForLine(this._current);re.first<this._startIndex-this._startOverscan&&(re.first=this._startIndex-this._startOverscan),re.last>this._endIndex+this._endOverscan&&(re.last=this._endIndex+this._endOverscan),re.first=Math.max(re.first,0),re.last=Math.min(re.last,this._buffer.lines.length);for(var ne="",a=re.first;a<=re.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=re.last+1,{range:re,content:ne}},me}();te.BufferStringIterator=se},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CircularList=void 0;var fe=z(0),Pe=function(){function ve(he){this._maxLength=he,this.onDeleteEmitter=new fe.EventEmitter,this.onInsertEmitter=new fe.EventEmitter,this.onTrimEmitter=new fe.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(ve.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"maxLength",{get:function(){return this._maxLength},set:function(he){if(this._maxLength!==he){for(var pe=new Array(he),ie=0;ie<Math.min(he,this.length);ie++)pe[ie]=this._array[this._getCyclicIndex(ie)];this._array=pe,this._maxLength=he,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"length",{get:function(){return this._length},set:function(he){if(he>this._length)for(var pe=this._length;pe<he;pe++)this._array[pe]=void 0;this._length=he},enumerable:!1,configurable:!0}),ve.prototype.get=function(he){return this._array[this._getCyclicIndex(he)]},ve.prototype.set=function(he,pe){this._array[this._getCyclicIndex(he)]=pe},ve.prototype.push=function(he){this._array[this._getCyclicIndex(this._length)]=he,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},ve.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(ve.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),ve.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},ve.prototype.splice=function(he,pe){for(var ie=[],de=2;de<arguments.length;de++)ie[de-2]=arguments[de];if(pe){for(var le=he;le<this._length-pe;le++)this._array[this._getCyclicIndex(le)]=this._array[this._getCyclicIndex(le+pe)];this._length-=pe}for(le=this._length-1;le>=he;le--)this._array[this._getCyclicIndex(le+ie.length)]=this._array[this._getCyclicIndex(le)];for(le=0;le<ie.length;le++)this._array[this._getCyclicIndex(he+le)]=ie[le];if(this._length+ie.length>this._maxLength){var ue=this._length+ie.length-this._maxLength;this._startIndex+=ue,this._length=this._maxLength,this.onTrimEmitter.fire(ue)}else this._length+=ie.length},ve.prototype.trimStart=function(he){he>this._length&&(he=this._length),this._startIndex+=he,this._length-=he,this.onTrimEmitter.fire(he)},ve.prototype.shiftElements=function(he,pe,ie){if(!(pe<=0)){if(he<0||he>=this._length)throw new Error("start argument out of range");if(he+ie<0)throw new Error("Cannot shift elements in list beyond index 0");if(ie>0){for(var de=pe-1;de>=0;de--)this.set(he+de+ie,this.get(he+de));var le=he+pe+ie-this._length;if(le>0)for(this._length+=le;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(de=0;de<pe;de++)this.set(he+de+ie,this.get(he+de))}},ve.prototype._getCyclicIndex=function(he){return(this._startIndex+he)%this._maxLength},ve}();te.CircularList=Pe},function(We,te,z){"use strict";function fe(Pe,ve,he){if(ve===Pe.length-1)return Pe[ve].getTrimmedLength();var pe=!Pe[ve].hasContent(he-1)&&Pe[ve].getWidth(he-1)===1,ie=Pe[ve+1].getWidth(0)===2;return pe&&ie?he-1:he}Object.defineProperty(te,"__esModule",{value:!0}),te.getWrappedLineTrimmedLength=te.reflowSmallerGetNewLineLengths=te.reflowLargerApplyNewLayout=te.reflowLargerCreateNewLayout=te.reflowLargerGetLinesToRemove=void 0,te.reflowLargerGetLinesToRemove=function(Pe,ve,he,pe,ie){for(var de=[],le=0;le<Pe.length-1;le++){var ue=le,se=Pe.get(++ue);if(se.isWrapped){for(var me=[Pe.get(le)];ue<Pe.length&&se.isWrapped;)me.push(se),se=Pe.get(++ue);if(pe>=le&&pe<ue)le+=me.length-1;else{for(var re=0,ne=fe(me,re,ve),a=1,y=0;a<me.length;){var E=fe(me,a,ve),b=E-y,x=he-ne,ee=Math.min(b,x);me[re].copyCellsFrom(me[a],y,ne,ee,!1),(ne+=ee)===he&&(re++,ne=0),(y+=ee)===E&&(a++,y=0),ne===0&&re!==0&&me[re-1].getWidth(he-1)===2&&(me[re].copyCellsFrom(me[re-1],he-1,ne++,1,!1),me[re-1].setCell(he-1,ie))}me[re].replaceCells(ne,he,ie);for(var oe=0,ae=me.length-1;ae>0&&(ae>re||me[ae].getTrimmedLength()===0);ae--)oe++;oe>0&&(de.push(le+me.length-oe),de.push(oe)),le+=me.length-1}}}return de},te.reflowLargerCreateNewLayout=function(Pe,ve){for(var he=[],pe=0,ie=ve[pe],de=0,le=0;le<Pe.length;le++)if(ie===le){var ue=ve[++pe];Pe.onDeleteEmitter.fire({index:le-de,amount:ue}),le+=ue-1,de+=ue,ie=ve[++pe]}else he.push(le);return{layout:he,countRemoved:de}},te.reflowLargerApplyNewLayout=function(Pe,ve){for(var he=[],pe=0;pe<ve.length;pe++)he.push(Pe.get(ve[pe]));for(pe=0;pe<he.length;pe++)Pe.set(pe,he[pe]);Pe.length=ve.length},te.reflowSmallerGetNewLineLengths=function(Pe,ve,he){for(var pe=[],ie=Pe.map(function(ne,a){return fe(Pe,a,ve)}).reduce(function(ne,a){return ne+a}),de=0,le=0,ue=0;ue<ie;){if(ie-ue<he){pe.push(ie-ue);break}de+=he;var se=fe(Pe,le,ve);de>se&&(de-=se,le++);var me=Pe[le].getWidth(de-1)===2;me&&de--;var re=me?he-1:he;pe.push(re),ue+=re}return pe},te.getWrappedLineTrimmedLength=fe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(pe,ie){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,le){de.__proto__=le}||function(de,le){for(var ue in le)le.hasOwnProperty(ue)&&(de[ue]=le[ue])})(pe,ie)},function(pe,ie){function de(){this.constructor=pe}fe(pe,ie),pe.prototype=ie===null?Object.create(ie):(de.prototype=ie.prototype,new de)});Object.defineProperty(te,"__esModule",{value:!0}),te.Marker=void 0;var ve=z(0),he=function(pe){function ie(de){var le=pe.call(this)||this;return le.line=de,le._id=ie._nextId++,le.isDisposed=!1,le._onDispose=new ve.EventEmitter,le}return Pe(ie,pe),Object.defineProperty(ie.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),ie.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},ie._nextId=1,ie}(z(2).Disposable);te.Marker=he},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OptionsService=te.DEFAULT_OPTIONS=te.DEFAULT_BELL_SOUND=void 0;var fe=z(0),Pe=z(11),ve=z(33);te.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",te.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:te.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:Pe.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var he=["cols","rows"],pe=function(){function ie(de){this._onOptionChange=new fe.EventEmitter,this.options=ve.clone(te.DEFAULT_OPTIONS);for(var le=0,ue=Object.keys(de);le<ue.length;le++){var se=ue[le];if(se in this.options){var me=de[se];this.options[se]=me}}}return Object.defineProperty(ie.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ie.prototype.setOption=function(de,le){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');if(he.indexOf(de)!==-1)throw new Error('Option "'+de+'" can only be set in the constructor');this.options[de]!==le&&(le=this._sanitizeAndValidateOption(de,le),this.options[de]!==le&&(this.options[de]=le,this._onOptionChange.fire(de)))},ie.prototype._sanitizeAndValidateOption=function(de,le){switch(de){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":le||(le=te.DEFAULT_OPTIONS[de]);break;case"cursorWidth":le=Math.floor(le);case"lineHeight":case"tabStopWidth":if(le<1)throw new Error(de+" cannot be less than 1, value: "+le);break;case"minimumContrastRatio":le=Math.max(1,Math.min(21,Math.round(10*le)/10));break;case"scrollback":if((le=Math.min(le,4294967295))<0)throw new Error(de+" cannot be less than 0, value: "+le);break;case"fastScrollSensitivity":case"scrollSensitivity":if(le<=0)throw new Error(de+" cannot be less than or equal to 0, value: "+le)}return le},ie.prototype.getOption=function(de){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');return this.options[de]},ie}();te.OptionsService=pe},function(We,te,z){"use strict";var fe,Pe=this&&this.__extends||(fe=function(re,ne){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var E in y)y.hasOwnProperty(E)&&(a[E]=y[E])})(re,ne)},function(re,ne){function a(){this.constructor=re}fe(re,ne),re.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),ve=this&&this.__decorate||function(re,ne,a,y){var E,b=arguments.length,x=b<3?ne:y===null?y=Object.getOwnPropertyDescriptor(ne,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(re,ne,a,y);else for(var ee=re.length-1;ee>=0;ee--)(E=re[ee])&&(x=(b<3?E(x):b>3?E(ne,a,x):E(ne,a))||x);return b>3&&x&&Object.defineProperty(ne,a,x),x},he=this&&this.__param||function(re,ne){return function(a,y){ne(a,y,re)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreService=void 0;var pe=z(1),ie=z(0),de=z(33),le=z(2),ue=Object.freeze({insertMode:!1}),se=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),me=function(re){function ne(a,y,E,b){var x=re.call(this)||this;return x._bufferService=y,x._logService=E,x._optionsService=b,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new ie.EventEmitter),x._onUserInput=x.register(new ie.EventEmitter),x._onBinary=x.register(new ie.EventEmitter),x._scrollToBottom=a,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=de.clone(ue),x.decPrivateModes=de.clone(se),x}return Pe(ne,re),Object.defineProperty(ne.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),ne.prototype.reset=function(){this.modes=de.clone(ue),this.decPrivateModes=de.clone(se)},ne.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),y&&this._onUserInput.fire(),this._logService.debug('sending data "'+a+'"',function(){return a.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(a)}},ne.prototype.triggerBinaryEvent=function(a){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+a+'"',function(){return a.split("").map(function(y){return y.charCodeAt(0)})}),this._onBinary.fire(a))},ne=ve([he(1,pe.IBufferService),he(2,pe.ILogService),he(3,pe.IOptionsService)],ne)}(le.Disposable);te.CoreService=me},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(se,me,re,ne){var a,y=arguments.length,E=y<3?me:ne===null?ne=Object.getOwnPropertyDescriptor(me,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,me,re,ne);else for(var b=se.length-1;b>=0;b--)(a=se[b])&&(E=(y<3?a(E):y>3?a(me,re,E):a(me,re))||E);return y>3&&E&&Object.defineProperty(me,re,E),E},Pe=this&&this.__param||function(se,me){return function(re,ne){me(re,ne,se)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreMouseService=void 0;var ve=z(1),he=z(0),pe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(se){return se.button!==4&&se.action===1&&(se.ctrl=!1,se.alt=!1,se.shift=!1,!0)}},VT200:{events:19,restrict:function(se){return se.action!==32}},DRAG:{events:23,restrict:function(se){return se.action!==32||se.button!==3}},ANY:{events:31,restrict:function(se){return!0}}};function ie(se,me){var re=(se.ctrl?16:0)|(se.shift?4:0)|(se.alt?8:0);return se.button===4?(re|=64,re|=se.action):(re|=3&se.button,4&se.button&&(re|=64),8&se.button&&(re|=128),se.action===32?re|=32:se.action!==0||me||(re|=3)),re}var de=String.fromCharCode,le={DEFAULT:function(se){var me=[ie(se,!1)+32,se.col+32,se.row+32];return me[0]>255||me[1]>255||me[2]>255?"":"\x1B[M"+de(me[0])+de(me[1])+de(me[2])},SGR:function(se){var me=se.action===0&&se.button!==4?"m":"M";return"\x1B[<"+ie(se,!0)+";"+se.col+";"+se.row+me}},ue=function(){function se(me,re){this._bufferService=me,this._coreService=re,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new he.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(pe);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,pe[y])}for(var E=0,b=Object.keys(le);E<b.length;E++){var x=b[E];this.addEncoding(x,le[x])}this.reset()}return se.prototype.addProtocol=function(me,re){this._protocols[me]=re},se.prototype.addEncoding=function(me,re){this._encodings[me]=re},Object.defineProperty(se.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(me){if(!this._protocols[me])throw new Error('unknown protocol "'+me+'"');this._activeProtocol=me,this._onProtocolChange.fire(this._protocols[me].events)},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(me){if(!this._encodings[me])throw new Error('unknown encoding "'+me+'"');this._activeEncoding=me},enumerable:!1,configurable:!0}),se.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(se.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),se.prototype.triggerMouseEvent=function(me){if(me.col<0||me.col>=this._bufferService.cols||me.row<0||me.row>=this._bufferService.rows||me.button===4&&me.action===32||me.button===3&&me.action!==32||me.button!==4&&(me.action===2||me.action===3)||(me.col++,me.row++,me.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,me))||!this._protocols[this._activeProtocol].restrict(me))return!1;var re=this._encodings[this._activeEncoding](me);return re&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(re):this._coreService.triggerDataEvent(re,!0)),this._lastEvent=me,!0},se.prototype.explainEvents=function(me){return{down:!!(1&me),up:!!(2&me),drag:!!(4&me),move:!!(8&me),wheel:!!(16&me)}},se.prototype._compareEvents=function(me,re){return me.col===re.col&&me.row===re.row&&me.button===re.button&&me.action===re.action&&me.ctrl===re.ctrl&&me.alt===re.alt&&me.shift===re.shift},se=fe([Pe(0,ve.IBufferService),Pe(1,ve.ICoreService)],se)}();te.CoreMouseService=ue},function(We,te,z){"use strict";var fe=this&&this.__decorate||function(pe,ie,de,le){var ue,se=arguments.length,me=se<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(pe,ie,de,le);else for(var re=pe.length-1;re>=0;re--)(ue=pe[re])&&(me=(se<3?ue(me):se>3?ue(ie,de,me):ue(ie,de))||me);return se>3&&me&&Object.defineProperty(ie,de,me),me},Pe=this&&this.__param||function(pe,ie){return function(de,le){ie(de,le,pe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DirtyRowService=void 0;var ve=z(1),he=function(){function pe(ie){this._bufferService=ie,this.clearRange()}return Object.defineProperty(pe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),pe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},pe.prototype.markDirty=function(ie){ie<this._start?this._start=ie:ie>this._end&&(this._end=ie)},pe.prototype.markRangeDirty=function(ie,de){if(ie>de){var le=ie;ie=de,de=le}ie<this._start&&(this._start=ie),de>this._end&&(this._end=de)},pe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},pe=fe([Pe(0,ve.IBufferService)],pe)}();te.DirtyRowService=he},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeService=void 0;var fe=z(0),Pe=z(79),ve=function(){function he(){this._providers=Object.create(null),this._active="",this._onChange=new fe.EventEmitter;var pe=new Pe.UnicodeV6;this.register(pe),this._active=pe.version,this._activeProvider=pe}return Object.defineProperty(he.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"activeVersion",{get:function(){return this._active},set:function(pe){if(!this._providers[pe])throw new Error('unknown Unicode version "'+pe+'"');this._active=pe,this._activeProvider=this._providers[pe],this._onChange.fire(pe)},enumerable:!1,configurable:!0}),he.prototype.register=function(pe){this._providers[pe.version]=pe},he.prototype.wcwidth=function(pe){return this._activeProvider.wcwidth(pe)},he.prototype.getStringCellWidth=function(pe){for(var ie=0,de=pe.length,le=0;le<de;++le){var ue=pe.charCodeAt(le);if(55296<=ue&&ue<=56319){if(++le>=de)return ie+this.wcwidth(ue);var se=pe.charCodeAt(le);56320<=se&&se<=57343?ue=1024*(ue-55296)+se-56320+65536:ie+=this.wcwidth(se)}ie+=this.wcwidth(ue)}return ie},he}();te.UnicodeService=ve},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeV6=void 0;var fe,Pe=z(15),ve=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],he=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],pe=function(){function ie(){if(this.version="6",!fe){fe=new Uint8Array(65536),Pe.fill(fe,1),fe[0]=0,Pe.fill(fe,0,1,32),Pe.fill(fe,0,127,160),Pe.fill(fe,2,4352,4448),fe[9001]=2,fe[9002]=2,Pe.fill(fe,2,11904,42192),fe[12351]=1,Pe.fill(fe,2,44032,55204),Pe.fill(fe,2,63744,64256),Pe.fill(fe,2,65040,65050),Pe.fill(fe,2,65072,65136),Pe.fill(fe,2,65280,65377),Pe.fill(fe,2,65504,65511);for(var de=0;de<ve.length;++de)Pe.fill(fe,0,ve[de][0],ve[de][1]+1)}}return ie.prototype.wcwidth=function(de){return de<32?0:de<127?1:de<65536?fe[de]:function(le,ue){var se,me=0,re=ue.length-1;if(le<ue[0][0]||le>ue[re][1])return!1;for(;re>=me;)if(le>ue[se=me+re>>1][1])me=se+1;else{if(!(le<ue[se][0]))return!0;re=se-1}return!1}(de,he)?0:de>=131072&&de<=196605||de>=196608&&de<=262141?2:1},ie}();te.UnicodeV6=pe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CharsetService=void 0;var fe=function(){function Pe(){this.glevel=0,this._charsets=[]}return Pe.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},Pe.prototype.setgLevel=function(ve){this.glevel=ve,this.charset=this._charsets[ve]},Pe.prototype.setgCharset=function(ve,he){this._charsets[ve]=he,this.glevel===ve&&(this.charset=he)},Pe}();te.CharsetService=fe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.updateWindowsModeWrappedState=void 0;var fe=z(3);te.updateWindowsModeWrappedState=function(Pe){var ve=Pe.buffer.lines.get(Pe.buffer.ybase+Pe.buffer.y-1),he=ve==null?void 0:ve.get(Pe.cols-1),pe=Pe.buffer.lines.get(Pe.buffer.ybase+Pe.buffer.y);pe&&he&&(pe.isWrapped=he[fe.CHAR_DATA_CODE_INDEX]!==fe.NULL_CELL_CODE&&he[fe.CHAR_DATA_CODE_INDEX]!==fe.WHITESPACE_CELL_CODE)}},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WriteBuffer=void 0;var fe=function(){function Pe(ve){this._action=ve,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return Pe.prototype.writeSync=function(ve){if(this._writeBuffer.length){for(var he=this._bufferOffset;he<this._writeBuffer.length;++he){var pe=this._writeBuffer[he],ie=this._callbacks[he];this._action(pe),ie&&ie()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(ve)},Pe.prototype.write=function(ve,he){var pe=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return pe._innerWrite()})),this._pendingData+=ve.length,this._writeBuffer.push(ve),this._callbacks.push(he)},Pe.prototype._innerWrite=function(){for(var ve=this,he=Date.now();this._writeBuffer.length>this._bufferOffset;){var pe=this._writeBuffer[this._bufferOffset],ie=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(pe),this._pendingData-=pe.length,ie&&ie(),Date.now()-he>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return ve._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},Pe}();te.WriteBuffer=fe},function(We,te,z){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.AddonManager=void 0;var fe=function(){function Pe(){this._addons=[]}return Pe.prototype.dispose=function(){for(var ve=this._addons.length-1;ve>=0;ve--)this._addons[ve].instance.dispose()},Pe.prototype.loadAddon=function(ve,he){var pe=this,ie={instance:he,dispose:he.dispose,isDisposed:!1};this._addons.push(ie),he.dispose=function(){return pe._wrappedAddonDispose(ie)},he.activate(ve)},Pe.prototype._wrappedAddonDispose=function(ve){if(!ve.isDisposed){for(var he=-1,pe=0;pe<this._addons.length;pe++)if(this._addons[pe]===ve){he=pe;break}if(he===-1)throw new Error("Could not dispose an addon that has not been loaded");ve.isDisposed=!0,ve.dispose.apply(ve.instance),this._addons.splice(he,1)}},Pe}();te.AddonManager=fe}])})},62522:function(at){"use strict";at.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAABYCAYAAACJfF6vAAAAAXNSR0IArs4c6QAAIABJREFUeF7sXQe4FcXZfmd2T7n90jtYsFGModkVUGNJ7BVTVIxdI5ii/iYmxkRjEhV7ohF7wQaxBqOIxgqCQSkWUKRIv72csjvzP9/M7p7ZPefce8EGhOOD95wt0+ed9yvzDcO2z7YW2NYCm00LNL19cQ/H4j/nEt+vKK38LhtyVWazKdz/UEHY/1Bdt1V1Wwts1i3QMGviGRLyJgAVVFCb4YiykZNe2KwLvZUWbhswbqUdu61aW1YL1L0z4TrG8Cuz1IyxOytH3njOllWTraO024Bx6+jHbbXYglugcfaEC4TErZEqNAN4q2rUpEO24KptsUXfBoxbbNdtK/jW0AINsyfsC2CGlIgzBgGJaRzi9jKeeo2NuDO7NdRxS6zDNmDcEnttW5k32xYYP3XZFADfA6QFsKWTj+2/e7HCyld+azeU1S8AsDOAjxnEGZWjbn7z26rc+H8u/yWEPMti9kV3HdN7+rdVjs0h323AuDn0wrYybDUtMH7a8lsh5QW6Qqxl8rH9yopVrmHWhLMl8HcAL1UK93i21y0N30ZD/Hj66rJYKjMZAid5+T82+dj+J38bZdlc8twGjJtLT2wrx1bRAmc+tWy8ZLhb4yJWTz6mf69CFSO2WF9av5QxLG1w2CH99rmx9dtogDP/uXygFHIqgCG6zOyhxkzf0x4/ibnfRnk2lzy3WGBsmDXhTSkxFAxSAksB9jFneIFZztMVw25Zt7k08Jcpx7p9d6lAPD5BMHkKY/K33V9e8MSXSe+berf+zYmdEZO3VpZUnf6/5od35tTloyTkO15bz5t8bP89CrV7/bsTvg+B+2yOoWUjJq36pvomms/4aStugxTne6A4td/RfU+4ijHxbZVnc8l3SwbGP0ng0gIN6TDgXhv896Wjbli+uTT0xpZj7ZihR0gmJwPoocmH/E33GQv+sLHpfBvP18+eOBFS3sAYplWOnHTst1GGbyvPs5/5oqvjOGphZmBP3X1sv+MLAuOsCVM4w2sVIyfd9m2V1c93/D+XHQWBS7Kl8e8/cGhPsob/z3+2WGCsnz3hcEg8X7QHpUwxxi6uHDXpzi2tl2tG7z4ky8UcAHG/7BJ4vueM+d/fEupSN2viSwzyIAbMqxw1qSBj2hLqsallPGPqshYGlDCGP959TP9fR9ORn1yUaKy1llQ4bCf2LYnQm1q3/5X3tlhgbPrg4h6ilR0NoBJgO0vIsQB2zBuEUl5WvedN121JHbruoKHXCSlNZ986Bjat+4wPztgS6tEwa8JqSUyXyb9VjbzpvC2hzF9lGcdPXbYSQG8p+ZH3HNf32WjaTbMvPsQFP7xq5I2XfJX5bkvrq2uBLRYYC4on7168JxPsCgkcGdxnEFzKMRWjbnrtq2u2rzeltWOHPCKBU1QuDNNjrOXkzi99Wv/15vrVpV4/awL539mc48qKEZOu/upS3jJSGj91+ceA3D4Vk90f/sGA2mip62dPuF5IPNBp1KT/bhk1+t8r5VYFjH73Ncye8CspEbBECTxVPWpSQV3P5tjla8cOeVMCezNgJUtnd+v2xkeNm2M5i5WpbtaEJgaUMc4urxxx45+2pLJ/FWU9Y+qyxUz5MPY7uFB6DbMn/LNy5CSSdrZ9NtMW2CqBUT52otWwXZ80AMtr9wVVoyZpd4TN/LNu/916iZhFRiMLjP22x8sf/H4zL3Je8RpmT3xfSjlUQl5fPeqmX2xp5f+y5R0/bdkqJnDF3cf1J+NZ6FP3/mWdrHT69xUjb7zoy+az7f2vrwW2SmCsfeOCATxmf0ZOWV7TPV01avNfoSXA144d8iSAY6jcUoq9er6y0Hf9+PpGwVeccv27E2+DkOcD7M2qUTfSlrf/mc/oV6S9Q92KVY1Z9H/8pH55vom170w8llbryj1vJN/BbZ/NtAW2SmBsmD3xH1LKM/02t5j8XvnIm/69mfaBKtYXhwwZYbns94A83Ctn4/L6RJcRc+Zscftl62dPHAUp/8gku/1/DQDGP7XiO5KJI+85tn9B16r6WRNulen0b6r3vyNP97g5j89vs2xrxgw5jjGc0W3G/KMYIL+Jsmx1wNjwzoS9JZNvBGyR4f6qkZNO+yYa88vksWbskPcBDDXSeKrHjPlbjF70y9R9a3p3/NSlxyezpdNvP6l7U6F61c+e+EjVyBvHbWqdT3/mi10t1zlTSowF5E4ASwJYx4A5kvEn7L59HrlzBNviFtNi7bF27ODnJZhPFu5Yt1pMGLJw4dcevHfrA8bZE5+QUvqAslzEsHun706q29SB+E29t3bMkMslwzWUH62KEjisx4z5L37d+cvHYKEbZYlyoMJuqXFjpby8NCvczjEeY04qYYML2+ash+uyOMAtBlYGLsshEQNYDC6LcUtWA7Ic4EwIxjizOJjkAsxidJGJCsncwVLCBhhnknFIFWiBQzAOFuiDAbrHyKddswPJpNADlUkwSbsyBJikLWt0X0gmXMaRhbBWMmmtEKBnJHkjuABzIaUEE6SpqBdSNoOLLIfMgCHrZuM1YI4DLh3Eso4U1hqb7nGRzXJHCJltTJSiEYl0Fk5jFp+iBWdDMIaCW+bOfnpl/zuP6rOsUL81vTtxqCvkiVWjJl25Kf3q7cMm9yde7H0GLHGZnHjvMQOe2ZQ8Nrd31o4dulJC9vbLxYAVYHig+8vz/+/rLOtWBYzyldOTDWXVtBE/Ro3GGT+hYuQNpLPb7D9LDt6hqlyUUrTmnTjDn7q9PP/6YoWWr8BGBVhtLUqTtSXlJYmycgi7Ck4sASa7u+lYGWDFmO30hcNLYKE7wBOMsTgYejLJ4hDclpIiRYsqSG4ziVJIZlFUGElgxRnBkCLeGp0UYOuP1MidGzxaujGvqVdzjxf5bqCftyKY+UTTMB7JS89/1pezKO/Q+8wvT2TI0yoU3DMKHVSU6iUlY3AkAS1nrWDCYWA1krEWMAWiDgTWSMgUlzIlpFwvuJuyZXwFIFKIpzOOK1en+x1xmpVe+4ps/M+MkuSGJnRCC4YXB9lo/585bfmVUsqrAKxnDA8I4AMmmC0hhzOGEwB00esH9Zz8e1m834RbjmBkhNxiP6vHDrmCAaZaYi1n1v7dXp738ddZqa0KGGvfmrAdt/CZbjBWXzlyRRfGHt88N8MT9wFY7Us7VKRSg7O9GlsqYGdLIXgP1121I+OpXnDRHdyuZpbsxJjVSQpWCclKmJQ9pFBglpRSJomAqWmv0MDXwtDcMJAp+BGFq2KQYsJQ9Huh3/41Dzl1HxSARq93FHCZMFbovWLXjCnhI6AHZBpqc5/QbR/sdENFytce7Ppp5upEeekSRurhP+Lb/ug3Y2jpNxKly94hMktAm5IMKTCWAU9+zJCth4y3CCHXcJlOwyIWm21yXb4STDaCZ1rSPLH2Bvu2C/YQ//7znuL6Fd0WoIVdpTKXJz42P15hV10Mhis1c1f1md0Fy8b9fPG+q+OVxNSBRhc8ZsHiApylwUorIRprIMuTiv8z4cKVaV0hYUGIVkiXQ4hmSLcesu/2EIsBpDdApnpDDv8CEoMhscBodl0mfwR8KZ0gzZF1Ywf/SoKRzSDOwY/rNuP9uUYXfy1ftypglO9eWtUgUrXekrmyetSkvl9FqylxE4ivWwfLcsFdC6LbWjUog832xOLqllaXV9t2SUZaXTi3ezAZJ5GzJ3N5FzDeFRI9mc07A6ySwA2CE0urUF5FUiQhpS0J49RQ9yjYV1GB/4U08hFws6p1troPRLIcidUfdbxcHqAGOA6pYqZIiQyYbAVjDYDbCMbXCVc0AW7dYj4ocV/ZFUeu4X1I90gagvoRLf+87uQNl7/tSrdFZLJpIeBK+geImJWQkkHINIRwmCsAkYgxtyVLugomShgTMt0kZQLSlRAiDVkhITYkId1WyGoBIco1aKYciIGdIeesgmzsBbluIeSJj+s58k0ZTTreuG0/uVUBI1W1ftYE2mM8jCRAy2Kjyobd+O6mNNZvfwv+i8HlXbK1sifSvNrm8c7cinWyLd6VMbu7xa1qzqxO4LyLBOvCGKohUQnBysBo7Y0OB4PB+ZjnPRPmOLq0Siw1eifKrfw6mbxHsxdTxM3VPPe+yZY01zF5nS61foamIf2NDpIoI/OoapBZsbL65TPYROid/HLk6rOxvDZXyxxiFqqr10u6zY26FypYobbVdfV5ajgvP21SmTbvtD9Klr0HKxUOuZjPbr20aLiwMP+lnggUr6Fcw6QszUtxZ8mlmBffW1eDMTky/Urr8al76rq4XzRKiRop3TrhoEYKd42Q7jrhOGuyWacWqUxNS1OmkWWd1kw6kxbSW/yTQCKblK02kwkJ0ZxlMiGYcAUTMgaZtJtcR0JUuhCuC+E4EM0JuCs6w1UAOQgSV+XkmU2Zk9/kO1sdMDbOnnCClOwByeRKKXF39ahJ10YbVOno0n0rG+viXUsEujPBezLGegsXfTh4HyZZDylkD0antUlUMrBySXrLnOwUiKlqSHrj0pdkc0o5z4ziI1wIMQpN9RBihpV6vknGm4hRNAugTOkE1axStooc8nldHczuQmKsLm8Ah+qL94JWOOZLoAaaUTVDeftlNhE+QCC/jB6squS9awFa5Z4JkMtEMm8FYVRnszlVmbz6UTtoSVbZYAKVQyQ7PwFdB7NP9QoVXAuht7d6+Te9l0nFp1rRu57pviPc8i4o+Wx2MBT9quaqXAB28/oqVy4Fxt7w0gpg0gl7+aqsGZ4qGY9/lVDsWV1osi/tkX0Luzrz0N39Akm0YKCz0APPQEpxwVhKSlnPGKsTUtRIR9RIIdesRo+113e6uef2rR988qMVv56damiuyWRaW9GUTrkMrisgkjakEGUiVmFlU2sbnLIyOCGAfBxkSAsj+TeJeB3Ma6sDxkL1llMGHipS1rGMyb6Q6A3BukOgE5R+jmkLnz+PNvsuM2tYiMN0sOc3y8c2k/q0KZZvXBndss5o3XEUkkvnwG74OsKEtl2e9+L74v7yCWji1Xk9/oOWB3F0y30dGgkEwv8uOQ5TSnVMkCGZ2eLCxiszNnMaIOUGIeU615Fr4IgFaz9fMzXT4NZx28rYaSuTSDRkurXAmROHO5w051sAc9zqgdF9aKffs1b+a9J3RyHFJx8B2QgTigAvFVkymEqUaxVK1385yLRAS0eIhrYCe/YTM02TpAQkMELeTHDPk30NohGQqUh5FJnymZXHMXxx3rc2q+YxlvsgiUi5i+UR1ClCBAtaS6IEt+CKF1ZehfI18CJEJs2yRtQVfhbm2hgdNAER9wh5MfsSpSHjpWjdaS+wdAtKF7+dI+9RYlxkrQus/GZbRHDQJ9rm+Izaghp4Nf5ZejreSB4GlykbjPpcWvcz7JhZGGh9cgO+sE7mxqrrsDA+PHj/qOZ7cWTLg6GeUTRD4LP1S9b9JF3XsiZt8VSpY7c2JxozdiMyS5fCGT0T7ubOGrdqYEw/OmC3WGNinnClct+Jgk1uAhSnCG2Sh0KT9Ute+6bza7e4aoR4ui0PGUMLRQhoDEjx5LyNrU8gxptIv7GJtFsp/4G2EjbvheRn7+VcSc2F0v8uyqqR2mE4eUKh5KM3wFPk7/31VCSaarFcNvAemJM8EKutvqiUdTiq6T7wwu6YRVtwXmJv3F15OVK8DF3dL3DN+h/n1Yu63kk7Tyx/f8WfrCRrjgurWTK7pU42prEOmcGD4JiGyw531zf44FYNjM7kHU9mGf6oJN9eY7T4SuygnX32Za7GhUZ7VEHvqxA9lhcARjsd6LOOfKJg6AWV+42hIywg4gfF7cDMIEW+0h+a7eB9z12LgEGR0RFisKbay9N1hfSSAV0LJ+abdvKXq+KNp97xgDpfS9WeiBvpUJ/+muYnkxrr9SCY9CH2JrUeN795cu3XOmh/iJIKJJbMhVW3us1nzaIEY2MTMFTXMLy05I+x3JXAf9Nf3DyJQOmnTcU5vWKMv5fLjsOUygsRlyncsvqIXN2M14SUi5fPXXluvJQ1Omm3IcOtxngy0WyvrEv3BTLYzHWNWzUwtt65ww/jLn9QEDCaKBiwEV1909Jn8KO8GRoeqznbrX6wLXTK3StkVzRFvVw6+fBTeK5EmYtZp0JMJ1zW8DQKrwy5t3NukhD+hhPaz+IHL9ItEF1L/PIWneO0QYU2uXhGg8A6X2BUBj0YEn/1GxE4D4msyhwkhVYle3qA0Dv+4qDsTLRhxtXpcRI5zYKYsGMODbNvc22Q7bUzrOZa8Ib1hlwabqFC7VK4x8Iek+EeD/VSpA/yx3d0/CkzDQG9t6rnl8m7YtiZaqweuLf6Uvyg8T7skpkXeC+YI4tJ+fnn81b83OWsgUlrQ0yI2qxrN6WbmlpTnZAefifoCJICy/03SAvbyGqrBUbyPUxt6D8+LmJ3amAsNk2LgYffatH32gLAQgAZGi5eosWms5mnDzXR8hXLn7zSPF922sCilD2FaG9RGMkfJpX9wfrtDayaC1m3RN23xlwDlHSFXP8R5Nt/Arjt7XjRrDywDkdTi2KMlQAffhHQZWeIF84DpAO+ywmQiQrPckxT2N/5VoCf1X8KufQlr55ha63GM822Wbch4PtcCvHGNZDrFxVHcMq1/wHgIy4E3CzEa78Daj/xDMvR/or2abElAUBJN10WNw1k/LCaxSCxEE60u7y0IaIXXZK83il2v1Ce7aUV6XAhVi6dv/pKxniNbcu1krs16Ra7wSpraUqvRurxx+FcRdrIzfSzVQLjF8/0LpULM/0qZfx7JeXJmzVe+G4o+X57bfdNeJDkGsznN20xCZ+NRlmFv6eOtgSHffWizLNt2DbSregH65C/ALESiDf/AvH5zHzGyyy1DdkHTJNr5IRDT0Sk3W+H3Qq+y5GQzevh3rs/2K7HwDpIez+JFy6E/PRfHt8mNkZfuQJKxcyyzWFcDpVGgg0aB2vMH3VaC5+EePkXsE57A6wy2BbbZreIT56DeOF8nZ/6FBjK8QpYp/8HLF6uvI3dx44BBM1F3WdR4ZvtdgKsg3V8Y+fRo4F1tJ2DGJX/fI6r+e/7eftSR2jZES6scc+BdR8M8fnrcKf9UJW3raU1l4MpqvsuWDSQuUd8zZEYxnuz4Uy5xmSLhcZVWxDsv5v/np9DWPKSQqxa/uHqaxnnG6SUqzmz1ieYqM3EE42OW9f64C3IbgPGb3BV+OLvKE0vLqt0m53ybj26HF7WKXGzIB//Dn/aY4TRhIo8b8UB2rJMcQzShlNvshP40B+CJavgzv0H0LwmkmAhRuc9YieA8t5qosMmj9sqsEQ5ECsFq9oOfMRZGmhWzgGaVwP0fKwcLFain7dLIT5+FuKNP3lMqwAL8EY+6z4U9slTlbjs/udPkB9OhfWj6WAl2u1DNq7SaRA75RYYidWKqVqQGz6B+9gP9G+FWTofk1cRteSH3gq+sz7fy33tj5CpGlU3PvgUINkJ4oOHgHSt1o1W7wA2+ESwRKVidO67t0O8c6PO23TXNFtTuOD7/Rp8+E91Hm/8GfLd2zSr9T4KchTZlWC7nwbrIL0t17n/IMiaxV7ZuUeFiwwiagdKhPpaJe5lIBzYp78K1nVniMX/gvvPM2kLe2EQz0s60jcl3WDtcwmQqoNMNwKpWv03XQ+01kDWL1eLInNaIZ1WQDiA6xi6QlKH5FQfG8n/iigsik0qBibE6s8/WnujZfO1rovVUsq1Nhc1djbe4LgNLdsNQGZzNsBsVYyRxOc1s5Bsaiov4yzbqUvP6sPKqkomuT4wBh6x5rocFbLDQyb8pM8Pciu0b7jweaOaaDQhTnocvO9IiA+fhvPCxZ4uDUD1AMTO1MfPZB86CnLVewGoqGAwBZTnvkKe9d0H9okPKZFZkmjmZIBsi/7nZsG676Ymslj9AeTaBWBOC2SmFcg0AdlGyEwKsuYTyDV01Ehupc/l6Rl8mAV73D/BegyBbK2Dc/d+sI67D7z3cD3xnbQCAaqnEt/pn3TAynuoeso18+E8eoTB5nLtFtL22iWwTnkesnk1xMuXQ9Z+ohYT6+C/gg08FHBaIeY/Cla9Hfh2YyEzjRCLnoCYdw/QsAygxUehdAH6511jJZ1hETjFyyBXzIb4/FXwXY/yyu2V381CiixYWXewLgP14vLpTA0+6z+EePcOSGJqGuVDIE8AZB9xK1i/vVR5Vds4aUgnpVgzXWexUsjapZBLXoTMpnR/ZBohs9Q3zQqAZZ23xT+AzVw+Kt8uuyB22nRISnvtIr0gJjuBlXWB3LAEYtFUWPv+XAGiyjvTAmQaIFMaRClPd/Ydqj455pj/zWSNftNG4c+fEwFLVg72YclJCrl2xeK1t0DytczCSjCsdaS7oYzH62W8saXvjUizbaJ0sZXlq70uT4S1ZgCSLXVl5Yg51V26Vx9eVpW8MQDG3Lje9IwLEUR/BBFK0mTlcdhH3wk+YB/F3sS7d4OVdVK6OVT0gjX0FK2PW/8J7ZEGEhUaTKaekQcmoYLacbBEJ0iaWG5Ki4WK7nCgtDPi57wDWDbcWXdCLHgCiJcCsSRYvBIgYGhaBbn8zQLOf0YuUsA64ApYo87VmNO4GuK/98PaXx9a6L76B4gPHlQTk0RPWAnIT54D67ITrCNuV6DhPD0ekkT56I6fvJkmgdJuQOt6NaH5/leC9dhdM8QuO4OVds4VjAw0NZ9Ctm7Q4LvybYi3/wzJSDTNbW1U4rHPIGlFIda472UqTfHW9bAO+A34sNM73P/is9fgPDEOMPz/Qi+rRXAK+Hb7dTjN6IPurL/BfY0izhmBQCJmJdZ7BGKnPglZsxTZe8eqvuc7HAL7uLvUGHMeP1UvTKQ+GHsVeN8Reux9+gpYCY29LhAeMLZb0I2nk3lJMinWLl+y/jYKSk9nF4HJNSIrakqteJ1b1tjctxLp/1nGKB8bPBCuHAQpi8aPa7eTog/45jO1rBuj1XVBLlmZjGOJtBt3Um4ZHGdEMmH9lHbG+5+8Po9cMBlgVKj10yjozWAnED/jZQVQSnSNWGwL1pNAzVvh5cq5cB4bFwBjSOw0zSjVA2Af9hc1AVi8RInRsElUToDFEjnQI0bnZgE3o1lMthViyb/hvnylLpsPHqbMQNvKuuyK2OkvBEYN2VqD7B3DwYefDZaogniboqE5YBX9YJ/5uqqW89y5kKvngX/nNCXquXNuU2JbSBzxK+Qp9iSBunpAX6DwhtYxD4JvN0axaLF0plI38O+OV/VQrE1kYe14OFj3QSAdo/PcOQCPhZSFwRY7SlYIFYZRZa1CM3LwwaeCb7e/Bm0Sa0lHyWkxs8Gq+oFV9dELQs2nqlxixbtwFePXuswQ41UXBPiw8WBdd1GirFJfWDEwuwSs1x5gSTIm6Y9ib9TGavGkfPW0cF67HuLtSYEDkKnH87+zHQ5C7IR7FMATawSxQiphSTXEp6/CeeInavFDNoXY+JfAuuwAZ/rlcOdOzhmolH7T15WEtQPqqsf88vWI+Xp5s28LmhKlrFu3vOH5eNKqY3G7JlZi11rxWGOs1G7hiVjGSjBhKck+7Nmw0XgQfYGpEBkL2GkffqmwZF+LKK222z465M9w5cVqj7HpEqbcIjyBxHfV8xCo0IAwLZ0+EwjSMxuFGBhZn10JmRWQGQGRykJkSM/yDXy4hfhPZ6pJIVtrwUq7gFX2gkw1wJ17H9Bap9lOayPsH9wAVlIF57Ub4M6ZrEUwEktVDNZ2PiVdYA0frydGlpgjibQEABQrinR8HmWykmBq4nMNnrEyuO/cCqSKn8Kq2p/biJ3zpmKxxApJj5W9bQ8l9lm7/wjW3hfCfeV3kGs/QOzsWWoyOdN/AT5gP7AdD4Xzr4shl7wQ7LQMgYmBKvaJT4GVddWTlvJ4+FDYR98Lvv1BEIunQ3zwAFDWA/b3rldA4D5/gWLJfNg54AP2V7pS59lzizNs4cA66DrwPqNUu0rhQrxzG8RHTytWb+09AeKDRz0Rlqk2tPf7Jaz9LlEDNHPLd4GWdZ6xyke2In2j+s3XK2rDGuszArEfPQEWU0Fu1Mf98F9wpp2r+4PAkwA5VqbGi0xt0NHjinz4bkcjdvStECvmwvn3FWCl3cAHHwtryLFwFz4N8eGziB11qxKjlZhN8X/XLAQavoBM1UEseRli0TPhyCTtjbUvcV86AulaB3aJDavMhl1qgyUssBhX/2B5BjvfDchD17Z8gUO+JV5TBTu2qAdyOEKBh++AvXBi3e17VGRY9iIwdgwDSE9Cr3wEiSeYFHd0n7mwYKT1rwcYH9h1nJT8YSMoV0GfsHC7FytKIe4U2UDviSAaGAVEVkJkXIi0A2Q1MJq6k0JOLB0dA4XSCd4lJiZcMDcDa9+JsMdeDtm4Bumbh+UsiVIgfv5b4J0GwPnPJDiveae8+vvvPKZVzFxEYiMxFPvAn2uWSOxDKdU99kkskUDTyWgdFgR4lx1VEdN3HQK5blFBCddnDFR+a+S5kM3rEDvmFpVG5ubdwfvvA/u4fyiwdT98Fu7L/4f4+f9VE9B58TLw7Q4E3/lwBfDOi5dCLHzUK1euxXILn0Rs/Fs5dtZSg+zfvwP76HvAdzhYMyLSmxK7SlJgcAoBS0HYaZktA7MTEB8RMBJjzG1xC/WrcBA75gHwHccG3ZN94VeQn0xH7IdTFaMia7vzxGkQa96nOOCwD7wc1t4XqD5M37wH0Oody+I78kf87fP0cb5es6IX4uOfA6vonjesss9eCnfu/XpBUM+TTloTJ27nC1YaDHSfxw67GrJuBdyPXlDMnPUdAWvHMXDnPgCxej5iR1wHsfQNuHMfBMq6qrbjuxwG3nMwnNdvgfPqtR4wdnzaB0+amxk6YIqRjkRrTVYBokX/SmzwhAUe46qeKq57QF4L2vQjiuNCMyJsc881NgVrZ2hdgL83zWbHA6xroflNIr4Q7gk9Zy56O3pfFW3D2xdV2sK2K/e+obbhrUs6WXGMEILIOErHAAAgAElEQVQNqBx1w10dBQzzOfnQoGkyI8Pn5vpwvykJtvdOIJ5JFTSOVisFjKkcMLaXxJe/T8Cko+4TxtnDfozYkddDppuRuW0fSIv0g+VAohLxo28G6zwAYvm7EJ+/qXVp8XKIms/hzrymbT0j8cLv/hix718H6WaQuedoyJYNSomvxGYCRkFHfngiavchSJw9XQPj5CMhV7Ud41NLt5rxxM94GtLJIPvYaYidcDdYvBRi1ftwnrkQrKInYqdM8RjjZRDzH4F99GTwgQcpcMw8cITyGwxEt0gDWwf+BqzrrkqsJQNP5o6hiNH7Ox4Cd+49cF75NVjlAMTPelOD8x17KAOCfdhNsIacAPHhM8g+d64WcYM5Y0weSQB/IVjvYbB2OlTlnn1mAsSCJ2GNOg/2mMu16JhqQPaJ8RCfv4HYIX+ANepM1YbpG4dqXa5qD49ntDVIfANQsjPi46eBd90RYsV/wXsP1Zb9T9+AtcO+yviSuf8UiOUUsFYdzKD/UsT0eDGNk1SMnA8+RvUBklVg8QogSeqUcjjvPUxCP+wxl8KZfQ/ceY9p4F/2NuzRl8P6zgnITr8S7ux/dNAi/uVng3AkUrUOrFILdmkMPGnBImCMW+A2qRMIGDsC0JsOHHXTObKk4Sz+yYCxST1e/uDSgsDYOHviLULKC82bDJhROWrSQZvSRPKBXQ6Dw6YJgUTeqlogQf+ZYnmZ99v8TqsvRdPMEjBqUZoYY6H0o8wv90yuI/LZYW4zYTRNThNw2KlK56P+VfcHq+6riTuJyaQLa2cciGWzkL77CCXqFdt0Rm1kDToa8RPuUCKi+8E0rTMk0VfpHMuV0UWJcMpFpwQsUaqB8f4TFBDnPiHhRF32daykx0uc85LKI33zSFijLwPvNRSZR05F4uyZYCWVQTKZB4+F/GK2Knfs2Mlw339YibrayTxaaa0/IVUQ2+4AxE56BLK1HpnbCRj/AT7we5Ak7jev1+JmdX8tCtct021JTChRAZes/c94wFhk4JCVn5X2QuICHZIzO+0CBagkVtt7XajAUTZ+gezTF0N89h/YR/wF9vAfK/AiYITTkktZScse8EaiuvnAycp7In7a4+DdBkLWLkfm4TOQuOAllUbmiYtgDT0G1i4HQbbUIn3PCZBfzM9593AGnsgBY0hOKusK3mUn5c4k0y1K9UBSAS2MSncqXMQOvRr23ucg+8pfwUo7wd7zTGSmTYC16+Gwdj0Umacugjv/iSKRIwsqsUKt2pakVGh+CUcgVedqxkjidIkHjDELzGOMxXCxmERXDEuimKAKzlm2cRZ/MvURO8WrCHVmA4USlJAlYJjEXPmX7jMXri40fJhii9xaAYo9aH6krK18vroru+qqDii+8pN279v1IubImzuiNivo8UpJRtlzm3KsjreXY4wColUDY9SFOn+y5gNEGDz8X4WQTReS7/p9JE65O3iNDAbMd3amePHL5yg9I4m/1sAD1XNi+Xtw3rxNsUrli9ZSqwHAlF9yKQbfeL+9YB90GcgVhXXdAcyy4Mx9HLJ+mU4r06z0m7HRExUIuO89BueNWyDrV+jJrvwNCwCW0Y0K3PuM0MYh8pGzbCXeypoliP/4SfBee0B89qpya3HnP6aNEF0GQjathnSaQ04nofbWMrtus377IDZuigLCzK0EjHeB73QoxLK34C6aBlbSBfYBv1LGF2fG75Uu1tr9VPA+w+Au+iecZ84L+eapRI3thWoZq+yLxLlvaWB86ly4BNhUAgLmIScp0VoxbikQG/corJ0OVm2Yvml3lZ+pw1KqIaVCNJmpNsCwXsOQOPUesMqeCujTdx2tdrskJ+q8Mw+fBffzt5G8aAZYeTcNjg+cAbGEDFgcFLmdE40INq7nwIrv9n3Ej7lZq06U6oDGOY1t7RLkLn9P6Y7t4eOQefYyWP33hLX7sUg/MA72AZfAGjASaWKp5IIUDK6oySTXL21PPH+QROdMGM6IC6TqXc0YCRiTNniSxGjNGEFHqpljMIquHWZD5qDV/aPdStkvNzwcmwUmf+JKcWfPLgvnsMfhytGj7XprQ//qlz8g61rRD2ucM+E44eIeOgNcG6XYUgb5Ghjuqhw56Y22Xm7vnnvPznfCwVlqS6y5KBWw7oUw0A/p5CtUI3UPdY25eitgJJc6ATframDMeCdJRhi5and1zQSIIp0dvBs5vCkoF9Mg1XMI0LIesrUB9l5nIbbv2Sr97L9+j+ysycp1Bs0bEDvkN4gdcJG65372JpxX/gJ36dtaFCbLYRBsthDhot0lxD457GE/RPwHeveI8/5UOHMeUVZQsorb+5yjxTgp4cx/VgMiufvEyuG88w+4S8idxq+AHz3Hm5jCQfz4v4F16g/33fthj/kleOf+yL78JwUa8cOv0oD79l1w/vNnZfW2Rp4Fe8xlkKveR2bKOL0FzmyfCA4r6bHfnoj/8CllrU3fMhixo++EtfNhcN+7D9kXL1dW4sS570BmWpB9bgJYshL23heDVfeDu3Aask+fF1Y7KCdrhY66X0lHWdEfifP0MM48+VOIj2m3Dj3iwP7BLeB9hmuDFG1R7KH9QGXTeqRu2UNbtf0Atyq8qpd+kI/eTxXb+1y9UMUSui73joNY+jZ47+8g+bOXVXbpyePgfvIy+Pb7ITH+UTA7rnSp2eeuRvY/f8uJ0iRSGztz/Ca0Bh4CRscjrPwv4if/A7xzP2Rn3gixar7yOLCGjYM95Eikp5yL2P4XgvcegtTNByB+8p3gPXZF6u+HQ6x8L5h50V0weSzNuJD/rIdaoWgo+pruZgaXGGODgE1MUTFGW4vSpGMkw4vaiu4fuFbA2u/TGdN7wpzDxrz3iZUqji7A/fysj0//Mnuxg+Eq5/2iDNmGDBtx51d2Jq2krXlryl8RjhyV7+cQgVUTGf1o0d4Yz9vLHwHZoGECxkjiNAGjA6QzoUVSRxQxNMn6FI0gzmA09mJQypBsEyGhweomgNIuiB/1V9hDj1RMIjP9j0qsip94q9qJ0HrtborRWbsdgfhRfwKr0lvgRN0KiKWzkH3tZsg1C4MA3N44038qeiNJohkBrEWGFy/Qge+a47nlKCfibAoyTY7dzcqxWzuC0/e00kHRJCkgSOvqxkpQ8qt5ynKenf5HWMNOVuIhiWlUvviJf4M96Ailn8s89CPIbDOs7fZD7NCrVFu7i19B5vGf0GF6hm+e15IGQPIdRiN+ysMK+NI3D0HsyNtg7XI43PfuR/ZflyoxOnHeO5DZFoiPXoQ15JigO5y5DyA7/Vdg3m4OXRfj+AhvceGdBiJxzqsaGJ8gYHzeD+etfDVjB+efZOrMfRDZ5y4J3Jo0kCr1sbJeB2OZRNjD/ojYfufoR9JNECs+gFyzCJJYe2ln2KN+qO5lX/orBInOrQ2wdjsUsf1+Grh0Zd9+COkpF4KXeuqWaLxK10H8Rw/CHnwEUveeivhxN4BX9oQz7ymIlfPgLnoB9sjTwAeMgjN3CuJHXwekm9B67RAkfz4LvKoXWm/YE3LDZ4EVMjqcQ9ZJv74eMQlNR/90yGKRpbz+VTpGAkYlSlvgSQMYycikHCh8v82INUcNdgMFQ9gQsckYZaWvnOM95tQdwC5YV9DaHEGdoj/b0Xp1NJniz7XevdMOiayc5Qp0UZn5QTr9KClm/UNHcuYmUl5gAq+hAv9h3/1HWfgIFCPAqBo6V8agHP71cFSynAnbfC8qeUSov5oEe56O2H7nKh0PsYv0Uz+H885kWLsdhuQZjypdUMs1g8G67QS56gOgvCeSP31KDVy1Y6XuC7TesJdiACFA9McCsZqBo/VuidYGSNoO5oGe2u2gdqF4/oEkT5COjqzWtnYLYdKBILHY1/3lKYf0BXvoMUiMu0ul1fLXkUj+5EHwnrsh+/odyDz3f0p8jR9yBZz50xTzSZz9HJzXb1NuKLF9ztELwtQL4c5/MvChCw00+pGoQOLM6WCdt1dVFcvegVizSIE3+Q6SzyUZqqzvjPO2txEI/UHrGxtWI/3YjyHXfeT5J1KCBYYyjyFxyiPg2+mzT2T9SmSe/xXkZ68q/RwZf2KjL/UAima6C3fFbLiz71QGGO1W5qVN45ZEaXKKpbHgT9ZkJ5T87FWgtBqp+36ExFHXgnffqc2J4342G86cx5E4/jrd55O+pxzplfHFrIb/3XGUCG71+y7SUy5A/Khr1KJFxh3JY8i+eA3cRc+p7ZKJs/6pnpOuA+fNu5B98x+KyZJhT0kk/sfre/UnSjSKld58zhw7/nej7ASM6UapdYtKlPZ1jCROkyit9alF9YzGfAt8iw0cDaauAZqWjVomxZ7s3E8/+bLI9bUDIxXQuX1H8iF6gjxBQt64QekLLQkGapkoEXonPLOVhEMOvWR8oX8kSqfDBDgiUbfbfnkrqxeJL9pwNMFLLvgXWFlnOB88B9Z1R/BOfZCZfg3E8jkouejfevfFuiXg3QciM/MWiDUfIXnyrQqAMtP/BPez1yE+fyeY5OGy5n5R2rH9zgNL0j5pMq5UALQThYwvcdobnQTI2Vs5EpO/nPZvdBZNR2rySdq/0fuE6kcjULhInvcvWNuNgvv5u2i9ZYya+Fb/YZBNG+DMI7CzdNrxUmVp5VU9VWqpxy6E1W+4EtPJpUc7ufvCldHUUiDxw4dg7UqGlkY1YWlrmwIv2srmLwwBpyWLU1w7S7uO3iMsXDhv3AbnndsVTciBmEpF/Zc49m8hlhnUuXGNcnshVqe2zSlLvrc9UKE0bRZIAyIDd8V7cOdP1fVQHg++OJ1rQWvH0aqdnQ+no+SC6eCd+mtH73gy5Mfov+F+9Bpabz0C9t5nQCz7L8SqBVpCiOsAEXkfK4bSKxaq3VNKd632p3O0/HkkxLpPtIph6NGIfe9y8OreSsep+j1RCrFyPlIPnQGxfknIt7TYwO/I/MifEzo18zrFJ0g1SdjEFAkck1bIXYcCJwWxNc2zfkIFi+KCeTN8jzZDAfKH9gWfPtLupO7AA98IMFI5sjdvfxOAnwUBPyMNaVazrXLnkZxIWymrNLnrBMBIq+TXUc3IEKKgCANGqd7m1X2R/NFdSg/XesuhyrhQdqk+CCnz4l8R/94vlOWz5c97IXHsn2EP+h5Ewxq0Xr+vUsq397H6D0fJRS+qx8joQqxDMUjSlZHxJdUImW5Q+6RlayMSx/wR9q4Hwf3kdbT+jazeOd+/PIpCi/n2+8EefjLcj2fCeW8KEifehtieWiQs9hH1q9Dy51F6H7Cn38ub5T4zJ3eFk25HbOQpSE25UDGf5Kn/AO+1a3tVz92ntr1xL22sCoy5xuiQLuLH/x32d46HWL1IuUbZI37UQReRXDbpx86ES47RKlQj7RPXfoehcajiOHr0R9FK2tViwR52EpKn3KwSa73xEIiWWu1mk01BrP7QA3CPkZKlPmYwX1+soeBrvQajdOJrehFReuKEyq/56sGKxpZe8h+wCu2qR+MoNXmcWoSTZzzkAWUD0lMugrPgaWXo+SY+tLakm0SOLXqMkZy7lbuOdxQ6laXQnI6SU7/MhXBCJcXY3dZFn+poIV/B5+tAjILFkn/vXSpSiXdcIYeoBwosTb6Pc4frFVm61Pj0GCMpf2UrsQsyAhRgLcbxoL7A5OupcirksPycC1yWn6L/LlmDS3/xhlrds7MeRfqRs1UorbLfLVKTsvX2YxA/+mpYfYYi+940pKddirLLZumdMPNfQCsNau98rvyjMnWFrZ6DUfpLvR0v9fBFELWfKdZAaShXHfJzI3ZF3xNlsHY6UCnr3c/nomXSgYox6pS0+5H5Ca4Qg1LRc7jaoZI4+Vbw/t/V7h4UtcXbbkgiqVy3BOl/XQuxZkFuEVLJ5tLWUWw8h1zyv+09FPEDL0DqYTJQ0WTlsLbfG9aAEWDlxB7bXAIhm2uQfeV6r4za4T8YV1638e33QfywK5C69xQV4Yj3GwVr6NHgXQbobZvEeok9q10oxIJt75/e1kdMtvX2AzWLVZsHSJQ29ZjeOPaNMV4ZVPbky7rXaUiedKOSCJqu3A2yaa0qIvO2uAftTu+ppjbkW6/tyOUoccx1iB9wLrJznoCz6EUkx92m+pDGS/aNu8F33A/x0efDefdxpJ/9DWQTHbolQe5DJec8Cd5zF6QeOAvu/GfUTp5ceF9/IvpNZ/aXP0V1LMyctGzuS89d1d9yM4SMoHSagzK+EFv0RWmbaUd2ZZXOjbzo3PfVZ8EjxlyPQofF2GKeYiPYZZ8W39bVYVDRD35jwEiZNV/Xb0Qixl93BWhTbwc/hci9iYi5+8qNQjFGjzUq44tpHY1mGV2XzJN7zYlpPtdGsel8j/OegT1wb8imGqQeOh9IlMDabk/ER+ugDK33nq4mSsn4+zWjvPFg8H7fRfKkG9Qq33Lb0RBLXvPdsyP2SQ/gO/VH+ZXzNA44eqeLzFIg1FbtlEx/lb9bg2KmVp/dwXsMhLtqEVr+NDLHGINN3/4uhNxADwtGXhBcK+HhlTezVVQdan9COo+FFhxR5gzwtoTSrKB3yBldJeHFqNT+MLl9owHAhhcpVRAF3JH+MIcGgR3lYerWaPX0YzIqZmvMArKSKpDSoio5XetAHb7xxRCjA5OngYYhC6NE/IDzkTj2GrWQNF0xEGjx521kTBOKBm46EcUbAeOJNyO+7+lovf+ncOY8BmvnMUiefBN41+08RKMtjwJoqVPO8MQslThN/ygqUHUvZP59PZx5Uw3G3PbCk4OHqDhb7Hd4LhG7TjVD6xb9fwmufBjVzhfl4to+/OgnpDpjO899jzY7WDybzboHlfxq+X86CCgdeqz9knUomY4/lP1Lvz9IsCuUz6H3WiHY8Z0WfEujryA2VxDTwqwajtgiGV8IGGm/NDl4k1U6cCQwGVKYlIcPlw+vf9EhlA8furS83zCUnj8VrLQarfefDWunAxDf+0ehxmm5/Vg4H81E2S9ehfvpW0i/+Fe1wpeMuw2Ztx+A++mb2o3BeMuEBHWnpBolZz4MpBqQnnEzxOfvqhBgjMKRKUtw7qPmfef+yulcttRBNHwRWODNsz18C6F5Ho5ieKZ1sJBjqcGW8vqz4Nwzw3x7NTPdYPIKX0TU8t1ofC8DD1uD1T6MxSrVQrAfPO9bYNUFj1P5MX2D8kWsqH5Zi4E3xckkR3irBLL2cyNqQ35sygAqC5WbMSROuR3pJ3+hw4mprVVxZd22B+4D1nV7ZcBj5bQNkBz8adtk+Py3ltuPg/vRyx778+Ubz5JfcKzlH6fgPxaMEc9dR6fmzxndzrRmppoZrCRXOkZb7XrxQDGWE6VDwytvjfOIQEAnfTlHP8j1PJkU++WyiR1HoI49+Y0Do7yhb4mTBVmptUj9ZT6RiWcaX1zSBRnAGMqmEAn9MuXI+QuBd+qL2N6nI/381bCHnYjS8fcoVkeg5Lz7BFLTLtfmTRLjyMjgR+GhkdSRiDx+OUmUVaPDi5i9UeUvhFi5vavmfA8tH1HSRg+aLgOh0WQ2cqTBDWlUgTO5SxlO04GwZu4aK4ZqJuKFQLUdRtTGbd/xOCiHiooSnEgTRtgQEhdoIL9Z1QFaHsFVeftRf1QjFuk9o5DF9EyKAXtxPGkskFqAouwkCJRpF1aVMmw5C6d7W0U3aqDohzdhvvjAaCu2yLUPY0IDo7JKk7/mpqKP1yycs8X1aB3W7dL1/pkRm1C5wq9satG+VAFar+m1vw02wxHKzVN93J12h6juDN7UCL58MVgTiQHGwAhNDDMsj/+YjsRMrDEkSmc0Y2yrooUE87YEhsKCvOeKpAaSACNLaawEvKKH2gusDCJkfS0AfoXwJupkWIi1RjtBY4tmeUEZjUEdGt8+WQsxKd1KodPjvIzz5kYAbsaREb5jut/aClC07kmLvl5PBCDoiUeBGO31kgeIXnVCTK/QPG1v3hbtrzZHsdniOaaYl5c/sEJKzvDxaiH+71Ok0O4ZjwkZB05pQ60uQ6QkoaHhA1cUZMwxFTX6mnOh0DgvNFfMNizWbH6VPOcGtDYzaGD0wJGs7krHaACjP9iCAhs5hQoeLoHFIQQThycvX6WtkF/x51sBRqpD5g+97hISP6XGFD37wdljn1zVhID14VzwZfoAJhPY2upInzH6ojQFkWAeMAYJFZtFHen5jjR+W7O0vRlcKP3QCPceaKsORXu0HQbV7vIRKZw3C0K7morm7TVu4HiaS0tH7MpRSK3jy2evHWn6dp8phDBFXsp/tI2p4gN+gZhZ/ltRcA4t+iZItlcJ1fdt9KU5NqLjpNgYb29cRt9r73lflG4hpsgDxmgpUZopcPSt0ib2hbiP0Q7RvlDqacYeif/6i1Pba65Nvf+tAWPT/3XvEUvyBeT4LZNlWq/TpTvcgYOB0jJVH+v9WeDL29zSGKp3IEordx2pwo75wNheX0bHUxSQ/d+FxlZHMLWtMekDf1vMpth4b69eZrmLMQF1XWVOu4C8H74hQiWQO6XP45TaUZ+e9Qvti9SBf5oBfjkiGGY79K6y49DqaJBKz0Ibqlu08MYKWbQN2hjd6p22Ot1IP1eTcII5K6wpFhqJdnR2bQwwFpjpHV0nOzpWollsypgnUbq1hcM2gJHHmLcl0NsrHR34HZTZbQv1TjoztPSPNcs3Ffjae6+jXddeOht9X/62c2Vaxpa4UnYNtUcsDnfEAZBduyuLoPXOTLD1RgAMf39mgV5W4yuwSoeBcaML2MEXOsLDOphU6LGNSndTR7yZowdyoTnq6/iKjRLf7cQDRUVkzH/tVdwHV2U00yCrPXeIURieP/5uqejq5E+s9vLpyP0oEBbpgDb7JdpOHVaiGYy5DY1jR6qxuTxDRvLWZgJG2vHClI7Rimu2GPgxmsBoLp7FFizveQtoyDp8YMW1q8kv6Wv5fGvA2Hx5tzMtjn/QRgJzfKufsRjcAw4FKqqAbAbWay+CNdbled3ltR+NLwpUSzvjlPHFAcsa26C8JizEvtpadTsy/wq93xG86ggT9J8pNHcVczN1qF6PtsmiCrIh32iam/pRybc9SZlA0WQXxepWcCSb9TAy6kgbRvG9LWbcXnp590N0yQsGFzzkHQLVluRfTPlnFFrt1S8wNovN+I1qVzMf73sU3Iv1ayGmGF2bouKvn5ZmjB4okvElrv/5sRiVp5XXNu0x3mh9KZSjI3BxxbXrtPf81/D5VoBR/hY8k+k6Kyvk8KKdX1UNMeZw7XOXSYPNmw2+fKnh8qDfDDWavyVQnRwpINNuDhgLjYaCANEBqtAubTDQvhgKb2xnbhSF3NjEizwfHfX+Y+YsNl7VkWg6kHexBztax0LPFSlTB0qT5w9UrBgdLV6QZ97sMhvUG70daS+zEsXqXiidQqhVbJX1N+60lU575TDua8ZIbjqenjHhidHEGGmn6JexStPeIs4Wzt+wfo8Rd+IrC3oTrV6Hxs5X+VDTJVUHWbb1b0e07WAutx8IOdIwyqRagYZ68E8+BL6gwKXhUmmdl9DbXsmXMeOCF2CMAaLSl+jgLbocR0ZkdJkrsOypSwa78Db06kyDm5El3SxPG2kGluNIx+R7dURi0kfr3N5yba4+HahzUJz2qFlBW2sbM69Q3gX6L+d76aVl0J5wfxRwQ2m3zJvmutKhuRONqGO+ZI4hf9AXpXPGOI2CXHRs5bVfcfaQ1zTGBb9dyYruOzUpxthMjJGAkURpDouMLqRnJMqnfPN1gYJ1MpK9/lm4UygGheOIoytvqKN9jl/551thjM0/r35RCBwSuG8YSBV1ixO7DQV2HxbykmdPPw7W0qwNAJHO1g7etCPEA0Y6+6SDzWb2S+F4dW0v1x1hFOFncr/ChKcjKRWrlF/y/DSieYedSvIdqcPt4TuO+PmGW9Usf87ZN1w/cy4Xw1gzVf128RiY/spYjCxG38yvj48MujTR9tA1Ldxjha621WvF26TYiMj1b+F0275aCAML1ye/1n7KbY1Vc0NE/kiQ5EuD1iYtSivWGCfG6OkXaTugxxgDA5Y3IMwRQ76tCmw95NX5eH6vKkAPe6Pkr7X7f5m4i34rN8ye+EdIwSua669iY+5NfePA2PCziv0si7/qio7vZpc9egGDhgCdOgPNTWDTnyuMCurYFR2sVjNGB5y2zKnWNro5mEkFhoC/9Sg4klA/83GP/fDgnrfA4TH0qV+E4Z9PxYilT8D2z1cJXCgKyJN5oqPvh+kvlx4tM5/zv7crn3qVMV1FzLoGLVWorv5N754aeQbMRN1C/PshhPENB5EjH6M+qN6AjkYsVkkVCHgaKoc3IbRrR1SpaoBX0fhZHVhoCrWzaorotCsA737bh9rdbG+vfyPNG4Y+T7wIrQyFdBNmFGcvwbzjM83dRZF0g6YIPM/DiuGgqAXu5y0URh1VW+XGghKlPWBUbNEAxoAxlpVD7rob0LMPUFau31+zGuxVHdw37xPpRosR/5GHV93UoA812sSPfOxEq2G7Pp8B6McYFnGJn200MNKu2LVjBl8Bxn4CyL7dZywoo814HSkTGR2bL6qY4YKNDnZMmMt9Macmv7M8uVStJN7ECzCPnhF0DKYEhTxS4JjRJ/aZm5t0dv6JKvqXz14KSR76nsSTw6/B2zuMC1WzqmUVjpp3NYau0FGh/dTCGw8NB2gDdHLP5FxhwvPGZzFmljmeZVsUXVoi49D5zbnJmnPtzokq+m5OwR+wIH81VuZgcxIauzz0i8Lz2CHlhzq+SfW5vq7/MrjSu0fXKLykMjoztadFvxN+V8UG8zaEUBGD5veu5drULLpn96ZgNPosOKXX1LvDJJ0RoL8zhbbaI1I9R9cBLumMWf+7vk42ALquvkum0qB3PViMUBlzDSkw6HNjKddXuUnmj6Yw7JutnQtgEu13nz371/2ezrmPm3n74zyXSi4YRM79KuBgxujNjZXoBlpznIWFXHPkewOGROkoY/R8GHsD+/wAABucSURBVFUUPPI6OHEcUKLPIwo+ixYA71LovSJqi9woUWW2OWaVrmrYh44t6AgGFXqmftYECh31YHCP4bmNBsa1Y4dMkcBJfiKJDOtc/foH7cfKAlB7QenRMfCpjg6YnQdI5n5LP/1CBTTX7CiwqR1SZJH29ktzP0hBCIAjPhFmAMzIObf+dP37mIfRlOiC9RXbwaXzgI3P7sufwwmzL0PSMYIGm2gbraxZljAa6g0i5pY5owH8r7YlUZIQZJlDayp0YLkKpapOryegAhw6WUEyRsZ/VzCWVYGzGMvScdCS0z04YCwrmHrWEf67HA4kpcOFpANS6Oh6AkDun3ziez4GJ0To4328+cppFkU6L1Qvg1/Qa9625LxQAR1acY2+iIroqkjGGhME3aLzuCRhKEG3Bk9IySm8AZNCOQ1JAZtLWLQzmUnYELC4pO+SwhPFoP/SM+o3h9SnmUgZk3SN4o8JWAS8+tBvLSVFu98HAX8BC4edCW1Nymd3+fipr5htHx2Lhd6JElx/Yvlp5es4cjhSYPs76RhbmizYcdIvMs8iTTtY9QmByir9vcOB3n1Cc0k+Ow1s/froxq/gGbN/6Ts1rhDih1V3ND+8KcAo559f3tgS/1ACfkEcbmH3jQLGNQcPPh6CPeG12Ycc7JLuMz54oSMFkhNR0pQqf8+VcpdgNSgACgUVgtFOLvSeVyi9dVRvC6SAtQoYTZSN0kNTtDAzD6homEc6PIHPuo3AGzudjoV9Dg50n10al+K0189Bz/qP2m8OXxqKgDUxKwZGgOaCSYpImiHwAkNGgGckZMayZLLKcreXHM11sP+bgUX7RDPCoueYSyDImHRIzUrbplQoNg6a6WFG5iMOU+cwqXv6EpEm9Vtdo3vK95o8U9TZPSpJdd3rBvVXNavnjmi+5z/nNwpBrHnNZIfRhgu3vE4/UMDkwW74bfKAiUYeFN47/nUCRg+RVU/4bpT0HD2j/qqDlbyFnMDUg5zgvtbSqKWDnvU4sGKcHqMlMLWYgC0JVIWkqItxLhBnAjEpBJ0NmGASCehTNeNcihiBrQQSBL5Mg2oArCFcizZStBGD8d3+sGz7iY1LyAdGHxR1dDfPj9H3U917HyCbBdatA0jlVVoKLPaCb5vspxDJMOa0zbC0Nd28e7fJ2Og90w2zJt4pIc8ykPeqqj0n/W6jgHH12CFEMY9gwPPdEqnj2AuL24rpFWrn+rNLf8OA39OsjwzhQPGthVb/E9m4X2ANKdRVKh4jBWAmcZrgROrjU/XHTD0navqiRTh3X+AsZoZhWNp1OJ4cdS3WVO2sUo87zThh1qXY4/NnNbL48CIgWZKtI320YCwNsLS00CoZUi7jadholUBGcmJujBidQ/GiiZ35sQY0sAn0yKaPtaQsXReLT81YVoMXkUmLutSSHqPzJqpQXE+zNw10mv7RZJacUWPpe/4z6j0tDWnA01oHDZ7+tZwUl2tQxbsM8KUSEcE0G9UvQ0hSz+lh1LMeYG8sUwyNqQhomkCn2sADPaYDIPpDgwRq4ssKgujQQ2/I+HIitVYAlKo1KLShHlZ+7RmtbNRaOuiPar3gPXVqLEG757/uxaZQ95nWClCHqzw8xqrst8RSIYidyhiXMsEEkkyKJHNRYgkkpZRJLmWJbJX9KdyiytyD5lwFw+ojv9JRBUtunvhVy7VsWJTOCdO5J3OGHOF6xhdijN4/Yosq5okPjF7SbUNuIRkgjCBaXyKvq7yr9bIIuLT5s37Wxb8G2NXGQ29Ujlx5IGOPuxsFjGvGDFnLGLrEhLNjp5kfLu1oIRrPiA9iFp+VldB7/Tbp0/6K5QORYoykY8ySHESEK9fdZtaFiCjdN3MK5eqHCvRC+pEaK4Mknh3xa8wdmgsvtseiKRjzn+tQ0lqraQjN/Z1j9yLGUwQy68p3Kuve/EmTJhpCcpoPNJ3ImOfp3bgHWEpbpvV4ssJJ71LlusfV27HJTZa1wtPzqbWAJAoveoTS21GaaocfAZQPah7AabDTQMaZSz7xckPlrmUPDf7bOQctvfHRoeueXk7vkXJbPavCxitKqQBSKXO4vu9SUCB/xvjPqUb0LBIUstG7bxn3Ff7471Ei3kd/s9RpBRszTOhAP/N5oldueNYH91XN1X1trfF/e3VkLleHNyjAI9BS36mzci2pAFA/o6LvUsQ3RpK2pQBTarDTayp1sgJDyodkdQW66h61jMUYl8wR4MpQS897ek71vgZogliS8VVa6rr3jA+uTLCY/DhzjmKlvjHIDzfJPUUqFc4LY0lo68Uh1opYb6dRVKKOEreO9kk2zZBJaaOLb3ghl2S180XHPw6oTi5NM/eOdr/uVovJtHDdfarvyc5tr4xS/taun1X/R8bwS0Pp8BG33f0rht2idtNsHDCOHUKHEn/aY8YHHQ4ZJk9EvKE8/qoA2ysnc0UUq1Hx1kSnQqgW7T2/JbwDi7QBRusa1bZC5oVlUs95Da7S0AnpPdakqyC2SX+9397ZUvq+vmakoL772+AW7XQEnj/oWqQT+iD6ZKoOw+Y/gt0Wv4AeNYsE286etLz7qOTbA04btrjb6BGjP7nxsX0+u2uRMhkxRpFGKWsFaASQJP4qwCMxWDJlT+qdbbnEYWzeukTiX8rsQUyPnieW6AGpAlHJSFkm6JvUpgR11f+uAM8DRmoZx7Jw28iXftMQ7zWcSTc7aMOLt5308c/+TXilwMsDKfW+B2gK2ChXPz6SoANJlQtFbkT7z3MPTP1QkfSO953AMhxBMjesbbI6ej/NwxjMgU/66uhE8J91BRi9T799TWxagJn3FVgLMFdIRmV3XeoC/WE+2HrMkNLzQdTi9A79ttSSRGBqS+8aMU+PUVIa5IFhWSo6GCdIVODnSjpFlERzbkmLCSa5YpuOBk0Swwm7lDFIU1Ddk3RPA6syJtEt6m7pIGEtzVzu6TZzZ197veF3ivJz9XXYEezRyK1BS8Xp9b4zLpVTNt1XbLZAfGCzD2ieNDfQ6sKU+ExitHbVocp6+kWz13wdfyEcCDqjDWOM9z4H/tvQlN6n3+PwTpMrDJH1syY8Rqaf4K7EJzHGDyoddUOw93qjgHH1mCGLOLC++yvz928Plf37tT+J/55x/IYOVwuAxHdmLbIomKuUD0SFvGECNud9UX+IzamtgdqfUekaSX5R2OOdc+Qw7c7jgV14t4ZWAPqBW4N+8VvK+xvs9PJ/A2go74nnxlyLxQNGh5pHhWZQTDCn9ko6jWsunrnPry3XcTgnzkZ6QEYSSMAg9TUlXYlymdmx0nEuWZOIn5/lzLE0eGrA84Dvk96Hdtll3YtrbQ+k6D49p80KZEohxSXtGtBgR3/p923DX/5VTbzvsVTomGj9+IhPr75kZN1Ta+i3gywVSHWJ7ernY2TXNT5kdTA3XobuW/khZ0LPuvnM0NcKk/Uia9i5VLoZIEumJe8T5KUKlitUNmU8Q+n4t/1n6Lx6Lx3KIks2de+TFWDqMTrNlMCR8rT0NdqUwATNco91kgnLLwsBsaWBVz8H5nDJYtqur8BTid2UJgGra3HvpIHgGgEkKVGUSOyCu0zqZyg9BgJPrhwS6LuUlgJaYXHhyJLYisxNkkptgqH/3R/kAUKaSmddgdA88Pex+xMwoBSeyT4ATg2WCjg1+IPYoioggSKBIQGjJ0YrWuwFGgmxUcM7KIotUTwohj1KGcHl9dX3ZH/RFj7J9y/r1JROnS8kjmMMq1wbP+r03Ul15jsbBYxrxg6+k2xJPWbM92Kqtw2PG35of8+22LOOgDrmJzSbom5vCjULMEn/utFBeRY3490cu/NZo+fTqEDSi1Sv5FWv7N4qpWUq739B6ED9UACSBggGZaBONtQgBJif9dkHb3znLHzaZz8IP+S/l50t0mu7NS15+ZCPr31mQO27tcRpCbwc4UrLUjpFQeOLmI4StMBElkH2TbdOdCwsqk2WPgtXAx39s+k+gJk7/GyHFC+3f7DkqkXSAk0ZGXc0YKnfHgBJi6nrpByOW5DXj/jPFQ3xnqdR8eKyZeapSy64eOem15tM5XHCZjLlX/AOpUiQzdr/JIFkDLI1BSTt8HV1LcbU8Tv0DDlntJAY29rquInCLhZEUIjAm6PLShPpKyN0Co1ZRq3gfYg+0VeiCyXeX5YFS9LZONGh6j9E17OS0X16znyQ2eG8MmlweiZtaxClpiCPMDVGfFW2C0bvBddtSQDHFAgToFkaGDUYx4xrksG/t7LHWNaaPDnbecM1TufGLwgYHQJJR/IYPaP1iJyAkyiYSyCZlqUla9NTpEQ8b1umyRBDQYINQIwCZh6g5vSH1MOv7nUJRvz3PpS2bvAS0fNHhQTzWKFmiNroooFT6x8UgG0M8kTBw3w3gpqW0pCIEzo96E5rG53avrsxxcOaMYP3BWOvS5sP7fni+/PbSrruVOzALfutrIvuPqaZUnHBkHLG7jU/bYU5eahaPGcFjL7oS6xRue94Ry6TPKpYYthXJADFAmwwaCDtHOf1fg5D1WDwixN5P2uXYE3nndGa7Cw+Hjj60qrWxYtHLpvyBTFAy4bIusTamAKtWIyipGUVoMU8NihdNe0lTaS+TnrKChsnu3bCIWAjgJMeCMks5F9Hz/nrOfOO+FWXzNqsjwxKXZ9lssR7rhlAaYxJ9TcO9feGnV6/qCXW5bK4aH7gwiWHX97FWRoo/GQcsjwJKTOQDSTzpyFLyY3H+2Rb4TZ31uA2cANcDIbEib5xO2/h6ajSaJPHc6FjyfEY+OLVsJMOeIyAxAfRJrBupWA1JWANLng1gLo6fb5fUIAqgHnMk5M7bOTTnAYrBzkmA82kyi4H+Q4wNBOE608L+QrEJeMecLY6GlRpgaAYJ6VxsJQjWToGVuKClSzvcyRrLbkWahWQNbKq4YzmLms/JLAlIM4yybNZcALYhB1j/neWFaWJdZkZkqzbxuQJ1Fc+MSkCgGqO+tvO6BkFoDkUNcH23UGn4vkD/4B95/4NY9/8c7ASBrxCsUmyQHvH5xAYWp5u0TtRN9qYphTtz/eQ378xx5Q6IDy8cj3DyLcKtdmss2/XKSBV1SZ9NgoYKYe1Y4e8CIaa7i/PP6VYjqtORLfSGJ/pSDYoqLDBqtR7oZbwfCV8tZ/RsXmWk+hqYbLMYJXzwJEU/8pQ4jl8EyB6orYyisg4Ym4vMJRA8Do49uqANKoiFANKowzR4Cn6t7E7QQE7c5vL+V4yzuticQgCKwK1uIAgpiLJM86CTNIZ7zaTIgNJrCpZwoRIM9lLNu1puTi4pqriavJHKEtByjiTFOO8ItEgp+xyz4CPq0bfd8Vr2x9YlYAkp9LqZI651dDvUv2b1vfOLZC0XIkWSNEMefegx3ocvvCkNT0qIft28t4j09poOGxMDgg3aYRtwS+RYWPxzxC3O+dA0a4CsxrCIMnLwKgd/aquawLr4f2gezWtYJ1LIOkvnX9Y1wryRVAjhZeCNabBqlClQDW2rO8vmMsvzzWbXO12qxmbqmioYXEwAtbyOJTvAgFrmktO7NgSoqykxn1Pu/gYjR5gm/7iy0DGj9DX4BkjDQLM1kQ1VncehLcHn44Ptz9UZdB9w4c47/HDQqKgr3P3nbiVvtJnkL6Bx2eMJiaYUldUujTHUPSd6Pjy9Y1MLnFSYv9uT2HVpgzBjQbGdWN230VAvMcYO637jA8eL5Rp3SnsSRfsuA5FWtmUUrfzjm+dVuzQY4+kdyRuoxmlbl07vSOYzC2wbuJzSN4cBkQTBA2wDAFn9LrPcv3JwZBNlcQGpWKx+pJSJmRKg1pZBRfEUirjdVIkIKtLIDes1y917ge5dh3glkLuWo8rHeCJmnIolu5UhrUS13xnye8E7GGXvTLgyHRnyMEAFiwEUp0gh/eCfHwhZLdBtN0IAlfpU1a+hmb/n0nSJyzeeVwMvwPDwgijHJT7PVOtMcCcVWAUTmpBLRgG6eZK1ITfsxvBSpcNIWdlpfNVHy4fkXssUL52vAWsphzM8sC1IQNWjWpkRLqsc0v6EylREurcEMAV6CKfTNAtg00GPz0gmnzow/i0dy6gS2mqBmc+cyK61S1WcykXvIQMODpwr69L9A06PmhGycTXNXAsJmd2elSO2ZT0NxoYKZO1Y4eeLiFvZVwc1v2lhfqAY+Oz4URcyRi7SslY5smQHruLxppV/WGIy37DmWKAfz94zPui/pisUeXpxcnzxWpKyDsFU62IVCa3AjzVP1RuaddDJlfoa9oRTRt7DVk5d2qeN4qiwOmnaFy3ORYtT8qR2RLIHmWQTi2kU5EDp/RqSAIxerXxY0iaRDMPzBVt3y/wQKw3cifeX+V7LepynvnUso/AsGDysf1zk2lTRsO2d76xFigo9nsjr/bgoYOzQr5vFMa17MyQLpmPCYUwZ2cNpslasERP/Z3GUB+wN7MSOpRfCB1zkysqhkafDc05rwD0zufdR+DOI55UV8pa1+P0F09Drw2eNi0kDXoqJ0/fqOaOZ2wJVGL+6Yv+tI+gUO5YHC8tE7wjPeTPf/XXn5IeaxSQ13d7DG0aYop1+CYBIyW2ZuyQ3wH4OYCf9Jgxf6qZQe0xqJZxzIRk3/GP9NA+w74C10DBApYU9VxQUx8BTZ7j93rOzh9OO6oj0SuaYoq+8THVByxLmiX6CCC5BojVEWLmUNoExADho02pfcT88EjaNU+XmQaCzdHsuji+8xD8+/GFYCcOgsRVADXe7/KHbx6Tk+ehk+vg9/ZduKhQJ/7kqRU720x8BMamTj6m33Hf2MzeltHX2gJrxw5ZLoG+QSZMXt3j5QVXmplGwXXdcdg/buFZR6IiEJl9pAvp78OGFOM83WDs5nlqQOLB0XcikW3CoXOvQ0XLGm/06kmiR32uRFqjpOenvu7r6M0a5EzRsrknZKoLwLNg8QawkvXKouWtFQHSezOr6L5ZJaVrr5IPbVvuX/kIPBls47prk4FRgeOYIbcBOE8yXNNDzP8dm5nTR607ChU8jjMZMCKI4rBxZdvkp42AyH6P+b3n15e5dbseL6VNqmCHlS3/J4vXu8qpWrvA5FTw+iySnGomNwpC5TOh3hsT5DG0hkvc3eVJLNjUyjhn4xjCWPsuhBYfP70zpi07g0lMBvDS5GP7H7Kp+Wx7b/NqgTVjhrwFhr38UjHgje4z5u/XXinXHYVdEMNPLaB3ofhV5txgMUXlgp040WGvniXPeXJkJP9JY0ulvzVSbRNVPmOhkpGXrN4PRN60yoEu9/GO7VYX1C4kmoQ1u54opXEYNs/CLl85h8WaOrDH1khcO5z8lzv4x/+3d7WxTZVR+Dn9WBk4BjLWDdmmyBC2zg9C4g+/YIUpxAxKVIjGIKUgiBKJP4zEECDRxBh/kCEJbN0w/jAGYkdggsC6KUJUVJB1w8wfaiewdW5B0cDW9R7z9mN00G39uGs3ec/P3vOec97nNufe956vybUYkIIzHHY3uexY2G/l7VxQvFkheh+MCwro1dyGpi8Tkzjyqz0Lix5lRXMy4ON4V46zOeLb2MhbMryGXht2XmNsz7RDxFBuIWutexcYGwH8WG3JH7Qj+vCaJMdoQsBjNp1lxoNhNnUbnS4Ru/nfUffCGZm9yngHAY+H5eKLfV7TMy+6s6H5VLI3ndAbY8hYj7n4KWaqgnhKEY4R086pzqajo/Ej/y+LZxom9o5rBAefxoQyY73reLKBj1afdy0+01di0COytdZ9HAzRzaKz2pLnT42SNLYR4Geh9XSZPARkMOMKCK1E+Cq73rVlbO9saOuDgd1dIPF/7qeuNEU3b3LjuahLkNXASBXHKAzxzC+6gzUa0ZVikz/7HvwbgQ5B4c97DPgu74vmiG88Yi0XFaW1G1GY29AS95EzGjDaF5aUaBSuYKA/tKFVaE5WY9PP0axPNg/bMKeP8LK+Eq8PpntNrdvFjGJxbJmQNn5SxZIpIuVQkkRgTCIgSiH/LDV9qADrb2yATxqdzeJtMmmkmmMMWdxuLplB4PVgrAaQFfqdwJdEWhgBfzHoKqCkgWkSCCLl6z4Rp0g36HMyjpwdkZGIHWbTWQw8mgjT/s02XJ8SS5egpN0ZkcxrwzZinNHZMUjLcsBa2+YGc57/AUPaR2qW3XU6mTZKXRIBtREQzrGz1HSCgfBUm+U3B3nV1hsuT3XHGBL+6/y7x2VQxpNM/JgCiNrqB4JVVAP3w+gE+DS0dMrX11szrbE1rijScCB1mIv3gGld2FNIYdZsyGlo2jvc2lRcF8cpbyZa9T24nz4WtRSRyepwi5TIQOcK0KZqS15FKuyVOiUCaiLQZS4u6lPIFQrcMqEup971tJo6hpI1Yo4xktKuxTMn9vWMm8qKL12rV7qv6HxdhTH0dEwEFM8Ck5UJ9qAD+VYL2pLlPO9MROZIru2x4RkwrAY7lgylx+po2wZQAUi5zhpNXU359MMjaZeULREIIbC61r0CjPVareatqvLp38SDzKX5s7J02rSlYCXdpyiHc8PaGd4UgOoyOl39J9B4dMWyJqmOMRbD1ObtNM+exay1KMyNOQ0twaESamtRRx6/BoP3Gs4zY7vBjrhatqtjiZQiERgcAavDLYZQlfm/4hB9YF+WJ/obRk2dpXPm+qA5RoFKSXHiqTc6m/oDL+1m0xlizAtc47+NzubMqIUnyHjbOMYEcUrq8l4b9hBhpY6QS3v9zWgkSQRGHQJWh1t89vI7NQKO2y35wklGTZ5SU2N4IJSAq41TXJOf2w9fMFAqar8DrTQZJ4wNrqTl6UrHGPVtTA6jdy22M2MrAe/oq/B2crRKLRKB2BGwOtzioS16WAi6XG3JnxaLlI5Sk+iJ4m9PxODNOsKp9sv8U3YWilmnEbOlZgTliT7nZVn1TSdikZ8Ir3SMiaCn4lp+ERO8BohKolUEdOv6cC/tiz9zX0XTpCiJQEQErI62VoALQxcV+B7aZ7nnXLRweUpNFxiY7XeMGlomBjURaVcCLKaQ3hh/ybzV2NAcPpslWhVx80nHGDd06izkddB7FYiB1TsAFPilEjamVWK3OhqkFInAyCCw5qB7NyvYECbdXm3Jt0WrLdiMpmYI/otEeCO73vVptDLV4pOOUS0kY5TjXYs3WfGXfC0CBb7TBOmTtCo8H6M4yS4RSDoCLx1qK9T4+Dw40Pzc39Bcy3M/Ki+IulCjw1zygsh7DpY/iubevzPoay376to7cMTU0hI+CSNpe5SOMWlQD1TktaGOcUsqzg/6HjwxVN5iisyVaiUCERFYc/CPVayw3T9AQxDzgerlBTcGTY1R3KRjTNGN67NhnQLsCakn4KguHSuoArKkL0X3RKqNDwGrw11GoPcU4gM1S/Pe7R+dG5+4UbFKOsYU3QZ+BTneXlxk4DIBO/RVqByNTTdSBI9UKxFIKQLSMaYQ/t7VeFj/D76n/ZGn5aXQNKlaInBbI/Af7NFDa4Ye3CIAAAAASUVORK5CYII="},36459:function(at,We,te){"use strict";te.d(We,{Z:function(){return z}});function z(fe){if(fe==null)throw new TypeError("Cannot destructure "+fe)}}}]);