|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},28575:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},42922:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},55304:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},53555:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},3407:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},32693:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},53978:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return me}});var E=te(87462),_e=te(67294),Ee={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"},pe=Ee,ve=te(17207),fe=function(ce,ue){return _e.createElement(ve.Z,(0,E.Z)({},ce,{ref:ue,icon:pe}))},me=_e.forwardRef(fe)},71736:function(ft,Je){"use strict";Je.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77969:function(ft,Je){"use strict";Je.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(ft,Je,te){"use strict";var E=te(67294),_e=Object.defineProperty,Ee=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,fe=(ce,ue,le)=>ue in ce?_e(ce,ue,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[ue]=le,me=(ce,ue)=>{for(var le in ue||(ue={}))pe.call(ue,le)&&fe(ce,le,ue[le]);if(Ee)for(var le of Ee(ue))ve.call(ue,le)&&fe(ce,le,ue[le]);return ce};const de=ce=>React.createElement("svg",me({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));Je.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},8861:function(ft,Je,te){"use strict";var E=te(67294),_e=Object.defineProperty,Ee=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,fe=(ce,ue,le)=>ue in ce?_e(ce,ue,{enumerable:!0,configurable:!0,writable:!0,value:le}):ce[ue]=le,me=(ce,ue)=>{for(var le in ue||(ue={}))pe.call(ue,le)&&fe(ce,le,ue[le]);if(Ee)for(var le of Ee(ue))ve.call(ue,le)&&fe(ce,le,ue[le]);return ce};const de=ce=>React.createElement("svg",me({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ce),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));Je.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},18023:function(){"use strict";function ft(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(ft.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(ft.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(ft.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(ft.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof ft))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var Je=[];function te(ne,a){var y=Je.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function E(){var ne=Je.pop();return ne===void 0?new go.Point:ne}function _e(ne){Je.push(ne)}function Ee(ne,a,y,x,b,z,ee,re,se){se||(se=new go.Point);var ge=ne-y,Se=b-ee,Pe=NaN,Re=NaN;if(ge===0)if(Se===0)ne===y&&(Pe=ne,Re=a);else{var Le=(z-re)/Se,Fe=z-Le*b;Pe=ne,Re=Le*Pe+Fe}else if(Se===0){var Ie=(a-x)/ge,vt=a-Ie*ne;Pe=b,Re=Ie*Pe+vt}else{var Ie=(a-x)/ge,Le=(z-re)/Se,vt=a-Ie*ne,Fe=z-Le*b;Pe=(Fe-vt)/(Ie-Le),Re=Ie*Pe+vt}return se.x=Pe,se.y=Re,se}function pe(ne,a,y,x,b,z,ee,re,se,ge,Se,Pe,Re,Le){var Fe=1-se,Ie=se,vt=ne*Fe+y*Ie,at=a*Fe+x*Ie,et=y*Fe+b*Ie,De=x*Fe+z*Ie,Oe=b*Fe+ee*Ie,ke=z*Fe+re*Ie,lt=vt*Fe+et*Ie,Xe=at*Fe+De*Ie,xt=et*Fe+Oe*Ie,Ot=De*Fe+ke*Ie,Dt=lt*Fe+xt*Ie,Kt=Xe*Fe+Ot*Ie;ge.x=vt,ge.y=at,Se.x=lt,Se.y=Xe,Pe.x=Dt,Pe.y=Kt,Re.x=xt,Re.y=Ot,Le.x=Oe,Le.y=ke}var ve=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ft("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,1,-b,-b)),z}),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 x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),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 x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*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 x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ve,b.spot2=fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),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,me*a,0,a,(1-me)*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,me*y,(1-me)*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,me*y,me*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-me)*a,0,0,(1-me)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ft("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&z.setSpots(b/a,0,(a-b)/a,1),z}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ft("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&z.setSpots(b/a,0,(a-b)/a,1),z}}),go.Shape.setFigureParameter("Trapezoid1",0,new ft("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&z.setSpots(b/a,0,(a-b)/a,1),z}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ft("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&z.setSpots(b/a,0,(a-b)/a,1),z}}),go.Shape.setFigureParameter("ManualOperation",0,new ft("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=a,z.endY=y,z}else{var z=new go.Geometry;return x>0?z.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())):z.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&&z.setSpots(b/a,0,(a-b)/a,1),z}});var de=[];function ce(){var ne=de.pop();return ne===void 0?[]:ne}function ue(ne){ne.length=0,de.push(ne)}function le(ne){for(var a=ce(),y=.5,x=.5,b=Math.PI*1.5,z=0,ee=0;ee<ne;ee++)z=2*Math.PI/ne*ee+b,a[ee]=new go.Point(x+y*Math.cos(z),x+y*Math.sin(z));return a.push(a[0]),a}function he(ne){var a=ie(ne),y=ce();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return ue(a),y}function ie(ne){for(var a=le(ne),y=ce(),x=Math.floor(a.length/2),b=a.length-1,z=ne%2===0?2:1,ee=0;ee<b;ee++){var re=a[ee],se=a[ee+1],ge=a[(x+ee-1)%b],Se=a[(x+ee+z)%b];y[ee*2]=re,y[ee*2+1]=Ee(re.x,re.y,ge.x,ge.y,se.x,se.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 x=le(5),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<5;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=le(6),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<6;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=le(7),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<7;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=le(8),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<8;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=le(9),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<9;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=le(10),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<10;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=le(12),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<12;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=ie(5),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<10;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=ie(6),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<12;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=ie(7),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<14;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=ie(8),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<16;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=ie(9),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<18;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=ie(10),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<20;ee++)z.add(new go.PathSegment(go.PathSegment.Line,x[ee].x*a,x[ee].y*y));return z.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),ue(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=he(5),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<x.length;ee+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ee+2].x*a,x[ee+2].y*y,x[ee].x*a,x[ee].y*y,x[ee+1].x*a,x[ee+1].y*y));return z.segments.last().close(),ue(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=he(6),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<x.length;ee+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ee+2].x*a,x[ee+2].y*y,x[ee].x*a,x[ee].y*y,x[ee+1].x*a,x[ee+1].y*y));return z.segments.last().close(),ue(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=he(7),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<x.length;ee+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ee+2].x*a,x[ee+2].y*y,x[ee].x*a,x[ee].y*y,x[ee+1].x*a,x[ee+1].y*y));return z.segments.last().close(),ue(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=he(8),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<x.length;ee+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ee+2].x*a,x[ee+2].y*y,x[ee].x*a,x[ee].y*y,x[ee+1].x*a,x[ee+1].y*y));return z.segments.last().close(),ue(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=he(9),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<x.length;ee+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ee+2].x*a,x[ee+2].y*y,x[ee].x*a,x[ee].y*y,x[ee+1].x*a,x[ee+1].y*y));return z.segments.last().close(),ue(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=he(10),b=new go.Geometry,z=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(z);for(var ee=1;ee<x.length;ee+=3)z.add(new go.PathSegment(go.PathSegment.Bezier,x[ee+2].x*a,x[ee+2].y*y,x[ee].x*a,x[ee].y*y,x[ee+1].x*a,x[ee+1].y*y));return z.segments.last().close(),ue(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ft("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ft("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var z=new go.Geometry,ee=new go.PathFigure(0,0,!0);return z.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()),x<a/2&&b<y/2&&(ee.add(new go.PathSegment(go.PathSegment.Move,x,b)),ee.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),z.setSpots(0,0,1,1,x,b,-x,-b),z}),go.Shape.setFigureParameter("Ring",0,new ft("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,z=new go.Geometry,ee=new go.PathFigure(a,a/2,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var re=Math.max(b-x,0);return re>0&&(ee.add(new go.PathSegment(go.PathSegment.Move,a/2+re,a/2)),ee.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,re,re).close())),z.spot1=ve,z.spot2=fe,z.defaultStretch=go.GraphObject.Uniform,z}),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 x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new ft("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ft("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var z=x%360;z<0&&(z+=360);var ee=b%360,re=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,ee,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=me/Math.SQRT2*.5,b=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,z*y,a,(1-x)*y,(b+x)*a,(z+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,z=a/2,ee=y/2;return new go.Geometry().add(new go.PathFigure(z-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+b,0)).add(new go.PathSegment(go.PathSegment.Line,z+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,z+b,ee+b)).add(new go.PathSegment(go.PathSegment.Line,z+b,y)).add(new go.PathSegment(go.PathSegment.Line,z-b,y)).add(new go.PathSegment(go.PathSegment.Line,z-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,z-b,ee-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,z=a/2,ee=y/2;return new go.Geometry().add(new go.PathFigure(z-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+b,0)).add(new go.PathSegment(go.PathSegment.Line,z+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,z+b,ee+b)).add(new go.PathSegment(go.PathSegment.Line,z+b,y)).add(new go.PathSegment(go.PathSegment.Line,z-b,y)).add(new go.PathSegment(go.PathSegment.Line,z-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,z-b,ee-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=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 z=a/2,ee=y/2,re=Math.atan2(y,a),se=x-Math.min(Math.cos(re)*x/2,z),ge=x-Math.min(Math.sin(re)*x/2,ee),b=new go.Geometry,Se=new go.PathFigure(se,0,!0);return b.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,z,.2*y)),Se.add(new go.PathSegment(go.PathSegment.Line,a-se,0)),Se.add(new go.PathSegment(go.PathSegment.Line,a,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,a,y-ge)),Se.add(new go.PathSegment(go.PathSegment.Line,a-se,y)),Se.add(new go.PathSegment(go.PathSegment.Line,z,.8*y)),Se.add(new go.PathSegment(go.PathSegment.Line,se,y)),Se.add(new go.PathSegment(go.PathSegment.Line,0,y-ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,z=new go.PathFigure(.1*a,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ft("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ft("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,z=new go.PathFigure(0,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*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,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*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 x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.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 z=.2,ee=.3,re=0,se=z*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+z+re)*y,(.5-z+ee)*a,(.5+se+re)*y,(.5-se+ee)*a,(.5+z+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ee)*a,(.5+re)*y,(.5+se+ee)*a,(.5+z+re)*y,(.5+z+ee)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-z+re)*y,(1-.5+z+ee)*a,(.5-se+re)*y,(.5+se+ee)*a,(.5-z+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-se+ee)*a,(.5-z+re)*y,(.5-z+ee+.05)*a,(.5-se+re-.02)*y)),z=.2,ee=0,re=-.3,se=z*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ee)*a,(.5+re)*y,(.5+se+ee)*a,(.5+z+re)*y,(.5+z+ee)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-z+re)*y,(1-.5+z+ee)*a,(.5-se+re)*y,(.5+se+ee)*a,(.5-z+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ee)*a,(.5+re)*y,(.5-se+ee)*a,(.5-z+re)*y,(.5-z+ee)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+ee)*a,(.5+z+re)*y,(.5-z+ee)*a,(.5+se+re)*y,(.5-se+ee)*a,(.5+z+re)*y)),z=.2,ee=-.3,re=0,se=z*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5-z+re)*y,(1-.5+z+ee-.05)*a,(.5-se+re-.02)*y,(.5+se+ee)*a,(.5-z+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ee)*a,(.5+re)*y,(.5-se+ee)*a,(.5-z+re)*y,(.5-z+ee)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ee)*a,(.5+z+re)*y,(.5-z+ee)*a,(.5+se+re)*y,(.5-se+ee)*a,(.5+z+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+se+ee)*a,(.5+z+re)*y,(.5+z+ee)*a,(.5+se+re)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.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 z=.1,ee=.5,re=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(ee+z)*a,re*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*ee,y*re,z*a,z*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),re=.75,b=new go.PathFigure((ee+z)*a,re*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*ee,y*re,z*a,z*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,z=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,z,b,z)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,z)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=.5,ee=.5,re=.5,se=new go.PathFigure(ee*a,(re-z)*y);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-z)*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y)),z=.4,b=me*.4;var ge=E(),Se=E(),Pe=E(),Re=E();pe(ee,re-z,ee+b,re-z,ee+z,re-b,ee+z,re,.42,ge,Se,Pe,Re,Re);var Le=E(),Fe=E(),Ie=E();pe(ee,re-z,ee+b,re-z,ee+z,re-b,ee+z,re,.58,Re,Re,Ie,Le,Fe);var vt=E(),at=E(),et=E();pe(ee,re+z,ee-b,re+z,ee-z,re+b,ee-z,re,.42,vt,at,et,Re,Re);var De=E(),Oe=E(),ke=E();return pe(ee,re+z,ee-b,re+z,ee-z,re+b,ee-z,re,.58,Re,Re,ke,De,Oe),se.add(new go.PathSegment(go.PathSegment.Move,ke.x*a,ke.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,De.x*a,De.y*y,Oe.x*a,Oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-z)*y,(ee-z)*a,(re-b)*y,(ee-b)*a,(re-z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*a,Pe.y*y,ge.x*a,ge.y*y,Se.x*a,Se.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y).close()),se.add(new go.PathSegment(go.PathSegment.Move,et.x*a,et.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,Ie.x*a,Ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,Le.x*a,Le.y*y,Fe.x*a,Fe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee+z)*a,(re+b)*y,(ee+b)*a,(re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,et.x*a,et.y*y,vt.x*a,vt.y*y,at.x*a,at.y*y).close()),_e(ge),_e(Se),_e(Pe),_e(Re),_e(Le),_e(Fe),_e(Ie),_e(vt),_e(at),_e(et),_e(De),_e(Oe),_e(ke),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,z=b+x;return new go.Geometry().add(new go.PathFigure(z,.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 x=new go.Geometry,b=me*.4,z=.4,ee=.5,re=.5,se=E(),ge=E(),Se=E(),Pe=E(),Re=new go.PathFigure((ee-z)*a,re*y,!1);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-z)*y,(ee-z)*a,(re-b)*y,(ee-b)*a,(re-z)*y)),pe(ee,re-z,ee+b,re-z,ee+z,re-b,ee+z,re,.44,Se,Pe,ge,se,se),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,Se.x*a,Se.y*y,Pe.x*a,Pe.y*y));var Le=te(ge.x,ge.y);pe(ee,re-z,ee+b,re-z,ee+z,re-b,ee+z,re,.56,se,se,ge,Se,Pe);var Fe=te(ge.x,ge.y);Re.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.95*.9)*a,Le.y*.1*y)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*a,Le.y*.1*y)),Re.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Re.add(new go.PathSegment(go.PathSegment.Line,a,0)),Re.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),Re.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,Se.x*a,Se.y*y,Pe.x*a,Pe.y*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee+z)*a,(re+b)*y,(ee+b)*a,(re+z)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,(ee-b)*a,(re+z)*y,(ee-z)*a,(re+b)*y)),z=.35,b=me*.35;var Ie=new go.PathFigure(ee*a,(re-z)*y,!1);x.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-z)*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y));var vt=new go.PathFigure((ee-z)*a,re*y,!1);return x.add(vt),_e(se),_e(ge),_e(Se),_e(Pe),_e(Le),_e(Fe),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,z=0,ee=-.125,re=b*me,se=new go.PathFigure((.525+z)*a,(.5+b+ee)*y,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+z)*a,(.5+ee)*y,(.5+re+z)*a,(.5+b+ee)*y,(.5+b+z)*a,(.5+re+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-b+ee)*y,(1-.5+b+z)*a,(.5-re+ee)*y,(.5+re+z)*a,(.5-b+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+z)*a,(.5+ee)*y,(.5-re+z)*a,(.5-b+ee)*y,(.5-b+z)*a,(.5-re+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*a,(.5+b+ee)*y,(.5-b+z)*a,(.5+re+ee)*y,(.5-re+z)*a,(.5+b+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,z=0,ee=-.125,re=b*me;var se=new go.PathFigure((1-.5+b+z)*a,(.5+ee)*y,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+b+ee)*y,(.5+b+z)*a,(.5+re+ee)*y,(.5+re+z)*a,(.5+b+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+z)*a,(.5+ee)*y,(.5-re+z)*a,(.5+b+ee)*y,(.5-b+z)*a,(.5+re+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-b+ee)*y,(.5-b+z)*a,(.5-re+ee)*y,(.5-re+z)*a,(.5-b+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+z)*a,(.5+ee)*y,(.5+re+z)*a,(.5-b+ee)*y,(1-.5+b+z)*a,(.5-re+ee)*y));var se=new go.PathFigure((.525+z)*a,(.5+b+ee)*y,!1);return x.add(se),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*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 x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*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,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*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 x=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 x.defaultStretch=go.GraphObject.Uniform,x}),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 x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ft("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ft("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var z=(1-x)*a,ee=(.5-b/2)*y,re=(.5+b/2)*y,se=new go.Geometry,ge=new go.PathFigure(0,ee,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,ee/y);var Se=Ee(0,re/y,1,re/y,z/a,1,1,.5,E());return se.spot2=new go.Spot(Se.x,Se.y),_e(Se),se}),go.Shape.setFigureParameter("Arrow2",0,new ft("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ft("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var z=a-x,ee=(y-b)/2,re=ee+b,se=new go.Geometry,ge=new go.PathFigure(0,ee,!0);se.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,y)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,ee/y);var Se=Ee(0,re/y,1,re/y,z/a,1,1,.5,E());return se.spot2=new go.Spot(Se.x,Se.y),_e(Se),se}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ft("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,z=(.5+x/2)*y,ee=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);ee.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var se=Ee(0,.5,.3,0,0,b/y,.1,b/y,E());return ee.spot1=new go.Spot(se.x,se.y),se=Ee(.7,1,1,.5,0,z/y,1,z/y,se),ee.spot2=new go.Spot(se.x,se.y),_e(se),ee}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ft("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ft("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var z=(y-x)/2,ee=z+x,re=(y-b)/2,se=re+b;(x>y||b>y)&&(b>x?(x=x*y/b,z=(y-x)/2,ee=z+x,re=0,se=y):(z=0,ee=y,re=0,se=y));var ge=new go.Geometry,Se=new go.PathFigure(a,.5*y,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),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,se)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,re)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close());var Pe=Ee(0,.5,.3,re/y,0,z/y,1,z/y,E());return ge.spot1=new go.Spot(Pe.x,Pe.y),Pe=Ee(.7,se/y,1,.5,0,ee/y,1,ee/y,Pe),ge.spot2=new go.Spot(Pe.x,Pe.y),_e(Pe),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new ft("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,z=(.5+x/2)*y,ee=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);ee.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ee.spot1=new go.Spot(0,b/y);var se=Ee(.7,1,1,.5,0,z/y,1,z/y,E());return ee.spot2=new go.Spot(se.x,se.y),_e(se),ee}),go.Shape.setFigureParameter("IBeamArrow2",0,new ft("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ft("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var z=(y-x)/2,ee=z+x,re=(y-b)/2,se=re+b;(x>y||b>y)&&(b>x?(x=x*y/b,z=(y-x)/2,ee=z+x,re=0,se=y):(z=0,ee=y,re=0,se=y));var ge=new go.Geometry,Se=new go.PathFigure(a,.5*y,!0);ge.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),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,se)),Se.add(new go.PathSegment(go.PathSegment.Line,0,se)),Se.add(new go.PathSegment(go.PathSegment.Line,0,re)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,re)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close()),ge.spot1=new go.Spot(0,z/y);var Pe=Ee(.7,se/y,1,.5,0,ee/y,1,ee/y,E());return ge.spot2=new go.Spot(Pe.x,Pe.y),_e(Pe),ge}),go.Shape.setFigureParameter("Pointer",0,new ft("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var ee=Ee(.2,.65,1,.65,0,1,1,.5,E());return b.spot2=new go.Spot(ee.x,ee.y),_e(ee),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ft("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var ee=Ee(0,.65,1,.65,0,1,1,.5,E());return b.spot2=new go.Spot(ee.x,ee.y),_e(ee),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ft("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,z=(.5+x/2)*y,ee=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);ee.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ee.spot1=new go.Spot(.2,.3);var se=Ee(.7,1,1,.5,0,z/y,1,z/y,E());return ee.spot2=new go.Spot(se.x,se.y),_e(se),ee}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ft("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,z=b+x;x>y&&(b=0,z=y);var ee=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);ee.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),ee.spot1=new go.Spot(.2,b/y);var se=Ee(.7,1,1,.5,0,z/y,1,z/y,E());return ee.spot2=new go.Spot(se.x,se.y),_e(se),ee}),go.Shape.setFigureParameter("SquareArrow",0,new ft("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,z=new go.PathFigure(a,.5*y,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=me*.1,ee=new go.PathFigure(0,.9*y,!0);return x.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+z)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+z)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.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 z=new go.PathFigure(0,.9*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.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 z=new go.PathFigure(.5*a,y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),z.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.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 z=new go.PathFigure(0,.3*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,z=me*.5,ee=new go.PathFigure(0,x,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-z)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+z)*a,0,1*a,me*x)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*x,(.5+z)*a,1*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-z)*a,1*y,0,y-me*x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(a,x,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-me*x,(.5+z)*a,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*a,2*x,0,2*x-me*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,z=me*.5,ee=new go.PathFigure(0,y-x,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*x,(.5-z)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+z)*a,0,a,me*x)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*x,(.5+z)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-z)*a,y,0,y-me*x));var re=new go.PathFigure(0,y-x,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-me*x,(.5-z)*a,y-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+z)*a,y-2*x,a,y-x-me*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,z=me*.5,ee=new go.PathFigure(x,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-z)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+z)*y,a-me*x,y)),ee.add(new go.PathSegment(go.PathSegment.Line,x,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+z)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*y,me*x,0));var re=new go.PathFigure(x,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+me*x,0,2*x,(.5-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+z)*y,x+me*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,z=me*.5,ee=new go.PathFigure(a-x,0,!0);b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*x,0,a,(.5-z)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+z)*y,a-me*x,y)),ee.add(new go.PathSegment(go.PathSegment.Line,x,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*x,y,0,(.5+z)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*y,me*x,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var re=new go.PathFigure(a-x,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-me*x,0,a-2*x,(.5-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+z)*y,a-x-me*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.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 z=new go.PathFigure(.25*a,.25*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.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 z=new go.PathFigure(0,y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),z.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(.5*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(.5*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),z.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,z=.1,ee=me*b,re=me*z,se=.5,ge=.1,Se=new go.PathFigure(se*a,(ge+z)*y,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se-b)*a,ge*y,(se-ee)*a,(ge+z)*y,(se-b)*a,(ge+re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-z)*y,(se-b)*a,(ge-re)*y,(se-ee)*a,(ge-z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se+b)*a,ge*y,(se+ee)*a,(ge-z)*y,(se+b)*a,(ge-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge+z)*y,(se+b)*a,(ge+re)*y,(se+ee)*a,(ge+z)*y));var Pe=.05,Re=me*Pe;se=.05,ge=.25;var Le=new go.PathFigure(.5*a,.2*y,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),se=.95,ge=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+Pe)*a,ge*y,(se+Re)*a,(ge-Pe)*y,(se+Pe)*a,(ge-Re)*y)),Le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),Pe=.025,Re=me*Pe,se=.825,ge=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-Pe)*y,(se+Pe)*a,(ge-Re)*y,(se+Re)*a,(ge-Pe)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Pe)*a,ge*y,(se-Re)*a,(ge-Pe)*y,(se-Pe)*a,(ge-Re)*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),Pe=.05,Re=me*Pe,se=.5,ge=.7,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-Pe)*y,(se+Pe)*a,(ge-Re)*y,(se+Re)*a,(ge-Pe)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Pe)*a,ge*y,(se-Re)*a,(ge-Pe)*y,(se-Pe)*a,(ge-Re)*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),Pe=.025,Re=me*Pe,se=.175,ge=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-Pe)*y,(se+Pe)*a,(ge-Re)*y,(se+Re)*a,(ge-Pe)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Pe)*a,ge*y,(se-Re)*a,(ge-Pe)*y,(se-Pe)*a,(ge-Re)*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),Pe=.05,Re=me*Pe,se=.05,ge=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-Pe)*y,(se-Pe)*a,(ge-Re)*y,(se-Re)*a,(ge-Pe)*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new ft("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,z=new go.PathFigure(a,0,!0);return b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),z.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.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 z=new go.PathFigure(.5*a,.5*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(0,b*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=me*.1,ee=new go.PathFigure(a,.1*y,!0);x.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+z)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+z)*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-z)*y,(.5-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-z)*y));var re=new go.PathFigure(a,.1*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+z)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+z)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+z)*y,(.5+b)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+z)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+z)*y,(.5+b)*a,.4*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+z)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=me*.1,ee=new go.PathFigure(a,.1*y,!0);x.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+z)*y,(.5+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+z)*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-z)*y,(.5-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-z)*y));var re=new go.PathFigure(a,.1*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+z)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+z)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+z)*y,(.5+b)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+z)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.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()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var z=me*.2,ee=new go.PathFigure(0,.2*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-z)*y,(.2-z)*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+z)*a,0,a,(.2-z)*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+z)*y,(.8+z)*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-z)*a,y,0,(.8+z)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var re=new go.PathFigure(0,b*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.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()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(.1*a,.4*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(.75*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.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 z=new go.PathFigure(a,.5*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,z=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(z)&&(z=.1);var ee=new go.PathFigure(0,0,!0);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());var re=new go.PathFigure(b*a,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*y)),re.add(new go.PathSegment(go.PathSegment.Line,a,z*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,ee=me*.5,re=.5,se=new go.PathFigure(a,re*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,y,a,(re+ee)*y,(re+ee)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,re*y,(re-ee)*a,y,0,(re+ee)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,0,0,(re-ee)*y,(re-ee)*a,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,a,re*y,(re+ee)*a,0,a,(re-ee)*y));var ge=new go.PathFigure((z+b)*a,(z+b)*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z*a,z*y)),ge.add(new go.PathSegment(go.PathSegment.Move,z*a,(z+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Line,(z+b)*a,z*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.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 z=new go.PathFigure(.1*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=.5,ee=new go.PathFigure(.5*a,y,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-b)*a,y,0,(z+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-b)*y,(z-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+b)*a,0,a,(z-b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*a,.9*y,a,(z+b)*y,(z+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)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.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 z=new go.PathFigure(.1*a,.2*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.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 z=new go.PathFigure(.2*a,.1*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var z=1-b,ee=new go.PathFigure(0,0,!0);x.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 re=new go.PathFigure(.5*b*a,b*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=.5,ee=new go.PathFigure(a,z*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,a,(z+b)*y,(z+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-b)*a,y,0,(z+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-b)*y,(z-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+b)*a,0,a,(z-b)*y));var re=new go.PathFigure(a,.5*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.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()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,z=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(z)&&(z=.3);var 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,(1-z)*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,z=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(z)&&(z=.3);var ee=new go.PathFigure(0,0,!0);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(1-z)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure((1-b)*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var z=new go.PathFigure(b*a,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),z.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 x.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)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.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)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=.5,ee=new go.PathFigure(a,z*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,a,(z+b)*y,(z+b)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,z*y,(z-b)*a,y,0,(z+b)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,0,0,(z-b)*y,(z-b)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,z*y,(z+b)*a,0,a,(z-b)*y));var re=new go.PathFigure(a,z*y,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,z*y));var se=new go.PathFigure(.8*a,.75*y,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=me*.1,z=.1,ee=.9,re=.5,se=new go.PathFigure(.8*a,.5*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,y)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ge=new go.PathFigure((ee+z)*a,re*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee+z)*a,(re+b)*y,(ee+b)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,(ee-b)*a,(re+z)*y,(ee-z)*a,(re+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-z)*y,(ee-z)*a,(re-b)*y,(ee-b)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,(ee+b)*a,(re-z)*y,(ee+z)*a,(re-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=me*.4,ee=me*.1,re=.1,se=.9,ge=.5,Se=new go.PathFigure(.8*a,.5*y,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+z)*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-z)*y));var Pe=new go.PathFigure((se+re)*a,ge*y,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge+re)*y,(se+re)*a,(ge+ee)*y,(se+ee)*a,(ge+re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,ge*y,(se-ee)*a,(ge+re)*y,(se-re)*a,(ge+ee)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-re)*y,(se-re)*a,(ge-ee)*y,(se-ee)*a,(ge-re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,ge*y,(se+ee)*a,(ge-re)*y,(se+re)*a,(ge-ee)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,z=me*b,ee=0,re=.5,se=new go.PathFigure(.8*a,.5*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(re+z)*y,(ee+z)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(ee+z)*a,(re-b)*y,.7*a,(re-z)*y)),b=.1,z=me*.1,ee=.9,re=.5;var ge=new go.PathFigure((ee-b)*a,re*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-b)*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,re*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+b)*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,re*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,z=me*b,ee=0,re=.5,se=new go.PathFigure(0,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(ee+z+z)*a,(re-b)*y,.8*a,(re-z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(re+z)*y,(ee+z+z)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,z=me*b,ee=.2,re=.5,se=new go.PathFigure(.1*a,0,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(re+z)*y,(ee+z)*a,(re+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(ee+z)*a,(re-b)*y,.7*a,(re-z)*y)),b=.1,z=me*.1,ee=.9,re=.5;var Se=new go.PathFigure((ee-b)*a,re*y,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-b)*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,re*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+b)*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,re*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,z=me*b,ee=.2,re=.5,se=new go.PathFigure(.1*a,0,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ge=new go.PathFigure(.2*a,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(ee+z)*a,(re-b)*y,.9*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(re+z)*y,(ee+z)*a,(re+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=me*.1,z=.1,ee=.1,re=.5,se=new go.PathFigure((ee-b*.5)*a,y,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,0,(ee-b)*a,y,(ee-z)*a,0)),ee=.3,se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+z)*a,0,(ee+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,0,(ee-b)*a,y,(ee-z)*a,0)),ee=.5,se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+z)*a,0,(ee+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,0,(ee-b)*a,y,(ee-z)*a,0)),ee=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,(ee+z)*a,0,(ee+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,0,(ee-b)*a,y,(ee-z)*a,0)),ee=.9,se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b*.5)*a,y,(ee+z)*a,0,(ee+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=me*.5,z=.5,ee=.5,re=.5,se=new go.PathFigure((ee-z)*a,re*y,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-z)*y,(ee-z)*a,(re-b)*y,(ee-b)*a,(re-z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,(ee+b)*a,(re-z)*y,(ee+z)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee+z)*a,(re+b)*y,(ee+b)*a,(re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,(ee-b)*a,(re+z)*y,(ee-z)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Move,(ee-z+.1)*a,re*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z-.1)*a,re*y,ee*a,(re-z)*y,ee*a,(re+z)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.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)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,z=y;a=a*.38,y=y*.6;var ee=me*.8,re=.8,se=0,ge=.5,Se=(b-a)/2,Pe=(z-y)/2,Re=new go.PathFigure(se*a+Se,(ge+re)*y+Pe,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+Se,ge*y+Pe,(se-ee)*a+Se,(ge+re)*y+Pe,(se-re)*a+Se,(ge+ee)*y+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge-re)*y+Pe,(se-re)*a+Se,(ge-ee)*y+Pe,(se-ee)*a+Se,(ge-re)*y+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+ee*.5)*a+Se,ge*y+Pe,se*a+Se,(ge-re)*y+Pe,(se-re+ee*.5)*a+Se,(ge-ee)*y+Pe)),Re.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge+re)*y+Pe,(se-re+ee*.5)*a+Se,(ge+ee)*y+Pe,se*a+Se,(ge+re)*y+Pe).close()),ee=me*.4,re=.4,se=.2,ge=.5;var Le=new go.PathFigure(se*a+Se,(ge+re)*y+Pe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+Se,ge*y+Pe,(se-ee)*a+Se,(ge+re)*y+Pe,(se-re)*a+Se,(ge+ee)*y+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge-re)*y+Pe,(se-re)*a+Se,(ge-ee)*y+Pe,(se-ee)*a+Se,(ge-re)*y+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+ee*.5)*a+Se,ge*y+Pe,se*a+Se,(ge-re)*y+Pe,(se-re+ee*.5)*a+Se,(ge-ee)*y+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge+re)*y+Pe,(se-re+ee*.5)*a+Se,(ge+ee)*y+Pe,se*a+Se,(ge+re)*y+Pe).close()),ee=me*.2,re=.2,se=.5,ge=.5;var Fe=new go.PathFigure((se-re)*a+Se,ge*y+Pe,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge-re)*y+Pe,(se-re)*a+Se,(ge-ee)*y+Pe,(se-ee)*a+Se,(ge-re)*y+Pe)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+Se,ge*y+Pe,(se+ee)*a+Se,(ge-re)*y+Pe,(se+re)*a+Se,(ge-ee)*y+Pe)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge+re)*y+Pe,(se+re)*a+Se,(ge+ee)*y+Pe,(se+ee)*a+Se,(ge+re)*y+Pe)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+Se,ge*y+Pe,(se-ee)*a+Se,(ge+re)*y+Pe,(se-re)*a+Se,(ge+ee)*y+Pe)),ee=me*.4,re=.4,se=.8,ge=.5;var Ie=new go.PathFigure(se*a+Se,(ge-re)*y+Pe,!0);x.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+Se,ge*y+Pe,(se+ee)*a+Se,(ge-re)*y+Pe,(se+re)*a+Se,(ge-ee)*y+Pe)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge+re)*y+Pe,(se+re)*a+Se,(ge+ee)*y+Pe,(se+ee)*a+Se,(ge+re)*y+Pe)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-ee*.5)*a+Se,ge*y+Pe,se*a+Se,(ge+re)*y+Pe,(se+re-ee*.5)*a+Se,(ge+ee)*y+Pe)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge-re)*y+Pe,(se+re-ee*.5)*a+Se,(ge-ee)*y+Pe,se*a+Se,(ge-re)*y+Pe).close()),ee=me*.8,re=.8,se=1,ge=.5;var vt=new go.PathFigure(se*a+Se,(ge-re)*y+Pe,!0);return x.add(vt),vt.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+Se,ge*y+Pe,(se+ee)*a+Se,(ge-re)*y+Pe,(se+re)*a+Se,(ge-ee)*y+Pe)),vt.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge+re)*y+Pe,(se+re)*a+Se,(ge+ee)*y+Pe,(se+ee)*a+Se,(ge+re)*y+Pe)),vt.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-ee*.5)*a+Se,ge*y+Pe,se*a+Se,(ge+re)*y+Pe,(se+re-ee*.5)*a+Se,(ge+ee)*y+Pe)),vt.add(new go.PathSegment(go.PathSegment.Bezier,se*a+Se,(ge-re)*y+Pe,(se+re-ee*.5)*a+Se,(ge-ee)*y+Pe,se*a+Se,(ge-re)*y+Pe).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.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 z=new go.PathFigure(.1*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var ee=new go.PathFigure(.6*a,y,!0,!0);x.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 re=new go.PathFigure(0,.5*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),re.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),re.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=me*.4,z=.4,ee=.5,re=.5,se=E(),ge=E(),Se=E(),Pe=E();pe(ee,re-z,ee+b,re-z,ee+z,re-b,ee+z,re,.5,se,se,ge,Se,Pe);var Re=te(ge.x,ge.y),Le=new go.PathFigure(ge.x*a,ge.y*y,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,Se.x*a,Se.y*y,Pe.x*a,Pe.y*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee+z)*a,(re+b)*y,(ee+b)*a,(re+z)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,(ee-b)*a,(re+z)*y,(ee-z)*a,(re+b)*y)),pe(ee-z,re,ee-z,re-b,ee-b,re-z,ee,re-z,.5,Se,Pe,ge,se,se),Le.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,Se.x*a,Se.y*y,Pe.x*a,Pe.y*y)),b=me*.3,z=.3,pe(ee-z,re,ee-z,re-b,ee-b,re-z,ee,re-z,.5,Se,Pe,ge,se,se),Le.add(new go.PathSegment(go.PathSegment.Line,ge.x*a,ge.y*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ee-z)*a,re*y,Pe.x*a,Pe.y*y,Se.x*a,Se.y*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+z)*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ee+z)*a,re*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),pe(ee,re-z,ee+b,re-z,ee+z,re-b,ee+z,re,.5,se,se,ge,Se,Pe),Le.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,Pe.x*a,Pe.y*y,Se.x*a,Se.y*y).close());var Le=new go.PathFigure(.45*a,0,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),_e(se),_e(ge),_e(Se),_e(Pe),_e(Re),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function z(ee,re,se){ee.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*a,(.8+se)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*a,(.5+se)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*a,(.5+se)*y)),ee.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*a,(.8+se)*y).close())}return z(b,0,0),z(b,.4,0),z(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.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()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.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()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,z=0,ee=0,re=b*me,se=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,Se=1,Pe=.5,Re=.5,Le=0,Fe=new go.PathFigure(se*a,(1-ge)*y,!1);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,Pe*y,Se*a,.7*y,Se*a,Pe*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Re+z)*a,(Le+z)*y,(.5+b+z)*a,(.5-re+z)*y,(.5+re+z)*a,(.5-b+z)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+z)*a,(.5+ee)*y,(.5-re+z)*a,(.5-b+ee)*y,(.5-b+z)*a,(.5-re+ee)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*a,.9*y,(.5-b+z)*a,(.5+re+ee)*y,(.5-re+z)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var z=new go.PathFigure(a,y,!1);x.add(z);var ee=new go.PathFigure(0,.5*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.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 x.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)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.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 z=new go.PathFigure(.45*a,.73*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),z.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),z.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var z=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),z.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var ee=.5-.285,re=.5,se=ee,ge=Math.PI/4,Se=4*(1-Math.cos(ge))/(3*Math.sin(ge)),Pe=Se*.5,Re=ee,Le=ee,Fe=Se*Re,Ie=Se*Le;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-Re)*a,se*y,(re-(Fe+Re)/2)*a,(se+(Le+Ie)/2)*y,(re-Re)*a,(se+Ie)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(se-Le)*y,(re-Re)*a,(se-Ie)*y,(re-Fe)*a,(se-Le)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+Re)*a,se*y,(re+Fe)*a,(se-Le)*y,(re+Re)*a,(se-Ie)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(re+Re)*a,(se+Ie)*y,(re+(Fe+Re)/2)*a,(se+(Le+Ie)/2)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),z.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var vt=new go.PathFigure(.2*a,y,!1);x.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var at=new go.PathFigure(.8*a,y,!1);return x.add(at),at.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.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 z=new go.PathFigure(.2*a,.2*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var z=new go.PathFigure(a,y,!1);x.add(z);var ee=new go.PathFigure(.1*a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.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 z=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,z*a,z*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)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.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 z=new go.PathFigure(.475*a,.2*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),z.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),z.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),z.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var ee=new go.PathFigure(.675*a,.575*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,z=me*.5,ee=new go.PathFigure(a,b*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+z)*y,(b+z)*a,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-z)*a,y,0,(b+z)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-z)*y,(b-z)*a,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+z)*a,0,a,(b-z)*y));var re=new go.PathFigure(b*a,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),re.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.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 z=new go.PathFigure(0,.15*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,.2*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.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 z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var ee=new go.PathFigure(0,.6*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.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 z=new go.PathFigure(.15*a,.6*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var ee=.1,re=me*.1,se=.2,ge=.9,Se=new go.PathFigure((se-ee)*a,ge*y,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-ee)*y,(se-ee)*a,(ge-re)*y,(se-re)*a,(ge-ee)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se+ee)*a,ge*y,(se+re)*a,(ge-ee)*y,(se+ee)*a,(ge-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge+ee)*y,(se+ee)*a,(ge+re)*y,(se+re)*a,(ge+ee)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se-ee)*a,ge*y,(se-re)*a,(ge+ee)*y,(se-ee)*a,(ge+re)*y).close()),ee=.1,re=me*.1,se=.8,ge=.9;var Pe=new go.PathFigure((se-ee)*a,ge*y,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge-ee)*y,(se-ee)*a,(ge-re)*y,(se-re)*a,(ge-ee)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ee)*a,ge*y,(se+re)*a,(ge-ee)*y,(se+ee)*a,(ge-re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ge+ee)*y,(se+ee)*a,(ge+re)*y,(se+re)*a,(ge+ee)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ee)*a,ge*y,(se-re)*a,(ge+ee)*y,(se-ee)*a,(ge+re)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,.5*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var ee=new go.PathFigure(.5*a,.8*y,!0);x.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 re=new go.PathFigure(.5*a,.7*y,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var se=.1,ge=me*.1,Se=.1,Pe=.9,Re=new go.PathFigure((Se-se)*a,Pe*y,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(Pe-se)*y,(Se-se)*a,(Pe-ge)*y,(Se-ge)*a,(Pe-se)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*a,Pe*y,(Se+ge)*a,(Pe-se)*y,(Se+se)*a,(Pe-ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(Pe+se)*y,(Se+se)*a,(Pe+ge)*y,(Se+ge)*a,(Pe+se)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*a,Pe*y,(Se-ge)*a,(Pe+se)*y,(Se-se)*a,(Pe+ge)*y)),se=.1,ge=me*.1,Se=.4,Pe=.9;var Le=new go.PathFigure((Se-se)*a,Pe*y,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(Pe-se)*y,(Se-se)*a,(Pe-ge)*y,(Se-ge)*a,(Pe-se)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se+se)*a,Pe*y,(Se+ge)*a,(Pe-se)*y,(Se+se)*a,(Pe-ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(Pe+se)*y,(Se+se)*a,(Pe+ge)*y,(Se+ge)*a,(Pe+se)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Se-se)*a,Pe*y,(Se-ge)*a,(Pe+se)*y,(Se-se)*a,(Pe+ge)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.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 z=new go.PathFigure(.45*a,.7*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var ee=new go.PathFigure(.55*a,.4*y,!0);x.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,Pe=me*.05,Re=.175,Le=.95,re=new go.PathFigure((Re-Se)*a,Le*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le-Se)*y,(Re-Se)*a,(Le-Pe)*y,(Re-Pe)*a,(Le-Se)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Se)*a,Le*y,(Re+Pe)*a,(Le-Se)*y,(Re+Se)*a,(Le-Pe)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le+Se)*y,(Re+Se)*a,(Le+Pe)*y,(Re+Pe)*a,(Le+Se)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Se)*a,Le*y,(Re-Pe)*a,(Le+Se)*y,(Re-Se)*a,(Le+Pe)*y));var Se=.05,Pe=me*.05,Re=.375,Le=.95,se=new go.PathFigure((Re-Se)*a,Le*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le-Se)*y,(Re-Se)*a,(Le-Pe)*y,(Re-Pe)*a,(Le-Se)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Se)*a,Le*y,(Re+Pe)*a,(Le-Se)*y,(Re+Se)*a,(Le-Pe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le+Se)*y,(Re+Se)*a,(Le+Pe)*y,(Re+Pe)*a,(Le+Se)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Se)*a,Le*y,(Re-Pe)*a,(Le+Se)*y,(Re-Se)*a,(Le+Pe)*y));var Se=.05,Pe=me*.05,Re=.625,Le=.95,ge=new go.PathFigure((Re-Se)*a,Le*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le-Se)*y,(Re-Se)*a,(Le-Pe)*y,(Re-Pe)*a,(Le-Se)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Se)*a,Le*y,(Re+Pe)*a,(Le-Se)*y,(Re+Se)*a,(Le-Pe)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le+Se)*y,(Re+Se)*a,(Le+Pe)*y,(Re+Pe)*a,(Le+Se)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Se)*a,Le*y,(Re-Pe)*a,(Le+Se)*y,(Re-Se)*a,(Le+Pe)*y));var Se=.05,Pe=me*.05,Re=.825,Le=.95,Fe=new go.PathFigure((Re-Se)*a,Le*y,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le-Se)*y,(Re-Se)*a,(Le-Pe)*y,(Re-Pe)*a,(Le-Se)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Re+Se)*a,Le*y,(Re+Pe)*a,(Le-Se)*y,(Re+Se)*a,(Le-Pe)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,Re*a,(Le+Se)*y,(Re+Se)*a,(Le+Pe)*y,(Re+Pe)*a,(Le+Se)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(Re-Se)*a,Le*y,(Re-Pe)*a,(Le+Se)*y,(Re-Se)*a,(Le+Pe)*y).close());var Ie=new go.PathFigure(0,y,!1);return x.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(0,.2*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var ee=new go.PathFigure(.15*a,y,!0);x.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 re=.05,se=me*.05,ge=.35,Se=.775,Pe=new go.PathFigure((ge-re)*a,Se*y,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(Se-re)*y,(ge-re)*a,(Se-se)*y,(ge-se)*a,(Se-re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+re)*a,Se*y,(ge+se)*a,(Se-re)*y,(ge+re)*a,(Se-se)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(Se+re)*y,(ge+re)*a,(Se+se)*y,(ge+se)*a,(Se+re)*y)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-re)*a,Se*y,(ge-se)*a,(Se+re)*y,(ge-re)*a,(Se+se)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,z=me*.3,ee=.5,re=.7,se=new go.PathFigure((ee-b)*a,re*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-b)*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,re*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+b)*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,re*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y));var ge=new go.PathFigure(0,.7*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.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 z=new go.PathFigure(0,.6*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,z=me*.5,ee=.5,re=.5,se=new go.PathFigure((ee-b)*a,re*y,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-b)*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,re*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+b)*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,re*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y));var ge=new go.PathFigure(.15*a,.5*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,z=me*.5,ee=.5,re=.5,se=new go.PathFigure((ee-b)*a,re*y,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-b)*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,re*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+b)*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,re*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y).close()),b=.05,z=me*.05,ee=.5,re=.8;var ge=new go.PathFigure((ee-b)*a,re*y,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re-b)*y,(ee-b)*a,(re-z)*y,(ee-z)*a,(re-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ee+b)*a,re*y,(ee+z)*a,(re-b)*y,(ee+b)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(re+b)*y,(ee+b)*a,(re+z)*y,(ee+z)*a,(re+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ee-b)*a,re*y,(ee-z)*a,(re+b)*y,(ee-b)*a,(re+z)*y).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.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 z=new go.PathFigure(.2*a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.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 z=new go.PathFigure(.2*a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.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 z=new go.PathFigure(0,y*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),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 x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.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 z=new go.PathFigure(.126*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var ee=new go.PathFigure(.402*a,.85*y,!1);x.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 re=new go.PathFigure(.678*a,.85*y,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var se=new go.PathFigure(.5*a,.1*y,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),se.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.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()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.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 z=new go.PathFigure(a*.204,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var ee=new go.PathFigure(a*.408,y,!0);x.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 re=new go.PathFigure(a*.612,y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var se=new go.PathFigure(a*.816,y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 z=new go.PathFigure(a*.055,.07*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var ee=new go.PathFigure(a*.055,.13*y,!0);x.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 re=new go.PathFigure(a*.055,.18*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),re.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var se=new go.PathFigure(a*1,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.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()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.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 z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var ee=new go.PathFigure(a*.11,y*.1,!1);x.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 re=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var se=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,z=b*me,ee=new go.PathFigure(b,0,!1);x.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-z,a-z,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,z,y,0,y-z)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,z,z,0).close());var re=new go.PathFigure(a*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var se=new go.PathFigure(a*.83,y*1,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),se.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),se.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ge=new go.PathFigure(a*.78,y*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*me,z=y*.8,ee=new go.Geometry,re=new go.PathFigure(x,0,!0);return ee.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),re.add(new go.PathSegment(go.PathSegment.Line,a,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-x,z,a,z-b,a-b,z)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),re.add(new go.PathSegment(go.PathSegment.Line,a*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,b,z,0,z-b)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,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 x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.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 z=new go.PathFigure(a*1,y*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),z.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),z.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),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 x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.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 z=new go.PathFigure(a*.1,y*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),z.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),z.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var ee=new go.PathFigure(a*.28,y*.37,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,z=b*me,ee=new go.PathFigure(a*.62,y*.475,!0);return x.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-z,a-z,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b,y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,z,y,0,y-z)),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()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var z=.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-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),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-z)).close());var ee=new go.PathFigure(a*.4,y*0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var z=.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-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),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-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var z=.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-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-z))),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-z))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-z))),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-z)).close());var ee=new go.PathFigure(a*.5,y*0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.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()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.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 z=new go.PathFigure(a*.235,y*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),z.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),z.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.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()),x}),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 ft={},Je="5.0",te={},E=null,_e=!1,Ee=!1,pe=null,ve=!1,fe=null,me=null,de=0;de<arguments.length;de++){var ce=arguments[de];if(ce!==null)switch(typeof ce){case"number":Je=ce.toFixed(1);break;case"string":ce.match(new RegExp("^[0-9]\\.[0-9]+$"))?Je=ce:pe=ce;break;case"object":typeof ce.is3D!="undefined"?E=ce:te=ce;break;case"boolean":_e=ce,Ee=!0;break}}E===null&&(E={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&&!Ee&&(_e=!0)),pe!==null&&te.id===void 0&&(te.id=pe);var ue="",le="",he=!1,ie=null,ne=null,a=null,y=!1,x=null,b=null,z=null,ee=null,re=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var se=function(St){return parseFloat(St)>4?parseFloat(St):5};ft.setHTML5Codebase=function(St,gt){me=St,Ot(St,gt)},ft.setJavaCodebase=ft.setJavaCodebaseVersion=ft.isCompiledInstalled=ft.setPreCompiledScriptPath=ft.setPreCompiledResourcePath=function(){},ft.setHTML5CodebaseVersion=function(St,gt){var ht=parseFloat(St);if(ht!==NaN&&ht<5){console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead.");return}fe=St,xt(St,gt)},ft.getHTML5CodebaseVersion=function(){return ne},ft.getParameters=function(){return te},ft.setFontsCSSURL=function(St){ee=St},ft.setGiacJSURL=function(St){},ft.setJNLPFile=function(St){ue=St},ft.setJNLPBaseDir=function(St){},ft.inject=function(){function St(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var gt="auto",ht=te.id,Qt,yt=!1,Zt=0;Zt<arguments.length;Zt++){var Ye=arguments[Zt];typeof Ye=="string"?(Ye=Ye.toLowerCase(),Ye.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?gt=Ye:ht=arguments[Zt]):typeof Ye=="boolean"?yt=Ye:Ye instanceof HTMLElement&&(Qt=Ye)}Gt();function Gt(){if(!ve){setTimeout(Gt,200);return}gt=lt(gt);var fn=Qt||document.getElementById(ht);if(!fn){console.log("possibly bug on ajax loading? ");return}if(ft.removeExistingApplet(fn,!1),te.width===void 0&&fn.clientWidth&&(te.width=fn.clientWidth),te.height===void 0&&fn.clientHeight&&(te.height=fn.clientHeight),!(te.width&&te.height)&>==="html5"&&(delete te.width,delete te.height),ie=gt,gt==="screenshot")at(fn,te);else{var hn=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?hn=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(hn=(!ge()||St())&&Se()),hn?(ie="screenshot",De(fn,te,yt,gt)):vt(fn,te,yt)}}};function ge(){try{return window.self!==window.top}catch(St){return!0}}function Se(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ft.getViews=function(){return E},ft.isJavaInstalled=function(){return!1};var Pe=function(St){var gt=function(Zt){var Ye=JSON.parse(Zt),Gt=function(mn){return mn.type=="G"||mn.type=="E"},fn=Ye.elements?Ye.elements.filter(Gt)[0]:Ye;if(!fn||!fn.url){ht();return}te.fileName=fn.url,Re(fn.settings||{}),E.is3D=!0;var hn="https://www.geogebra.org/images/";ft.setPreviewImage(x||fn.previewUrl,hn+"GeoGebra_loading.png",hn+"applet_play.png"),St()},ht=function(){te.onError&&te.onError(),Dt("Error: Fetching material (id "+te.material_id+") failed.",te)},Qt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",yt="/materials/"+te.material_id+"?scope=basic";Le("https://"+Qt+"/api/proxy.php?path="+encodeURIComponent(yt),gt,ht)};function Re(St){var gt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ht){St[ht]=!!St[ht]}),gt.forEach(function(ht){te[ht]===void 0&&St[ht]!==void 0&&(te[ht]=St[ht])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function Le(St,gt,ht){var Qt=new XMLHttpRequest;Qt.open("GET",St),Qt.onload=function(){gt(Qt.responseText)},Qt.onerror=ht,Qt.send()}ft.isHTML5Installed=function(){return!0},ft.getLoadedAppletType=function(){return ie},ft.setPreviewImage=function(St,gt,ht){x=St,b=gt,z=ht},ft.removeExistingApplet=function(St,gt){var ht;typeof St=="string"&&(St=document.getElementById(St)),ie=null;var Qt=null;for(ht=0;ht<St.childNodes.length;ht++){var yt=St.childNodes[ht],Zt=yt.className;Zt==="applet_screenshot"?gt?(yt.style.display="block",ie="screenshot"):yt.style.display="none":Zt!=="applet_scaler prerender"&&(St.removeChild(yt),Qt=Zt&&Zt.indexOf("appletParameters")!=-1?yt.id:null,ht--)}var Ye=te.id!==void 0?te.id:Qt,Gt=window[Ye];Gt&&typeof Gt.getBase64=="function"&&(Gt.remove(),window[Ye]=null)},ft.refreshHitPoints=function(){if(se(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var St=ft.getAppletObject();return St&&typeof St.recalculateEnvironments=="function"?(St.recalculateEnvironments(),!0):!1},ft.startAnimation=function(){var St=ft.getAppletObject();return St&&typeof St.startAnimation=="function"?(St.startAnimation(),!0):!1},ft.stopAnimation=function(){var St=ft.getAppletObject();return St&&typeof St.stopAnimation=="function"?(St.stopAnimation(),!0):!1},ft.getAppletObject=function(){var St=te.id!==void 0?te.id:"ggbApplet";return window[St]},ft.resize=function(){};var Fe=function(St,gt,ht){var Qt=document.createElement("param");Qt.setAttribute("name",gt),Qt.setAttribute("value",ht),St.appendChild(Qt)},Ie=function(St){return St&&St!=="false"},vt=function(St,gt,ht){se(ne)<=4.2&&(ht=!0);var Qt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Qt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var yt=document.createElement("div");yt.classList.add("appletParameters","notranslate");var Zt=gt.width,Ye=gt.height;if(gt.disableAutoScale=gt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():gt.disableAutoScale,gt.width!==void 0)if(se(ne)<=4.4)Ie(gt.showToolBar)&&(gt.height-=7),Ie(gt.showAlgebraInput)&&(gt.height-=37),gt.width<605&&Ie(gt.showToolBar)&&(gt.width=605,Zt=605);else{var Gt=100;(Ie(gt.showToolBar)||Ie(gt.showMenuBar))&&(gt.hasOwnProperty("customToolBar")&&(gt.customToolbar=gt.customToolBar),Gt=Ie(gt.showMenuBar)?245:155),Zt<Gt&&(gt.width=Gt,Zt=Gt)}yt.style.border="none",yt.style.display="inline-block";for(var fn in gt)gt.hasOwnProperty(fn)&&fn!=="appletOnLoad"&&yt.setAttribute("data-param-"+fn,gt[fn]);ee&&yt.setAttribute("data-param-fontscssurl",ee),ft.resize=function(){GGBAppletUtils.responsiveResize(St,gt)},window.addEventListener("resize",function(ut){ft.resize()});var hn=typeof gt.appletOnLoad=="function"?gt.appletOnLoad:function(){};if(!ht&>.width!==void 0){gt.hasOwnProperty("showSplash")||yt.setAttribute("data-param-showSplash","false");var mn=St.querySelector(".applet_scaler.prerender"),Mn=mn!==null;if(Mn)var Rt=mn.querySelector(".ggb_preview");else{var Rt=ke(Zt,Ye,gt.borderColor,!1);mn=document.createElement("div"),mn.className="applet_scaler",mn.style.position="relative",mn.style.display="block",mn.style.width=Zt+"px",mn.style.height=Ye+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(mn,"66%"),se(ne)>=5?(gt.appletOnLoad=function(ut){var Pt=St.querySelector(".ggb_preview");Pt&&Pt.parentNode.removeChild(Pt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(mn),window.GGBT_wsf_view&&$(window).trigger("resize"),hn(ut)},Mn||mn.appendChild(Rt)):yt.appendChild(Rt),mn.appendChild(yt),Mn||St.appendChild(mn),setTimeout(function(){ft.resize()},1)}else{var $t=document.createElement("div");$t.className="applet_scaler",$t.style.position="relative",$t.style.display="block",$t.appendChild(yt),St.appendChild($t),gt.appletOnLoad=function(ut){ft.resize(),hn(ut)}}function Ct(ut,Pt){Pt&&typeof Pt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ut,Pt.appletOnLoad):renderGGBElement(ut),Dt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Pt)}function Be(ut,Pt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ut,params:Pt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ft){Ct(Ft.article,Ft.params)}),html5AppletsToProcess=null)},se(ne)<5&&(ut.className+=" geogebraweb")):Ct(ut,Pt)}if(Qt){scriptLoadStarted=!0;for(var rt=0;rt<yt.childNodes.length;rt++){var tt=yt.childNodes[rt].tagName;tt==="TABLE"&&(yt.removeChild(yt.childNodes[rt]),rt--)}if(ggbHTML5LoadedScript!==null){var ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ct!=null&&ct.parentNode.removeChild(ct)}var qe=document.createElement("script"),Ge=function(){Be(yt,gt)};qe.src=le+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=qe.src,Dt("GeoGebra HTML5 codebase loaded: '"+le+"'.",gt),!me&&(!fe||fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ge()):le.requirejs?__webpack_require__.e(12).then(function(){var ut=[__webpack_require__(12)];Ge.apply(null,ut)}.bind(this)).catch(__webpack_require__.oe):(qe.onload=Ge,St.appendChild(qe))}else Be(yt,gt);gt.height=Ye,gt.width=Zt},at=function(St,gt,ht){var Qt=ke(gt.width,gt.height,gt.borderColor,ht),yt=document.createElement("div");yt.style.position="relative",yt.style.display="block",yt.style.width=gt.width+"px",yt.style.height=gt.height+"px",yt.className="applet_screenshot applet_scaler"+(ht?" applet_screenshot_play":""),yt.appendChild(Qt);var Zt=GGBAppletUtils.getScale(gt,St,ht);ht?(St.appendChild(Oe()),window.GGBT_wsf_view||(St.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),St.appendChild(yt),Zt!==1&&!isNaN(Zt)&&(GGBAppletUtils.scaleElement(yt,Zt),yt.style.width=gt.width+"px",yt.style.height=gt.height+"px",yt.parentNode.style.width=gt.width*Zt+"px",yt.parentNode.style.height=gt.height*Zt+"px"),ft.resize=function(){et(St,Qt,yt,ht)},window.addEventListener("resize",function(Ye){ft.resize()}),ft.resize()};function et(St,gt,ht,Qt){if(St.contains(gt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(St.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(St)}var yt=GGBAppletUtils.getScale(te,St,Qt);ht.parentNode!==null&&(!isNaN(yt)&&yt!==1?(GGBAppletUtils.scaleElement(ht,yt),ht.parentNode.style.width=te.width*yt+"px",ht.parentNode.style.height=te.height*yt+"px"):(GGBAppletUtils.scaleElement(ht,1),ht.parentNode.style.width=te.width+"px",ht.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(St),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ft.onExitFullscreen=function(St,gt){gt.appendChild(St)};var De=function(St,gt,ht,Qt){at(St,gt,!0);for(var yt=function(){var Gt=[];for(Ye=0;Ye<St.childNodes.length;Ye++)Gt.push(St.childNodes[Ye]);if(window.GGBT_wsf_view){var fn=window.GGBT_wsf_view.renderFullScreen(St,gt.id),hn=document.getElementById("fullscreencontainer"),mn=jQuery(St).find(".fullscreencontent");mn.length>0?(fn.remove(),mn.attr("id","fullscreencontent").show(),jQuery(hn).append(mn),window.dispatchEvent(new Event("resize"))):vt(fn,gt,!1),window.GGBT_wsf_view.launchFullScreen(hn)}else ie=Qt,vt(St,gt,!1);if(!window.GGBT_wsf_view)for(Ye=0;Ye<Gt.length;Ye++)St.removeChild(Gt[Ye])},Zt=St.getElementsByClassName("ggb_preview_play"),Ye=0;Ye<Zt.length;Ye++)Zt[Ye].addEventListener("click",yt,!1),Zt[Ye].addEventListener("ontouchstart",yt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(St),Se()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Oe=function(){var St=document.createElement("div");if(St.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var gt='.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");}',ht=document.createElement("style");ht.styleSheet?ht.styleSheet.cssText=gt:ht.appendChild(document.createTextNode(gt)),document.getElementsByTagName("head")[0].appendChild(ht)}return St},ke=function(St,gt,ht,Qt){var yt=document.createElement("div");yt.className="ggb_preview",yt.style.position="absolute",yt.style.zIndex="90",yt.style.width=St-2+"px",yt.style.height=gt-2+"px",yt.style.top="0px",yt.style.left="0px",yt.style.overflow="hidden",yt.style.backgroundColor="white";var Zt="lightgrey";ht!==void 0&&(ht==="none"?Zt="transparent":Zt=ht),yt.style.border="1px solid "+Zt;var Ye=document.createElement("img");if(Ye.style.position="relative",Ye.style.zIndex="1000",Ye.style.top="-1px",Ye.style.left="-1px",x!==null&&Ye.setAttribute("src",x),Ye.style.opacity=.7,b!==null){var Gt,fn,hn;if(!Qt){Gt=document.createElement("img"),Gt.style.position="absolute",Gt.style.zIndex="1001",Gt.style.opacity=1,Ye.style.opacity=.3,fn=360,fn>St/4*3&&(fn=St/4*3),hn=fn/5.8,Gt.setAttribute("src",b),Gt.setAttribute("width",fn),Gt.setAttribute("height",hn);var mn=(St-fn)/2,Mn=(gt-hn)/2;Gt.style.left=mn+"px",Gt.style.top=Mn+"px",yt.appendChild(Gt)}}return yt.appendChild(Ye),yt},lt=function(St){return St=St.toLowerCase(),St==="html5"||St==="screenshot"?St:"html5"},Xe=["web","webSimple","web3d","tablet","tablet3d","phone"],xt=function(St,gt){if(ne=St,gt){Ot(ne,!0);return}var ht=!_e;if(ht){var Qt=se(ne);!isNaN(Qt)&&Qt<4.4&&(ht=!1)}var yt,Zt;window.location.protocol.substr(0,4)==="http"?yt=window.location.protocol:yt="http:";var Ye=ne.indexOf("//");Ye>0?Zt=ne:Ye===0?Zt=yt+ne:Zt="https://www.geogebra.org/apps/5.2.814.0/";for(var Gt in Xe)if(ne.slice(Xe[Gt].length*-1)===Xe[Gt]||ne.slice((Xe[Gt].length+1)*-1)===Xe[Gt]+"/"){Ot(Zt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ht&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Ie(te.showToolBar)&&!Ie(te.showMenuBar)&&!Ie(te.showAlgebraInput)&&!Ie(te.enableRightClick)&&(!te.appName||te.appName=="classic")?Zt+="webSimple/":Zt+="web3d/",Ot(Zt,!1)},Ot=function(St,gt){if(St.requirejs){le=St;return}St.slice(-1)!=="/"&&(St+="/"),le=St,gt===null&&(gt=St.indexOf("http")===-1),he=gt,a="web.nocache.js",y=!1;var ht=le.split("/");ht.length>1&&(!gt&&ht[ht.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Xe.indexOf(ht[ht.length-2])>=0&&(a=ht[ht.length-2]+".nocache.js")),ht=St.split("/"),ne=ht[ht.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Qt=parseFloat(ne);Qt!==NaN&&Qt<5&&St.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Qt+" is deprecated. Using version latest instead."),xt("5.0",gt))},Dt=function(St,gt){window.console&&window.console.log&&(!gt||typeof gt.showLogging=="undefined"||gt.showLogging&>.showLogging!=="false")&&console.log(St)};te.material_id!==void 0?Pe(Kt):Kt();function Kt(){var St=Je;fe!==null?St=fe:parseFloat(St)<5&&(St="5.0"),xt(St,!1),me!==null&&Ot(me,he),ve=!0}return ft},GGBAppletUtils=function(){"use strict";function ft(){return window.GGBT_wsf_edit!==void 0}function Je(ve,fe){fe!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+fe+","+fe+")",ve.style.webkitTransform="scale("+fe+","+fe+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function te(ve,fe,me,de,ce,ue){var le=null;if(ue!=null&&ue!="")for(var he=ve.parentNode;he!=null;)if((" "+he.className+" ").indexOf(" "+ue+" ")>-1){le=he;break}else he=he.parentNode;var ie=0,ne=0,a=0,y=0,x=0,b=0,z=0;if(le)ie=le.offsetWidth,ne=Math.max(de?le.offsetWidth:0,le.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ie):(ie=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ve){var ee=ve.getBoundingClientRect();ee.left>0&&ee.left<=ie&&(ce===void 0||!ce)&&(document.dir==="rtl"?(x=ie-ee.width-ee.left,b=a<=480?10:30):(b=ee.left,x=a<=480?10:30),y=b+x)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,z=40)}}return ve&&((me===void 0||!me)&&fe>0&&fe+y<ie?ie=fe:ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=z)),{width:ie,height:ne}}function E(ve,fe,me,de,ce){if(ve.isScreenshoGenerator)return 1;var ue=de!==void 0&&de,le=ve.noScaleMargin!=null&&ve.noScaleMargin,he=function(re){return re&&re!=="false"},ie=he(ve.autoHeight),ne=te(fe,ve.width,me,ie,ue&&window.GGBT_wsf_view||le,ce),a=parseInt(ne.width),y=ve.width,x=ve.height;if(y===void 0){var b=fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var z=a/y,ee=ue?1:ne.height/x;return me!==void 0&&!me&&(z=Math.min(1,z),ee=Math.min(1,ee)),Math.min(z,ee)}function _e(ve,fe,me){var de=1,ce,ue=!1;if(ve.hasOwnProperty("allowUpscale")&&(ue=ve.allowUpscale),ve.hasOwnProperty("scale")&&(de=parseFloat(ve.scale),(isNaN(de)||de===null||de===0)&&(de=1),de>1&&(ue=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))ce=E(ve,fe,ue,me,ve.scaleContainerClass);else return de;return ue&&(!ve.hasOwnProperty("scale")||de===1)?ce:Math.min(de,ce)}function Ee(ve){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),de=ve.getBoundingClientRect(),ce=(fe-de.width)/2,ue=(me-de.height)/2;ue<0&&(ue=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ce<40?ve.style.left="40px":ve.style.left=ce+"px",ve.style.top=ue+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue<40?ve.style.top="40px":ve.style.top=ue+"px",ve.style.left=ce+"px")}function pe(ve,fe){var me=ve.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var de=_e(fe,ve);ft()&&me.setAttribute("data-param-scale",de);for(var ce=null,ue=0;ue<ve.childNodes.length;ue++)if(ve.childNodes[ue].className!==void 0&&ve.childNodes[ue].className.match(/^applet_scaler/)){ce=ve.childNodes[ue];break}if(ce!==null&&ce.querySelector(".noscale")!==null)return;var le=fe.id!==void 0?fe.id:"ggbApplet",he=window[le];(he==null||!he.recalculateEnvironments)&&ce!==null&&!ce.className.match(/fullscreen/)&&(ce.parentNode.style.transform="",!isNaN(de)&&de!==1?(ce.parentNode.style.width=fe.width*de+"px",ce.parentNode.style.height=fe.height*de+"px",Je(ce,de)):(Je(ce,1),ce.parentNode.style.width=fe.width+"px",ce.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ee(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:pe,isFlexibleWorksheetEditor:ft,positionCenter:Ee,getScale:_e,scaleElement:Je}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ft=n.location.search;return ft.indexOf(J)!=-1||ft.indexOf(K)!=-1}function q(ft,Je){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ft){var Je=s[L].bindings;s[L].bindings=function(){for(var te=Je?Je():{},E=ft[webModule.__softPermutationId],_e=O;_e<E.length;_e++){var Ee=E[_e];te[Ee[O]]=Ee[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var ft=o.createElement(Q);if(ft.id=L,ft.style.cssText=R+S,ft.tabIndex=-1,o.body.appendChild(ft),t=ft.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Je=document.compatMode==U?V:W;t.write(Je+X),t.close()}}}function w(ft){function Je(E){function _e(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ee=_e();if(Ee){E();return}function pe(){if(!Ee){if(!_e())return;Ee=!0,E(),o.removeEventListener&&o.removeEventListener(Z,pe,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,pe,!1);var ve=setInterval(function(){pe()},$)}function te(E){var _e=u(),Ee=_e.body,pe=_e.createElement(_);pe.language=ab,pe.crossOrigin=W,pe.src=E,webModule.__errFn&&(pe.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),Ee.appendChild(pe)}Je(function(){te(ft)})}webModule.__startLoadingFragment=function(ft){return C(ft)},webModule.__installRunAsyncCode=function(ft){var Je=u(),te=Je.body,E=Je.createElement(_);E.language=ab,E.text=ft,te.appendChild(E),te.removeChild(E)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ft){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ft){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ft){var Je=c[ft];return Je==null?null:Je},r=d,webModule.__errFn=e}function B(){function ft(ve){var fe=ve.lastIndexOf(rb);fe==-1&&(fe=ve.length);var me=ve.indexOf(sb);me==-1&&(me=ve.length);var de=ve.lastIndexOf(tb,Math.min(me,fe));return de>=O?ve.substring(O,de+P):W}function Je(ve){if(!ve.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=ve+vb,ve=ft(fe.src)}return ve}function te(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function E(){for(var ve=o.getElementsByTagName(_),fe=O;fe<ve.length;++fe)if(ve[fe].src.indexOf(xb)!=-1)return ft(ve[fe].src);return W}function _e(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function Ee(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var pe=te();return pe==W&&(pe=E()),pe==W&&(pe=_e()),pe==W&&Ee()&&(pe=ft(o.location.href)),pe=Je(pe),pe}function C(ft){return ft.match(/^\//)||ft.match(/^[a-zA-Z]+:\/\//)?ft:webModule.__moduleBase+ft}function D(){var ft=[],Je=O,te=[],E=[];function _e(ve){var fe=E[ve](),me=te[ve];if(fe in me)return fe;var de=[];for(var ce in me)de[me[ce]]=ce;throw r&&r(ve,de,fe),null}if(__gwt_isKnownPropertyValue=function(ve,fe){return fe in te[ve]},webModule.__getPropMap=function(){var ve={};for(var fe in te)te.hasOwnProperty(fe)&&(ve[fe]=_e(fe));return ve},webModule.__computePropValue=_e,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ee;try{Ee=Cb;var pe=Ee.indexOf(Db);pe!=-1&&(Je=parseInt(Ee.substring(pe+P),$),Ee=Ee.substring(O,pe))}catch(ve){}return webModule.__softPermutationId=Je,C(Ee+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(ft,Je,te){"use strict";te.d(Je,{Ax:function(){return pe},Ds:function(){return ve},KI:function(){return me},SI:function(){return Ee},f1:function(){return _e}});var E=te(11320);function _e(de){let ce=!0;if(de.length>0){for(let ue=0;ue<de.length;ue++)if(de[ue].compile_success==0||!de[ue].compile_success){ce=!1;break}}else ce=!1;return ce}function Ee(de,ce=""){let ue=[];for(let le=0;le<de.length;le++){let he=de[le],ie=ce?`${ce}/${he.name}`:`${he.name}`;ue.push({title:he.name,type:he.type,isLeaf:he.type!=="tree",key:ie})}return ue}function pe(de,ce,ue){for(let le=0;le<de.length;le++){let he=de[le];if(he.key===ce){he.children=ue;break}he.children&&pe(he.children,ce,ue)}return de}function ve(de,ce,ue){let le;return function(){let he=this,ie=arguments,ne=function(){le=null,ue||de.apply(he,ie)},a=ue&&!le;clearTimeout(le),le=setTimeout(ne,ce),a&&de.apply(he,ie)}}const fe=!0,me=E.Z.API_SERVER},95235:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return b}});var E=te(67294),_e=te(33170),Ee=te(25934),pe=te(94184),ve=te.n(pe),fe={upload:"upload___jpwPD"},me=Object.defineProperty,de=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ie=(z,ee,re)=>ee in z?me(z,ee,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ee]=re,ne=(z,ee)=>{for(var re in ee||(ee={}))le.call(ee,re)&&ie(z,re,ee[re]);if(ue)for(var re of ue(ee))he.call(ee,re)&&ie(z,re,ee[re]);return z},a=(z,ee)=>de(z,ce(ee)),y=(z,ee,re)=>new Promise((se,ge)=>{var Se=Le=>{try{Re(re.next(Le))}catch(Fe){ge(Fe)}},Pe=Le=>{try{Re(re.throw(Le))}catch(Fe){ge(Fe)}},Re=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(Se,Pe);Re((re=re.apply(z,ee)).next())});const x=({chunkSize:z=1024*1024*2,options:ee={},onCancel:re,onComplete:se,onError:ge,onProgress:Se,onBefore:Pe,onBeginInitFile:Re,children:Le,accept:Fe,className:Ie,style:vt={},concurrency:at=4},et)=>{let[De,Oe]=(0,E.useState)("ready");const[ke,lt]=(0,E.useState)(0),[Xe,xt]=(0,E.useState)(""),[Ot,Dt]=(0,E.useState)(null),Kt=(0,E.useRef)(null),St=(0,E.useRef)((0,Ee.Z)()),gt=(0,E.useRef)(!1);(0,E.useImperativeHandle)(et,()=>({cancel:yt,file:Ot,uploadStatus:De}));const ht=()=>{const Ye=document.getElementById(St.current);Ye&&(Ye.value="")},Qt=Ye=>y(void 0,null,function*(){var Gt;if(De==="uploading")return;Re&&Re(Ye);const fn=Ye.size,hn=Math.ceil(fn/z);gt.current=!1,Oe("uploading"),lt(0),xt("");try{const mn=yield(0,_e.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:Ye.name,chunkCount:hn},ee)});if(gt.current||(mn==null?void 0:mn.status)!==0)throw new Error;const{upload_id:Mn}=mn;Kt.current=new AbortController;const Rt=[];let $t=0;for(let tt=0;tt<hn;tt++){const ct=tt*z,qe=Math.min(ct+z,fn),Ge=Ye.slice(ct,qe),ut=new FormData;ut.append("chunk",Ge),ut.append("fileName",Ye.name),ut.append("chunkIndex",(tt+1).toString()),ut.append("uploadId",Mn);for(const Pt in ee)Object.prototype.hasOwnProperty.call(ee,Pt)&&ut.append(Pt,ee[Pt]);Rt.push(()=>(0,_e.ZP)("/api/attachments/multipart_upload",{method:"POST",body:ut,signal:Kt.current.signal},!0).then(Pt=>{console.log(Pt,444),$t++;const Ft=Math.round($t/hn*100);lt(Ft),Se&&Se(a(ne({},Pt),{file:Ye,percent:Ft}))}))}let Ct=0,Be=at;for(console.log(Rt,"promises");Ct<Rt.length;){const tt=(Gt=Rt.slice(Ct,Ct+Be))==null?void 0:Gt.map(ct=>ct());if(tt.length>0){const ct=yield Promise.all(tt);Ct+=Be}}const rt=yield(0,_e.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:Ye.name,chunkCount:hn,uploadId:Mn},ee)});rt.object?(Oe("success"),ht(),se&&se(a(ne({},rt),{file:Ye,percent:100}))):(Oe("error"),xt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),ht(),ge&&ge(Ye.name))}catch(mn){Oe("error"),xt("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),ht(),ge&&ge(Ye.name)}}),yt=(0,E.useCallback)(()=>{gt.current=!0,Kt.current&&(Kt.current.abort(),re&&re())},[re]),Zt=Ye=>{var Gt,fn;const hn=(fn=(Gt=Ye==null?void 0:Ye.target)==null?void 0:Gt.files)==null?void 0:fn[0];if(Dt(hn),De="ready",!!hn){if(Pe){Pe(hn)||Qt(hn),ht();return}Qt(hn)}};return E.createElement(E.Fragment,null,E.createElement("input",{type:"file",id:St.current,style:{display:"none"},onChange:Zt,accept:Fe}),E.createElement("label",{className:ve()(fe.upload,Ie),htmlFor:St.current,style:vt},Le))};var b=(0,E.forwardRef)(x)},63205:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return le}});var E=te(67294),_e={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ee=te(94184),pe=te.n(Ee),ve=te(74330),fe=te(15979),me=te(33170),de=te(28706),ce=(he,ie,ne)=>new Promise((a,y)=>{var x=ee=>{try{z(ne.next(ee))}catch(re){y(re)}},b=ee=>{try{z(ne.throw(ee))}catch(re){y(re)}},z=ee=>ee.done?a(ee.value):Promise.resolve(ee.value).then(x,b);z((ne=ne.apply(he,ie)).next())}),le=({data:he,className:ie,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:z})=>{const ee=(0,E.useRef)(null),re=(0,E.useRef)(null),se=(0,E.useRef)(null),ge=(0,E.useRef)(null),[Se,Pe]=(0,E.useState)(!1),[Re,Le]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>{se.current||(se.current=document.createElement("style"),document.head.appendChild(se.current)),he!=null&&he.visible?(document.body.setAttribute("data-custom","y-hidden"),se.current.innerHTML=" html { overflow-y: hidden; }",he!=null&&he.src&&Fe()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[he==null?void 0:he.visible]);const Fe=()=>ce(void 0,null,function*(){Pe(!0),Le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const De=yield(0,de.ZJ)(he==null?void 0:he.src);ee.current.src="",ee.current.src=De,ee.current.onload=function(){et()},Pe(!1),Le("")}),Ie=()=>{document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",y()},vt=De=>ce(void 0,null,function*(){Pe(!0),Le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Oe=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:De.dataUrl}});Oe!=null&&Oe.id&&!z?(yield(0,me.ZP)(`/api/attachments/${he.id}/add_subitem.json`,{method:"post",body:{subitem_id:Oe==null?void 0:Oe.id,settings:JSON.stringify(De.state)}})).status===0&&x():Oe!=null&&Oe.id&&x(Oe),document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",Pe(!1),Le("")}),at=()=>{const De=document.querySelector('a[href="https://markerjs.com/"]');De&&De.parentNode&&(De.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(ke=>{const lt=document.querySelector(ke.name);lt&<.setAttribute("title",ke.title)})},et=()=>{re.current=new fe.hP(ee.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",vt),re.current.addEventListener("beforeclose",Ie),b&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),he!=null&&he.snapshotData&&re.current.restoreState(he.snapshotData),setTimeout(()=>{window.scrollTo(0,0),at()},300)};return E.createElement(E.Fragment,null,(he==null?void 0:he.visible)&&E.createElement(ve.Z,{spinning:Se,tip:Re,style:{position:"absolute"}},E.createElement("div",{ref:ge,className:pe()(_e.imageDimensions,ie,ne?_e.fullWidth:""),style:a},E.createElement("img",{className:_e.img,ref:ee}))))}},36527:function(ft,Je,te){"use strict";var E=te(67294),_e=te(71230),Ee=te(15746),pe=te(72773),ve=te(85804),fe=te(85725),me=te(71736),de=te(84279),ce=te(67294);const ue=(0,E.forwardRef)(({callback:le,showSaveButton:he,value:ie=""},ne)=>{const a=(0,E.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 "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],b=re=>{a.current.setValue(a.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ce.createElement(_e.Z,{className:me.Z.lists,gutter:[10,10]},y.map((re,se)=>ce.createElement(Ee.Z,{flex:"110px",className:me.Z.item},ce.createElement("div",null,ce.createElement(fe.Z,{value:`$$${re.value}$$`}),re.name),ce.createElement("div",{className:me.Z.children},re.children.map((ge,Se)=>ce.createElement("div",{key:Se},ce.createElement("h1",null,ge.name),ce.createElement(_e.Z,{gutter:[10,10]},ge.data.map((Pe,Re)=>ce.createElement(Ee.Z,{key:Re,onClick:()=>b(Pe),className:me.Z.diamond},ce.createElement(fe.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ce.createElement(_e.Z,{className:me.Z.lists,gutter:[10,10]},x.map((re,se)=>ce.createElement(Ee.Z,{flex:"110px",className:me.Z.item},ce.createElement("div",null,ce.createElement(fe.Z,{value:"`$$"+re.value+"$$`"}),re.name),ce.createElement("div",{className:me.Z.children},re.children.map((ge,Se)=>ce.createElement("div",{key:Se},ge.name&&ce.createElement("h1",null,ge.name),ce.createElement(_e.Z,{gutter:[10,10]},ge.data.map((Pe,Re)=>ce.createElement(Ee.Z,{key:Re,onClick:()=>b(Pe),className:me.Z.diamond},ce.createElement(fe.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],ee=()=>{var re=document.createElement("div");re.innerHTML=a.current.getValue();var se=re.innerText;return le&&le(se),se};return(0,E.useImperativeHandle)(ne,()=>({getData:ee})),ce.createElement("div",{className:me.Z.mathWrap},ce.createElement(pe.default,{defaultActiveKey:"1",items:z}),ce.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},ie||""),he&&ce.createElement("div",{className:me.Z.button},ce.createElement(ve.ZP,{size:"large",onClick:ee,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Je.Z=ue},7621:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return pe}});var E=te(35973),_e={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},Ee=te(67294),pe=({message:ve,className:fe,children:me,style:de={}})=>Ee.createElement("div",{className:`custom-spinner ${_e.idsRingWrapper} ${fe}`},Ee.createElement("div",{className:_e.ldsRing},Ee.createElement("div",null),Ee.createElement("div",null),Ee.createElement("div",null),Ee.createElement("div",null)),ve?Ee.createElement("p",{style:de},ve):null,me,Ee.createElement(E.Outlet,null))},60076:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return pe}});var E=te(67294),_e=te(33054),Ee=te(67294),pe=({defaultX:ve="40%",leftChild:fe,rightChild:me,className:de,hideResize:ce=!1})=>{const[ue,le]=(0,E.useState)(ve),he=(0,E.useRef)();function ie(){he.current=!0}(0,E.useEffect)(()=>{function y(b){he.current&&(_e.Z.publish("resize-move-bar",b),le(b.pageX))}function x(){he.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",x),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",x)}},[]);const ne=typeof ue=="number"&&ue!==.01?`${ue}px`:ve,a=`calc(100% - ${ce?"0px":"4px"} - ${ne})`;return Ee.createElement("div",{className:`split-panel-container ${de}`},Ee.createElement("section",{style:{width:ne,display:ue===.01?"none":""}},fe),Ee.createElement("section",{className:"resize-x-bar",onMouseDown:ie},Ee.createElement("a",{className:"btn-resize"},Ee.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},Ee.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"})))),Ee.createElement("section",{style:{width:a}},me))}},38658:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return fe}});var E=te(67294),_e={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_"},Ee=te(94184),pe=te.n(Ee),fe=({className:me,style:de={},leftNode:ce,leftTitle:ue="\u81EA\u6D4B\u8F93\u5165",rightNode:le,rightTitle:he="\u8FD0\u884C\u7ED3\u679C"})=>E.createElement("div",{className:pe()(_e.result,me),style:de},E.createElement("div",{className:_e.left},E.createElement("div",{className:_e.title},E.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),E.createElement("span",null,ue)),E.createElement("div",{className:_e.leftNode},ce)),E.createElement("div",{className:_e.right},E.createElement("div",{className:_e.title},E.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),E.createElement("span",null,he)),E.createElement("div",{className:_e.rightNode},le)))},88508:function(ft,Je,te){"use strict";var E=te(67294);const _e=pe=>String(pe).length===1?`0${pe}`:pe,Ee=({className:pe="",onChange:ve,defaultValue:fe=0})=>{const[me,de]=(0,E.useState)(fe);(0,E.useEffect)(()=>{const he=setTimeout(()=>{de(me+1e3)},1e3);return ve(me+1e3),()=>{clearInterval(he)}},[me]);const ce=parseInt(me/(60*6e4))||"00",ue=parseInt(me%(60*6e4)/6e4)||"00",le=parseInt(me%6e4/1e3)||"00";return E.createElement("div",{className:pe},_e(ce),":",_e(ue),":",_e(le))};Je.Z=Ee},6104:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return y}});var E=te(67294),_e=te(2453),Ee=te(85418),pe=te(24577),ve=te(67631),fe=te.n(ve),me=te(52262),de=te(74855),ce=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"},le=(x,b,z)=>new Promise((ee,re)=>{var se=Pe=>{try{Se(z.next(Pe))}catch(Re){re(Re)}},ge=Pe=>{try{Se(z.throw(Pe))}catch(Re){re(Re)}},Se=Pe=>Pe.done?ee(Pe.value):Promise.resolve(Pe.value).then(se,ge);Se((z=z.apply(x,b)).next())});function he(x){if(isNaN(x))return{minutes:"00",seconds:"00"};const b=new Date(x*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 ie(x,b){return x-b}function ne(x){x.sort(ie);let b=0;for(let z=0;z<x.length-1;z++){let ee=Math.abs(x[z+1]-x[z]);ee<21&&(b+=ee)}return b}const a=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var y=(0,E.forwardRef)(({allow_skip:x,src:b,toLog:z,videoId:ee,logWatchHistory:re,courseId:se=null,startTime:ge,handlePause:Se=()=>{},handlePlay:Pe=()=>{},handlePlayEnded:Re=()=>{},autoPlay:Le=!1,onPlayEnded:Fe=()=>{},isShowWaterMark:Ie=!0},vt)=>{var at;const De=((at=b==null?void 0:b.split("."))==null?void 0:at.pop())==="flv",Oe=(0,E.useRef)(),ke=(0,E.useRef)(),lt=(0,E.useRef)(),Xe=(0,E.useRef)(),xt=(0,E.useRef)(),Ot=(0,E.useRef)(),Dt=(0,E.useRef)(),Kt=(0,E.useRef)(),St=(0,E.useRef)(),gt=(0,E.useRef)(),ht=(0,E.useRef)(),Qt=(0,E.useRef)(),yt=(0,E.useRef)(),Zt=(0,E.useRef)(),Ye=navigator.userAgent.toLowerCase().match(a),Gt=Ye?Ye[0]:"pc",fn=(0,E.useRef)(!1),hn=(0,me.eY)();let mn=0,Mn=0,Rt=0,$t=null,Ct=!1,Be=20,rt=1,tt=!1,ct=!1,qe=[];(0,E.useImperativeHandle)(vt,()=>({getLastUpdatedTime:()=>Oe.current.currentTime,getDuration:()=>Oe.current.duration})),_e.ZP.config({maxCount:1,getContainer:()=>lt.current});const Ge=(0,E.useCallback)((Ln,en=!1)=>{let Sn={point:Oe.current.currentTime};$t?(Sn.log_id=$t,Sn.watch_duration=ne(qe),Sn.total_duration=Mn):(se?(Sn.video_id=parseInt(ee,10),Sn.course_id=se):Sn.video_id=ee,Sn.duration=mn,Sn.device=Gt),en&&(Sn.ed="1");function tn(){return le(this,null,function*(){tt=!0,$t=yield re==null?void 0:re(Sn),tt=!1,Ln&&Ln()})}tn()},[ee,se]);(0,E.useEffect)(()=>{Oe.current&&(Xe.current.style.display="none",xt.current.style.display="block"),_e.ZP.destroy();let Ln=null;return pe.Z.isSupported&&De&&b&&(b==null?void 0:b.indexOf(".m3u8"))<0?(Ln=pe.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:b,muted:!1}),Oe.current&&(Ln.attachMediaElement(Oe.current),Ln.load())):Oe.current.setAttribute("src",b),Pt(),()=>{Ln&&(Ln.unload(),Ln.pause(),Ln.destroy(),Ln=null)}},[Oe,De,b]);function ut(){Oe.current.paused?(Xe.current.style.display="none",xt.current.style.display="block"):(Xe.current.style.display="block",xt.current.style.display="none")}function Pt(){ht.current.style.display="none",yt.current.style.display="none",Qt.current.style.display="none",Oe.current.muted||Oe.current.volume===0?ht.current.style.display="block":Oe.current.volume>0&&Oe.current.volume<=.5?yt.current.style.display="block":Qt.current.style.display="block"}(0,E.useEffect)(()=>{const Ln=document.getElementById("play"),en=document.querySelectorAll(".playback-icons use");function Sn(){Pe(),ge&&!fn.current&&(Oe.current.currentTime=ge),fn.current=!0,qe.push(Oe.current.currentTime),Ct||(Ct=!0,z&&Ge())}function tn(){return le(this,null,function*(){ut(),qe.push(Oe.current.currentTime),z&&Ge(()=>{$t=null,Rt=0,Ct=!1,tt=!1,ct=!1,qe=[],Mn=0,rt=1},!0),Fe()})}function Ke(){Ot.current.value=Math.round(Oe.current.currentTime),Dt.current.value=Math.round(Oe.current.currentTime)}function At(){const Tn=he(Math.round(Oe.current.currentTime));St.current.innerText=`${Tn.hour>0?Tn.hour+":":""}${Tn.minutes}:${Tn.seconds}`,St.current.setAttribute("datetime",`${Tn.hour>0?" "+Tn.hour+" ":""}${Tn.minutes}m ${Tn.seconds}s`)}function Nt(){var Tn,Yn,En,fr,$n,Un,Zo;const ho=Math.round((Tn=Oe.current)==null?void 0:Tn.duration);(En=(Yn=Ot.current)==null?void 0:Yn.setAttribute)==null||En.call(Yn,"max",ho),($n=(fr=Dt.current)==null?void 0:fr.setAttribute)==null||$n.call(fr,"max",ho);const Wr=he(ho);Kt.current&&(Kt.current.innerText=`${Wr.hour>0?Wr.hour+":":""}${Wr.minutes}:${Wr.seconds}`,(Zo=(Un=Kt.current).setAttribute)==null||Zo.call(Un,"datetime",`${Wr.hour>0?" "+Wr.hour+" ":""}${Wr.minutes}m ${Wr.seconds}s`))}function gn(){try{const Tn=Math.round(Oe.current.duration);Ot.current.setAttribute("max",Tn),Dt.current.setAttribute("max",Tn);const Yn=he(Tn);Kt.current.innerText=`${Yn.hour>0?Yn.hour+":":""}${Yn.minutes}:${Yn.seconds}`,Kt.current.setAttribute("datetime",`${Yn.hour>0?" "+Yn.hour+" ":""}${Yn.minutes}m ${Yn.seconds}s`),Ke(),At();const{width:En,height:fr,x:$n,y:Un}=ke.current.getBoundingClientRect();if($n<0||Un<0||!En)return;if(!ct){let Zo=Oe.current.currentTime,ho=Zo-Rt;Math.abs(ho)<10?(Mn+=Math.abs(ho),Rt=Zo,tt||Mn-rt*Be>=0&&(rt++,qe.push(Rt),z&&Ge())):(Rt=Zo,z&&Ge())}}catch(Tn){console.log(Tn)}}function xn(){ct=!0}function Nn(){Oe.current.playing&&qe.push(Oe.current.currentTime,Rt),Rt=Oe.current.currentTime,ct=!1}function Pn(){mn=Oe.current.duration,mn<=20&&(Be=mn/3),Oe.current.addEventListener("play",Sn)}function ur(Tn){Tn.preventDefault(),(0,ce.vp)()?(Oe.current.style.width="100%",Oe.current.style.height="100%"):Oe.current.style.cssText=""}function Hn(){Se()}function Nr(Tn){if(!x){_e.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Yn=Tn.target.dataset.seek?Tn.target.dataset.seek:Tn.target.value;Oe.current.currentTime=Yn,Dt.current.value=Yn,Ot.current.value=Yn}function no(Tn){const Yn=Math.round(Tn.offsetX/Tn.target.clientWidth*parseInt(Tn.target.getAttribute("max"),10));Ot.current.setAttribute("data-seek",Yn);const En=he(Yn);gt.current.textContent=`${En.hour>0?En.hour+":":""}${En.minutes}:${En.seconds}`;const fr=Oe.current.getBoundingClientRect();gt.current.style.left=`${Tn.pageX-fr.left}px`}function Fr(Tn){switch(Tn.code){case"Space":Tn.preventDefault(),Rn();break;case"ArrowRight":if(Tn.preventDefault(),!x){_e.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Oe.current.currentTime>=Oe.current.duration)break;Oe.current.currentTime=parseInt(Oe.current.currentTime)+5,Ke();break;case"ArrowLeft":if(Tn.preventDefault(),!x){_e.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(Oe.current.currentTime===0)break;Oe.current.currentTime=parseInt(Oe.current.currentTime)-5,Ke();break;case"ArrowUp":Tn.preventDefault(),Oe.current.volume<1&&(Oe.current.volume=(parseInt(Oe.current.volume*10)+1)/10);break;case"ArrowDown":Tn.preventDefault(),Oe.current.volume>0&&(Oe.current.volume=(parseInt(Oe.current.volume*10)-1)/10);break}}return lt.current.addEventListener((0,ce.gH)(),ur),Oe.current.addEventListener("canplay",Pn),Oe.current.addEventListener("ended",tn),Oe.current.addEventListener("seeking",xn),Oe.current.addEventListener("seeked",Nn),Oe.current.addEventListener("loadedmetadata",Nt),Ot.current.addEventListener("mousemove",no),Ot.current.addEventListener("input",Nr),Oe.current.addEventListener("timeupdate",gn),Oe.current.addEventListener("pause",Hn),Oe.current.addEventListener("volumechange",Pt),document.addEventListener("keydown",Fr),()=>{var Tn,Yn,En,fr,$n,Un,Zo,ho,Wr,ai,ln,oe;(Tn=Oe.current)==null||Tn.removeEventListener("canplay",Pn),(Yn=Oe.current)==null||Yn.removeEventListener("play",Sn),(En=Oe.current)==null||En.removeEventListener("ended",tn),(fr=Oe.current)==null||fr.removeEventListener("seeking",xn),($n=Oe.current)==null||$n.removeEventListener("seeked",Nn),(Un=Ot.current)==null||Un.removeEventListener("mousemove",no),(Zo=Ot.current)==null||Zo.removeEventListener("input",Nr),(ho=Oe.current)==null||ho.removeEventListener("timeupdate",gn),(Wr=Oe.current)==null||Wr.removeEventListener("pause",Hn),(ai=Oe.current)==null||ai.removeEventListener("loadedmetadata",Nt),(ln=Oe.current)==null||ln.removeEventListener("volumechange",Pt),document.removeEventListener("keydown",Fr),(oe=Oe.current)!=null&&oe.playing&&(qe.push(Rt,Oe.current.currentTime),z&&Ge())}},[Oe,b]),(0,E.useEffect)(()=>{if(Oe.current.onended=()=>{Re(Oe)},Oe.current.oncontextmenu=()=>!1,(b==null?void 0:b.indexOf(".m3u8"))>-1){if(Oe.current.canPlayType("application/vnd.apple.mpegurl"))Oe.current.src=b;else if(fe().isSupported()){var Ln=new(fe());Ln.loadSource(b),Ln.attachMedia(Oe.current)}}},[b]);const[Ft,_n]=(0,E.useState)(1),Rn=()=>{Oe.current.paused||Oe.current.ended?Oe.current.play():Oe.current.pause(),ut()};function wn(){Oe.current.muted=!Oe.current.muted,Oe.current.muted?(Zt.current.setAttribute("data-volume",volume.value),Zt.current.value=0):Zt.current.value=Zt.current.dataset.volume}return E.createElement("div",{style:{position:"relative"},ref:lt},E.createElement("div",{ref:ke,className:`${ue.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ue.animate__loop}`},Ie&&hn?hn.login:" "),E.createElement("div",{className:ue.container},E.createElement("div",{className:ue["video-container"],id:"video-container"},E.createElement("div",{className:ue["playback-animation"],id:"playback-animation"},E.createElement("svg",{className:ue["playback-icons"]},E.createElement("use",{className:"hidden",href:"#play-icon"}),E.createElement("use",{href:"#pause"}))),E.createElement("video",{className:ue.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:Oe,autoPlay:Le}),E.createElement("div",{className:`${ue["video-controls"]} `,id:"video-controls"},E.createElement("div",{className:ue["bottom-controls"]},E.createElement("div",{className:ue["left-controls"]},E.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Rn},E.createElement("svg",{className:ue["playback-icons"]},E.createElement("use",{ref:xt,href:"#play-icon"}),E.createElement("use",{ref:Xe,style:{display:"none"},href:"#pause"}))),E.createElement("div",{className:ue.time},E.createElement("time",{id:"time-elapsed",ref:St},"00:00"),E.createElement("span",null," / "),E.createElement("time",{id:"duration",ref:Kt},"00:00"))),E.createElement("div",{className:ue["right-controls"]},x&&E.createElement(Ee.Z,{placement:"top",overlayClassName:ue.rateOverlay,getPopupContainer:Ln=>Ln.parentNode,menu:{items:[{key:"1",label:E.createElement("span",{onClick:()=>{_n(1),Oe.current.playbackRate=1}},"1.0x")},{key:"2",label:E.createElement("span",{onClick:()=>{_n(1.5),Oe.current.playbackRate=1.5}},"1.5x")},{key:"3",label:E.createElement("span",{onClick:()=>{_n(2),Oe.current.playbackRate=2}},"2.0x")}]}},E.createElement("div",{className:`${ue.controlText} mr5`},"\u500D\u901F")),E.createElement(de.CopyToClipboard,{text:b,onCopy:()=>_e.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},E.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),E.createElement("div",{className:ue["volume-controls"]},E.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ue["volume-button"],id:"volume-button",onClick:wn},E.createElement("i",{ref:ht,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),E.createElement("i",{ref:yt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),E.createElement("i",{ref:Qt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),E.createElement("input",{className:ue.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Zt,style:{display:"none"},onClick:Pt})),E.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ue["fullscreen-button"],onClick:()=>{(0,ce.vp)()?(0,ce.BU)():(0,ce.Dj)(lt.current)}},E.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),E.createElement("div",{className:ue["video-progress"]},E.createElement("progress",{ref:Dt,value:"0",min:"0"}),E.createElement("input",{className:ue.seek,ref:Ot,value:"0",min:"0",type:"range",step:"1"}),E.createElement("div",{className:ue["seek-tooltip"],ref:gt,id:"seek-tooltip"},"00:00"))))),E.createElement("svg",{style:{display:"none"}},E.createElement("defs",null,E.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},E.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),E.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},E.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),E.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},E.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"})),E.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},E.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"})))))})},1797:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return Ya}});var E=te(67294),_e=te.t(E,2),Ee=te(33054),pe=te(43481),ve=te(13144),fe=te.n(ve),me=te(87462),de=te(1413),ce=te(4942),ue=te(97685),le=te(71002),he=te(45987),ie=te(94184),ne=te.n(ie),a=/margin|padding|width|height|max|min|offset/,y={left:!0,top:!0},x={cssFloat:1,styleFloat:1,float:1};function b(Qe){return Qe.nodeType===1?Qe.ownerDocument.defaultView.getComputedStyle(Qe,null):{}}function z(Qe,je,mt){if(je=je.toLowerCase(),mt==="auto"){if(je==="height")return Qe.offsetHeight;if(je==="width")return Qe.offsetWidth}return je in y||(y[je]=a.test(je)),y[je]?parseFloat(mt)||0:mt}function ee(Qe,je){var mt=arguments.length,Tt=b(Qe);return je=x[je]?"cssFloat"in Qe.style?"cssFloat":"styleFloat":je,mt===1?Tt:z(Qe,je,Tt[je]||Qe.style[je])}function re(Qe,je,mt){var Tt=arguments.length;if(je=x[je]?"cssFloat"in Qe.style?"cssFloat":"styleFloat":je,Tt===3)return typeof mt=="number"&&a.test(je)&&(mt="".concat(mt,"px")),Qe.style[je]=mt,mt;for(var kt in je)je.hasOwnProperty(kt)&&re(Qe,kt,je[kt]);return b(Qe)}function se(Qe){return Qe===document.body?document.documentElement.clientWidth:Qe.offsetWidth}function ge(Qe){return Qe===document.body?window.innerHeight||document.documentElement.clientHeight:Qe.offsetHeight}function Se(){var Qe=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),je=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Qe,height:je}}function Pe(){var Qe=document.documentElement.clientWidth,je=window.innerHeight||document.documentElement.clientHeight;return{width:Qe,height:je}}function Re(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Le(Qe){var je=Qe.getBoundingClientRect(),mt=document.documentElement;return{left:je.left+(window.pageXOffset||mt.scrollLeft)-(mt.clientLeft||document.body.clientLeft||0),top:je.top+(window.pageYOffset||mt.scrollTop)-(mt.clientTop||document.body.clientTop||0)}}function Fe(Qe){var je=E.useRef();je.current=Qe;var mt=E.useCallback(function(){for(var Tt,kt=arguments.length,Jt=new Array(kt),Cn=0;Cn<kt;Cn++)Jt[Cn]=arguments[Cn];return(Tt=je.current)===null||Tt===void 0?void 0:Tt.call.apply(Tt,[je].concat(Jt))},[]);return mt}function Ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var vt=Ie()?E.useLayoutEffect:E.useEffect,at=function(je,mt){var Tt=E.useRef(!0);vt(function(){return je(Tt.current)},mt),vt(function(){return Tt.current=!1,function(){Tt.current=!0}},[])},et=function(je,mt){at(function(Tt){if(!Tt)return je()},mt)},De=null;function Oe(Qe){var je=E.useRef(!1),mt=E.useState(Qe),Tt=(0,ue.Z)(mt,2),kt=Tt[0],Jt=Tt[1];E.useEffect(function(){return je.current=!1,function(){je.current=!0}},[]);function Cn(pn,Yt){Yt&&je.current||Jt(pn)}return[kt,Cn]}function ke(Qe){return Qe!==void 0}function lt(Qe,je){var mt=je||{},Tt=mt.defaultValue,kt=mt.value,Jt=mt.onChange,Cn=mt.postState,pn=Oe(function(){return ke(kt)?kt:ke(Tt)?typeof Tt=="function"?Tt():Tt:typeof Qe=="function"?Qe():Qe}),Yt=(0,ue.Z)(pn,2),yn=Yt[0],Zn=Yt[1],kn=kt!==void 0?kt:yn,Ar=Cn?Cn(kn):kn,zr=Fe(Jt),kr=Oe([kn]),oo=(0,ue.Z)(kr,2),qr=oo[0],yr=oo[1];et(function(){var co=qr[0];yn!==co&&zr(yn,co)},[qr]),et(function(){ke(kt)||Zn(kt)},[kt]);var Bo=Fe(function(co,uo){Zn(co,uo),yr([kn],uo)});return[Ar,Bo]}var Xe=te(2788),xt=E.createContext({});function Ot(Qe,je){if(!Qe)return!1;if(Qe.contains)return Qe.contains(je);for(var mt=je;mt;){if(mt===Qe)return!0;mt=mt.parentNode}return!1}function Dt(){var Qe=(0,de.Z)({},_e);return Qe.useId}var Kt=0;function St(){}function gt(Qe){var je=E.useState("ssr-id"),mt=(0,ue.Z)(je,2),Tt=mt[0],kt=mt[1],Jt=Dt(),Cn=Jt==null?void 0:Jt();return E.useEffect(function(){if(!Jt){var pn=Kt;Kt+=1,kt("rc_unique_".concat(pn))}},[]),Qe||Cn||Tt}var ht={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(je){var mt=je.keyCode;if(je.altKey&&!je.ctrlKey||je.metaKey||mt>=ht.F1&&mt<=ht.F12)return!1;switch(mt){case ht.ALT:case ht.CAPS_LOCK:case ht.CONTEXT_MENU:case ht.CTRL:case ht.DOWN:case ht.END:case ht.ESC:case ht.HOME:case ht.INSERT:case ht.LEFT:case ht.MAC_FF_META:case ht.META:case ht.NUMLOCK:case ht.NUM_CENTER:case ht.PAGE_DOWN:case ht.PAGE_UP:case ht.PAUSE:case ht.PRINT_SCREEN:case ht.RIGHT:case ht.SHIFT:case ht.UP:case ht.WIN_KEY:case ht.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(je){if(je>=ht.ZERO&&je<=ht.NINE||je>=ht.NUM_ZERO&&je<=ht.NUM_MULTIPLY||je>=ht.A&&je<=ht.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&je===0)return!0;switch(je){case ht.SPACE:case ht.QUESTION_MARK:case ht.NUM_PLUS:case ht.NUM_MINUS:case ht.NUM_PERIOD:case ht.NUM_DIVISION:case ht.SEMICOLON:case ht.DASH:case ht.EQUALS:case ht.COMMA:case ht.PERIOD:case ht.SLASH:case ht.APOSTROPHE:case ht.SINGLE_QUOTE:case ht.OPEN_SQUARE_BRACKET:case ht.BACKSLASH:case ht.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Qt=ht,yt=`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`,Zt=`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`,Ye="".concat(yt," ").concat(Zt).split(/[\s\n]+/),Gt="aria-",fn="data-";function hn(Qe,je){return Qe.indexOf(je)===0}function mn(Qe){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mt;je===!1?mt={aria:!0,data:!0,attr:!0}:je===!0?mt={aria:!0}:mt=(0,de.Z)({},je);var Tt={};return Object.keys(Qe).forEach(function(kt){(mt.aria&&(kt==="role"||hn(kt,Gt))||mt.data&&hn(kt,fn)||mt.attr&&Ye.includes(kt))&&(Tt[kt]=Qe[kt])}),Tt}function Mn(Qe,je,mt){var Tt=je;return!Tt&&mt&&(Tt="".concat(Qe,"-").concat(mt)),Tt}function Rt(Qe,je){var mt=Qe["page".concat(je?"Y":"X","Offset")],Tt="scroll".concat(je?"Top":"Left");if(typeof mt!="number"){var kt=Qe.document;mt=kt.documentElement[Tt],typeof mt!="number"&&(mt=kt.body[Tt])}return mt}function $t(Qe){var je=Qe.getBoundingClientRect(),mt={left:je.left,top:je.top},Tt=Qe.ownerDocument,kt=Tt.defaultView||Tt.parentWindow;return mt.left+=Rt(kt),mt.top+=Rt(kt,!0),mt}var Ct=te(62874),Be=te(59864);function rt(Qe,je,mt){var Tt=E.useRef({});return(!("value"in Tt.current)||mt(Tt.current.condition,je))&&(Tt.current.value=Qe(),Tt.current.condition=je),Tt.current.value}function tt(Qe,je){typeof Qe=="function"?Qe(je):(0,le.Z)(Qe)==="object"&&Qe&&"current"in Qe&&(Qe.current=je)}function ct(){for(var Qe=arguments.length,je=new Array(Qe),mt=0;mt<Qe;mt++)je[mt]=arguments[mt];var Tt=je.filter(function(kt){return kt});return Tt.length<=1?Tt[0]:function(kt){je.forEach(function(Jt){tt(Jt,kt)})}}function qe(){for(var Qe=arguments.length,je=new Array(Qe),mt=0;mt<Qe;mt++)je[mt]=arguments[mt];return rt(function(){return ct.apply(void 0,je)},je,function(Tt,kt){return Tt.length===kt.length&&Tt.every(function(Jt,Cn){return Jt===kt[Cn]})})}function Ge(Qe){var je,mt,Tt=isMemo(Qe)?Qe.type.type:Qe.type;return!(typeof Tt=="function"&&!((je=Tt.prototype)!==null&&je!==void 0&&je.render)||typeof Qe=="function"&&!((mt=Qe.prototype)!==null&&mt!==void 0&&mt.render))}var ut=E.memo(function(Qe){var je=Qe.children;return je},function(Qe,je){var mt=je.shouldUpdate;return!mt}),Pt={width:0,height:0,overflow:"hidden",outline:"none"},Ft={outline:"none"},_n=E.forwardRef(function(Qe,je){var mt=Qe.prefixCls,Tt=Qe.className,kt=Qe.style,Jt=Qe.title,Cn=Qe.ariaId,pn=Qe.footer,Yt=Qe.closable,yn=Qe.closeIcon,Zn=Qe.onClose,kn=Qe.children,Ar=Qe.bodyStyle,zr=Qe.bodyProps,kr=Qe.modalRender,oo=Qe.onMouseDown,qr=Qe.onMouseUp,yr=Qe.holderRef,Bo=Qe.visible,co=Qe.forceRender,uo=Qe.width,Dr=Qe.height,io=Qe.classNames,Tr=Qe.styles,Gr=E.useContext(xt),Fo=Gr.panel,$o=qe(yr,Fo),wr=(0,E.useRef)(),wo=(0,E.useRef)();E.useImperativeHandle(je,function(){return{focus:function(){var Ki;(Ki=wr.current)===null||Ki===void 0||Ki.focus({preventScroll:!0})},changeActive:function(Ki){var Da=document,Ta=Da.activeElement;Ki&&Ta===wo.current?wr.current.focus({preventScroll:!0}):!Ki&&Ta===wr.current&&wo.current.focus({preventScroll:!0})}}});var hi={};uo!==void 0&&(hi.width=uo),Dr!==void 0&&(hi.height=Dr);var zo=pn?E.createElement("div",{className:ne()("".concat(mt,"-footer"),io==null?void 0:io.footer),style:(0,de.Z)({},Tr==null?void 0:Tr.footer)},pn):null,si=Jt?E.createElement("div",{className:ne()("".concat(mt,"-header"),io==null?void 0:io.header),style:(0,de.Z)({},Tr==null?void 0:Tr.header)},E.createElement("div",{className:"".concat(mt,"-title"),id:Cn},Jt)):null,Fi=(0,E.useMemo)(function(){return(0,le.Z)(Yt)==="object"&&Yt!==null?Yt:Yt?{closeIcon:yn!=null?yn:E.createElement("span",{className:"".concat(mt,"-close-x")})}:{}},[Yt,yn,mt]),fa=mn(Fi,!0),ra=(0,le.Z)(Yt)==="object"&&Yt.disabled,Ga=Yt?E.createElement("button",(0,me.Z)({type:"button",onClick:Zn,"aria-label":"Close"},fa,{className:"".concat(mt,"-close"),disabled:ra}),Fi.closeIcon):null,oa=E.createElement("div",{className:ne()("".concat(mt,"-content"),io==null?void 0:io.content),style:Tr==null?void 0:Tr.content},Ga,si,E.createElement("div",(0,me.Z)({className:ne()("".concat(mt,"-body"),io==null?void 0:io.body),style:(0,de.Z)((0,de.Z)({},Ar),Tr==null?void 0:Tr.body)},zr),kn),zo);return E.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Jt?Cn:null,"aria-modal":"true",ref:$o,style:(0,de.Z)((0,de.Z)({},kt),hi),className:ne()(mt,Tt),onMouseDown:oo,onMouseUp:qr},E.createElement("div",{ref:wr,tabIndex:0,style:Ft},E.createElement(ut,{shouldUpdate:Bo||co},kr?kr(oa):oa)),E.createElement("div",{tabIndex:0,ref:wo,style:Pt}))}),Rn=_n,wn=E.forwardRef(function(Qe,je){var mt=Qe.prefixCls,Tt=Qe.title,kt=Qe.style,Jt=Qe.className,Cn=Qe.visible,pn=Qe.forceRender,Yt=Qe.destroyOnClose,yn=Qe.motionName,Zn=Qe.ariaId,kn=Qe.onVisibleChanged,Ar=Qe.mousePosition,zr=(0,E.useRef)(),kr=E.useState(),oo=(0,ue.Z)(kr,2),qr=oo[0],yr=oo[1],Bo={};qr&&(Bo.transformOrigin=qr);function co(){var uo=$t(zr.current);yr(Ar&&(Ar.x||Ar.y)?"".concat(Ar.x-uo.left,"px ").concat(Ar.y-uo.top,"px"):"")}return E.createElement(Ct.Z,{visible:Cn,onVisibleChanged:kn,onAppearPrepare:co,onEnterPrepare:co,forceRender:pn,motionName:yn,removeOnLeave:Yt,ref:zr},function(uo,Dr){var io=uo.className,Tr=uo.style;return E.createElement(Rn,(0,me.Z)({},Qe,{ref:je,title:Tt,ariaId:Zn,prefixCls:mt,holderRef:Dr,style:(0,de.Z)((0,de.Z)((0,de.Z)({},Tr),kt),Bo),className:ne()(Jt,io)}))})});wn.displayName="Content";var Ln=wn,en=function(je){var mt=je.prefixCls,Tt=je.style,kt=je.visible,Jt=je.maskProps,Cn=je.motionName,pn=je.className;return E.createElement(Ct.Z,{key:"mask",visible:kt,motionName:Cn,leavedClassName:"".concat(mt,"-mask-hidden")},function(Yt,yn){var Zn=Yt.className,kn=Yt.style;return E.createElement("div",(0,me.Z)({ref:yn,style:(0,de.Z)((0,de.Z)({},kn),Tt),className:ne()("".concat(mt,"-mask"),Zn,pn)},Jt))})},Sn=en,tn={};function Ke(Qe,je){}function At(Qe,je){}function Nt(){tn={}}function gn(Qe,je,mt){!je&&!tn[mt]&&(Qe(!1,mt),tn[mt]=!0)}function xn(Qe,je){gn(Ke,Qe,je)}function Nn(Qe,je){gn(At,Qe,je)}var Pn=null,ur=function(je){var mt=je.prefixCls,Tt=mt===void 0?"rc-dialog":mt,kt=je.zIndex,Jt=je.visible,Cn=Jt===void 0?!1:Jt,pn=je.keyboard,Yt=pn===void 0?!0:pn,yn=je.focusTriggerAfterClose,Zn=yn===void 0?!0:yn,kn=je.wrapStyle,Ar=je.wrapClassName,zr=je.wrapProps,kr=je.onClose,oo=je.afterOpenChange,qr=je.afterClose,yr=je.transitionName,Bo=je.animation,co=je.closable,uo=co===void 0?!0:co,Dr=je.mask,io=Dr===void 0?!0:Dr,Tr=je.maskTransitionName,Gr=je.maskAnimation,Fo=je.maskClosable,$o=Fo===void 0?!0:Fo,wr=je.maskStyle,wo=je.maskProps,hi=je.rootClassName,zo=je.classNames,si=je.styles,Fi=(0,E.useRef)(),fa=(0,E.useRef)(),ra=(0,E.useRef)(),Ga=E.useState(Cn),oa=(0,ue.Z)(Ga,2),ia=oa[0],Ki=oa[1],Da=gt();function Ta(){Ot(fa.current,document.activeElement)||(Fi.current=document.activeElement)}function Za(){if(!Ot(fa.current,document.activeElement)){var wi;(wi=ra.current)===null||wi===void 0||wi.focus()}}function ha(wi){if(wi)Za();else{if(Ki(!1),io&&Fi.current&&Zn){try{Fi.current.focus({preventScroll:!0})}catch(Gi){}Fi.current=null}ia&&(qr==null||qr())}oo==null||oo(wi)}function rs(wi){kr==null||kr(wi)}var Ia=(0,E.useRef)(!1),xa=(0,E.useRef)(),Ji=function(){clearTimeout(xa.current),Ia.current=!0},Xa=function(){xa.current=setTimeout(function(){Ia.current=!1})},ma=null;$o&&(ma=function(Gi){Ia.current?Ia.current=!1:fa.current===Gi.target&&rs(Gi)});function Na(wi){if(Yt&&wi.keyCode===Qt.ESC){wi.stopPropagation(),rs(wi);return}Cn&&wi.keyCode===Qt.TAB&&ra.current.changeActive(!wi.shiftKey)}(0,E.useEffect)(function(){Cn&&(Ki(!0),Ta())},[Cn]),(0,E.useEffect)(function(){return function(){clearTimeout(xa.current)}},[]);var Ba=(0,de.Z)((0,de.Z)((0,de.Z)({zIndex:kt},kn),si==null?void 0:si.wrapper),{},{display:ia?null:"none"});return E.createElement("div",(0,me.Z)({className:ne()("".concat(Tt,"-root"),hi)},mn(je,{data:!0})),E.createElement(Sn,{prefixCls:Tt,visible:io&&Cn,motionName:Mn(Tt,Tr,Gr),style:(0,de.Z)((0,de.Z)({zIndex:kt},wr),si==null?void 0:si.mask),maskProps:wo,className:zo==null?void 0:zo.mask}),E.createElement("div",(0,me.Z)({tabIndex:-1,onKeyDown:Na,className:ne()("".concat(Tt,"-wrap"),Ar,zo==null?void 0:zo.wrapper),ref:fa,onClick:ma,style:Ba},zr),E.createElement(Ln,(0,me.Z)({},je,{onMouseDown:Ji,onMouseUp:Xa,ref:ra,closable:uo,ariaId:Da,prefixCls:Tt,visible:Cn&&ia,onClose:rs,onVisibleChanged:ha,motionName:Mn(Tt,yr,Bo)}))))},Hn=ur,Nr=function(je){var mt=je.visible,Tt=je.getContainer,kt=je.forceRender,Jt=je.destroyOnClose,Cn=Jt===void 0?!1:Jt,pn=je.afterClose,Yt=je.panelRef,yn=E.useState(mt),Zn=(0,ue.Z)(yn,2),kn=Zn[0],Ar=Zn[1],zr=E.useMemo(function(){return{panel:Yt}},[Yt]);return E.useEffect(function(){mt&&Ar(!0)},[mt]),!kt&&Cn&&!kn?null:E.createElement(xt.Provider,{value:zr},E.createElement(Xe.Z,{open:mt||kt||kn,autoDestroy:!1,getContainer:Tt,autoLock:mt||kn},E.createElement(Hn,(0,me.Z)({},je,{destroyOnClose:Cn,afterClose:function(){pn==null||pn(),Ar(!1)}}))))};Nr.displayName="Dialog";var no=Nr,Fr=no,Tn=te(73935);function Yn(Qe,je,mt,Tt){var kt=Tn.unstable_batchedUpdates?function(Cn){Tn.unstable_batchedUpdates(mt,Cn)}:mt;return Qe!=null&&Qe.addEventListener&&Qe.addEventListener(je,kt,Tt),{remove:function(){Qe!=null&&Qe.removeEventListener&&Qe.removeEventListener(je,kt,Tt)}}}var En={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(je){var mt=je.keyCode;if(je.altKey&&!je.ctrlKey||je.metaKey||mt>=En.F1&&mt<=En.F12)return!1;switch(mt){case En.ALT:case En.CAPS_LOCK:case En.CONTEXT_MENU:case En.CTRL:case En.DOWN:case En.END:case En.ESC:case En.HOME:case En.INSERT:case En.LEFT:case En.MAC_FF_META:case En.META:case En.NUMLOCK:case En.NUM_CENTER:case En.PAGE_DOWN:case En.PAGE_UP:case En.PAUSE:case En.PRINT_SCREEN:case En.RIGHT:case En.SHIFT:case En.UP:case En.WIN_KEY:case En.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(je){if(je>=En.ZERO&&je<=En.NINE||je>=En.NUM_ZERO&&je<=En.NUM_MULTIPLY||je>=En.A&&je<=En.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&je===0)return!0;switch(je){case En.SPACE:case En.QUESTION_MARK:case En.NUM_PLUS:case En.NUM_MINUS:case En.NUM_PERIOD:case En.NUM_DIVISION:case En.SEMICOLON:case En.DASH:case En.EQUALS:case En.COMMA:case En.PERIOD:case En.SLASH:case En.APOSTROPHE:case En.SINGLE_QUOTE:case En.OPEN_SQUARE_BRACKET:case En.BACKSLASH:case En.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},fr=En,$n=E.createContext(null),Un=function(je){var mt=je.visible,Tt=je.maskTransitionName,kt=je.getContainer,Jt=je.prefixCls,Cn=je.rootClassName,pn=je.icons,Yt=je.countRender,yn=je.showSwitch,Zn=je.showProgress,kn=je.current,Ar=je.transform,zr=je.count,kr=je.scale,oo=je.minScale,qr=je.maxScale,yr=je.closeIcon,Bo=je.onActive,co=je.onClose,uo=je.onZoomIn,Dr=je.onZoomOut,io=je.onRotateRight,Tr=je.onRotateLeft,Gr=je.onFlipX,Fo=je.onFlipY,$o=je.onReset,wr=je.toolbarRender,wo=je.zIndex,hi=je.image,zo=(0,E.useContext)($n),si=pn.rotateLeft,Fi=pn.rotateRight,fa=pn.zoomIn,ra=pn.zoomOut,Ga=pn.close,oa=pn.left,ia=pn.right,Ki=pn.flipX,Da=pn.flipY,Ta="".concat(Jt,"-operations-operation");E.useEffect(function(){var Gi=function(mi){mi.keyCode===fr.ESC&&co()};return mt&&window.addEventListener("keydown",Gi),function(){window.removeEventListener("keydown",Gi)}},[mt]);var Za=function(_i,mi){_i.preventDefault(),_i.stopPropagation(),Bo(mi)},ha=E.useCallback(function(Gi){var _i=Gi.type,mi=Gi.disabled,Fa=Gi.onClick,Vi=Gi.icon;return E.createElement("div",{key:_i,className:ne()(Ta,"".concat(Jt,"-operations-operation-").concat(_i),(0,ce.Z)({},"".concat(Jt,"-operations-operation-disabled"),!!mi)),onClick:Fa},Vi)},[Ta,Jt]),rs=yn?ha({icon:oa,onClick:function(_i){return Za(_i,-1)},type:"prev",disabled:kn===0}):void 0,Ia=yn?ha({icon:ia,onClick:function(_i){return Za(_i,1)},type:"next",disabled:kn===zr-1}):void 0,xa=ha({icon:Da,onClick:Fo,type:"flipY"}),Ji=ha({icon:Ki,onClick:Gr,type:"flipX"}),Xa=ha({icon:si,onClick:Tr,type:"rotateLeft"}),ma=ha({icon:Fi,onClick:io,type:"rotateRight"}),Na=ha({icon:ra,onClick:Dr,type:"zoomOut",disabled:kr<=oo}),Ba=ha({icon:fa,onClick:uo,type:"zoomIn",disabled:kr===qr}),wi=E.createElement("div",{className:"".concat(Jt,"-operations")},xa,Ji,Xa,ma,Na,Ba);return E.createElement(Ct.Z,{visible:mt,motionName:Tt},function(Gi){var _i=Gi.className,mi=Gi.style;return E.createElement(Xe.Z,{open:!0,getContainer:kt!=null?kt:document.body},E.createElement("div",{className:ne()("".concat(Jt,"-operations-wrapper"),_i,Cn),style:(0,de.Z)((0,de.Z)({},mi),{},{zIndex:wo})},yr===null?null:E.createElement("button",{className:"".concat(Jt,"-close"),onClick:co},yr||Ga),yn&&E.createElement(E.Fragment,null,E.createElement("div",{className:ne()("".concat(Jt,"-switch-left"),(0,ce.Z)({},"".concat(Jt,"-switch-left-disabled"),kn===0)),onClick:function(Vi){return Za(Vi,-1)}},oa),E.createElement("div",{className:ne()("".concat(Jt,"-switch-right"),(0,ce.Z)({},"".concat(Jt,"-switch-right-disabled"),kn===zr-1)),onClick:function(Vi){return Za(Vi,1)}},ia)),E.createElement("div",{className:"".concat(Jt,"-footer")},Zn&&E.createElement("div",{className:"".concat(Jt,"-progress")},Yt?Yt(kn+1,zr):"".concat(kn+1," / ").concat(zr)),wr?wr(wi,(0,de.Z)((0,de.Z)({icons:{prevIcon:rs,nextIcon:Ia,flipYIcon:xa,flipXIcon:Ji,rotateLeftIcon:Xa,rotateRightIcon:ma,zoomOutIcon:Na,zoomInIcon:Ba},actions:{onActive:Bo,onFlipY:Fo,onFlipX:Gr,onRotateLeft:Tr,onRotateRight:io,onZoomOut:Dr,onZoomIn:uo,onReset:$o,onClose:co},transform:Ar},zo?{current:kn,total:zr}:{}),{},{image:hi})):wi)))})},Zo=Un,ho={},Wr=[],ai=function(je){Wr.push(je)};function ln(Qe,je){if(0)var mt}function oe(Qe,je){if(0)var mt}function ae(){ho={}}function be(Qe,je,mt){!je&&!ho[mt]&&(Qe(!1,mt),ho[mt]=!0)}function we(Qe,je){be(ln,Qe,je)}function Ae(Qe,je){be(oe,Qe,je)}we.preMessage=ai,we.resetWarned=ae,we.noteOnce=Ae;var nt=we;function it(Qe,je){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Tt=new Set;function kt(Jt,Cn){var pn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Yt=Tt.has(Jt);if(nt(!Yt,"Warning: There may be circular references"),Yt)return!1;if(Jt===Cn)return!0;if(mt&&pn>1)return!1;Tt.add(Jt);var yn=pn+1;if(Array.isArray(Jt)){if(!Array.isArray(Cn)||Jt.length!==Cn.length)return!1;for(var Zn=0;Zn<Jt.length;Zn++)if(!kt(Jt[Zn],Cn[Zn],yn))return!1;return!0}if(Jt&&Cn&&(0,le.Z)(Jt)==="object"&&(0,le.Z)(Cn)==="object"){var kn=Object.keys(Jt);return kn.length!==Object.keys(Cn).length?!1:kn.every(function(Ar){return kt(Jt[Ar],Cn[Ar],yn)})}return!1}return kt(Qe,je)}var Vt=it,It=function(je){return+setTimeout(je,16)},on=function(je){return clearTimeout(je)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(It=function(je){return window.requestAnimationFrame(je)},on=function(je){return window.cancelAnimationFrame(je)});var zn=0,On=new Map;function wt(Qe){On.delete(Qe)}var An=function(je){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;zn+=1;var Tt=zn;function kt(Jt){if(Jt===0)wt(Tt),je();else{var Cn=It(function(){kt(Jt-1)});On.set(Tt,Cn)}}return kt(mt),Tt};An.cancel=function(Qe){var je=On.get(Qe);return wt(je),on(je)};var Dn=An,Xt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function an(Qe,je,mt,Tt){var kt=(0,E.useRef)(null),Jt=(0,E.useRef)([]),Cn=(0,E.useState)(Xt),pn=(0,ue.Z)(Cn,2),Yt=pn[0],yn=pn[1],Zn=function(kr){yn(Xt),Vt(Xt,Yt)||Tt==null||Tt({transform:Xt,action:kr})},kn=function(kr,oo){kt.current===null&&(Jt.current=[],kt.current=Dn(function(){yn(function(qr){var yr=qr;return Jt.current.forEach(function(Bo){yr=(0,de.Z)((0,de.Z)({},yr),Bo)}),kt.current=null,Tt==null||Tt({transform:yr,action:oo}),yr})})),Jt.current.push((0,de.Z)((0,de.Z)({},Yt),kr))},Ar=function(kr,oo,qr,yr,Bo){var co=Qe.current,uo=co.width,Dr=co.height,io=co.offsetWidth,Tr=co.offsetHeight,Gr=co.offsetLeft,Fo=co.offsetTop,$o=kr,wr=Yt.scale*kr;wr>mt?(wr=mt,$o=mt/Yt.scale):wr<je&&(wr=Bo?wr:je,$o=wr/Yt.scale);var wo=qr!=null?qr:innerWidth/2,hi=yr!=null?yr:innerHeight/2,zo=$o-1,si=zo*uo*.5,Fi=zo*Dr*.5,fa=zo*(wo-Yt.x-Gr),ra=zo*(hi-Yt.y-Fo),Ga=Yt.x-(fa-si),oa=Yt.y-(ra-Fi);if(kr<1&&wr===1){var ia=io*wr,Ki=Tr*wr,Da=Pe(),Ta=Da.width,Za=Da.height;ia<=Ta&&Ki<=Za&&(Ga=0,oa=0)}kn({x:Ga,y:oa,scale:wr},oo)};return{transform:Yt,resetTransform:Zn,updateTransform:kn,dispatchZoomChange:Ar}}function cn(Qe,je,mt,Tt){var kt=je+mt,Jt=(mt-Tt)/2;if(mt>Tt){if(je>0)return(0,ce.Z)({},Qe,Jt);if(je<0&&kt<Tt)return(0,ce.Z)({},Qe,-Jt)}else if(je<0||kt>Tt)return(0,ce.Z)({},Qe,je<0?Jt:-Jt);return{}}function Jn(Qe,je,mt,Tt){var kt=Pe(),Jt=kt.width,Cn=kt.height,pn=null;return Qe<=Jt&&je<=Cn?pn={x:0,y:0}:(Qe>Jt||je>Cn)&&(pn=(0,de.Z)((0,de.Z)({},cn("x",mt,Qe,Jt)),cn("y",Tt,je,Cn))),pn}var vr=1,yo=1;function mr(Qe,je,mt,Tt,kt,Jt,Cn){var pn=kt.rotate,Yt=kt.scale,yn=kt.x,Zn=kt.y,kn=(0,E.useState)(!1),Ar=(0,ue.Z)(kn,2),zr=Ar[0],kr=Ar[1],oo=(0,E.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),qr=function(Dr){!je||Dr.button!==0||(Dr.preventDefault(),Dr.stopPropagation(),oo.current={diffX:Dr.pageX-yn,diffY:Dr.pageY-Zn,transformX:yn,transformY:Zn},kr(!0))},yr=function(Dr){mt&&zr&&Jt({x:Dr.pageX-oo.current.diffX,y:Dr.pageY-oo.current.diffY},"move")},Bo=function(){if(mt&&zr){kr(!1);var Dr=oo.current,io=Dr.transformX,Tr=Dr.transformY,Gr=yn!==io&&Zn!==Tr;if(!Gr)return;var Fo=Qe.current.offsetWidth*Yt,$o=Qe.current.offsetHeight*Yt,wr=Qe.current.getBoundingClientRect(),wo=wr.left,hi=wr.top,zo=pn%180!==0,si=Jn(zo?$o:Fo,zo?Fo:$o,wo,hi);si&&Jt((0,de.Z)({},si),"dragRebound")}},co=function(Dr){if(!(!mt||Dr.deltaY==0)){var io=Math.abs(Dr.deltaY/100),Tr=Math.min(io,yo),Gr=vr+Tr*Tt;Dr.deltaY>0&&(Gr=vr/Gr),Cn(Gr,"wheel",Dr.clientX,Dr.clientY)}};return(0,E.useEffect)(function(){var uo,Dr,io,Tr;if(je){io=Yn(window,"mouseup",Bo,!1),Tr=Yn(window,"mousemove",yr,!1);try{window.top!==window.self&&(uo=Yn(window.top,"mouseup",Bo,!1),Dr=Yn(window.top,"mousemove",yr,!1))}catch(Gr){ln(!1,"[rc-image] ".concat(Gr))}}return function(){var Gr,Fo,$o,wr;(Gr=io)===null||Gr===void 0||Gr.remove(),(Fo=Tr)===null||Fo===void 0||Fo.remove(),($o=uo)===null||$o===void 0||$o.remove(),(wr=Dr)===null||wr===void 0||wr.remove()}},[mt,zr,yn,Zn,pn,je]),{isMoving:zr,onMouseDown:qr,onMouseMove:yr,onMouseUp:Bo,onWheel:co}}function Wn(Qe){return new Promise(function(je){if(!Qe){je(!1);return}var mt=document.createElement("img");mt.onerror=function(){return je(!1)},mt.onload=function(){return je(!0)},mt.src=Qe})}function Hr(Qe){var je=Qe.src,mt=Qe.isCustomPlaceholder,Tt=Qe.fallback,kt=(0,E.useState)(mt?"loading":"normal"),Jt=(0,ue.Z)(kt,2),Cn=Jt[0],pn=Jt[1],Yt=(0,E.useRef)(!1),yn=Cn==="error";(0,E.useEffect)(function(){var zr=!0;return Wn(je).then(function(kr){!kr&&zr&&pn("error")}),function(){zr=!1}},[je]),(0,E.useEffect)(function(){mt&&!Yt.current?pn("loading"):yn&&pn("normal")},[je]);var Zn=function(){pn("normal")},kn=function(kr){Yt.current=!1,Cn==="loading"&&kr!==null&&kr!==void 0&&kr.complete&&(kr.naturalWidth||kr.naturalHeight)&&(Yt.current=!0,Zn())},Ar=yn&&Tt?{src:Tt}:{onLoad:Zn,src:je};return[kn,Ar,Cn]}function Kr(Qe,je){var mt=Qe.x-je.x,Tt=Qe.y-je.y;return Math.hypot(mt,Tt)}function lo(Qe,je,mt,Tt){var kt=Kr(Qe,mt),Jt=Kr(je,Tt);if(kt===0&&Jt===0)return[Qe.x,Qe.y];var Cn=kt/(kt+Jt),pn=Qe.x+Cn*(je.x-Qe.x),Yt=Qe.y+Cn*(je.y-Qe.y);return[pn,Yt]}function _o(Qe,je,mt,Tt,kt,Jt,Cn){var pn=kt.rotate,Yt=kt.scale,yn=kt.x,Zn=kt.y,kn=(0,E.useState)(!1),Ar=(0,ue.Z)(kn,2),zr=Ar[0],kr=Ar[1],oo=(0,E.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),qr=function(Dr){oo.current=(0,de.Z)((0,de.Z)({},oo.current),Dr)},yr=function(Dr){if(je){Dr.stopPropagation(),kr(!0);var io=Dr.touches,Tr=io===void 0?[]:io;Tr.length>1?qr({point1:{x:Tr[0].clientX,y:Tr[0].clientY},point2:{x:Tr[1].clientX,y:Tr[1].clientY},eventType:"touchZoom"}):qr({point1:{x:Tr[0].clientX-yn,y:Tr[0].clientY-Zn},eventType:"move"})}},Bo=function(Dr){var io=Dr.touches,Tr=io===void 0?[]:io,Gr=oo.current,Fo=Gr.point1,$o=Gr.point2,wr=Gr.eventType;if(Tr.length>1&&wr==="touchZoom"){var wo={x:Tr[0].clientX,y:Tr[0].clientY},hi={x:Tr[1].clientX,y:Tr[1].clientY},zo=lo(Fo,$o,wo,hi),si=(0,ue.Z)(zo,2),Fi=si[0],fa=si[1],ra=Kr(wo,hi)/Kr(Fo,$o);Cn(ra,"touchZoom",Fi,fa,!0),qr({point1:wo,point2:hi,eventType:"touchZoom"})}else wr==="move"&&(Jt({x:Tr[0].clientX-Fo.x,y:Tr[0].clientY-Fo.y},"move"),qr({eventType:"move"}))},co=function(){if(mt){if(zr&&kr(!1),qr({eventType:"none"}),Tt>Yt)return Jt({x:0,y:0,scale:Tt},"touchZoom");var Dr=Qe.current.offsetWidth*Yt,io=Qe.current.offsetHeight*Yt,Tr=Qe.current.getBoundingClientRect(),Gr=Tr.left,Fo=Tr.top,$o=pn%180!==0,wr=Jn($o?io:Dr,$o?Dr:io,Gr,Fo);wr&&Jt((0,de.Z)({},wr),"dragRebound")}};return(0,E.useEffect)(function(){var uo;return mt&&je&&(uo=Yn(window,"touchmove",function(Dr){return Dr.preventDefault()},{passive:!1})),function(){var Dr;(Dr=uo)===null||Dr===void 0||Dr.remove()}},[mt,je]),{isTouching:zr,onTouchStart:yr,onTouchMove:Bo,onTouchEnd:co}}var zt=["fallback","src","imgRef"],Ao=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],po=function(je){var mt=je.fallback,Tt=je.src,kt=je.imgRef,Jt=(0,he.Z)(je,zt),Cn=Hr({src:Tt,fallback:mt}),pn=(0,ue.Z)(Cn,2),Yt=pn[0],yn=pn[1];return E.createElement("img",(0,me.Z)({ref:function(kn){kt.current=kn,Yt(kn)}},Jt,yn))},vi=function(je){var mt=je.prefixCls,Tt=je.src,kt=je.alt,Jt=je.imageInfo,Cn=je.fallback,pn=je.movable,Yt=pn===void 0?!0:pn,yn=je.onClose,Zn=je.visible,kn=je.icons,Ar=kn===void 0?{}:kn,zr=je.rootClassName,kr=je.closeIcon,oo=je.getContainer,qr=je.current,yr=qr===void 0?0:qr,Bo=je.count,co=Bo===void 0?1:Bo,uo=je.countRender,Dr=je.scaleStep,io=Dr===void 0?.5:Dr,Tr=je.minScale,Gr=Tr===void 0?1:Tr,Fo=je.maxScale,$o=Fo===void 0?50:Fo,wr=je.transitionName,wo=wr===void 0?"zoom":wr,hi=je.maskTransitionName,zo=hi===void 0?"fade":hi,si=je.imageRender,Fi=je.imgCommonProps,fa=je.toolbarRender,ra=je.onTransform,Ga=je.onChange,oa=(0,he.Z)(je,Ao),ia=(0,E.useRef)(),Ki=(0,E.useContext)($n),Da=Ki&&co>1,Ta=Ki&&co>=1,Za=(0,E.useState)(!0),ha=(0,ue.Z)(Za,2),rs=ha[0],Ia=ha[1],xa=an(ia,Gr,$o,ra),Ji=xa.transform,Xa=xa.resetTransform,ma=xa.updateTransform,Na=xa.dispatchZoomChange,Ba=mr(ia,Yt,Zn,io,Ji,ma,Na),wi=Ba.isMoving,Gi=Ba.onMouseDown,_i=Ba.onWheel,mi=_o(ia,Yt,Zn,Gr,Ji,ma,Na),Fa=mi.isTouching,Vi=mi.onTouchStart,Zs=mi.onTouchMove,$s=mi.onTouchEnd,Qa=Ji.rotate,xs=Ji.scale,ul=ne()((0,ce.Z)({},"".concat(mt,"-moving"),wi));(0,E.useEffect)(function(){rs||Ia(!0)},[rs]);var dl=function(){Xa("close")},Qs=function(){Na(vr+io,"zoomIn")},Ts=function(){Na(vr/(vr+io),"zoomOut")},Ms=function(){ma({rotate:Qa+90},"rotateRight")},Js=function(){ma({rotate:Qa-90},"rotateLeft")},hs=function(){ma({flipX:!Ji.flipX},"flipX")},Is=function(){ma({flipY:!Ji.flipY},"flipY")},qs=function(){Xa("reset")},bl=function(Ns){var il=yr+Ns;!Number.isInteger(il)||il<0||il>co-1||(Ia(!1),Xa(Ns<0?"prev":"next"),Ga==null||Ga(il,yr))},Dl=function(Ns){!Zn||!Da||(Ns.keyCode===fr.LEFT?bl(-1):Ns.keyCode===fr.RIGHT&&bl(1))},Tl=function(Ns){Zn&&(xs!==1?ma({x:0,y:0,scale:1},"doubleClick"):Na(vr+io,"doubleClick",Ns.clientX,Ns.clientY))};(0,E.useEffect)(function(){var os=Yn(window,"keydown",Dl,!1);return function(){os.remove()}},[Zn,Da,yr]);var gl=E.createElement(po,(0,me.Z)({},Fi,{width:je.width,height:je.height,imgRef:ia,className:"".concat(mt,"-img"),alt:kt,style:{transform:"translate3d(".concat(Ji.x,"px, ").concat(Ji.y,"px, 0) scale3d(").concat(Ji.flipX?"-":"").concat(xs,", ").concat(Ji.flipY?"-":"").concat(xs,", 1) rotate(").concat(Qa,"deg)"),transitionDuration:(!rs||Fa)&&"0s"},fallback:Cn,src:Tt,onWheel:_i,onMouseDown:Gi,onDoubleClick:Tl,onTouchStart:Vi,onTouchMove:Zs,onTouchEnd:$s,onTouchCancel:$s})),Pl=(0,de.Z)({url:Tt,alt:kt},Jt);return E.createElement(E.Fragment,null,E.createElement(Fr,(0,me.Z)({transitionName:wo,maskTransitionName:zo,closable:!1,keyboard:!0,prefixCls:mt,onClose:yn,visible:Zn,classNames:{wrapper:ul},rootClassName:zr,getContainer:oo},oa,{afterClose:dl}),E.createElement("div",{className:"".concat(mt,"-img-wrapper")},si?si(gl,(0,de.Z)({transform:Ji,image:Pl},Ki?{current:yr}:{})):gl)),E.createElement(Zo,{visible:Zn,transform:Ji,maskTransitionName:zo,closeIcon:kr,getContainer:oo,prefixCls:mt,rootClassName:zr,icons:Ar,countRender:uo,showSwitch:Da,showProgress:Ta,current:yr,count:co,scale:xs,minScale:Gr,maxScale:$o,toolbarRender:fa,onActive:bl,onZoomIn:Qs,onZoomOut:Ts,onRotateRight:Ms,onRotateLeft:Js,onFlipX:hs,onFlipY:Is,onClose:yn,onReset:qs,zIndex:oa.zIndex!==void 0?oa.zIndex+1:void 0,image:Pl}))},Ri=vi,bn=te(74902),tr=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Sr(Qe){var je=E.useState({}),mt=(0,ue.Z)(je,2),Tt=mt[0],kt=mt[1],Jt=E.useCallback(function(pn,Yt){return kt(function(yn){return(0,de.Z)((0,de.Z)({},yn),{},(0,ce.Z)({},pn,Yt))}),function(){kt(function(yn){var Zn=(0,de.Z)({},yn);return delete Zn[pn],Zn})}},[]),Cn=E.useMemo(function(){return Qe?Qe.map(function(pn){if(typeof pn=="string")return{data:{src:pn}};var Yt={};return Object.keys(pn).forEach(function(yn){["src"].concat((0,bn.Z)(tr)).includes(yn)&&(Yt[yn]=pn[yn])}),{data:Yt}}):Object.keys(Tt).reduce(function(pn,Yt){var yn=Tt[Yt],Zn=yn.canPreview,kn=yn.data;return Zn&&pn.push({data:kn,id:Yt}),pn},[])},[Qe,Tt]);return[Cn,Jt,!!Qe]}var Xn=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Oo=["src"],ni=function(je){var mt,Tt=je.previewPrefixCls,kt=Tt===void 0?"rc-image-preview":Tt,Jt=je.children,Cn=je.icons,pn=Cn===void 0?{}:Cn,Yt=je.items,yn=je.preview,Zn=je.fallback,kn=(0,le.Z)(yn)==="object"?yn:{},Ar=kn.visible,zr=kn.onVisibleChange,kr=kn.getContainer,oo=kn.current,qr=kn.movable,yr=kn.minScale,Bo=kn.maxScale,co=kn.countRender,uo=kn.closeIcon,Dr=kn.onChange,io=kn.onTransform,Tr=kn.toolbarRender,Gr=kn.imageRender,Fo=(0,he.Z)(kn,Xn),$o=Sr(Yt),wr=(0,ue.Z)($o,3),wo=wr[0],hi=wr[1],zo=wr[2],si=lt(0,{value:oo}),Fi=(0,ue.Z)(si,2),fa=Fi[0],ra=Fi[1],Ga=(0,E.useState)(!1),oa=(0,ue.Z)(Ga,2),ia=oa[0],Ki=oa[1],Da=((mt=wo[fa])===null||mt===void 0?void 0:mt.data)||{},Ta=Da.src,Za=(0,he.Z)(Da,Oo),ha=lt(!!Ar,{value:Ar,onChange:function(Fa,Vi){zr==null||zr(Fa,Vi,fa)}}),rs=(0,ue.Z)(ha,2),Ia=rs[0],xa=rs[1],Ji=(0,E.useState)(null),Xa=(0,ue.Z)(Ji,2),ma=Xa[0],Na=Xa[1],Ba=E.useCallback(function(mi,Fa,Vi,Zs){var $s=zo?wo.findIndex(function(Qa){return Qa.data.src===Fa}):wo.findIndex(function(Qa){return Qa.id===mi});ra($s<0?0:$s),xa(!0),Na({x:Vi,y:Zs}),Ki(!0)},[wo,zo]);E.useEffect(function(){Ia?ia||ra(0):Ki(!1)},[Ia]);var wi=function(Fa,Vi){ra(Fa),Dr==null||Dr(Fa,Vi)},Gi=function(){xa(!1),Na(null)},_i=E.useMemo(function(){return{register:hi,onPreview:Ba}},[hi,Ba]);return E.createElement($n.Provider,{value:_i},Jt,E.createElement(Ri,(0,me.Z)({"aria-hidden":!Ia,movable:qr,visible:Ia,prefixCls:kt,closeIcon:uo,onClose:Gi,mousePosition:ma,imgCommonProps:Za,src:Ta,fallback:Zn,icons:pn,minScale:yr,maxScale:Bo,getContainer:kr,current:fa,count:wo.length,countRender:co,onTransform:io,toolbarRender:Tr,imageRender:Gr,onChange:wi},Fo)))},Si=ni,zi=0;function Hi(Qe,je){var mt=E.useState(function(){return zi+=1,String(zi)}),Tt=(0,ue.Z)(mt,1),kt=Tt[0],Jt=E.useContext($n),Cn={data:je,canPreview:Qe};return E.useEffect(function(){if(Jt)return Jt.register(kt,Cn)},[]),E.useEffect(function(){Jt&&Jt.register(kt,Cn)},[Qe,je]),kt}var gs=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ea=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],$a=function(je){var mt=je.src,Tt=je.alt,kt=je.onPreviewClose,Jt=je.prefixCls,Cn=Jt===void 0?"rc-image":Jt,pn=je.previewPrefixCls,Yt=pn===void 0?"".concat(Cn,"-preview"):pn,yn=je.placeholder,Zn=je.fallback,kn=je.width,Ar=je.height,zr=je.style,kr=je.preview,oo=kr===void 0?!0:kr,qr=je.className,yr=je.onClick,Bo=je.onError,co=je.wrapperClassName,uo=je.wrapperStyle,Dr=je.rootClassName,io=(0,he.Z)(je,gs),Tr=yn&&yn!==!0,Gr=(0,le.Z)(oo)==="object"?oo:{},Fo=Gr.src,$o=Gr.visible,wr=$o===void 0?void 0:$o,wo=Gr.onVisibleChange,hi=wo===void 0?kt:wo,zo=Gr.getContainer,si=zo===void 0?void 0:zo,Fi=Gr.mask,fa=Gr.maskClassName,ra=Gr.movable,Ga=Gr.icons,oa=Gr.scaleStep,ia=Gr.minScale,Ki=Gr.maxScale,Da=Gr.imageRender,Ta=Gr.toolbarRender,Za=(0,he.Z)(Gr,ea),ha=Fo!=null?Fo:mt,rs=lt(!!wr,{value:wr,onChange:hi}),Ia=(0,ue.Z)(rs,2),xa=Ia[0],Ji=Ia[1],Xa=Hr({src:mt,isCustomPlaceholder:Tr,fallback:Zn}),ma=(0,ue.Z)(Xa,3),Na=ma[0],Ba=ma[1],wi=ma[2],Gi=(0,E.useState)(null),_i=(0,ue.Z)(Gi,2),mi=_i[0],Fa=_i[1],Vi=(0,E.useContext)($n),Zs=!!oo,$s=function(){Ji(!1),Fa(null)},Qa=ne()(Cn,co,Dr,(0,ce.Z)({},"".concat(Cn,"-error"),wi==="error")),xs=(0,E.useMemo)(function(){var Ts={};return tr.forEach(function(Ms){je[Ms]!==void 0&&(Ts[Ms]=je[Ms])}),Ts},tr.map(function(Ts){return je[Ts]})),ul=(0,E.useMemo)(function(){return(0,de.Z)((0,de.Z)({},xs),{},{src:ha})},[ha,xs]),dl=Hi(Zs,ul),Qs=function(Ms){var Js=Le(Ms.target),hs=Js.left,Is=Js.top;Vi?Vi.onPreview(dl,ha,hs,Is):(Fa({x:hs,y:Is}),Ji(!0)),yr==null||yr(Ms)};return E.createElement(E.Fragment,null,E.createElement("div",(0,me.Z)({},io,{className:Qa,onClick:Zs?Qs:yr,style:(0,de.Z)({width:kn,height:Ar},uo)}),E.createElement("img",(0,me.Z)({},xs,{className:ne()("".concat(Cn,"-img"),(0,ce.Z)({},"".concat(Cn,"-img-placeholder"),yn===!0),qr),style:(0,de.Z)({height:Ar},zr),ref:Na},Ba,{width:kn,height:Ar,onError:Bo})),wi==="loading"&&E.createElement("div",{"aria-hidden":"true",className:"".concat(Cn,"-placeholder")},yn),Fi&&Zs&&E.createElement("div",{className:ne()("".concat(Cn,"-mask"),fa),style:{display:(zr==null?void 0:zr.display)==="none"?"none":void 0}},Fi)),!Vi&&Zs&&E.createElement(Ri,(0,me.Z)({"aria-hidden":!xa,visible:xa,prefixCls:Yt,onClose:$s,mousePosition:mi,src:ha,alt:Tt,imageInfo:{width:kn,height:Ar},fallback:Zn,getContainer:si,icons:Ga,movable:ra,scaleStep:oa,minScale:ia,maxScale:Ki,rootClassName:Dr,imageRender:Da,imgCommonProps:xs,toolbarRender:Ta},Za)))};$a.PreviewGroup=Si;var fs=$a,es=fs,Ra=te(87263),Wa=te(33603),Ui=te(53124),Ka=te(35792),Ha=te(10110),ua=te(85846),bo=te(55007),ya=te(79269),ts=te(83963),ta={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"},$i=ta,da=te(84180),Ua=function(je,mt){return E.createElement(da.Z,(0,ts.Z)({},je,{ref:mt,icon:$i}))},Ks=E.forwardRef(Ua),Oa=Ks,Es={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"},_s=Es,Os=function(je,mt){return E.createElement(da.Z,(0,ts.Z)({},je,{ref:mt,icon:_s}))},Vs=E.forwardRef(Os),Us=Vs,ws={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"},Ds=ws,Gs=function(je,mt){return E.createElement(da.Z,(0,ts.Z)({},je,{ref:mt,icon:Ds}))},Ls=E.forwardRef(Gs),sr=Ls,Qn={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"},ir=Qn,hr=function(je,mt){return E.createElement(da.Z,(0,ts.Z)({},je,{ref:mt,icon:ir}))},No=E.forwardRef(hr),yi=No,Ue={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"},$e=Ue,dt=function(je,mt){return E.createElement(da.Z,(0,ts.Z)({},je,{ref:mt,icon:$e}))},Mt=E.forwardRef(dt),dn=Mt,nr=te(16777),Pr=te(24327),Qr=te(71194),Xr=te(14747),Vo=te(50438),Qo=te(16932),Ei=te(83559),Po=te(43259);const Ur=Qe=>({position:Qe||"absolute",inset:0}),Jr=Qe=>{const{iconCls:je,motionDurationSlow:mt,paddingXXS:Tt,marginXXS:kt,prefixCls:Jt,colorTextLightSolid:Cn}=Qe;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Cn,background:new Pr.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${mt}`,[`.${Jt}-mask-info`]:Object.assign(Object.assign({},Xr.vS),{padding:`0 ${(0,nr.unit)(Tt)}`,[je]:{marginInlineEnd:kt,svg:{verticalAlign:"baseline"}}})}},Jo=Qe=>{const{previewCls:je,modalMaskBg:mt,paddingSM:Tt,marginXL:kt,margin:Jt,paddingLG:Cn,previewOperationColorDisabled:pn,previewOperationHoverColor:Yt,motionDurationSlow:yn,iconCls:Zn,colorTextLightSolid:kn}=Qe,Ar=new Pr.FastColor(mt).setA(.1),zr=Ar.clone().setA(.2);return{[`${je}-footer`]:{position:"fixed",bottom:kt,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:Qe.previewOperationColor,transform:"translateX(-50%)"},[`${je}-progress`]:{marginBottom:Jt},[`${je}-close`]:{position:"fixed",top:kt,right:{_skip_check_:!0,value:kt},display:"flex",color:kn,backgroundColor:Ar.toRgbString(),borderRadius:"50%",padding:Tt,outline:0,border:0,cursor:"pointer",transition:`all ${yn}`,"&:hover":{backgroundColor:zr.toRgbString()},[`& > ${Zn}`]:{fontSize:Qe.previewOperationSize}},[`${je}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,nr.unit)(Cn)}`,backgroundColor:Ar.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Tt,padding:Tt,cursor:"pointer",transition:`all ${yn}`,userSelect:"none",[`&:not(${je}-operations-operation-disabled):hover > ${Zn}`]:{color:Yt},"&-disabled":{color:pn,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Zn}`]:{fontSize:Qe.previewOperationSize}}}}},Bi=Qe=>{const{modalMaskBg:je,iconCls:mt,previewOperationColorDisabled:Tt,previewCls:kt,zIndexPopup:Jt,motionDurationSlow:Cn}=Qe,pn=new Pr.FastColor(je).setA(.1),Yt=pn.clone().setA(.2);return{[`${kt}-switch-left, ${kt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Qe.calc(Jt).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:Qe.imagePreviewSwitchSize,height:Qe.imagePreviewSwitchSize,marginTop:Qe.calc(Qe.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:Qe.previewOperationColor,background:pn.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Cn}`,userSelect:"none","&:hover":{background:Yt.toRgbString()},"&-disabled":{"&, &:hover":{color:Tt,background:"transparent",cursor:"not-allowed",[`> ${mt}`]:{cursor:"not-allowed"}}},[`> ${mt}`]:{fontSize:Qe.previewOperationSize}},[`${kt}-switch-left`]:{insetInlineStart:Qe.marginSM},[`${kt}-switch-right`]:{insetInlineEnd:Qe.marginSM}}},Wi=Qe=>{const{motionEaseOut:je,previewCls:mt,motionDurationSlow:Tt,componentCls:kt}=Qe;return[{[`${kt}-preview-root`]:{[mt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${mt}-body`]:Object.assign(Object.assign({},Ur()),{overflow:"hidden"}),[`${mt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Tt} ${je} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ur()),{transition:`transform ${Tt} ${je} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${mt}-moving`]:{[`${mt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${kt}-preview-root`]:{[`${mt}-wrap`]:{zIndex:Qe.zIndexPopup}}},{[`${kt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Qe.calc(Qe.zIndexPopup).add(1).equal()},"&":[Jo(Qe),Bi(Qe)]}]},Eo=Qe=>{const{componentCls:je}=Qe;return{[je]:{position:"relative",display:"inline-block",[`${je}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${je}-img-placeholder`]:{backgroundColor:Qe.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${je}-mask`]:Object.assign({},Jr(Qe)),[`${je}-mask:hover`]:{opacity:1},[`${je}-placeholder`]:Object.assign({},Ur())}}},Xi=Qe=>{const{previewCls:je}=Qe;return{[`${je}-root`]:(0,Vo._y)(Qe,"zoom"),"&":(0,Qo.J$)(Qe,!0)}},ci=Qe=>({zIndexPopup:Qe.zIndexPopupBase+80,previewOperationColor:new Pr.FastColor(Qe.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Pr.FastColor(Qe.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Pr.FastColor(Qe.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:Qe.fontSizeIcon*1.5});var ri=(0,Ei.I$)("Image",Qe=>{const je=`${Qe.componentCls}-preview`,mt=(0,Po.mergeToken)(Qe,{previewCls:je,modalMaskBg:new Pr.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:Qe.controlHeightLG});return[Eo(mt),Wi(mt),(0,Qr.QA)((0,Po.mergeToken)(mt,{componentCls:je})),Xi(mt)]},ci),ui=function(Qe,je){var mt={};for(var Tt in Qe)Object.prototype.hasOwnProperty.call(Qe,Tt)&&je.indexOf(Tt)<0&&(mt[Tt]=Qe[Tt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Tt=Object.getOwnPropertySymbols(Qe);kt<Tt.length;kt++)je.indexOf(Tt[kt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Tt[kt])&&(mt[Tt[kt]]=Qe[Tt[kt]]);return mt};const Qi={rotateLeft:E.createElement(Oa,null),rotateRight:E.createElement(Us,null),zoomIn:E.createElement(yi,null),zoomOut:E.createElement(dn,null),close:E.createElement(ua.Z,null),left:E.createElement(bo.Z,null),right:E.createElement(ya.Z,null),flipX:E.createElement(sr,null),flipY:E.createElement(sr,{rotate:90})};var Va=Qe=>{var{previewPrefixCls:je,preview:mt}=Qe,Tt=ui(Qe,["previewPrefixCls","preview"]);const{getPrefixCls:kt}=E.useContext(Ui.E_),Jt=kt("image",je),Cn=`${Jt}-preview`,pn=kt(),Yt=(0,Ka.Z)(Jt),[yn,Zn,kn]=ri(Jt,Yt),[Ar]=(0,Ra.Cn)("ImagePreview",typeof mt=="object"?mt.zIndex:void 0),zr=E.useMemo(()=>{var kr;if(mt===!1)return mt;const oo=typeof mt=="object"?mt:{},qr=fe()(Zn,kn,Yt,(kr=oo.rootClassName)!==null&&kr!==void 0?kr:"");return Object.assign(Object.assign({},oo),{transitionName:(0,Wa.m)(pn,"zoom",oo.transitionName),maskTransitionName:(0,Wa.m)(pn,"fade",oo.maskTransitionName),rootClassName:qr,zIndex:Ar})},[mt]);return yn(E.createElement(es.PreviewGroup,Object.assign({preview:zr,previewPrefixCls:Cn,icons:Qi},Tt)))},ga=function(Qe,je){var mt={};for(var Tt in Qe)Object.prototype.hasOwnProperty.call(Qe,Tt)&&je.indexOf(Tt)<0&&(mt[Tt]=Qe[Tt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Tt=Object.getOwnPropertySymbols(Qe);kt<Tt.length;kt++)je.indexOf(Tt[kt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Tt[kt])&&(mt[Tt[kt]]=Qe[Tt[kt]]);return mt};const La=Qe=>{const{prefixCls:je,preview:mt,className:Tt,rootClassName:kt,style:Jt}=Qe,Cn=ga(Qe,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:pn,getPopupContainer:Yt,className:yn,style:Zn,preview:kn}=(0,Ui.dj)("image"),[Ar]=(0,Ha.Z)("Image"),zr=pn("image",je),kr=pn(),oo=(0,Ka.Z)(zr),[qr,yr,Bo]=ri(zr,oo),co=fe()(kt,yr,Bo,oo),uo=fe()(Tt,yr,yn),[Dr]=(0,Ra.Cn)("ImagePreview",typeof mt=="object"?mt.zIndex:void 0),io=E.useMemo(()=>{if(mt===!1)return mt;const Gr=typeof mt=="object"?mt:{},{getContainer:Fo,closeIcon:$o,rootClassName:wr}=Gr,wo=ga(Gr,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:E.createElement("div",{className:`${zr}-mask-info`},E.createElement(pe.Z,null),Ar==null?void 0:Ar.preview),icons:Qi},wo),{rootClassName:fe()(co,wr),getContainer:Fo!=null?Fo:Yt,transitionName:(0,Wa.m)(kr,"zoom",Gr.transitionName),maskTransitionName:(0,Wa.m)(kr,"fade",Gr.maskTransitionName),zIndex:Dr,closeIcon:$o!=null?$o:kn==null?void 0:kn.closeIcon})},[mt,Ar,kn==null?void 0:kn.closeIcon]),Tr=Object.assign(Object.assign({},Zn),Jt);return qr(E.createElement(es,Object.assign({prefixCls:zr,preview:io,rootClassName:co,className:uo,style:Tr},Cn)))};La.PreviewGroup=Va;var na=La,Ya=()=>{const[Qe,je]=(0,E.useState)(""),[mt,Tt]=(0,E.useState)(0);let[kt,Jt]=(0,E.useState)(),[Cn,pn]=(0,E.useState)();const[Yt,yn]=(0,E.useState)(!1),Zn=(0,E.useRef)("");(0,E.useEffect)(()=>Ee.Z.subscribe("preview-image",Dr=>{je(Dr),console.log(Bo.current),document.body.style.overflow="hidden"}),[]),(0,E.useEffect)(()=>(document.addEventListener("keydown",kn),()=>{document.removeEventListener("keydown",kn)}),[]),(0,E.useEffect)(()=>{Zn.current=Qe},[Qe]);function kn(uo){uo.keyCode==27&&Zn.current&&Ar()}function Ar(){document.body.style.overflow="auto",Jt(void 0),pn(void 0),Tt(0),je("")}function zr(){Tt(mt+90)}function kr(){kt=Bo.current.width*1.1,Cn=Bo.current.height*1.1,pn(Cn),Jt(kt)}function oo(){kt=Bo.current.width/1.1,Cn=Bo.current.height/1.1,pn(Cn),Jt(kt)}const qr=(0,E.useRef)(),yr=(0,E.useRef)(),Bo=(0,E.useRef)(),co=uo=>{(uo.nativeEvent.target===qr.current||uo.nativeEvent.target===yr.current)&&Ar()};return E.createElement(E.Fragment,null,Qe?E.createElement("div",null,E.createElement("div",{className:"preview-wrp-group",ref:yr},E.createElement(na,{className:"image-preview",src:Qe,style:{display:"none"},preview:{visible:!0,src:Qe,movable:!1,onVisibleChange:uo=>{je("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(ft,Je,te){"use strict";te.d(Je,{h:function(){return re}});var E=te(67294),_e=te(88044),Ee=te(91773),pe=te(85804),ve=te(4631),fe=te.n(ve),me=te(71749),de=te(30483),ce=Object.defineProperty,ue=Object.defineProperties,le=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(se,ge,Se)=>ge in se?ce(se,ge,{enumerable:!0,configurable:!0,writable:!0,value:Se}):se[ge]=Se,y=(se,ge)=>{for(var Se in ge||(ge={}))ie.call(ge,Se)&&a(se,Se,ge[Se]);if(he)for(var Se of he(ge))ne.call(ge,Se)&&a(se,Se,ge[Se]);return se},x=(se,ge)=>ue(se,le(ge));const b=_e.default.Option,z={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"]};Je.Z=({callback:se,onCancel:ge})=>{const[Se,Pe]=(0,E.useState)("python");function Re(Fe){Pe(ee[Fe][1])}function Le(Fe){se(Fe)}return E.createElement(Ee.default,x(y({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),E.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(_e.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:Re},Object.keys(ee).map(Fe=>E.createElement(b,{key:Fe,value:Fe},ee[Fe][0])))),E.createElement(Ee.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(re,{mode:Se})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(pe.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function re({value:se,onChange:ge,mode:Se,options:Pe={}}){const Re=(0,E.useRef)(),[Le,Fe]=(0,E.useState)();return(0,E.useEffect)(()=>{if(Le){let Ie=function(vt){const at=vt.getValue();ge&&ge(at)};return Le.on("change",Ie),()=>{Le.off("change",Ie)}}},[Le,ge]),(0,E.useEffect)(()=>{Le&&Le.setOption("mode",Se)},[Le,Se]),(0,E.useEffect)(()=>{Le&&(se!==Le.getValue()||se==="")&&setTimeout(()=>{Le.setValue(se||"")},300)},[Le,se]),(0,E.useEffect)(()=>{if(Re.current&&!Le){const Ie=fe().fromTextArea(Re.current,y({mode:Se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pe));Fe(Ie)}},[Re.current,Le]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:Re}))}},35567:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return oe}});var E=te(67294),_e=te(4631),Ee=te.n(_e),pe=te(91033),ve=te(71749),fe=te(57341),me=te(82801),de=te(88386),ce=te(49047),ue=te(80785),le=te(85725),he=({value:ae="",className:be,showTextOnly:we,showLines:Ae,style:nt={}})=>{const it=(0,E.useMemo)(()=>"",[ae]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:it}}))},ie=te(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(ae,be,we)=>be in ae?ne(ae,be,{enumerable:!0,configurable:!0,writable:!0,value:we}):ae[be]=we,re=(ae,be)=>{for(var we in be||(be={}))b.call(be,we)&&ee(ae,we,be[we]);if(x)for(var we of x(be))z.call(be,we)&&ee(ae,we,be[we]);return ae},se=(ae,be)=>a(ae,y(be));let ge=[{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:ae,title:be,icon:we,actionName:Ae,className:nt="",children:it}){function Vt(){ae(Ae)}return ie.createElement("a",{title:be,className:nt,onClick:Vt},ie.createElement("i",{className:`${we}`}),it)}var Pe=({watch:ae,showNullButton:be,showNullProgramButton:we,onActionCallback:Ae,fullScreen:nt,insertTemp:it,hidetoolBar:Vt,extraUse:It})=>{const on=[...ge,{title:`${ae?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ae?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ie.createElement("ul",{className:"markdown-toolbar-container"},!Vt&&on.map((zn,On)=>ie.createElement("li",{key:On},zn.actionName?ie.createElement(Se,se(re({},zn),{onActionCallback:Ae})):ie.createElement("span",{className:"v-line"}))),be?ie.createElement("li",null,ie.createElement(Se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ae},ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,we?ie.createElement(ie.Fragment,null,ie.createElement("li",null,ie.createElement(Se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ae},ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ie.createElement("li",null,ie.createElement(Se,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ae},ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,it&&ie.createElement("li",null,ie.createElement(Se,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${it}`,onActionCallback:Ae},ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),It&&ie.createElement("li",null,It),ie.createElement("li",{className:"btn-full-screen"},ie.createElement(Se,{icon:`${nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ae})))},Re=te(76621),Le=te(91773),Fe=te(28802),Ie=te(85804),vt=Object.defineProperty,at=Object.defineProperties,et=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,lt=(ae,be,we)=>be in ae?vt(ae,be,{enumerable:!0,configurable:!0,writable:!0,value:we}):ae[be]=we,Xe=(ae,be)=>{for(var we in be||(be={}))Oe.call(be,we)&<(ae,we,be[we]);if(De)for(var we of De(be))ke.call(be,we)&<(ae,we,be[we]);return ae},xt=(ae,be)=>at(ae,et(be));const Ot={labelCol:{span:4},wrapperCol:{span:20}};var Dt=({callback:ae,onCancel:be})=>{function we(Ae){ae(Ae)}return E.createElement(Le.default,xt(Xe({},Ot),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:we,style:{width:500}}),E.createElement(Le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(Fe.default,null)),E.createElement(Le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(Fe.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Ie.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},Kt=te(57444),St=te(70859),gt=te(62844),ht=te(71230),Qt=te(63205),yt=te(67294),Zt=({callback:ae,onCancel:be})=>{const we=document.createElement("canvas"),Ae=we.getContext("2d");we.width=1e3,we.height=800,Ae.fillStyle="#ffffff",Ae.fillRect(0,0,we.width,we.height);const nt=we.toDataURL("image/png");return yt.createElement(gt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},yt.createElement(ht.Z,{style:{height:"100vh"}},yt.createElement(Qt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:nt,visible:!0,title:String(Date.now())},onOk:it=>{ae({src:it.url})},onClose:be})))},Ye=te(23495);function Gt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Gt,go.CommandHandler),Gt.prototype.canAlignSelection=function(){var ae=this.diagram;return!(ae===null||ae.isReadOnly||ae.isModelReadOnly||ae.selection.count<2)},Gt.prototype.alignLeft=function(){var ae=this.diagram;ae.startTransaction("aligning left");var be=1/0;ae.selection.each(function(we){we instanceof go.Link||(be=Math.min(we.position.x,be))}),ae.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(be,we.position.y))}),ae.commitTransaction("aligning left")},Gt.prototype.alignRight=function(){var ae=this.diagram;ae.startTransaction("aligning right");var be=-1/0;ae.selection.each(function(we){if(!(we instanceof go.Link)){var Ae=we.actualBounds.x+we.actualBounds.width;be=Math.max(Ae,be)}}),ae.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(be-we.actualBounds.width,we.position.y))}),ae.commitTransaction("aligning right")},Gt.prototype.alignTop=function(){var ae=this.diagram;ae.startTransaction("alignTop");var be=1/0;ae.selection.each(function(we){we instanceof go.Link||(be=Math.min(we.position.y,be))}),ae.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.position.x,be))}),ae.commitTransaction("alignTop")},Gt.prototype.alignBottom=function(){var ae=this.diagram;ae.startTransaction("aligning bottom");var be=-1/0;ae.selection.each(function(we){if(!(we instanceof go.Link)){var Ae=we.actualBounds.y+we.actualBounds.height;be=Math.max(Ae,be)}}),ae.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.actualBounds.x,be-we.actualBounds.height))}),ae.commitTransaction("aligning bottom")},Gt.prototype.alignCenterX=function(){var ae=this.diagram,be=ae.selection.first();if(be){ae.startTransaction("aligning Center X");var we=be.actualBounds.x+be.actualBounds.width/2;ae.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(we-Ae.actualBounds.width/2,Ae.actualBounds.y))}),ae.commitTransaction("aligning Center X")}},Gt.prototype.alignCenterY=function(){var ae=this.diagram,be=ae.selection.first();if(be){ae.startTransaction("aligning Center Y");var we=be.actualBounds.y+be.actualBounds.height/2;ae.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Ae.actualBounds.x,we-Ae.actualBounds.height/2))}),ae.commitTransaction("aligning Center Y")}},Gt.prototype.alignColumn=function(ae){var be=this.diagram;be.startTransaction("align Column"),ae===void 0&&(ae=0),ae=parseFloat(ae);var we=new Array;be.selection.each(function(It){It instanceof go.Link||we.push(It)});for(var Ae=0;Ae<we.length-1;Ae++){var nt=we[Ae],it=nt.actualBounds.y+nt.actualBounds.height+ae,Vt=we[Ae+1];Vt.move(new go.Point(nt.actualBounds.x,it))}be.commitTransaction("align Column")},Gt.prototype.alignRow=function(ae){ae===void 0&&(ae=0),ae=parseFloat(ae);var be=this.diagram;be.startTransaction("align Row");var we=new Array;be.selection.each(function(It){It instanceof go.Link||we.push(It)});for(var Ae=0;Ae<we.length-1;Ae++){var nt=we[Ae],it=nt.actualBounds.x+nt.actualBounds.width+ae,Vt=we[Ae+1];Vt.move(new go.Point(it,nt.actualBounds.y))}be.commitTransaction("align Row")},Gt.prototype.canRotate=function(ae){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},Gt.prototype.rotate=function(ae){ae===void 0&&(ae=90);var be=this.diagram;be.startTransaction("rotate "+ae.toString());var be=this.diagram;be.selection.each(function(we){we instanceof go.Link||we instanceof go.Group||(we.angle+=ae)}),be.commitTransaction("rotate "+ae.toString())},Gt.prototype.pullToFront=function(){var ae=this.diagram;ae.startTransaction("pullToFront");var be=new go.Map;ae.selection.each(function(we){be.set(we.layer,0)}),be.iteratorKeys.each(function(we){var Ae=0;we.parts.each(function(nt){if(!nt.isSelected){var it=nt.zOrder;isNaN(it)?nt.zOrder=0:Ae=Math.max(Ae,it)}}),be.set(we,Ae)}),ae.selection.each(function(we){Gt._assignZOrder(we,be.get(we.layer)+1)}),ae.commitTransaction("pullToFront")},Gt.prototype.pushToBack=function(){var ae=this.diagram;ae.startTransaction("pushToBack");var be=new go.Map;ae.selection.each(function(we){be.set(we.layer,0)}),be.iteratorKeys.each(function(we){var Ae=0;we.parts.each(function(nt){if(!nt.isSelected){var it=nt.zOrder;isNaN(it)?nt.zOrder=0:Ae=Math.min(Ae,it)}}),be.set(we,Ae)}),ae.selection.each(function(we){Gt._assignZOrder(we,be.get(we.layer)-1-Gt._findGroupDepth(we))}),ae.commitTransaction("pushToBack")},Gt._assignZOrder=function(ae,be,we){we===void 0&&(we=ae),ae.layer===we.layer&&(ae.zOrder=be),ae instanceof go.Group&&ae.memberParts.each(function(Ae){Gt._assignZOrder(Ae,be+1,we)})},Gt._findGroupDepth=function(ae){if(ae instanceof go.Group){var be=0;return ae.memberParts.each(function(we){be=Math.max(be,Gt._findGroupDepth(we))}),be+1}else return 0},Gt.prototype.doKeyDown=function(){var ae=this.diagram;if(ae!==null){var be=ae.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var we=this.arrowKeyBehavior;if(we==="none")return;if(we==="select"){this._arrowKeySelect();return}else if(we==="move"){this._arrowKeyMove();return}else if(we==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Gt.prototype._getAllParts=function(){var ae=new Array;return this.diagram.nodes.each(function(be){ae.push(be)}),this.diagram.parts.each(function(be){ae.push(be)}),ae},Gt.prototype._arrowKeyMove=function(){var ae=this.diagram,be=ae.lastInput,we=0,Ae=0;if(be.control||be.meta)we=1,Ae=1;else if(ae.grid!==null){var nt=ae.grid.gridCellSize;Ae=nt.width,we=nt.height}ae.startTransaction("arrowKeyMove"),ae.selection.each(function(it){be.key==="Up"?it.move(new go.Point(it.actualBounds.x,it.actualBounds.y-we)):be.key==="Down"?it.move(new go.Point(it.actualBounds.x,it.actualBounds.y+we)):be.key==="Left"?it.move(new go.Point(it.actualBounds.x-Ae,it.actualBounds.y)):be.key==="Right"&&it.move(new go.Point(it.actualBounds.x+Ae,it.actualBounds.y))}),ae.commitTransaction("arrowKeyMove")},Gt.prototype._arrowKeySelect=function(){var ae=this.diagram,be=ae.lastInput,we=null;be.key==="Up"?we=this._findNearestPartTowards(270):be.key==="Down"?we=this._findNearestPartTowards(90):be.key==="Left"?we=this._findNearestPartTowards(180):be.key==="Right"&&(we=this._findNearestPartTowards(0)),we!==null&&(be.shift?we.isSelected=!0:be.control||be.meta?we.isSelected=!we.isSelected:ae.select(we))},Gt.prototype._findNearestPartTowards=function(ae){var be=this.diagram.selection.first();if(be===null)return null;for(var we=be.actualBounds.center,Ae=this._getAllParts(),nt=1/0,it=be,Vt=0;Vt<Ae.length;Vt++){var It=Ae[Vt];if(It!==be&&It.canSelect()){var on=It.actualBounds.center,zn=we.directionPoint(on),On=this._angleCloseness(zn,ae);if(On<=45){var wt=we.distanceSquaredPoint(on);wt*=1+Math.sin(On*Math.PI/180),wt<nt&&(nt=wt,it=It)}}}return it},Gt.prototype._angleCloseness=function(ae,be){return Math.min(Math.abs(be-ae),Math.min(Math.abs(be+360-ae),Math.abs(be-360-ae)))},Gt.prototype._arrowKeyTree=function(){var ae=this.diagram,be=ae.selection.first();if(be instanceof go.Node){var we=ae.lastInput;if(we.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)ae.commandHandler.canExpandTree(be)&&ae.commandHandler.expandTree(be);else{var Ae=this._sortTreeChildrenByY(be).first();Ae!==null&&ae.select(Ae)}}else if(we.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)ae.commandHandler.canCollapseTree(be)&&ae.commandHandler.collapseTree(be);else{var nt=be.findTreeParentNode();nt!==null&&ae.select(nt)}else if(we.key==="Up"){var nt=be.findTreeParentNode();if(nt!==null){var it=this._sortTreeChildrenByY(nt),Vt=it.indexOf(be);if(Vt>0){for(var It=it.elt(Vt-1);It!==null&&It.isTreeExpanded&&!It.isTreeLeaf;){var on=this._sortTreeChildrenByY(It);It=on.last()}It!==null&&ae.select(It)}else ae.select(nt)}}else if(we.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var Ae=this._sortTreeChildrenByY(be).first();Ae!==null&&ae.select(Ae)}else for(;be!==null;){var nt=be.findTreeParentNode();if(nt===null)break;var it=this._sortTreeChildrenByY(nt),Vt=it.indexOf(be);if(Vt<it.length-1){ae.select(it.elt(Vt+1));break}else be=nt}var zn=ae.selection.first();zn!==null&&ae.scrollToRect(zn.actualBounds)}},Gt.prototype._sortTreeChildrenByY=function(ae){var be=new go.List().addAll(ae.findTreeChildrenNodes());return be.sort(function(we,Ae){var nt=we.location,it=Ae.location;return nt.y<it.y?-1:nt.y>it.y?1:nt.x<it.x?-1:nt.x>it.x?1:0}),be},Gt.prototype.copyToClipboard=function(ae){go.CommandHandler.prototype.copyToClipboard.call(this,ae),this._lastPasteOffset.set(this.pasteOffset)},Gt.prototype.pasteFromClipboard=function(){var ae=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ae,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ae},Object.defineProperty(Gt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ae){if(ae!=="move"&&ae!=="select"&&ae!=="scroll"&&ae!=="tree"&&ae!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ae);this._arrowKeyBehavior=ae}}),Object.defineProperty(Gt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ae){if(!(ae instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ae);this._pasteOffset.set(ae)}});var fn=Gt,hn=te(18023),mn=te(15746),Mn=te(33170),Rt={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},$t=te(67294),Ct=(ae,be,we)=>new Promise((Ae,nt)=>{var it=on=>{try{It(we.next(on))}catch(zn){nt(zn)}},Vt=on=>{try{It(we.throw(on))}catch(zn){nt(zn)}},It=on=>on.done?Ae(on.value):Promise.resolve(on.value).then(it,Vt);It((we=we.apply(ae,be)).next())});function Be({onCancel:ae,callback:be}){let we=(0,E.useRef)(),Ae=(0,E.useRef)(),nt=(0,E.useRef)(),it=(0,E.useRef)(!1);const Vt=(0,E.useRef)(!1),[It,on]=(0,E.useState)(0);function zn(){const wt=Ye.bx.make,An={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"};we.current=new Ye.S0(Ae.current,{padding:20,grid:wt(Ye.s_,"Grid",wt(Ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),wt(Ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:bn=>{var tr=bn.diagram.commandHandler.addTopLevelParts(bn.diagram.selection,!0);tr||bn.diagram.currentTool.doCancel()},commandHandler:wt(fn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:bn=>{var tr=bn.subject;tr.location=tr.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 tr=bn.subject;setTimeout(()=>{bn.diagram.commandHandler.editTextBlock()})},LinkRelinked:bn=>{var tr=bn.parameter.part;tr.invalidateConnectedLinks();var Sr=bn.subject;bn.diagram.toolManager.linkingTool.isForwards?Sr.toNode.invalidateConnectedLinks():Sr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),we.current.nodeTemplate=wt(Ye.NB,"Auto",{locationSpot:Ye.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ye.$u(120,60),minSize:new Ye.$u(40,40),resizable:!0,resizeCellSize:new Ye.$u(10,10),rotatable:!0},new Ye.KX("location","loc",Ye.E9.parse).makeTwoWay(Ye.E9.stringify),new Ye.KX("desiredSize","size",Ye.$u.parse).makeTwoWay(Ye.$u.stringify),wt(Ye.bn,{name:"SHAPE",fill:An.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ye.z6.AllSides,toSpot:Ye.z6.AllSides},new Ye.KX("figure"),new Ye.KX("fill"),new Ye.KX("stroke","borderColor"),new Ye.KX("strokeWidth","thickness"),new Ye.KX("strokeDashArray","dash")),wt(Ye.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),wt(Ye.al,{margin:1,textAlign:"center",overflow:Ye.al.OverflowEllipsis,editable:!0},new Ye.KX("text").makeTwoWay(),new Ye.KX("stroke","color"))),we.current.nodeTemplate.toolTip=wt("ToolTip",wt(Ye.s_,"Vertical",{maxSize:new Ye.$u(200,NaN)},wt(Ye.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ye.KX("text")),wt(Ye.al,{font:"10pt sans-serif",textAlign:"center"},new Ye.KX("text","details"))));function Dn(bn,tr){var Sr=(Xn,Oo)=>{Xn.handled=!0,Xn.diagram.model.commit(ni=>{var Si=Oo.part.adornedPart,zi=new Ye.E9().setRectSpot(Si.actualBounds,bn);zi.subtract(Si.location),zi.scale(2,2),zi.x+=Math.sign(zi.x)*130,zi.y+=Math.sign(zi.y)*130,zi.add(Si.location),zi.snapToGridPoint(Xn.diagram.grid.gridOrigin,Xn.diagram.grid.gridCellSize);var Hi=ni.copyNodeData(Si.data);ni.setGroupKeyForNodeData(Hi,ni.getGroupKeyForNodeData(Si.data)),ni.addNodeData(Hi);var gs={from:Si.key,to:ni.getKeyForNodeData(Hi)};ni.addLinkData(gs);var ea=Xn.diagram.findNodeForData(Hi);ea.location=zi,Xn.diagram.select(ea),setTimeout(()=>{Xn.diagram.commandHandler.editTextBlock()},20)})};return wt(Ye.bn,{figure:tr,alignment:bn,alignmentFocus:bn.opposite(),width:bn.equals(Ye.z6.Top)||bn.equals(Ye.z6.Bottom)?25:18,height:bn.equals(Ye.z6.Top)||bn.equals(Ye.z6.Bottom)?18:25,fill:"orange",stroke:An.white,strokeWidth:4,mouseEnter:(Xn,Oo)=>Oo.fill="dodgerblue",mouseLeave:(Xn,Oo)=>Oo.fill="orange",isActionable:!0,click:Sr,contextClick:Sr})}function Xt(bn){return wt(Ye.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:(tr,Sr)=>Sr.fill="dodgerblue",mouseLeave:(tr,Sr)=>Sr.fill="orange",click:(tr,Sr)=>{tr.diagram.commandHandler.showContextMenu(Sr.part.adornedPart)}},bn||{})}we.current.nodeTemplate.selectionAdornmentTemplate=wt(Ye.uz,"Spot",wt(Ye.Vm,{padding:10}),Dn(Ye.z6.Top,"TriangleUp"),Dn(Ye.z6.Left,"TriangleLeft"),Dn(Ye.z6.Right,"TriangleRight"),Dn(Ye.z6.Bottom,"TriangleDown"),Xt({alignment:new Ye.z6(.75,0)}));function an(bn,tr){return(Sr,Xn)=>{Sr.handled=!0,Sr.diagram.model.commit(Oo=>{Oo.set(Xn.part.adornedPart.data,bn,tr)})}}function cn(bn,tr){return tr||(tr="color"),wt(Ye.bn,{width:16,height:16,stroke:"lightgray",fill:bn,margin:1,background:"transparent",mouseEnter:(Sr,Xn)=>Xn.stroke="dodgerblue",mouseLeave:(Sr,Xn)=>Xn.stroke="lightgray",click:an(tr,bn),contextClick:an(tr,bn)})}function Jn(){return[wt("ContextMenuButton",wt(Ye.s_,"Horizontal",cn(An.white,"fill"),cn(An.beige,"fill"),cn(An.extralightblue,"fill"),cn(An.extralightred,"fill"))),wt("ContextMenuButton",wt(Ye.s_,"Horizontal",cn(An.lightgray,"fill"),cn(An.lightgreen,"fill"),cn(An.lightblue,"fill"),cn(An.lightred,"fill")))]}function vr(){return[wt("ContextMenuButton",wt(Ye.s_,"Horizontal",cn(An.black),cn(An.green),cn(An.blue),cn(An.red))),wt("ContextMenuButton",wt(Ye.s_,"Horizontal",cn(An.white),cn(An.magenta),cn(An.purple),cn(An.orange)))]}function yo(bn,tr){return tr||(tr="thickness"),wt(Ye.bn,"LineH",{width:16,height:16,strokeWidth:bn,margin:1,background:"transparent",mouseEnter:(Sr,Xn)=>Xn.background="dodgerblue",mouseLeave:(Sr,Xn)=>Xn.background="transparent",click:an(tr,bn),contextClick:an(tr,bn)})}function mr(bn,tr){return tr||(tr="dash"),wt(Ye.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:bn,margin:1,background:"transparent",mouseEnter:(Sr,Xn)=>Xn.background="dodgerblue",mouseLeave:(Sr,Xn)=>Xn.background="transparent",click:an(tr,bn),contextClick:an(tr,bn)})}function Wn(){return[wt("ContextMenuButton",wt(Ye.s_,"Horizontal",yo(1),yo(2),yo(3),yo(4))),wt("ContextMenuButton",wt(Ye.s_,"Horizontal",mr(null),mr([2,4]),mr([4,4])))]}function Hr(bn,tr){return tr||(tr="figure"),wt(Ye.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:bn,margin:1,background:"transparent",mouseEnter:(Sr,Xn)=>Xn.fill="dodgerblue",mouseLeave:(Sr,Xn)=>Xn.fill="lightgray",click:an(tr,bn),contextClick:an(tr,bn)})}we.current.nodeTemplate.contextMenu=wt("ContextMenu",wt("ContextMenuButton",wt(Ye.s_,"Horizontal",Hr("Rectangle"),Hr("RoundedRectangle"),Hr("Ellipse"),Hr("Diamond"))),wt("ContextMenuButton",wt(Ye.s_,"Horizontal",Hr("Parallelogram2"),Hr("ManualOperation"),Hr("Procedure"),Hr("Cylinder1"))),wt("ContextMenuButton",wt(Ye.s_,"Horizontal",Hr("Terminator"),Hr("CreateRequest"),Hr("Document"),Hr("TriangleDown"))),Jn(),vr(),Wn()),we.current.groupTemplate=wt(Ye.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ye.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(bn,tr)=>{var Sr=tr.addMembers(tr.diagram.selection,!0);Sr||tr.diagram.currentTool.doCancel()},avoidable:!1},new Ye.KX("location","loc",Ye.E9.parse).makeTwoWay(Ye.E9.stringify),wt(Ye.s_,"Auto",{name:"BODY"},wt(Ye.bn,{parameter1:10,fill:An.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ye.z6.AllSides,toSpot:Ye.z6.AllSides},new Ye.KX("fill"),new Ye.KX("stroke","color"),new Ye.KX("strokeWidth","thickness"),new Ye.KX("strokeDashArray","dash")),wt(Ye.Vm,{background:"transparent",margin:20})),wt(Ye.al,{alignment:Ye.z6.Top,alignmentFocus:Ye.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ye.KX("text"),new Ye.KX("stroke","color"))),we.current.groupTemplate.selectionAdornmentTemplate=wt(Ye.uz,"Spot",wt(Ye.s_,"Auto",wt(Ye.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),wt(Ye.Vm,{margin:1.5})),Xt({alignment:Ye.z6.TopRight,alignmentFocus:Ye.z6.BottomRight})),we.current.groupTemplate.contextMenu=wt("ContextMenu",Jn(),vr(),Wn()),we.current.linkTemplate=wt(Ye.rU,{layerName:"Foreground",routing:Ye.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ye.KX("fromSpot","fromSpot",Ye.z6.parse),new Ye.KX("toSpot","toSpot",Ye.z6.parse),new Ye.KX("fromShortLength","dir",bn=>bn>=1?10:0),new Ye.KX("toShortLength","dir",bn=>bn>=1?10:0),new Ye.KX("points").makeTwoWay(),wt(Ye.bn,{strokeWidth:2},new Ye.KX("stroke","color"),new Ye.KX("strokeWidth","thickness"),new Ye.KX("strokeDashArray","dash")),wt(Ye.bn,{segmentIndex:0,segmentOffset:new Ye.E9(15,0),segmentOrientation:Ye.rU.OrientAlong,alignmentFocus:Ye.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ye.KX("fill","color"),new Ye.KX("visible","dir",bn=>bn===1)),wt(Ye.bn,{segmentIndex:-1,segmentOffset:new Ye.E9(-10,6),segmentOrientation:Ye.rU.OrientPlus90,alignmentFocus:Ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ye.KX("fill","color"),new Ye.KX("visible","dir",bn=>bn>=1),new Ye.KX("width","thickness",bn=>7+3*bn),new Ye.KX("height","thickness",bn=>7+3*bn),new Ye.KX("segmentOffset","thickness",bn=>new Ye.E9(-15,4+1.5*bn))),wt(Ye.bn,{segmentIndex:0,segmentOffset:new Ye.E9(15,-6),segmentOrientation:Ye.rU.OrientMinus90,alignmentFocus:Ye.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ye.KX("fill","color"),new Ye.KX("visible","dir",bn=>bn===2),new Ye.KX("width","thickness",bn=>7+3*bn),new Ye.KX("height","thickness",bn=>7+3*bn),new Ye.KX("segmentOffset","thickness",bn=>new Ye.E9(-15,4+1.5*bn))),wt(Ye.al,{alignmentFocus:new Ye.z6(0,1,-4,0),editable:!0},new Ye.KX("text").makeTwoWay(),new Ye.KX("stroke","color"))),we.current.linkTemplate.selectionAdornmentTemplate=wt(Ye.uz,wt(Ye.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Kr(2)},new Ye.KX("pathPattern","thickness",Kr)),Xt({alignmentFocus:new Ye.z6(0,0,-6,-4)}));function Kr(bn){return wt(Ye.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(bn+4).toString()+" H3"})}function lo(bn){var tr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return bn===0?tr="M0 0 M16 16 M0 8 L16 8":bn===2&&(tr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),wt(Ye.bn,{geometryString:tr,margin:2,background:"transparent",mouseEnter:(Sr,Xn)=>Xn.background="dodgerblue",mouseLeave:(Sr,Xn)=>Xn.background="transparent",click:an("dir",bn),contextClick:an("dir",bn)})}function _o(bn){var tr=(Sr,Xn)=>{Sr.handled=!0,Sr.diagram.model.commit(Oo=>{var ni=Xn.part.adornedPart;Oo.set(ni.data,bn?"toSpot":"fromSpot",Ye.z6.stringify(Ye.z6.AllSides)),(bn?ni.toNode:ni.fromNode).invalidateConnectedLinks()})};return wt(Ye.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Sr,Xn)=>Xn.background="dodgerblue",mouseLeave:(Sr,Xn)=>Xn.background="transparent",click:tr,contextClick:tr})}function zt(bn,tr){var Sr=0,Xn=Ye.z6.RightSide;bn.equals(Ye.z6.Top)?(Sr=270,Xn=Ye.z6.TopSide):bn.equals(Ye.z6.Left)?(Sr=180,Xn=Ye.z6.LeftSide):bn.equals(Ye.z6.Bottom)&&(Sr=90,Xn=Ye.z6.BottomSide),tr||(Sr-=180);var Oo=(ni,Si)=>{ni.handled=!0,ni.diagram.model.commit(zi=>{var Hi=Si.part.adornedPart;zi.set(Hi.data,tr?"toSpot":"fromSpot",Ye.z6.stringify(Xn)),(tr?Hi.toNode:Hi.fromNode).invalidateConnectedLinks()})};return wt(Ye.bn,{alignment:bn,alignmentFocus:bn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Sr,background:"transparent",mouseEnter:(ni,Si)=>Si.background="dodgerblue",mouseLeave:(ni,Si)=>Si.background="transparent",click:Oo,contextClick:Oo})}we.current.linkTemplate.contextMenu=wt("ContextMenu",vr(),Wn(),wt("ContextMenuButton",wt(Ye.s_,"Horizontal",lo(0),lo(1),lo(2))),wt("ContextMenuButton",wt(Ye.s_,"Horizontal",wt(Ye.s_,"Spot",_o(!1),zt(Ye.z6.Top,!1),zt(Ye.z6.Left,!1),zt(Ye.z6.Right,!1),zt(Ye.z6.Bottom,!1)),wt(Ye.s_,"Spot",{margin:new Ye.Zt(0,0,0,2)},_o(!0),zt(Ye.z6.Top,!0),zt(Ye.z6.Left,!0),zt(Ye.z6.Right,!0),zt(Ye.z6.Bottom,!0)))));const Ao=`{ "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 po=["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 vi(bn){return console.log("shapeName:",bn),po.indexOf(bn)>=0}var Ri=new Ye.YI(nt.current,{maxSelectionCount:1,linkTemplate:wt(Ye.rU,{locationSpot:Ye.z6.Center,selectionAdornmentTemplate:wt(Ye.uz,"Link",{locationSpot:Ye.z6.Center},wt(Ye.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),wt(Ye.bn,{toArrow:"Standard",stroke:null}))},{routing:Ye.rU.AvoidsNodes,curve:Ye.rU.JumpOver,corner:5,toShortLength:4},new Ye.KX("points"),wt(Ye.bn,{isPanelMain:!0,strokeWidth:2}),wt(Ye.bn,{toArrow:"Standard",stroke:null})),model:new Ye.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ye.bn.getFigureGenerators().toArray().map(bn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:bn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return we.current.addDiagramListener("TextEdited",function(bn){var tr;const Sr=bn.subject.part;var Xn=(tr=document.activeElement)==null?void 0:tr.value;typeof Xn=="string"&&Xn.trim()===""&&we.current.model.commit(function(Oo){Oo.set(Sr.data,"text","\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}),Ri.nodeTemplate=wt(Ye.NB,"Auto",{locationSpot:Ye.z6.Center},new Ye.KX("location","location",Ye.E9.parse).makeTwoWay(Ye.E9.stringify),wt(Ye.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 Ye.KX("stroke").makeTwoWay(),new Ye.KX("fill").makeTwoWay(),new Ye.KX("figure")),wt(Ye.al,{margin:new Ye.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ye.$u(16,16),maxSize:new Ye.$u(10,NaN),textAlign:"center",editable:!0},new Ye.KX("key").makeTwoWay())),setTimeout(()=>{we.current.grid=wt(Ye.s_,"Grid",wt(Ye.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),wt(Ye.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),we.current.grid.visible=!0,we.current.grid.gridCellStroke="darkgray",we.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=we.current,we.current}const On=()=>Ct(this,null,function*(){var wt=we.current.makeImage();const An=yield(0,Mn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:wt.src}});be({src:An.url})});return(0,E.useEffect)(()=>(setTimeout(()=>{zn()},500),on(It+1),()=>{we.current=null}),[]),$t.createElement("div",{ref:Vt,className:it.current?`${Rt.maxH60} body-overflow-initial`:"body-overflow-initial"},$t.createElement(gt.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!It,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:$t.createElement(ht.Z,null,$t.createElement(mn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),$t.createElement(mn.Z,{onClick:()=>{var wt,An,Dn=we.current.selection.first();if(it.current=!it.current,document.activeElement&&Dn){let Xt=(An=(wt=document.activeElement)==null?void 0:wt.value)==null?void 0:An.trim();typeof Xt=="string"&&we.current.model.commit(function(an){an.set(Dn.data,"text",Xt||"\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}on(It+1)}},$t.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ae},$t.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Rt.flowChartWrp},$t.createElement("div",{style:{display:"flex",height:"100%"}},$t.createElement("div",{style:{width:"300px",height:"100%"}},$t.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),$t.createElement("div",{style:{height:"calc(100% - 50px)"},className:Rt.myPaletteDiv,ref:nt})),$t.createElement("div",{style:{flex:1,position:"relative"}},$t.createElement("div",{ref:Ae,style:{height:"80vh"}}))),$t.createElement("div",{className:"tr"},$t.createElement(Ie.ZP,{size:"large",onClick:On,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var rt=Be,tt=te(98813),ct=te(55514);const qe=tt.ZP.Group,Ge={margin:"0 8px"};var ut=({callback:ae,onCancel:be})=>{function we(Ae){ae(Ae)}return E.createElement(Le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:we},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:Ge},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:Ge},"\u884C\u6570"),E.createElement(Le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(ct.Z,null)),E.createElement("span",{style:Ge},"\u5217\u6570"),E.createElement(Le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(ct.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:Ge},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(Le.default.Item,{name:"align"},E.createElement(qe,null,E.createElement(tt.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(tt.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(tt.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(tt.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Ie.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},Pt=te(47897),Ft=te(61016),_n=te.n(Ft),wn=(0,E.forwardRef)(({use3d:ae,width:be,height:we,callback:Ae,showSaveButton:nt},it)=>{const Vt=(0,E.useRef)(),It=(0,E.useRef)(),[on,zn]=(0,E.useState)(!1),On=(0,E.useRef)({id:Vt,appName:"graphing",width:be||1e3,height:we||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{It.current=new(_n())(On.current,!0),window.onload=function(){It.current.inject("applet_container")}},[]);const wt=()=>{var An=window.ggbApplet.getPNGBase64(1,!0,72);return Ae&&Ae(An),An};return(0,E.useEffect)(()=>{On.current.appName=on?"3D":"graphing",It.current.inject("applet_container")},[on]),(0,E.useEffect)(()=>{zn(ae)},[ae]),(0,E.useImperativeHandle)(it,()=>({getImgData:wt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Vt}),E.createElement(ht.Z,{align:"middle"},E.createElement(mn.Z,{flex:1},E.createElement(Pt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:on,onChange:An=>zn(An)})),E.createElement(mn.Z,null,E.createElement(Ie.ZP,{size:"large",onClick:wt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ln=te(36527),en=te(25934),Sn=te(2453);const tn="link",Ke="upload-image",At="add-flowchart",Nt="draw-image",gn="add-flowchart",xn="code-block",Nn="add-table",Pn="------------",ur={default:Pn,left:`:${Pn}`,center:`:${Pn}:`,right:`${Pn}:`};var Hn=te(99914),Nr=(ae,be,we)=>new Promise((Ae,nt)=>{var it=on=>{try{It(we.next(on))}catch(zn){nt(zn)}},Vt=on=>{try{It(we.throw(on))}catch(zn){nt(zn)}},It=on=>on.done?Ae(on.value):Promise.resolve(on.value).then(it,Vt);It((we=we.apply(ae,be)).next())});function no(){}let Fr=0;const Tn=1e4,Yn="\u2581",En="@\u2581\u2581@",fr="@\u2581@",$n=`
|
|
|
**\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`,Un=["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 Zo(ae){return/^\d+$/.test(ae)?`${ae}px`:ae}const Wr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ai={[Wr+"-B"]:"bold",[Wr+"-I"]:"italic"},ln={[tn]:"\u6DFB\u52A0\u94FE\u63A5",[xn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ke]:"\u6DFB\u52A0\u56FE\u7247",[Nt]:"\u6DFB\u52A0\u753B\u56FE",[At]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Nn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var oe=({defaultValue:ae="",onChange:be,width:we="100%",height:Ae=400,miniToolbar:nt=!1,isFocus:it=!1,watch:Vt,insertTemp:It,mode:on="markdown",id:zn="markdown-editor-id",showResizeBar:On=!1,noStorage:wt=!1,showNullButton:An=!1,showNullProgramButton:Dn=!1,hidetoolBar:Xt=!1,fullScreen:an=!1,onBlur:cn,onCMBeforeChange:Jn,onFullScreen:vr,className:yo="",disablePaste:mr=!1,disabled:Wn=!1,disabledFill:Hr=!1,placeholder:Kr="",values:lo="",extraUse:_o})=>{const[zt,Ao]=(0,E.useState)(null),[po,vi]=(0,E.useState)(ae),[Ri,bn]=(0,E.useState)(Vt),[tr,Sr]=(0,E.useState)(an),[Xn,Oo]=(0,E.useState)(""),[ni,Si]=(0,E.useState)(0),[zi,Hi]=(0,E.useState)(Ae),[gs,ea]=(0,E.useState)(!1),$a=(0,E.useRef)((0,en.Z)()),fs=(0,E.useRef)(!1),es=(0,E.useRef)(),[Ra,Wa]=(0,E.useState)(0),[Ui,Ka]=(0,E.useState)(0),Ha=(0,E.useRef)(),ua=(0,E.useRef)(),bo=(0,E.useRef)(),ya=(0,E.useRef)(),ts=()=>Nr(void 0,null,function*(){var sr;const Qn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:$a.current}});(sr=Qn==null?void 0:Qn.attachments)!=null&&sr.length&&(console.log("cm:",zt,Ha),Qn.attachments.map(ir=>{ir.content_type.indexOf("image")>-1?zt.replaceSelection(``):ir.content_type.indexOf("video")>-1?zt.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ir.content_type.indexOf("pdf")>-1?zt.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ir.id}?type=${ir.content_type}&disposition=inline" target="_blank">${ir.name}</a>`):zt.replaceSelection(`[${ir.name}](${ENV.API_SERVER}/api/attachments/${ir.id}?type=${ir.content_type})`)}))});(0,E.useEffect)(()=>{const sr=window.scrollY||window.pageYOffset;vi(lo),zt==null||zt.setValue(lo),window.scrollTo(0,sr)},[lo]),(0,E.useEffect)(()=>{vr==null||vr(tr)},[tr]),(0,E.useEffect)(()=>{if(Ha.current){let sr=function(ir,hr){var No;if(mr){hr.preventDefault();return}const yi=hr.clipboardData;if(yi){const Ue=yi.types.toString(),$e=yi.items;if(Ue==="Files"||yi.types.indexOf("Files")>-1){if(hr.preventDefault(),on=="stex")return;try{let dt=$e[1];((No=$e[0])==null?void 0:No.kind)==="file"&&(dt=$e[0]);const Mt=dt.getAsFile(),dn=Mt.name.split(".").pop();(0,St.I)(Mt,nr=>{var Pr,Qr,Xr;nr.id?((Pr=Mt==null?void 0:Mt.type)==null?void 0:Pr.indexOf("image"))>-1?Qn.replaceSelection(`<img width="100%" src="/api/attachments/${nr.id}?type=${nr.content_type})" alt="" />`):((Qr=Mt==null?void 0:Mt.type)==null?void 0:Qr.indexOf("video"))>-1?Qn.replaceSelection(`<video width="100%" controls src="/api/attachments/${nr.id}"></video>`):((Xr=Mt==null?void 0:Mt.type)==null?void 0:Xr.indexOf("pdf"))>-1?Qn.replaceSelection(`<a href="/api/attachments/${nr.id}?type=${Mt.type}&disposition=inline" target="_blank">${Mt.name}</a>`):Un.includes(dn)?Qn.replaceSelection(`<a href="/api/attachments/${nr.id}?type=office&disposition=inline" target="_blank">${Mt.name}</a>`):Qn.replaceSelection(`[${Mt.name}](/api/attachments/${nr.id}?type=${nr.content_type})`):(nr==null?void 0:nr.status)===401&&(Sn.ZP.warning((nr==null?void 0:nr.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(dt){Sn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Qn=Ee().fromTextArea(Ha.current,{mode:on,lineNumbers:!nt,lineWrapping:!0,value:ae,autoCloseTags:!Dn,autoCloseBrackets:!0});return Qn.on("keyup",function(ir,hr){hr.keyCode===8&&(ir.getValue()==""?Qn.setOption("placeholder",Kr):Qn.setOption("placeholder",null))}),Qn.on("keydown",function(ir,hr){if(hr.keyCode===8){var No=$i(ir);No&&hr.preventDefault()}}),it&&Qn.focus(),Qn.on("paste",sr),Qn.on("dragleave",function(ir,hr){ua.current.classList.remove("mouse-hover-md")}),Wn&&Qn.on("beforeChange",function(ir,hr){(hr.origin==="paste"||hr.origin==="+input")&&hr.cancel()}),Ao(Qn),()=>{Qn.off("paste",sr)}}},[]);const ta=(0,E.useCallback)(()=>{if(ua.current)try{}catch(sr){console.log(sr,"---- to set md editor body height")}},[zi,ua,tr]);(0,E.useEffect)(()=>{function sr(){let Qn=new pe.Z(ir=>{for(let hr of ir)(hr.target.offsetHeight>0||hr.target.offsetWidth>0)&&(ta(),zt.setSize("100%","100%"),zt.refresh())});return Qn.observe(Ha.current.parentElement),Qn}if(zt){const Qn=sr();return()=>{var ir,hr;(ir=Ha.current)!=null&&ir.parentElement&&Qn.unobserve((hr=Ha.current)==null?void 0:hr.parentElement)}}},[zt,ta]),(0,E.useEffect)(()=>{if(zt){let sr=[];for(const[Qn,ir]of Object.entries(ai)){let hr={[Qn]:()=>{da(ir)}};sr.push(hr),zt.addKeyMap(hr)}return es.current=setInterval(()=>{fs.current&&ts()},4e3),()=>{clearInterval(es.current);for(let Qn of sr)zt.removeKeyMap(Qn)}}},[zt]),(0,E.useEffect)(()=>{an!==tr&&Sr(an)},[an]),(0,Hn.Z)(()=>{if(!wt&&ni>0){let sr=new Date().getTime(),Qn=window.sessionStorage.getItem(zn);sr>=ni+Tn&&(!Qn||Qn!==po)&&(window.sessionStorage.setItem(zn,po),ea(!0))}},Tn),(0,E.useEffect)(()=>{bn(Vt)},[zt,Vt]),(0,E.useEffect)(()=>{zt&&it&&zt.focus()},[zt,it]),(0,E.useEffect)(()=>{if(Ri&&zt){let sr=function(ir){let hr=ir.target;if(ya.current){let No=hr.scrollTop/hr.scrollHeight;ya.current.scrollTop=ya.current.scrollHeight*No}};const Qn=zt.getScrollerElement();return Qn.addEventListener("scroll",sr),()=>{Qn.removeEventListener("scroll",sr)}}},[zt,Ri]),(0,E.useEffect)(()=>{if(zt&&Jn){let sr=function(Qn,ir){Jn(Qn,ir)};return zt.on("beforeChange",sr),()=>{zt.off("beforeChange",sr)}}},[zt,Jn]),(0,E.useEffect)(()=>{if(zt&&cn){let sr=function(){cn(zt.getValue())};return zt.on("blur",sr),()=>{zt.off("blur",sr)}}},[zt,cn]);function $i(sr,Qn){var ir=sr.getDoc(),hr=ir.getCursor(),No=ir.getLine(hr.line),yi=No.charAt(hr.ch-1),Ue=No.lastIndexOf("@\u2581@",hr.ch),$e=No.lastIndexOf("@\u2581\u2581@",hr.ch),dt=Ue>$e?Ue:$e,Mt=Ue>$e?3:4;if(En.indexOf(yi)===-1)return null;if(console.log("change1:",Qn,sr,No,hr,dt,Ue,$e,yi),dt>=0&&hr.ch-dt<5){var dn=dt+Mt;return ir.replaceRange("",{line:hr.line,ch:dt},{line:hr.line,ch:dn}),{line:hr.line,ch:dn}}return null}(0,E.useEffect)(()=>{if(zt){let sr=function(Qn,ir){const hr=Qn.getValue();vi(hr),Si(new Date().getTime()),Qn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(Dn?be(hr,Us(hr)):be(hr))};return zt.on("change",sr),()=>{zt.off("change",sr)}}},[zt,be]),(0,E.useEffect)(()=>{if(zt)if(ae==null)zt.setValue(""),vi("");else{const sr=window.scrollY||window.pageYOffset;ae!==zt.getValue()&&(zt.setValue(ae),vi(ae),zt.setCursor(Wn?1:zt.lineCount(),0),window.scrollTo(0,sr))}},[zt,ae]);const da=(0,E.useCallback)(sr=>{const Qn=zt.getCursor(),ir=zt.getSelection();let hr=ir.split(`
|
|
|
`);switch(sr){case"bold":return zt.replaceSelection("**"+ir+"**"),ir===""&&zt.setCursor(Qn.line,Qn.ch+2),zt.focus();case"italic":return zt.replaceSelection("*"+ir+"*"),ir===""&&zt.setCursor(Qn.line,Qn.ch+1),zt.focus();case"code":return zt.replaceSelection("`"+ir+"`"),ir===""&&zt.setCursor(Qn.line,Qn.ch+1),zt.focus();case"inline-latex":return Oo("inline-latex"),zt.focus();case"latex":return zt.replaceSelection("```latex\n"+ir+"\n```"),zt.setCursor(Qn.line+1,ir.length+1),zt.focus();case"line-break":return zt.replaceSelection(`<br/>
|
|
|
`),zt.focus();case"list-ul":return ir===""?zt.replaceSelection("- "+ir):zt.replaceSelection(hr.map(No=>No===""?"":`- ${No}`).join(`
|
|
|
`)),zt.focus();case"list-ol":return ir===""?zt.replaceSelection("1. "+ir):zt.replaceSelection(hr.map((No,yi)=>No===""?"":`${yi+1}. ${No}`).join(`
|
|
|
`)),zt.focus();case"add-null-ch":return ir===""&&zt.setCursor(Qn.line,Qn.ch),zt.replaceSelection(Yn),zt.focus();case"add-signal":return ir===""&&zt.setCursor(Qn.line,Qn.ch),zt.replaceSelection(fr),zt.focus();case"add-multiple":return ir===""&&zt.setCursor(Qn.line,Qn.ch),zt.replaceSelection(En),zt.focus();case"inster-template-1":return ir===""&&zt.setCursor(Qn.line,Qn.ch),zt.replaceSelection($n),zt.focus();case"eraser":return zt.setValue(""),zt.focus();case"trigger-watch":return bn(!Ri),zt.focus();case"trigger-full-screen":return Sr(!tr),zt.focus();case tn:Oo(tn);return;case xn:Oo(xn);return;case Ke:Oo(Ke);return;case Nt:Oo(Nt);return;case"maths-latex":Oo("maths-latex");return;case At:Oo(At);return;case Nn:Oo(Nn);return;default:throw new Error}},[zt,Ri,tr]),Ua=(0,E.useCallback)((sr,Qn)=>{var ir,hr,No,yi,Ue,$e;switch(Oo(""),Xn){case tn:const{title:Pr,link:Qr}=sr;return zt.replaceSelection(`[${Pr}](${Qr})`),zt.focus();case xn:const{language:Xr,content:Vo}=sr;return zt.replaceSelection(["```"+Xr,Vo,"```"].join(`
|
|
|
`)),zt.focus();case"maths-latex":for(var dt=atob(sr),Mt=new Uint8Array(dt.length),dn=0;dn<dt.length;dn++)Mt[dn]=dt.charCodeAt(dn);var nr=new Blob([Mt],{type:"image/png"});(0,St.I)(nr,Eo=>{Eo.id?zt.replaceSelection(``):(Eo==null?void 0:Eo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":zt.replaceSelection("`$$"+sr+"$$`");break;case Ke:case Nt:case gn:const{src:Qo,alt:Ei}=sr,Po=Qn,Ur=(No=(hr=(ir=Po==null?void 0:Po.name)==null?void 0:ir.split("."))==null?void 0:hr.pop)==null?void 0:No.call(hr);return((yi=Po==null?void 0:Po.type)==null?void 0:yi.indexOf("image"))>-1||!(Po!=null&&Po.type)?Po.align||Po.width?zt.replaceSelection(`<p style="text-align:${Po.align||"initial"}"><img width="${Po.width?Po.width+"%":"initial"}" src="${Qo}" alt="${Ei||""}" /></p>`):zt.replaceSelection(`<img width="100%" src="${Qo}" alt="${Ei||""}" />`):((Ue=Po==null?void 0:Po.type)==null?void 0:Ue.indexOf("video"))>-1?zt.replaceSelection(`<video width="100%" controls src="${Qo}"></video>`):(($e=Po==null?void 0:Po.type)==null?void 0:$e.indexOf("pdf"))>-1?zt.replaceSelection(`<a href="${Qo}?type=${Po.type}&disposition=inline" target="_blank">${Po.name}</a>`):Un.includes(Ur)?zt.replaceSelection(`<a href="${Qo}?type=office&disposition=inline" target="_blank">${Po.name}</a>`):zt.replaceSelection(`[${Po.name}](${Qo})`),zt.focus();case Nn:const{row:Jr,col:Jo,align:Bi}=sr;let Wi=`
|
|
|
`;for(let Eo=0;Eo<Jr;Eo++){let Xi=[],ci=[];for(let ri=0;ri<Jo;ri++)Eo===1&&ci.push(ur[Bi]),Xi.push(" ");Eo===1&&(Wi+=`| ${ci.join(" | ")} |
|
|
|
`),Wi+=`| ${Xi.join(Jo===1?"":" | ")} |
|
|
|
`}return zt.replaceSelection(Wi+`
|
|
|
`),zt.focus();default:throw new Error}},[zt,Xn]),Ks=(0,E.useMemo)(()=>{switch(Xn){case tn:return E.createElement(Dt,{callback:Ua,onCancel:Oa});case xn:return E.createElement(Kt.Z,{callback:Ua,onCancel:Oa});case Ke:return E.createElement(St.Z,{callback:Ua,onCancel:Oa});case At:return E.createElement(rt,{callback:Ua,onCancel:Oa});case Nn:return E.createElement(ut,{callback:Ua,onCancel:Oa});case"maths-latex":return E.createElement(wn,{showSaveButton:!0,callback:Ua});case"inline-latex":return E.createElement(Ln.Z,{showSaveButton:!0,callback:Ua});default:return null}},[Xn]);function Oa(){Oo("")}(0,E.useEffect)(()=>{if(bo.current){let sr=function(Ue){No=!0,yi=Ue.pageY},Qn=function(){No=!1},ir=function(Ue){if(No){let $e=Ue.pageY-yi;$e<0&&($e=0),$e>300&&($e=300);let dt=Ae+$e+"px";Hi(dt)}},hr=bo.current,No=!1,yi=0;return hr.addEventListener("mousedown",sr),document.addEventListener("mousemove",ir),document.addEventListener("mouseup",Qn),()=>{hr.removeEventListener("mousedown",sr),document.removeEventListener("mousemove",ir),document.removeEventListener("mouseup",Qn)}}},[zt,bo]),(0,E.useEffect)(()=>{Hi(Ae)},[Ae]);const Es=Zo(we),_s=Zo(zi),Os={width:Es,height:_s},Vs=(0,E.useMemo)(()=>{if(ni){let sr=new Date(ni),Qn=sr.getHours(),ir=sr.getMinutes(),hr=sr.getSeconds();return Qn=Qn<10?"0"+Qn:Qn,ir=ir<10?"0"+ir:ir,hr=hr<10?"0"+hr:hr,`${Qn}:${ir}:${hr}`}return 0},[ni]),Us=sr=>{const Qn=[];if(Dn){let ir=-1;sr=sr.replace(/(@▁▁@|@▁@)/g,function(hr,No,yi){Qn.push({multiLine:hr!==fr})})}return Qn};function ws(){window.sessionStorage.removeItem(zn),ea(!1),Si(0)}function Ds(){ea(!1),Si(0),zt.setValue(window.sessionStorage.getItem(zn))}(0,E.useEffect)(()=>{ln[Xn]&&Xn!==Nt&&Xn!==At&&setTimeout(()=>{const sr=document.getElementsByClassName("markdown-popup-form")[0],Qn=window.innerWidth/2-sr.offsetWidth/2,ir=window.innerHeight/2-sr.offsetHeight/2;Wa(Qn),Ka(ir)},0)},[Xn]);const Gs=sr=>{sr.preventDefault();const Qn=sr.clientX-Ra,ir=sr.clientY-Ui;document.body.onmousemove=hr=>{let No=hr.clientX-Qn,yi=hr.clientY-ir;const Ue=document.getElementsByClassName("markdown-popup-form")[0],$e=window.innerWidth-Ue.offsetWidth,dt=window.innerHeight-Ue.offsetHeight;No=Math.max(0,Math.min(No,$e)),yi=Math.max(0,Math.min(yi,dt)),Ls(hr.clientX,hr.clientY,Qn,ir)&&(Wa(No),Ka(yi))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ls=(sr,Qn,ir,hr)=>{const No=document.body.clientHeight,yi=document.body.clientWidth;return sr<20&&ir>sr||sr>yi-20&&ir<sr||Qn<20&&hr>Qn||Qn>No-20&&hr<Qn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:ua},E.createElement("div",{className:`markdown-editor-container ${yo} ${Ri?"on-preview":""} ${nt?"mini":""} ${tr?"full-screen":""}`,style:Os},E.createElement(Pe,{insertTemp:It,watch:Ri,fullScreen:tr,showNullButton:An,showNullProgramButton:Dn,onActionCallback:da,hidetoolBar:Xt,extraUse:_o}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:Ha,placeholder:Kr})),Ri?E.createElement("div",{ref:ya,className:"preview-container"},on==="stex"&&E.createElement(he,{value:po}),on!=="stex"&&E.createElement(le.Z,{disabledFill:Hr,showProgramFill:Dn,value:po})):null))),On?E.createElement("a",{ref:bo,className:"editor-resize"}):null,Xn===Nt&&E.createElement(Zt,{callback:Ua,onCancel:Oa}),Xn===At&&E.createElement(rt,{callback:Ua,onCancel:Oa}),E.createElement(Re.Z,null,ln[Xn]&&Xn!==Nt&&Xn!==At?E.createElement(gt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ra,top:Ui},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:Gs},ln[Xn]),open:!0,onCancel:Oa,footer:null,destroyOnClose:!0,width:Xn===At?"1200px":null,height:Xn===At?"80vh":null,className:"markdown-popup-form"},Ks):null))}},70859:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return Se},I:function(){return Re}});var E=te(91773),_e=te(2453),Ee=te(28802),pe=te(78957),ve=te(55514),fe=te(98813),me=te(85804),de=te(15476),ce=te(67294),ue=te(52262),le=te(67294),he=Object.defineProperty,ie=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(Le,Fe,Ie)=>Fe in Le?he(Le,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Le[Fe]=Ie,z=(Le,Fe)=>{for(var Ie in Fe||(Fe={}))y.call(Fe,Ie)&&b(Le,Ie,Fe[Ie]);if(a)for(var Ie of a(Fe))x.call(Fe,Ie)&&b(Le,Ie,Fe[Ie]);return Le},ee=(Le,Fe)=>ie(Le,ne(Fe));const{useForm:re}=E.default,se={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:Le,onCancel:Fe})=>{const[Ie]=re();let vt=(0,ce.useRef)();function at(Oe){vt.current.width=Ie.getFieldValue("width"),vt.current.align=Ie.getFieldValue("align"),Le(Oe,vt.current)}function et(Oe,ke){if(Oe.status===-1){_e.ZP.error(Oe.message);return}Ie.setFieldsValue({src:`/api/attachments/${Oe.id}`,type:ke.type})}function De(Oe){let ke=Oe.target.files[0];vt.current=ke,Re(ke,et)}return le.createElement(E.default,ee(z({form:Ie},ge),{className:"upload-image-panel",onFinish:at,style:{width:470,overflow:"hidden"}}),le.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},le.createElement("div",{className:"flex-container"},le.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},le.createElement(Ee.default,{style:se})),le.createElement(Pe,{onFileChange:De}))),le.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},le.createElement(Ee.default,{style:{width:264}})),le.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},le.createElement(pe.Z,null,le.createElement(E.default.Item,{name:"width",style:{margin:0}},le.createElement(ve.Z,{style:{width:264}})),le.createElement("span",{className:"ml8"},"%"))),le.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},le.createElement(fe.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"}]})),le.createElement("aside",null,le.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},le.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(me.ZP,{type:"default",onClick:Fe},"\u53D6\u6D88"))))};function Pe({onFileChange:Le}){return le.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",le.createElement("input",{type:"file",onChange:Le}))}function Re(Le,Fe){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ue.bg)())throw _e.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ie=new FormData;Ie.append("editormd-image-file",Le),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var vt=new window.XMLHttpRequest;vt.withCredentials=!0,vt.addEventListener("load",function(at){Fe(JSON.parse(at.target.responseText),Le)},!1),vt.addEventListener("error",function(at){console.error(at)},!1),vt.open("POST",`${de.KI}/api/attachments.json`),vt.send(Ie)}},76621:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return Ee}});var E=te(67294),_e=te(73935);class Ee extends E.Component{constructor(ve){super(ve);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,_e.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(ft,Je,te){"use strict";var E=te(12867),_e=te(88044),Ee=te(47897),pe=te(67294);const ve=_e.default.Option;Je.Z=({isTheoretical:fe,onFontSizeChange:me,cmFontSize:de,cmCodeMode:ce,autoFormat:ue,onCodeModeChange:le,onTabToSpace:he,onAutoFormat:ie,formatDocument:ne,className:a="",tabToSpace:y,children:x,code_editor:b,challenge:z})=>{const ee={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return pe.createElement("div",{className:`tpi-code-setting ${a}`},pe.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),pe.createElement(_e.default,{bordered:!1,size:"small",value:ce,onChange:le},pe.createElement(ve,{value:"vs"},"\u767D\u8272\u80CC\u666F"),pe.createElement(ve,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),pe.createElement(_e.default,{bordered:!1,size:"small",value:de,onChange:me},pe.createElement(ve,{value:12},"12px"),pe.createElement(ve,{value:14},"14px"),pe.createElement(ve,{value:16},"16px"),pe.createElement(ve,{value:18},"18px"),pe.createElement(ve,{value:20},"20px"),pe.createElement(ve,{value:22},"22px"))),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"Tab\u8F6C\u6362"),pe.createElement(Ee.Z,{checked:y,onChange:he})),pe.createElement("div",{className:"file-item",onClick:ne},pe.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),pe.createElement("span",null,"Ctrl + S")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),pe.createElement("span",null,"F1 / Alt + F1")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),pe.createElement("span",null,"Ctrl + ]/[")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),pe.createElement("span",null,"Ctrl + Shift + \\")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),pe.createElement("span",null,"Home")),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),pe.createElement("span",null,"End"))),x),!fe&&pe.createElement(pe.Fragment,null,pe.createElement("h3",null,"\u5FEB\u6377\u952E"),pe.createElement("section",null,pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),pe.createElement("span",null,ee[z==null?void 0:z.difficulty])),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),pe.createElement("span",null,b==null?void 0:b.name)),pe.createElement("div",{className:"file-item"},pe.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),pe.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},99914:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return _e}});var E=te(67294);function _e(Ee,pe){const ve=(0,E.useRef)();(0,E.useEffect)(()=>{ve.current=Ee}),(0,E.useEffect)(()=>{function fe(){ve.current()}if(pe!==null){let me=setInterval(fe,pe);return()=>clearInterval(me)}},[pe])}},72971:function(ft,Je,te){"use strict";te.d(Je,{Im:function(){return Le},ZP:function(){return De},gZ:function(){return at}});var E=te(67294),_e=te(28802),Ee=te(85804),pe=te(42922),ve=te(53978),fe=te(94189),me=te(19575),de=te(7621),ce=te(85725),ue=te(28706),le=te(38658),he=te(12320),ie=te(94184),ne=te.n(ie),a=te(67294),y=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,se=(Oe,ke,lt)=>ke in Oe?y(Oe,ke,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Oe[ke]=lt,ge=(Oe,ke)=>{for(var lt in ke||(ke={}))ee.call(ke,lt)&&se(Oe,lt,ke[lt]);if(z)for(var lt of z(ke))re.call(ke,lt)&&se(Oe,lt,ke[lt]);return Oe},Se=(Oe,ke)=>x(Oe,b(ke));const{TextArea:Pe}=_e.default,Re={visible:!1,tabIndex:"0"},Le={[fe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[fe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[fe.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Fe=(Oe=>(Oe[Oe.SET_VISIBLE=0]="SET_VISIBLE",Oe[Oe.SET_TABINDEX=1]="SET_TABINDEX",Oe))(Fe||{});function Ie(Oe,ke){switch(ke.type){case 0:return Se(ge({},Oe),{visible:ke.payload});case 1:return Se(ge({},Oe),{tabIndex:ke.payload});default:throw new Error}}function vt({value:Oe,className:ke}){const[lt,Xe]=(0,E.useState)(!1),xt=(0,E.useRef)(),Ot=(0,E.useRef)();return(0,E.useEffect)(()=>{lt&&(Ot.current.reset(),Ot.current.write((0,ue.pp)(Oe||"")))},[Oe,lt]),(0,E.useEffect)(()=>{var Dt,Kt,St,gt;if(xt.current){Ot.current=new he.Terminal({fontSize:14,disableStdin:!0}),Ot.current.open(xt.current);const ht=xt.current.offsetWidth-14,Qt=((gt=(St=(Kt=(Dt=Ot.current)==null?void 0:Dt._core)==null?void 0:Kt._renderService)==null?void 0:St.dimensions)==null?void 0:gt.actualCellWidth)||9.5,yt=Math.ceil(ht/Qt);Ot.current.resize(yt,8),Xe(!0)}},[]),a.createElement("div",{ref:xt,className:ne()("XtermText-valueRef",ke)})}function at(Oe){const{status:ke,error_msg:lt,output:Xe,input:xt,expected_output:Ot,is_file:Dt,input_file_url:Kt,output_file_url:St,expected_output_file_url:gt}=Oe;let ht=null;const Qt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(ke){case fe.h.NOMATCH:ht=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!Dt&&a.createElement(vt,{className:"mb10",value:xt}),Dt&&a.createElement("div",{style:Qt},a.createElement("a",{onClick:()=>(0,ue.LR)(Kt,xt)},xt)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!Dt&&a.createElement(vt,{className:"mb10",value:Xe&&me.Base64.decode(Xe)||""}),Dt&&a.createElement("div",{style:Qt},a.createElement("a",{onClick:()=>(0,ue.LR)(St,Xe)},Xe)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!Dt&&a.createElement(vt,{className:"mb10",value:Ot&&me.Base64.decode(Ot)||""}),Dt&&a.createElement("div",{style:Qt},a.createElement("a",{onClick:()=>(0,ue.LR)(gt,Ot)},Ot)));break;case fe.h.EXECUTEFAILURE:ht=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Dt&&a.createElement(ce.Z,{value:xt,style:Qt}),Dt&&a.createElement("div",{style:Qt},a.createElement("a",{onClick:()=>(0,ue.LR)(Kt,xt)},xt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},me.Base64.decode(lt)));break;case fe.h.COMPILEFAILURE:ht=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Dt&&a.createElement(ce.Z,{value:xt,style:Qt}),Dt&&a.createElement("div",{style:Qt},a.createElement("a",{onClick:()=>(0,ue.LR)(Kt,xt)},xt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},me.Base64.decode(lt)));break;case fe.h.PODFAILURE:ht=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:ht=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",ht," ")}function et(Oe){const{status:ke,error_msg:lt,execute_time:Xe,output:xt,input:Ot,expected_output:Dt,is_file:Kt,input_file_url:St,output_file_url:gt,expected_output_file_url:ht}=Oe;let Qt=null;switch(ke){case fe.h.OK:Qt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Xe,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,me.Base64.decode(xt)));break;case fe.h.NOMATCH:Qt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,Ot)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",xt&&me.Base64.decode(xt)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",Dt&&me.Base64.decode(Dt)));break;case fe.h.EXECUTEFAILURE:Qt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Ot)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},me.Base64.decode(lt)));break;case fe.h.COMPILEFAILURE:Qt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Ot)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},me.Base64.decode(lt)));break;case fe.h.PODFAILURE:Qt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:Qt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Qt," ")}var De=({id:Oe,is_file:ke,input:lt,debuging:Xe,submitting:xt,executingMessage:Ot,debugResult:Dt,onChangeInput:Kt,onDebugCode:St,onSubmitCode:gt})=>{const[ht,Qt]=(0,E.useReducer)(Ie,Re),{visible:yt,tabIndex:Zt}=ht;(0,E.useEffect)(()=>{Qt({type:0,payload:!1})},[Oe]);function Ye(mn){let Mn=mn.target.id;Qt({type:1,payload:Mn})}function Gt(){Qt({type:0,payload:!yt})}const fn=(0,E.useMemo)(()=>{if(Dt){const{status:mn}=Dt;return a.createElement(a.Fragment,null,et(Dt))}return null},[Dt]);function hn(){Qt({type:0,payload:!0}),Qt({type:1,payload:"1"}),St()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${yt?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(le.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(Pe,{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:ke?"":lt,onChange:Kt}),rightNode:Xe?a.createElement(de.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):Dt?fn:a.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),a.createElement("a",{className:`btn-collapse ${yt?"up":""}`,onClick:Gt},yt?a.createElement(pe.Z,null):a.createElement(ve.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(Ee.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(Ee.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(Ee.ZP,{className:"btn-green",type:"ghost",loading:Xe,onClick:hn},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(Ee.ZP,{type:"primary",className:"custom-ant-disabled",loading:xt,disabled:xt,onClick:()=>{Qt({type:0,payload:!1}),gt()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},11624:function(ft,Je,te){"use strict";te.r(Je),te.d(Je,{default:function(){return Gl}});var E=te(67294),_e=te(53555),Ee=te(32693),pe=te(35973),ve=te(55054),fe=te(2453),me=te(62844),de=te(74330),ce=te(88044),ue=te(33227),le=te(60076),he=te(11320),ie=te(55304),ne=te(18656),a=te(36295),y=te(76621),x=te(40471),b=te(21434),z=te(67294),ee=Object.defineProperty,re=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Re=(Te,He,Ve)=>He in Te?ee(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Le=(Te,He)=>{for(var Ve in He||(He={}))Se.call(He,Ve)&&Re(Te,Ve,He[Ve]);if(ge)for(var Ve of ge(He))Pe.call(He,Ve)&&Re(Te,Ve,He[Ve]);return Te},Fe=(Te,He)=>re(Te,se(He));const Ie={theme:(0,x.G)("cmCodeMode","vs-dark"),fontSize:(0,x.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,x.G)("cmTabToSpace",!0)};var vt=(Te=>(Te[Te.set_font_size=0]="set_font_size",Te[Te.set_theme=1]="set_theme",Te[Te.on_tab_to_space=2]="on_tab_to_space",Te[Te.set_show_editor_setting=3]="set_show_editor_setting",Te))(vt||{});function at(Te,He){switch(He.type){case 3:return Fe(Le({},Te),{showEditorSetting:He.payload});case 1:return Fe(Le({},Te),{theme:He.payload});case 0:return Fe(Le({},Te),{fontSize:He.payload});case 2:return Fe(Le({},Te),{tabToSpace:He.payload});default:throw new Error}}var et=({isLoading:Te,value:He,onChange:Ve,language:dr,onUpdateCode:rn,ActionBarRender:nn=vn=>z.createElement(De,{onShowCodeSetting:vn})})=>{const[vn,jt]=(0,E.useReducer)(at,Ie),{theme:sn,fontSize:jn,showEditorSetting:Lo,tabToSpace:Ir}=vn,Do=(0,E.useRef)(),Cr=(0,E.useRef)(),vo={onFontSizeChange:To=>{jt({type:0,payload:To}),(0,x.t)("cmFontSize",To)},tabToSpace:Ir,cmFontSize:jn,className:"oj",cmCodeMode:sn,onTabToSpace:To=>{jt({type:2,payload:To}),(0,x.t)("cmTabToSpace",To)},onCodeModeChange:To=>{jt({type:1,payload:To}),(0,x.t)("cmCodeMode",To)}};function jr(){jt({type:3,payload:!1})}function Li(){jt({type:3,payload:!0})}const eo={value:He,language:dr,theme:sn,height:"calc(100% - 56px)",options:{fontSize:jn,insertSpaces:Ir},onChange:To=>{Ve(To),Cr.current=To,clearTimeout(Do.current),Do.current=setTimeout(()=>{rn(Cr.current)},1e4)},onEditBlur:To=>{Cr.current&&rn(Cr.current)}};return z.createElement(E.Fragment,null,z.createElement("div",{className:"code-panel-container"},nn(Li),!Te&&z.createElement(a.ZP,Le({},eo))),z.createElement(y.Z,null,z.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Lo,onClose:jr},z.createElement(b.Z,Le({},vo)))))};function De({onShowCodeSetting:Te}){return z.createElement("div",{className:"action-bar"},z.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),z.createElement("a",{onClick:Te},z.createElement("i",{className:"iconfont icon-shezhi"})))}var Oe=te(19575),ke=te(77969),lt=te(72971),Xe=te(28802),xt=te(91773),Ot=te(85804);const{TextArea:Dt}=Xe.default,Kt=5e3;var St=({callback:Te,onCancel:He,notes:Ve})=>{function dr(rn){Te(rn)}return E.createElement(xt.default,{className:"note-form-panel",onFinish:dr,initialValues:{notes:Ve}},E.createElement(xt.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Kt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Kt}`}]},E.createElement(Dt,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),E.createElement(xt.default.Item,{style:{textAlign:"right"}},E.createElement(Ot.ZP,{type:"ghost",onClick:He,style:{marginRight:10}}," \u53D6\u6D88 "),E.createElement(Ot.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},gt={"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"},ht={pagination:"pagination___npPu7",info:"info___aRH6C"},Qt=te(80147),yt=te(73802),Zt=te(3407),Ye=te(87462),Gt={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"},fn=Gt,hn=te(17207),mn=function(He,Ve){return E.createElement(hn.Z,(0,Ye.Z)({},He,{ref:Ve,icon:fn}))},Mn=E.forwardRef(mn),Rt=te(94189),$t=te(28706),Ct=te(94699),Be=te.n(Ct);const{Column:rt}=Qt.default;var tt=({submitResult:Te,submitting:He,submitRecords:Ve,page:dr,onPageChange:rn,topicId:nn})=>{const{status:vn,id:jt,input:sn,output:jn,expected_output:Lo,is_file:Ir,input_file_url:Do,output_file_url:Cr,expected_output_file_url:vo,error_msg:jr}=Te||{},{records:Li,records_count:eo}=Ve||{},To=(0,pe.useParams)();function xi(){Ir?(0,$t.vQ)(Oe.Base64.decode(jr)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,$t.vQ)(Oe.Base64.decode(jn)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return E.createElement(de.Z,{spinning:He,tip:"\u8BC4\u6D4B\u4E2D...",indicator:E.createElement(Zt.Z,{style:{fontSize:24},spin:!0})},jt?E.createElement(E.Fragment,null,E.createElement("ul",{className:ht.info},E.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",E.createElement("span",{className:vn===Rt.h.OK?"c-green":"c-red"},lt.Im[vn])),E.createElement("li",{className:ht.error},E.createElement("a",{onClick:xi},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",E.createElement(Mn,null)," ")),E.createElement("li",null,E.createElement(pe.Link,{to:`/problems/${nn}/record-detail/${jt}?backId=${To==null?void 0:To.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),vn!==Rt.h.OK?E.createElement(E.Fragment,null,E.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),E.createElement("pre",null,!Ir&&sn,Ir&&E.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,$t.LR)(Do,sn)},sn)),E.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),E.createElement("pre",null,(vn===4||vn===5)&&Oe.Base64.decode(jr),vn!=4&&vn!=5&&(Ir?E.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,$t.LR)(Cr,jn)},jn):Oe.Base64.decode(jn))),E.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),E.createElement("pre",null,!Ir&&Oe.Base64.decode(Lo),Ir&&E.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,$t.LR)(vo,Lo)},Lo))):null):null,(Li==null?void 0:Li.length)>0?E.createElement(Qt.default,{dataSource:Li,rowKey:"id",pagination:!1},E.createElement(rt,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(fo,di)=>E.createElement("span",null," ",Be()(fo).format("YYYY-MM-DD HH:mm:ss"))}),E.createElement(rt,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(fo,di)=>{var qn;return E.createElement(pe.Link,{className:fo===0?"c-green":"c-red",to:`/problems/${nn}/record-detail/${di.id}?backId=${To==null?void 0:To.save_identifier}`},(qn=lt.Im[fo])==null?void 0:qn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),E.createElement(rt,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),E.createElement(rt,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),E.createElement(rt,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,eo>15?E.createElement(yt.Z,{className:ht.pagination,current:dr,pageSize:15,total:eo,onChange:rn}):null)},ct=te(26194),qe=te(66309),Ge=te(78957),ut={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Pt=te(85725),Ft=te(67294);const _n={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Rn=({hack:Te,onTriggerPraise:He,toDiscuss:Ve})=>{const{language:dr,difficulty:rn,time_limit:nn,username:vn,user_path:jt,user_praise:sn,comments_count:jn,praises_count:Lo,description:Ir,pass_count:Do,submit_count:Cr}=Te,vo=(0,pe.useLocation)();console.log(Te.language,"language");const jr=_n[rn];return Ft.createElement(Ft.Fragment,null,Ft.createElement("ul",{className:ut.info},Ft.createElement("li",null,"\u96BE\u5EA6\uFF1A",Ft.createElement(qe.default,{color:jr==null?void 0:jr.color},jr==null?void 0:jr.name)),Ft.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Ft.createElement("b",null,nn,"\u79D2"))),Ft.createElement(Pt.Z,{value:Ir,className:ut.desc}),Ft.createElement("ul",{className:ut["commit-info"]},Ft.createElement("li",null,Ft.createElement(Ge.Z,{size:4},Ft.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Ft.createElement("b",null,Do))),Ft.createElement("li",null,Ft.createElement(Ge.Z,{size:4},Ft.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Ft.createElement("b",null,Cr))," "),Ft.createElement("li",{style:{flex:"1 0 0"}}),Ft.createElement("li",null,Ft.createElement(Ge.Z,{size:4},Ft.createElement("i",{className:"iconfont icon-huifu1",onClick:Ve})," ",Ft.createElement("b",null,jn))," ")))},wn=te(33054),Ln=Object.defineProperty,en=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Ke=(Te,He,Ve)=>He in Te?Ln(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,At=(Te,He)=>{for(var Ve in He||(He={}))Sn.call(He,Ve)&&Ke(Te,Ve,He[Ve]);if(en)for(var Ve of en(He))tn.call(He,Ve)&&Ke(Te,Ve,He[Ve]);return Te};const Nt=Te=>React.createElement("svg",At({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u5C55\u5F00\u9898\u76EE"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"show_svg__a"},React.createElement("stop",{stopColor:"#EEF7FF",offset:"0%"}),React.createElement("stop",{stopColor:"#C1E2FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#show_svg__a)",width:40,height:40,rx:8}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M16.057 20.784H8.238A1.22 1.22 0 0 0 7 21.974v6.811a1.22 1.22 0 0 0 1.238 1.19h7.819a1.213 1.213 0 0 0 1.238-1.19v-6.811a1.213 1.213 0 0 0-.376-.847 1.203 1.203 0 0 0-.862-.332v-.01Zm-1.25 6.769H9.423V23.12h5.384v4.433Z",fill:"#4CACFF"}),React.createElement("path",{d:"M16.057 10.005a1.22 1.22 0 0 1 1.238 1.189v6.812a1.213 1.213 0 0 1-.376.846c-.232.222-.542.34-.862.332H8.238A1.213 1.213 0 0 1 7 18.005v-6.811a1.22 1.22 0 0 1 1.238-1.19Zm-1.239 2.41H9.434v4.401h5.384v-4.4Z",fill:"#94CDFF"}),React.createElement("path",{d:"M20.418 12.632h11.189a1.213 1.213 0 0 0 1.238-1.179 1.224 1.224 0 0 0-.371-.857 1.214 1.214 0 0 0-.867-.343H20.418a1.203 1.203 0 0 0-.866.336c-.233.223-.367.53-.372.854.005.323.14.63.372.854.232.223.544.344.866.335ZM31.575 16.027h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 21.595h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 27.163h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557Z",fill:"#1890FF"}))));var gn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",xn=te(33170);function Nn(Te){return(0,xn.U2)("comments.json",Te)}function Pn(Te){return(0,xn.v_)(`/discusses/${Te}/plus.json`,{container_type:"Discuss",type:1})}function ur(Te){return(0,xn.v_)("comments/reply.json",Te)}function Hn(Te){return(0,xn.v_)("comments.json",Te)}function Nr(Te){return(0,xn.v_)(`comments/${Te==null?void 0:Te.id}/hidden.json`,Te)}function no(Te){return(0,xn.IV)(`comments/${Te==null?void 0:Te.id}.json`)}var Fr=te(93989),Tn=te(52262);function Yn({author:Te}){return E.createElement("a",{href:`/users/${Te.login}`,target:"_blank"},E.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${he.Z.IMG_SERVER}/images/${Te.image_url}`,width:"50"}))}function En({data:Te,index:He,parentDiscussIndex:Ve,user:dr,onSetActionType:rn}){const{author:nn,can_delete:vn,content:jt,id:sn,time:jn}=Te;function Lo(){rn({id:sn,index:He,type:"delete-discuss",parentDiscussIndex:Ve,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Ir=dr.admin||vn||nn.user_id===dr.user_id;return E.createElement("div",{className:"discuss-item-container second-discuss "},E.createElement(Yn,{author:nn}),E.createElement("section",null,E.createElement("div",{className:"discuss-info"},E.createElement("a",{href:`/users/${nn.login}`,target:"_blank"},nn.name),E.createElement("span",{className:"grey"},jn),E.createElement("div",{className:"btn-group",style:{marginBottom:0}},Ir?E.createElement("a",{onClick:Lo,title:"\u5220\u9664"},E.createElement("i",{className:"iconfont icon-shanchu"})):null)),E.createElement(Pt.Z,{className:"discuss-content",value:jt})))}var fr=({user:Te,data:He,index:Ve,onPlusDiscuss:dr,onSetActionType:rn,activeDiscussIndex:nn,onReplyDiscuss:vn,onSetActiveDiscussIndex:jt})=>{const{content:sn,children:jn,hidden:Lo,id:Ir,praise_count:Do,time:Cr,user_praise:vo,can_delete:jr,author:Li}=He;console.log(jr&&(!jn||jn.length==0),"children22");function eo(){jt(Ir)}function To(){dr(Ir,!vo,Ve)}function xi(){rn({id:Ir,index:Ve,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function fo(){rn({id:Ir,index:Ve,params:{hidden:Lo?"0":"1"},type:"hidden-discuss",message:Lo?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const di=Te.admin||Te.user_id===Li.user_id;return E.createElement("div",{className:"discuss-item-container",key:Ir},E.createElement(Yn,{author:Li}),E.createElement("section",null,E.createElement("div",{className:"discuss-info"},E.createElement("a",{href:`/users/${Li.login}`,target:"_blank"}," ",Li.name," "),E.createElement("span",{className:"grey"},Cr)),E.createElement(Pt.Z,{className:"discuss-content",value:sn}),jn&&jn.length>0?E.createElement("div",{className:"reply-discuss-container"},jn.map((qn,bi)=>E.createElement(En,{key:qn.id,data:qn,index:bi,user:Te,onSetActionType:rn,parentDiscussIndex:Ve}))):null,E.createElement("div",{className:"btn-group"},(0,Tn.Ny)()?E.createElement("a",{onClick:fo,title:Lo?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},E.createElement("i",{className:Lo?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,jr&&(!jn||jn.length==0)?E.createElement("a",{onClick:xi,title:"\u5220\u9664"},E.createElement("i",{className:"iconfont icon-shanchu"})):null,E.createElement("a",{onClick:eo,title:"\u56DE\u590D"}," ",E.createElement("i",{className:"iconfont icon-huifu1"})," "),E.createElement("a",{onClick:To,className:vo?"c-orange":""},E.createElement("i",{className:vo?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),E.createElement("span",null,Do||""))),E.createElement(Fr.Z,{id:Ir,activeDiscussIndex:nn,onReplyDiscuss:vn})))},$n=te(1797),Un=te(35567),Zo=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())}),ho=({user_praise:Te,praise_count:He,praisePlus:Ve,onCreateDiscuss:dr,discuss_count:rn})=>{const[nn,vn]=(0,E.useState)(!1),[jt,sn]=(0,E.useState)("");function jn(Cr){sn(Cr)}function Lo(){vn(!0)}function Ir(){vn(!1)}function Do(){return Zo(this,null,function*(){dr(jt),sn(""),vn(!1)})}return E.createElement("div",{className:`dis-input-editor-container ${nn?"active":""} `},E.createElement("div",{className:nn?"text-area hide":"text-area"},E.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Lo}),E.createElement("a",{style:{alignItems:"center"}}," ",E.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",rn," "),E.createElement("a",{className:"c-light-black",onClick:Ve,style:{alignItems:"center"},title:Te?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},E.createElement("i",{className:`mr3 ${Te?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),He?E.createElement("span",null,He):"")),nn?E.createElement("div",{className:"input-mask",onClick:Ir}):null,E.createElement("div",{className:nn?"md-container":"md-container hide"},E.createElement(Un.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:jt,height:240,onChange:jn}),E.createElement("div",{className:"tip-container",onClick:Ir},E.createElement("a",{className:"btn-send",onClick:Do}," \u53D1\u9001 "))))},Wr=Object.defineProperty,ai=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,we=(Te,He,Ve)=>He in Te?Wr(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Ae=(Te,He)=>{for(var Ve in He||(He={}))ae.call(He,Ve)&&we(Te,Ve,He[Ve]);if(oe)for(var Ve of oe(He))be.call(He,Ve)&&we(Te,Ve,He[Ve]);return Te},nt=(Te,He)=>ai(Te,ln(He)),it=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())});const Vt={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var It=(Te=>(Te[Te.GET_DISCUSSES=0]="GET_DISCUSSES",Te[Te.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Te[Te.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Te[Te.PLUS_DISCUSS=3]="PLUS_DISCUSS",Te[Te.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Te[Te.SET_PAGE=5]="SET_PAGE",Te[Te.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Te))(It||{});function on(Te,He){switch(He.type){case 6:return nt(Ae({},Te),{loading:!0});case 0:return Ae(Ae({},Te),He.payload);case 1:return Ae(Ae({},Te),He.payload);case 4:return Ae(Ae({},Te),He.payload);case 3:return Ae(Ae({},Te),He.payload);case 5:return Ae(Ae({},Te),He.payload);case 2:return Ae(Ae({},Te),He.payload);default:throw new Error}}var zn=({user:Te,identifier:He,hack:Ve,onTriggerPraise:dr,setDiscussTotal:rn})=>{const[nn,vn]=(0,E.useReducer)(on,Vt),{loading:jt,page:sn,data:jn,count:Lo,actionType:Ir,activeDiscussIndex:Do}=nn;console.log("---",nn);const Cr=(0,E.useCallback)(()=>it(void 0,null,function*(){vn({type:6});const qn=yield Nn({container_type:"Practice",container_identifier:He,limit:10,page:sn}),{comments:bi,disscuss_count:Ho}=qn;vn({type:0,payload:{data:bi,count:Ho,loading:!1}}),rn(Ho)}),[sn,He]);(0,E.useEffect)(()=>{Cr()},[He,sn]);function vo(qn){vn({type:5,payload:{page:qn}})}function jr(qn){vn({type:4,payload:{actionType:qn}})}function Li(qn){vn(Do===qn?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:qn}})}function eo(qn,bi,Ho){return it(this,null,function*(){try{const Yi=yield Pn(qn);jn[Ho].user_praise=bi,jn[Ho].praise_count=Yi.praise_count,vn({type:3,payload:{data:[...jn]}})}catch(Yi){console.log(Yi)}})}function To(){return it(this,null,function*(){const{id:qn,params:bi,type:Ho,index:Yi,parentDiscussIndex:is}=Ir;Ho==="hidden-discuss"&&(console.log(bi,"params"),yield Nr(Ae({id:qn,container_type:"Practice",container_identifier:He},bi)),is?jn[is].children[Yi].hidden=bi.hidden==1:jn[Yi].hidden=bi.hidden==1,vn({type:4,payload:{actionType:null,data:[...jn]}})),Ho==="delete-discuss"&&(yield no({id:qn,container_type:"Practice",container_identifier:He}),vn({type:4,payload:{actionType:null}}),yield Cr())})}function xi(){vn({type:4,payload:{actionType:null}})}function fo(qn,bi){return it(this,null,function*(){try{yield ur({container_type:"Practice",container_identifier:He,comments:{content:bi,parent_id:qn}}),Cr()}catch(Ho){console.log(Ho)}})}function di(qn){return it(this,null,function*(){vn({type:6}),yield Hn({comments:{content:qn},container_type:"Practice",container_identifier:He}),Cr()})}return E.createElement(E.Fragment,null,E.createElement("div",{className:"discuss-panel"},jn.length===0?E.createElement(ct.Z,null):E.createElement(de.Z,{spinning:jt},jn.map((qn,bi)=>E.createElement(fr,{onReplyDiscuss:fo,onPlusDiscuss:eo,onSetActiveDiscussIndex:Li,onSetActionType:jr,data:qn,index:bi,user:Te,activeDiscussIndex:Do}))),Lo>10?E.createElement("div",{className:"pagination-container mt10 mb10"},E.createElement(yt.Z,{showQuickJumper:!0,onChange:vo,current:sn,total:Lo,showTotal:qn=>E.createElement("span",{style:{color:"#656F87"}},"\u5171",E.createElement("span",{className:"c-light-primary"},qn),"\u6761\u6570\u636E")})):null),E.createElement(ho,{user_praise:Ve.user_praise,praise_count:Ve.praises_count,praisePlus:dr,discuss_count:Ve.comments_count,onCreateDiscuss:di}),E.createElement(y.Z,null,E.createElement(me.default,{centered:!0,title:"\u63D0\u793A",open:!!Ir,onOk:To,onCancel:xi},E.createElement("p",null,Ir?Ir.message:"")),E.createElement($n.Z,null)))},On={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"},wt={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"},An=Object.defineProperty,Dn=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,cn=(Te,He,Ve)=>He in Te?An(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Jn=(Te,He)=>{for(var Ve in He||(He={}))Xt.call(He,Ve)&&cn(Te,Ve,He[Ve]);if(Dn)for(var Ve of Dn(He))an.call(He,Ve)&&cn(Te,Ve,He[Ve]);return Te};const vr=Te=>React.createElement("svg",Jn({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u89C2\u770B"),React.createElement("path",{d:"M11 0a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h10ZM4.4 2.4a.4.4 0 0 0-.4.4v4.4a.4.4 0 0 0 .64.32l2.72-2.04a.6.6 0 0 0 0-.96L4.64 2.48a.4.4 0 0 0-.24-.08Z",fill:"#FFF",fillRule:"evenodd"}));var yo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",mr=Object.defineProperty,Wn=Object.getOwnPropertySymbols,Hr=Object.prototype.hasOwnProperty,Kr=Object.prototype.propertyIsEnumerable,lo=(Te,He,Ve)=>He in Te?mr(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,_o=(Te,He)=>{for(var Ve in He||(He={}))Hr.call(He,Ve)&&lo(Te,Ve,He[Ve]);if(Wn)for(var Ve of Wn(He))Kr.call(He,Ve)&&lo(Te,Ve,He[Ve]);return Te};const zt=Te=>React.createElement("svg",_o({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u70B9\u8D5E1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#999"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#CCC"})));var Ao="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",po=Object.defineProperty,vi=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable,tr=(Te,He,Ve)=>He in Te?po(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Sr=(Te,He)=>{for(var Ve in He||(He={}))Ri.call(He,Ve)&&tr(Te,Ve,He[Ve]);if(vi)for(var Ve of vi(He))bn.call(He,Ve)&&tr(Te,Ve,He[Ve]);return Te};const Xn=Te=>React.createElement("svg",Sr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u70B9\u8D5E2"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#0152d9"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#B6D0FC"})));var Oo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",ni=Object.defineProperty,Si=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,gs=(Te,He,Ve)=>He in Te?ni(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,ea=(Te,He)=>{for(var Ve in He||(He={}))zi.call(He,Ve)&&gs(Te,Ve,He[Ve]);if(Si)for(var Ve of Si(He))Hi.call(He,Ve)&&gs(Te,Ve,He[Ve]);return Te};const $a=Te=>React.createElement("svg",ea({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u8BC4\u8BBA1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M4.717.01h8.84c1.571 0 2.357.777 2.357 2.332v5.25c0 1.556-.786 2.334-2.357 2.334h-8.84c-1.572 0-2.357-.778-2.357-2.334v-5.25C2.36.787 3.145.01 4.717.01Z",fill:"#999"}),React.createElement("path",{d:"M2.36 2.342h8.84a2.37 2.37 0 0 1 1.666.684c.442.437.69 1.03.69 1.65v5.25c0 1.288-1.055 2.333-2.357 2.333H7.94l-1.16 1.153-1.167-1.153H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65v-5.25c0-.62.248-1.213.69-1.65a2.37 2.37 0 0 1 1.667-.684Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M2.36 2.926h8.84c1.301 0 2.357 1.044 2.357 2.333v5.25c0 .619-.249 1.212-.69 1.65a2.37 2.37 0 0 1-1.668.683H7.94l-1.16 1.154-1.167-1.154H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65V5.26c0-.619.248-1.212.69-1.65a2.37 2.37 0 0 1 1.667-.683Z",fill:"#CCC"}),React.createElement("path",{d:"M3.538 5.842h6.483c.393 0 .589.195.589.584 0 .389-.196.583-.59.583H3.539c-.393 0-.59-.194-.59-.583 0-.39.197-.584.59-.584ZM3.538 8.76h4.715c.393 0 .59.194.59.582 0 .39-.197.584-.59.584H3.538c-.393 0-.59-.195-.59-.584 0-.388.197-.583.59-.583Z",fill:"#FFF"})));var fs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",es=Object.defineProperty,Ra=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,Ui=Object.prototype.propertyIsEnumerable,Ka=(Te,He,Ve)=>He in Te?es(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Ha=(Te,He)=>{for(var Ve in He||(He={}))Wa.call(He,Ve)&&Ka(Te,Ve,He[Ve]);if(Ra)for(var Ve of Ra(He))Ui.call(He,Ve)&&Ka(Te,Ve,He[Ve]);return Te};const ua=Te=>React.createElement("svg",Ha({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u67E5\u770B1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M7.965 11.961C2.593 11.961 0 6.926 0 5.981 0 5.035 2.623 0 7.965 0s7.965 4.984 7.965 5.98c0 .997-2.593 5.981-7.965 5.981Zm0-2.208c1.296 0 2.494-.72 3.142-1.886a3.902 3.902 0 0 0 0-3.773c-.648-1.167-1.846-1.886-3.142-1.886-2.004 0-3.629 1.69-3.629 3.773s1.625 3.772 3.629 3.772Z",fill:"#CCC"}),React.createElement("path",{d:"M7.965 8.28c-1.222 0-2.213-1.029-2.213-2.3 0-1.27.991-2.3 2.213-2.3s2.212 1.03 2.212 2.3c0 1.271-.99 2.3-2.212 2.3Z",fill:"#999"})));var bo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",ts=({style:Te={},onClick:He,onAssist:Ve,onHide:dr,data:rn,active:nn,showLine:vn})=>E.createElement(E.Fragment,null,E.createElement("div",{className:nn===(rn==null?void 0:rn.id)?`${wt.list} ${wt.active}`:wt.list,style:Te,onClick:()=>He(rn)},(rn==null?void 0:rn.video)&&E.createElement("div",{className:wt.left},E.createElement("img",{src:rn==null?void 0:rn.video_cover}),E.createElement("div",null,E.createElement("img",{src:yo}),E.createElement("span",null,rn==null?void 0:rn.video_duration)),E.createElement("div",{className:wt.mask})),E.createElement("div",{className:wt.right},E.createElement("div",{className:wt.name},E.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(rn==null?void 0:rn.image_url),width:30,height:30}),E.createElement("div",{title:rn==null?void 0:rn.name,className:wt.title},rn==null?void 0:rn.name),(rn==null?void 0:rn.is_authority)&&E.createElement("div",{className:wt.b},"\u5B98\u65B9"),(rn==null?void 0:rn.is_excellent)&&E.createElement("div",{className:wt.a},"\u7CBE\u9009")),E.createElement("div",{className:wt.des},E.createElement(Pt.Z,{showLines:2,showTextOnly:!0,value:(rn==null?void 0:rn.content)||"\u6682\u65E0\u5185\u5BB9"})),E.createElement("div",{className:wt.tag},E.createElement("span",{className:"current",onClick:jt=>{jt.stopPropagation(),Ve(rn)}},E.createElement("img",{src:rn!=null&&rn.user_liker?Oo:Ao}),E.createElement("span",{style:{color:rn!=null&&rn.user_liker?"#0152d9":"#656f87"}},rn==null?void 0:rn.praises_count)),E.createElement("span",null,E.createElement("img",{src:fs}),E.createElement("span",null,rn==null?void 0:rn.discusses_count)),E.createElement("span",null,E.createElement("img",{src:bo}),E.createElement("span",null,rn==null?void 0:rn.viewed_count)),(0,Tn.Ny)()&&E.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:jt=>{jt.stopPropagation(),dr(rn)}},rn!=null&&rn.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),vn&&E.createElement("div",{className:wt.line})),ta={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"},$i=te(83062),da=Object.defineProperty,Ua=Object.getOwnPropertySymbols,Ks=Object.prototype.hasOwnProperty,Oa=Object.prototype.propertyIsEnumerable,Es=(Te,He,Ve)=>He in Te?da(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,_s=(Te,He)=>{for(var Ve in He||(He={}))Ks.call(He,Ve)&&Es(Te,Ve,He[Ve]);if(Ua)for(var Ve of Ua(He))Oa.call(He,Ve)&&Es(Te,Ve,He[Ve]);return Te};const Os=Te=>React.createElement("svg",_s({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u4E0A\u4F20\u89C6\u9891"),React.createElement("path",{d:"M1.6 0C1.175 0 .768.17.468.474A1.63 1.63 0 0 0 0 1.622v3.243h3.237L7.378 0H1.6Zm7.876 0L5.338 4.865h5.9L15.371 0H9.476Zm7.998 0-4.137 4.865h5.896L23.372 0h-5.898Zm8 0-4.138 4.865h6.66V1.622a1.629 1.629 0 0 0-.467-1.148A1.585 1.585 0 0 0 26.397 0h-.924ZM0 6.487v17.837c0 .43.167.844.468 1.148.3.305.707.475 1.132.474h18.61a6.515 6.515 0 0 1 1.652-6.218 6.31 6.31 0 0 1 6.134-1.675V6.487H0Zm11.998 5.675 6.4 4.056-6.4 4.055v-8.11Zm14.399 6.487c-3.092.002-5.597 2.544-5.595 5.678.001 3.134 2.508 5.674 5.6 5.673C29.494 30 32 27.458 32 24.324c0-1.506-.59-2.95-1.641-4.014a5.561 5.561 0 0 0-3.962-1.661Zm0 2.027c.22.003.428.1.574.266.663.6 1.327 1.352 1.99 2.002a.8.8 0 0 1 0 1.14.788.788 0 0 1-1.125 0l-.638-.646v3.724a.814.814 0 0 1-.392.724.79.79 0 0 1-.815 0 .814.814 0 0 1-.392-.724v-3.724l-.637.646a.79.79 0 0 1-.773.215.803.803 0 0 1-.567-.575.816.816 0 0 1 .212-.783c.651-.664 1.333-1.388 1.99-2.002a.778.778 0 0 1 .575-.266l-.002.003Z",fill:"#0152d9",fillRule:"nonzero"}));var Vs="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Us=Object.defineProperty,ws=Object.getOwnPropertySymbols,Ds=Object.prototype.hasOwnProperty,Gs=Object.prototype.propertyIsEnumerable,Ls=(Te,He,Ve)=>He in Te?Us(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,sr=(Te,He)=>{for(var Ve in He||(He={}))Ds.call(He,Ve)&&Ls(Te,Ve,He[Ve]);if(ws)for(var Ve of ws(He))Gs.call(He,Ve)&&Ls(Te,Ve,He[Ve]);return Te};const Qn=Te=>React.createElement("svg",sr({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u4E0A\u4F20\u6210\u529F"),React.createElement("path",{d:"M15 0c8.285 0 15 6.717 15 15 0 8.285-6.715 15-15 15-8.283 0-15-6.715-15-15C0 6.717 6.717 0 15 0Zm10.041 7.5v.01a47.934 47.934 0 0 0-11.232 9.386l-4.372-3.3v-.002L7.5 15.08l7.553 7.42A44.625 44.625 0 0 1 25.5 8.55l-.459-1.05Z",fill:"#44D7B6",fillRule:"nonzero"}));var ir="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",hr=Object.defineProperty,No=Object.getOwnPropertySymbols,yi=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,$e=(Te,He,Ve)=>He in Te?hr(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,dt=(Te,He)=>{for(var Ve in He||(He={}))yi.call(He,Ve)&&$e(Te,Ve,He[Ve]);if(No)for(var Ve of No(He))Ue.call(He,Ve)&&$e(Te,Ve,He[Ve]);return Te};const Mt=Te=>React.createElement("svg",dt({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Te),React.createElement("path",{fill:"#AFBACB",d:"M9.99.02C4.482.02.02 4.482.02 9.99c0 5.506 4.463 9.97 9.97 9.97 5.506 0 9.97-4.464 9.97-9.97 0-5.507-4.464-9.97-9.97-9.97Zm1.636 13.69c-.744 1.19-1.488 2.083-2.827 2.083-.893-.149-1.19-.744-1.042-1.488l1.637-5.506c0-.149 0-.298-.149-.298-.148 0-.446 0-.595.298l-1.042 1.19v-.744c.745-1.19 1.935-2.083 2.828-2.083.744.149 1.19.744 1.042 1.488L9.84 14.305c0 .149 0 .298.148.298.15 0 .447-.15.596-.298l1.041-1.34v.745Zm-.297-7.292c-.596 0-1.19-.446-1.19-1.19 0-.745.446-1.191 1.19-1.191.595 0 1.19.446 1.19 1.19 0 .745-.595 1.191-1.19 1.191Z"}));var dn="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",nr=te(95235),Pr=Object.defineProperty,Qr=Object.defineProperties,Xr=Object.getOwnPropertyDescriptors,Vo=Object.getOwnPropertySymbols,Qo=Object.prototype.hasOwnProperty,Ei=Object.prototype.propertyIsEnumerable,Po=(Te,He,Ve)=>He in Te?Pr(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Ur=(Te,He)=>{for(var Ve in He||(He={}))Qo.call(He,Ve)&&Po(Te,Ve,He[Ve]);if(Vo)for(var Ve of Vo(He))Ei.call(He,Ve)&&Po(Te,Ve,He[Ve]);return Te},Jr=(Te,He)=>Qr(Te,Xr(He)),Jo=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())}),Wi=({onClose:Te,onOk:He,identifier:Ve,active:dr})=>{var rn,nn;const[vn]=xt.default.useForm(),[jt,sn]=(0,E.useState)({}),[jn,Lo]=(0,E.useState)(!1),[Ir,Do]=(0,E.useState)(!1),[Cr,vo]=(0,E.useState)([]),jr=(0,Tn.eY)(),Li=(0,pe.useParams)(),eo=(0,E.useRef)();(0,E.useEffect)(()=>{dr&&To()},[dr]);const To=()=>Jo(void 0,null,function*(){var Rr,Co,qo,Yo,hl,el,tl,al,Bs,sl;const Zr=yield(0,ue.M3)(Ve,{active:dr});if((Zr==null?void 0:Zr.status)===0){const li={name:(Rr=Zr==null?void 0:Zr.data)==null?void 0:Rr.name,content:(Co=Zr==null?void 0:Zr.data)==null?void 0:Co.content};vn.setFieldsValue(li),sn(li),(Yo=(qo=Zr==null?void 0:Zr.data)==null?void 0:qo.videos)!=null&&Yo[0]&&vo([{video_id:(tl=(el=(hl=Zr==null?void 0:Zr.data)==null?void 0:hl.videos)==null?void 0:el[0])==null?void 0:tl.video_id,name:(sl=(Bs=(al=Zr==null?void 0:Zr.data)==null?void 0:al.videos)==null?void 0:Bs[0])==null?void 0:sl.title,loaded:100}])}}),xi=(Rr,Co)=>{sn(Ur({},Co))},fo=Rr=>Jo(void 0,null,function*(){const Co={videos:Cr,articles:Rr};Do(!0);let qo;dr?(Co.active=dr,qo=yield(0,ue.gu)(Ve,Co)):qo=yield(0,ue.bx)(Ve,Co),(qo==null?void 0:qo.status)===0&&(console.log(dr||(qo==null?void 0:qo.id),44),He(dr||(qo==null?void 0:qo.id))),Do(!1)}),di=(Rr,Co)=>{me.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:E.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Co?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Co?vo([]):(eo.current.cancel(),vo([]))}})},qn=()=>E.createElement(nr.Z,Jr(Ur({},ki),{ref:eo}),E.createElement("div",{className:ta.main},E.createElement("img",{src:Vs,alt:""}),E.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),bi=Rr=>E.createElement("div",{className:ta.mainLoading},E.createElement("div",{className:ta.proWarp},E.createElement("div",{className:ta.pro},E.createElement("div",{style:{width:Rr}})),E.createElement("span",null,Rr||0,"%")),E.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),E.createElement("div",{className:ta.tip},E.createElement($i.Z,{getPopupContainer:Co=>Co.parentNode,title:E.createElement("div",null,E.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",E.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"),E.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),E.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},E.createElement("img",{src:dn,alt:""})))),Ho=Rr=>E.createElement("div",{className:ta.mainSucceed},E.createElement("img",{src:ir,alt:""}),E.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),E.createElement("div",{className:ta.tip},E.createElement($i.Z,{getPopupContainer:Co=>Co.parentNode,title:E.createElement("div",null,E.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",E.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"),E.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),E.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},E.createElement("img",{src:dn,alt:""}))),E.createElement("div",{className:ta.del,onClick:()=>di(Rr.name,Rr.loaded==100)},E.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Yi=()=>E.createElement(E.Fragment,null,Cr==null?void 0:Cr.map((Rr,Co)=>E.createElement(E.Fragment,{key:Co},Rr.loaded==100?Ho(Rr):bi(Rr.loaded)))),is=()=>{me.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:Te})},ki={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:Rr=>{const qo=Rr.name.toLowerCase();return qo&&qo.indexOf(".avi")==-1&&qo.indexOf(".flv")==-1&&qo.indexOf(".f4v")==-1&&qo.indexOf(".m4v")==-1&&qo.indexOf(".mov")==-1&&qo.indexOf(".mp4")==-1&&qo.indexOf(".rmvb")==-1&&qo.indexOf(".swf")==-1&&qo.indexOf(".webm")==-1&&qo.indexOf(".wmv")==-1?(fe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):Rr.size>1024*1024*1024?(fe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):Cr!=null&&Cr.find(Yo=>Yo.name===Rr.name)?(fe.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},onBeginInitFile:Rr=>{vo([{name:Rr.filename,loaded:0}])},onComplete:Rr=>{vo([{name:Rr.filename,loaded:Rr.percent,video_id:Rr.id}])},onError:()=>{vo([])},onProgress:Rr=>{vo([{name:Rr.filename,loaded:Rr.percent}])},chunkSize:1024*1024*2,options:{user_id:(rn=jr==null?void 0:jr.userInfo)==null?void 0:rn.user_id}},Wo=Cr==null?void 0:Cr.length;return E.createElement("div",{className:ta.listForm},E.createElement("header",null,dr?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),E.createElement("section",{className:ta.scroll,id:"sss"},E.createElement("div",{className:ta.formWrap}," ",E.createElement(xt.default,{form:vn,scrollToFirstError:!0,layout:"vertical",onValuesChange:xi,onFinish:fo},E.createElement(xt.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"}]},E.createElement(Xe.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((nn=jt.name)==null?void 0:nn.length)||0}/60`})),E.createElement(xt.default.Item,{name:"content",label:"\u5185\u5BB9:"},E.createElement(Un.Z,{defaultValue:jt.content||"",watch:!0})))),E.createElement("div",{className:ta.upload},Wo?Yi():qn())),E.createElement("div",{className:ta.btns},E.createElement(Ot.ZP,{onClick:is,type:"primary",ghost:!0},"\u5173\u95ED"),E.createElement(Ot.ZP,{loading:Ir,disabled:jn,onClick:()=>vn.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},Eo={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"},Xi=te(48054),ci=Object.defineProperty,ri=Object.getOwnPropertySymbols,ui=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,ns=(Te,He,Ve)=>He in Te?ci(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Va=(Te,He)=>{for(var Ve in He||(He={}))ui.call(He,Ve)&&ns(Te,Ve,He[Ve]);if(ri)for(var Ve of ri(He))Qi.call(He,Ve)&&ns(Te,Ve,He[Ve]);return Te};const ga=Te=>React.createElement("svg",Va({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Te),React.createElement("defs",null,React.createElement("path",{id:"jx_svg__a",d:"M6.385.257c.616-.343 1.616-.342 2.23 0l5.27 2.94C14.501 3.538 15 4.38 15 5.071v5.856c0 .692-.501 1.533-1.115 1.876l-5.27 2.939c-.616.343-1.616.342-2.23 0l-5.27-2.94C.499 12.462 0 11.622 0 10.929V5.072C0 4.38.501 3.54 1.115 3.196Zm1.423 3.817c-.169-.341-.446-.341-.615 0L6.38 5.717c-.169.341-.616.665-.994.72l-1.82.264c-.378.055-.464.317-.19.583l1.317 1.278c.273.266.444.79.38 1.165l-.31 1.806c-.066.376.158.538.496.36l1.628-.853c.338-.177.89-.177 1.23 0l1.627.853c.337.177.561.015.497-.36l-.31-1.806c-.065-.375.105-.899.379-1.165l1.316-1.278c.274-.266.188-.529-.19-.583l-1.819-.264c-.377-.054-.825-.378-.994-.72Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"jx_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#jx_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#jx_svg__a"}),React.createElement("circle",{cx:-1.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"}),React.createElement("circle",{cx:-2.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"})));var La="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",na=Object.defineProperty,Ya=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,mt=(Te,He,Ve)=>He in Te?na(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Tt=(Te,He)=>{for(var Ve in He||(He={}))Qe.call(He,Ve)&&mt(Te,Ve,He[Ve]);if(Ya)for(var Ve of Ya(He))je.call(He,Ve)&&mt(Te,Ve,He[Ve]);return Te};const kt=Te=>React.createElement("svg",Tt({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Te),React.createElement("defs",null,React.createElement("path",{id:"gf_svg__a",d:"m8 0 1.857 1.073h2.146l1.071 1.854L14.931 4v2.144L16 8l-1.069 1.857V12l-1.858 1.072-1.071 1.856H9.857L8 16l-1.855-1.073H4l-1.072-1.856L1.072 12V9.857L0 8l1.072-1.856V4l1.857-1.073 1.072-1.854h2.145L8 0Zm2.91 6.385H4.796V12h1.246v-.451h4.026v.435h1.247V9.196H6.043v-.515h4.866V6.385Zm-.84 3.681v.613H6.042v-.613h4.026ZM9.705 7.24v.588H6.043v-.588h3.663ZM8.615 4l-1.48.137c.055.133.12.284.192.453l.076.175H4v1.426h1.195v-.483h5.61v.483H12V4.765H8.883c-.078-.23-.148-.43-.21-.602L8.616 4Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"gf_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#gf_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#gf_svg__a"}),React.createElement("circle",{cx:.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"}),React.createElement("circle",{cx:-.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"})));var Jt="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Cn=Object.defineProperty,pn=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Zn=(Te,He,Ve)=>He in Te?Cn(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,kn=(Te,He)=>{for(var Ve in He||(He={}))Yt.call(He,Ve)&&Zn(Te,Ve,He[Ve]);if(pn)for(var Ve of pn(He))yn.call(He,Ve)&&Zn(Te,Ve,He[Ve]);return Te};const Ar=Te=>React.createElement("svg",kn({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Te),React.createElement("title",null,"\u5927\u70B9\u8D5E"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M3.566 19.08V8.134c0-.443-.318-.802-.71-.802H1.34c-.73 0-1.322.67-1.322 1.496v9.558c0 .827.593 1.496 1.322 1.496h1.515c.392 0 .71-.36.71-.802Z",fill:"#A3D3FF"}),React.createElement("path",{d:"M4.585 19.303V7.9c0-.263.188-.495.459-.559.955-.229 3.147-1.049 4.08-3.848.567-2.451 1.182-3.607 3.008-3.469 1.826.139 1.948 1.804 1.948 2.312v3.93s-.148.602.468.649c.617.046 5.426 0 5.426 0s2.639-.042 1.8 3.031c-.73 2.673-2.173 6.974-2.537 8.05a2.324 2.324 0 0 1-.324.626c-.353.483-1.094 1.258-2.228 1.258H5.201c-.341.002-.616-.257-.616-.577Z",fill:"#FFF"})));var zr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",kr={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"},oo=te(71230),qr=te(15746),yr={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"},Bo=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())});const co=({id:Te,cb:He})=>{const[Ve,dr]=(0,E.useState)("");return E.createElement("aside",{className:"mt10"},E.createElement(Un.Z,{defaultValue:Ve,id:"writeForumsReviewId",onChange:rn=>{dr(rn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),E.createElement(oo.Z,null,E.createElement(qr.Z,{flex:"1"}),E.createElement(qr.Z,null,E.createElement(Ot.ZP,{type:"primary",size:"middle",onClick:()=>Bo(void 0,null,function*(){Ve===""?fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):He(Te,Ve)})},"\u53D1\u9001"))))},uo=({data:Te})=>{var He;return E.createElement("div",{className:yr.thirdlyLevelDiscuss},E.createElement("span",{className:"c-grey-333"},E.createElement("span",{className:"font 14 c-light-primary"},(He=Te==null?void 0:Te.author)==null?void 0:He.name),"@",E.createElement("span",{className:"font 14 c-light-primary"},Te==null?void 0:Te.parent_name),":"),E.createElement(Pt.Z,{value:Te==null?void 0:Te.content}))},Dr=({data:Te,onReplyDiscuss:He,thirdlyReply:Ve,setThirdlyReply:dr})=>{var rn,nn,vn,jt;const sn=(0,Tn.eY)();return console.log(sn,"user"),E.createElement("div",{className:yr.list},E.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((rn=Te==null?void 0:Te.author)==null?void 0:rn.image_url)}),E.createElement("div",{className:yr.wrap},E.createElement("div",{className:"font14",style:{marginBottom:6}},E.createElement("span",{className:"c-grey-333"},(nn=Te==null?void 0:Te.author)==null?void 0:nn.name),(sn==null?void 0:sn.login)!==((vn=Te==null?void 0:Te.author)==null?void 0:vn.login)&&E.createElement("span",{onClick:()=>dr(Te==null?void 0:Te.id),className:"c-grey-999 current",style:{float:"right"}},E.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),E.createElement("span",null,"\u56DE\u590D"))),E.createElement(Pt.Z,{value:Te==null?void 0:Te.content}),(jt=Te==null?void 0:Te.children)==null?void 0:jt.map(jn=>E.createElement(uo,{key:jn.id,data:jn})),Ve===(Te==null?void 0:Te.id)&&E.createElement("div",null,E.createElement(co,{id:Te==null?void 0:Te.id,cb:He}),E.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>dr(null),className:"c-light-primary current"},E.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),E.createElement("div",{className:yr.line})))};var Tr=({data:Te,onReplyDiscuss:He,secondReply:Ve,setSecondReply:dr,thirdlyReply:rn,setThirdlyReply:nn,onPlusDiscuss:vn})=>{var jt,sn,jn,Lo;const[Ir,Do]=(0,E.useState)(!1);return console.log(Te,"data"),E.createElement("div",{className:yr.discussItem},E.createElement("div",{className:yr.list},E.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((jt=Te==null?void 0:Te.author)==null?void 0:jt.image_url)}),E.createElement("div",{className:yr.wrap},E.createElement("div",{className:"font14",style:{marginBottom:6}},E.createElement("span",{className:"c-grey-333 mr30"},(sn=Te==null?void 0:Te.author)==null?void 0:sn.name),E.createElement("span",{className:"c-grey-999"},Te==null?void 0:Te.time)),E.createElement(Pt.Z,{value:Te==null?void 0:Te.content}),E.createElement("div",{className:yr.btns},E.createElement("div",{onClick:()=>vn(Te==null?void 0:Te.id),className:Te!=null&&Te.user_praise?"c-light-primary":"c-grey-999"},E.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),E.createElement("span",null,Te==null?void 0:Te.praise_count)),E.createElement("div",{onClick:()=>{var Cr;((Cr=Te==null?void 0:Te.children)==null?void 0:Cr.length)!==0&&(dr(null),Do(!Ir))},style:{color:Ir?"#0152d9":"#999999"}},E.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),E.createElement("span",null,Ir?"\u6536\u8D77\u8BC4\u8BBA":(jn=Te==null?void 0:Te.children)==null?void 0:jn.length)),E.createElement("div",{onClick:()=>{Do(!1),dr(Ve===(Te==null?void 0:Te.id)?null:Te==null?void 0:Te.id)},style:{color:Ve===(Te==null?void 0:Te.id)?"#0152d9":"#999999"}},E.createElement("i",{className:"iconfont icon-huifu3 mr3"}),E.createElement("span",null,Ve===(Te==null?void 0:Te.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Ve===(Te==null?void 0:Te.id)&&E.createElement(co,{id:Te==null?void 0:Te.id,cb:(Cr,vo)=>{He(Cr,vo),Do(!0)}}),Ir&&E.createElement("div",{className:yr.secondLevelDiscuss},(Lo=Te==null?void 0:Te.children)==null?void 0:Lo.map(Cr=>E.createElement(Dr,{thirdlyReply:rn,setThirdlyReply:nn,key:Cr.id,data:Cr,onReplyDiscuss:He}))))))},Gr=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())}),$o=({identifier:Te,active:He,onOk:Ve})=>{const[dr,rn]=(0,E.useState)(""),[nn,vn]=(0,E.useState)(1),[jt,sn]=(0,E.useState)([]),[jn,Lo]=(0,E.useState)(0),[Ir,Do]=(0,E.useState)(null),[Cr,vo]=(0,E.useState)(null);(0,E.useEffect)(()=>{jr(1),vn(1)},[He]);const jr=fo=>Gr(void 0,null,function*(){const di=yield Nn({container_type:"QuestionSolutionArticle",container_identifier:He,limit:5,page:fo});di!=null&&di.comments&&(sn((di==null?void 0:di.comments)||[]),vn(fo),Lo(di==null?void 0:di.disscuss_count))}),Li=()=>Gr(void 0,null,function*(){if(dr===""){fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const fo=yield Hn({comments:{content:dr},container_type:"QuestionSolutionArticle",container_identifier:He});fo!=null&&fo.discuss&&(rn(""),jr(nn),Ve())}),eo=(fo,di,qn)=>Gr(void 0,null,function*(){const bi=yield ur({container_type:"QuestionSolutionArticle",container_identifier:He,comments:{content:di,parent_id:fo}});Do(null),vo(null),jr(nn)}),To=fo=>Gr(void 0,null,function*(){const di=yield Pn(fo);jr(nn)}),xi=fo=>{vn(fo),jr(fo)};return E.createElement("div",{className:kr.discuss},E.createElement("aside",{className:kr.reply,style:{borderWidth:jn?1:0}},E.createElement(Un.Z,{defaultValue:dr,id:"writeForumsReviewId",onChange:fo=>{rn(fo)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),E.createElement(oo.Z,null,E.createElement(qr.Z,{flex:"1"}),E.createElement(qr.Z,null,E.createElement(Ot.ZP,{type:"primary",size:"middle",onClick:()=>Li()},"\u53D1\u9001")))),jt==null?void 0:jt.map(fo=>E.createElement(Tr,{secondReply:Ir,setSecondReply:Do,thirdlyReply:Cr,setThirdlyReply:vo,key:fo.id,data:fo,onReplyDiscuss:eo,onPlusDiscuss:To})),E.createElement(yt.Z,{className:kr.pagination,showTotal:fo=>E.createElement("span",{style:{color:"#656F87"}},"\u5171",E.createElement("span",{className:"c-light-primary"},fo),"\u6761\u6570\u636E"),current:nn,onChange:xi,total:jn,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},wr=te(6104),wo=Object.defineProperty,hi=Object.getOwnPropertySymbols,zo=Object.prototype.hasOwnProperty,si=Object.prototype.propertyIsEnumerable,Fi=(Te,He,Ve)=>He in Te?wo(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,fa=(Te,He)=>{for(var Ve in He||(He={}))zo.call(He,Ve)&&Fi(Te,Ve,He[Ve]);if(hi)for(var Ve of hi(He))si.call(He,Ve)&&Fi(Te,Ve,He[Ve]);return Te},ra=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())}),oa=({active:Te,identifier:He,onAssist:Ve,onEdit:dr,onArticlesSkip:rn,onClose:nn,onOk:vn,onDelete:jt,detailsIndex:sn,btnShowStatus:jn})=>{var Lo,Ir,Do,Cr,vo,jr,Li,eo,To,xi;const[fo,di]=(0,E.useState)(!0),[qn,bi]=(0,E.useState)({});(0,E.useEffect)(()=>{Te&&Ho()},[Te,sn]);const Ho=(Wo=!0)=>ra(void 0,null,function*(){Wo&&di(!0);const Rr=yield(0,ue.wO)(He,{active:Te});(Rr==null?void 0:Rr.status)===0&&bi((Rr==null?void 0:Rr.data)||{}),di(!1)}),Yi=Wo=>ra(void 0,null,function*(){const Rr=yield(0,ue.qe)(He,fa({active:Te},Wo));(Rr==null?void 0:Rr.status)===0&&(Ho(!1),vn())}),is=Wo=>ra(void 0,null,function*(){(yield(0,ue.Rg)(He,{active:Wo==null?void 0:Wo.id})).status===0&&(Ho(!1),vn())}),_r=Wo=>{me.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:()=>jt(Wo)})},ki=()=>{Ho(!1),vn()};return E.createElement("div",{className:Eo.listDetails},E.createElement(Xi.Z,{className:"pt20 pl20 pr20",loading:fo,active:!0,paragraph:{rows:5}},E.createElement("div",{className:Eo.head},E.createElement("div",{className:Eo.name},E.createElement("div",{title:qn==null?void 0:qn.name,className:Eo.title},qn==null?void 0:qn.name),(qn==null?void 0:qn.is_authority)&&E.createElement("div",{className:Eo.b},"\u5B98\u65B9"),(qn==null?void 0:qn.is_excellent)&&E.createElement("div",{className:Eo.a},"\u7CBE\u9009")),E.createElement("div",{className:Eo.tag},E.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(qn==null?void 0:qn.image_url)}),E.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},qn==null?void 0:qn.username),E.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Be()(qn==null?void 0:qn.created_at).format("YYYY-MM-DD")),E.createElement("span",null,E.createElement("img",{src:Ao}),E.createElement("span",null,qn==null?void 0:qn.praises_count)),E.createElement("span",null,E.createElement("img",{src:fs}),E.createElement("span",null,qn==null?void 0:qn.discusses_count)),E.createElement("span",null,E.createElement("img",{src:bo}),E.createElement("span",null,qn==null?void 0:qn.viewed_count)),E.createElement("div",{className:Eo.btn},((0,Tn.Ny)()||(qn==null?void 0:qn.is_self))&&E.createElement(E.Fragment,null,E.createElement(Ot.ZP,{onClick:()=>_r(qn),type:"primary",ghost:!0},"\u5220\u9664"),E.createElement(Ot.ZP,{onClick:()=>dr(qn),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Tn.Ny)()&&E.createElement(Ot.ZP,{onClick:()=>Yi({is_authority:!(qn!=null&&qn.is_authority)}),type:"primary"},E.createElement("img",{src:Jt}),qn!=null&&qn.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Tn.Ny)()&&E.createElement(Ot.ZP,{onClick:()=>Yi({is_excellent:!(qn!=null&&qn.is_excellent)}),type:"primary"},E.createElement("img",{src:La}),qn!=null&&qn.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),E.createElement("div",{className:Eo.scroll},((Ir=(Lo=qn==null?void 0:qn.videos)==null?void 0:Lo[0])==null?void 0:Ir.id)&&E.createElement("div",{className:Eo.video},E.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((Cr=(Do=qn==null?void 0:qn.videos)==null?void 0:Do[0])!=null&&Cr.transcoded)},E.createElement(wr.Z,{poster:(jr=(vo=qn==null?void 0:qn.videos)==null?void 0:vo[0])==null?void 0:jr.cover_url,src:((eo=(Li=qn==null?void 0:qn.videos)==null?void 0:Li[0])==null?void 0:eo.play_url)||"",videoId:(xi=(To=qn==null?void 0:qn.videos)==null?void 0:To[0])==null?void 0:xi.id,logWatchHistory:()=>{}}))),E.createElement(Pt.Z,{className:Eo.html,value:(qn==null?void 0:qn.content)||""}),E.createElement("div",{onClick:()=>is(qn),className:Eo.g},E.createElement("img",{className:"mr10",src:(qn!=null&&qn.user_liker,zr)}),E.createElement("span",null,qn==null?void 0:qn.praises_count)),E.createElement($o,{onOk:ki,active:Te,identifier:He})),E.createElement("div",{className:Eo.btns},E.createElement(Ot.ZP,{onClick:()=>nn(),type:"primary",ghost:!0},"\u5173\u95ED"),jn[0]&&E.createElement(Ot.ZP,{onClick:Wo=>rn(Wo,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),jn[1]&&E.createElement(Ot.ZP,{onClick:Wo=>rn(Wo,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},ia=Object.defineProperty,Ki=Object.getOwnPropertySymbols,Da=Object.prototype.hasOwnProperty,Ta=Object.prototype.propertyIsEnumerable,Za=(Te,He,Ve)=>He in Te?ia(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,ha=(Te,He)=>{for(var Ve in He||(He={}))Da.call(He,Ve)&&Za(Te,Ve,He[Ve]);if(Ki)for(var Ve of Ki(He))Ta.call(He,Ve)&&Za(Te,Ve,He[Ve]);return Te};const rs=Te=>React.createElement("svg",ha({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Te),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M13.727 0C14.983 0 16 .895 16 2v12c0 1.105-1.017 2-2.273 2H2.273C1.017 16 0 15.105 0 14V2C0 .895 1.017 0 2.273 0h11.454ZM7.464 11H2.955c-.266 0-.513.19-.646.5s-.133.69 0 1c.133.31.38.5.646.5h4.509c.411 0 .745-.448.745-1s-.334-1-.745-1Zm4-3.5H2.955c-.411 0-.745.448-.745 1s.334 1 .745 1h8.509c.412 0 .746-.448.746-1s-.334-1-.746-1ZM3.71 2.75a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#7DC1FF",fillRule:"nonzero",xlinkHref:"#a_svg__a"}),React.createElement("circle",{cx:1.5,cy:.5,r:16.5,fill:"#A3D3FF",fillRule:"nonzero",mask:"url(#a_svg__b)"}),React.createElement("ellipse",{cx:1.5,cy:-.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12}),React.createElement("ellipse",{cx:-2.5,cy:-4,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12})));var Ia="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",xa=te(28575),Ji=te(33463),Xa=Object.defineProperty,ma=Object.defineProperties,Na=Object.getOwnPropertyDescriptors,Ba=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,Gi=Object.prototype.propertyIsEnumerable,_i=(Te,He,Ve)=>He in Te?Xa(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,mi=(Te,He)=>{for(var Ve in He||(He={}))wi.call(He,Ve)&&_i(Te,Ve,He[Ve]);if(Ba)for(var Ve of Ba(He))Gi.call(He,Ve)&&_i(Te,Ve,He[Ve]);return Te},Fa=(Te,He)=>ma(Te,Na(He)),Vi=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())}),$s=({identifier:Te,tabStatus:He,setFilterListTotal:Ve,setListStatus:dr})=>{const rn={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[nn,vn]=(0,E.useState)(mi({},rn));const[jt,sn]=(0,E.useState)(!1),[jn,Lo]=(0,E.useState)(0),[Ir,Do]=(0,E.useState)(1),[Cr,vo]=(0,E.useState)(null),[jr,Li]=(0,E.useState)([]),[eo,To]=(0,E.useState)([!0,!0]),[xi,fo]=(0,E.useState)(0),di=(0,E.useRef)(null);(0,E.useEffect)(()=>{Co()},[He]),(0,E.useEffect)(()=>{qn()},[Cr]),(0,E.useEffect)(()=>{Ho(mi({},rn)),Co()},[Te]),(0,E.useEffect)(()=>(window.addEventListener("resize",bi),dr(xi),()=>{window.removeEventListener("resize",bi)}),[xi]);const qn=()=>Vi(void 0,null,function*(){if(!Cr){To([!0,!0]);return}const Zr=[!0,!0],li=jr==null?void 0:jr.findIndex(Ma=>Ma.id===Cr);li===0&&nn.page===1&&(Zr[0]=!1),(nn.page-1)*nn.limit+(li+1)===nn.total&&(Zr[1]=!1),To(Zr)}),bi=()=>{var Zr;if(xi){const li=window.innerWidth-((Zr=di.current)==null?void 0:Zr.clientWidth);Lo(li)}},Ho=Zr=>Vi(void 0,null,function*(){var li,Ma,Fs;sn(!0);const ps=yield(0,ue.WH)(Te,Zr);return(ps==null?void 0:ps.status)===0&&(Li(((li=ps==null?void 0:ps.data)==null?void 0:li.articles)||[]),vn(Fa(mi({},Zr),{total:(Ma=ps==null?void 0:ps.data)==null?void 0:Ma.articles_count})),Ve((Fs=ps==null?void 0:ps.data)==null?void 0:Fs.articles_count)),sn(!1),ps}),Yi=()=>{(nn==null?void 0:nn.sort_direction)===null?nn.sort_direction="asc":(nn==null?void 0:nn.sort_direction)==="asc"?nn.sort_direction="desc":(nn==null?void 0:nn.sort_direction)==="desc"&&(nn.sort_direction=null),nn.page=1,Co(),vn(mi({},nn)),Ho(nn)},is=()=>{nn.page=1,nn.search=nn==null?void 0:nn.save_search,Co(),vn(mi({},nn)),Ho(nn)},_r=()=>{var Zr;const li=document.getElementsByClassName("btn-resize");li[0].style.visibility="hidden";const Ma=window.innerWidth-((Zr=di.current)==null?void 0:Zr.clientWidth);Lo(Ma)},ki=()=>{_r(),fo(1)},Wo=Zr=>{_r(),vo(Zr==null?void 0:Zr.id),fo(3)},Rr=Zr=>{_r(),vo(Zr==null?void 0:Zr.id),fo(2)},Co=()=>{const Zr=document.getElementsByClassName("btn-resize");Zr[0].style.visibility="visible",Lo(0),fo(0),vo(null)},qo=Zr=>{fo(3),vo(Zr),nn.page=1,vn(mi({},nn)),Ho(nn)},Yo=Zr=>{fo(3),vo(Zr),vn(mi({},nn)),Ho(nn)},hl=Zr=>{vn(mi({},nn)),Ho(nn)},el=Zr=>Vi(void 0,null,function*(){(yield(0,ue.Rg)(Te,{active:Zr==null?void 0:Zr.id})).status===0&&(Ho(nn),Do(Ir+1))}),tl=Zr=>Vi(void 0,null,function*(){(yield(0,ue.rL)(Te,{active:Zr==null?void 0:Zr.id})).status===0&&(Ho(nn),Do(Ir+1))}),al=Zr=>Vi(void 0,null,function*(){(yield(0,ue.de)(Te,{active:Zr==null?void 0:Zr.id})).status===0&&(Co(),Ho(nn))}),Bs=Zr=>{nn.page=Zr,vn(mi({},nn)),Ho(nn)},sl=(Zr,li)=>Vi(void 0,null,function*(){var Ma,Fs,ps,ll;const ks=jr==null?void 0:jr.findIndex(_a=>_a.id===Cr);if(console.log(ks,li,22),li==="prev"){if(ks===void 0){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(ks===0){if(nn.page===1){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(nn.page!==1){nn.page=nn.page-1,vn(mi({},nn));const _a=yield Ho(nn);if((_a==null?void 0:_a.status)===0){const Ws=(ps=_a==null?void 0:_a.data)==null?void 0:ps.articles[((Fs=(Ma=_a==null?void 0:_a.data)==null?void 0:Ma.articles)==null?void 0:Fs.length)-1];vo(Ws==null?void 0:Ws.id),console.log(Zr.target,555)}}}else{const _a=jr[ks-1];vo(_a==null?void 0:_a.id)}}if(li==="next"){if(ks===void 0){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((nn.page-1)*nn.limit+(ks+1)===nn.total){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(ks+1===nn.limit){nn.page=nn.page+1,vn(mi({},nn));const _a=yield Ho(nn);if((_a==null?void 0:_a.status)===0){const Ws=(ll=_a==null?void 0:_a.data)==null?void 0:ll.articles[0];vo(Ws==null?void 0:Ws.id)}}else{const _a=jr[ks+1];vo(_a==null?void 0:_a.id)}}});return E.createElement("div",{className:On.wrap,ref:di},E.createElement("div",{className:On.head},E.createElement("div",{className:On.sort,onClick:Yi},E.createElement("span",null,"\u6700\u65B0"),E.createElement("aside",null,E.createElement(xa.Z,{style:{color:(nn==null?void 0:nn.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),E.createElement(Ji.Z,{style:{color:(nn==null?void 0:nn.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),E.createElement(Xe.default.Search,{value:nn.save_search,className:On["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Zr=>{nn.save_search=Zr.target.value,vn(mi({},nn))},onSearch:is}),E.createElement("div",{onClick:ki,className:On.btn},E.createElement("img",{src:Ia}),"\u5199\u9898\u89E3")),E.createElement("div",{className:On.listWarp},E.createElement(de.Z,{spinning:jt,className:"mt20"},jr==null?void 0:jr.map((Zr,li)=>{let Ma=!0;return li+1===jr.length&&li!==0&&(Ma=!1),E.createElement(ts,{active:Cr,key:Zr.id,data:Zr,showLine:Ma,onClick:Wo,onAssist:el,onHide:tl})}),(jr==null?void 0:jr.length)===0&&E.createElement(ct.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),E.createElement(yt.Z,{className:On.pagination,showTotal:Zr=>E.createElement("span",{style:{color:"#656F87"}},"\u5171",E.createElement("span",{className:"c-light-primary"},Zr),"\u6761\u6570\u636E"),total:nn.total,showSizeChanger:!1,current:nn==null?void 0:nn.page,onChange:Bs,hideOnSinglePage:!0,showQuickJumper:!0}),xi>0&&E.createElement("div",{className:On.fixedRight,style:{width:jn}},xi===1&&E.createElement(Wi,{identifier:Te,onClose:Co,onOk:qo}),xi===2&&E.createElement(Wi,{active:Cr,identifier:Te,onClose:Co,onOk:Yo}),xi===3&&E.createElement(oa,{btnShowStatus:eo,onArticlesSkip:sl,detailsIndex:Ir,active:Cr,identifier:Te,onClose:Co,onOk:hl,onEdit:Rr,onAssist:el,onDelete:al})))},Qa={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"},xs=Object.defineProperty,ul=Object.defineProperties,dl=Object.getOwnPropertyDescriptors,Qs=Object.getOwnPropertySymbols,Ts=Object.prototype.hasOwnProperty,Ms=Object.prototype.propertyIsEnumerable,Js=(Te,He,Ve)=>He in Te?xs(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,hs=(Te,He)=>{for(var Ve in He||(He={}))Ts.call(He,Ve)&&Js(Te,Ve,He[Ve]);if(Qs)for(var Ve of Qs(He))Ms.call(He,Ve)&&Js(Te,Ve,He[Ve]);return Te},Is=(Te,He)=>ul(Te,dl(He)),qs=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())}),Dl=({visible:Te,onVisible:He,value:Ve,onChange:dr,setIndex:rn})=>{var nn;const vn={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[jt,sn]=(0,E.useState)(vn);const[jn,Lo]=(0,E.useState)([]),[Ir,Do]=(0,E.useState)([]),[Cr,vo]=(0,E.useState)(!1),jr=(0,E.useRef)([]),Li=(0,E.useRef)(null),eo=(0,pe.useParams)();(0,E.useEffect)(()=>(eo!=null&&eo.id&&(Li.current=setInterval(()=>{To(30)},3e4)),()=>{clearInterval(Li.current)}),[]);const To=_r=>qs(void 0,null,function*(){const ki=yield(0,ue.uc)(eo==null?void 0:eo.id,{practice_time:_r})});(0,E.useEffect)(()=>{Ho(jt),qn()},[]),(0,E.useEffect)(()=>(window.addEventListener("click",fo),()=>{window.removeEventListener("click",fo)}),[eo==null?void 0:eo.save_identifier,Te]),(0,E.useEffect)(()=>{const _r=jr.current.findIndex(qo=>qo.identifier===(eo==null?void 0:eo.save_identifier)),ki=jr.current[_r-1],Wo=jr.current[_r+1],Rr=document.getElementById("oj-prev"),Co=document.getElementById("oj-next");ki?Rr.style.display="block":Rr.style.display="none",Wo?Co.style.display="block":Co.style.display="none"},[eo==null?void 0:eo.save_identifier,jr.current]);const xi=(_r,ki)=>{if(_r.id===ki)return _r;for(let Wo=0,Rr=_r;Rr=Rr.parentNode;Wo++){if(Rr.id===ki)return Rr;if(Rr==document.documentElement)return!1}},fo=_r=>qs(void 0,null,function*(){!xi(_r.target,"oj-drawer")&&Te&&He(!1);const ki=jr.current.findIndex(Co=>Co.identifier===(eo==null?void 0:eo.save_identifier)),Wo=jr.current[ki-1],Rr=jr.current[ki+1];if(_r.target.id==="oj-prev"){if(!Wo||ki===-1){fe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}_r.target.style.pointerEvents="none",_r.target.style.cursor="not-allowed",yield Yi(Wo==null?void 0:Wo.identifier),rn("0"),setTimeout(()=>{_r.target.style.pointerEvents="auto",_r.target.style.cursor="pointer"},400)}if(_r.target.id==="oj-next"||_r.target.id==="oj-modal-next"){if(!Rr||ki===-1){fe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}_r.target.style.pointerEvents="none",_r.target.style.cursor="not-allowed",yield Yi(Rr==null?void 0:Rr.identifier),rn("0"),setTimeout(()=>{_r.target.style.pointerEvents="auto",_r.target.style.cursor="pointer"},400)}});(0,E.useEffect)(()=>{dr(eo==null?void 0:eo.save_identifier);const _r=Ir.findIndex(ki=>ki.some(Wo=>Wo.identifier===(eo==null?void 0:eo.save_identifier)));sn(_r===-1?Is(hs({},jt),{page:1}):Is(hs({},jt),{page:_r+1}))},[eo==null?void 0:eo.save_identifier,Ir]);const di=_r=>{jt.page=1,jt.tag_discipline_id=_r,sn(hs({},jt)),Ho(jt)},qn=()=>qs(void 0,null,function*(){const _r=yield(0,xn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Lo(_r.tag_disciplines||[])}),bi=_r=>{jt.page=1,jt.difficulty=typeof _r=="number"?_r:null,sn(hs({},jt)),Ho(jt)},Ho=_r=>qs(void 0,null,function*(){var ki,Wo;vo(!0);const Rr=yield(0,ue.KC)(_r);if(Rr!=null&&Rr.practices_list){for(var Co=(ki=Rr==null?void 0:Rr.practices_list)==null?void 0:ki.length,qo=[],Yo=0;Yo<Co;Yo+=jt==null?void 0:jt.per_page)qo.push((Wo=Rr==null?void 0:Rr.practices_list)==null?void 0:Wo.slice(Yo,Yo+(jt==null?void 0:jt.per_page)));sn(Is(hs({},jt),{total:Rr==null?void 0:Rr.practices_count})),jr.current=(Rr==null?void 0:Rr.practices_list)||[],Do(qo)}vo(!1)}),Yi=(_r,ki)=>qs(void 0,null,function*(){const Wo=yield(0,xn.ZP)(`/api/practices/${_r}/start`,{method:"get"});(Wo==null?void 0:Wo.status)===0&&pe.history.push(`/problems/${Wo==null?void 0:Wo.identifier}/oj/${_r}`)}),is=_r=>{jt.page=_r,sn(hs({},jt))};return E.createElement("div",{className:Qa.wrap,id:"oj-drawer",style:{left:Te?0:-700}},E.createElement("div",{className:Qa.head},E.createElement("div",{className:Qa.title},"\u9898\u76EE\u5217\u8868"),E.createElement(Xe.default.Search,{value:jt==null?void 0:jt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:_r=>{jt.save_search=_r.target.value,sn(hs({},jt))},onSearch:()=>{jt.page=1,jt.search=jt.save_search,sn(hs({},jt)),Ho(jt)}}),E.createElement(ce.default,{value:jt==null?void 0:jt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:_r=>_r.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:di},jn.map(_r=>E.createElement(ce.default.Option,{key:_r.id,value:_r.id},_r.name))),E.createElement(ce.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:_r=>_r.parentNode,value:jt==null?void 0:jt.difficulty,onChange:bi},E.createElement(ce.default.Option,{value:1},"\u7B80\u5355"),E.createElement(ce.default.Option,{value:2},"\u9002\u4E2D"),E.createElement(ce.default.Option,{value:3},"\u56F0\u96BE"))),E.createElement("div",{className:Qa.content},E.createElement(de.Z,{spinning:Cr},(nn=Ir==null?void 0:Ir[jt.page-1])==null?void 0:nn.map(_r=>E.createElement("div",{key:_r.identifier,className:Qa.list,onClick:ki=>Yi(_r.identifier,ki)},E.createElement("i",{style:{visibility:Ve===_r.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),E.createElement("span",{style:{fontWeight:Ve===_r.identifier?"bold":400,color:Ve===_r.identifier?"#ffffff":"#bac4cd"},title:_r==null?void 0:_r.name},_r.name),(_r==null?void 0:_r.difficulty)===1&&E.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(_r==null?void 0:_r.difficulty)===2&&E.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(_r==null?void 0:_r.difficulty)===3&&E.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),E.createElement("div",{className:Qa.footer},E.createElement(yt.Z,{showTotal:_r=>E.createElement("span",{style:{color:"#656F87"}},"\u5171",E.createElement("span",{className:"c-light-primary"},_r),"\u6761\u6570\u636E"),total:jt.total,pageSize:jt==null?void 0:jt.per_page,current:jt==null?void 0:jt.page,showSizeChanger:!1,onChange:is,showQuickJumper:!0,hideOnSinglePage:!0})))},Tl=({hack:Te,onTriggerPraise:He,topicId:Ve,page:dr,onPageChange:rn,user:nn,submitRecords:vn,submitting:jt,submitResult:sn})=>{const[jn]=(0,pe.useSearchParams)(),Lo=(0,pe.useLocation)(),[Ir,Do]=(0,E.useState)(jn.get("tab")||"0"),[Cr,vo]=(0,E.useState)(0),[jr,Li]=(0,E.useState)(0),[eo,To]=(0,E.useState)(0),[xi,fo]=(0,E.useState)(),[di,qn]=(0,E.useState)(!1);function bi(Yi){const is=Yi.target.id;if(Ir==="3"&&is!==Ir&&(jr===1||jr===2)){me.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:()=>{Do(is)}});return}Do(is)}(0,E.useEffect)(()=>wn.Z.subscribe("to-commit-info",()=>{Do("1")}),[]);function Ho(){Do("2")}return E.createElement("div",{className:gt["left-panel"]},E.createElement("ul",{className:`${gt["s-navs"]} ${gt["bg-white"]} ${gt.b1}`},E.createElement("li",{className:"mr40 current"},E.createElement("img",{onClick:()=>qn(!0),src:gn})),E.createElement("li",{className:gt["oj-mr"]},E.createElement("a",{className:Ir==="0"?gt.active:"",id:"0",onClick:bi},"\u4EFB\u52A1\u63CF\u8FF0")),E.createElement("li",{className:gt["oj-mr"]},E.createElement("a",{className:Ir==="3"?gt.active:"",id:"3",onClick:bi},"\u9898\u89E3",eo?`(${eo})`:"")),E.createElement("li",{className:gt["oj-mr"]},E.createElement("a",{className:Ir==="2"?gt.active:"",id:"2",onClick:bi},"\u8BC4\u8BBA",Cr?`(${Cr})`:"")),E.createElement("li",null,E.createElement("a",{className:Ir==="1"?gt.active:"",id:"1",onClick:bi},"\u63D0\u4EA4\u8BB0\u5F55"))),E.createElement("div",{className:`${gt["tab-panel-body"]} ${Ir==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},E.createElement(Rn,{hack:Te,onTriggerPraise:He,toDiscuss:Ho})),E.createElement("div",{className:`${gt["tab-panel-body"]} ${Ir==="1"?"":"hide"}`},vn!=null&&vn.records_count?E.createElement(tt,{page:dr,onPageChange:rn,topicId:Ve,submitting:jt,submitRecords:vn,submitResult:sn}):E.createElement(ct.Z,null)),E.createElement("div",{className:`${gt["tab-panel-body"]} ${Ir==="2"?"":"hide"}`,style:{padding:0}},E.createElement(zn,{setDiscussTotal:vo,user:nn,identifier:Te.identifier,hack:Te,onTriggerPraise:He})),E.createElement("div",{className:`${gt["tab-panel-body"]} ${Ir==="3"?"":"hide"}`,style:{padding:0}},E.createElement($s,{setListStatus:Li,setFilterListTotal:To,tabStatus:Ir,identifier:Te.identifier})),E.createElement(Dl,{visible:di,setIndex:Do,onVisible:Yi=>qn(Yi),value:xi,onChange:Yi=>fo(Yi)}))},gl=te(88508),Pl=te(62522),os=te(22707),Ns=te(8861),il=te(96486),Xl=te.n(il),Ql=te(74855),Vr=te(67294),Jl=Object.defineProperty,ql=Object.defineProperties,Il=Object.getOwnPropertyDescriptors,fl=Object.getOwnPropertySymbols,zl=Object.prototype.hasOwnProperty,Hl=Object.prototype.propertyIsEnumerable,Ul=(Te,He,Ve)=>He in Te?Jl(Te,He,{enumerable:!0,configurable:!0,writable:!0,value:Ve}):Te[He]=Ve,Oi=(Te,He)=>{for(var Ve in He||(He={}))zl.call(He,Ve)&&Ul(Te,Ve,He[Ve]);if(fl)for(var Ve of fl(He))Hl.call(He,Ve)&&Ul(Te,Ve,He[Ve]);return Te},Ea=(Te,He)=>ql(Te,Il(He)),ec=(Te,He)=>{var Ve={};for(var dr in Te)zl.call(Te,dr)&&He.indexOf(dr)<0&&(Ve[dr]=Te[dr]);if(Te!=null&&fl)for(var dr of fl(Te))He.indexOf(dr)<0&&Hl.call(Te,dr)&&(Ve[dr]=Te[dr]);return Ve},ms=(Te,He,Ve)=>new Promise((dr,rn)=>{var nn=sn=>{try{jt(Ve.next(sn))}catch(jn){rn(jn)}},vn=sn=>{try{jt(Ve.throw(sn))}catch(jn){rn(jn)}},jt=sn=>sn.done?dr(sn.value):Promise.resolve(sn.value).then(nn,vn);jt((Ve=Ve.apply(Te,He)).next())});const{Countdown:bc}=ve.default,tc={Java:"java",C:"c",Python:"py","C++":"c"};var nc=(Te=>(Te[Te.SET_LOADING=0]="SET_LOADING",Te[Te.GET_DATA=1]="GET_DATA",Te[Te.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Te[Te.SET_DATA=3]="SET_DATA",Te[Te.SET_DEBUGING=4]="SET_DEBUGING",Te[Te.SET_SUBMITING=5]="SET_SUBMITING",Te[Te.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Te[Te.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Te[Te.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Te[Te.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Te[Te.SET_PAGE=10]="SET_PAGE",Te[Te.GET_LANGUAGE=11]="GET_LANGUAGE",Te[Te.GET_DRAWER=12]="GET_DRAWER",Te))(nc||{});function Cl(){return new Date().getTime()}const rc={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 oc(Te,He){switch(He.type){case 1:return Oi(Oi({},Te),He.payload);case 3:return Ea(Oi({},Te),{data:He.payload});case 0:return Ea(Oi({},Te),{loading:He.payload});case 11:return Ea(Oi({},Te),{languageList:He.payload});case 12:return Ea(Oi({},Te),{drawerData:He.payload});case 9:return Ea(Oi({},Te),{showNote:He.payload});case 4:return Ea(Oi({},Te),{debuging:He.payload});case 5:return Ea(Oi({},Te),{submitting:He.payload});case 2:return Ea(Oi({},Te),{submitRecords:He.payload});case 10:return Ea(Oi({},Te),{submitRecordPage:He.payload});case 6:return Ea(Oi({},Te),{executingMessage:He.payload});case 7:return Oi(Oi({},Te),He.payload);case 8:return Oi(Oi({},Te),He.payload);default:throw new Error}}var Gl=({children:Te})=>{var He,Ve,dr,rn;const[nn,vn]=(0,E.useReducer)(oc,rc),{id:jt}=(0,pe.useParams)(),sn=(0,pe.useLocation)(),[jn]=(0,pe.useSearchParams)(),{languageValue:Lo,languageList:Ir,loading:Do,data:Cr,debugResult:vo,submitResult:jr,submitRecords:Li,submitRecordPage:eo,showNote:To,debuging:xi,submitting:fo,executingMessage:di}=nn,[qn,bi]=(0,E.useState)("#FFF"),[Ho,Yi]=(0,E.useState)(null),[is,_r]=(0,E.useState)({}),[ki,Wo]=(0,E.useState)(!1),Rr=(0,E.useRef)(null),Co=(0,E.useRef)(null),qo=Cr==null?void 0:Cr.user,Yo=Cr==null?void 0:Cr.hack;(0,E.useEffect)(()=>((0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,pe.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,E.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,E.useEffect)(()=>{var mo;if(ki){const qi=document.getElementById("oj-next"),Ja=document.getElementById("oj-modal-next");((mo=qi==null?void 0:qi.style)==null?void 0:mo.display)==="none"?Ja.style.display="none":Ja.style.display="block"}},[ki]),(0,E.useEffect)(()=>{function mo(){return ms(this,null,function*(){var qi,Ja,bs;const Zi=yield(0,ue.fu)(jt);if(Zi.status===401)document.location.href="/user/login";else{Zi.hack=Zi.practice,Zi.hack.code=Oe.Base64.decode((qi=Zi==null?void 0:Zi.hack)==null?void 0:qi.code);const js=`${qo==null?void 0:qo.login}-language`;localStorage.getItem(js)&&(Zi.hack.language=localStorage.getItem(js)),Co.current=Xl().cloneDeep(Zi),Co.current.language=(Ja=Zi==null?void 0:Zi.hack)==null?void 0:Ja.language,vn({type:1,payload:{loading:!1,data:Zi}}),vn({type:8,payload:{languageValue:(bs=Zi==null?void 0:Zi.hack)==null?void 0:bs.language}})}})}jt&&mo()},[jt]),(0,E.useEffect)(()=>{vn({type:8,payload:{debugResult:void 0}}),tl(),Wo(!1)},[jt]),(0,E.useEffect)(()=>{clearTimeout(Rr.current)},[jt]),(0,E.useEffect)(()=>{el()},[jt,eo]);const hl=()=>{window.parent.postMessage("backExercise","*")};function el(){return ms(this,null,function*(){try{const mo=yield(0,ue.zO)(jt,{limit:15,page:eo});vn({type:2,payload:mo})}catch(mo){console.log(mo)}})}function tl(){return ms(this,null,function*(){try{const mo=yield(0,ue.dd)(jt);vn({type:11,payload:mo==null?void 0:mo.data})}catch(mo){console.log(mo)}})}function al(mo){vn({type:10,payload:mo})}function Bs(mo){return ms(this,null,function*(){var qi,Ja,bs;const Zi=((bs=(Ja=(qi=window==null?void 0:window.location)==null?void 0:qi.pathname)==null?void 0:Ja.split("/"))==null?void 0:bs[2])||jt;return yield(0,ue.n4)(Zi,mo||{code:Oe.Base64.encode(Yo.code),language:Lo})})}function sl(){return ms(this,null,function*(){var mo;if(!Yo.code||((mo=Yo.code)==null?void 0:mo.trim())===""){fe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}if(!fo){vn({type:5,payload:!0});try{if(wn.Z.publish("to-commit-info"),(yield Bs()).status===0){let ml=function(){return ms(this,null,function*(){const{status:El,data:nl}=yield(0,ue.rX)(jt,"submit"),wl=Cl()-cl>(Zi*js+3)*1e3;if(El!==0&&!wl&&setTimeout(ml,1e3),wl){me.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),vn({type:5,payload:!1});return}if(El===0){nl.status===2&&me.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Zl=yield(0,ue.zO)(jt,{limit:15,page:eo});vn({type:8,payload:Ea(Oi({},nn),{submitResult:nl,submitting:!1,submitRecords:Zl})}),(nl==null?void 0:nl.status)===0&&Wo(!0)}})},Ja={};const bs=yield(0,ue.bM)(jt,Ja);if(bs.status===-1&&jn.get("exercisesId")){window.parent.location.href=`/classrooms/${jn.get("coursesId")}/exercise/${jn.get("exercisesId")}/detail`;return}const{time_limit:Zi,test_case_size:js}=Yo,cl=Cl();(bs==null?void 0:bs.status)>-1?ml():vn({type:4,payload:!1})}}catch(qi){vn({type:5,payload:!1})}}})}function Zr(){return ms(this,null,function*(){var mo;if(!Yo.code||((mo=Yo.code)==null?void 0:mo.trim())===""){fe.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}nn.debuging=!0,vn({type:4,payload:!0});try{if((yield Bs()).status===0){let cl=function(){return ms(this,null,function*(){const{status:ml,message:El,data:nl}=yield(0,ue.rX)(jt,"debug"),wl=Cl()-js>(Ja+3)*1e3;if(ml!==0&&!wl&&(vn({type:6,payload:El}),setTimeout(cl,1e3)),wl){me.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),vn({type:4,payload:!1});return}ml===0&&(vn({type:4,payload:!1}),nl.status===2&&me.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),vn({type:7,payload:Ea(Oi({},nn),{debugResult:nl,debuging:!1})}))})};const{time_limit:Ja}=Yo;let bs={input:encodeURIComponent(Cr.test_case.input)};const Zi=yield(0,ue.MU)(jt,bs);if(Zi.status===-1&&jn.get("exercisesId")){window.parent.location.href=`/classrooms/${jn.get("coursesId")}/exercise/${jn.get("exercisesId")}/detail`;return}const js=Cl();(Zi==null?void 0:Zi.status)>-1?cl():vn({type:4,payload:!1})}else vn({type:4,payload:!1})}catch(qi){console.log(qi)}finally{}})}function li(mo){var qi;clearTimeout(Rr.current),Rr.current=setTimeout(()=>{var Ja;Bs({code:Oe.Base64.encode(mo),language:(Ja=Co==null?void 0:Co.current)==null?void 0:Ja.language})},2e3),vn({type:3,payload:Ea(Oi({},Co==null?void 0:Co.current),{hack:Ea(Oi({},(qi=Co==null?void 0:Co.current)==null?void 0:qi.hack),{code:mo})})})}function Ma(mo){let qi=mo.target.value;vn({type:3,payload:Ea(Oi({},Cr),{test_case:{input:qi}})})}const Fs=mo=>ms(void 0,null,function*(){var qi;if(vn({type:0,payload:!0}),(yield Bs()).status===0){vn({type:8,payload:{languageValue:mo}}),Co.current.language=mo;const bs=`${qo==null?void 0:qo.login}-language`;localStorage.setItem(bs,mo);const Zi=yield(0,ue.dd)(jt);if(Zi.status===0){const js=(qi=Zi==null?void 0:Zi.data)==null?void 0:qi.find(cl=>cl.language===mo);li(Oe.Base64.decode(js.code))}setTimeout(()=>{vn({type:0,payload:!1})},300)}});function ps(){return ms(this,null,function*(){try{const mo=yield(0,ue.H7)(jt,{language:Lo});mo.status===401?pe.history.replace("/login",{from:sn.pathname}):(li(Oe.Base64.decode(mo.code)),tl())}catch(mo){console.log(mo)}})}function ll(){me.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 ms(this,null,function*(){const mo=yield(0,ue.fi)(jt,{language:Lo});mo.status===401?pe.history.replace("/login",{from:sn.pathname}):li(Oe.Base64.decode(mo.code))})}})}function ks(){vn({type:9,payload:!0})}function _a(){vn({type:9,payload:!1})}function Ws(mo){return ms(this,null,function*(){yield(0,ue.MK)(jt,mo),vn({type:1,payload:{showNote:!1,data:Ea(Oi({},Cr),{hack:Ea(Oi({},Yo),{notes:mo.notes})})}})})}const ic={input:(He=Cr==null?void 0:Cr.test_case)==null?void 0:He.input,is_file:(Ve=Cr==null?void 0:Cr.test_case)==null?void 0:Ve.is_file,language:((dr=Co.current)==null?void 0:dr.language)||(Yo==null?void 0:Yo.language),code:Yo==null?void 0:Yo.code,title:"main."+tc[Yo==null?void 0:Yo.language],modify_code:Yo==null?void 0:Yo.modify_code,notes:Yo==null?void 0:Yo.notes,debugResult:vo,debuging:xi,submitting:fo,executingMessage:di,id:jt,languageValue:Lo,languageList:Ir,onChangeLanguage:Fs,onCancelNote:_a,onAddNote:Ws,showNote:To,onShowNote:ks,onSubmitCode:sl,onChangeCode:li,onChangeInput:Ma,onDebugCode:Zr,onResetCode:ps,onSyncCode:ll,onUpdateCode:Bs};function ac(){return ms(this,null,function*(){const{praise_count:mo}=yield(0,ue.vl)(Yo.id,{container_type:"Hack",type:1});let qi=Ea(Oi({},Cr),{hack:Ea(Oi({},Yo),{praises_count:mo,user_praise:!Yo.user_praise})});vn({type:3,payload:qi})})}const sc={topicId:jt,submitResult:jr,submitRecords:Li,submitting:fo,page:eo,onPageChange:al,hack:Yo,user:Cr==null?void 0:Cr.user,onTriggerPraise:ac};return console.log(Cr,Co==null?void 0:Co.current,"data--------"),Vr.createElement(Vr.Fragment,null,Vr.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Do},Cr?Vr.createElement("div",{className:"oj-custom-warp"},Vr.createElement("header",{className:ke.Z.header,style:{minWidth:1200}},Vr.createElement("div",null,Vr.createElement("img",{src:`${he.Z.IMG_SERVER}/images/${qo.image_url}`,alt:"user",width:30}),Vr.createElement("span",null,qo.name)),Vr.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Vr.createElement("div",null,Yo.name),Vr.createElement(gl.Z,{onChange:mo=>{},className:"font12 c-grey-999"})),Vr.createElement(Ql.CopyToClipboard,{text:`${(rn=window.location)==null?void 0:rn.origin}/problems/${Yo.identifier}/share`,onCopy:()=>fe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Vr.createElement("span",{className:ke.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Vr.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Yo.edit_privilege?Vr.createElement(pe.Link,{className:ke.Z.btn_back,to:`/problems/${Yo.identifier}/ojedit`,style:{marginRight:10}}," ",Vr.createElement(_e.Z,null)," \u7F16\u8F91"):null,Vr.createElement(pe.Link,{className:ke.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Vr.createElement(Ee.Z,null),"\u9000\u51FA")),Vr.createElement(le.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Vr.createElement(Tl,Oi({},sc)),rightChild:Vr.createElement(Cc,Oi({},ic))})):null),Vr.createElement(me.default,{centered:!0,closable:!1,width:680,footer:null,open:ki,className:"oj-modal"},Vr.createElement("section",{className:"oj-modal-content"},Vr.createElement("div",{className:"oj-modal-head"},Vr.createElement("img",{src:Pl,alt:""}),Vr.createElement("i",{onClick:()=>Wo(!1),className:"iconfont icon-guanbi1"})),Vr.createElement("aside",null,Vr.createElement("img",{className:"mr30",src:Ns.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Vr.createElement("span",{style:{color:"#75d6ba",marginRight:100}},jr==null?void 0:jr.execute_time,"s"),"\u4F18\u4E8E",Vr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(jr==null?void 0:jr.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Vr.createElement("aside",{className:"mb50"},Vr.createElement("img",{src:os.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"},jr==null?void 0:jr.execute_memory,"mb")),Vr.createElement("span",null,Vr.createElement("span",null))),"\u4F18\u4E8E",Vr.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(jr==null?void 0:jr.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Vr.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Pc({languageValue:Te,languageList:He,onChangeLanguage:Ve,title:dr,modify_code:rn,onSyncCode:nn,onShowCodeSetting:vn,onResetCode:jt}){const sn=(0,pe.useLocation)(),jn=()=>{me.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Vr.createElement(ie.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:jt})};return Vr.createElement("div",{className:"action-bar"},Vr.createElement(ce.default,{className:"oj-select",value:Te,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Ve},He==null?void 0:He.map(Lo=>Vr.createElement(ce.default.Option,{key:Lo.language,value:Lo.language},Lo.language))),Vr.createElement("span",null),Vr.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:jn},Vr.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Vr.createElement("a",{onClick:vn},Vr.createElement("i",{className:"iconfont icon-shezhi"})))}function Cc(Te){var He=Te,{id:Ve,input:dr,is_file:rn,showNote:nn,onShowNote:vn,notes:jt,onCancelNote:sn,onAddNote:jn,debugResult:Lo,language:Ir,debuging:Do,submitting:Cr,executingMessage:vo,code:jr,onSubmitCode:Li,onDebugCode:eo,onChangeCode:To,onChangeInput:xi,onUpdateCode:fo}=He,di=ec(He,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function qn(Ho){return Vr.createElement(Pc,Ea(Oi({},di),{onShowCodeSetting:Ho}))}const bi={id:Ve,input:dr,debugResult:Lo,debuging:Do,is_file:rn,submitting:Cr,executingMessage:vo,onDebugCode:eo,onChangeCode:To,onSubmitCode:Li,onChangeInput:xi};return Vr.createElement("div",{className:"right-panel"},Vr.createElement(et,{onUpdateCode:()=>{},language:Ir,value:jr,onChange:To,ActionBarRender:qn}),Vr.createElement("div",{className:`note-form-area ${nn?"active":""}`},Vr.createElement(St,{onCancel:sn,notes:jt,callback:jn})),Vr.createElement(lt.ZP,Oi({},bi)))}},94189:function(ft,Je,te){"use strict";te.d(Je,{h:function(){return E}});var E=(_e=>(_e[_e.NOMATCH=-1]="NOMATCH",_e[_e.OK=0]="OK",_e[_e.TIMEOUT=2]="TIMEOUT",_e[_e.PODFAILURE=3]="PODFAILURE",_e[_e.COMPILEFAILURE=4]="COMPILEFAILURE",_e[_e.EXECUTEFAILURE=5]="EXECUTEFAILURE",_e[_e.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",_e))(E||{})},33227:function(ft,Je,te){"use strict";te.d(Je,{H7:function(){return ce},KC:function(){return ne},M3:function(){return b},MK:function(){return de},MU:function(){return pe},Rg:function(){return re},WH:function(){return a},X6:function(){return fe},bM:function(){return Ee},bx:function(){return y},dd:function(){return he},de:function(){return ge},fi:function(){return ue},fu:function(){return _e},gu:function(){return x},n4:function(){return le},qe:function(){return ee},rL:function(){return se},rX:function(){return me},uc:function(){return Se},vl:function(){return ie},wO:function(){return z},zO:function(){return ve}});var E=te(33170);function _e(Pe){return(0,E.U2)(`mypractices/${Pe}.json`,{hidePopLogin:!0})}function Ee(Pe,Re){return(0,E.v_)(`mypractices/${Pe}/code_submit.json`,Re)}function pe(Pe,Re){return(0,E.v_)(`mypractices/${Pe}/code_debug.json`,Re)}function ve(Pe,Re){return Re.language&&(Re.language=encodeURIComponent(Re.language)),(0,E.U2)(`mypractices/${Pe}/submit_records.json`,Re)}function fe(Pe){return(0,E.U2)("mypractices/record_detail.json",{id:Pe})}function me(Pe,Re){return(0,E.U2)(`mypractices/${Pe}/result.json`,{mode:Re})}function de(Pe,Re){return(0,E.v_)(`mypractices/${Pe}/add_notes.json`,Re)}function ce(Pe,Re){return(0,E.v_)(`mypractices/${Pe}/restore_initial_code.json`,Re)}function ue(Pe,Re){return(0,E.v_)(`mypractices/${Pe}/sync_code.json`,Re)}function le(Pe,Re){return(0,E.v_)(`mypractices/${Pe}/update_code.json`,Re)}function he(Pe){return(0,E.v_)(`mypractices/${Pe}/initial_codes.json`)}function ie(Pe,Re){return(0,E.v_)(`discusses/${Pe}/plus.json`,Re)}function ne(Pe){return(0,E.U2)("practices/practices_list.json",Pe)}function a(Pe,Re){return(0,E.U2)(`practices/${Pe}/question_solution_articles`,Re)}function y(Pe,Re){return(0,E.v_)(`practices/${Pe}/question_solution_articles`,Re)}function x(Pe,Re){return(0,E.gz)(`practices/${Pe}/question_solution_articles/${Re==null?void 0:Re.active}`,Re)}function b(Pe,Re){return(0,E.U2)(`practices/${Pe}/question_solution_articles/${Re==null?void 0:Re.active}/edit`,Re)}function z(Pe,Re){return(0,E.U2)(`practices/${Pe}/question_solution_articles/${Re==null?void 0:Re.active}`,Re)}function ee(Pe,Re){return(0,E.v_)(`practices/${Pe}/question_solution_articles/${Re==null?void 0:Re.active}/set_authority_or_excellent`,Re)}function re(Pe,Re){return(0,E.v_)(`practices/${Pe}/question_solution_articles/${Re==null?void 0:Re.active}/praise_or_treads`,Re)}function se(Pe,Re){return(0,E.v_)(`practices/${Pe}/question_solution_articles/${Re==null?void 0:Re.active}/hide`)}function ge(Pe,Re){return(0,E.IV)(`practices/${Pe}/question_solution_articles/${Re==null?void 0:Re.active}`,Re)}function Se(Pe,Re){return(0,E.v_)(`mypractices/${Pe}/update_practice_time_sum`,Re)}},93989:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return ie}});var E=te(67294),_e=te(2453),Ee=te(83062),pe=te(74330),ve=te(71230),fe=te(15746),me=te(73802),de=te(85804),ce=te(35567),ue=te(33170),le=te(85725),he=(a,y,x)=>new Promise((b,z)=>{var ee=ge=>{try{se(x.next(ge))}catch(Se){z(Se)}},re=ge=>{try{se(x.throw(ge))}catch(Se){z(Se)}},se=ge=>ge.done?b(ge.value):Promise.resolve(ge.value).then(ee,re);se((x=x.apply(a,y)).next())}),ie=({id:a,activeDiscussIndex:y,onReplyDiscuss:x,adminOrOperator:b})=>{const[z,ee]=(0,E.useState)(""),[re,se]=(0,E.useState)(!1);function ge(Pe){ee(Pe)}function Se(){if(!z){_e.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}x(a,z),ee("")}return(0,E.useEffect)(()=>{y!=a&&se(!1)},[y]),E.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},E.createElement(ce.Z,{miniToolbar:!0,startInit:y===a,defaultValue:z,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ge,extraUse:b&&E.createElement(Ee.Z,{color:"#fff",open:re,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:re,activeDiscussIndex:y,onChange:ge,setIsOpen:se}),overlayStyle:{maxWidth:600}},E.createElement("a",{title:re?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>se(!re)},E.createElement("i",{className:"iconfont icon-dianzan11"})))}),E.createElement("a",{onClick:Se,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,x]=(0,E.useState)(!1),[b,z]=(0,E.useState)([]),[ee,re]=(0,E.useState)(1);(0,E.useEffect)(()=>{a!=null&&a.isOpen?se():(re(1),z([]))},[a==null?void 0:a.isOpen]);const se=()=>he(void 0,null,function*(){x(!0);const ge=yield(0,ue.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ge==null?void 0:ge.status)==0&&z(ge==null?void 0:ge.answer),x(!1)});return E.createElement(pe.Z,{spinning:y},E.createElement("div",{style:{color:"#000"}},E.createElement(le.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[ee-1])||""}),E.createElement(ve.Z,{justify:"end",align:"middle"},E.createElement(fe.Z,null,E.createElement(me.Z,{simple:!0,current:ee,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ge=>{re(ge)}})),E.createElement(fe.Z,null,E.createElement(de.ZP,{onClick:()=>he(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(ft,Je,te){"use strict";te.d(Je,{BU:function(){return _e},Dj:function(){return E},gH:function(){return Ee},vp:function(){return pe}});function E(ve){try{ve.mozRequestFullScreen?ve.mozRequestFullScreen():ve.webkitRequestFullScreen&&ve.webkitRequestFullScreen()}catch(fe){console.log(fe,":e")}}function _e(){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 Ee=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function pe(){var ve=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,fe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",ve),window.isFullScreen?window.isFullScreen:ve!=null}},40471:function(ft,Je,te){"use strict";te.d(Je,{G:function(){return ve},t:function(){return pe}});var E=te(58971),_e=te.n(E);const Ee=null;function pe(fe,me){let de=_e().get("__ec");de||(de={}),de[fe]=me,_e().set("__ec",de)}function ve(fe,me){let de=_e().get("__ec");return de?de[fe]===void 0?me:de[fe]:me}},24577:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return ai}});class E{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(oe,ae){return oe.__proto__=ae,oe},Object.assign=Object.assign||function(oe){if(oe==null)throw new TypeError("Cannot convert undefined or null to object");let ae=Object(oe);for(let be=1;be<arguments.length;be++){let we=arguments[be];if(we!=null)for(let Ae in we)we.hasOwnProperty(Ae)&&(ae[Ae]=we[Ae])}return ae},typeof self.Promise!="function"&&te(82702).polyfill()}}E.install();var _e=E,Ee=te(17187),pe=te.n(Ee);class ve{static e(oe,ae){(!oe||ve.FORCE_GLOBAL_TAG)&&(oe=ve.GLOBAL_TAG);let be=`[${oe}] > ${ae}`;ve.ENABLE_CALLBACK&&ve.emitter.emit("log","error",be),ve.ENABLE_ERROR&&(console.error?console.error(be):console.warn?console.warn(be):console.log(be))}static i(oe,ae){(!oe||ve.FORCE_GLOBAL_TAG)&&(oe=ve.GLOBAL_TAG);let be=`[${oe}] > ${ae}`;ve.ENABLE_CALLBACK&&ve.emitter.emit("log","info",be),ve.ENABLE_INFO&&(console.info?console.info(be):console.log(be))}static w(oe,ae){(!oe||ve.FORCE_GLOBAL_TAG)&&(oe=ve.GLOBAL_TAG);let be=`[${oe}] > ${ae}`;ve.ENABLE_CALLBACK&&ve.emitter.emit("log","warn",be),ve.ENABLE_WARN&&(console.warn?console.warn(be):console.log(be))}static d(oe,ae){(!oe||ve.FORCE_GLOBAL_TAG)&&(oe=ve.GLOBAL_TAG);let be=`[${oe}] > ${ae}`;ve.ENABLE_CALLBACK&&ve.emitter.emit("log","debug",be),ve.ENABLE_DEBUG&&(console.debug?console.debug(be):console.log(be))}static v(oe,ae){(!oe||ve.FORCE_GLOBAL_TAG)&&(oe=ve.GLOBAL_TAG);let be=`[${oe}] > ${ae}`;ve.ENABLE_CALLBACK&&ve.emitter.emit("log","verbose",be),ve.ENABLE_VERBOSE&&console.log(be)}}ve.GLOBAL_TAG="flv.js",ve.FORCE_GLOBAL_TAG=!1,ve.ENABLE_ERROR=!0,ve.ENABLE_INFO=!0,ve.ENABLE_WARN=!0,ve.ENABLE_DEBUG=!0,ve.ENABLE_VERBOSE=!0,ve.ENABLE_CALLBACK=!1,ve.emitter=new(pe());var fe=ve;class me{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(oe){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=oe,this._totalBytes+=oe):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=oe,this._totalBytes+=oe):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=oe,this._totalBytes+=oe,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let oe=(this._now()-this._lastCheckpoint)/1e3;return oe==0&&(oe=1),this._intervalBytes/oe/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let oe=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/oe/1024}}var de=me;class ce{constructor(oe){this._message=oe}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ue extends ce{constructor(oe){super(oe)}get name(){return"IllegalStateException"}}class le extends ce{constructor(oe){super(oe)}get name(){return"InvalidArgumentException"}}class he extends ce{constructor(oe){super(oe)}get name(){return"NotImplementedException"}}const ie={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(oe){this._type=oe||"undefined",this._status=ie.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=ie.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===ie.kConnecting||this._status===ie.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(oe){this._onContentLengthKnown=oe}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(oe){this._onURLRedirect=oe}get onDataArrival(){return this._onDataArrival}set onDataArrival(oe){this._onDataArrival=oe}get onError(){return this._onError}set onError(oe){this._onError=oe}get onComplete(){return this._onComplete}set onComplete(oe){this._onComplete=oe}open(oe,ae){throw new he("Unimplemented abstract function!")}abort(){throw new he("Unimplemented abstract function!")}}let y={};function x(){let ln=self.navigator.userAgent.toLowerCase(),oe=/(edge)\/([\w.]+)/.exec(ln)||/(opr)[\/]([\w.]+)/.exec(ln)||/(chrome)[ \/]([\w.]+)/.exec(ln)||/(iemobile)[\/]([\w.]+)/.exec(ln)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ln)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(ln)||/(webkit)[ \/]([\w.]+)/.exec(ln)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ln)||/(msie) ([\w.]+)/.exec(ln)||ln.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(ln)||ln.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(ln)||[],ae=/(ipad)/.exec(ln)||/(ipod)/.exec(ln)||/(windows phone)/.exec(ln)||/(iphone)/.exec(ln)||/(kindle)/.exec(ln)||/(android)/.exec(ln)||/(windows)/.exec(ln)||/(mac)/.exec(ln)||/(linux)/.exec(ln)||/(cros)/.exec(ln)||[],be={browser:oe[5]||oe[3]||oe[1]||"",version:oe[2]||oe[4]||"0",majorVersion:oe[4]||oe[2]||"0",platform:ae[0]||""},we={};if(be.browser){we[be.browser]=!0;let Ae=be.majorVersion.split(".");we.version={major:parseInt(be.majorVersion,10),string:be.version},Ae.length>1&&(we.version.minor=parseInt(Ae[1],10)),Ae.length>2&&(we.version.build=parseInt(Ae[2],10))}if(be.platform&&(we[be.platform]=!0),(we.chrome||we.opr||we.safari)&&(we.webkit=!0),we.rv||we.iemobile){we.rv&&delete we.rv;let Ae="msie";be.browser=Ae,we[Ae]=!0}if(we.edge){delete we.edge;let Ae="msedge";be.browser=Ae,we[Ae]=!0}if(we.opr){let Ae="opera";be.browser=Ae,we[Ae]=!0}if(we.safari&&we.android){let Ae="android";be.browser=Ae,we[Ae]=!0}we.name=be.browser,we.platform=be.platform;for(let Ae in y)y.hasOwnProperty(Ae)&&delete y[Ae];Object.assign(y,we)}x();var b=y;class z extends a{static isSupported(){try{let oe=b.msedge&&b.version.minor>=15048,ae=b.msedge?oe:!0;return self.fetch&&self.ReadableStream&&ae}catch(oe){return!1}}constructor(oe,ae){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=oe,this._config=ae,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(oe,ae){this._dataSource=oe,this._range=ae;let be=oe.url;this._config.reuseRedirectedURL&&oe.redirectedURL!=null&&(be=oe.redirectedURL);let we=this._seekHandler.getConfig(be,ae),Ae=new self.Headers;if(typeof we.headers=="object"){let it=we.headers;for(let Vt in it)it.hasOwnProperty(Vt)&&Ae.append(Vt,it[Vt])}let nt={method:"GET",headers:Ae,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let it in this._config.headers)Ae.append(it,this._config.headers[it]);oe.cors===!1&&(nt.mode="same-origin"),oe.withCredentials&&(nt.credentials="include"),oe.referrerPolicy&&(nt.referrerPolicy=oe.referrerPolicy),this._status=ie.kConnecting,self.fetch(we.url,nt).then(it=>{if(this._requestAbort){this._requestAbort=!1,this._status=ie.kIdle;return}if(it.ok&&it.status>=200&&it.status<=299){if(it.url!==we.url&&this._onURLRedirect){let It=this._seekHandler.removeURLParameters(it.url);this._onURLRedirect(It)}let Vt=it.headers.get("Content-Length");return Vt!=null&&(this._contentLength=parseInt(Vt),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,it.body.getReader())}else if(this._status=ie.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:it.status,msg:it.statusText});else throw new ce("FetchStreamLoader: Http code invalid, "+it.status+" "+it.statusText)}).catch(it=>{if(this._status=ie.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:it.message});else throw it})}abort(){this._requestAbort=!0}_pump(oe){return oe.read().then(ae=>{if(ae.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=ie.kError;let be=ne.EARLY_EOF,we={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(be,we);else throw new ce(we.msg)}else this._status=ie.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=ie.kComplete,oe.cancel();this._status=ie.kBuffering;let be=ae.value.buffer,we=this._range.from+this._receivedLength;this._receivedLength+=be.byteLength,this._onDataArrival&&this._onDataArrival(be,we,this._receivedLength),this._pump(oe)}}).catch(ae=>{if(ae.code===11&&b.msedge)return;this._status=ie.kError;let be=0,we=null;if((ae.code===19||ae.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(be=ne.EARLY_EOF,we={code:ae.code,msg:"Fetch stream meet Early-EOF"}):(be=ne.EXCEPTION,we={code:ae.code,msg:ae.message}),this._onError)this._onError(be,we);else throw new ce(we.msg)})}}var ee=z;class re extends a{static isSupported(){try{let oe=new XMLHttpRequest;return oe.open("GET","https://example.com",!0),oe.responseType="moz-chunked-arraybuffer",oe.responseType==="moz-chunked-arraybuffer"}catch(oe){return fe.w("MozChunkedLoader",oe.message),!1}}constructor(oe,ae){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=oe,this._config=ae,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(oe,ae){this._dataSource=oe,this._range=ae;let be=oe.url;this._config.reuseRedirectedURL&&oe.redirectedURL!=null&&(be=oe.redirectedURL);let we=this._seekHandler.getConfig(be,ae);this._requestURL=we.url;let Ae=this._xhr=new XMLHttpRequest;if(Ae.open("GET",we.url,!0),Ae.responseType="moz-chunked-arraybuffer",Ae.onreadystatechange=this._onReadyStateChange.bind(this),Ae.onprogress=this._onProgress.bind(this),Ae.onloadend=this._onLoadEnd.bind(this),Ae.onerror=this._onXhrError.bind(this),oe.withCredentials&&(Ae.withCredentials=!0),typeof we.headers=="object"){let nt=we.headers;for(let it in nt)nt.hasOwnProperty(it)&&Ae.setRequestHeader(it,nt[it])}if(typeof this._config.headers=="object"){let nt=this._config.headers;for(let it in nt)nt.hasOwnProperty(it)&&Ae.setRequestHeader(it,nt[it])}this._status=ie.kConnecting,Ae.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=ie.kComplete}_onReadyStateChange(oe){let ae=oe.target;if(ae.readyState===2){if(ae.responseURL!=null&&ae.responseURL!==this._requestURL&&this._onURLRedirect){let be=this._seekHandler.removeURLParameters(ae.responseURL);this._onURLRedirect(be)}if(ae.status!==0&&(ae.status<200||ae.status>299))if(this._status=ie.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ae.status,msg:ae.statusText});else throw new ce("MozChunkedLoader: Http code invalid, "+ae.status+" "+ae.statusText);else this._status=ie.kBuffering}}_onProgress(oe){if(this._status===ie.kError)return;this._contentLength===null&&oe.total!==null&&oe.total!==0&&(this._contentLength=oe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ae=oe.target.response,be=this._range.from+this._receivedLength;this._receivedLength+=ae.byteLength,this._onDataArrival&&this._onDataArrival(ae,be,this._receivedLength)}_onLoadEnd(oe){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===ie.kError)return;this._status=ie.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(oe){this._status=ie.kError;let ae=0,be=null;if(this._contentLength&&oe.loaded<this._contentLength?(ae=ne.EARLY_EOF,be={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(ae=ne.EXCEPTION,be={code:-1,msg:oe.constructor.name+" "+oe.type}),this._onError)this._onError(ae,be);else throw new ce(be.msg)}}var se=re;class ge extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let oe=new XMLHttpRequest;return oe.open("GET","https://example.com",!0),oe.responseType="ms-stream",oe.responseType==="ms-stream"}catch(oe){return Log.w("MSStreamLoader",oe.message),!1}}constructor(oe,ae){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=oe,this._config=ae,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(oe,ae){this._internalOpen(oe,ae,!1)}_internalOpen(oe,ae,be){this._dataSource=oe,be?this._currentRange=ae:this._totalRange=ae;let we=oe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?we=this._currentRedirectedURL:oe.redirectedURL!=null&&(we=oe.redirectedURL));let Ae=this._seekHandler.getConfig(we,ae);this._currentRequestURL=Ae.url;let nt=this._reader=new self.MSStreamReader;nt.onprogress=this._msrOnProgress.bind(this),nt.onload=this._msrOnLoad.bind(this),nt.onerror=this._msrOnError.bind(this);let it=this._xhr=new XMLHttpRequest;if(it.open("GET",Ae.url,!0),it.responseType="ms-stream",it.onreadystatechange=this._xhrOnReadyStateChange.bind(this),it.onerror=this._xhrOnError.bind(this),oe.withCredentials&&(it.withCredentials=!0),typeof Ae.headers=="object"){let Vt=Ae.headers;for(let It in Vt)Vt.hasOwnProperty(It)&&it.setRequestHeader(It,Vt[It])}if(typeof this._config.headers=="object"){let Vt=this._config.headers;for(let It in Vt)Vt.hasOwnProperty(It)&&it.setRequestHeader(It,Vt[It])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,it.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(oe){let ae=oe.target;if(ae.readyState===2)if(ae.status>=200&&ae.status<=299){if(this._status=LoaderStatus.kBuffering,ae.responseURL!=null){let we=this._seekHandler.removeURLParameters(ae.responseURL);ae.responseURL!==this._currentRequestURL&&we!==this._currentRedirectedURL&&(this._currentRedirectedURL=we,this._onURLRedirect&&this._onURLRedirect(we))}let be=ae.getResponseHeader("Content-Length");if(be!=null&&this._contentLength==null){let we=parseInt(be);we>0&&(this._contentLength=we,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:ae.status,msg:ae.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ae.status+" "+ae.statusText);else if(ae.readyState===3&&ae.status>=200&&ae.status<=299){this._status=LoaderStatus.kBuffering;let be=ae.response;this._reader.readAsArrayBuffer(be)}}_xhrOnError(oe){this._status=LoaderStatus.kError;let ae=LoaderErrors.EXCEPTION,be={code:-1,msg:oe.constructor.name+" "+oe.type};if(this._onError)this._onError(ae,be);else throw new RuntimeException(be.msg)}_msrOnProgress(oe){let be=oe.target.result;if(be==null){this._doReconnectIfNeeded();return}let we=be.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=be.byteLength;let Ae=this._totalRange.from+this._receivedLength;this._receivedLength+=we.byteLength,this._onDataArrival&&this._onDataArrival(we,Ae,this._receivedLength),be.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Ae+we.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let oe={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,oe,!0)}}_msrOnLoad(oe){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(oe){this._status=LoaderStatus.kError;let ae=0,be=null;if(this._contentLength&&this._receivedLength<this._contentLength?(ae=LoaderErrors.EARLY_EOF,be={code:-1,msg:"MSStream meet Early-Eof"}):(ae=LoaderErrors.EARLY_EOF,be={code:-1,msg:oe.constructor.name+" "+oe.type}),this._onError)this._onError(ae,be);else throw new RuntimeException(be.msg)}}var Se=null;class Pe extends a{static isSupported(){try{let oe=new XMLHttpRequest;return oe.open("GET","https://example.com",!0),oe.responseType="arraybuffer",oe.responseType==="arraybuffer"}catch(oe){return fe.w("RangeLoader",oe.message),!1}}constructor(oe,ae){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=oe,this._config=ae,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(oe,ae){this._dataSource=oe,this._range=ae,this._status=ie.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 oe=this._currentChunkSizeKB*1024,ae=this._range.from+this._receivedLength,be=ae+oe;this._contentLength!=null&&be-this._range.from>=this._contentLength&&(be=this._range.from+this._contentLength-1),this._currentRequestRange={from:ae,to:be},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(oe,ae){this._lastTimeLoaded=0;let be=oe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?be=this._currentRedirectedURL:oe.redirectedURL!=null&&(be=oe.redirectedURL));let we=this._seekHandler.getConfig(be,ae);this._currentRequestURL=we.url;let Ae=this._xhr=new XMLHttpRequest;if(Ae.open("GET",we.url,!0),Ae.responseType="arraybuffer",Ae.onreadystatechange=this._onReadyStateChange.bind(this),Ae.onprogress=this._onProgress.bind(this),Ae.onload=this._onLoad.bind(this),Ae.onerror=this._onXhrError.bind(this),oe.withCredentials&&(Ae.withCredentials=!0),typeof we.headers=="object"){let nt=we.headers;for(let it in nt)nt.hasOwnProperty(it)&&Ae.setRequestHeader(it,nt[it])}if(typeof this._config.headers=="object"){let nt=this._config.headers;for(let it in nt)nt.hasOwnProperty(it)&&Ae.setRequestHeader(it,nt[it])}Ae.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=ie.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(oe){let ae=oe.target;if(ae.readyState===2){if(ae.responseURL!=null){let be=this._seekHandler.removeURLParameters(ae.responseURL);ae.responseURL!==this._currentRequestURL&&be!==this._currentRedirectedURL&&(this._currentRedirectedURL=be,this._onURLRedirect&&this._onURLRedirect(be))}if(ae.status>=200&&ae.status<=299){if(this._waitForTotalLength)return;this._status=ie.kBuffering}else if(this._status=ie.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ae.status,msg:ae.statusText});else throw new ce("RangeLoader: Http code invalid, "+ae.status+" "+ae.statusText)}}_onProgress(oe){if(this._status===ie.kError)return;if(this._contentLength===null){let be=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,be=!0;let we=oe.total;this._internalAbort(),we!=null&we!==0&&(this._totalLength=we)}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 ae=oe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=oe.loaded,this._speedSampler.addBytes(ae)}_normalizeSpeed(oe){let ae=this._chunkSizeKBList,be=ae.length-1,we=0,Ae=0,nt=be;if(oe<ae[0])return ae[0];for(;Ae<=nt;){if(we=Ae+Math.floor((nt-Ae)/2),we===be||oe>=ae[we]&&oe<ae[we+1])return ae[we];ae[we]<oe?Ae=we+1:nt=we-1}}_onLoad(oe){if(this._status===ie.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let ae=this._speedSampler.lastSecondKBps;if(ae===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(ae=this._speedSampler.currentKBps)),ae!==0){let nt=this._normalizeSpeed(ae);this._currentSpeedNormalized!==nt&&(this._currentSpeedNormalized=nt,this._currentChunkSizeKB=nt)}let be=oe.target.response,we=this._range.from+this._receivedLength;this._receivedLength+=be.byteLength;let Ae=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Ae=!0,this._onDataArrival&&this._onDataArrival(be,we,this._receivedLength),Ae&&(this._status=ie.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(oe){this._status=ie.kError;let ae=0,be=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(ae=ne.EARLY_EOF,be={code:-1,msg:"RangeLoader meet Early-Eof"}):(ae=ne.EXCEPTION,be={code:-1,msg:oe.constructor.name+" "+oe.type}),this._onError)this._onError(ae,be);else throw new ce(be.msg)}}var Re=Pe;class Le extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(oe){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(oe){try{let ae=this._ws=new self.WebSocket(oe.url);ae.binaryType="arraybuffer",ae.onopen=this._onWebSocketOpen.bind(this),ae.onclose=this._onWebSocketClose.bind(this),ae.onmessage=this._onWebSocketMessage.bind(this),ae.onerror=this._onWebSocketError.bind(this),this._status=ie.kConnecting}catch(ae){this._status=ie.kError;let be={code:ae.code,msg:ae.message};if(this._onError)this._onError(ne.EXCEPTION,be);else throw new ce(be.msg)}}abort(){let oe=this._ws;oe&&(oe.readyState===0||oe.readyState===1)&&(this._requestAbort=!0,oe.close()),this._ws=null,this._status=ie.kComplete}_onWebSocketOpen(oe){this._status=ie.kBuffering}_onWebSocketClose(oe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=ie.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(oe){if(oe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(oe.data);else if(oe.data instanceof Blob){let ae=new FileReader;ae.onload=()=>{this._dispatchArrayBuffer(ae.result)},ae.readAsArrayBuffer(oe.data)}else{this._status=ie.kError;let ae={code:-1,msg:"Unsupported WebSocket message type: "+oe.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,ae);else throw new ce(ae.msg)}}_dispatchArrayBuffer(oe){let ae=oe,be=this._receivedLength;this._receivedLength+=ae.byteLength,this._onDataArrival&&this._onDataArrival(ae,be,this._receivedLength)}_onWebSocketError(oe){this._status=ie.kError;let ae={code:oe.code,msg:oe.message};if(this._onError)this._onError(ne.EXCEPTION,ae);else throw new ce(ae.msg)}}var Fe=Le;class Ie{constructor(oe){this._zeroStart=oe||!1}getConfig(oe,ae){let be={};if(ae.from!==0||ae.to!==-1){let we;ae.to!==-1?we=`bytes=${ae.from.toString()}-${ae.to.toString()}`:we=`bytes=${ae.from.toString()}-`,be.Range=we}else this._zeroStart&&(be.Range="bytes=0-");return{url:oe,headers:be}}removeURLParameters(oe){return oe}}var vt=Ie;class at{constructor(oe,ae){this._startName=oe,this._endName=ae}getConfig(oe,ae){let be=oe;if(ae.from!==0||ae.to!==-1){let we=!0;be.indexOf("?")===-1&&(be+="?",we=!1),we&&(be+="&"),be+=`${this._startName}=${ae.from.toString()}`,ae.to!==-1&&(be+=`&${this._endName}=${ae.to.toString()}`)}return{url:be,headers:{}}}removeURLParameters(oe){let ae=oe.split("?")[0],be,we=oe.indexOf("?");we!==-1&&(be=oe.substring(we+1));let Ae="";if(be!=null&&be.length>0){let nt=be.split("&");for(let it=0;it<nt.length;it++){let Vt=nt[it].split("="),It=it>0;Vt[0]!==this._startName&&Vt[0]!==this._endName&&(It&&(Ae+="&"),Ae+=nt[it])}}return Ae.length===0?ae:ae+"?"+Ae}}var et=at;class De{constructor(oe,ae,be){this.TAG="IOController",this._config=ae,this._extraData=be,this._stashInitialSize=1024*384,ae.stashInitialSize!=null&&ae.stashInitialSize>0&&(this._stashInitialSize=ae.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,ae.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=oe,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(oe.url),this._refTotalLength=oe.filesize?oe.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(oe){this._extraData=oe}get onDataArrival(){return this._onDataArrival}set onDataArrival(oe){this._onDataArrival=oe}get onSeeked(){return this._onSeeked}set onSeeked(oe){this._onSeeked=oe}get onError(){return this._onError}set onError(oe){this._onError=oe}get onComplete(){return this._onComplete}set onComplete(oe){this._onComplete=oe}get onRedirect(){return this._onRedirect}set onRedirect(oe){this._onRedirect=oe}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(oe){this._onRecoveredEarlyEof=oe}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===Re?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let oe=this._config;if(oe.seekType==="range")this._seekHandler=new vt(this._config.rangeLoadZeroStart);else if(oe.seekType==="param"){let ae=oe.seekParamStart||"bstart",be=oe.seekParamEnd||"bend";this._seekHandler=new et(ae,be)}else if(oe.seekType==="custom"){if(typeof oe.customSeekHandler!="function")throw new le("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new oe.customSeekHandler}else throw new le(`Invalid seekType in config: ${oe.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(se.isSupported())this._loaderClass=se;else if(Re.isSupported())this._loaderClass=Re;else throw new ce("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(oe){this._currentRange={from:0,to:-1},oe&&(this._currentRange.from=oe),this._speedSampler.reset(),oe||(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 oe=this._resumeFrom;this._resumeFrom=0,this._internalSeek(oe,!0)}}seek(oe){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(oe,!0)}_internalSeek(oe,ae){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ae),this._loader.destroy(),this._loader=null;let be={from:oe,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(oe){if(!oe||typeof oe!="string"||oe.length===0)throw new le("Url must be a non-empty string!");this._dataSource.url=oe}_expandBuffer(oe){let ae=this._stashSize;for(;ae+1024*1024*1<oe;)ae*=2;if(ae+=1024*1024*1,ae===this._bufferSize)return;let be=new ArrayBuffer(ae);if(this._stashUsed>0){let we=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(be,0,ae).set(we,0)}this._stashBuffer=be,this._bufferSize=ae}_normalizeSpeed(oe){let ae=this._speedNormalizeList,be=ae.length-1,we=0,Ae=0,nt=be;if(oe<ae[0])return ae[0];for(;Ae<=nt;){if(we=Ae+Math.floor((nt-Ae)/2),we===be||oe>=ae[we]&&oe<ae[we+1])return ae[we];ae[we]<oe?Ae=we+1:nt=we-1}}_adjustStashSize(oe){let ae=0;this._config.isLive||oe<512?ae=oe:oe>=512&&oe<=1024?ae=Math.floor(oe*1.5):ae=oe*2,ae>8192&&(ae=8192);let be=ae*1024+1024*1024*1;this._bufferSize<be&&this._expandBuffer(be),this._stashSize=ae*1024}_dispatchChunks(oe,ae){return this._currentRange.to=ae+oe.byteLength-1,this._onDataArrival(oe,ae)}_onURLRedirect(oe){this._redirectedURL=oe,this._onRedirect&&this._onRedirect(oe)}_onContentLengthKnown(oe){oe&&this._fullRequestFlag&&(this._totalLength=oe,this._fullRequestFlag=!1)}_onLoaderChunkArrival(oe,ae,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(oe.byteLength);let we=this._speedSampler.lastSecondKBps;if(we!==0){let Ae=this._normalizeSpeed(we);this._speedNormalized!==Ae&&(this._speedNormalized=Ae,this._adjustStashSize(Ae))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ae),this._stashUsed+oe.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(oe),this._stashUsed),this._stashUsed+=oe.byteLength;else{let Ae=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let nt=this._stashBuffer.slice(0,this._stashUsed),it=this._dispatchChunks(nt,this._stashByteStart);if(it<nt.byteLength){if(it>0){let Vt=new Uint8Array(nt,it);Ae.set(Vt,0),this._stashUsed=Vt.byteLength,this._stashByteStart+=it}}else this._stashUsed=0,this._stashByteStart+=it;this._stashUsed+oe.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+oe.byteLength),Ae=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ae.set(new Uint8Array(oe),this._stashUsed),this._stashUsed+=oe.byteLength}else{let nt=this._dispatchChunks(oe,ae);if(nt<oe.byteLength){let it=oe.byteLength-nt;it>this._bufferSize&&(this._expandBuffer(it),Ae=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Ae.set(new Uint8Array(oe,nt),0),this._stashUsed+=it,this._stashByteStart=ae+nt}}}else if(this._stashUsed===0){let Ae=this._dispatchChunks(oe,ae);if(Ae<oe.byteLength){let nt=oe.byteLength-Ae;nt>this._bufferSize&&this._expandBuffer(nt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(oe,Ae),0),this._stashUsed+=nt,this._stashByteStart=ae+Ae}}else{this._stashUsed+oe.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+oe.byteLength);let Ae=new Uint8Array(this._stashBuffer,0,this._bufferSize);Ae.set(new Uint8Array(oe),this._stashUsed),this._stashUsed+=oe.byteLength;let nt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(nt<this._stashUsed&&nt>0){let it=new Uint8Array(this._stashBuffer,nt);Ae.set(it,0)}this._stashUsed-=nt,this._stashByteStart+=nt}}_flushStashBuffer(oe){if(this._stashUsed>0){let ae=this._stashBuffer.slice(0,this._stashUsed),be=this._dispatchChunks(ae,this._stashByteStart),we=ae.byteLength-be;if(be<ae.byteLength)if(oe)fe.w(this.TAG,`${we} bytes unconsumed data remain when flush buffer, dropped`);else{if(be>0){let Ae=new Uint8Array(this._stashBuffer,0,this._bufferSize),nt=new Uint8Array(ae,be);Ae.set(nt,0),this._stashUsed=nt.byteLength,this._stashByteStart+=be}return 0}return this._stashUsed=0,this._stashByteStart=0,we}return 0}_onLoaderComplete(oe,ae){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(oe,ae){switch(fe.e(this.TAG,`Loader error, code = ${ae.code}, msg = ${ae.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,oe=ne.UNRECOVERABLE_EARLY_EOF),oe){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let be=this._currentRange.to+1;be<this._totalLength&&(fe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(be,!1));return}oe=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(oe,ae);else throw new ce("IOException: "+ae.msg)}}var Oe=De;const ke={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 lt(){return Object.assign({},ke)}class Xe{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let oe=new Oe({},lt()),ae=oe.loaderType;return oe.destroy(),ae=="fetch-stream-loader"||ae=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let oe=new Oe({},lt()),ae=oe.loaderType;return oe.destroy(),ae}static supportNativeMediaPlayback(oe){Xe.videoElement==null&&(Xe.videoElement=window.document.createElement("video"));let ae=Xe.videoElement.canPlayType(oe);return ae==="probably"||ae=="maybe"}static getFeatureList(){let oe={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return oe.mseFlvPlayback=Xe.supportMSEH264Playback(),oe.networkStreamIO=Xe.supportNetworkStreamIO(),oe.networkLoaderName=Xe.getNetworkLoaderTypeName(),oe.mseLiveFlvPlayback=oe.mseFlvPlayback&&oe.networkStreamIO,oe.nativeMP4H264Playback=Xe.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),oe.nativeWebmVP8Playback=Xe.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),oe.nativeWebmVP9Playback=Xe.supportNativeMediaPlayback('video/webm; codecs="vp9"'),oe}}var xt=Xe,Dt={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class Kt{static get forceGlobalTag(){return fe.FORCE_GLOBAL_TAG}static set forceGlobalTag(oe){fe.FORCE_GLOBAL_TAG=oe,Kt._notifyChange()}static get globalTag(){return fe.GLOBAL_TAG}static set globalTag(oe){fe.GLOBAL_TAG=oe,Kt._notifyChange()}static get enableAll(){return fe.ENABLE_VERBOSE&&fe.ENABLE_DEBUG&&fe.ENABLE_INFO&&fe.ENABLE_WARN&&fe.ENABLE_ERROR}static set enableAll(oe){fe.ENABLE_VERBOSE=oe,fe.ENABLE_DEBUG=oe,fe.ENABLE_INFO=oe,fe.ENABLE_WARN=oe,fe.ENABLE_ERROR=oe,Kt._notifyChange()}static get enableDebug(){return fe.ENABLE_DEBUG}static set enableDebug(oe){fe.ENABLE_DEBUG=oe,Kt._notifyChange()}static get enableVerbose(){return fe.ENABLE_VERBOSE}static set enableVerbose(oe){fe.ENABLE_VERBOSE=oe,Kt._notifyChange()}static get enableInfo(){return fe.ENABLE_INFO}static set enableInfo(oe){fe.ENABLE_INFO=oe,Kt._notifyChange()}static get enableWarn(){return fe.ENABLE_WARN}static set enableWarn(oe){fe.ENABLE_WARN=oe,Kt._notifyChange()}static get enableError(){return fe.ENABLE_ERROR}static set enableError(oe){fe.ENABLE_ERROR=oe,Kt._notifyChange()}static getConfig(){return{globalTag:fe.GLOBAL_TAG,forceGlobalTag:fe.FORCE_GLOBAL_TAG,enableVerbose:fe.ENABLE_VERBOSE,enableDebug:fe.ENABLE_DEBUG,enableInfo:fe.ENABLE_INFO,enableWarn:fe.ENABLE_WARN,enableError:fe.ENABLE_ERROR,enableCallback:fe.ENABLE_CALLBACK}}static applyConfig(oe){fe.GLOBAL_TAG=oe.globalTag,fe.FORCE_GLOBAL_TAG=oe.forceGlobalTag,fe.ENABLE_VERBOSE=oe.enableVerbose,fe.ENABLE_DEBUG=oe.enableDebug,fe.ENABLE_INFO=oe.enableInfo,fe.ENABLE_WARN=oe.enableWarn,fe.ENABLE_ERROR=oe.enableError,fe.ENABLE_CALLBACK=oe.enableCallback}static _notifyChange(){let oe=Kt.emitter;if(oe.listenerCount("change")>0){let ae=Kt.getConfig();oe.emit("change",ae)}}static registerListener(oe){Kt.emitter.addListener("change",oe)}static removeListener(oe){Kt.emitter.removeListener("change",oe)}static addLogListener(oe){fe.emitter.addListener("log",oe),fe.emitter.listenerCount("log")>0&&(fe.ENABLE_CALLBACK=!0,Kt._notifyChange())}static removeLogListener(oe){fe.emitter.removeListener("log",oe),fe.emitter.listenerCount("log")===0&&(fe.ENABLE_CALLBACK=!1,Kt._notifyChange())}}Kt.emitter=new(pe());var St=Kt;class gt{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 oe=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ae=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&&oe&&ae}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(oe){if(this.keyframesIndex==null)return null;let ae=this.keyframesIndex,be=this._search(ae.times,oe);return{index:be,milliseconds:ae.times[be],fileposition:ae.filepositions[be]}}_search(oe,ae){let be=0,we=oe.length-1,Ae=0,nt=0,it=we;for(ae<oe[0]&&(be=0,nt=it+1);nt<=it;)if(Ae=nt+Math.floor((it-nt)/2),Ae===we||ae>=oe[Ae]&&ae<oe[Ae+1]){be=Ae;break}else oe[Ae]<ae?nt=Ae+1:it=Ae-1;return be}}var ht=gt;function Qt(ln,oe,ae){let be=ln;if(oe+ae<be.length){for(;ae--;)if((be[++oe]&192)!==128)return!1;return!0}else return!1}function yt(ln){let oe=[],ae=ln,be=0,we=ln.length;for(;be<we;){if(ae[be]<128){oe.push(String.fromCharCode(ae[be])),++be;continue}else if(!(ae[be]<192)){if(ae[be]<224){if(Qt(ae,be,1)){let Ae=(ae[be]&31)<<6|ae[be+1]&63;if(Ae>=128){oe.push(String.fromCharCode(Ae&65535)),be+=2;continue}}}else if(ae[be]<240){if(Qt(ae,be,2)){let Ae=(ae[be]&15)<<12|(ae[be+1]&63)<<6|ae[be+2]&63;if(Ae>=2048&&(Ae&63488)!==55296){oe.push(String.fromCharCode(Ae&65535)),be+=3;continue}}}else if(ae[be]<248&&Qt(ae,be,3)){let Ae=(ae[be]&7)<<18|(ae[be+1]&63)<<12|(ae[be+2]&63)<<6|ae[be+3]&63;if(Ae>65536&&Ae<1114112){Ae-=65536,oe.push(String.fromCharCode(Ae>>>10|55296)),oe.push(String.fromCharCode(Ae&1023|56320)),be+=4;continue}}}oe.push("\uFFFD"),++be}return oe.join("")}var Zt=yt;let Ye=function(){let ln=new ArrayBuffer(2);return new DataView(ln).setInt16(0,256,!0),new Int16Array(ln)[0]===256}();class Gt{static parseScriptData(oe,ae,be){let we={};try{let Ae=Gt.parseValue(oe,ae,be),nt=Gt.parseValue(oe,ae+Ae.size,be-Ae.size);we[Ae.data]=nt.data}catch(Ae){fe.e("AMF",Ae.toString())}return we}static parseObject(oe,ae,be){if(be<3)throw new ue("Data not enough when parse ScriptDataObject");let we=Gt.parseString(oe,ae,be),Ae=Gt.parseValue(oe,ae+we.size,be-we.size),nt=Ae.objectEnd;return{data:{name:we.data,value:Ae.data},size:we.size+Ae.size,objectEnd:nt}}static parseVariable(oe,ae,be){return Gt.parseObject(oe,ae,be)}static parseString(oe,ae,be){if(be<2)throw new ue("Data not enough when parse String");let Ae=new DataView(oe,ae,be).getUint16(0,!Ye),nt;return Ae>0?nt=Zt(new Uint8Array(oe,ae+2,Ae)):nt="",{data:nt,size:2+Ae}}static parseLongString(oe,ae,be){if(be<4)throw new ue("Data not enough when parse LongString");let Ae=new DataView(oe,ae,be).getUint32(0,!Ye),nt;return Ae>0?nt=Zt(new Uint8Array(oe,ae+4,Ae)):nt="",{data:nt,size:4+Ae}}static parseDate(oe,ae,be){if(be<10)throw new ue("Data size invalid when parse Date");let we=new DataView(oe,ae,be),Ae=we.getFloat64(0,!Ye),nt=we.getInt16(8,!Ye);return Ae+=nt*60*1e3,{data:new Date(Ae),size:10}}static parseValue(oe,ae,be){if(be<1)throw new ue("Data not enough when parse Value");let we=new DataView(oe,ae,be),Ae=1,nt=we.getUint8(0),it,Vt=!1;try{switch(nt){case 0:it=we.getFloat64(1,!Ye),Ae+=8;break;case 1:{it=!!we.getUint8(1),Ae+=1;break}case 2:{let It=Gt.parseString(oe,ae+1,be-1);it=It.data,Ae+=It.size;break}case 3:{it={};let It=0;for((we.getUint32(be-4,!Ye)&16777215)===9&&(It=3);Ae<be-4;){let on=Gt.parseObject(oe,ae+Ae,be-Ae-It);if(on.objectEnd)break;it[on.data.name]=on.data.value,Ae+=on.size}Ae<=be-3&&(we.getUint32(Ae-1,!Ye)&16777215)===9&&(Ae+=3);break}case 8:{it={},Ae+=4;let It=0;for((we.getUint32(be-4,!Ye)&16777215)===9&&(It=3);Ae<be-8;){let on=Gt.parseVariable(oe,ae+Ae,be-Ae-It);if(on.objectEnd)break;it[on.data.name]=on.data.value,Ae+=on.size}Ae<=be-3&&(we.getUint32(Ae-1,!Ye)&16777215)===9&&(Ae+=3);break}case 9:it=void 0,Ae=1,Vt=!0;break;case 10:{it=[];let It=we.getUint32(1,!Ye);Ae+=4;for(let on=0;on<It;on++){let zn=Gt.parseValue(oe,ae+Ae,be-Ae);it.push(zn.data),Ae+=zn.size}break}case 11:{let It=Gt.parseDate(oe,ae+1,be-1);it=It.data,Ae+=It.size;break}case 12:{let It=Gt.parseString(oe,ae+1,be-1);it=It.data,Ae+=It.size;break}default:Ae=be,fe.w("AMF","Unsupported AMF value type "+nt)}}catch(It){fe.e("AMF",It.toString())}return{data:it,size:Ae,objectEnd:Vt}}}var fn=Gt;class hn{constructor(oe){this.TAG="ExpGolomb",this._buffer=oe,this._buffer_index=0,this._total_bytes=oe.byteLength,this._total_bits=oe.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let oe=this._total_bytes-this._buffer_index;if(oe<=0)throw new ue("ExpGolomb: _fillCurrentWord() but no bytes available");let ae=Math.min(4,oe),be=new Uint8Array(4);be.set(this._buffer.subarray(this._buffer_index,this._buffer_index+ae)),this._current_word=new DataView(be.buffer).getUint32(0,!1),this._buffer_index+=ae,this._current_word_bits_left=ae*8}readBits(oe){if(oe>32)throw new le("ExpGolomb: readBits() bits exceeded max 32bits!");if(oe<=this._current_word_bits_left){let nt=this._current_word>>>32-oe;return this._current_word<<=oe,this._current_word_bits_left-=oe,nt}let ae=this._current_word_bits_left?this._current_word:0;ae=ae>>>32-this._current_word_bits_left;let be=oe-this._current_word_bits_left;this._fillCurrentWord();let we=Math.min(be,this._current_word_bits_left),Ae=this._current_word>>>32-we;return this._current_word<<=we,this._current_word_bits_left-=we,ae=ae<<we|Ae,ae}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let oe;for(oe=0;oe<this._current_word_bits_left;oe++)if(this._current_word&2147483648>>>oe)return this._current_word<<=oe,this._current_word_bits_left-=oe,oe;return this._fillCurrentWord(),oe+this._skipLeadingZero()}readUEG(){let oe=this._skipLeadingZero();return this.readBits(oe+1)-1}readSEG(){let oe=this.readUEG();return oe&1?oe+1>>>1:-1*(oe>>>1)}}var mn=hn;class Mn{static _ebsp2rbsp(oe){let ae=oe,be=ae.byteLength,we=new Uint8Array(be),Ae=0;for(let nt=0;nt<be;nt++)nt>=2&&ae[nt]===3&&ae[nt-1]===0&&ae[nt-2]===0||(we[Ae]=ae[nt],Ae++);return new Uint8Array(we.buffer,0,Ae)}static parseSPS(oe){let ae=Mn._ebsp2rbsp(oe),be=new mn(ae);be.readByte();let we=be.readByte();be.readByte();let Ae=be.readByte();be.readUEG();let nt=Mn.getProfileString(we),it=Mn.getLevelString(Ae),Vt=1,It=420,on=[0,420,422,444],zn=8;if((we===100||we===110||we===122||we===244||we===44||we===83||we===86||we===118||we===128||we===138||we===144)&&(Vt=be.readUEG(),Vt===3&&be.readBits(1),Vt<=3&&(It=on[Vt]),zn=be.readUEG()+8,be.readUEG(),be.readBits(1),be.readBool())){let Sr=Vt!==3?8:12;for(let Xn=0;Xn<Sr;Xn++)be.readBool()&&(Xn<6?Mn._skipScalingList(be,16):Mn._skipScalingList(be,64))}be.readUEG();let On=be.readUEG();if(On===0)be.readUEG();else if(On===1){be.readBits(1),be.readSEG(),be.readSEG();let Sr=be.readUEG();for(let Xn=0;Xn<Sr;Xn++)be.readSEG()}let wt=be.readUEG();be.readBits(1);let An=be.readUEG(),Dn=be.readUEG(),Xt=be.readBits(1);Xt===0&&be.readBits(1),be.readBits(1);let an=0,cn=0,Jn=0,vr=0;be.readBool()&&(an=be.readUEG(),cn=be.readUEG(),Jn=be.readUEG(),vr=be.readUEG());let mr=1,Wn=1,Hr=0,Kr=!0,lo=0,_o=0;if(be.readBool()){if(be.readBool()){let Sr=be.readByte(),Xn=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Oo=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Sr>0&&Sr<16?(mr=Xn[Sr-1],Wn=Oo[Sr-1]):Sr===255&&(mr=be.readByte()<<8|be.readByte(),Wn=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 Sr=be.readBits(32),Xn=be.readBits(32);Kr=be.readBool(),lo=Xn,_o=Sr*2,Hr=lo/_o}}let Ao=1;(mr!==1||Wn!==1)&&(Ao=mr/Wn);let po=0,vi=0;if(Vt===0)po=1,vi=2-Xt;else{let Sr=Vt===3?1:2,Xn=Vt===1?2:1;po=Sr,vi=Xn*(2-Xt)}let Ri=(An+1)*16,bn=(2-Xt)*((Dn+1)*16);Ri-=(an+cn)*po,bn-=(Jn+vr)*vi;let tr=Math.ceil(Ri*Ao);return be.destroy(),be=null,{profile_string:nt,level_string:it,bit_depth:zn,ref_frames:wt,chroma_format:It,chroma_format_string:Mn.getChromaFormatString(It),frame_rate:{fixed:Kr,fps:Hr,fps_den:_o,fps_num:lo},sar_ratio:{width:mr,height:Wn},codec_size:{width:Ri,height:bn},present_size:{width:tr,height:bn}}}static _skipScalingList(oe,ae){let be=8,we=8,Ae=0;for(let nt=0;nt<ae;nt++)we!==0&&(Ae=oe.readSEG(),we=(be+Ae+256)%256),be=we===0?be:we}static getProfileString(oe){switch(oe){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(oe){return(oe/10).toFixed(1)}static getChromaFormatString(oe){switch(oe){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var Rt=Mn,Ct={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function Be(ln){return ln>>>8&255|(ln&255)<<8}function rt(ln){return(ln&4278190080)>>>24|(ln&16711680)>>>8|(ln&65280)<<8|(ln&255)<<24}function tt(ln,oe){return ln[oe]<<24|ln[oe+1]<<16|ln[oe+2]<<8|ln[oe+3]}class ct{constructor(oe,ae){this.TAG="FLVDemuxer",this._config=ae,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=oe.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=oe.hasAudioTrack,this._hasVideo=oe.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new ht,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(oe){let ae=new Uint8Array(oe),be={match:!1};if(ae[0]!==70||ae[1]!==76||ae[2]!==86||ae[3]!==1)return be;let we=(ae[4]&4)>>>2!==0,Ae=(ae[4]&1)!==0,nt=tt(ae,5);return nt<9?be:{match:!0,consumed:nt,dataOffset:nt,hasAudioTrack:we,hasVideoTrack:Ae}}bindDataSource(oe){return oe.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(oe){this._onTrackMetadata=oe}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(oe){this._onMediaInfo=oe}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(oe){this._onMetaDataArrived=oe}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(oe){this._onScriptDataArrived=oe}get onError(){return this._onError}set onError(oe){this._onError=oe}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(oe){this._onDataAvailable=oe}get timestampBase(){return this._timestampBase}set timestampBase(oe){this._timestampBase=oe}get overridedDuration(){return this._duration}set overridedDuration(oe){this._durationOverrided=!0,this._duration=oe,this._mediaInfo.duration=oe}set overridedHasAudio(oe){this._hasAudioFlagOverrided=!0,this._hasAudio=oe,this._mediaInfo.hasAudio=oe}set overridedHasVideo(oe){this._hasVideoFlagOverrided=!0,this._hasVideo=oe,this._mediaInfo.hasVideo=oe}resetMediaInfo(){this._mediaInfo=new ht}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(oe,ae){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new ue("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let be=0,we=this._littleEndian;if(ae===0)if(oe.byteLength>13)be=ct.probe(oe).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ae+be!==this._dataOffset&&fe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(oe,be).getUint32(0,!we)!==0&&fe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),be+=4);be<oe.byteLength;){this._dispatch=!0;let Ae=new DataView(oe,be);if(be+11+4>oe.byteLength)break;let nt=Ae.getUint8(0),it=Ae.getUint32(0,!we)&16777215;if(be+11+it+4>oe.byteLength)break;if(nt!==8&&nt!==9&&nt!==18){fe.w(this.TAG,`Unsupported tag type ${nt}, skipped`),be+=11+it+4;continue}let Vt=Ae.getUint8(4),It=Ae.getUint8(5),on=Ae.getUint8(6),zn=Ae.getUint8(7),On=on|It<<8|Vt<<16|zn<<24;(Ae.getUint32(7,!we)&16777215)!==0&&fe.w(this.TAG,"Meet tag which has StreamID != 0!");let An=be+11;switch(nt){case 8:this._parseAudioData(oe,An,it,On);break;case 9:this._parseVideoData(oe,An,it,On,ae+be);break;case 18:this._parseScriptData(oe,An,it);break}let Dn=Ae.getUint32(11+it,!we);Dn!==11+it&&fe.w(this.TAG,`Invalid PrevTagSize ${Dn}`),be+=11+it+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),be}_parseScriptData(oe,ae,be){let we=fn.parseScriptData(oe,ae,be);if(we.hasOwnProperty("onMetaData")){if(we.onMetaData==null||typeof we.onMetaData!="object"){fe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&fe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=we;let Ae=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Ae)),typeof Ae.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Ae.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Ae.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Ae.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Ae.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Ae.audiodatarate),typeof Ae.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Ae.videodatarate),typeof Ae.width=="number"&&(this._mediaInfo.width=Ae.width),typeof Ae.height=="number"&&(this._mediaInfo.height=Ae.height),typeof Ae.duration=="number"){if(!this._durationOverrided){let nt=Math.floor(Ae.duration*this._timescale);this._duration=nt,this._mediaInfo.duration=nt}}else this._mediaInfo.duration=0;if(typeof Ae.framerate=="number"){let nt=Math.floor(Ae.framerate*1e3);if(nt>0){let it=nt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=it,this._referenceFrameRate.fps_num=nt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=it}}if(typeof Ae.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let nt=Ae.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(nt),Ae.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Ae,fe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(we).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},we))}_parseKeyframesIndex(oe){let ae=[],be=[];for(let we=1;we<oe.times.length;we++){let Ae=this._timestampBase+Math.floor(oe.times[we]*1e3);ae.push(Ae),be.push(oe.filepositions[we])}return{times:ae,filepositions:be}}_parseAudioData(oe,ae,be,we){if(be<=1){fe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Ae=this._littleEndian,it=new DataView(oe,ae,be).getUint8(0),Vt=it>>>4;if(Vt!==2&&Vt!==10){this._onError(Ct.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Vt);return}let It=0,on=(it&12)>>>2;if(on>=0&&on<=4)It=this._flvSoundRateTable[on];else{this._onError(Ct.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+on);return}let zn=(it&2)>>>1,On=it&1,wt=this._audioMetadata,An=this._audioTrack;if(wt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),wt=this._audioMetadata={},wt.type="audio",wt.id=An.id,wt.timescale=this._timescale,wt.duration=this._duration,wt.audioSampleRate=It,wt.channelCount=On===0?1:2),Vt===10){let Dn=this._parseAACAudioData(oe,ae+1,be-1);if(Dn==null)return;if(Dn.packetType===0){wt.config&&fe.w(this.TAG,"Found another AudioSpecificConfig!");let Xt=Dn.data;wt.audioSampleRate=Xt.samplingRate,wt.channelCount=Xt.channelCount,wt.codec=Xt.codec,wt.originalCodec=Xt.originalCodec,wt.config=Xt.config,wt.refSampleDuration=1024/wt.audioSampleRate*wt.timescale,fe.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",wt);let an=this._mediaInfo;an.audioCodec=wt.originalCodec,an.audioSampleRate=wt.audioSampleRate,an.audioChannelCount=wt.channelCount,an.hasVideo?an.videoCodec!=null&&(an.mimeType='video/x-flv; codecs="'+an.videoCodec+","+an.audioCodec+'"'):an.mimeType='video/x-flv; codecs="'+an.audioCodec+'"',an.isComplete()&&this._onMediaInfo(an)}else if(Dn.packetType===1){let Xt=this._timestampBase+we,an={unit:Dn.data,length:Dn.data.byteLength,dts:Xt,pts:Xt};An.samples.push(an),An.length+=Dn.data.length}else fe.e(this.TAG,`Flv: Unsupported AAC data type ${Dn.packetType}`)}else if(Vt===2){if(!wt.codec){let cn=this._parseMP3AudioData(oe,ae+1,be-1,!0);if(cn==null)return;wt.audioSampleRate=cn.samplingRate,wt.channelCount=cn.channelCount,wt.codec=cn.codec,wt.originalCodec=cn.originalCodec,wt.refSampleDuration=1152/wt.audioSampleRate*wt.timescale,fe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",wt);let Jn=this._mediaInfo;Jn.audioCodec=wt.codec,Jn.audioSampleRate=wt.audioSampleRate,Jn.audioChannelCount=wt.channelCount,Jn.audioDataRate=cn.bitRate,Jn.hasVideo?Jn.videoCodec!=null&&(Jn.mimeType='video/x-flv; codecs="'+Jn.videoCodec+","+Jn.audioCodec+'"'):Jn.mimeType='video/x-flv; codecs="'+Jn.audioCodec+'"',Jn.isComplete()&&this._onMediaInfo(Jn)}let Dn=this._parseMP3AudioData(oe,ae+1,be-1,!1);if(Dn==null)return;let Xt=this._timestampBase+we,an={unit:Dn,length:Dn.byteLength,dts:Xt,pts:Xt};An.samples.push(an),An.length+=Dn.length}}_parseAACAudioData(oe,ae,be){if(be<=1){fe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let we={},Ae=new Uint8Array(oe,ae,be);return we.packetType=Ae[0],Ae[0]===0?we.data=this._parseAACAudioSpecificConfig(oe,ae+1,be-1):we.data=Ae.subarray(1),we}_parseAACAudioSpecificConfig(oe,ae,be){let we=new Uint8Array(oe,ae,be),Ae=null,nt=0,it=0,Vt=null,It=0,on=null;if(nt=it=we[0]>>>3,It=(we[0]&7)<<1|we[1]>>>7,It<0||It>=this._mpegSamplingRates.length){this._onError(Ct.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let zn=this._mpegSamplingRates[It],On=(we[1]&120)>>>3;if(On<0||On>=8){this._onError(Ct.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}nt===5&&(on=(we[1]&7)<<1|we[2]>>>7,Vt=(we[2]&124)>>>2);let wt=self.navigator.userAgent.toLowerCase();return wt.indexOf("firefox")!==-1?It>=6?(nt=5,Ae=new Array(4),on=It-3):(nt=2,Ae=new Array(2),on=It):wt.indexOf("android")!==-1?(nt=2,Ae=new Array(2),on=It):(nt=5,on=It,Ae=new Array(4),It>=6?on=It-3:On===1&&(nt=2,Ae=new Array(2),on=It)),Ae[0]=nt<<3,Ae[0]|=(It&15)>>>1,Ae[1]=(It&15)<<7,Ae[1]|=(On&15)<<3,nt===5&&(Ae[1]|=(on&15)>>>1,Ae[2]=(on&1)<<7,Ae[2]|=8,Ae[3]=0),{config:Ae,samplingRate:zn,channelCount:On,codec:"mp4a.40."+nt,originalCodec:"mp4a.40."+it}}_parseMP3AudioData(oe,ae,be,we){if(be<4){fe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Ae=this._littleEndian,nt=new Uint8Array(oe,ae,be),it=null;if(we){if(nt[0]!==255)return;let Vt=nt[1]>>>3&3,It=(nt[1]&6)>>1,on=(nt[2]&240)>>>4,zn=(nt[2]&12)>>>2,wt=(nt[3]>>>6&3)!==3?2:1,An=0,Dn=0,Xt=34,an="mp3";switch(Vt){case 0:An=this._mpegAudioV25SampleRateTable[zn];break;case 2:An=this._mpegAudioV20SampleRateTable[zn];break;case 3:An=this._mpegAudioV10SampleRateTable[zn];break}switch(It){case 1:Xt=34,on<this._mpegAudioL3BitRateTable.length&&(Dn=this._mpegAudioL3BitRateTable[on]);break;case 2:Xt=33,on<this._mpegAudioL2BitRateTable.length&&(Dn=this._mpegAudioL2BitRateTable[on]);break;case 3:Xt=32,on<this._mpegAudioL1BitRateTable.length&&(Dn=this._mpegAudioL1BitRateTable[on]);break}it={bitRate:Dn,samplingRate:An,channelCount:wt,codec:an,originalCodec:an}}else it=nt;return it}_parseVideoData(oe,ae,be,we,Ae){if(be<=1){fe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let nt=new Uint8Array(oe,ae,be)[0],it=(nt&240)>>>4,Vt=nt&15;if(Vt!==7){this._onError(Ct.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Vt}`);return}this._parseAVCVideoPacket(oe,ae+1,be-1,we,Ae,it)}_parseAVCVideoPacket(oe,ae,be,we,Ae,nt){if(be<4){fe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let it=this._littleEndian,Vt=new DataView(oe,ae,be),It=Vt.getUint8(0),zn=(Vt.getUint32(0,!it)&16777215)<<8>>8;if(It===0)this._parseAVCDecoderConfigurationRecord(oe,ae+4,be-4);else if(It===1)this._parseAVCVideoData(oe,ae+4,be-4,we,Ae,nt,zn);else if(It!==2){this._onError(Ct.FORMAT_ERROR,`Flv: Invalid video packet type ${It}`);return}}_parseAVCDecoderConfigurationRecord(oe,ae,be){if(be<7){fe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let we=this._videoMetadata,Ae=this._videoTrack,nt=this._littleEndian,it=new DataView(oe,ae,be);we?typeof we.avcc!="undefined"&&fe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),we=this._videoMetadata={},we.type="video",we.id=Ae.id,we.timescale=this._timescale,we.duration=this._duration);let Vt=it.getUint8(0),It=it.getUint8(1),on=it.getUint8(2),zn=it.getUint8(3);if(Vt!==1||It===0){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(it.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ct.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let On=it.getUint8(5)&31;if(On===0){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else On>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${On}`);let wt=6;for(let Dn=0;Dn<On;Dn++){let Xt=it.getUint16(wt,!nt);if(wt+=2,Xt===0)continue;let an=new Uint8Array(oe,ae+wt,Xt);wt+=Xt;let cn=Rt.parseSPS(an);if(Dn!==0)continue;we.codecWidth=cn.codec_size.width,we.codecHeight=cn.codec_size.height,we.presentWidth=cn.present_size.width,we.presentHeight=cn.present_size.height,we.profile=cn.profile_string,we.level=cn.level_string,we.bitDepth=cn.bit_depth,we.chromaFormat=cn.chroma_format,we.sarRatio=cn.sar_ratio,we.frameRate=cn.frame_rate,(cn.frame_rate.fixed===!1||cn.frame_rate.fps_num===0||cn.frame_rate.fps_den===0)&&(we.frameRate=this._referenceFrameRate);let Jn=we.frameRate.fps_den,vr=we.frameRate.fps_num;we.refSampleDuration=we.timescale*(Jn/vr);let yo=an.subarray(1,4),mr="avc1.";for(let Hr=0;Hr<3;Hr++){let Kr=yo[Hr].toString(16);Kr.length<2&&(Kr="0"+Kr),mr+=Kr}we.codec=mr;let Wn=this._mediaInfo;Wn.width=we.codecWidth,Wn.height=we.codecHeight,Wn.fps=we.frameRate.fps,Wn.profile=we.profile,Wn.level=we.level,Wn.refFrames=cn.ref_frames,Wn.chromaFormat=cn.chroma_format_string,Wn.sarNum=we.sarRatio.width,Wn.sarDen=we.sarRatio.height,Wn.videoCodec=mr,Wn.hasAudio?Wn.audioCodec!=null&&(Wn.mimeType='video/x-flv; codecs="'+Wn.videoCodec+","+Wn.audioCodec+'"'):Wn.mimeType='video/x-flv; codecs="'+Wn.videoCodec+'"',Wn.isComplete()&&this._onMediaInfo(Wn)}let An=it.getUint8(wt);if(An===0){this._onError(Ct.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else An>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${An}`);wt++;for(let Dn=0;Dn<An;Dn++){let Xt=it.getUint16(wt,!nt);wt+=2,Xt!==0&&(wt+=Xt)}we.avcc=new Uint8Array(be),we.avcc.set(new Uint8Array(oe,ae,be),0),fe.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",we)}_parseAVCVideoData(oe,ae,be,we,Ae,nt,it){let Vt=this._littleEndian,It=new DataView(oe,ae,be),on=[],zn=0,On=0;const wt=this._naluLengthSize;let An=this._timestampBase+we,Dn=nt===1;for(;On<be;){if(On+4>=be){fe.w(this.TAG,`Malformed Nalu near timestamp ${An}, offset = ${On}, dataSize = ${be}`);break}let Xt=It.getUint32(On,!Vt);if(wt===3&&(Xt>>>=8),Xt>be-wt){fe.w(this.TAG,`Malformed Nalus near timestamp ${An}, NaluSize > DataSize!`);return}let an=It.getUint8(On+wt)&31;an===5&&(Dn=!0);let cn=new Uint8Array(oe,ae+On,wt+Xt),Jn={type:an,data:cn};on.push(Jn),zn+=cn.byteLength,On+=wt+Xt}if(on.length){let Xt=this._videoTrack,an={units:on,length:zn,isKeyframe:Dn,dts:An,cts:it,pts:An+it};Dn&&(an.fileposition=Ae),Xt.samples.push(an),Xt.length+=zn}}}var qe=ct;class Ge{static init(){Ge.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 ae in Ge.types)Ge.types.hasOwnProperty(ae)&&(Ge.types[ae]=[ae.charCodeAt(0),ae.charCodeAt(1),ae.charCodeAt(2),ae.charCodeAt(3)]);let oe=Ge.constants={};oe.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),oe.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),oe.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),oe.STSC=oe.STCO=oe.STTS,oe.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),oe.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]),oe.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]),oe.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),oe.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),oe.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(oe){let ae=8,be=null,we=Array.prototype.slice.call(arguments,1),Ae=we.length;for(let it=0;it<Ae;it++)ae+=we[it].byteLength;be=new Uint8Array(ae),be[0]=ae>>>24&255,be[1]=ae>>>16&255,be[2]=ae>>>8&255,be[3]=ae&255,be.set(oe,4);let nt=8;for(let it=0;it<Ae;it++)be.set(we[it],nt),nt+=we[it].byteLength;return be}static generateInitSegment(oe){let ae=Ge.box(Ge.types.ftyp,Ge.constants.FTYP),be=Ge.moov(oe),we=new Uint8Array(ae.byteLength+be.byteLength);return we.set(ae,0),we.set(be,ae.byteLength),we}static moov(oe){let ae=Ge.mvhd(oe.timescale,oe.duration),be=Ge.trak(oe),we=Ge.mvex(oe);return Ge.box(Ge.types.moov,ae,be,we)}static mvhd(oe,ae){return Ge.box(Ge.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&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(oe){return Ge.box(Ge.types.trak,Ge.tkhd(oe),Ge.mdia(oe))}static tkhd(oe){let ae=oe.id,be=oe.duration,we=oe.presentWidth,Ae=oe.presentHeight;return Ge.box(Ge.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&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,we>>>8&255,we&255,0,0,Ae>>>8&255,Ae&255,0,0]))}static mdia(oe){return Ge.box(Ge.types.mdia,Ge.mdhd(oe),Ge.hdlr(oe),Ge.minf(oe))}static mdhd(oe){let ae=oe.timescale,be=oe.duration;return Ge.box(Ge.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255,be>>>24&255,be>>>16&255,be>>>8&255,be&255,85,196,0,0]))}static hdlr(oe){let ae=null;return oe.type==="audio"?ae=Ge.constants.HDLR_AUDIO:ae=Ge.constants.HDLR_VIDEO,Ge.box(Ge.types.hdlr,ae)}static minf(oe){let ae=null;return oe.type==="audio"?ae=Ge.box(Ge.types.smhd,Ge.constants.SMHD):ae=Ge.box(Ge.types.vmhd,Ge.constants.VMHD),Ge.box(Ge.types.minf,ae,Ge.dinf(),Ge.stbl(oe))}static dinf(){return Ge.box(Ge.types.dinf,Ge.box(Ge.types.dref,Ge.constants.DREF))}static stbl(oe){return Ge.box(Ge.types.stbl,Ge.stsd(oe),Ge.box(Ge.types.stts,Ge.constants.STTS),Ge.box(Ge.types.stsc,Ge.constants.STSC),Ge.box(Ge.types.stsz,Ge.constants.STSZ),Ge.box(Ge.types.stco,Ge.constants.STCO))}static stsd(oe){return oe.type==="audio"?oe.codec==="mp3"?Ge.box(Ge.types.stsd,Ge.constants.STSD_PREFIX,Ge.mp3(oe)):Ge.box(Ge.types.stsd,Ge.constants.STSD_PREFIX,Ge.mp4a(oe)):Ge.box(Ge.types.stsd,Ge.constants.STSD_PREFIX,Ge.avc1(oe))}static mp3(oe){let ae=oe.channelCount,be=oe.audioSampleRate,we=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ae,0,16,0,0,0,0,be>>>8&255,be&255,0,0]);return Ge.box(Ge.types[".mp3"],we)}static mp4a(oe){let ae=oe.channelCount,be=oe.audioSampleRate,we=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ae,0,16,0,0,0,0,be>>>8&255,be&255,0,0]);return Ge.box(Ge.types.mp4a,we,Ge.esds(oe))}static esds(oe){let ae=oe.config||[],be=ae.length,we=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(ae).concat([6,1,2]));return Ge.box(Ge.types.esds,we)}static avc1(oe){let ae=oe.avcc,be=oe.codecWidth,we=oe.codecHeight,Ae=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,we>>>8&255,we&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 Ge.box(Ge.types.avc1,Ae,Ge.box(Ge.types.avcC,ae))}static mvex(oe){return Ge.box(Ge.types.mvex,Ge.trex(oe))}static trex(oe){let ae=oe.id,be=new Uint8Array([0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Ge.box(Ge.types.trex,be)}static moof(oe,ae){return Ge.box(Ge.types.moof,Ge.mfhd(oe.sequenceNumber),Ge.traf(oe,ae))}static mfhd(oe){let ae=new Uint8Array([0,0,0,0,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255]);return Ge.box(Ge.types.mfhd,ae)}static traf(oe,ae){let be=oe.id,we=Ge.box(Ge.types.tfhd,new Uint8Array([0,0,0,0,be>>>24&255,be>>>16&255,be>>>8&255,be&255])),Ae=Ge.box(Ge.types.tfdt,new Uint8Array([0,0,0,0,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255])),nt=Ge.sdtp(oe),it=Ge.trun(oe,nt.byteLength+16+16+8+16+8+8);return Ge.box(Ge.types.traf,we,Ae,it,nt)}static sdtp(oe){let ae=oe.samples||[],be=ae.length,we=new Uint8Array(4+be);for(let Ae=0;Ae<be;Ae++){let nt=ae[Ae].flags;we[Ae+4]=nt.isLeading<<6|nt.dependsOn<<4|nt.isDependedOn<<2|nt.hasRedundancy}return Ge.box(Ge.types.sdtp,we)}static trun(oe,ae){let be=oe.samples||[],we=be.length,Ae=12+16*we,nt=new Uint8Array(Ae);ae+=8+Ae,nt.set([0,0,15,1,we>>>24&255,we>>>16&255,we>>>8&255,we&255,ae>>>24&255,ae>>>16&255,ae>>>8&255,ae&255],0);for(let it=0;it<we;it++){let Vt=be[it].duration,It=be[it].size,on=be[it].flags,zn=be[it].cts;nt.set([Vt>>>24&255,Vt>>>16&255,Vt>>>8&255,Vt&255,It>>>24&255,It>>>16&255,It>>>8&255,It&255,on.isLeading<<2|on.dependsOn,on.isDependedOn<<6|on.hasRedundancy<<4|on.isNonSync,0,0,zn>>>24&255,zn>>>16&255,zn>>>8&255,zn&255],12+16*it)}return Ge.box(Ge.types.trun,nt)}static mdat(oe){return Ge.box(Ge.types.mdat,oe)}}Ge.init();var ut=Ge;class Pt{static getSilentFrame(oe,ae){if(oe==="mp4a.40.2"){if(ae===1)return new Uint8Array([0,200,0,128,35,128]);if(ae===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ae===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ae===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ae===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(ae===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(ae===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(ae===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(ae===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 Ft=Pt;class _n{constructor(oe,ae,be,we,Ae){this.dts=oe,this.pts=ae,this.duration=be,this.originalDts=we,this.isSyncPoint=Ae,this.fileposition=null}}class Rn{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(oe){oe.isSyncPoint=!0,this.syncPoints.push(oe)}}class wn{constructor(){this._list=[]}clear(){this._list=[]}appendArray(oe){let ae=this._list;oe.length!==0&&(ae.length>0&&oe[0].originalDts<ae[ae.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ae,oe))}getLastSyncPointBeforeDts(oe){if(this._list.length==0)return null;let ae=this._list,be=0,we=ae.length-1,Ae=0,nt=0,it=we;for(oe<ae[0].dts&&(be=0,nt=it+1);nt<=it;)if(Ae=nt+Math.floor((it-nt)/2),Ae===we||oe>=ae[Ae].dts&&oe<ae[Ae+1].dts){be=Ae;break}else ae[Ae].dts<oe?nt=Ae+1:it=Ae-1;return this._list[be]}}class Ln{constructor(oe){this._type=oe,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(oe){let ae=this._list;if(ae.length===0)return-2;let be=ae.length-1,we=0,Ae=0,nt=be,it=0;if(oe<ae[0].originalBeginDts)return it=-1,it;for(;Ae<=nt;)if(we=Ae+Math.floor((nt-Ae)/2),we===be||oe>ae[we].lastSample.originalDts&&oe<ae[we+1].originalBeginDts){it=we;break}else ae[we].originalBeginDts<oe?Ae=we+1:nt=we-1;return it}_searchNearestSegmentAfter(oe){return this._searchNearestSegmentBefore(oe)+1}append(oe){let ae=this._list,be=oe,we=this._lastAppendLocation,Ae=0;we!==-1&&we<ae.length&&be.originalBeginDts>=ae[we].lastSample.originalDts&&(we===ae.length-1||we<ae.length-1&&be.originalBeginDts<ae[we+1].originalBeginDts)?Ae=we+1:ae.length>0&&(Ae=this._searchNearestSegmentBefore(be.originalBeginDts)+1),this._lastAppendLocation=Ae,this._list.splice(Ae,0,be)}getLastSegmentBefore(oe){let ae=this._searchNearestSegmentBefore(oe);return ae>=0?this._list[ae]:null}getLastSampleBefore(oe){let ae=this.getLastSegmentBefore(oe);return ae!=null?ae.lastSample:null}getLastSyncPointBefore(oe){let ae=this._searchNearestSegmentBefore(oe),be=this._list[ae].syncPoints;for(;be.length===0&&ae>0;)ae--,be=this._list[ae].syncPoints;return be.length>0?be[be.length-1]:null}}class en{constructor(oe){this.TAG="MP4Remuxer",this._config=oe,this._isLive=oe.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 Ln("audio"),this._videoSegmentInfoList=new Ln("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(oe){return oe.onDataAvailable=this.remux.bind(this),oe.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(oe){this._onInitSegment=oe}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(oe){this._onMediaSegment=oe}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(oe){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(oe,ae){if(!this._onMediaSegment)throw new ue("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(oe,ae),this._remuxVideo(ae),this._remuxAudio(oe)}_onTrackMetadataReceived(oe,ae){let be=null,we="mp4",Ae=ae.codec;if(oe==="audio")this._audioMeta=ae,ae.codec==="mp3"&&this._mp3UseMpegAudio?(we="mpeg",Ae="",be=new Uint8Array):be=ut.generateInitSegment(ae);else if(oe==="video")this._videoMeta=ae,be=ut.generateInitSegment(ae);else return;if(!this._onInitSegment)throw new ue("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(oe,{type:oe,data:be.buffer,codec:Ae,container:`${oe}/${we}`,mediaDuration:ae.duration})}_calculateDtsBase(oe,ae){this._dtsBaseInited||(oe.samples&&oe.samples.length&&(this._audioDtsBase=oe.samples[0].dts),ae.samples&&ae.samples.length&&(this._videoDtsBase=ae.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let oe=this._videoStashedLastSample,ae=this._audioStashedLastSample,be={type:"video",id:1,sequenceNumber:0,samples:[],length:0};oe!=null&&(be.samples.push(oe),be.length=oe.length);let we={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ae!=null&&(we.samples.push(ae),we.length=ae.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(be,!0),this._remuxAudio(we,!0)}_remuxAudio(oe,ae){if(this._audioMeta==null)return;let be=oe,we=be.samples,Ae,nt=-1,it=-1,Vt=-1,It=this._audioMeta.refSampleDuration,on=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,zn=this._dtsBaseInited&&this._audioNextDts===void 0,On=!1;if(!we||we.length===0||we.length===1&&!ae)return;let wt=0,An=null,Dn=0;on?(wt=0,Dn=be.length):(wt=8,Dn=8+be.length);let Xt=null;if(we.length>1&&(Xt=we.pop(),Dn-=Xt.length),this._audioStashedLastSample!=null){let Wn=this._audioStashedLastSample;this._audioStashedLastSample=null,we.unshift(Wn),Dn+=Wn.length}Xt!=null&&(this._audioStashedLastSample=Xt);let an=we[0].dts-this._dtsBase;if(this._audioNextDts)Ae=an-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Ae=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(On=!0);else{let Wn=this._audioSegmentInfoList.getLastSampleBefore(an);if(Wn!=null){let Hr=an-(Wn.originalDts+Wn.duration);Hr<=3&&(Hr=0);let Kr=Wn.dts+Wn.duration+Hr;Ae=an-Kr}else Ae=0}if(On){let Wn=an-Ae,Hr=this._videoSegmentInfoList.getLastSegmentBefore(an);if(Hr!=null&&Hr.beginDts<Wn){let Kr=Ft.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Kr){let lo=Hr.beginDts,_o=Wn-Hr.beginDts;fe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${lo}, duration: ${_o}`),we.unshift({unit:Kr,dts:lo,pts:lo}),Dn+=Kr.byteLength}}else On=!1}let cn=[];for(let Wn=0;Wn<we.length;Wn++){let Hr=we[Wn],Kr=Hr.unit,lo=Hr.dts-this._dtsBase,_o=lo-Ae;nt===-1&&(nt=_o);let zt=0;Wn!==we.length-1?zt=we[Wn+1].dts-this._dtsBase-Ae-_o:Xt!=null?zt=Xt.dts-this._dtsBase-Ae-_o:cn.length>=1?zt=cn[cn.length-1].duration:zt=Math.floor(It);let Ao=!1,po=null;if(zt>It*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Ao=!0;let vi=Math.abs(zt-It),Ri=Math.ceil(vi/It),bn=_o+It;fe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
dts: ${_o+zt} ms, expected: ${_o+Math.round(It)} ms, delta: ${Math.round(vi)} ms, generate: ${Ri} frames`);let tr=Ft.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);tr==null&&(fe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),tr=Kr),po=[];for(let Xn=0;Xn<Ri;Xn++){let Oo=Math.round(bn);if(po.length>0){let Si=po[po.length-1];Si.duration=Oo-Si.dts}let ni={dts:Oo,pts:Oo,cts:0,unit:tr,size:tr.byteLength,duration:0,originalDts:lo,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};po.push(ni),Dn+=ni.size,bn+=It}let Sr=po[po.length-1];Sr.duration=_o+zt-Sr.dts,zt=Math.round(It)}cn.push({dts:_o,pts:_o,cts:0,unit:Hr.unit,size:Hr.unit.byteLength,duration:zt,originalDts:lo,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Ao&&cn.push.apply(cn,po)}on?An=new Uint8Array(Dn):(An=new Uint8Array(Dn),An[0]=Dn>>>24&255,An[1]=Dn>>>16&255,An[2]=Dn>>>8&255,An[3]=Dn&255,An.set(ut.types.mdat,4));for(let Wn=0;Wn<cn.length;Wn++){let Hr=cn[Wn].unit;An.set(Hr,wt),wt+=Hr.byteLength}let Jn=cn[cn.length-1];it=Jn.dts+Jn.duration,this._audioNextDts=it;let vr=new Rn;vr.beginDts=nt,vr.endDts=it,vr.beginPts=nt,vr.endPts=it,vr.originalBeginDts=cn[0].originalDts,vr.originalEndDts=Jn.originalDts+Jn.duration,vr.firstSample=new _n(cn[0].dts,cn[0].pts,cn[0].duration,cn[0].originalDts,!1),vr.lastSample=new _n(Jn.dts,Jn.pts,Jn.duration,Jn.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(vr),be.samples=cn,be.sequenceNumber++;let yo=null;on?yo=new Uint8Array:yo=ut.moof(be,nt),be.samples=[],be.length=0;let mr={type:"audio",data:this._mergeBoxes(yo,An).buffer,sampleCount:cn.length,info:vr};on&&zn&&(mr.timestampOffset=nt),this._onMediaSegment("audio",mr)}_remuxVideo(oe,ae){if(this._videoMeta==null)return;let be=oe,we=be.samples,Ae,nt=-1,it=-1,Vt=-1,It=-1;if(!we||we.length===0||we.length===1&&!ae)return;let on=8,zn=null,On=8+oe.length,wt=null;if(we.length>1&&(wt=we.pop(),On-=wt.length),this._videoStashedLastSample!=null){let Jn=this._videoStashedLastSample;this._videoStashedLastSample=null,we.unshift(Jn),On+=Jn.length}wt!=null&&(this._videoStashedLastSample=wt);let An=we[0].dts-this._dtsBase;if(this._videoNextDts)Ae=An-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Ae=0;else{let Jn=this._videoSegmentInfoList.getLastSampleBefore(An);if(Jn!=null){let vr=An-(Jn.originalDts+Jn.duration);vr<=3&&(vr=0);let yo=Jn.dts+Jn.duration+vr;Ae=An-yo}else Ae=0}let Dn=new Rn,Xt=[];for(let Jn=0;Jn<we.length;Jn++){let vr=we[Jn],yo=vr.dts-this._dtsBase,mr=vr.isKeyframe,Wn=yo-Ae,Hr=vr.cts,Kr=Wn+Hr;nt===-1&&(nt=Wn,Vt=Kr);let lo=0;if(Jn!==we.length-1?lo=we[Jn+1].dts-this._dtsBase-Ae-Wn:wt!=null?lo=wt.dts-this._dtsBase-Ae-Wn:Xt.length>=1?lo=Xt[Xt.length-1].duration:lo=Math.floor(this._videoMeta.refSampleDuration),mr){let _o=new _n(Wn,Kr,lo,vr.dts,!0);_o.fileposition=vr.fileposition,Dn.appendSyncPoint(_o)}Xt.push({dts:Wn,pts:Kr,cts:Hr,units:vr.units,size:vr.length,isKeyframe:mr,duration:lo,originalDts:yo,flags:{isLeading:0,dependsOn:mr?2:1,isDependedOn:mr?1:0,hasRedundancy:0,isNonSync:mr?0:1}})}zn=new Uint8Array(On),zn[0]=On>>>24&255,zn[1]=On>>>16&255,zn[2]=On>>>8&255,zn[3]=On&255,zn.set(ut.types.mdat,4);for(let Jn=0;Jn<Xt.length;Jn++){let vr=Xt[Jn].units;for(;vr.length;){let mr=vr.shift().data;zn.set(mr,on),on+=mr.byteLength}}let an=Xt[Xt.length-1];if(it=an.dts+an.duration,It=an.pts+an.duration,this._videoNextDts=it,Dn.beginDts=nt,Dn.endDts=it,Dn.beginPts=Vt,Dn.endPts=It,Dn.originalBeginDts=Xt[0].originalDts,Dn.originalEndDts=an.originalDts+an.duration,Dn.firstSample=new _n(Xt[0].dts,Xt[0].pts,Xt[0].duration,Xt[0].originalDts,Xt[0].isKeyframe),Dn.lastSample=new _n(an.dts,an.pts,an.duration,an.originalDts,an.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Dn),be.samples=Xt,be.sequenceNumber++,this._forceFirstIDR){let Jn=Xt[0].flags;Jn.dependsOn=2,Jn.isNonSync=0}let cn=ut.moof(be,nt);be.samples=[],be.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(cn,zn).buffer,sampleCount:Xt.length,info:Dn})}_mergeBoxes(oe,ae){let be=new Uint8Array(oe.byteLength+ae.byteLength);return be.set(oe,0),be.set(ae,oe.byteLength),be}}var Sn=en,Ke={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 At{constructor(oe,ae){this.TAG="TransmuxingController",this._emitter=new(pe()),this._config=ae,oe.segments||(oe.segments=[{duration:oe.duration,filesize:oe.filesize,url:oe.url}]),typeof oe.cors!="boolean"&&(oe.cors=!0),typeof oe.withCredentials!="boolean"&&(oe.withCredentials=!1),this._mediaDataSource=oe,this._currentSegmentIndex=0;let be=0;this._mediaDataSource.segments.forEach(we=>{we.timestampBase=be,be+=we.duration,we.cors=oe.cors,we.withCredentials=oe.withCredentials,ae.referrerPolicy&&(we.referrerPolicy=ae.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(oe,ae){this._emitter.addListener(oe,ae)}off(oe,ae){this._emitter.removeListener(oe,ae)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(oe,ae){this._currentSegmentIndex=oe;let be=this._mediaDataSource.segments[oe],we=this._ioctl=new Oe(be,this._config,oe);we.onError=this._onIOException.bind(this),we.onSeeked=this._onIOSeeked.bind(this),we.onComplete=this._onIOComplete.bind(this),we.onRedirect=this._onIORedirect.bind(this),we.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ae?this._demuxer.bindDataSource(this._ioctl):we.onDataArrival=this._onInitChunkArrival.bind(this),we.open(ae)}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(oe){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let ae=this._searchSegmentIndexContains(oe);if(ae===this._currentSegmentIndex){let be=this._mediaInfo.segments[ae];if(be==null)this._pendingSeekTime=oe;else{let we=be.getNearestKeyframe(oe);this._remuxer.seek(we.milliseconds),this._ioctl.seek(we.fileposition),this._pendingResolveSeekPoint=we.milliseconds}}else{let be=this._mediaInfo.segments[ae];if(be==null)this._pendingSeekTime=oe,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ae);else{let we=be.getNearestKeyframe(oe);this._internalAbort(),this._remuxer.seek(oe),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ae].timestampBase,this._loadSegment(ae,we.fileposition),this._pendingResolveSeekPoint=we.milliseconds,this._reportSegmentMediaInfo(ae)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(oe){let ae=this._mediaDataSource.segments,be=ae.length-1;for(let we=0;we<ae.length;we++)if(oe<ae[we].timestampBase){be=we-1;break}return be}_onInitChunkArrival(oe,ae){let be=null,we=0;if(ae>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,we=this._demuxer.parseChunks(oe,ae);else if((be=qe.probe(oe)).match){this._demuxer=new qe(be,this._config),this._remuxer||(this._remuxer=new Sn(this._config));let Ae=this._mediaDataSource;Ae.duration!=null&&!isNaN(Ae.duration)&&(this._demuxer.overridedDuration=Ae.duration),typeof Ae.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ae.hasAudio),typeof Ae.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ae.hasVideo),this._demuxer.timestampBase=Ae.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),we=this._demuxer.parseChunks(oe,ae)}else be=null,fe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ke.DEMUX_ERROR,Ct.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),we=0;return we}_onMediaInfo(oe){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},oe),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,ht.prototype));let ae=Object.assign({},oe);Object.setPrototypeOf(ae,ht.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=ae,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let be=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(be)})}_onMetaDataArrived(oe){this._emitter.emit(Ke.METADATA_ARRIVED,oe)}_onScriptDataArrived(oe){this._emitter.emit(Ke.SCRIPTDATA_ARRIVED,oe)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(oe){let be=oe+1;be<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(be)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Ke.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(oe){let ae=this._ioctl.extraData;this._mediaDataSource.segments[ae].redirectedURL=oe}_onIORecoveredEarlyEof(){this._emitter.emit(Ke.RECOVERED_EARLY_EOF)}_onIOException(oe,ae){fe.e(this.TAG,`IOException: type = ${oe}, code = ${ae.code}, msg = ${ae.msg}`),this._emitter.emit(Ke.IO_ERROR,oe,ae),this._disableStatisticsReporter()}_onDemuxException(oe,ae){fe.e(this.TAG,`DemuxException: type = ${oe}, info = ${ae}`),this._emitter.emit(Ke.DEMUX_ERROR,oe,ae)}_onRemuxerInitSegmentArrival(oe,ae){this._emitter.emit(Ke.INIT_SEGMENT,oe,ae)}_onRemuxerMediaSegmentArrival(oe,ae){if(this._pendingSeekTime==null&&(this._emitter.emit(Ke.MEDIA_SEGMENT,oe,ae),this._pendingResolveSeekPoint!=null&&oe==="video")){let be=ae.info.syncPoints,we=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&be.length>0&&be[0].originalDts===we&&(we=be[0].pts),this._emitter.emit(Ke.RECOMMEND_SEEKPOINT,we)}}_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(oe){let ae=this._mediaInfo.segments[oe],be=Object.assign({},ae);be.duration=this._mediaInfo.duration,be.segmentCount=this._mediaInfo.segmentCount,delete be.segments,delete be.keyframesIndex,this._emitter.emit(Ke.MEDIA_INFO,be)}_reportStatisticsInfo(){let oe={};oe.url=this._ioctl.currentURL,oe.hasRedirect=this._ioctl.hasRedirect,oe.hasRedirect&&(oe.redirectedURL=this._ioctl.currentRedirectedURL),oe.speed=this._ioctl.currentSpeed,oe.loaderType=this._ioctl.loaderType,oe.currentSegmentIndex=this._currentSegmentIndex,oe.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Ke.STATISTICS_INFO,oe)}}var Nt=At,xn=function(ln){let oe="TransmuxingWorker",ae=null,be=Dn.bind(this);_e.install(),ln.addEventListener("message",function(Xt){switch(Xt.data.cmd){case"init":ae=new Nt(Xt.data.param[0],Xt.data.param[1]),ae.on(Ke.IO_ERROR,On.bind(this)),ae.on(Ke.DEMUX_ERROR,wt.bind(this)),ae.on(Ke.INIT_SEGMENT,we.bind(this)),ae.on(Ke.MEDIA_SEGMENT,Ae.bind(this)),ae.on(Ke.LOADING_COMPLETE,nt.bind(this)),ae.on(Ke.RECOVERED_EARLY_EOF,it.bind(this)),ae.on(Ke.MEDIA_INFO,Vt.bind(this)),ae.on(Ke.METADATA_ARRIVED,It.bind(this)),ae.on(Ke.SCRIPTDATA_ARRIVED,on.bind(this)),ae.on(Ke.STATISTICS_INFO,zn.bind(this)),ae.on(Ke.RECOMMEND_SEEKPOINT,An.bind(this));break;case"destroy":ae&&(ae.destroy(),ae=null),ln.postMessage({msg:"destroyed"});break;case"start":ae.start();break;case"stop":ae.stop();break;case"seek":ae.seek(Xt.data.param);break;case"pause":ae.pause();break;case"resume":ae.resume();break;case"logging_config":{let an=Xt.data.param;St.applyConfig(an),an.enableCallback===!0?St.addLogListener(be):St.removeLogListener(be);break}}});function we(Xt,an){let cn={msg:Ke.INIT_SEGMENT,data:{type:Xt,data:an}};ln.postMessage(cn,[an.data])}function Ae(Xt,an){let cn={msg:Ke.MEDIA_SEGMENT,data:{type:Xt,data:an}};ln.postMessage(cn,[an.data])}function nt(){let Xt={msg:Ke.LOADING_COMPLETE};ln.postMessage(Xt)}function it(){let Xt={msg:Ke.RECOVERED_EARLY_EOF};ln.postMessage(Xt)}function Vt(Xt){let an={msg:Ke.MEDIA_INFO,data:Xt};ln.postMessage(an)}function It(Xt){let an={msg:Ke.METADATA_ARRIVED,data:Xt};ln.postMessage(an)}function on(Xt){let an={msg:Ke.SCRIPTDATA_ARRIVED,data:Xt};ln.postMessage(an)}function zn(Xt){let an={msg:Ke.STATISTICS_INFO,data:Xt};ln.postMessage(an)}function On(Xt,an){ln.postMessage({msg:Ke.IO_ERROR,data:{type:Xt,info:an}})}function wt(Xt,an){ln.postMessage({msg:Ke.DEMUX_ERROR,data:{type:Xt,info:an}})}function An(Xt){ln.postMessage({msg:Ke.RECOMMEND_SEEKPOINT,data:Xt})}function Dn(Xt,an){ln.postMessage({msg:"logcat_callback",data:{type:Xt,logcat:an}})}};class Nn{constructor(oe,ae){if(this.TAG="Transmuxer",this._emitter=new(pe()),ae.enableWorker&&typeof Worker!="undefined")try{let be=te(18034);this._worker=be(xn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[oe,ae]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},St.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:St.getConfig()})}catch(be){fe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Nt(oe,ae)}else this._controller=new Nt(oe,ae);if(this._controller){let be=this._controller;be.on(Ke.IO_ERROR,this._onIOError.bind(this)),be.on(Ke.DEMUX_ERROR,this._onDemuxError.bind(this)),be.on(Ke.INIT_SEGMENT,this._onInitSegment.bind(this)),be.on(Ke.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),be.on(Ke.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),be.on(Ke.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),be.on(Ke.MEDIA_INFO,this._onMediaInfo.bind(this)),be.on(Ke.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),be.on(Ke.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),be.on(Ke.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),be.on(Ke.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),St.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(oe,ae){this._emitter.addListener(oe,ae)}off(oe,ae){this._emitter.removeListener(oe,ae)}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(oe){this._worker?this._worker.postMessage({cmd:"seek",param:oe}):this._controller.seek(oe)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(oe,ae){Promise.resolve().then(()=>{this._emitter.emit(Ke.INIT_SEGMENT,oe,ae)})}_onMediaSegment(oe,ae){Promise.resolve().then(()=>{this._emitter.emit(Ke.MEDIA_SEGMENT,oe,ae)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ke.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ke.RECOVERED_EARLY_EOF)})}_onMediaInfo(oe){Promise.resolve().then(()=>{this._emitter.emit(Ke.MEDIA_INFO,oe)})}_onMetaDataArrived(oe){Promise.resolve().then(()=>{this._emitter.emit(Ke.METADATA_ARRIVED,oe)})}_onScriptDataArrived(oe){Promise.resolve().then(()=>{this._emitter.emit(Ke.SCRIPTDATA_ARRIVED,oe)})}_onStatisticsInfo(oe){Promise.resolve().then(()=>{this._emitter.emit(Ke.STATISTICS_INFO,oe)})}_onIOError(oe,ae){Promise.resolve().then(()=>{this._emitter.emit(Ke.IO_ERROR,oe,ae)})}_onDemuxError(oe,ae){Promise.resolve().then(()=>{this._emitter.emit(Ke.DEMUX_ERROR,oe,ae)})}_onRecommendSeekpoint(oe){Promise.resolve().then(()=>{this._emitter.emit(Ke.RECOMMEND_SEEKPOINT,oe)})}_onLoggingConfigChanged(oe){this._worker&&this._worker.postMessage({cmd:"logging_config",param:oe})}_onWorkerMessage(oe){let ae=oe.data,be=ae.data;if(ae.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ae.msg){case Ke.INIT_SEGMENT:case Ke.MEDIA_SEGMENT:this._emitter.emit(ae.msg,be.type,be.data);break;case Ke.LOADING_COMPLETE:case Ke.RECOVERED_EARLY_EOF:this._emitter.emit(ae.msg);break;case Ke.MEDIA_INFO:Object.setPrototypeOf(be,ht.prototype),this._emitter.emit(ae.msg,be);break;case Ke.METADATA_ARRIVED:case Ke.SCRIPTDATA_ARRIVED:case Ke.STATISTICS_INFO:this._emitter.emit(ae.msg,be);break;case Ke.IO_ERROR:case Ke.DEMUX_ERROR:this._emitter.emit(ae.msg,be.type,be.info);break;case Ke.RECOMMEND_SEEKPOINT:this._emitter.emit(ae.msg,be);break;case"logcat_callback":fe.emitter.emit("log",be.type,be.logcat);break;default:break}}}var Pn=Nn,Hn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Nr{constructor(oe){this.TAG="MSEController",this._config=oe,this._emitter=new(pe()),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 wn}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(oe,ae){this._emitter.addListener(oe,ae)}off(oe,ae){this._emitter.removeListener(oe,ae)}attachMediaElement(oe){if(this._mediaSource)throw new ue("MediaSource has been attached to an HTMLMediaElement!");let ae=this._mediaSource=new window.MediaSource;ae.addEventListener("sourceopen",this.e.onSourceOpen),ae.addEventListener("sourceended",this.e.onSourceEnded),ae.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=oe,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),oe.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let oe=this._mediaSource;for(let ae in this._sourceBuffers){let be=this._pendingSegments[ae];be.splice(0,be.length),this._pendingSegments[ae]=null,this._pendingRemoveRanges[ae]=null,this._lastInitSegments[ae]=null;let we=this._sourceBuffers[ae];if(we){if(oe.readyState!=="closed"){try{oe.removeSourceBuffer(we)}catch(Ae){fe.e(this.TAG,Ae.message)}we.removeEventListener("error",this.e.onSourceBufferError),we.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ae]=null,this._sourceBuffers[ae]=null}}if(oe.readyState==="open")try{oe.endOfStream()}catch(ae){fe.e(this.TAG,ae.message)}oe.removeEventListener("sourceopen",this.e.onSourceOpen),oe.removeEventListener("sourceended",this.e.onSourceEnded),oe.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(oe,ae){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(oe),this._pendingSegments[oe.type].push(oe);return}let be=oe,we=`${be.container}`;be.codec&&be.codec.length>0&&(we+=`;codecs=${be.codec}`);let Ae=!1;if(fe.v(this.TAG,"Received Initialization Segment, mimeType: "+we),this._lastInitSegments[be.type]=be,we!==this._mimeTypes[be.type]){if(this._mimeTypes[be.type])fe.v(this.TAG,`Notice: ${be.type} mimeType changed, origin: ${this._mimeTypes[be.type]}, target: ${we}`);else{Ae=!0;try{let nt=this._sourceBuffers[be.type]=this._mediaSource.addSourceBuffer(we);nt.addEventListener("error",this.e.onSourceBufferError),nt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(nt){fe.e(this.TAG,nt.message),this._emitter.emit(Hn.ERROR,{code:nt.code,msg:nt.message});return}}this._mimeTypes[be.type]=we}ae||this._pendingSegments[be.type].push(be),Ae||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(oe){let ae=oe;this._pendingSegments[ae.type].push(ae),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let be=this._sourceBuffers[ae.type];be&&!be.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(oe){for(let ae in this._sourceBuffers){if(!this._sourceBuffers[ae])continue;let be=this._sourceBuffers[ae];if(this._mediaSource.readyState==="open")try{be.abort()}catch(Ae){fe.e(this.TAG,Ae.message)}this._idrList.clear();let we=this._pendingSegments[ae];if(we.splice(0,we.length),this._mediaSource.readyState!=="closed"){for(let Ae=0;Ae<be.buffered.length;Ae++){let nt=be.buffered.start(Ae),it=be.buffered.end(Ae);this._pendingRemoveRanges[ae].push({start:nt,end:it})}if(be.updating||this._doRemoveRanges(),b.safari){let Ae=this._lastInitSegments[ae];Ae&&(this._pendingSegments[ae].push(Ae),be.updating||this._doAppendSegments())}}}}endOfStream(){let oe=this._mediaSource,ae=this._sourceBuffers;if(!oe||oe.readyState!=="open"){oe&&oe.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ae.video&&ae.video.updating||ae.audio&&ae.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,oe.endOfStream())}getNearestKeyframe(oe){return this._idrList.getLastSyncPointBeforeDts(oe)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let oe=this._mediaElement.currentTime;for(let ae in this._sourceBuffers){let be=this._sourceBuffers[ae];if(be){let we=be.buffered;if(we.length>=1&&oe-we.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let oe=this._mediaElement.currentTime;for(let ae in this._sourceBuffers){let be=this._sourceBuffers[ae];if(be){let we=be.buffered,Ae=!1;for(let nt=0;nt<we.length;nt++){let it=we.start(nt),Vt=we.end(nt);if(it<=oe&&oe<Vt+3){if(oe-it>=this._config.autoCleanupMaxBackwardDuration){Ae=!0;let It=oe-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ae].push({start:it,end:It})}}else Vt<oe&&(Ae=!0,this._pendingRemoveRanges[ae].push({start:it,end:Vt}))}Ae&&!be.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let oe=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||oe.video&&oe.video.updating||oe.audio&&oe.audio.updating)return;let ae=this._mediaSource.duration,be=this._pendingMediaDuration;be>0&&(isNaN(ae)||be>ae)&&(fe.v(this.TAG,`Update MediaSource duration from ${ae} to ${be}`),this._mediaSource.duration=be),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let oe in this._pendingRemoveRanges){if(!this._sourceBuffers[oe]||this._sourceBuffers[oe].updating)continue;let ae=this._sourceBuffers[oe],be=this._pendingRemoveRanges[oe];for(;be.length&&!ae.updating;){let we=be.shift();ae.remove(we.start,we.end)}}}_doAppendSegments(){let oe=this._pendingSegments;for(let ae in oe)if(!(!this._sourceBuffers[ae]||this._sourceBuffers[ae].updating)&&oe[ae].length>0){let be=oe[ae].shift();if(be.timestampOffset){let we=this._sourceBuffers[ae].timestampOffset,Ae=be.timestampOffset/1e3;Math.abs(we-Ae)>.1&&(fe.v(this.TAG,`Update MPEG audio timestampOffset from ${we} to ${Ae}`),this._sourceBuffers[ae].timestampOffset=Ae),delete be.timestampOffset}if(!be.data||be.data.byteLength===0)continue;try{this._sourceBuffers[ae].appendBuffer(be.data),this._isBufferFull=!1,ae==="video"&&be.hasOwnProperty("info")&&this._idrList.appendArray(be.info.syncPoints)}catch(we){this._pendingSegments[ae].unshift(be),we.code===22?(this._isBufferFull||this._emitter.emit(Hn.BUFFER_FULL),this._isBufferFull=!0):(fe.e(this.TAG,we.message),this._emitter.emit(Hn.ERROR,{code:we.code,msg:we.message}))}}}_onSourceOpen(){if(fe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let oe=this._pendingSourceBufferInit;for(;oe.length;){let ae=oe.shift();this.appendInitSegment(ae,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Hn.SOURCE_OPEN)}_onSourceEnded(){fe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){fe.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let oe=this._pendingSegments;return oe.video.length>0||oe.audio.length>0}_hasPendingRemoveRanges(){let oe=this._pendingRemoveRanges;return oe.video.length>0||oe.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Hn.UPDATE_END)}_onSourceBufferError(oe){fe.e(this.TAG,`SourceBuffer Error: ${oe}`)}}var no=Nr;const Fr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Tn={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:Ct.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ct.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ct.CODEC_UNSUPPORTED};class Yn{constructor(oe,ae){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(pe()),this._config=lt(),typeof ae=="object"&&Object.assign(this._config,ae),oe.type.toLowerCase()!=="flv")throw new le("FlvPlayer requires an flv MediaDataSource input!");oe.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=oe,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(oe,ae){oe===Dt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Dt.MEDIA_INFO,this.mediaInfo)}):oe===Dt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Dt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(oe,ae)}off(oe,ae){this._emitter.removeListener(oe,ae)}attachMediaElement(oe){if(this._mediaElement=oe,oe.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),oe.addEventListener("seeking",this.e.onvSeeking),oe.addEventListener("canplay",this.e.onvCanPlay),oe.addEventListener("stalled",this.e.onvStalled),oe.addEventListener("progress",this.e.onvProgress),this._msectl=new no(this._config),this._msectl.on(Hn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Hn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Hn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Hn.ERROR,ae=>{this._emitter.emit(Dt.ERROR,Fr.MEDIA_ERROR,Tn.MEDIA_MSE_ERROR,ae)}),this._msectl.attachMediaElement(oe),this._pendingSeekTime!=null)try{oe.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ae){}}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 Pn(this._mediaDataSource,this._config),this._transmuxer.on(Ke.INIT_SEGMENT,(oe,ae)=>{this._msectl.appendInitSegment(ae)}),this._transmuxer.on(Ke.MEDIA_SEGMENT,(oe,ae)=>{if(this._msectl.appendMediaSegment(ae),this._config.lazyLoad&&!this._config.isLive){let be=this._mediaElement.currentTime;ae.info.endDts>=(be+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(fe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ke.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Dt.LOADING_COMPLETE)}),this._transmuxer.on(Ke.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Dt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ke.IO_ERROR,(oe,ae)=>{this._emitter.emit(Dt.ERROR,Fr.NETWORK_ERROR,oe,ae)}),this._transmuxer.on(Ke.DEMUX_ERROR,(oe,ae)=>{this._emitter.emit(Dt.ERROR,Fr.MEDIA_ERROR,oe,{code:-1,msg:ae})}),this._transmuxer.on(Ke.MEDIA_INFO,oe=>{this._mediaInfo=oe,this._emitter.emit(Dt.MEDIA_INFO,Object.assign({},oe))}),this._transmuxer.on(Ke.METADATA_ARRIVED,oe=>{this._emitter.emit(Dt.METADATA_ARRIVED,oe)}),this._transmuxer.on(Ke.SCRIPTDATA_ARRIVED,oe=>{this._emitter.emit(Dt.SCRIPTDATA_ARRIVED,oe)}),this._transmuxer.on(Ke.STATISTICS_INFO,oe=>{this._statisticsInfo=this._fillStatisticsInfo(oe),this._emitter.emit(Dt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ke.RECOMMEND_SEEKPOINT,oe=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=oe/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(oe){this._mediaElement.volume=oe}get muted(){return this._mediaElement.muted}set muted(oe){this._mediaElement.muted=oe}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(oe){this._mediaElement?this._internalSeek(oe):this._pendingSeekTime=oe}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(oe){if(oe.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return oe;let ae=!0,be=0,we=0;if(this._mediaElement.getVideoPlaybackQuality){let Ae=this._mediaElement.getVideoPlaybackQuality();be=Ae.totalVideoFrames,we=Ae.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(be=this._mediaElement.webkitDecodedFrameCount,we=this._mediaElement.webkitDroppedFrameCount):ae=!1;return ae&&(oe.decodedFrames=be,oe.droppedFrames=we),oe}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let oe=this._mediaElement.buffered,ae=this._mediaElement.currentTime,be=0,we=0;for(let Ae=0;Ae<oe.length;Ae++){let nt=oe.start(Ae),it=oe.end(Ae);if(nt<=ae&&ae<it){be=nt,we=it;break}}we>=ae+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(fe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){fe.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let oe=this._mediaElement.currentTime,ae=this._mediaElement.buffered,be=!1;for(let we=0;we<ae.length;we++){let Ae=ae.start(we),nt=ae.end(we);if(oe>=Ae&&oe<nt){oe>=nt-this._config.lazyLoadRecoverDuration&&(be=!0);break}}be&&(window.clearInterval(this._progressChecker),this._progressChecker=null,be&&(fe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(oe){let ae=this._mediaElement.buffered;for(let be=0;be<ae.length;be++){let we=ae.start(be),Ae=ae.end(be);if(oe>=we&&oe<Ae)return!0}return!1}_internalSeek(oe){let ae=this._isTimepointBuffered(oe),be=!1,we=0;if(oe<1&&this._mediaElement.buffered.length>0){let Ae=this._mediaElement.buffered.start(0);(Ae<1&&oe<Ae||b.safari)&&(be=!0,we=b.safari?.1:Ae)}if(be)this._requestSetTime=!0,this._mediaElement.currentTime=we;else if(ae){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=oe;else{let Ae=this._msectl.getNearestKeyframe(Math.floor(oe*1e3));this._requestSetTime=!0,Ae!=null?this._mediaElement.currentTime=Ae.dts/1e3:this._mediaElement.currentTime=oe}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(oe),this._transmuxer.seek(Math.floor(oe*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=oe)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let oe=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(oe)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(oe),this._transmuxer.seek(Math.floor(oe*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=oe))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(oe){let ae=this._mediaElement;if(oe||!this._receivedCanPlay||ae.readyState<2){let be=ae.buffered;be.length>0&&ae.currentTime<be.start(0)&&(fe.w(this.TAG,`Playback seems stuck at ${ae.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(oe){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(oe){let ae=this._mediaElement.currentTime,be=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ae<1&&be.length>0){let we=be.start(0);if(we<1&&ae<we||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:we;return}}if(this._isTimepointBuffered(ae)){if(this._alwaysSeekKeyframe){let we=this._msectl.getNearestKeyframe(Math.floor(ae*1e3));we!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=we.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:ae,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(oe){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(oe){this._checkAndResumeStuckPlayback(!0)}_onvProgress(oe){this._checkAndResumeStuckPlayback()}}var En=Yn;class fr{constructor(oe,ae){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(pe()),this._config=lt(),typeof ae=="object"&&Object.assign(this._config,ae),oe.type.toLowerCase()==="flv")throw new le("NativePlayer does't support flv MediaDataSource input!");if(oe.hasOwnProperty("segments"))throw new le(`NativePlayer(${oe.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=oe,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(oe,ae){oe===Dt.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Dt.MEDIA_INFO,this.mediaInfo)}):oe===Dt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Dt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(oe,ae)}off(oe,ae){this._emitter.removeListener(oe,ae)}attachMediaElement(oe){if(this._mediaElement=oe,oe.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{oe.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ae){}}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(oe){this._mediaElement.volume=oe}get muted(){return this._mediaElement.muted}set muted(oe){this._mediaElement.muted=oe}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(oe){this._mediaElement?this._mediaElement.currentTime=oe:this._pendingSeekTime=oe}get mediaInfo(){let ae={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(ae.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ae.width=this._mediaElement.videoWidth,ae.height=this._mediaElement.videoHeight)),ae}get statisticsInfo(){let oe={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return oe;let ae=!0,be=0,we=0;if(this._mediaElement.getVideoPlaybackQuality){let Ae=this._mediaElement.getVideoPlaybackQuality();be=Ae.totalVideoFrames,we=Ae.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(be=this._mediaElement.webkitDecodedFrameCount,we=this._mediaElement.webkitDroppedFrameCount):ae=!1;return ae&&(oe.decodedFrames=be,oe.droppedFrames=we),oe}_onvLoadedMetadata(oe){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Dt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Dt.STATISTICS_INFO,this.statisticsInfo)}}var $n=fr;_e.install();function Un(ln,oe){let ae=ln;if(ae==null||typeof ae!="object")throw new le("MediaDataSource must be an javascript object!");if(!ae.hasOwnProperty("type"))throw new le("MediaDataSource must has type field to indicate video file type!");switch(ae.type){case"flv":return new En(ae,oe);default:return new $n(ae,oe)}}function Zo(){return xt.supportMSEH264Playback()}function ho(){return xt.getFeatureList()}let Wr={};Wr.createPlayer=Un,Wr.isSupported=Zo,Wr.getFeatureList=ho,Wr.BaseLoader=a,Wr.LoaderStatus=ie,Wr.LoaderErrors=ne,Wr.Events=Dt,Wr.ErrorTypes=Fr,Wr.ErrorDetails=Tn,Wr.FlvPlayer=En,Wr.NativePlayer=$n,Wr.LoggingControl=St,Object.defineProperty(Wr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var ai=Wr},38780:function(ft,Je){"use strict";const te=function(){const E=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let _e=1;_e<arguments.length;_e++){const Ee=_e<0||arguments.length<=_e?void 0:arguments[_e];Ee&&Object.keys(Ee).forEach(pe=>{const ve=Ee[pe];ve!==void 0&&(E[pe]=ve)})}return E};Je.Z=te},66367:function(ft,Je,te){"use strict";te.d(Je,{F:function(){return E}});function E(Ee){return Ee!=null&&Ee===Ee.window}const _e=Ee=>{var pe,ve;if(typeof window=="undefined")return 0;let fe=0;return E(Ee)?fe=Ee.pageYOffset:Ee instanceof Document?fe=Ee.documentElement.scrollTop:(Ee instanceof HTMLElement||Ee)&&(fe=Ee.scrollTop),Ee&&!E(Ee)&&typeof fe!="number"&&(fe=(ve=((pe=Ee.ownerDocument)!==null&&pe!==void 0?pe:Ee).documentElement)===null||ve===void 0?void 0:ve.scrollTop),fe};Je.Z=_e},58375:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return pe}});var E=te(96523);function _e(ve,fe,me,de){const ce=me-fe;return ve/=de/2,ve<1?ce/2*ve*ve*ve+fe:ce/2*((ve-=2)*ve*ve+2)+fe}var Ee=te(66367);function pe(ve){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:me=()=>window,callback:de,duration:ce=450}=fe,ue=me(),le=(0,Ee.Z)(ue),he=Date.now(),ie=()=>{const a=Date.now()-he,y=_e(a>ce?ce:a,le,ve,ce);(0,Ee.F)(ue)?ue.scrollTo(window.pageXOffset,y):ue instanceof Document||ue.constructor.name==="HTMLDocument"?ue.documentElement.scrollTop=y:ue.scrollTop=y,a<ce?(0,E.Z)(ie):typeof de=="function"&&de()};(0,E.Z)(ie)}},84567:function(ft,Je,te){"use strict";te.d(Je,{default:function(){return Re}});var E=te(67294),_e=te(13144),Ee=te.n(_e),pe=te(95860),ve=te(17799),fe=te(45353),me=te(92429),de=te(53124),ce=te(98866),ue=te(35792),le=te(65223),ie=E.createContext(null),ne=te(63185),a=te(5273),y=function(Le,Fe){var Ie={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&Fe.indexOf(vt)<0&&(Ie[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,vt=Object.getOwnPropertySymbols(Le);at<vt.length;at++)Fe.indexOf(vt[at])<0&&Object.prototype.propertyIsEnumerable.call(Le,vt[at])&&(Ie[vt[at]]=Le[vt[at]]);return Ie};const x=(Le,Fe)=>{var Ie;const{prefixCls:vt,className:at,rootClassName:et,children:De,indeterminate:Oe=!1,style:ke,onMouseEnter:lt,onMouseLeave:Xe,skipGroup:xt=!1,disabled:Ot}=Le,Dt=y(Le,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Kt,direction:St,checkbox:gt}=E.useContext(de.E_),ht=E.useContext(ie),{isFormItemInput:Qt}=E.useContext(le.aM),yt=E.useContext(ce.Z),Zt=(Ie=(ht==null?void 0:ht.disabled)||Ot)!==null&&Ie!==void 0?Ie:yt,Ye=E.useRef(Dt.value),Gt=E.useRef(null),fn=(0,ve.sQ)(Fe,Gt);E.useEffect(()=>{ht==null||ht.registerValue(Dt.value)},[]),E.useEffect(()=>{if(!xt)return Dt.value!==Ye.current&&(ht==null||ht.cancelValue(Ye.current),ht==null||ht.registerValue(Dt.value),Ye.current=Dt.value),()=>ht==null?void 0:ht.cancelValue(Dt.value)},[Dt.value]),E.useEffect(()=>{var qe;!((qe=Gt.current)===null||qe===void 0)&&qe.input&&(Gt.current.input.indeterminate=Oe)},[Oe]);const hn=Kt("checkbox",vt),mn=(0,ue.Z)(hn),[Mn,Rt,$t]=(0,ne.ZP)(hn,mn),Ct=Object.assign({},Dt);ht&&!xt&&(Ct.onChange=function(){Dt.onChange&&Dt.onChange.apply(Dt,arguments),ht.toggleOption&&ht.toggleOption({label:De,value:Dt.value})},Ct.name=ht.name,Ct.checked=ht.value.includes(Dt.value));const Be=Ee()(`${hn}-wrapper`,{[`${hn}-rtl`]:St==="rtl",[`${hn}-wrapper-checked`]:Ct.checked,[`${hn}-wrapper-disabled`]:Zt,[`${hn}-wrapper-in-form-item`]:Qt},gt==null?void 0:gt.className,at,et,$t,mn,Rt),rt=Ee()({[`${hn}-indeterminate`]:Oe},me.A,Rt),[tt,ct]=(0,a.Z)(Ct.onClick);return Mn(E.createElement(fe.Z,{component:"Checkbox",disabled:Zt},E.createElement("label",{className:Be,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ke),onMouseEnter:lt,onMouseLeave:Xe,onClick:tt},E.createElement(pe.Z,Object.assign({},Ct,{onClick:ct,prefixCls:hn,className:rt,disabled:Zt,ref:fn})),De!==void 0&&E.createElement("span",{className:`${hn}-label`},De))))};var z=E.forwardRef(x),ee=te(96641),re=te(10366),se=function(Le,Fe){var Ie={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&Fe.indexOf(vt)<0&&(Ie[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,vt=Object.getOwnPropertySymbols(Le);at<vt.length;at++)Fe.indexOf(vt[at])<0&&Object.prototype.propertyIsEnumerable.call(Le,vt[at])&&(Ie[vt[at]]=Le[vt[at]]);return Ie},Se=E.forwardRef((Le,Fe)=>{const{defaultValue:Ie,children:vt,options:at=[],prefixCls:et,className:De,rootClassName:Oe,style:ke,onChange:lt}=Le,Xe=se(Le,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:xt,direction:Ot}=E.useContext(de.E_),[Dt,Kt]=E.useState(Xe.value||Ie||[]),[St,gt]=E.useState([]);E.useEffect(()=>{"value"in Xe&&Kt(Xe.value||[])},[Xe.value]);const ht=E.useMemo(()=>at.map(rt=>typeof rt=="string"||typeof rt=="number"?{label:rt,value:rt}:rt),[at]),Qt=rt=>{gt(tt=>tt.filter(ct=>ct!==rt))},yt=rt=>{gt(tt=>[].concat((0,ee.Z)(tt),[rt]))},Zt=rt=>{const tt=Dt.indexOf(rt.value),ct=(0,ee.Z)(Dt);tt===-1?ct.push(rt.value):ct.splice(tt,1),"value"in Xe||Kt(ct),lt==null||lt(ct.filter(qe=>St.includes(qe)).sort((qe,Ge)=>{const ut=ht.findIndex(Ft=>Ft.value===qe),Pt=ht.findIndex(Ft=>Ft.value===Ge);return ut-Pt}))},Ye=xt("checkbox",et),Gt=`${Ye}-group`,fn=(0,ue.Z)(Ye),[hn,mn,Mn]=(0,ne.ZP)(Ye,fn),Rt=(0,re.Z)(Xe,["value","disabled"]),$t=at.length?ht.map(rt=>E.createElement(z,{prefixCls:Ye,key:rt.value.toString(),disabled:"disabled"in rt?rt.disabled:Xe.disabled,value:rt.value,checked:Dt.includes(rt.value),onChange:rt.onChange,className:`${Gt}-item`,style:rt.style,title:rt.title,id:rt.id,required:rt.required},rt.label)):vt,Ct={toggleOption:Zt,value:Dt,disabled:Xe.disabled,name:Xe.name,registerValue:yt,cancelValue:Qt},Be=Ee()(Gt,{[`${Gt}-rtl`]:Ot==="rtl"},De,Oe,Mn,fn,mn);return hn(E.createElement("div",Object.assign({className:Be,style:ke},Rt,{ref:Fe}),E.createElement(ie.Provider,{value:Ct},$t)))});const Pe=z;Pe.Group=Se,Pe.__ANT_CHECKBOX=!0;var Re=Pe},63185:function(ft,Je,te){"use strict";te.d(Je,{C2:function(){return fe}});var E=te(16777),_e=te(14747),Ee=te(43259),pe=te(83559);const ve=me=>{const{checkboxCls:de}=me,ce=`${de}-wrapper`;return[{[`${de}-group`]:Object.assign(Object.assign({},(0,_e.Wf)(me)),{display:"inline-flex",flexWrap:"wrap",columnGap:me.marginXS,[`> ${me.antCls}-row`]:{flex:1}}),[ce]:Object.assign(Object.assign({},(0,_e.Wf)(me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ce}`]:{marginInlineStart:0},[`&${ce}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[de]:Object.assign(Object.assign({},(0,_e.Wf)(me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:me.borderRadiusSM,alignSelf:"center",[`${de}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${de}-inner`]:Object.assign({},(0,_e.oN)(me))},[`${de}-inner`]:{boxSizing:"border-box",display:"block",width:me.checkboxSize,height:me.checkboxSize,direction:"ltr",backgroundColor:me.colorBgContainer,border:`${(0,E.unit)(me.lineWidth)} ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusSM,borderCollapse:"separate",transition:`all ${me.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:me.calc(me.checkboxSize).div(14).mul(5).equal(),height:me.calc(me.checkboxSize).div(14).mul(8).equal(),border:`${(0,E.unit)(me.lineWidthBold)} solid ${me.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${me.motionDurationFast} ${me.motionEaseInBack}, opacity ${me.motionDurationFast}`}},"& + span":{paddingInlineStart:me.paddingXS,paddingInlineEnd:me.paddingXS}})},{[`
|
|
|
${ce}:not(${ce}-disabled),
|
|
|
${de}:not(${de}-disabled)
|
|
|
`]:{[`&:hover ${de}-inner`]:{borderColor:me.colorPrimary}},[`${ce}:not(${ce}-disabled)`]:{[`&:hover ${de}-checked:not(${de}-disabled) ${de}-inner`]:{backgroundColor:me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${de}-checked:not(${de}-disabled):after`]:{borderColor:me.colorPrimaryHover}}},{[`${de}-checked`]:{[`${de}-inner`]:{backgroundColor:me.colorPrimary,borderColor:me.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${me.motionDurationMid} ${me.motionEaseOutBack} ${me.motionDurationFast}`}}},[`
|
|
|
${ce}-checked:not(${ce}-disabled),
|
|
|
${de}-checked:not(${de}-disabled)
|
|
|
`]:{[`&:hover ${de}-inner`]:{backgroundColor:me.colorPrimaryHover,borderColor:"transparent"}}},{[de]:{"&-indeterminate":{[`${de}-inner`]:{backgroundColor:`${me.colorBgContainer} !important`,borderColor:`${me.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:me.calc(me.fontSizeLG).div(2).equal(),height:me.calc(me.fontSizeLG).div(2).equal(),backgroundColor:me.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${de}-inner`]:{backgroundColor:`${me.colorBgContainer} !important`,borderColor:`${me.colorPrimary} !important`}}}},{[`${ce}-disabled`]:{cursor:"not-allowed"},[`${de}-disabled`]:{[`&, ${de}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${de}-inner`]:{background:me.colorBgContainerDisabled,borderColor:me.colorBorder,"&:after":{borderColor:me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:me.colorTextDisabled},[`&${de}-indeterminate ${de}-inner::after`]:{background:me.colorTextDisabled}}}]};function fe(me,de){const ce=(0,Ee.mergeToken)(de,{checkboxCls:`.${me}`,checkboxSize:de.controlInteractiveSize});return[ve(ce)]}Je.ZP=(0,pe.I$)("Checkbox",(me,de)=>{let{prefixCls:ce}=de;return[fe(ce,me)]})},18656:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return yi}});var E=te(67294),_e=te(13144),Ee=te.n(_e);function pe(Ue){"@babel/helpers - typeof";return pe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($e){return typeof $e}:function($e){return $e&&typeof Symbol=="function"&&$e.constructor===Symbol&&$e!==Symbol.prototype?"symbol":typeof $e},pe(Ue)}function ve(Ue,$e){if(pe(Ue)!="object"||!Ue)return Ue;var dt=Ue[Symbol.toPrimitive];if(dt!==void 0){var Mt=dt.call(Ue,$e||"default");if(pe(Mt)!="object")return Mt;throw new TypeError("@@toPrimitive must return a primitive value.")}return($e==="string"?String:Number)(Ue)}function fe(Ue){var $e=ve(Ue,"string");return pe($e)=="symbol"?$e:$e+""}function me(Ue,$e,dt){return($e=fe($e))in Ue?Object.defineProperty(Ue,$e,{value:dt,enumerable:!0,configurable:!0,writable:!0}):Ue[$e]=dt,Ue}function de(Ue,$e){var dt=Object.keys(Ue);if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(Ue);$e&&(Mt=Mt.filter(function(dn){return Object.getOwnPropertyDescriptor(Ue,dn).enumerable})),dt.push.apply(dt,Mt)}return dt}function ce(Ue){for(var $e=1;$e<arguments.length;$e++){var dt=arguments[$e]!=null?arguments[$e]:{};$e%2?de(Object(dt),!0).forEach(function(Mt){me(Ue,Mt,dt[Mt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ue,Object.getOwnPropertyDescriptors(dt)):de(Object(dt)).forEach(function(Mt){Object.defineProperty(Ue,Mt,Object.getOwnPropertyDescriptor(dt,Mt))})}return Ue}function ue(Ue){if(Array.isArray(Ue))return Ue}function le(Ue,$e){var dt=Ue==null?null:typeof Symbol!="undefined"&&Ue[Symbol.iterator]||Ue["@@iterator"];if(dt!=null){var Mt,dn,nr,Pr,Qr=[],Xr=!0,Vo=!1;try{if(nr=(dt=dt.call(Ue)).next,$e===0){if(Object(dt)!==dt)return;Xr=!1}else for(;!(Xr=(Mt=nr.call(dt)).done)&&(Qr.push(Mt.value),Qr.length!==$e);Xr=!0);}catch(Qo){Vo=!0,dn=Qo}finally{try{if(!Xr&&dt.return!=null&&(Pr=dt.return(),Object(Pr)!==Pr))return}finally{if(Vo)throw dn}}return Qr}}function he(Ue,$e){($e==null||$e>Ue.length)&&($e=Ue.length);for(var dt=0,Mt=Array($e);dt<$e;dt++)Mt[dt]=Ue[dt];return Mt}function ie(Ue,$e){if(Ue){if(typeof Ue=="string")return he(Ue,$e);var dt={}.toString.call(Ue).slice(8,-1);return dt==="Object"&&Ue.constructor&&(dt=Ue.constructor.name),dt==="Map"||dt==="Set"?Array.from(Ue):dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(dt)?he(Ue,$e):void 0}}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(Ue,$e){return ue(Ue)||le(Ue,$e)||ie(Ue,$e)||ne()}function y(Ue){if(Array.isArray(Ue))return Ue}function x(Ue,$e){var dt=Ue==null?null:typeof Symbol!="undefined"&&Ue[Symbol.iterator]||Ue["@@iterator"];if(dt!=null){var Mt,dn,nr,Pr,Qr=[],Xr=!0,Vo=!1;try{if(nr=(dt=dt.call(Ue)).next,$e===0){if(Object(dt)!==dt)return;Xr=!1}else for(;!(Xr=(Mt=nr.call(dt)).done)&&(Qr.push(Mt.value),Qr.length!==$e);Xr=!0);}catch(Qo){Vo=!0,dn=Qo}finally{try{if(!Xr&&dt.return!=null&&(Pr=dt.return(),Object(Pr)!==Pr))return}finally{if(Vo)throw dn}}return Qr}}function b(Ue,$e){($e==null||$e>Ue.length)&&($e=Ue.length);for(var dt=0,Mt=new Array($e);dt<$e;dt++)Mt[dt]=Ue[dt];return Mt}function z(Ue,$e){if(Ue){if(typeof Ue=="string")return b(Ue,$e);var dt=Object.prototype.toString.call(Ue).slice(8,-1);if(dt==="Object"&&Ue.constructor&&(dt=Ue.constructor.name),dt==="Map"||dt==="Set")return Array.from(Ue);if(dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(dt))return b(Ue,$e)}}function ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(Ue,$e){return y(Ue)||x(Ue,$e)||z(Ue,$e)||ee()}var se=te(73935);function ge(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Se={};function Pe(Ue,$e){}function Re(Ue,$e){}function Le(){Se={}}function Fe(Ue,$e,dt){!$e&&!Se[dt]&&(Ue(!1,dt),Se[dt]=!0)}function Ie(Ue,$e){Fe(Pe,Ue,$e)}function vt(Ue,$e){Fe(Re,Ue,$e)}var at=null;function et(Ue){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($e){return typeof $e}:function($e){return $e&&typeof Symbol=="function"&&$e.constructor===Symbol&&$e!==Symbol.prototype?"symbol":typeof $e},et(Ue)}var De=te(18459);function Oe(Ue,$e,dt){var Mt=E.useRef({});return(!("value"in Mt.current)||dt(Mt.current.condition,$e))&&(Mt.current.value=Ue(),Mt.current.condition=$e),Mt.current.value}function ke(Ue,$e){typeof Ue=="function"?Ue($e):et(Ue)==="object"&&Ue&&"current"in Ue&&(Ue.current=$e)}function lt(){for(var Ue=arguments.length,$e=new Array(Ue),dt=0;dt<Ue;dt++)$e[dt]=arguments[dt];var Mt=$e.filter(function(dn){return dn});return Mt.length<=1?Mt[0]:function(dn){$e.forEach(function(nr){ke(nr,dn)})}}function Xe(){for(var Ue=arguments.length,$e=new Array(Ue),dt=0;dt<Ue;dt++)$e[dt]=arguments[dt];return Oe(function(){return lt.apply(void 0,$e)},$e,function(Mt,dn){return Mt.length===dn.length&&Mt.every(function(nr,Pr){return nr===dn[Pr]})})}function xt(Ue){var $e,dt,Mt=(0,De.isMemo)(Ue)?Ue.type.type:Ue.type;return!(typeof Mt=="function"&&!(($e=Mt.prototype)!==null&&$e!==void 0&&$e.render)||typeof Ue=="function"&&!((dt=Ue.prototype)!==null&&dt!==void 0&&dt.render))}var Ot=E.createContext(null),Dt=Ot;function Kt(Ue){if(Array.isArray(Ue))return b(Ue)}function St(Ue){if(typeof Symbol!="undefined"&&Ue[Symbol.iterator]!=null||Ue["@@iterator"]!=null)return Array.from(Ue)}function gt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ht(Ue){return Kt(Ue)||St(Ue)||z(Ue)||gt()}var Qt=ge()?E.useLayoutEffect:E.useEffect,yt=Qt,Zt=function($e,dt){var Mt=React.useRef(!0);Qt(function(){if(!Mt.current)return $e()},dt),Qt(function(){return Mt.current=!1,function(){Mt.current=!0}},[])},Ye=[];function Gt(Ue,$e){var dt=E.useState(function(){if(!ge())return null;var Jr=document.createElement("div");return Jr}),Mt=re(dt,1),dn=Mt[0],nr=E.useRef(!1),Pr=E.useContext(Dt),Qr=E.useState(Ye),Xr=re(Qr,2),Vo=Xr[0],Qo=Xr[1],Ei=Pr||(nr.current?void 0:function(Jr){Qo(function(Jo){var Bi=[Jr].concat(ht(Jo));return Bi})});function Po(){dn.parentElement||document.body.appendChild(dn),nr.current=!0}function Ur(){var Jr;(Jr=dn.parentElement)===null||Jr===void 0||Jr.removeChild(dn),nr.current=!1}return yt(function(){return Ue?Pr?Pr(Po):Po():Ur(),Ur},[Ue]),yt(function(){Vo.length&&(Vo.forEach(function(Jr){return Jr()}),Qo(Ye))},[Vo]),[dn,Ei]}function fn(Ue,$e){if(!Ue)return!1;if(Ue.contains)return Ue.contains($e);for(var dt=$e;dt;){if(dt===Ue)return!0;dt=dt.parentNode}return!1}var hn="data-rc-order",mn="rc-util-key",Mn=new Map;function Rt(){var Ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$e=Ue.mark;return $e?$e.startsWith("data-")?$e:"data-".concat($e):mn}function $t(Ue){if(Ue.attachTo)return Ue.attachTo;var $e=document.querySelector("head");return $e||document.body}function Ct(Ue){return Ue==="queue"?"prependQueue":Ue?"prepend":"append"}function Be(Ue){return Array.from((Mn.get(Ue)||Ue).children).filter(function($e){return $e.tagName==="STYLE"})}function rt(Ue){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ge())return null;var dt=$e.csp,Mt=$e.prepend,dn=document.createElement("style");dn.setAttribute(hn,Ct(Mt)),dt!=null&&dt.nonce&&(dn.nonce=dt==null?void 0:dt.nonce),dn.innerHTML=Ue;var nr=$t($e),Pr=nr.firstChild;if(Mt){if(Mt==="queue"){var Qr=Be(nr).filter(function(Xr){return["prepend","prependQueue"].includes(Xr.getAttribute(hn))});if(Qr.length)return nr.insertBefore(dn,Qr[Qr.length-1].nextSibling),dn}nr.insertBefore(dn,Pr)}else nr.appendChild(dn);return dn}function tt(Ue){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=$t($e);return Be(dt).find(function(Mt){return Mt.getAttribute(Rt($e))===Ue})}function ct(Ue){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=tt(Ue,$e);if(dt){var Mt=$t($e);Mt.removeChild(dt)}}function qe(Ue,$e){var dt=Mn.get(Ue);if(!dt||!fn(document,dt)){var Mt=rt("",$e),dn=Mt.parentNode;Mn.set(Ue,dn),Ue.removeChild(Mt)}}function Ge(){Mn.clear()}function ut(Ue,$e){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Mt=$t(dt);qe(Mt,dt);var dn=tt($e,dt);if(dn){var nr,Pr;if((nr=dt.csp)!==null&&nr!==void 0&&nr.nonce&&dn.nonce!==((Pr=dt.csp)===null||Pr===void 0?void 0:Pr.nonce)){var Qr;dn.nonce=(Qr=dt.csp)===null||Qr===void 0?void 0:Qr.nonce}return dn.innerHTML!==Ue&&(dn.innerHTML=Ue),dn}var Xr=rt(Ue,dt);return Xr.setAttribute(Rt(dt),$e),Xr}var Pt;function Ft(Ue){if(typeof document=="undefined")return 0;if(Ue||Pt===void 0){var $e=document.createElement("div");$e.style.width="100%",$e.style.height="200px";var dt=document.createElement("div"),Mt=dt.style;Mt.position="absolute",Mt.top="0",Mt.left="0",Mt.pointerEvents="none",Mt.visibility="hidden",Mt.width="200px",Mt.height="150px",Mt.overflow="hidden",dt.appendChild($e),document.body.appendChild(dt);var dn=$e.offsetWidth;dt.style.overflow="scroll";var nr=$e.offsetWidth;dn===nr&&(nr=dt.clientWidth),document.body.removeChild(dt),Pt=dn-nr}return Pt}function _n(Ue){var $e=Ue.match(/^(.*)px$/),dt=Number($e==null?void 0:$e[1]);return Number.isNaN(dt)?Ft():dt}function Rn(Ue){if(typeof document=="undefined"||!Ue||!(Ue instanceof Element))return{width:0,height:0};var $e=getComputedStyle(Ue,"::-webkit-scrollbar"),dt=$e.width,Mt=$e.height;return{width:_n(dt),height:_n(Mt)}}function wn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ln="rc-util-locker-".concat(Date.now()),en=0;function Sn(Ue){var $e=!!Ue,dt=E.useState(function(){return en+=1,"".concat(Ln,"_").concat(en)}),Mt=re(dt,1),dn=Mt[0];yt(function(){if($e){var nr=Rn(document.body).width,Pr=wn();ut(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(Pr?"width: calc(100% - ".concat(nr,"px);"):"",`
|
|
|
}`),dn)}else ct(dn);return function(){ct(dn)}},[$e,dn])}var tn=!1;function Ke(Ue){return typeof Ue=="boolean"&&(tn=Ue),tn}var At=function($e){return $e===!1?!1:!ge()||!$e?null:typeof $e=="string"?document.querySelector($e):typeof $e=="function"?$e():$e},Nt=E.forwardRef(function(Ue,$e){var dt=Ue.open,Mt=Ue.autoLock,dn=Ue.getContainer,nr=Ue.debug,Pr=Ue.autoDestroy,Qr=Pr===void 0?!0:Pr,Xr=Ue.children,Vo=E.useState(dt),Qo=re(Vo,2),Ei=Qo[0],Po=Qo[1],Ur=Ei||dt;E.useEffect(function(){(Qr||dt)&&Po(dt)},[dt,Qr]);var Jr=E.useState(function(){return At(dn)}),Jo=re(Jr,2),Bi=Jo[0],Wi=Jo[1];E.useEffect(function(){var na=At(dn);Wi(na!=null?na:null)});var Eo=Gt(Ur&&!Bi,nr),Xi=re(Eo,2),ci=Xi[0],ri=Xi[1],ui=Bi!=null?Bi:ci;Sn(Mt&&dt&&ge()&&(ui===ci||ui===document.body));var Qi=null;if(Xr&&xt(Xr)&&$e){var ns=Xr;Qi=ns.ref}var Va=Xe(Qi,$e);if(!Ur||!ge()||Bi===void 0)return null;var ga=ui===!1||Ke(),La=Xr;return $e&&(La=E.cloneElement(Xr,{ref:Va})),E.createElement(Dt.Provider,{value:ri},ga?La:(0,se.createPortal)(La,ui))}),gn=Nt,xn=gn;function Nn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Pn=Nn()?E.useLayoutEffect:E.useEffect,ur=function($e,dt){var Mt=E.useRef(!0);Pn(function(){return $e(Mt.current)},dt),Pn(function(){return Mt.current=!1,function(){Mt.current=!0}},[])},Hn=function($e,dt){ur(function(Mt){if(!Mt)return $e()},dt)},Nr=ur,no=E.createContext(null),Fr=E.createContext({}),Tn=no;function Yn(){return Yn=Object.assign?Object.assign.bind():function(Ue){for(var $e=1;$e<arguments.length;$e++){var dt=arguments[$e];for(var Mt in dt)({}).hasOwnProperty.call(dt,Mt)&&(Ue[Mt]=dt[Mt])}return Ue},Yn.apply(null,arguments)}var En=te(94184),fr=te.n(En),$n=te(62874),Un={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($e){var dt=$e.keyCode;if($e.altKey&&!$e.ctrlKey||$e.metaKey||dt>=Un.F1&&dt<=Un.F12)return!1;switch(dt){case Un.ALT:case Un.CAPS_LOCK:case Un.CONTEXT_MENU:case Un.CTRL:case Un.DOWN:case Un.END:case Un.ESC:case Un.HOME:case Un.INSERT:case Un.LEFT:case Un.MAC_FF_META:case Un.META:case Un.NUMLOCK:case Un.NUM_CENTER:case Un.PAGE_DOWN:case Un.PAGE_UP:case Un.PAUSE:case Un.PRINT_SCREEN:case Un.RIGHT:case Un.SHIFT:case Un.UP:case Un.WIN_KEY:case Un.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function($e){if($e>=Un.ZERO&&$e<=Un.NINE||$e>=Un.NUM_ZERO&&$e<=Un.NUM_MULTIPLY||$e>=Un.A&&$e<=Un.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&$e===0)return!0;switch($e){case Un.SPACE:case Un.QUESTION_MARK:case Un.NUM_PLUS:case Un.NUM_MINUS:case Un.NUM_PERIOD:case Un.NUM_DIVISION:case Un.SEMICOLON:case Un.DASH:case Un.EQUALS:case Un.COMMA:case Un.PERIOD:case Un.SLASH:case Un.APOSTROPHE:case Un.SINGLE_QUOTE:case Un.OPEN_SQUARE_BRACKET:case Un.BACKSLASH:case Un.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Zo=Un;function ho(Ue){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function($e){return typeof $e}:function($e){return $e&&typeof Symbol=="function"&&$e.constructor===Symbol&&$e!==Symbol.prototype?"symbol":typeof $e},ho(Ue)}function Wr(Ue,$e){if(ho(Ue)!=="object"||Ue===null)return Ue;var dt=Ue[Symbol.toPrimitive];if(dt!==void 0){var Mt=dt.call(Ue,$e||"default");if(ho(Mt)!=="object")return Mt;throw new TypeError("@@toPrimitive must return a primitive value.")}return($e==="string"?String:Number)(Ue)}function ai(Ue){var $e=Wr(Ue,"string");return ho($e)==="symbol"?$e:String($e)}function ln(Ue,$e,dt){return $e=ai($e),$e in Ue?Object.defineProperty(Ue,$e,{value:dt,enumerable:!0,configurable:!0,writable:!0}):Ue[$e]=dt,Ue}function oe(Ue,$e){var dt=Object.keys(Ue);if(Object.getOwnPropertySymbols){var Mt=Object.getOwnPropertySymbols(Ue);$e&&(Mt=Mt.filter(function(dn){return Object.getOwnPropertyDescriptor(Ue,dn).enumerable})),dt.push.apply(dt,Mt)}return dt}function ae(Ue){for(var $e=1;$e<arguments.length;$e++){var dt=arguments[$e]!=null?arguments[$e]:{};$e%2?oe(Object(dt),!0).forEach(function(Mt){ln(Ue,Mt,dt[Mt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Ue,Object.getOwnPropertyDescriptors(dt)):oe(Object(dt)).forEach(function(Mt){Object.defineProperty(Ue,Mt,Object.getOwnPropertyDescriptor(dt,Mt))})}return Ue}var be=`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`,we=`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`,Ae="".concat(be," ").concat(we).split(/[\s\n]+/),nt="aria-",it="data-";function Vt(Ue,$e){return Ue.indexOf($e)===0}function It(Ue){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt;$e===!1?dt={aria:!0,data:!0,attr:!0}:$e===!0?dt={aria:!0}:dt=ae({},$e);var Mt={};return Object.keys(Ue).forEach(function(dn){(dt.aria&&(dn==="role"||Vt(dn,nt))||dt.data&&Vt(dn,it)||dt.attr&&Ae.includes(dn))&&(Mt[dn]=Ue[dn])}),Mt}function on(Ue,$e){if(Ue==null)return{};var dt={};for(var Mt in Ue)if({}.hasOwnProperty.call(Ue,Mt)){if($e.indexOf(Mt)!==-1)continue;dt[Mt]=Ue[Mt]}return dt}function zn(Ue,$e){if(Ue==null)return{};var dt,Mt,dn=on(Ue,$e);if(Object.getOwnPropertySymbols){var nr=Object.getOwnPropertySymbols(Ue);for(Mt=0;Mt<nr.length;Mt++)dt=nr[Mt],$e.indexOf(dt)===-1&&{}.propertyIsEnumerable.call(Ue,dt)&&(dn[dt]=Ue[dt])}return dn}var On=te(33993);function wt(Ue,$e,dt){var Mt=E.useRef({});return(!("value"in Mt.current)||dt(Mt.current.condition,$e))&&(Mt.current.value=Ue(),Mt.current.condition=$e),Mt.current.value}var An=Symbol.for("react.element"),Dn=Symbol.for("react.transitional.element"),Xt=Symbol.for("react.fragment");function an(Ue){return Ue&&_typeof(Ue)==="object"&&(Ue.$$typeof===An||Ue.$$typeof===Dn)&&Ue.type===Xt}var cn=Number(E.version.split(".")[0]),Jn=function($e,dt){typeof $e=="function"?$e(dt):ho($e)==="object"&&$e&&"current"in $e&&($e.current=dt)},vr=function(){for(var $e=arguments.length,dt=new Array($e),Mt=0;Mt<$e;Mt++)dt[Mt]=arguments[Mt];var dn=dt.filter(Boolean);return dn.length<=1?dn[0]:function(nr){dt.forEach(function(Pr){Jn(Pr,nr)})}},yo=function(){for(var $e=arguments.length,dt=new Array($e),Mt=0;Mt<$e;Mt++)dt[Mt]=arguments[Mt];return wt(function(){return vr.apply(void 0,dt)},dt,function(dn,nr){return dn.length!==nr.length||dn.every(function(Pr,Qr){return Pr!==nr[Qr]})})},mr=function($e){var dt,Mt;if(!$e)return!1;if(Wn($e)&&cn>=19)return!0;var dn=isMemo($e)?$e.type.type:$e.type;return!(typeof dn=="function"&&!((dt=dn.prototype)!==null&&dt!==void 0&&dt.render)&&dn.$$typeof!==ForwardRef||typeof $e=="function"&&!((Mt=$e.prototype)!==null&&Mt!==void 0&&Mt.render)&&$e.$$typeof!==ForwardRef)};function Wn(Ue){return isValidElement(Ue)&&!isFragment(Ue)}var Hr=function($e){return Wn($e)&&mr($e)},Kr=function($e){if($e&&Wn($e)){var dt=$e;return dt.props.propertyIsEnumerable("ref")?dt.props.ref:dt.ref}return null},lo=["prefixCls","className","containerRef"],_o=function($e){var dt=$e.prefixCls,Mt=$e.className,dn=$e.containerRef,nr=zn($e,lo),Pr=E.useContext(Fr),Qr=Pr.panel,Xr=yo(Qr,dn);return E.createElement("div",Yn({className:fr()("".concat(dt,"-content"),Mt),role:"dialog",ref:Xr},It($e,{aria:!0}),{"aria-modal":"true"},nr))},zt=_o,Ao={},po=[],vi=function($e){po.push($e)};function Ri(Ue,$e){if(0)var dt}function bn(Ue,$e){if(0)var dt}function tr(){Ao={}}function Sr(Ue,$e,dt){!$e&&!Ao[dt]&&(Ue(!1,dt),Ao[dt]=!0)}function Xn(Ue,$e){Sr(Ri,Ue,$e)}function Oo(Ue,$e){Sr(bn,Ue,$e)}Xn.preMessage=vi,Xn.resetWarned=tr,Xn.noteOnce=Oo;var ni=Xn;function Si(Ue){return typeof Ue=="string"&&String(Number(Ue))===Ue?(ni(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ue)):Ue}function zi(Ue){warning(!("wrapperClassName"in Ue),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ue.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Hi={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function gs(Ue,$e){var dt,Mt,dn,nr=Ue.prefixCls,Pr=Ue.open,Qr=Ue.placement,Xr=Ue.inline,Vo=Ue.push,Qo=Ue.forceRender,Ei=Ue.autoFocus,Po=Ue.keyboard,Ur=Ue.classNames,Jr=Ue.rootClassName,Jo=Ue.rootStyle,Bi=Ue.zIndex,Wi=Ue.className,Eo=Ue.id,Xi=Ue.style,ci=Ue.motion,ri=Ue.width,ui=Ue.height,Qi=Ue.children,ns=Ue.mask,Va=Ue.maskClosable,ga=Ue.maskMotion,La=Ue.maskClassName,na=Ue.maskStyle,Ya=Ue.afterOpenChange,Qe=Ue.onClose,je=Ue.onMouseEnter,mt=Ue.onMouseOver,Tt=Ue.onMouseLeave,kt=Ue.onClick,Jt=Ue.onKeyDown,Cn=Ue.onKeyUp,pn=Ue.styles,Yt=Ue.drawerRender,yn=E.useRef(),Zn=E.useRef(),kn=E.useRef();E.useImperativeHandle($e,function(){return yn.current});var Ar=function(wo){var hi=wo.keyCode,zo=wo.shiftKey;switch(hi){case Zo.TAB:{if(hi===Zo.TAB){if(!zo&&document.activeElement===kn.current){var si;(si=Zn.current)===null||si===void 0||si.focus({preventScroll:!0})}else if(zo&&document.activeElement===Zn.current){var Fi;(Fi=kn.current)===null||Fi===void 0||Fi.focus({preventScroll:!0})}}break}case Zo.ESC:{Qe&&Po&&(wo.stopPropagation(),Qe(wo));break}}};E.useEffect(function(){if(Pr&&Ei){var wr;(wr=yn.current)===null||wr===void 0||wr.focus({preventScroll:!0})}},[Pr]);var zr=E.useState(!1),kr=a(zr,2),oo=kr[0],qr=kr[1],yr=E.useContext(Tn),Bo;typeof Vo=="boolean"?Bo=Vo?{}:{distance:0}:Bo=Vo||{};var co=(dt=(Mt=(dn=Bo)===null||dn===void 0?void 0:dn.distance)!==null&&Mt!==void 0?Mt:yr==null?void 0:yr.pushDistance)!==null&&dt!==void 0?dt:180,uo=E.useMemo(function(){return{pushDistance:co,push:function(){qr(!0)},pull:function(){qr(!1)}}},[co]);E.useEffect(function(){if(Pr){var wr;yr==null||(wr=yr.push)===null||wr===void 0||wr.call(yr)}else{var wo;yr==null||(wo=yr.pull)===null||wo===void 0||wo.call(yr)}},[Pr]),E.useEffect(function(){return function(){var wr;yr==null||(wr=yr.pull)===null||wr===void 0||wr.call(yr)}},[]);var Dr=ns&&E.createElement($n.Z,Yn({key:"mask"},ga,{visible:Pr}),function(wr,wo){var hi=wr.className,zo=wr.style;return E.createElement("div",{className:fr()("".concat(nr,"-mask"),hi,Ur==null?void 0:Ur.mask,La),style:ce(ce(ce({},zo),na),pn==null?void 0:pn.mask),onClick:Va&&Pr?Qe:void 0,ref:wo})}),io=typeof ci=="function"?ci(Qr):ci,Tr={};if(oo&&co)switch(Qr){case"top":Tr.transform="translateY(".concat(co,"px)");break;case"bottom":Tr.transform="translateY(".concat(-co,"px)");break;case"left":Tr.transform="translateX(".concat(co,"px)");break;default:Tr.transform="translateX(".concat(-co,"px)");break}Qr==="left"||Qr==="right"?Tr.width=Si(ri):Tr.height=Si(ui);var Gr={onMouseEnter:je,onMouseOver:mt,onMouseLeave:Tt,onClick:kt,onKeyDown:Jt,onKeyUp:Cn},Fo=E.createElement($n.Z,Yn({key:"panel"},io,{visible:Pr,forceRender:Qo,onVisibleChanged:function(wo){Ya==null||Ya(wo)},removeOnLeave:!1,leavedClassName:"".concat(nr,"-content-wrapper-hidden")}),function(wr,wo){var hi=wr.className,zo=wr.style,si=E.createElement(zt,Yn({id:Eo,containerRef:wo,prefixCls:nr,className:fr()(Wi,Ur==null?void 0:Ur.content),style:ce(ce({},Xi),pn==null?void 0:pn.content)},It(Ue,{aria:!0}),Gr),Qi);return E.createElement("div",Yn({className:fr()("".concat(nr,"-content-wrapper"),Ur==null?void 0:Ur.wrapper,hi),style:ce(ce(ce({},Tr),zo),pn==null?void 0:pn.wrapper)},It(Ue,{data:!0})),Yt?Yt(si):si)}),$o=ce({},Jo);return Bi&&($o.zIndex=Bi),E.createElement(Tn.Provider,{value:uo},E.createElement("div",{className:fr()(nr,"".concat(nr,"-").concat(Qr),Jr,me(me({},"".concat(nr,"-open"),Pr),"".concat(nr,"-inline"),Xr)),style:$o,tabIndex:-1,ref:yn,onKeyDown:Ar},Dr,E.createElement("div",{tabIndex:0,ref:Zn,style:Hi,"aria-hidden":"true","data-sentinel":"start"}),Fo,E.createElement("div",{tabIndex:0,ref:kn,style:Hi,"aria-hidden":"true","data-sentinel":"end"})))}var ea=E.forwardRef(gs),$a=ea,fs=function($e){var dt=$e.open,Mt=dt===void 0?!1:dt,dn=$e.prefixCls,nr=dn===void 0?"rc-drawer":dn,Pr=$e.placement,Qr=Pr===void 0?"right":Pr,Xr=$e.autoFocus,Vo=Xr===void 0?!0:Xr,Qo=$e.keyboard,Ei=Qo===void 0?!0:Qo,Po=$e.width,Ur=Po===void 0?378:Po,Jr=$e.mask,Jo=Jr===void 0?!0:Jr,Bi=$e.maskClosable,Wi=Bi===void 0?!0:Bi,Eo=$e.getContainer,Xi=$e.forceRender,ci=$e.afterOpenChange,ri=$e.destroyOnClose,ui=$e.onMouseEnter,Qi=$e.onMouseOver,ns=$e.onMouseLeave,Va=$e.onClick,ga=$e.onKeyDown,La=$e.onKeyUp,na=$e.panelRef,Ya=E.useState(!1),Qe=a(Ya,2),je=Qe[0],mt=Qe[1],Tt=E.useState(!1),kt=a(Tt,2),Jt=kt[0],Cn=kt[1];Nr(function(){Cn(!0)},[]);var pn=Jt?Mt:!1,Yt=E.useRef(),yn=E.useRef();Nr(function(){pn&&(yn.current=document.activeElement)},[pn]);var Zn=function(oo){var qr;if(mt(oo),ci==null||ci(oo),!oo&&yn.current&&!((qr=Yt.current)!==null&&qr!==void 0&&qr.contains(yn.current))){var yr;(yr=yn.current)===null||yr===void 0||yr.focus({preventScroll:!0})}},kn=E.useMemo(function(){return{panel:na}},[na]);if(!Xi&&!je&&!pn&&ri)return null;var Ar={onMouseEnter:ui,onMouseOver:Qi,onMouseLeave:ns,onClick:Va,onKeyDown:ga,onKeyUp:La},zr=ce(ce({},$e),{},{open:pn,prefixCls:nr,placement:Qr,autoFocus:Vo,keyboard:Ei,width:Ur,mask:Jo,maskClosable:Wi,inline:Eo===!1,afterOpenChange:Zn,ref:Yt},Ar);return E.createElement(Fr.Provider,{value:kn},E.createElement(xn,{open:pn||Xi||je,autoDestroy:!1,getContainer:Eo,autoLock:Jo&&(pn||je)},E.createElement($a,zr)))},es=fs,Ra=es,Wa=te(89942),Ui=te(87263),Ka=te(33603),Ha=te(43945),ua=te(53124),bo=te(16569),ya=te(69760),ts=te(48054),$i=Ue=>{var $e,dt;const{prefixCls:Mt,title:dn,footer:nr,extra:Pr,loading:Qr,onClose:Xr,headerStyle:Vo,bodyStyle:Qo,footerStyle:Ei,children:Po,classNames:Ur,styles:Jr}=Ue,Jo=(0,ua.dj)("drawer"),Bi=E.useCallback(ri=>E.createElement("button",{type:"button",onClick:Xr,"aria-label":"Close",className:`${Mt}-close`},ri),[Xr]),[Wi,Eo]=(0,ya.Z)((0,ya.w)(Ue),(0,ya.w)(Jo),{closable:!0,closeIconRender:Bi}),Xi=E.useMemo(()=>{var ri,ui;return!dn&&!Wi?null:E.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(ri=Jo.styles)===null||ri===void 0?void 0:ri.header),Vo),Jr==null?void 0:Jr.header),className:Ee()(`${Mt}-header`,{[`${Mt}-header-close-only`]:Wi&&!dn&&!Pr},(ui=Jo.classNames)===null||ui===void 0?void 0:ui.header,Ur==null?void 0:Ur.header)},E.createElement("div",{className:`${Mt}-header-title`},Eo,dn&&E.createElement("div",{className:`${Mt}-title`},dn)),Pr&&E.createElement("div",{className:`${Mt}-extra`},Pr))},[Wi,Eo,Pr,Vo,Mt,dn]),ci=E.useMemo(()=>{var ri,ui;if(!nr)return null;const Qi=`${Mt}-footer`;return E.createElement("div",{className:Ee()(Qi,(ri=Jo.classNames)===null||ri===void 0?void 0:ri.footer,Ur==null?void 0:Ur.footer),style:Object.assign(Object.assign(Object.assign({},(ui=Jo.styles)===null||ui===void 0?void 0:ui.footer),Ei),Jr==null?void 0:Jr.footer)},nr)},[nr,Ei,Mt]);return E.createElement(E.Fragment,null,Xi,E.createElement("div",{className:Ee()(`${Mt}-body`,Ur==null?void 0:Ur.body,($e=Jo.classNames)===null||$e===void 0?void 0:$e.body),style:Object.assign(Object.assign(Object.assign({},(dt=Jo.styles)===null||dt===void 0?void 0:dt.body),Qo),Jr==null?void 0:Jr.body)},Qr?E.createElement(ts.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Mt}-body-skeleton`}):Po),ci)},da=te(16777),Ua=te(14747),Ks=te(83559),Oa=te(43259);const Es=Ue=>{const $e="100%";return{left:`translateX(-${$e})`,right:`translateX(${$e})`,top:`translateY(-${$e})`,bottom:`translateY(${$e})`}[Ue]},_s=(Ue,$e)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ue),{"&-active":$e}),"&-leave":Object.assign(Object.assign({},$e),{"&-active":Ue})}),Os=(Ue,$e)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${$e}`}}},_s({opacity:Ue},{opacity:1})),Vs=(Ue,$e)=>[Os(.7,$e),_s({transform:Es(Ue)},{transform:"none"})];var ws=Ue=>{const{componentCls:$e,motionDurationSlow:dt}=Ue;return{[$e]:{[`${$e}-mask-motion`]:Os(0,dt),[`${$e}-panel-motion`]:["left","right","top","bottom"].reduce((Mt,dn)=>Object.assign(Object.assign({},Mt),{[`&-${dn}`]:Vs(dn,dt)}),{})}}};const Ds=Ue=>{const{borderRadiusSM:$e,componentCls:dt,zIndexPopup:Mt,colorBgMask:dn,colorBgElevated:nr,motionDurationSlow:Pr,motionDurationMid:Qr,paddingXS:Xr,padding:Vo,paddingLG:Qo,fontSizeLG:Ei,lineHeightLG:Po,lineWidth:Ur,lineType:Jr,colorSplit:Jo,marginXS:Bi,colorIcon:Wi,colorIconHover:Eo,colorBgTextHover:Xi,colorBgTextActive:ci,colorText:ri,fontWeightStrong:ui,footerPaddingBlock:Qi,footerPaddingInline:ns,calc:Va}=Ue,ga=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:Mt,pointerEvents:"none",color:ri,"&-pure":{position:"relative",background:nr,display:"flex",flexDirection:"column",[`&${dt}-left`]:{boxShadow:Ue.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:Ue.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:Ue.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:Ue.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:Mt,background:dn,pointerEvents:"auto"},[ga]:{position:"absolute",zIndex:Mt,maxWidth:"100vw",transition:`all ${Pr}`,"&-hidden":{display:"none"}},[`&-left > ${ga}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ue.boxShadowDrawerLeft},[`&-right > ${ga}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ue.boxShadowDrawerRight},[`&-top > ${ga}`]:{top:0,insetInline:0,boxShadow:Ue.boxShadowDrawerUp},[`&-bottom > ${ga}`]:{bottom:0,insetInline:0,boxShadow:Ue.boxShadowDrawerDown},[`${dt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:nr,pointerEvents:"auto"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,da.unit)(Vo)} ${(0,da.unit)(Qo)}`,fontSize:Ei,lineHeight:Po,borderBottom:`${(0,da.unit)(Ur)} ${Jr} ${Jo}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:Object.assign({display:"inline-flex",width:Va(Ei).add(Xr).equal(),height:Va(Ei).add(Xr).equal(),borderRadius:$e,justifyContent:"center",alignItems:"center",marginInlineEnd:Bi,color:Wi,fontWeight:ui,fontSize:Ei,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Qr}`,textRendering:"auto","&:hover":{color:Eo,backgroundColor:Xi,textDecoration:"none"},"&:active":{backgroundColor:ci}},(0,Ua.Qy)(Ue)),[`${dt}-title`]:{flex:1,margin:0,fontWeight:Ue.fontWeightStrong,fontSize:Ei,lineHeight:Po},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Qo,overflow:"auto",[`${dt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${dt}-footer`]:{flexShrink:0,padding:`${(0,da.unit)(Qi)} ${(0,da.unit)(ns)}`,borderTop:`${(0,da.unit)(Ur)} ${Jr} ${Jo}`},"&-rtl":{direction:"rtl"}}}},Gs=Ue=>({zIndexPopup:Ue.zIndexPopupBase,footerPaddingBlock:Ue.paddingXS,footerPaddingInline:Ue.padding});var Ls=(0,Ks.I$)("Drawer",Ue=>{const $e=(0,Oa.mergeToken)(Ue,{});return[Ds($e),ws($e)]},Gs),sr=function(Ue,$e){var dt={};for(var Mt in Ue)Object.prototype.hasOwnProperty.call(Ue,Mt)&&$e.indexOf(Mt)<0&&(dt[Mt]=Ue[Mt]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dn=0,Mt=Object.getOwnPropertySymbols(Ue);dn<Mt.length;dn++)$e.indexOf(Mt[dn])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Mt[dn])&&(dt[Mt[dn]]=Ue[Mt[dn]]);return dt};const Qn=null,ir={distance:180},hr=Ue=>{var $e;const{rootClassName:dt,width:Mt,height:dn,size:nr="default",mask:Pr=!0,push:Qr=ir,open:Xr,afterOpenChange:Vo,onClose:Qo,prefixCls:Ei,getContainer:Po,style:Ur,className:Jr,visible:Jo,afterVisibleChange:Bi,maskStyle:Wi,drawerStyle:Eo,contentWrapperStyle:Xi}=Ue,ci=sr(Ue,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:ri,getPrefixCls:ui,direction:Qi,className:ns,style:Va,classNames:ga,styles:La}=(0,ua.dj)("drawer"),na=ui("drawer",Ei),[Ya,Qe,je]=Ls(na),mt=Po===void 0&&ri?()=>ri(document.body):Po,Tt=Ee()({"no-mask":!Pr,[`${na}-rtl`]:Qi==="rtl"},dt,Qe,je),kt=E.useMemo(()=>Mt!=null?Mt:nr==="large"?736:378,[Mt,nr]),Jt=E.useMemo(()=>dn!=null?dn:nr==="large"?736:378,[dn,nr]),Cn={motionName:(0,Ka.m)(na,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},pn=zr=>({motionName:(0,Ka.m)(na,`panel-motion-${zr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Yt=(0,bo.H)(),[yn,Zn]=(0,Ui.Cn)("Drawer",ci.zIndex),{classNames:kn={},styles:Ar={}}=ci;return Ya(E.createElement(Wa.Z,{form:!0,space:!0},E.createElement(Ha.Z.Provider,{value:Zn},E.createElement(Ra,Object.assign({prefixCls:na,onClose:Qo,maskMotion:Cn,motion:pn},ci,{classNames:{mask:Ee()(kn.mask,ga.mask),content:Ee()(kn.content,ga.content),wrapper:Ee()(kn.wrapper,ga.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Ar.mask),Wi),La.mask),content:Object.assign(Object.assign(Object.assign({},Ar.content),Eo),La.content),wrapper:Object.assign(Object.assign(Object.assign({},Ar.wrapper),Xi),La.wrapper)},open:Xr!=null?Xr:Jo,mask:Pr,push:Qr,width:kt,height:Jt,style:Object.assign(Object.assign({},Va),Ur),className:Ee()(ns,Jr),rootClassName:Tt,getContainer:mt,afterOpenChange:Vo!=null?Vo:Bi,panelRef:Yt,zIndex:yn}),E.createElement($i,Object.assign({prefixCls:na},ci,{onClose:Qo}))))))},No=Ue=>{const{prefixCls:$e,style:dt,className:Mt,placement:dn="right"}=Ue,nr=sr(Ue,["prefixCls","style","className","placement"]),{getPrefixCls:Pr}=E.useContext(ua.E_),Qr=Pr("drawer",$e),[Xr,Vo,Qo]=Ls(Qr),Ei=Ee()(Qr,`${Qr}-pure`,`${Qr}-${dn}`,Vo,Qo,Mt);return Xr(E.createElement("div",{className:Ei,style:dt},E.createElement($i,Object.assign({prefixCls:Qr},nr))))};hr._InternalPanelDoNotUseOrYouWillBeFired=No;var yi=hr},59690:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return tn}});var E=te(67294),_e=te(55007),Ee=te(79269),pe=te(13144),ve=te.n(pe);function fe(){return fe=Object.assign?Object.assign.bind():function(Ke){for(var At=1;At<arguments.length;At++){var Nt=arguments[At];for(var gn in Nt)Object.prototype.hasOwnProperty.call(Nt,gn)&&(Ke[gn]=Nt[gn])}return Ke},fe.apply(this,arguments)}function me(Ke){"@babel/helpers - typeof";return me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(At){return typeof At}:function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},me(Ke)}function de(Ke,At){if(me(Ke)!=="object"||Ke===null)return Ke;var Nt=Ke[Symbol.toPrimitive];if(Nt!==void 0){var gn=Nt.call(Ke,At||"default");if(me(gn)!=="object")return gn;throw new TypeError("@@toPrimitive must return a primitive value.")}return(At==="string"?String:Number)(Ke)}function ce(Ke){var At=de(Ke,"string");return me(At)==="symbol"?At:String(At)}function ue(Ke,At,Nt){return At=ce(At),At in Ke?Object.defineProperty(Ke,At,{value:Nt,enumerable:!0,configurable:!0,writable:!0}):Ke[At]=Nt,Ke}function le(Ke){if(Array.isArray(Ke))return Ke}function he(Ke,At){var Nt=Ke==null?null:typeof Symbol!="undefined"&&Ke[Symbol.iterator]||Ke["@@iterator"];if(Nt!=null){var gn,xn,Nn,Pn,ur=[],Hn=!0,Nr=!1;try{if(Nn=(Nt=Nt.call(Ke)).next,At===0){if(Object(Nt)!==Nt)return;Hn=!1}else for(;!(Hn=(gn=Nn.call(Nt)).done)&&(ur.push(gn.value),ur.length!==At);Hn=!0);}catch(no){Nr=!0,xn=no}finally{try{if(!Hn&&Nt.return!=null&&(Pn=Nt.return(),Object(Pn)!==Pn))return}finally{if(Nr)throw xn}}return ur}}function ie(Ke,At){(At==null||At>Ke.length)&&(At=Ke.length);for(var Nt=0,gn=new Array(At);Nt<At;Nt++)gn[Nt]=Ke[Nt];return gn}function ne(Ke,At){if(Ke){if(typeof Ke=="string")return ie(Ke,At);var Nt=Object.prototype.toString.call(Ke).slice(8,-1);if(Nt==="Object"&&Ke.constructor&&(Nt=Ke.constructor.name),Nt==="Map"||Nt==="Set")return Array.from(Ke);if(Nt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Nt))return ie(Ke,At)}}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(Ke,At){return le(Ke)||he(Ke,At)||ne(Ke,At)||a()}function x(Ke,At){if(Ke==null)return{};var Nt={},gn=Object.keys(Ke),xn,Nn;for(Nn=0;Nn<gn.length;Nn++)xn=gn[Nn],!(At.indexOf(xn)>=0)&&(Nt[xn]=Ke[xn]);return Nt}function b(Ke,At){if(Ke==null)return{};var Nt=x(Ke,At),gn,xn;if(Object.getOwnPropertySymbols){var Nn=Object.getOwnPropertySymbols(Ke);for(xn=0;xn<Nn.length;xn++)gn=Nn[xn],!(At.indexOf(gn)>=0)&&Object.prototype.propertyIsEnumerable.call(Ke,gn)&&(Nt[gn]=Ke[gn])}return Nt}var z=te(98280),ee=te(17689),re=te.n(ee),se=te(17799),ge=te(92389),Se=te(96523),Pe=ge.Z.ESC,Re=ge.Z.TAB;function Le(Ke){var At=Ke.visible,Nt=Ke.triggerRef,gn=Ke.onVisibleChange,xn=Ke.autoFocus,Nn=Ke.overlayRef,Pn=E.useRef(!1),ur=function(){if(At){var Fr,Tn;(Fr=Nt.current)===null||Fr===void 0||(Tn=Fr.focus)===null||Tn===void 0||Tn.call(Fr),gn==null||gn(!1)}},Hn=function(){var Fr;return(Fr=Nn.current)!==null&&Fr!==void 0&&Fr.focus?(Nn.current.focus(),Pn.current=!0,!0):!1},Nr=function(Fr){switch(Fr.keyCode){case Pe:ur();break;case Re:{var Tn=!1;Pn.current||(Tn=Hn()),Tn?Fr.preventDefault():ur();break}}};E.useEffect(function(){return At?(window.addEventListener("keydown",Nr),xn&&(0,Se.Z)(Hn,3),function(){window.removeEventListener("keydown",Nr),Pn.current=!1}):function(){Pn.current=!1}},[At])}var Fe=(0,E.forwardRef)(function(Ke,At){var Nt=Ke.overlay,gn=Ke.arrow,xn=Ke.prefixCls,Nn=(0,E.useMemo)(function(){var ur;return typeof Nt=="function"?ur=Nt():ur=Nt,ur},[Nt]),Pn=(0,se.sQ)(At,(0,se.C4)(Nn));return E.createElement(E.Fragment,null,gn&&E.createElement("div",{className:"".concat(xn,"-arrow")}),E.cloneElement(Nn,{ref:(0,se.Yr)(Nn)?Pn:void 0}))}),Ie=Fe,vt={adjustX:1,adjustY:1},at=[0,0],et={topLeft:{points:["bl","tl"],overflow:vt,offset:[0,-4],targetOffset:at},top:{points:["bc","tc"],overflow:vt,offset:[0,-4],targetOffset:at},topRight:{points:["br","tr"],overflow:vt,offset:[0,-4],targetOffset:at},bottomLeft:{points:["tl","bl"],overflow:vt,offset:[0,4],targetOffset:at},bottom:{points:["tc","bc"],overflow:vt,offset:[0,4],targetOffset:at},bottomRight:{points:["tr","br"],overflow:vt,offset:[0,4],targetOffset:at}},De=et,Oe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ke(Ke,At){var Nt,gn=Ke.arrow,xn=gn===void 0?!1:gn,Nn=Ke.prefixCls,Pn=Nn===void 0?"rc-dropdown":Nn,ur=Ke.transitionName,Hn=Ke.animation,Nr=Ke.align,no=Ke.placement,Fr=no===void 0?"bottomLeft":no,Tn=Ke.placements,Yn=Tn===void 0?De:Tn,En=Ke.getPopupContainer,fr=Ke.showAction,$n=Ke.hideAction,Un=Ke.overlayClassName,Zo=Ke.overlayStyle,ho=Ke.visible,Wr=Ke.trigger,ai=Wr===void 0?["hover"]:Wr,ln=Ke.autoFocus,oe=Ke.overlay,ae=Ke.children,be=Ke.onVisibleChange,we=b(Ke,Oe),Ae=E.useState(),nt=y(Ae,2),it=nt[0],Vt=nt[1],It="visible"in Ke?ho:it,on=E.useRef(null),zn=E.useRef(null),On=E.useRef(null);E.useImperativeHandle(At,function(){return on.current});var wt=function(mr){Vt(mr),be==null||be(mr)};Le({visible:It,triggerRef:On,onVisibleChange:wt,autoFocus:ln,overlayRef:zn});var An=function(mr){var Wn=Ke.onOverlayClick;Vt(!1),Wn&&Wn(mr)},Dn=function(){return E.createElement(Ie,{ref:zn,overlay:oe,prefixCls:Pn,arrow:xn})},Xt=function(){return typeof oe=="function"?Dn:Dn()},an=function(){var mr=Ke.minOverlayWidthMatchTrigger,Wn=Ke.alignPoint;return"minOverlayWidthMatchTrigger"in Ke?mr:!Wn},cn=function(){var mr=Ke.openClassName;return mr!==void 0?mr:"".concat(Pn,"-open")},Jn=E.cloneElement(ae,{className:re()((Nt=ae.props)===null||Nt===void 0?void 0:Nt.className,It&&cn()),ref:(0,se.Yr)(ae)?(0,se.sQ)(On,(0,se.C4)(ae)):void 0}),vr=$n;return!vr&&ai.indexOf("contextMenu")!==-1&&(vr=["click"]),E.createElement(z.Z,fe({builtinPlacements:Yn},we,{prefixCls:Pn,ref:on,popupClassName:re()(Un,ue({},"".concat(Pn,"-show-arrow"),xn)),popupStyle:Zo,action:ai,showAction:fr,hideAction:vr,popupPlacement:Fr,popupAlign:Nr,popupTransitionName:ur,popupAnimation:Hn,popupVisible:It,stretch:an()?"minWidth":"",popup:Xt(),onPopupVisibleChange:wt,onPopupClick:An,getPopupContainer:En}),Jn)}var lt=E.forwardRef(ke),Xe=lt,xt=te(77527),Ot=te(5663),Dt=te(10366),Kt=te(87263),gt=Ke=>typeof Ke!="object"&&typeof Ke!="function"||Ke===null,ht=te(80636),Qt=te(8745),yt=te(96159),Zt=te(27288),Ye=te(43945),Gt=te(53124),fn=te(35792),hn=te(50136),mn=te(76529),Mn=te(15729),Rt=te(16777),$t=te(14747),Ct=te(67771),Be=te(33297),rt=te(50438),tt=te(97414),ct=te(79511),qe=te(83559),Ge=te(43259),Pt=Ke=>{const{componentCls:At,menuCls:Nt,colorError:gn,colorTextLightSolid:xn}=Ke,Nn=`${Nt}-item`;return{[`${At}, ${At}-menu-submenu`]:{[`${Nt} ${Nn}`]:{[`&${Nn}-danger:not(${Nn}-disabled)`]:{color:gn,"&:hover":{color:xn,backgroundColor:gn}}}}}};const Ft=Ke=>{const{componentCls:At,menuCls:Nt,zIndexPopup:gn,dropdownArrowDistance:xn,sizePopupArrow:Nn,antCls:Pn,iconCls:ur,motionDurationMid:Hn,paddingBlock:Nr,fontSize:no,dropdownEdgeChildPadding:Fr,colorTextDisabled:Tn,fontSizeIcon:Yn,controlPaddingHorizontal:En,colorBgElevated:fr}=Ke;return[{[At]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:gn,display:"block","&::before":{position:"absolute",insetBlock:Ke.calc(Nn).div(2).sub(xn).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${Pn}-btn`]:{[`& > ${ur}-down, & > ${Pn}-btn-icon > ${ur}-down`]:{fontSize:Yn}},[`${At}-wrap`]:{position:"relative",[`${Pn}-btn > ${ur}-down`]:{fontSize:Yn},[`${ur}-down::before`]:{transition:`transform ${Hn}`}},[`${At}-wrap-open`]:{[`${ur}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Pn}-slide-down-enter${Pn}-slide-down-enter-active${At}-placement-bottomLeft,
|
|
|
&${Pn}-slide-down-appear${Pn}-slide-down-appear-active${At}-placement-bottomLeft,
|
|
|
&${Pn}-slide-down-enter${Pn}-slide-down-enter-active${At}-placement-bottom,
|
|
|
&${Pn}-slide-down-appear${Pn}-slide-down-appear-active${At}-placement-bottom,
|
|
|
&${Pn}-slide-down-enter${Pn}-slide-down-enter-active${At}-placement-bottomRight,
|
|
|
&${Pn}-slide-down-appear${Pn}-slide-down-appear-active${At}-placement-bottomRight`]:{animationName:Ct.fJ},[`&${Pn}-slide-up-enter${Pn}-slide-up-enter-active${At}-placement-topLeft,
|
|
|
&${Pn}-slide-up-appear${Pn}-slide-up-appear-active${At}-placement-topLeft,
|
|
|
&${Pn}-slide-up-enter${Pn}-slide-up-enter-active${At}-placement-top,
|
|
|
&${Pn}-slide-up-appear${Pn}-slide-up-appear-active${At}-placement-top,
|
|
|
&${Pn}-slide-up-enter${Pn}-slide-up-enter-active${At}-placement-topRight,
|
|
|
&${Pn}-slide-up-appear${Pn}-slide-up-appear-active${At}-placement-topRight`]:{animationName:Ct.Qt},[`&${Pn}-slide-down-leave${Pn}-slide-down-leave-active${At}-placement-bottomLeft,
|
|
|
&${Pn}-slide-down-leave${Pn}-slide-down-leave-active${At}-placement-bottom,
|
|
|
&${Pn}-slide-down-leave${Pn}-slide-down-leave-active${At}-placement-bottomRight`]:{animationName:Ct.Uw},[`&${Pn}-slide-up-leave${Pn}-slide-up-leave-active${At}-placement-topLeft,
|
|
|
&${Pn}-slide-up-leave${Pn}-slide-up-leave-active${At}-placement-top,
|
|
|
&${Pn}-slide-up-leave${Pn}-slide-up-leave-active${At}-placement-topRight`]:{animationName:Ct.ly}}},(0,tt.ZP)(Ke,fr,{arrowPlacement:{top:!0,bottom:!0}}),{[`${At} ${Nt}`]:{position:"relative",margin:0},[`${Nt}-submenu-popup`]:{position:"absolute",zIndex:gn,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${At}, ${At}-menu-submenu`]:Object.assign(Object.assign({},(0,$t.Wf)(Ke)),{[Nt]:Object.assign(Object.assign({padding:Fr,listStyleType:"none",backgroundColor:fr,backgroundClip:"padding-box",borderRadius:Ke.borderRadiusLG,outline:"none",boxShadow:Ke.boxShadowSecondary},(0,$t.Qy)(Ke)),{"&:empty":{padding:0,boxShadow:"none"},[`${Nt}-item-group-title`]:{padding:`${(0,Rt.unit)(Nr)} ${(0,Rt.unit)(En)}`,color:Ke.colorTextDescription,transition:`all ${Hn}`},[`${Nt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Nt}-item-icon`]:{minWidth:no,marginInlineEnd:Ke.marginXS,fontSize:Ke.fontSizeSM},[`${Nt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Hn}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${Nt}-item-extra`]:{paddingInlineStart:Ke.padding,marginInlineStart:"auto",fontSize:Ke.fontSizeSM,color:Ke.colorTextDescription}},[`${Nt}-item, ${Nt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Rt.unit)(Nr)} ${(0,Rt.unit)(En)}`,color:Ke.colorText,fontWeight:"normal",fontSize:no,lineHeight:Ke.lineHeight,cursor:"pointer",transition:`all ${Hn}`,borderRadius:Ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ke.controlItemBgHover}},(0,$t.Qy)(Ke)),{"&-selected":{color:Ke.colorPrimary,backgroundColor:Ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ke.controlItemBgActiveHover}},"&-disabled":{color:Tn,cursor:"not-allowed","&:hover":{color:Tn,backgroundColor:fr,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Rt.unit)(Ke.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ke.colorSplit},[`${At}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ke.paddingXS,[`${At}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ke.colorTextDescription,fontSize:Yn,fontStyle:"normal"}}}),[`${Nt}-item-group-list`]:{margin:`0 ${(0,Rt.unit)(Ke.marginXS)}`,padding:0,listStyle:"none"},[`${Nt}-submenu-title`]:{paddingInlineEnd:Ke.calc(En).add(Ke.fontSizeSM).equal()},[`${Nt}-submenu-vertical`]:{position:"relative"},[`${Nt}-submenu${Nt}-submenu-disabled ${At}-menu-submenu-title`]:{[`&, ${At}-menu-submenu-arrow-icon`]:{color:Tn,backgroundColor:fr,cursor:"not-allowed"}},[`${Nt}-submenu-selected ${At}-menu-submenu-title`]:{color:Ke.colorPrimary}})})},[(0,Ct.oN)(Ke,"slide-up"),(0,Ct.oN)(Ke,"slide-down"),(0,Be.Fm)(Ke,"move-up"),(0,Be.Fm)(Ke,"move-down"),(0,rt._y)(Ke,"zoom-big")]]},_n=Ke=>Object.assign(Object.assign({zIndexPopup:Ke.zIndexPopupBase+50,paddingBlock:(Ke.controlHeight-Ke.fontSize*Ke.lineHeight)/2},(0,tt.wZ)({contentRadius:Ke.borderRadiusLG,limitVerticalRadius:!0})),(0,ct.w)(Ke));var Rn=(0,qe.I$)("Dropdown",Ke=>{const{marginXXS:At,sizePopupArrow:Nt,paddingXXS:gn,componentCls:xn}=Ke,Nn=(0,Ge.mergeToken)(Ke,{menuCls:`${xn}-menu`,dropdownArrowDistance:Ke.calc(Nt).div(2).add(At).equal(),dropdownEdgeChildPadding:gn});return[Ft(Nn),Pt(Nn)]},_n,{resetStyle:!1});const wn=null,Ln=Ke=>{var At;const{menu:Nt,arrow:gn,prefixCls:xn,children:Nn,trigger:Pn,disabled:ur,dropdownRender:Hn,getPopupContainer:Nr,overlayClassName:no,rootClassName:Fr,overlayStyle:Tn,open:Yn,onOpenChange:En,visible:fr,onVisibleChange:$n,mouseEnterDelay:Un=.15,mouseLeaveDelay:Zo=.1,autoAdjustOverflow:ho=!0,placement:Wr="",overlay:ai,transitionName:ln}=Ke,{getPopupContainer:oe,getPrefixCls:ae,direction:be,dropdown:we}=E.useContext(Gt.E_),Ae=(0,Zt.ln)("Dropdown"),nt=E.useMemo(()=>{const zt=ae();return ln!==void 0?ln:Wr.includes("top")?`${zt}-slide-down`:`${zt}-slide-up`},[ae,Wr,ln]),it=E.useMemo(()=>Wr?Wr.includes("Center")?Wr.slice(0,Wr.indexOf("Center")):Wr:be==="rtl"?"bottomRight":"bottomLeft",[Wr,be]),Vt=ae("dropdown",xn),It=(0,fn.Z)(Vt),[on,zn,On]=Rn(Vt,It),[,wt]=(0,Mn.ZP)(),An=E.Children.only(gt(Nn)?E.createElement("span",null,Nn):Nn),Dn=(0,yt.Tm)(An,{className:ve()(`${Vt}-trigger`,{[`${Vt}-rtl`]:be==="rtl"},An.props.className),disabled:(At=An.props.disabled)!==null&&At!==void 0?At:ur}),Xt=ur?[]:Pn,an=!!(Xt!=null&&Xt.includes("contextMenu")),[cn,Jn]=(0,Ot.Z)(!1,{value:Yn!=null?Yn:fr}),vr=(0,xt.Z)(zt=>{En==null||En(zt,{source:"trigger"}),$n==null||$n(zt),Jn(zt)}),yo=ve()(no,Fr,zn,On,It,we==null?void 0:we.className,{[`${Vt}-rtl`]:be==="rtl"}),mr=(0,ht.Z)({arrowPointAtCenter:typeof gn=="object"&&gn.pointAtCenter,autoAdjustOverflow:ho,offset:wt.marginXXS,arrowWidth:gn?wt.sizePopupArrow:0,borderRadius:wt.borderRadius}),Wn=E.useCallback(()=>{Nt!=null&&Nt.selectable&&(Nt!=null&&Nt.multiple)||(En==null||En(!1,{source:"menu"}),Jn(!1))},[Nt==null?void 0:Nt.selectable,Nt==null?void 0:Nt.multiple]),Hr=()=>{let zt;return Nt!=null&&Nt.items?zt=E.createElement(hn.default,Object.assign({},Nt)):typeof ai=="function"?zt=ai():zt=ai,Hn&&(zt=Hn(zt)),zt=E.Children.only(typeof zt=="string"?E.createElement("span",null,zt):zt),E.createElement(mn.J,{prefixCls:`${Vt}-menu`,rootClassName:ve()(On,It),expandIcon:E.createElement("span",{className:`${Vt}-menu-submenu-arrow`},be==="rtl"?E.createElement(_e.Z,{className:`${Vt}-menu-submenu-arrow-icon`}):E.createElement(Ee.Z,{className:`${Vt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Wn,validator:Ao=>{let{mode:po}=Ao}},zt)},[Kr,lo]=(0,Kt.Cn)("Dropdown",Tn==null?void 0:Tn.zIndex);let _o=E.createElement(Xe,Object.assign({alignPoint:an},(0,Dt.Z)(Ke,["rootClassName"]),{mouseEnterDelay:Un,mouseLeaveDelay:Zo,visible:cn,builtinPlacements:mr,arrow:!!gn,overlayClassName:yo,prefixCls:Vt,getPopupContainer:Nr||oe,transitionName:nt,trigger:Xt,overlay:Hr,placement:it,onVisibleChange:vr,overlayStyle:Object.assign(Object.assign(Object.assign({},we==null?void 0:we.style),Tn),{zIndex:Kr})}),Dn);return Kr&&(_o=E.createElement(Ye.Z.Provider,{value:lo},_o)),on(_o)},en=(0,Qt.Z)(Ln,"align",void 0,"dropdown",Ke=>Ke),Sn=Ke=>E.createElement(en,Object.assign({},Ke),E.createElement("span",null));Ln._InternalPanelDoNotUseOrYouWillBeFired=Sn;var tn=Ln},85418:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return ne}});var E=te(59690),_e=te(67294),Ee=te(64582),pe=te(13144),ve=te.n(pe),fe=te(85804),me=te(53124),de=te(78957),ce=te(4173),ue=function(a,y){var x={};for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&y.indexOf(b)<0&&(x[b]=a[b]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,b=Object.getOwnPropertySymbols(a);z<b.length;z++)y.indexOf(b[z])<0&&Object.prototype.propertyIsEnumerable.call(a,b[z])&&(x[b[z]]=a[b[z]]);return x};const le=a=>{const{getPopupContainer:y,getPrefixCls:x,direction:b}=_e.useContext(me.E_),{prefixCls:z,type:ee="default",danger:re,disabled:se,loading:ge,onClick:Se,htmlType:Pe,children:Re,className:Le,menu:Fe,arrow:Ie,autoFocus:vt,overlay:at,trigger:et,align:De,open:Oe,onOpenChange:ke,placement:lt,getPopupContainer:Xe,href:xt,icon:Ot=_e.createElement(Ee.Z,null),title:Dt,buttonsRender:Kt=tt=>tt,mouseEnterDelay:St,mouseLeaveDelay:gt,overlayClassName:ht,overlayStyle:Qt,destroyPopupOnHide:yt,dropdownRender:Zt}=a,Ye=ue(a,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),Gt=x("dropdown",z),fn=`${Gt}-button`,hn={menu:Fe,arrow:Ie,autoFocus:vt,align:De,disabled:se,trigger:se?[]:et,onOpenChange:ke,getPopupContainer:Xe||y,mouseEnterDelay:St,mouseLeaveDelay:gt,overlayClassName:ht,overlayStyle:Qt,destroyPopupOnHide:yt,dropdownRender:Zt},{compactSize:mn,compactItemClassnames:Mn}=(0,ce.ri)(Gt,b),Rt=ve()(fn,Mn,Le);"overlay"in a&&(hn.overlay=at),"open"in a&&(hn.open=Oe),"placement"in a?hn.placement=lt:hn.placement=b==="rtl"?"bottomLeft":"bottomRight";const $t=_e.createElement(fe.ZP,{type:ee,danger:re,disabled:se,loading:ge,onClick:Se,htmlType:Pe,href:xt,title:Dt},Re),Ct=_e.createElement(fe.ZP,{type:ee,danger:re,icon:Ot}),[Be,rt]=Kt([$t,Ct]);return _e.createElement(de.Z.Compact,Object.assign({className:Rt,size:mn,block:!0},Ye),Be,_e.createElement(E.Z,Object.assign({},hn),rt))};le.__ANT_BUTTON=!0;var he=le;const ie=E.Z;ie.Button=he;var ne=ie},25787:function(ft,Je,te){"use strict";te.d(Je,{D:function(){return Se},Z:function(){return Le}});var E=te(67294),_e=te(83963),Ee={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"},pe=Ee,ve=te(84180),fe=function(Ie,vt){return E.createElement(ve.Z,(0,_e.Z)({},Ie,{ref:vt,icon:pe}))},me=E.forwardRef(fe),de=me,ce=te(55007),ue=te(79269),le=te(13144),he=te.n(le),ie=te(10366),ne=te(53124),a=te(82401),y=te(16777),x=te(24793),b=te(83559);const z=Fe=>{const{componentCls:Ie,siderBg:vt,motionDurationMid:at,motionDurationSlow:et,antCls:De,triggerHeight:Oe,triggerColor:ke,triggerBg:lt,headerHeight:Xe,zeroTriggerWidth:xt,zeroTriggerHeight:Ot,borderRadiusLG:Dt,lightSiderBg:Kt,lightTriggerColor:St,lightTriggerBg:gt,bodyBg:ht}=Fe;return{[Ie]:{position:"relative",minWidth:0,background:vt,transition:`all ${at}, background 0s`,"&-has-trigger":{paddingBottom:Oe},"&-right":{order:1},[`${Ie}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${De}-menu${De}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ie}-children`]:{overflow:"hidden"},[`${Ie}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Oe,color:ke,lineHeight:(0,y.unit)(Oe),textAlign:"center",background:lt,cursor:"pointer",transition:`all ${at}`},[`${Ie}-zero-width-trigger`]:{position:"absolute",top:Xe,insetInlineEnd:Fe.calc(xt).mul(-1).equal(),zIndex:1,width:xt,height:Ot,color:ke,fontSize:Fe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:vt,borderRadius:`0 ${(0,y.unit)(Dt)} ${(0,y.unit)(Dt)} 0`,cursor:"pointer",transition:`background ${et} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${et}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Fe.calc(xt).mul(-1).equal(),borderRadius:`${(0,y.unit)(Dt)} 0 0 ${(0,y.unit)(Dt)}`}},"&-light":{background:Kt,[`${Ie}-trigger`]:{color:St,background:gt},[`${Ie}-zero-width-trigger`]:{color:St,background:gt,border:`1px solid ${ht}`,borderInlineStart:0}}}}};var ee=(0,b.I$)(["Layout","Sider"],Fe=>[z(Fe)],x.eh,{deprecatedTokens:x.jn}),re=function(Fe,Ie){var vt={};for(var at in Fe)Object.prototype.hasOwnProperty.call(Fe,at)&&Ie.indexOf(at)<0&&(vt[at]=Fe[at]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,at=Object.getOwnPropertySymbols(Fe);et<at.length;et++)Ie.indexOf(at[et])<0&&Object.prototype.propertyIsEnumerable.call(Fe,at[et])&&(vt[at[et]]=Fe[at[et]]);return vt};const se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ge=Fe=>!Number.isNaN(Number.parseFloat(Fe))&&isFinite(Fe),Se=E.createContext({}),Pe=(()=>{let Fe=0;return function(){let Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Fe+=1,`${Ie}${Fe}`}})();var Le=E.forwardRef((Fe,Ie)=>{const{prefixCls:vt,className:at,trigger:et,children:De,defaultCollapsed:Oe=!1,theme:ke="dark",style:lt={},collapsible:Xe=!1,reverseArrow:xt=!1,width:Ot=200,collapsedWidth:Dt=80,zeroWidthTriggerStyle:Kt,breakpoint:St,onCollapse:gt,onBreakpoint:ht}=Fe,Qt=re(Fe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:yt}=(0,E.useContext)(a.V),[Zt,Ye]=(0,E.useState)("collapsed"in Fe?Fe.collapsed:Oe),[Gt,fn]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in Fe&&Ye(Fe.collapsed)},[Fe.collapsed]);const hn=(tn,Ke)=>{"collapsed"in Fe||Ye(tn),gt==null||gt(tn,Ke)},{getPrefixCls:mn,direction:Mn}=(0,E.useContext)(ne.E_),Rt=mn("layout-sider",vt),[$t,Ct,Be]=ee(Rt),rt=(0,E.useRef)(null);rt.current=tn=>{fn(tn.matches),ht==null||ht(tn.matches),Zt!==tn.matches&&hn(tn.matches,"responsive")},(0,E.useEffect)(()=>{function tn(At){return rt.current(At)}let Ke;if(typeof window!="undefined"){const{matchMedia:At}=window;if(At&&St&&St in se){Ke=At(`screen and (max-width: ${se[St]})`);try{Ke.addEventListener("change",tn)}catch(Nt){Ke.addListener(tn)}tn(Ke)}}return()=>{try{Ke==null||Ke.removeEventListener("change",tn)}catch(At){Ke==null||Ke.removeListener(tn)}}},[St]),(0,E.useEffect)(()=>{const tn=Pe("ant-sider-");return yt.addSider(tn),()=>yt.removeSider(tn)},[]);const tt=()=>{hn(!Zt,"clickTrigger")},ct=(0,ie.Z)(Qt,["collapsed"]),qe=Zt?Dt:Ot,Ge=ge(qe)?`${qe}px`:String(qe),ut=parseFloat(String(Dt||0))===0?E.createElement("span",{onClick:tt,className:he()(`${Rt}-zero-width-trigger`,`${Rt}-zero-width-trigger-${xt?"right":"left"}`),style:Kt},et||E.createElement(de,null)):null,Pt=Mn==="rtl"==!xt,Rn={expanded:Pt?E.createElement(ue.Z,null):E.createElement(ce.Z,null),collapsed:Pt?E.createElement(ce.Z,null):E.createElement(ue.Z,null)}[Zt?"collapsed":"expanded"],wn=et!==null?ut||E.createElement("div",{className:`${Rt}-trigger`,onClick:tt,style:{width:Ge}},et||Rn):null,Ln=Object.assign(Object.assign({},lt),{flex:`0 0 ${Ge}`,maxWidth:Ge,minWidth:Ge,width:Ge}),en=he()(Rt,`${Rt}-${ke}`,{[`${Rt}-collapsed`]:!!Zt,[`${Rt}-has-trigger`]:Xe&&et!==null&&!ut,[`${Rt}-below`]:!!Gt,[`${Rt}-zero-width`]:parseFloat(Ge)===0},at,Ct,Be),Sn=E.useMemo(()=>({siderCollapsed:Zt}),[Zt]);return $t(E.createElement(Se.Provider,{value:Sn},E.createElement("aside",Object.assign({className:en},ct,{style:Ln,ref:Ie}),E.createElement("div",{className:`${Rt}-children`},De),Xe||Gt&&ut?wn:null)))})},82401:function(ft,Je,te){"use strict";te.d(Je,{V:function(){return _e}});var E=te(67294);const _e=E.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24793:function(ft,Je,te){"use strict";te.d(Je,{eh:function(){return pe},jn:function(){return ve}});var E=te(16777),_e=te(83559);const Ee=fe=>{const{antCls:me,componentCls:de,colorText:ce,footerBg:ue,headerHeight:le,headerPadding:he,headerColor:ie,footerPadding:ne,fontSize:a,bodyBg:y,headerBg:x}=fe;return{[de]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:y,"&, *":{boxSizing:"border-box"},[`&${de}-has-sider`]:{flexDirection:"row",[`> ${de}, > ${de}-content`]:{width:0}},[`${de}-header, &${de}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${de}-header`]:{height:le,padding:he,color:ie,lineHeight:(0,E.unit)(le),background:x,[`${me}-menu`]:{lineHeight:"inherit"}},[`${de}-footer`]:{padding:ne,color:ce,fontSize:a,background:ue},[`${de}-content`]:{flex:"auto",color:ce,minHeight:0}}},pe=fe=>{const{colorBgLayout:me,controlHeight:de,controlHeightLG:ce,colorText:ue,controlHeightSM:le,marginXXS:he,colorTextLightSolid:ie,colorBgContainer:ne}=fe,a=ce*1.25;return{colorBgHeader:"#001529",colorBgBody:me,colorBgTrigger:"#002140",bodyBg:me,headerBg:"#001529",headerHeight:de*2,headerPadding:`0 ${a}px`,headerColor:ue,footerPadding:`${le}px ${a}px`,footerBg:me,siderBg:"#001529",triggerHeight:ce+he*2,triggerBg:"#002140",triggerColor:ie,zeroTriggerWidth:ce,zeroTriggerHeight:ce,lightSiderBg:ne,lightTriggerBg:ne,lightTriggerColor:ue}},ve=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Je.ZP=(0,_e.I$)("Layout",fe=>[Ee(fe)],pe,{deprecatedTokens:ve})},76529:function(ft,Je,te){"use strict";te.d(Je,{J:function(){return fe}});var E=te(67294),_e=te(17799),Ee=te(89942),pe=function(me,de){var ce={};for(var ue in me)Object.prototype.hasOwnProperty.call(me,ue)&&de.indexOf(ue)<0&&(ce[ue]=me[ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ue=Object.getOwnPropertySymbols(me);le<ue.length;le++)de.indexOf(ue[le])<0&&Object.prototype.propertyIsEnumerable.call(me,ue[le])&&(ce[ue[le]]=me[ue[le]]);return ce};const ve=E.createContext(null),fe=E.forwardRef((me,de)=>{const{children:ce}=me,ue=pe(me,["children"]),le=E.useContext(ve),he=E.useMemo(()=>Object.assign(Object.assign({},le),ue),[le,ue.prefixCls,ue.mode,ue.selectable,ue.rootClassName]),ie=(0,_e.t4)(ce),ne=(0,_e.x1)(de,ie?(0,_e.C4)(ce):null);return E.createElement(ve.Provider,{value:he},E.createElement(Ee.Z,{space:!0},ie?E.cloneElement(ce,{ref:ne}):ce))});Je.Z=ve},50136:function(ft,Je,te){"use strict";te.d(Je,{default:function(){return $t}});var E=te(67294),_e=te(78595),Ee=te(25787),pe=te(64582),ve=te(13144),fe=te.n(ve),me=te(77527),de=te(10366),ce=te(33603),ue=te(96159),le=te(53124),he=te(35792),ne=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),a=function(Ct,Be){var rt={};for(var tt in Ct)Object.prototype.hasOwnProperty.call(Ct,tt)&&Be.indexOf(tt)<0&&(rt[tt]=Ct[tt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,tt=Object.getOwnPropertySymbols(Ct);ct<tt.length;ct++)Be.indexOf(tt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ct,tt[ct])&&(rt[tt[ct]]=Ct[tt[ct]]);return rt},x=Ct=>{const{prefixCls:Be,className:rt,dashed:tt}=Ct,ct=a(Ct,["prefixCls","className","dashed"]),{getPrefixCls:qe}=E.useContext(le.E_),Ge=qe("menu",Be),ut=fe()({[`${Ge}-item-divider-dashed`]:!!tt},rt);return E.createElement(_e.iz,Object.assign({className:ut},ct))},b=te(37419),z=te(83062),re=Ct=>{var Be;const{className:rt,children:tt,icon:ct,title:qe,danger:Ge,extra:ut}=Ct,{prefixCls:Pt,firstLevel:Ft,direction:_n,disableMenuItemTitleTooltip:Rn,inlineCollapsed:wn}=E.useContext(ne),Ln=Nt=>{const gn=tt==null?void 0:tt[0],xn=E.createElement("span",{className:fe()(`${Pt}-title-content`,{[`${Pt}-title-content-with-extra`]:!!ut||ut===0})},tt);return(!ct||E.isValidElement(tt)&&tt.type==="span")&&tt&&Nt&&Ft&&typeof gn=="string"?E.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},gn.charAt(0)):xn},{siderCollapsed:en}=E.useContext(Ee.D);let Sn=qe;typeof qe=="undefined"?Sn=Ft?tt:"":qe===!1&&(Sn="");const tn={title:Sn};!en&&!wn&&(tn.title=null,tn.open=!1);const Ke=(0,b.Z)(tt).length;let At=E.createElement(_e.ck,Object.assign({},(0,de.Z)(Ct,["title","icon","danger"]),{className:fe()({[`${Pt}-item-danger`]:Ge,[`${Pt}-item-only-child`]:(ct?Ke+1:Ke)===1},rt),title:typeof qe=="string"?qe:void 0}),(0,ue.Tm)(ct,{className:fe()(E.isValidElement(ct)?(Be=ct.props)===null||Be===void 0?void 0:Be.className:"",`${Pt}-item-icon`)}),Ln(wn));return Rn||(At=E.createElement(z.Z,Object.assign({},tn,{placement:_n==="rtl"?"left":"right",classNames:{root:`${Pt}-inline-collapsed-tooltip`}}),At)),At},se=te(76529),ge=te(16777),Se=te(24327),Pe=te(14747),Re=te(33507),Le=te(67771),Fe=te(50438),Ie=te(83559),vt=te(43259),et=Ct=>{const{componentCls:Be,motionDurationSlow:rt,horizontalLineHeight:tt,colorSplit:ct,lineWidth:qe,lineType:Ge,itemPaddingInline:ut}=Ct;return{[`${Be}-horizontal`]:{lineHeight:tt,border:0,borderBottom:`${(0,ge.unit)(qe)} ${Ge} ${ct}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${Be}-item:hover,
|
|
|
> ${Be}-item-active,
|
|
|
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${rt}`,`background ${rt}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},Oe=Ct=>{let{componentCls:Be,menuArrowOffset:rt,calc:tt}=Ct;return{[`${Be}-rtl`]:{direction:"rtl"},[`${Be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Be}-rtl${Be}-vertical,
|
|
|
${Be}-submenu-rtl ${Be}-vertical`]:{[`${Be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,ge.unit)(tt(rt).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,ge.unit)(rt)})`}}}}};const ke=Ct=>Object.assign({},(0,Pe.oN)(Ct));var Xe=(Ct,Be)=>{const{componentCls:rt,itemColor:tt,itemSelectedColor:ct,subMenuItemSelectedColor:qe,groupTitleColor:Ge,itemBg:ut,subMenuItemBg:Pt,itemSelectedBg:Ft,activeBarHeight:_n,activeBarWidth:Rn,activeBarBorderWidth:wn,motionDurationSlow:Ln,motionEaseInOut:en,motionEaseOut:Sn,itemPaddingInline:tn,motionDurationMid:Ke,itemHoverColor:At,lineType:Nt,colorSplit:gn,itemDisabledColor:xn,dangerItemColor:Nn,dangerItemHoverColor:Pn,dangerItemSelectedColor:ur,dangerItemActiveBg:Hn,dangerItemSelectedBg:Nr,popupBg:no,itemHoverBg:Fr,itemActiveBg:Tn,menuSubMenuBg:Yn,horizontalItemSelectedColor:En,horizontalItemSelectedBg:fr,horizontalItemBorderRadius:$n,horizontalItemHoverBg:Un}=Ct;return{[`${rt}-${Be}, ${rt}-${Be} > ${rt}`]:{color:tt,background:ut,[`&${rt}-root:focus-visible`]:Object.assign({},ke(Ct)),[`${rt}-item`]:{"&-group-title, &-extra":{color:Ge}},[`${rt}-submenu-selected > ${rt}-submenu-title`]:{color:qe},[`${rt}-item, ${rt}-submenu-title`]:{color:tt,[`&:not(${rt}-item-disabled):focus-visible`]:Object.assign({},ke(Ct))},[`${rt}-item-disabled, ${rt}-submenu-disabled`]:{color:`${xn} !important`},[`${rt}-item:not(${rt}-item-selected):not(${rt}-submenu-selected)`]:{[`&:hover, > ${rt}-submenu-title:hover`]:{color:At}},[`&:not(${rt}-horizontal)`]:{[`${rt}-item:not(${rt}-item-selected)`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:Tn}},[`${rt}-submenu-title`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:Tn}}},[`${rt}-item-danger`]:{color:Nn,[`&${rt}-item:hover`]:{[`&:not(${rt}-item-selected):not(${rt}-submenu-selected)`]:{color:Pn}},[`&${rt}-item:active`]:{background:Hn}},[`${rt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${rt}-item-selected`]:{color:ct,[`&${rt}-item-danger`]:{color:ur},"a, a:hover":{color:"inherit"}},[`& ${rt}-item-selected`]:{backgroundColor:Ft,[`&${rt}-item-danger`]:{backgroundColor:Nr}},[`&${rt}-submenu > ${rt}`]:{backgroundColor:Yn},[`&${rt}-popup > ${rt}`]:{backgroundColor:no},[`&${rt}-submenu-popup > ${rt}`]:{backgroundColor:no},[`&${rt}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${rt}-item, > ${rt}-submenu`]:{top:wn,marginTop:Ct.calc(wn).mul(-1).equal(),marginBottom:0,borderRadius:$n,"&::after":{position:"absolute",insetInline:tn,bottom:0,borderBottom:`${(0,ge.unit)(_n)} solid transparent`,transition:`border-color ${Ln} ${en}`,content:'""'},"&:hover, &-active, &-open":{background:Un,"&::after":{borderBottomWidth:_n,borderBottomColor:En}},"&-selected":{color:En,backgroundColor:fr,"&:hover":{backgroundColor:fr},"&::after":{borderBottomWidth:_n,borderBottomColor:En}}}}),[`&${rt}-root`]:{[`&${rt}-inline, &${rt}-vertical`]:{borderInlineEnd:`${(0,ge.unit)(wn)} ${Nt} ${gn}`}},[`&${rt}-inline`]:{[`${rt}-sub${rt}-inline`]:{background:Pt},[`${rt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,ge.unit)(Rn)} solid ${ct}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ke} ${Sn}`,`opacity ${Ke} ${Sn}`].join(","),content:'""'},[`&${rt}-item-danger`]:{"&::after":{borderInlineEndColor:ur}}},[`${rt}-selected, ${rt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ke} ${en}`,`opacity ${Ke} ${en}`].join(",")}}}}}};const xt=Ct=>{const{componentCls:Be,itemHeight:rt,itemMarginInline:tt,padding:ct,menuArrowSize:qe,marginXS:Ge,itemMarginBlock:ut,itemWidth:Pt,itemPaddingInline:Ft}=Ct,_n=Ct.calc(qe).add(ct).add(Ge).equal();return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:rt,lineHeight:(0,ge.unit)(rt),paddingInline:Ft,overflow:"hidden",textOverflow:"ellipsis",marginInline:tt,marginBlock:ut,width:Pt},[`> ${Be}-item,
|
|
|
> ${Be}-submenu > ${Be}-submenu-title`]:{height:rt,lineHeight:(0,ge.unit)(rt)},[`${Be}-item-group-list ${Be}-submenu-title,
|
|
|
${Be}-submenu-title`]:{paddingInlineEnd:_n}}};var Dt=Ct=>{const{componentCls:Be,iconCls:rt,itemHeight:tt,colorTextLightSolid:ct,dropdownWidth:qe,controlHeightLG:Ge,motionEaseOut:ut,paddingXL:Pt,itemMarginInline:Ft,fontSizeLG:_n,motionDurationFast:Rn,motionDurationSlow:wn,paddingXS:Ln,boxShadowSecondary:en,collapsedWidth:Sn,collapsedIconSize:tn}=Ct,Ke={height:tt,lineHeight:(0,ge.unit)(tt),listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},xt(Ct))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},xt(Ct)),{boxShadow:en})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:qe,maxHeight:`calc(100vh - ${(0,ge.unit)(Ct.calc(Ge).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Be}-inline`]:{width:"100%",[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${wn}`,`background ${wn}`,`padding ${Rn} ${ut}`].join(","),[`> ${Be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Be}-sub${Be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Be}-submenu > ${Be}-submenu-title`]:Ke,[`& ${Be}-item-group-title`]:{paddingInlineStart:Pt}},[`${Be}-item`]:Ke}},{[`${Be}-inline-collapsed`]:{width:Sn,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:_n,textAlign:"center"}}},[`> ${Be}-item,
|
|
|
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-item,
|
|
|
> ${Be}-item-group > ${Be}-item-group-list > ${Be}-submenu > ${Be}-submenu-title,
|
|
|
> ${Be}-submenu > ${Be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,ge.unit)(Ct.calc(tn).div(2).equal())} - ${(0,ge.unit)(Ft)})`,textOverflow:"clip",[`
|
|
|
${Be}-submenu-arrow,
|
|
|
${Be}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Be}-item-icon, ${rt}`]:{margin:0,fontSize:tn,lineHeight:(0,ge.unit)(tt),"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${rt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${rt}`]:{display:"none"},"a, a:hover":{color:ct}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:Ln})}}]};const Kt=Ct=>{const{componentCls:Be,motionDurationSlow:rt,motionDurationMid:tt,motionEaseInOut:ct,motionEaseOut:qe,iconCls:Ge,iconSize:ut,iconMarginInlineEnd:Pt}=Ct;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${rt}`,`background ${rt}`,`padding calc(${rt} + 0.1s) ${ct}`].join(","),[`${Be}-item-icon, ${Ge}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${tt} ${qe}`,`margin ${rt} ${ct}`,`color ${rt}`].join(","),"+ span":{marginInlineStart:Pt,opacity:1,transition:[`opacity ${rt} ${ct}`,`margin ${rt}`,`color ${rt}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${Be}-item-only-child`]:{[`> ${Ge}, > ${Be}-item-icon`]:{marginInlineEnd:0}}},[`${Be}-item-disabled, ${Be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},St=Ct=>{const{componentCls:Be,motionDurationSlow:rt,motionEaseInOut:tt,borderRadius:ct,menuArrowSize:qe,menuArrowOffset:Ge}=Ct;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ct.margin,width:qe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${rt} ${tt}, opacity ${rt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ct.calc(qe).mul(.6).equal(),height:Ct.calc(qe).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ct,transition:[`background ${rt} ${tt}`,`transform ${rt} ${tt}`,`top ${rt} ${tt}`,`color ${rt} ${tt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,ge.unit)(Ct.calc(Ge).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,ge.unit)(Ge)})`}}}}},gt=Ct=>{const{antCls:Be,componentCls:rt,fontSize:tt,motionDurationSlow:ct,motionDurationMid:qe,motionEaseInOut:Ge,paddingXS:ut,padding:Pt,colorSplit:Ft,lineWidth:_n,zIndexPopup:Rn,borderRadiusLG:wn,subMenuItemBorderRadius:Ln,menuArrowSize:en,menuArrowOffset:Sn,lineType:tn,groupTitleLineHeight:Ke,groupTitleFontSize:At}=Ct;return[{"":{[rt]:Object.assign(Object.assign({},(0,Pe.dF)()),{"&-hidden":{display:"none"}})},[`${rt}-submenu-hidden`]:{display:"none"}},{[rt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pe.Wf)(Ct)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:tt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ct} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${rt}-item`]:{flex:"none"}},[`${rt}-item, ${rt}-submenu, ${rt}-submenu-title`]:{borderRadius:Ct.itemBorderRadius},[`${rt}-item-group-title`]:{padding:`${(0,ge.unit)(ut)} ${(0,ge.unit)(Pt)}`,fontSize:At,lineHeight:Ke,transition:`all ${ct}`},[`&-horizontal ${rt}-submenu`]:{transition:[`border-color ${ct} ${Ge}`,`background ${ct} ${Ge}`].join(",")},[`${rt}-submenu, ${rt}-submenu-inline`]:{transition:[`border-color ${ct} ${Ge}`,`background ${ct} ${Ge}`,`padding ${qe} ${Ge}`].join(",")},[`${rt}-submenu ${rt}-sub`]:{cursor:"initial",transition:[`background ${ct} ${Ge}`,`padding ${ct} ${Ge}`].join(",")},[`${rt}-title-content`]:{transition:`color ${ct}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Be}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${rt}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Ct.padding}},[`${rt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${rt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ft,borderStyle:tn,borderWidth:0,borderTopWidth:_n,marginBlock:_n,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Kt(Ct)),{[`${rt}-item-group`]:{[`${rt}-item-group-list`]:{margin:0,padding:0,[`${rt}-item, ${rt}-submenu-title`]:{paddingInline:`${(0,ge.unit)(Ct.calc(tt).mul(2).equal())} ${(0,ge.unit)(Pt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Rn,borderRadius:wn,boxShadow:"none",transformOrigin:"0 0",[`&${rt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${rt}`]:Object.assign(Object.assign(Object.assign({borderRadius:wn},Kt(Ct)),St(Ct)),{[`${rt}-item, ${rt}-submenu > ${rt}-submenu-title`]:{borderRadius:Ln},[`${rt}-submenu-title::after`]:{transition:`transform ${ct} ${Ge}`}})},"\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:Ct.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ct.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ct.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ct.paddingXS}}}),St(Ct)),{[`&-inline-collapsed ${rt}-submenu-arrow,
|
|
|
&-inline ${rt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,ge.unit)(Sn)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,ge.unit)(Ct.calc(Sn).mul(-1).equal())})`}},[`${rt}-submenu-open${rt}-submenu-inline > ${rt}-submenu-title > ${rt}-submenu-arrow`]:{transform:`translateY(${(0,ge.unit)(Ct.calc(en).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,ge.unit)(Ct.calc(Sn).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,ge.unit)(Sn)})`}}})},{[`${Be}-layout-header`]:{[rt]:{lineHeight:"inherit"}}}]},ht=Ct=>{var Be,rt,tt;const{colorPrimary:ct,colorError:qe,colorTextDisabled:Ge,colorErrorBg:ut,colorText:Pt,colorTextDescription:Ft,colorBgContainer:_n,colorFillAlter:Rn,colorFillContent:wn,lineWidth:Ln,lineWidthBold:en,controlItemBgActive:Sn,colorBgTextHover:tn,controlHeightLG:Ke,lineHeight:At,colorBgElevated:Nt,marginXXS:gn,padding:xn,fontSize:Nn,controlHeightSM:Pn,fontSizeLG:ur,colorTextLightSolid:Hn,colorErrorHover:Nr}=Ct,no=(Be=Ct.activeBarWidth)!==null&&Be!==void 0?Be:0,Fr=(rt=Ct.activeBarBorderWidth)!==null&&rt!==void 0?rt:Ln,Tn=(tt=Ct.itemMarginInline)!==null&&tt!==void 0?tt:Ct.marginXXS,Yn=new Se.FastColor(Hn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ct.zIndexPopupBase+50,radiusItem:Ct.borderRadiusLG,itemBorderRadius:Ct.borderRadiusLG,radiusSubMenuItem:Ct.borderRadiusSM,subMenuItemBorderRadius:Ct.borderRadiusSM,colorItemText:Pt,itemColor:Pt,colorItemTextHover:Pt,itemHoverColor:Pt,colorItemTextHoverHorizontal:ct,horizontalItemHoverColor:ct,colorGroupTitle:Ft,groupTitleColor:Ft,colorItemTextSelected:ct,itemSelectedColor:ct,subMenuItemSelectedColor:ct,colorItemTextSelectedHorizontal:ct,horizontalItemSelectedColor:ct,colorItemBg:_n,itemBg:_n,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:wn,itemActiveBg:Sn,colorSubItemBg:Rn,subMenuItemBg:Rn,colorItemBgSelected:Sn,itemSelectedBg:Sn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:no,colorActiveBarHeight:en,activeBarHeight:en,colorActiveBarBorderSize:Ln,activeBarBorderWidth:Fr,colorItemTextDisabled:Ge,itemDisabledColor:Ge,colorDangerItemText:qe,dangerItemColor:qe,colorDangerItemTextHover:qe,dangerItemHoverColor:qe,colorDangerItemTextSelected:qe,dangerItemSelectedColor:qe,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:Tn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ke,groupTitleLineHeight:At,collapsedWidth:Ke*2,popupBg:Nt,itemMarginBlock:gn,itemPaddingInline:xn,horizontalLineHeight:`${Ke*1.15}px`,iconSize:Nn,iconMarginInlineEnd:Pn-Nn,collapsedIconSize:ur,groupTitleFontSize:Nn,darkItemDisabledColor:new Se.FastColor(Hn).setA(.25).toRgbString(),darkItemColor:Yn,darkDangerItemColor:qe,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Hn,darkItemSelectedBg:ct,darkDangerItemSelectedBg:qe,darkItemHoverBg:"transparent",darkGroupTitleColor:Yn,darkItemHoverColor:Hn,darkDangerItemHoverColor:Nr,darkDangerItemSelectedColor:Hn,darkDangerItemActiveBg:qe,itemWidth:no?`calc(100% + ${Fr}px)`:`calc(100% - ${Tn*2}px)`}};var Qt=function(Ct){let Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ct,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ie.I$)("Menu",ct=>{const{colorBgElevated:qe,controlHeightLG:Ge,fontSize:ut,darkItemColor:Pt,darkDangerItemColor:Ft,darkItemBg:_n,darkSubMenuItemBg:Rn,darkItemSelectedColor:wn,darkItemSelectedBg:Ln,darkDangerItemSelectedBg:en,darkItemHoverBg:Sn,darkGroupTitleColor:tn,darkItemHoverColor:Ke,darkItemDisabledColor:At,darkDangerItemHoverColor:Nt,darkDangerItemSelectedColor:gn,darkDangerItemActiveBg:xn,popupBg:Nn,darkPopupBg:Pn}=ct,ur=ct.calc(ut).div(7).mul(5).equal(),Hn=(0,vt.mergeToken)(ct,{menuArrowSize:ur,menuHorizontalHeight:ct.calc(Ge).mul(1.15).equal(),menuArrowOffset:ct.calc(ur).mul(.25).equal(),menuSubMenuBg:qe,calc:ct.calc,popupBg:Nn}),Nr=(0,vt.mergeToken)(Hn,{itemColor:Pt,itemHoverColor:Ke,groupTitleColor:tn,itemSelectedColor:wn,subMenuItemSelectedColor:wn,itemBg:_n,popupBg:Pn,subMenuItemBg:Rn,itemActiveBg:"transparent",itemSelectedBg:Ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Sn,itemDisabledColor:At,dangerItemColor:Ft,dangerItemHoverColor:Nt,dangerItemSelectedColor:gn,dangerItemActiveBg:xn,dangerItemSelectedBg:en,menuSubMenuBg:Rn,horizontalItemSelectedColor:wn,horizontalItemSelectedBg:Ln});return[gt(Hn),et(Hn),Dt(Hn),Xe(Hn,"light"),Xe(Nr,"dark"),Oe(Hn),(0,Re.Z)(Hn),(0,Le.oN)(Hn,"slide-up"),(0,Le.oN)(Hn,"slide-down"),(0,Fe._y)(Hn,"zoom-big")]},ht,{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"]],injectStyle:rt,unitless:{groupTitleLineHeight:!0}})(Ct,Be)},yt=te(87263),Ye=Ct=>{var Be;const{popupClassName:rt,icon:tt,title:ct,theme:qe}=Ct,Ge=E.useContext(ne),{prefixCls:ut,inlineCollapsed:Pt,theme:Ft}=Ge,_n=(0,_e.Xl)();let Rn;if(!tt)Rn=Pt&&!_n.length&&ct&&typeof ct=="string"?E.createElement("div",{className:`${ut}-inline-collapsed-noicon`},ct.charAt(0)):E.createElement("span",{className:`${ut}-title-content`},ct);else{const en=E.isValidElement(ct)&&ct.type==="span";Rn=E.createElement(E.Fragment,null,(0,ue.Tm)(tt,{className:fe()(E.isValidElement(tt)?(Be=tt.props)===null||Be===void 0?void 0:Be.className:"",`${ut}-item-icon`)}),en?ct:E.createElement("span",{className:`${ut}-title-content`},ct))}const wn=E.useMemo(()=>Object.assign(Object.assign({},Ge),{firstLevel:!1}),[Ge]),[Ln]=(0,yt.Cn)("Menu");return E.createElement(ne.Provider,{value:wn},E.createElement(_e.Wd,Object.assign({},(0,de.Z)(Ct,["icon"]),{title:Rn,popupClassName:fe()(ut,rt,`${ut}-${qe||Ft}`),popupStyle:Object.assign({zIndex:Ln},Ct.popupStyle)})))},Gt=function(Ct,Be){var rt={};for(var tt in Ct)Object.prototype.hasOwnProperty.call(Ct,tt)&&Be.indexOf(tt)<0&&(rt[tt]=Ct[tt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,tt=Object.getOwnPropertySymbols(Ct);ct<tt.length;ct++)Be.indexOf(tt[ct])<0&&Object.prototype.propertyIsEnumerable.call(Ct,tt[ct])&&(rt[tt[ct]]=Ct[tt[ct]]);return rt};function fn(Ct){return Ct===null||Ct===!1}const hn={item:re,submenu:Ye,divider:x};var Mn=(0,E.forwardRef)((Ct,Be)=>{var rt;const tt=E.useContext(se.Z),ct=tt||{},{getPrefixCls:qe,getPopupContainer:Ge,direction:ut,menu:Pt}=E.useContext(le.E_),Ft=qe(),{prefixCls:_n,className:Rn,style:wn,theme:Ln="light",expandIcon:en,_internalDisableMenuItemTitleTooltip:Sn,inlineCollapsed:tn,siderCollapsed:Ke,rootClassName:At,mode:Nt,selectable:gn,onClick:xn,overflowedIndicatorPopupClassName:Nn}=Ct,Pn=Gt(Ct,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ur=(0,de.Z)(Pn,["collapsedWidth"]);(rt=ct.validator)===null||rt===void 0||rt.call(ct,{mode:Nt});const Hn=(0,me.Z)(function(){var ai;xn==null||xn.apply(void 0,arguments),(ai=ct.onClick)===null||ai===void 0||ai.call(ct)}),Nr=ct.mode||Nt,no=gn!=null?gn:ct.selectable,Fr=tn!=null?tn:Ke,Tn={horizontal:{motionName:`${Ft}-slide-up`},inline:(0,ce.Z)(Ft),other:{motionName:`${Ft}-zoom-big`}},Yn=qe("menu",_n||ct.prefixCls),En=(0,he.Z)(Yn),[fr,$n,Un]=Qt(Yn,En,!tt),Zo=fe()(`${Yn}-${Ln}`,Pt==null?void 0:Pt.className,Rn),ho=E.useMemo(()=>{var ai,ln;if(typeof en=="function"||fn(en))return en||null;if(typeof ct.expandIcon=="function"||fn(ct.expandIcon))return ct.expandIcon||null;if(typeof(Pt==null?void 0:Pt.expandIcon)=="function"||fn(Pt==null?void 0:Pt.expandIcon))return(Pt==null?void 0:Pt.expandIcon)||null;const oe=(ai=en!=null?en:ct==null?void 0:ct.expandIcon)!==null&&ai!==void 0?ai:Pt==null?void 0:Pt.expandIcon;return(0,ue.Tm)(oe,{className:fe()(`${Yn}-submenu-expand-icon`,E.isValidElement(oe)?(ln=oe.props)===null||ln===void 0?void 0:ln.className:void 0)})},[en,ct==null?void 0:ct.expandIcon,Pt==null?void 0:Pt.expandIcon,Yn]),Wr=E.useMemo(()=>({prefixCls:Yn,inlineCollapsed:Fr||!1,direction:ut,firstLevel:!0,theme:Ln,mode:Nr,disableMenuItemTitleTooltip:Sn}),[Yn,Fr,ut,Sn,Ln]);return fr(E.createElement(se.Z.Provider,{value:null},E.createElement(ne.Provider,{value:Wr},E.createElement(_e.ZP,Object.assign({getPopupContainer:Ge,overflowedIndicator:E.createElement(pe.Z,null),overflowedIndicatorPopupClassName:fe()(Yn,`${Yn}-${Ln}`,Nn),mode:Nr,selectable:no,onClick:Hn},ur,{inlineCollapsed:Fr,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),wn),className:Zo,prefixCls:Yn,direction:ut,defaultMotions:Tn,expandIcon:ho,ref:Be,rootClassName:fe()(At,$n,ct.rootClassName,Un,En),_internalComponents:hn})))))});const Rt=(0,E.forwardRef)((Ct,Be)=>{const rt=(0,E.useRef)(null),tt=E.useContext(Ee.D);return(0,E.useImperativeHandle)(Be,()=>({menu:rt.current,focus:ct=>{var qe;(qe=rt.current)===null||qe===void 0||qe.focus(ct)}})),E.createElement(Mn,Object.assign({ref:rt},Ct,tt))});Rt.Item=re,Rt.SubMenu=Ye,Rt.Divider=x,Rt.ItemGroup=_e.BW;var $t=Rt},73802:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return ln}});var E=te(67294),_e=te(83963),Ee={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"},pe=Ee,ve=te(84180),fe=function(ae,be){return E.createElement(ve.Z,(0,_e.Z)({},ae,{ref:be,icon:pe}))},me=E.forwardRef(fe),de=me,ce={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"},ue=ce,le=function(ae,be){return E.createElement(ve.Z,(0,_e.Z)({},ae,{ref:be,icon:ue}))},he=E.forwardRef(le),ie=he,ne=te(55007),a=te(79269),y=te(13144),x=te.n(y),b=te(4942),z=te(87462),ee=te(71002),re=te(1413),se=te(97685),ge=te(94184),Se=te.n(ge);function Pe(oe){var ae=E.useRef();ae.current=oe;var be=E.useCallback(function(){for(var we,Ae=arguments.length,nt=new Array(Ae),it=0;it<Ae;it++)nt[it]=arguments[it];return(we=ae.current)===null||we===void 0?void 0:we.call.apply(we,[ae].concat(nt))},[]);return be}function Re(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Le=Re()?E.useLayoutEffect:E.useEffect,Fe=function(ae,be){var we=E.useRef(!0);Le(function(){return ae(we.current)},be),Le(function(){return we.current=!1,function(){we.current=!0}},[])},Ie=function(ae,be){Fe(function(we){if(!we)return ae()},be)},vt=null;function at(oe){var ae=E.useRef(!1),be=E.useState(oe),we=(0,se.Z)(be,2),Ae=we[0],nt=we[1];E.useEffect(function(){return ae.current=!1,function(){ae.current=!0}},[]);function it(Vt,It){It&&ae.current||nt(Vt)}return[Ae,it]}function et(oe){return oe!==void 0}function De(oe,ae){var be=ae||{},we=be.defaultValue,Ae=be.value,nt=be.onChange,it=be.postState,Vt=at(function(){return et(Ae)?Ae:et(we)?typeof we=="function"?we():we:typeof oe=="function"?oe():oe}),It=(0,se.Z)(Vt,2),on=It[0],zn=It[1],On=Ae!==void 0?Ae:on,wt=it?it(On):On,An=Pe(nt),Dn=at([On]),Xt=(0,se.Z)(Dn,2),an=Xt[0],cn=Xt[1];Ie(function(){var vr=an[0];on!==vr&&An(on,vr)},[an]),Ie(function(){et(Ae)||zn(Ae)},[Ae]);var Jn=Pe(function(vr,yo){zn(vr,yo),cn([On],yo)});return[wt,Jn]}var Oe={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(ae){var be=ae.keyCode;if(ae.altKey&&!ae.ctrlKey||ae.metaKey||be>=Oe.F1&&be<=Oe.F12)return!1;switch(be){case Oe.ALT:case Oe.CAPS_LOCK:case Oe.CONTEXT_MENU:case Oe.CTRL:case Oe.DOWN:case Oe.END:case Oe.ESC:case Oe.HOME:case Oe.INSERT:case Oe.LEFT:case Oe.MAC_FF_META:case Oe.META:case Oe.NUMLOCK:case Oe.NUM_CENTER:case Oe.PAGE_DOWN:case Oe.PAGE_UP:case Oe.PAUSE:case Oe.PRINT_SCREEN:case Oe.RIGHT:case Oe.SHIFT:case Oe.UP:case Oe.WIN_KEY:case Oe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ae){if(ae>=Oe.ZERO&&ae<=Oe.NINE||ae>=Oe.NUM_ZERO&&ae<=Oe.NUM_MULTIPLY||ae>=Oe.A&&ae<=Oe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ae===0)return!0;switch(ae){case Oe.SPACE:case Oe.QUESTION_MARK:case Oe.NUM_PLUS:case Oe.NUM_MINUS:case Oe.NUM_PERIOD:case Oe.NUM_DIVISION:case Oe.SEMICOLON:case Oe.DASH:case Oe.EQUALS:case Oe.COMMA:case Oe.PERIOD:case Oe.SLASH:case Oe.APOSTROPHE:case Oe.SINGLE_QUOTE:case Oe.OPEN_SQUARE_BRACKET:case Oe.BACKSLASH:case Oe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ke=Oe,lt=`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`,Xe=`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`,xt="".concat(lt," ").concat(Xe).split(/[\s\n]+/),Ot="aria-",Dt="data-";function Kt(oe,ae){return oe.indexOf(ae)===0}function St(oe){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,be;ae===!1?be={aria:!0,data:!0,attr:!0}:ae===!0?be={aria:!0}:be=(0,re.Z)({},ae);var we={};return Object.keys(oe).forEach(function(Ae){(be.aria&&(Ae==="role"||Kt(Ae,Ot))||be.data&&Kt(Ae,Dt)||be.attr&&xt.includes(Ae))&&(we[Ae]=oe[Ae])}),we}var gt={},ht=[],Qt=function(ae){ht.push(ae)};function yt(oe,ae){if(0)var be}function Zt(oe,ae){if(0)var be}function Ye(){gt={}}function Gt(oe,ae,be){!ae&&!gt[be]&&(oe(!1,be),gt[be]=!0)}function fn(oe,ae){Gt(yt,oe,ae)}function hn(oe,ae){Gt(Zt,oe,ae)}fn.preMessage=Qt,fn.resetWarned=Ye,fn.noteOnce=hn;var mn=null,Mn=te(81626),Rt=[10,20,50,100],$t=function(ae){var be=ae.pageSizeOptions,we=be===void 0?Rt:be,Ae=ae.locale,nt=ae.changeSize,it=ae.pageSize,Vt=ae.goButton,It=ae.quickGo,on=ae.rootPrefixCls,zn=ae.disabled,On=ae.buildOptionText,wt=ae.showSizeChanger,An=ae.sizeChangerRender,Dn=E.useState(""),Xt=(0,se.Z)(Dn,2),an=Xt[0],cn=Xt[1],Jn=function(){return!an||Number.isNaN(an)?void 0:Number(an)},vr=typeof On=="function"?On:function(Ao){return"".concat(Ao," ").concat(Ae.items_per_page)},yo=function(po){cn(po.target.value)},mr=function(po){Vt||an===""||(cn(""),!(po.relatedTarget&&(po.relatedTarget.className.indexOf("".concat(on,"-item-link"))>=0||po.relatedTarget.className.indexOf("".concat(on,"-item"))>=0))&&(It==null||It(Jn())))},Wn=function(po){an!==""&&(po.keyCode===ke.ENTER||po.type==="click")&&(cn(""),It==null||It(Jn()))},Hr=function(){return we.some(function(po){return po.toString()===it.toString()})?we:we.concat([it]).sort(function(po,vi){var Ri=Number.isNaN(Number(po))?0:Number(po),bn=Number.isNaN(Number(vi))?0:Number(vi);return Ri-bn})},Kr="".concat(on,"-options");if(!wt&&!It)return null;var lo=null,_o=null,zt=null;return wt&&An&&(lo=An({disabled:zn,size:it,onSizeChange:function(po){nt==null||nt(Number(po))},"aria-label":Ae.page_size,className:"".concat(Kr,"-size-changer"),options:Hr().map(function(Ao){return{label:vr(Ao),value:Ao}})})),It&&(Vt&&(zt=typeof Vt=="boolean"?E.createElement("button",{type:"button",onClick:Wn,onKeyUp:Wn,disabled:zn,className:"".concat(Kr,"-quick-jumper-button")},Ae.jump_to_confirm):E.createElement("span",{onClick:Wn,onKeyUp:Wn},Vt)),_o=E.createElement("div",{className:"".concat(Kr,"-quick-jumper")},Ae.jump_to,E.createElement("input",{disabled:zn,type:"text",value:an,onChange:yo,onKeyUp:Wn,onBlur:mr,"aria-label":Ae.page}),Ae.page,zt)),E.createElement("li",{className:Kr},lo,_o)},Ct=$t,Be=function(ae){var be=ae.rootPrefixCls,we=ae.page,Ae=ae.active,nt=ae.className,it=ae.showTitle,Vt=ae.onClick,It=ae.onKeyPress,on=ae.itemRender,zn="".concat(be,"-item"),On=Se()(zn,"".concat(zn,"-").concat(we),(0,b.Z)((0,b.Z)({},"".concat(zn,"-active"),Ae),"".concat(zn,"-disabled"),!we),nt),wt=function(){Vt(we)},An=function(an){It(an,Vt,we)},Dn=on(we,"page",E.createElement("a",{rel:"nofollow"},we));return Dn?E.createElement("li",{title:it?String(we):null,className:On,onClick:wt,onKeyDown:An,tabIndex:0},Dn):null},rt=Be,tt=function(ae,be,we){return we};function ct(){}function qe(oe){var ae=Number(oe);return typeof ae=="number"&&!Number.isNaN(ae)&&isFinite(ae)&&Math.floor(ae)===ae}function Ge(oe,ae,be){var we=typeof oe=="undefined"?ae:oe;return Math.floor((be-1)/we)+1}var ut=function(ae){var be=ae.prefixCls,we=be===void 0?"rc-pagination":be,Ae=ae.selectPrefixCls,nt=Ae===void 0?"rc-select":Ae,it=ae.className,Vt=ae.current,It=ae.defaultCurrent,on=It===void 0?1:It,zn=ae.total,On=zn===void 0?0:zn,wt=ae.pageSize,An=ae.defaultPageSize,Dn=An===void 0?10:An,Xt=ae.onChange,an=Xt===void 0?ct:Xt,cn=ae.hideOnSinglePage,Jn=ae.align,vr=ae.showPrevNextJumpers,yo=vr===void 0?!0:vr,mr=ae.showQuickJumper,Wn=ae.showLessItems,Hr=ae.showTitle,Kr=Hr===void 0?!0:Hr,lo=ae.onShowSizeChange,_o=lo===void 0?ct:lo,zt=ae.locale,Ao=zt===void 0?Mn.Z:zt,po=ae.style,vi=ae.totalBoundaryShowSizeChanger,Ri=vi===void 0?50:vi,bn=ae.disabled,tr=ae.simple,Sr=ae.showTotal,Xn=ae.showSizeChanger,Oo=Xn===void 0?On>Ri:Xn,ni=ae.sizeChangerRender,Si=ae.pageSizeOptions,zi=ae.itemRender,Hi=zi===void 0?tt:zi,gs=ae.jumpPrevIcon,ea=ae.jumpNextIcon,$a=ae.prevIcon,fs=ae.nextIcon,es=E.useRef(null),Ra=De(10,{value:wt,defaultValue:Dn}),Wa=(0,se.Z)(Ra,2),Ui=Wa[0],Ka=Wa[1],Ha=De(1,{value:Vt,defaultValue:on,postState:function(yn){return Math.max(1,Math.min(yn,Ge(void 0,Ui,On)))}}),ua=(0,se.Z)(Ha,2),bo=ua[0],ya=ua[1],ts=E.useState(bo),ta=(0,se.Z)(ts,2),$i=ta[0],da=ta[1];(0,E.useEffect)(function(){da(bo)},[bo]);var Ua=an!==ct,Ks="current"in ae,Oa=Math.max(1,bo-(Wn?3:5)),Es=Math.min(Ge(void 0,Ui,On),bo+(Wn?3:5));function _s(Yt,yn){var Zn=Yt||E.createElement("button",{type:"button","aria-label":yn,className:"".concat(we,"-item-link")});return typeof Yt=="function"&&(Zn=E.createElement(Yt,(0,re.Z)({},ae))),Zn}function Os(Yt){var yn=Yt.target.value,Zn=Ge(void 0,Ui,On),kn;return yn===""?kn=yn:Number.isNaN(Number(yn))?kn=$i:yn>=Zn?kn=Zn:kn=Number(yn),kn}function Vs(Yt){return qe(Yt)&&Yt!==bo&&qe(On)&&On>0}var Us=On>Ui?mr:!1;function ws(Yt){(Yt.keyCode===ke.UP||Yt.keyCode===ke.DOWN)&&Yt.preventDefault()}function Ds(Yt){var yn=Os(Yt);switch(yn!==$i&&da(yn),Yt.keyCode){case ke.ENTER:sr(yn);break;case ke.UP:sr(yn-1);break;case ke.DOWN:sr(yn+1);break;default:break}}function Gs(Yt){sr(Os(Yt))}function Ls(Yt){var yn=Ge(Yt,Ui,On),Zn=bo>yn&&yn!==0?yn:bo;Ka(Yt),da(Zn),_o==null||_o(bo,Yt),ya(Zn),an==null||an(Zn,Yt)}function sr(Yt){if(Vs(Yt)&&!bn){var yn=Ge(void 0,Ui,On),Zn=Yt;return Yt>yn?Zn=yn:Yt<1&&(Zn=1),Zn!==$i&&da(Zn),ya(Zn),an==null||an(Zn,Ui),Zn}return bo}var Qn=bo>1,ir=bo<Ge(void 0,Ui,On);function hr(){Qn&&sr(bo-1)}function No(){ir&&sr(bo+1)}function yi(){sr(Oa)}function Ue(){sr(Es)}function $e(Yt,yn){if(Yt.key==="Enter"||Yt.charCode===ke.ENTER||Yt.keyCode===ke.ENTER){for(var Zn=arguments.length,kn=new Array(Zn>2?Zn-2:0),Ar=2;Ar<Zn;Ar++)kn[Ar-2]=arguments[Ar];yn.apply(void 0,kn)}}function dt(Yt){$e(Yt,hr)}function Mt(Yt){$e(Yt,No)}function dn(Yt){$e(Yt,yi)}function nr(Yt){$e(Yt,Ue)}function Pr(Yt){var yn=Hi(Yt,"prev",_s($a,"prev page"));return E.isValidElement(yn)?E.cloneElement(yn,{disabled:!Qn}):yn}function Qr(Yt){var yn=Hi(Yt,"next",_s(fs,"next page"));return E.isValidElement(yn)?E.cloneElement(yn,{disabled:!ir}):yn}function Xr(Yt){(Yt.type==="click"||Yt.keyCode===ke.ENTER)&&sr($i)}var Vo=null,Qo=St(ae,{aria:!0,data:!0}),Ei=Sr&&E.createElement("li",{className:"".concat(we,"-total-text")},Sr(On,[On===0?0:(bo-1)*Ui+1,bo*Ui>On?On:bo*Ui])),Po=null,Ur=Ge(void 0,Ui,On);if(cn&&On<=Ui)return null;var Jr=[],Jo={rootPrefixCls:we,onClick:sr,onKeyPress:$e,showTitle:Kr,itemRender:Hi,page:-1},Bi=bo-1>0?bo-1:0,Wi=bo+1<Ur?bo+1:Ur,Eo=mr&&mr.goButton,Xi=(0,ee.Z)(tr)==="object"?tr.readOnly:!tr,ci=Eo,ri=null;tr&&(Eo&&(typeof Eo=="boolean"?ci=E.createElement("button",{type:"button",onClick:Xr,onKeyUp:Xr},Ao.jump_to_confirm):ci=E.createElement("span",{onClick:Xr,onKeyUp:Xr},Eo),ci=E.createElement("li",{title:Kr?"".concat(Ao.jump_to).concat(bo,"/").concat(Ur):null,className:"".concat(we,"-simple-pager")},ci)),ri=E.createElement("li",{title:Kr?"".concat(bo,"/").concat(Ur):null,className:"".concat(we,"-simple-pager")},Xi?$i:E.createElement("input",{type:"text","aria-label":Ao.jump_to,value:$i,disabled:bn,onKeyDown:ws,onKeyUp:Ds,onChange:Ds,onBlur:Gs,size:3}),E.createElement("span",{className:"".concat(we,"-slash")},"/"),Ur));var ui=Wn?1:2;if(Ur<=3+ui*2){Ur||Jr.push(E.createElement(rt,(0,z.Z)({},Jo,{key:"noPager",page:1,className:"".concat(we,"-item-disabled")})));for(var Qi=1;Qi<=Ur;Qi+=1)Jr.push(E.createElement(rt,(0,z.Z)({},Jo,{key:Qi,page:Qi,active:bo===Qi})))}else{var ns=Wn?Ao.prev_3:Ao.prev_5,Va=Wn?Ao.next_3:Ao.next_5,ga=Hi(Oa,"jump-prev",_s(gs,"prev page")),La=Hi(Es,"jump-next",_s(ea,"next page"));yo&&(Vo=ga?E.createElement("li",{title:Kr?ns:null,key:"prev",onClick:yi,tabIndex:0,onKeyDown:dn,className:Se()("".concat(we,"-jump-prev"),(0,b.Z)({},"".concat(we,"-jump-prev-custom-icon"),!!gs))},ga):null,Po=La?E.createElement("li",{title:Kr?Va:null,key:"next",onClick:Ue,tabIndex:0,onKeyDown:nr,className:Se()("".concat(we,"-jump-next"),(0,b.Z)({},"".concat(we,"-jump-next-custom-icon"),!!ea))},La):null);var na=Math.max(1,bo-ui),Ya=Math.min(bo+ui,Ur);bo-1<=ui&&(Ya=1+ui*2),Ur-bo<=ui&&(na=Ur-ui*2);for(var Qe=na;Qe<=Ya;Qe+=1)Jr.push(E.createElement(rt,(0,z.Z)({},Jo,{key:Qe,page:Qe,active:bo===Qe})));if(bo-1>=ui*2&&bo!==3&&(Jr[0]=E.cloneElement(Jr[0],{className:Se()("".concat(we,"-item-after-jump-prev"),Jr[0].props.className)}),Jr.unshift(Vo)),Ur-bo>=ui*2&&bo!==Ur-2){var je=Jr[Jr.length-1];Jr[Jr.length-1]=E.cloneElement(je,{className:Se()("".concat(we,"-item-before-jump-next"),je.props.className)}),Jr.push(Po)}na!==1&&Jr.unshift(E.createElement(rt,(0,z.Z)({},Jo,{key:1,page:1}))),Ya!==Ur&&Jr.push(E.createElement(rt,(0,z.Z)({},Jo,{key:Ur,page:Ur})))}var mt=Pr(Bi);if(mt){var Tt=!Qn||!Ur;mt=E.createElement("li",{title:Kr?Ao.prev_page:null,onClick:hr,tabIndex:Tt?null:0,onKeyDown:dt,className:Se()("".concat(we,"-prev"),(0,b.Z)({},"".concat(we,"-disabled"),Tt)),"aria-disabled":Tt},mt)}var kt=Qr(Wi);if(kt){var Jt,Cn;tr?(Jt=!ir,Cn=Qn?0:null):(Jt=!ir||!Ur,Cn=Jt?null:0),kt=E.createElement("li",{title:Kr?Ao.next_page:null,onClick:No,tabIndex:Cn,onKeyDown:Mt,className:Se()("".concat(we,"-next"),(0,b.Z)({},"".concat(we,"-disabled"),Jt)),"aria-disabled":Jt},kt)}var pn=Se()(we,it,(0,b.Z)((0,b.Z)((0,b.Z)((0,b.Z)((0,b.Z)({},"".concat(we,"-start"),Jn==="start"),"".concat(we,"-center"),Jn==="center"),"".concat(we,"-end"),Jn==="end"),"".concat(we,"-simple"),tr),"".concat(we,"-disabled"),bn));return E.createElement("ul",(0,z.Z)({className:pn,style:po,ref:es},Qo),Ei,mt,tr?ri:Jr,kt,E.createElement(Ct,{locale:Ao,rootPrefixCls:we,disabled:bn,selectPrefixCls:nt,changeSize:Ls,pageSize:Ui,pageSizeOptions:Si,quickGo:Us?sr:null,goButton:ci,showSizeChanger:Oo,sizeChangerRender:ni}))},Pt=ut,Ft=te(62906),_n=te(53124),Rn=te(98675),wn=te(25378),Ln=te(10110),en=te(88044),Sn=te(15729),tn=te(16777),Ke=te(47673),At=te(20353),Nt=te(93900),gn=te(14747),xn=te(43259),Nn=te(83559);const Pn=oe=>{const{componentCls:ae}=oe;return{[`${ae}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ae}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ae}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed"}}},[`&${ae}-disabled`]:{cursor:"not-allowed",[`${ae}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:oe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:oe.colorBorder,backgroundColor:oe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:oe.itemActiveBgDisabled},a:{color:oe.itemActiveColorDisabled}}},[`${ae}-item-link`]:{color:oe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ae}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ae}-simple-pager`]:{color:oe.colorTextDisabled},[`${ae}-jump-prev, ${ae}-jump-next`]:{[`${ae}-item-link-icon`]:{opacity:0},[`${ae}-item-ellipsis`]:{opacity:1}}},[`&${ae}-simple`]:{[`${ae}-prev, ${ae}-next`]:{[`&${ae}-disabled ${ae}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ur=oe=>{const{componentCls:ae}=oe;return{[`&${ae}-mini ${ae}-total-text, &${ae}-mini ${ae}-simple-pager`]:{height:oe.itemSizeSM,lineHeight:(0,tn.unit)(oe.itemSizeSM)},[`&${ae}-mini ${ae}-item`]:{minWidth:oe.itemSizeSM,height:oe.itemSizeSM,margin:0,lineHeight:(0,tn.unit)(oe.calc(oe.itemSizeSM).sub(2).equal())},[`&${ae}-mini ${ae}-prev, &${ae}-mini ${ae}-next`]:{minWidth:oe.itemSizeSM,height:oe.itemSizeSM,margin:0,lineHeight:(0,tn.unit)(oe.itemSizeSM)},[`&${ae}-mini:not(${ae}-disabled)`]:{[`${ae}-prev, ${ae}-next`]:{[`&:hover ${ae}-item-link`]:{backgroundColor:oe.colorBgTextHover},[`&:active ${ae}-item-link`]:{backgroundColor:oe.colorBgTextActive},[`&${ae}-disabled:hover ${ae}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ae}-mini ${ae}-prev ${ae}-item-link,
|
|
|
&${ae}-mini ${ae}-next ${ae}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:oe.itemSizeSM,lineHeight:(0,tn.unit)(oe.itemSizeSM)}},[`&${ae}-mini ${ae}-jump-prev, &${ae}-mini ${ae}-jump-next`]:{height:oe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,tn.unit)(oe.itemSizeSM)},[`&${ae}-mini ${ae}-options`]:{marginInlineStart:oe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:oe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:oe.itemSizeSM,lineHeight:(0,tn.unit)(oe.itemSizeSM),input:Object.assign(Object.assign({},(0,Ke.x0)(oe)),{width:oe.paginationMiniQuickJumperInputWidth,height:oe.controlHeightSM})}}}},Hn=oe=>{const{componentCls:ae}=oe;return{[`
|
|
|
&${ae}-simple ${ae}-prev,
|
|
|
&${ae}-simple ${ae}-next
|
|
|
`]:{height:oe.itemSizeSM,lineHeight:(0,tn.unit)(oe.itemSizeSM),verticalAlign:"top",[`${ae}-item-link`]:{height:oe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:oe.colorBgTextHover},"&:active":{backgroundColor:oe.colorBgTextActive},"&::after":{height:oe.itemSizeSM,lineHeight:(0,tn.unit)(oe.itemSizeSM)}}},[`&${ae}-simple ${ae}-simple-pager`]:{display:"inline-block",height:oe.itemSizeSM,marginInlineEnd:oe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,tn.unit)(oe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:oe.itemInputBg,border:`${(0,tn.unit)(oe.lineWidth)} ${oe.lineType} ${oe.colorBorder}`,borderRadius:oe.borderRadius,outline:"none",transition:`border-color ${oe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:oe.colorPrimary},"&:focus":{borderColor:oe.colorPrimaryHover,boxShadow:`${(0,tn.unit)(oe.inputOutlineOffset)} 0 ${(0,tn.unit)(oe.controlOutlineWidth)} ${oe.controlOutline}`},"&[disabled]":{color:oe.colorTextDisabled,backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,cursor:"not-allowed"}}}}},Nr=oe=>{const{componentCls:ae}=oe;return{[`${ae}-jump-prev, ${ae}-jump-next`]:{outline:0,[`${ae}-item-container`]:{position:"relative",[`${ae}-item-link-icon`]:{color:oe.colorPrimary,fontSize:oe.fontSizeSM,opacity:0,transition:`all ${oe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ae}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:oe.colorTextDisabled,letterSpacing:oe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:oe.paginationEllipsisTextIndent,opacity:1,transition:`all ${oe.motionDurationMid}`}},"&:hover":{[`${ae}-item-link-icon`]:{opacity:1},[`${ae}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ae}-prev,
|
|
|
${ae}-jump-prev,
|
|
|
${ae}-jump-next
|
|
|
`]:{marginInlineEnd:oe.marginXS},[`
|
|
|
${ae}-prev,
|
|
|
${ae}-next,
|
|
|
${ae}-jump-prev,
|
|
|
${ae}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:oe.itemSize,height:oe.itemSize,color:oe.colorText,fontFamily:oe.fontFamily,lineHeight:(0,tn.unit)(oe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:oe.borderRadius,cursor:"pointer",transition:`all ${oe.motionDurationMid}`},[`${ae}-prev, ${ae}-next`]:{outline:0,button:{color:oe.colorText,cursor:"pointer",userSelect:"none"},[`${ae}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:oe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,tn.unit)(oe.lineWidth)} ${oe.lineType} transparent`,borderRadius:oe.borderRadius,outline:"none",transition:`all ${oe.motionDurationMid}`},[`&:hover ${ae}-item-link`]:{backgroundColor:oe.colorBgTextHover},[`&:active ${ae}-item-link`]:{backgroundColor:oe.colorBgTextActive},[`&${ae}-disabled:hover`]:{[`${ae}-item-link`]:{backgroundColor:"transparent"}}},[`${ae}-slash`]:{marginInlineEnd:oe.paginationSlashMarginInlineEnd,marginInlineStart:oe.paginationSlashMarginInlineStart},[`${ae}-options`]:{display:"inline-block",marginInlineStart:oe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:oe.controlHeight,marginInlineStart:oe.marginXS,lineHeight:(0,tn.unit)(oe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Ke.ik)(oe)),(0,Nt.$U)(oe,{borderColor:oe.colorBorder,hoverBorderColor:oe.colorPrimaryHover,activeBorderColor:oe.colorPrimary,activeShadow:oe.activeShadow})),{"&[disabled]":Object.assign({},(0,Nt.Xy)(oe)),width:oe.calc(oe.controlHeightLG).mul(1.25).equal(),height:oe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:oe.marginXS,marginInlineEnd:oe.marginXS})}}}},no=oe=>{const{componentCls:ae}=oe;return{[`${ae}-item`]:{display:"inline-block",minWidth:oe.itemSize,height:oe.itemSize,marginInlineEnd:oe.marginXS,fontFamily:oe.fontFamily,lineHeight:(0,tn.unit)(oe.calc(oe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:oe.itemBg,border:`${(0,tn.unit)(oe.lineWidth)} ${oe.lineType} transparent`,borderRadius:oe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,tn.unit)(oe.paginationItemPaddingInline)}`,color:oe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ae}-item-active)`]:{"&:hover":{transition:`all ${oe.motionDurationMid}`,backgroundColor:oe.colorBgTextHover},"&:active":{backgroundColor:oe.colorBgTextActive}},"&-active":{fontWeight:oe.fontWeightStrong,backgroundColor:oe.itemActiveBg,borderColor:oe.colorPrimary,a:{color:oe.colorPrimary},"&:hover":{borderColor:oe.colorPrimaryHover},"&:hover a":{color:oe.colorPrimaryHover}}}}},Fr=oe=>{const{componentCls:ae}=oe;return{[ae]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,gn.Wf)(oe)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ae}-total-text`]:{display:"inline-block",height:oe.itemSize,marginInlineEnd:oe.marginXS,lineHeight:(0,tn.unit)(oe.calc(oe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),no(oe)),Nr(oe)),Hn(oe)),ur(oe)),Pn(oe)),{[`@media only screen and (max-width: ${oe.screenLG}px)`]:{[`${ae}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${oe.screenSM}px)`]:{[`${ae}-options`]:{display:"none"}}}),[`&${oe.componentCls}-rtl`]:{direction:"rtl"}}},Tn=oe=>{const{componentCls:ae}=oe;return{[`${ae}:not(${ae}-disabled)`]:{[`${ae}-item`]:Object.assign({},(0,gn.Qy)(oe)),[`${ae}-jump-prev, ${ae}-jump-next`]:{"&:focus-visible":Object.assign({[`${ae}-item-link-icon`]:{opacity:1},[`${ae}-item-ellipsis`]:{opacity:0}},(0,gn.oN)(oe))},[`${ae}-prev, ${ae}-next`]:{[`&:focus-visible ${ae}-item-link`]:Object.assign({},(0,gn.oN)(oe))}}}},Yn=oe=>Object.assign({itemBg:oe.colorBgContainer,itemSize:oe.controlHeight,itemSizeSM:oe.controlHeightSM,itemActiveBg:oe.colorBgContainer,itemLinkBg:oe.colorBgContainer,itemActiveColorDisabled:oe.colorTextDisabled,itemActiveBgDisabled:oe.controlItemBgActiveDisabled,itemInputBg:oe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,At.T)(oe)),En=oe=>(0,xn.mergeToken)(oe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:oe.calc(oe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:oe.calc(oe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:oe.calc(oe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:oe.calc(oe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:oe.marginSM,paginationSlashMarginInlineEnd:oe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,At.e)(oe));var fr=(0,Nn.I$)("Pagination",oe=>{const ae=En(oe);return[Fr(ae),Tn(ae)]},Yn);const $n=oe=>{const{componentCls:ae}=oe;return{[`${ae}${ae}-bordered${ae}-disabled:not(${ae}-mini)`]:{"&, &:hover":{[`${ae}-item-link`]:{borderColor:oe.colorBorder}},"&:focus-visible":{[`${ae}-item-link`]:{borderColor:oe.colorBorder}},[`${ae}-item, ${ae}-item-link`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,[`&:hover:not(${ae}-item-active)`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,a:{color:oe.colorTextDisabled}},[`&${ae}-item-active`]:{backgroundColor:oe.itemActiveBgDisabled}},[`${ae}-prev, ${ae}-next`]:{"&:hover button":{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder,color:oe.colorTextDisabled},[`${ae}-item-link`]:{backgroundColor:oe.colorBgContainerDisabled,borderColor:oe.colorBorder}}},[`${ae}${ae}-bordered:not(${ae}-mini)`]:{[`${ae}-prev, ${ae}-next`]:{"&:hover button":{borderColor:oe.colorPrimaryHover,backgroundColor:oe.itemBg},[`${ae}-item-link`]:{backgroundColor:oe.itemLinkBg,borderColor:oe.colorBorder},[`&:hover ${ae}-item-link`]:{borderColor:oe.colorPrimary,backgroundColor:oe.itemBg,color:oe.colorPrimary},[`&${ae}-disabled`]:{[`${ae}-item-link`]:{borderColor:oe.colorBorder,color:oe.colorTextDisabled}}},[`${ae}-item`]:{backgroundColor:oe.itemBg,border:`${(0,tn.unit)(oe.lineWidth)} ${oe.lineType} ${oe.colorBorder}`,[`&:hover:not(${ae}-item-active)`]:{borderColor:oe.colorPrimary,backgroundColor:oe.itemBg,a:{color:oe.colorPrimary}},"&-active":{borderColor:oe.colorPrimary}}}}};var Un=(0,Nn.bk)(["Pagination","bordered"],oe=>{const ae=En(oe);return[$n(ae)]},Yn);function Zo(oe){return(0,E.useMemo)(()=>typeof oe=="boolean"?[oe,{}]:oe&&typeof oe=="object"?[!0,oe]:[void 0,void 0],[oe])}var ho=function(oe,ae){var be={};for(var we in oe)Object.prototype.hasOwnProperty.call(oe,we)&&ae.indexOf(we)<0&&(be[we]=oe[we]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,we=Object.getOwnPropertySymbols(oe);Ae<we.length;Ae++)ae.indexOf(we[Ae])<0&&Object.prototype.propertyIsEnumerable.call(oe,we[Ae])&&(be[we[Ae]]=oe[we[Ae]]);return be},ai=oe=>{const{align:ae,prefixCls:be,selectPrefixCls:we,className:Ae,rootClassName:nt,style:it,size:Vt,locale:It,responsive:on,showSizeChanger:zn,selectComponentClass:On,pageSizeOptions:wt}=oe,An=ho(oe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Dn}=(0,wn.Z)(on),[,Xt]=(0,Sn.ZP)(),{getPrefixCls:an,direction:cn,showSizeChanger:Jn,className:vr,style:yo}=(0,_n.dj)("pagination"),mr=an("pagination",be),[Wn,Hr,Kr]=fr(mr),lo=(0,Rn.Z)(Vt),_o=lo==="small"||!!(Dn&&!lo&&on),[zt]=(0,Ln.Z)("Pagination",Ft.Z),Ao=Object.assign(Object.assign({},zt),It),[po,vi]=Zo(zn),[Ri,bn]=Zo(Jn),tr=po!=null?po:Ri,Sr=vi!=null?vi:bn,Xn=On||en.default,Oo=E.useMemo(()=>wt?wt.map(ea=>Number(ea)):void 0,[wt]),ni=ea=>{var $a;const{disabled:fs,size:es,onSizeChange:Ra,"aria-label":Wa,className:Ui,options:Ka}=ea,{className:Ha,onChange:ua}=Sr||{},bo=($a=Ka.find(ya=>String(ya.value)===String(es)))===null||$a===void 0?void 0:$a.value;return E.createElement(Xn,Object.assign({disabled:fs,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ya=>ya.parentNode,"aria-label":Wa,options:Ka},Sr,{value:bo,onChange:(ya,ts)=>{Ra==null||Ra(ya),ua==null||ua(ya,ts)},size:_o?"small":"middle",className:x()(Ui,Ha)}))},Si=E.useMemo(()=>{const ea=E.createElement("span",{className:`${mr}-item-ellipsis`},"\u2022\u2022\u2022"),$a=E.createElement("button",{className:`${mr}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?E.createElement(a.Z,null):E.createElement(ne.Z,null)),fs=E.createElement("button",{className:`${mr}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?E.createElement(ne.Z,null):E.createElement(a.Z,null)),es=E.createElement("a",{className:`${mr}-item-link`},E.createElement("div",{className:`${mr}-item-container`},cn==="rtl"?E.createElement(ie,{className:`${mr}-item-link-icon`}):E.createElement(de,{className:`${mr}-item-link-icon`}),ea)),Ra=E.createElement("a",{className:`${mr}-item-link`},E.createElement("div",{className:`${mr}-item-container`},cn==="rtl"?E.createElement(de,{className:`${mr}-item-link-icon`}):E.createElement(ie,{className:`${mr}-item-link-icon`}),ea));return{prevIcon:$a,nextIcon:fs,jumpPrevIcon:es,jumpNextIcon:Ra}},[cn,mr]),zi=an("select",we),Hi=x()({[`${mr}-${ae}`]:!!ae,[`${mr}-mini`]:_o,[`${mr}-rtl`]:cn==="rtl",[`${mr}-bordered`]:Xt.wireframe},vr,Ae,nt,Hr,Kr),gs=Object.assign(Object.assign({},yo),it);return Wn(E.createElement(E.Fragment,null,Xt.wireframe&&E.createElement(Un,{prefixCls:mr}),E.createElement(Pt,Object.assign({},Si,An,{style:gs,prefixCls:mr,selectPrefixCls:zi,className:Hi,locale:Ao,pageSizeOptions:Oo,showSizeChanger:tr,sizeChangerRender:ni}))))},ln=ai},55054:function(ft,Je,te){"use strict";te.d(Je,{default:function(){return Fe}});var E=te(67294),_e=te(57838),Ee=te(96159),pe=te(13144),ve=te.n(pe),fe=te(1337),me=te(53124),de=te(48054),ue=Ie=>{const{value:vt,formatter:at,precision:et,decimalSeparator:De,groupSeparator:Oe="",prefixCls:ke}=Ie;let lt;if(typeof at=="function")lt=at(vt);else{const Xe=String(vt),xt=Xe.match(/^(-?)(\d*)(\.(\d+))?$/);if(!xt||Xe==="-")lt=Xe;else{const Ot=xt[1];let Dt=xt[2]||"0",Kt=xt[4]||"";Dt=Dt.replace(/\B(?=(\d{3})+(?!\d))/g,Oe),typeof et=="number"&&(Kt=Kt.padEnd(et,"0").slice(0,et>0?et:0)),Kt&&(Kt=`${De}${Kt}`),lt=[E.createElement("span",{key:"int",className:`${ke}-content-value-int`},Ot,Dt),Kt&&E.createElement("span",{key:"decimal",className:`${ke}-content-value-decimal`},Kt)]}}return E.createElement("span",{className:`${ke}-content-value`},lt)},le=te(14747),he=te(83559),ie=te(43259);const ne=Ie=>{const{componentCls:vt,marginXXS:at,padding:et,colorTextDescription:De,titleFontSize:Oe,colorTextHeading:ke,contentFontSize:lt,fontFamily:Xe}=Ie;return{[vt]:Object.assign(Object.assign({},(0,le.Wf)(Ie)),{[`${vt}-title`]:{marginBottom:at,color:De,fontSize:Oe},[`${vt}-skeleton`]:{paddingTop:et},[`${vt}-content`]:{color:ke,fontSize:lt,fontFamily:Xe,[`${vt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${vt}-content-prefix, ${vt}-content-suffix`]:{display:"inline-block"},[`${vt}-content-prefix`]:{marginInlineEnd:at},[`${vt}-content-suffix`]:{marginInlineStart:at}}})}},a=Ie=>{const{fontSizeHeading3:vt,fontSize:at}=Ie;return{titleFontSize:at,contentFontSize:vt}};var y=(0,he.I$)("Statistic",Ie=>{const vt=(0,ie.mergeToken)(Ie,{});return[ne(vt)]},a),x=function(Ie,vt){var at={};for(var et in Ie)Object.prototype.hasOwnProperty.call(Ie,et)&&vt.indexOf(et)<0&&(at[et]=Ie[et]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,et=Object.getOwnPropertySymbols(Ie);De<et.length;De++)vt.indexOf(et[De])<0&&Object.prototype.propertyIsEnumerable.call(Ie,et[De])&&(at[et[De]]=Ie[et[De]]);return at},z=Ie=>{const{prefixCls:vt,className:at,rootClassName:et,style:De,valueStyle:Oe,value:ke=0,title:lt,valueRender:Xe,prefix:xt,suffix:Ot,loading:Dt=!1,formatter:Kt,precision:St,decimalSeparator:gt=".",groupSeparator:ht=",",onMouseEnter:Qt,onMouseLeave:yt}=Ie,Zt=x(Ie,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:Ye,direction:Gt,className:fn,style:hn}=(0,me.dj)("statistic"),mn=Ye("statistic",vt),[Mn,Rt,$t]=y(mn),Ct=E.createElement(ue,{decimalSeparator:gt,groupSeparator:ht,prefixCls:mn,formatter:Kt,precision:St,value:ke}),Be=ve()(mn,{[`${mn}-rtl`]:Gt==="rtl"},fn,at,et,Rt,$t),rt=(0,fe.Z)(Zt,{aria:!0,data:!0});return Mn(E.createElement("div",Object.assign({},rt,{className:Be,style:Object.assign(Object.assign({},hn),De),onMouseEnter:Qt,onMouseLeave:yt}),lt&&E.createElement("div",{className:`${mn}-title`},lt),E.createElement(de.Z,{paragraph:!1,loading:Dt,className:`${mn}-skeleton`},E.createElement("div",{style:Oe,className:`${mn}-content`},xt&&E.createElement("span",{className:`${mn}-content-prefix`},xt),Xe?Xe(Ct):Ct,Ot&&E.createElement("span",{className:`${mn}-content-suffix`},Ot)))))};const ee=[["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 re(Ie,vt){let at=Ie;const et=/\[[^\]]*]/g,De=(vt.match(et)||[]).map(Xe=>Xe.slice(1,-1)),Oe=vt.replace(et,"[]"),ke=ee.reduce((Xe,xt)=>{let[Ot,Dt]=xt;if(Xe.includes(Ot)){const Kt=Math.floor(at/Dt);return at-=Kt*Dt,Xe.replace(new RegExp(`${Ot}+`,"g"),St=>{const gt=St.length;return Kt.toString().padStart(gt,"0")})}return Xe},Oe);let lt=0;return ke.replace(et,()=>{const Xe=De[lt];return lt+=1,Xe})}function se(Ie,vt){const{format:at=""}=vt,et=new Date(Ie).getTime(),De=Date.now(),Oe=Math.max(et-De,0);return re(Oe,at)}var ge=function(Ie,vt){var at={};for(var et in Ie)Object.prototype.hasOwnProperty.call(Ie,et)&&vt.indexOf(et)<0&&(at[et]=Ie[et]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,et=Object.getOwnPropertySymbols(Ie);De<et.length;De++)vt.indexOf(et[De])<0&&Object.prototype.propertyIsEnumerable.call(Ie,et[De])&&(at[et[De]]=Ie[et[De]]);return at};const Se=1e3/30;function Pe(Ie){return new Date(Ie).getTime()}const Re=Ie=>{const{value:vt,format:at="HH:mm:ss",onChange:et,onFinish:De}=Ie,Oe=ge(Ie,["value","format","onChange","onFinish"]),ke=(0,_e.Z)(),lt=E.useRef(null),Xe=()=>{De==null||De(),lt.current&&(clearInterval(lt.current),lt.current=null)},xt=()=>{const Kt=Pe(vt);Kt>=Date.now()&&(lt.current=setInterval(()=>{ke(),et==null||et(Kt-Date.now()),Kt<Date.now()&&Xe()},Se))};E.useEffect(()=>(xt(),()=>{lt.current&&(clearInterval(lt.current),lt.current=null)}),[vt]);const Ot=(Kt,St)=>se(Kt,Object.assign(Object.assign({},St),{format:at})),Dt=Kt=>(0,Ee.Tm)(Kt,{title:void 0});return E.createElement(z,Object.assign({},Oe,{value:vt,valueRender:Dt,formatter:Ot}))};var Le=E.memo(Re);z.Countdown=Le;var Fe=z},80147:function(ft,Je,te){"use strict";te.d(Je,{default:function(){return Zu}});var E=te(67294),_e={},Ee="rc-table-internal-hook",pe=te(97685),ve=te(66680),fe=te(8410),me=te(91881),de=te(73935);function ce(ye){var Ce=E.createContext(void 0),xe=function(Ne){var ze=Ne.value,Ze=Ne.children,We=E.useRef(ze);We.current=ze;var st=E.useState(function(){return{getValue:function(){return We.current},listeners:new Set}}),ot=(0,pe.Z)(st,1),Et=ot[0];return(0,fe.Z)(function(){(0,de.unstable_batchedUpdates)(function(){Et.listeners.forEach(function(pt){pt(ze)})})},[ze]),E.createElement(Ce.Provider,{value:Et},Ze)};return{Context:Ce,Provider:xe,defaultValue:ye}}function ue(ye,Ce){var xe=(0,ve.Z)(typeof Ce=="function"?Ce:function(pt){if(Ce===void 0)return pt;if(!Array.isArray(Ce))return pt[Ce];var bt={};return Ce.forEach(function(_t){bt[_t]=pt[_t]}),bt}),Me=E.useContext(ye==null?void 0:ye.Context),Ne=Me||{},ze=Ne.listeners,Ze=Ne.getValue,We=E.useRef();We.current=xe(Me?Ze():ye==null?void 0:ye.defaultValue);var st=E.useState({}),ot=(0,pe.Z)(st,2),Et=ot[1];return(0,fe.Z)(function(){if(!Me)return;function pt(bt){var _t=xe(bt);(0,me.Z)(We.current,_t,!0)||Et({})}return ze.add(pt),function(){ze.delete(pt)}},[Me]),We.current}var le=te(87462),he=te(42550);function ie(){var ye=E.createContext(null);function Ce(){return E.useContext(ye)}function xe(Ne,ze){var Ze=(0,he.Yr)(Ne),We=function(ot,Et){var pt=Ze?{ref:Et}:{},bt=E.useRef(0),_t=E.useRef(ot),Lt=Ce();return Lt!==null?E.createElement(Ne,(0,le.Z)({},ot,pt)):((!ze||ze(_t.current,ot))&&(bt.current+=1),_t.current=ot,E.createElement(ye.Provider,{value:bt.current},E.createElement(Ne,(0,le.Z)({},ot,pt))))};return Ze?E.forwardRef(We):We}function Me(Ne,ze){var Ze=(0,he.Yr)(Ne),We=function(ot,Et){var pt=Ze?{ref:Et}:{};return Ce(),E.createElement(Ne,(0,le.Z)({},ot,pt))};return Ze?E.memo(E.forwardRef(We),ze):E.memo(We,ze)}return{makeImmutable:xe,responseImmutable:Me,useImmutableMark:Ce}}var ne=ie(),a=ne.makeImmutable,y=ne.responseImmutable,x=ne.useImmutableMark,b=ie(),z=b.makeImmutable,ee=b.responseImmutable,re=b.useImmutableMark,se=ce(),ge=se;function Se(ye,Ce){var xe=React.useRef(0);xe.current+=1;var Me=React.useRef(ye),Ne=[];Object.keys(ye||{}).map(function(Ze){var We;(ye==null?void 0:ye[Ze])!==((We=Me.current)===null||We===void 0?void 0:We[Ze])&&Ne.push(Ze)}),Me.current=ye;var ze=React.useRef([]);return Ne.length&&(ze.current=Ne),React.useDebugValue(xe.current),React.useDebugValue(ze.current.join(", ")),Ce&&console.log("".concat(Ce,":"),xe.current,ze.current),xe.current}var Pe=null,Re=null,Le=te(71002),Fe=te(1413),Ie=te(4942),vt=te(94184),at=te.n(vt);function et(ye,Ce,xe){var Me=E.useRef({});return(!("value"in Me.current)||xe(Me.current.condition,Ce))&&(Me.current.value=ye(),Me.current.condition=Ce),Me.current.value}var De={},Oe=[],ke=function(Ce){Oe.push(Ce)};function lt(ye,Ce){if(0)var xe}function Xe(ye,Ce){if(0)var xe}function xt(){De={}}function Ot(ye,Ce,xe){!Ce&&!De[xe]&&(ye(!1,xe),De[xe]=!0)}function Dt(ye,Ce){Ot(lt,ye,Ce)}function Kt(ye,Ce){Ot(Xe,ye,Ce)}Dt.preMessage=ke,Dt.resetWarned=xt,Dt.noteOnce=Kt;var St=Dt;function gt(ye,Ce){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Me=new Set;function Ne(ze,Ze){var We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,st=Me.has(ze);if(St(!st,"Warning: There may be circular references"),st)return!1;if(ze===Ze)return!0;if(xe&&We>1)return!1;Me.add(ze);var ot=We+1;if(Array.isArray(ze)){if(!Array.isArray(Ze)||ze.length!==Ze.length)return!1;for(var Et=0;Et<ze.length;Et++)if(!Ne(ze[Et],Ze[Et],ot))return!1;return!0}if(ze&&Ze&&(0,Le.Z)(ze)==="object"&&(0,Le.Z)(Ze)==="object"){var pt=Object.keys(ze);return pt.length!==Object.keys(Ze).length?!1:pt.every(function(bt){return Ne(ze[bt],Ze[bt],ot)})}return!1}return Ne(ye,Ce)}var ht=gt;function Qt(ye,Ce){for(var xe=ye,Me=0;Me<Ce.length;Me+=1){if(xe==null)return;xe=xe[Ce[Me]]}return xe}var yt=E.createContext({renderWithProps:!1}),Zt=yt,Ye="RC_TABLE_KEY";function Gt(ye){return ye==null?[]:Array.isArray(ye)?ye:[ye]}function fn(ye){var Ce=[],xe={};return ye.forEach(function(Me){for(var Ne=Me||{},ze=Ne.key,Ze=Ne.dataIndex,We=ze||Gt(Ze).join("-")||Ye;xe[We];)We="".concat(We,"_next");xe[We]=!0,Ce.push(We)}),Ce}function hn(ye){return ye!=null}function mn(ye){return typeof ye=="number"&&!Number.isNaN(ye)}function Mn(ye){return ye&&(0,Le.Z)(ye)==="object"&&!Array.isArray(ye)&&!E.isValidElement(ye)}function Rt(ye,Ce,xe,Me,Ne,ze){var Ze=E.useContext(Zt),We=re(),st=et(function(){if(hn(Me))return[Me];var ot=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],Et=Qt(ye,ot),pt=Et,bt=void 0;if(Ne){var _t=Ne(Et,ye,xe);Mn(_t)?(pt=_t.children,bt=_t.props,Ze.renderWithProps=!0):pt=_t}return[pt,bt]},[We,ye,Me,Ce,Ne,xe],function(ot,Et){if(ze){var pt=(0,pe.Z)(ot,2),bt=pt[1],_t=(0,pe.Z)(Et,2),Lt=_t[1];return ze(Lt,bt)}return Ze.renderWithProps?!0:!ht(ot,Et,!0)});return st}function $t(ye,Ce,xe,Me){var Ne=ye+Ce-1;return ye<=Me&&Ne>=xe}function Ct(ye,Ce){return ue(ge,function(xe){var Me=$t(ye,Ce||1,xe.hoverStartRow,xe.hoverEndRow);return[Me,xe.onHover]})}function Be(ye){var Ce=E.useRef();Ce.current=ye;var xe=E.useCallback(function(){for(var Me,Ne=arguments.length,ze=new Array(Ne),Ze=0;Ze<Ne;Ze++)ze[Ze]=arguments[Ze];return(Me=Ce.current)===null||Me===void 0?void 0:Me.call.apply(Me,[Ce].concat(ze))},[]);return xe}function rt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var tt=rt()?E.useLayoutEffect:E.useEffect,ct=function(Ce,xe){var Me=React.useRef(!0);tt(function(){return Ce(Me.current)},xe),tt(function(){return Me.current=!1,function(){Me.current=!0}},[])},qe=function(Ce,xe){ct(function(Me){if(!Me)return Ce()},xe)},Ge=null;function ut(ye){var Ce=React.useRef(!1),xe=React.useState(ye),Me=_slicedToArray(xe,2),Ne=Me[0],ze=Me[1];React.useEffect(function(){return Ce.current=!1,function(){Ce.current=!0}},[]);function Ze(We,st){st&&Ce.current||ze(We)}return[Ne,Ze]}function Pt(ye){return ye!==void 0}function Ft(ye,Ce){var xe=Ce||{},Me=xe.defaultValue,Ne=xe.value,ze=xe.onChange,Ze=xe.postState,We=useState(function(){return Pt(Ne)?Ne:Pt(Me)?typeof Me=="function"?Me():Me:typeof ye=="function"?ye():ye}),st=_slicedToArray(We,2),ot=st[0],Et=st[1],pt=Ne!==void 0?Ne:ot,bt=Ze?Ze(pt):pt,_t=useEvent(ze),Lt=useState([pt]),Ht=_slicedToArray(Lt,2),Bt=Ht[0],qt=Ht[1];useLayoutUpdateEffect(function(){var Wt=Bt[0];ot!==Wt&&_t(ot,Wt)},[Bt]),useLayoutUpdateEffect(function(){Pt(Ne)||Et(Ne)},[Ne]);var Ut=useEvent(function(Wt,un){Et(Wt,un),qt([pt],un)});return[bt,Ut]}var _n=te(35110),Rn=Symbol.for("react.element"),wn=Symbol.for("react.transitional.element"),Ln=Symbol.for("react.fragment");function en(ye){return ye&&(0,Le.Z)(ye)==="object"&&(ye.$$typeof===Rn||ye.$$typeof===wn)&&ye.type===Ln}var Sn=Number(E.version.split(".")[0]),tn=function(Ce,xe){typeof Ce=="function"?Ce(xe):(0,Le.Z)(Ce)==="object"&&Ce&&"current"in Ce&&(Ce.current=xe)},Ke=function(){for(var Ce=arguments.length,xe=new Array(Ce),Me=0;Me<Ce;Me++)xe[Me]=arguments[Me];var Ne=xe.filter(Boolean);return Ne.length<=1?Ne[0]:function(ze){xe.forEach(function(Ze){tn(Ze,ze)})}},At=function(){for(var Ce=arguments.length,xe=new Array(Ce),Me=0;Me<Ce;Me++)xe[Me]=arguments[Me];return useMemo(function(){return Ke.apply(void 0,xe)},xe,function(Ne,ze){return Ne.length!==ze.length||Ne.every(function(Ze,We){return Ze!==ze[We]})})},Nt=function(Ce){var xe,Me;if(!Ce)return!1;if(gn(Ce)&&Sn>=19)return!0;var Ne=isMemo(Ce)?Ce.type.type:Ce.type;return!(typeof Ne=="function"&&!((xe=Ne.prototype)!==null&&xe!==void 0&&xe.render)&&Ne.$$typeof!==ForwardRef||typeof Ce=="function"&&!((Me=Ce.prototype)!==null&&Me!==void 0&&Me.render)&&Ce.$$typeof!==ForwardRef)};function gn(ye){return isValidElement(ye)&&!isFragment(ye)}var xn=function(Ce){return gn(Ce)&&Nt(Ce)},Nn=function(Ce){if(Ce&&gn(Ce)){var xe=Ce;return xe.props.propertyIsEnumerable("ref")?xe.props.ref:xe.ref}return null};function Pn(ye,Ce,xe,Me){if(!Ce.length)return xe;var Ne=_toArray(Ce),ze=Ne[0],Ze=Ne.slice(1),We;return!ye&&typeof ze=="number"?We=[]:Array.isArray(ye)?We=_toConsumableArray(ye):We=_objectSpread({},ye),Me&&xe===void 0&&Ze.length===1?delete We[ze][Ze[0]]:We[ze]=Pn(We[ze],Ze,xe,Me),We}function ur(ye,Ce,xe){var Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ce.length&&Me&&xe===void 0&&!get(ye,Ce.slice(0,-1))?ye:Pn(ye,Ce,xe,Me)}function Hn(ye){return _typeof(ye)==="object"&&ye!==null&&Object.getPrototypeOf(ye)===Object.prototype}function Nr(ye){return Array.isArray(ye)?[]:{}}var no=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Fr(){for(var ye=arguments.length,Ce=new Array(ye),xe=0;xe<ye;xe++)Ce[xe]=arguments[xe];var Me=Nr(Ce[0]);return Ce.forEach(function(Ne){function ze(Ze,We){var st=new Set(We),ot=get(Ne,Ze),Et=Array.isArray(ot);if(Et||Hn(ot)){if(!st.has(ot)){st.add(ot);var pt=get(Me,Ze);Et?Me=ur(Me,Ze,[]):(!pt||_typeof(pt)!=="object")&&(Me=ur(Me,Ze,Nr(ot))),no(ot).forEach(function(bt){ze([].concat(_toConsumableArray(Ze),[bt]),st)})}}else Me=ur(Me,Ze,ot)}ze([])}),Me}var Tn=function(Ce){var xe=Ce.ellipsis,Me=Ce.rowType,Ne=Ce.children,ze,Ze=xe===!0?{showTitle:!0}:xe;return Ze&&(Ze.showTitle||Me==="header")&&(typeof Ne=="string"||typeof Ne=="number"?ze=Ne.toString():E.isValidElement(Ne)&&typeof Ne.props.children=="string"&&(ze=Ne.props.children)),ze};function Yn(ye){var Ce,xe,Me,Ne,ze,Ze,We,st,ot=ye.component,Et=ye.children,pt=ye.ellipsis,bt=ye.scope,_t=ye.prefixCls,Lt=ye.className,Ht=ye.align,Bt=ye.record,qt=ye.render,Ut=ye.dataIndex,Wt=ye.renderIndex,un=ye.shouldCellUpdate,Bn=ye.index,er=ye.rowType,In=ye.colSpan,Br=ye.rowSpan,pr=ye.fixLeft,br=ye.fixRight,Lr=ye.firstFixLeft,ar=ye.lastFixLeft,or=ye.firstFixRight,Kn=ye.lastFixRight,Fn=ye.appendNode,Vn=ye.additionalProps,lr=Vn===void 0?{}:Vn,gr=ye.isSticky,Gn="".concat(_t,"-cell"),Yr=ue(ge,["supportSticky","allColumnsFixedLeft","rowHoverable"]),ro=Yr.supportSticky,Mi=Yr.allColumnsFixedLeft,Mo=Yr.rowHoverable,Xo=Rt(Bt,Ut,Wt,Et,qt,un),Pi=(0,pe.Z)(Xo,2),pa=Pi[0],xo=Pi[1],So={},Uo=typeof pr=="number"&&ro,Di=typeof br=="number"&&ro;Uo&&(So.position="sticky",So.left=pr),Di&&(So.position="sticky",So.right=br);var cr=(Ce=(xe=(Me=xo==null?void 0:xo.colSpan)!==null&&Me!==void 0?Me:lr.colSpan)!==null&&xe!==void 0?xe:In)!==null&&Ce!==void 0?Ce:1,xr=(Ne=(ze=(Ze=xo==null?void 0:xo.rowSpan)!==null&&Ze!==void 0?Ze:lr.rowSpan)!==null&&ze!==void 0?ze:Br)!==null&&Ne!==void 0?Ne:1,rr=Ct(Bn,xr),Er=(0,pe.Z)(rr,2),ko=Er[0],jo=Er[1],Ti=Be(function(Ai){var ti;Bt&&jo(Bn,Bn+xr-1),lr==null||(ti=lr.onMouseEnter)===null||ti===void 0||ti.call(lr,Ai)}),pi=Be(function(Ai){var ti;Bt&&jo(-1,-1),lr==null||(ti=lr.onMouseLeave)===null||ti===void 0||ti.call(lr,Ai)});if(cr===0||xr===0)return null;var ba=(We=lr.title)!==null&&We!==void 0?We:Tn({rowType:er,ellipsis:pt,children:pa}),va=at()(Gn,Lt,(st={},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)(st,"".concat(Gn,"-fix-left"),Uo&&ro),"".concat(Gn,"-fix-left-first"),Lr&&ro),"".concat(Gn,"-fix-left-last"),ar&&ro),"".concat(Gn,"-fix-left-all"),ar&&Mi&&ro),"".concat(Gn,"-fix-right"),Di&&ro),"".concat(Gn,"-fix-right-first"),or&&ro),"".concat(Gn,"-fix-right-last"),Kn&&ro),"".concat(Gn,"-ellipsis"),pt),"".concat(Gn,"-with-append"),Fn),"".concat(Gn,"-fix-sticky"),(Uo||Di)&&gr&&ro),(0,Ie.Z)(st,"".concat(Gn,"-row-hover"),!xo&&ko)),lr.className,xo==null?void 0:xo.className),Mr={};Ht&&(Mr.textAlign=Ht);var Or=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},xo==null?void 0:xo.style),So),Mr),lr.style),Go=pa;return(0,Le.Z)(Go)==="object"&&!Array.isArray(Go)&&!E.isValidElement(Go)&&(Go=null),pt&&(ar||or)&&(Go=E.createElement("span",{className:"".concat(Gn,"-content")},Go)),E.createElement(ot,(0,le.Z)({},xo,lr,{className:va,style:Or,title:ba,scope:bt,onMouseEnter:Mo?Ti:void 0,onMouseLeave:Mo?pi:void 0,colSpan:cr!==1?cr:null,rowSpan:xr!==1?xr:null}),Fn,Go)}var En=E.memo(Yn);function fr(ye,Ce,xe,Me,Ne){var ze=xe[ye]||{},Ze=xe[Ce]||{},We,st;ze.fixed==="left"?We=Me.left[Ne==="rtl"?Ce:ye]:Ze.fixed==="right"&&(st=Me.right[Ne==="rtl"?ye:Ce]);var ot=!1,Et=!1,pt=!1,bt=!1,_t=xe[Ce+1],Lt=xe[ye-1],Ht=_t&&!_t.fixed||Lt&&!Lt.fixed||xe.every(function(un){return un.fixed==="left"});if(Ne==="rtl"){if(We!==void 0){var Bt=Lt&&Lt.fixed==="left";bt=!Bt&&Ht}else if(st!==void 0){var qt=_t&&_t.fixed==="right";pt=!qt&&Ht}}else if(We!==void 0){var Ut=_t&&_t.fixed==="left";ot=!Ut&&Ht}else if(st!==void 0){var Wt=Lt&&Lt.fixed==="right";Et=!Wt&&Ht}return{fixLeft:We,fixRight:st,lastFixLeft:ot,firstFixRight:Et,lastFixRight:pt,firstFixLeft:bt,isSticky:Me.isSticky}}var $n=E.createContext({}),Un=$n;function Zo(ye){var Ce=ye.className,xe=ye.index,Me=ye.children,Ne=ye.colSpan,ze=Ne===void 0?1:Ne,Ze=ye.rowSpan,We=ye.align,st=ue(ge,["prefixCls","direction"]),ot=st.prefixCls,Et=st.direction,pt=E.useContext(Un),bt=pt.scrollColumnIndex,_t=pt.stickyOffsets,Lt=pt.flattenColumns,Ht=xe+ze-1,Bt=Ht+1===bt?ze+1:ze,qt=fr(xe,xe+Bt-1,Lt,_t,Et);return E.createElement(En,(0,le.Z)({className:Ce,index:xe,component:"td",prefixCls:ot,record:null,dataIndex:null,align:We,colSpan:Bt,rowSpan:Ze,render:function(){return Me}},qt))}var ho=te(45987),Wr=["children"];function ai(ye){var Ce=ye.children,xe=(0,ho.Z)(ye,Wr);return E.createElement("tr",xe,Ce)}function ln(ye){var Ce=ye.children;return Ce}ln.Row=ai,ln.Cell=Zo;var oe=ln;function ae(ye){var Ce=ye.children,xe=ye.stickyOffsets,Me=ye.flattenColumns,Ne=ue(ge,"prefixCls"),ze=Me.length-1,Ze=Me[ze],We=E.useMemo(function(){return{stickyOffsets:xe,flattenColumns:Me,scrollColumnIndex:Ze!=null&&Ze.scrollbar?ze:null}},[Ze,Me,ze,xe]);return E.createElement(Un.Provider,{value:We},E.createElement("tfoot",{className:"".concat(Ne,"-summary")},Ce))}var be=ee(ae),we=oe,Ae=te(48555),nt=function(ye){if(!ye)return!1;if(ye instanceof Element){if(ye.offsetParent)return!0;if(ye.getBBox){var Ce=ye.getBBox(),xe=Ce.width,Me=Ce.height;if(xe||Me)return!0}if(ye.getBoundingClientRect){var Ne=ye.getBoundingClientRect(),ze=Ne.width,Ze=Ne.height;if(ze||Ze)return!0}}return!1},it=function(Ce){if(rt()&&window.document.documentElement){var xe=Array.isArray(Ce)?Ce:[Ce],Me=window.document.documentElement;return xe.some(function(Ne){return Ne in Me.style})}return!1},Vt=function(Ce,xe){if(!it(Ce))return!1;var Me=document.createElement("div"),Ne=Me.style[Ce];return Me.style[Ce]=xe,Me.style[Ce]!==Ne};function It(ye,Ce){return!Array.isArray(ye)&&Ce!==void 0?Vt(ye,Ce):it(ye)}function on(ye,Ce){if(!ye)return!1;if(ye.contains)return ye.contains(Ce);for(var xe=Ce;xe;){if(xe===ye)return!0;xe=xe.parentNode}return!1}var zn="data-rc-order",On="data-rc-priority",wt="rc-util-key",An=new Map;function Dn(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ce=ye.mark;return Ce?Ce.startsWith("data-")?Ce:"data-".concat(Ce):wt}function Xt(ye){if(ye.attachTo)return ye.attachTo;var Ce=document.querySelector("head");return Ce||document.body}function an(ye){return ye==="queue"?"prependQueue":ye?"prepend":"append"}function cn(ye){return Array.from((An.get(ye)||ye).children).filter(function(Ce){return Ce.tagName==="STYLE"})}function Jn(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!rt())return null;var xe=Ce.csp,Me=Ce.prepend,Ne=Ce.priority,ze=Ne===void 0?0:Ne,Ze=an(Me),We=Ze==="prependQueue",st=document.createElement("style");st.setAttribute(zn,Ze),We&&ze&&st.setAttribute(On,"".concat(ze)),xe!=null&&xe.nonce&&(st.nonce=xe==null?void 0:xe.nonce),st.innerHTML=ye;var ot=Xt(Ce),Et=ot.firstChild;if(Me){if(We){var pt=(Ce.styles||cn(ot)).filter(function(bt){if(!["prepend","prependQueue"].includes(bt.getAttribute(zn)))return!1;var _t=Number(bt.getAttribute(On)||0);return ze>=_t});if(pt.length)return ot.insertBefore(st,pt[pt.length-1].nextSibling),st}ot.insertBefore(st,Et)}else ot.appendChild(st);return st}function vr(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=Xt(Ce);return(Ce.styles||cn(xe)).find(function(Me){return Me.getAttribute(Dn(Ce))===ye})}function yo(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=vr(ye,Ce);if(xe){var Me=Xt(Ce);Me.removeChild(xe)}}function mr(ye,Ce){var xe=An.get(ye);if(!xe||!on(document,xe)){var Me=Jn("",Ce),Ne=Me.parentNode;An.set(ye,Ne),ye.removeChild(Me)}}function Wn(){An.clear()}function Hr(ye,Ce){var xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Me=Xt(xe),Ne=cn(Me),ze=(0,Fe.Z)((0,Fe.Z)({},xe),{},{styles:Ne});mr(Me,ze);var Ze=vr(Ce,ze);if(Ze){var We,st;if((We=ze.csp)!==null&&We!==void 0&&We.nonce&&Ze.nonce!==((st=ze.csp)===null||st===void 0?void 0:st.nonce)){var ot;Ze.nonce=(ot=ze.csp)===null||ot===void 0?void 0:ot.nonce}return Ze.innerHTML!==ye&&(Ze.innerHTML=ye),Ze}var Et=Jn(ye,ze);return Et.setAttribute(Dn(ze),Ce),Et}var Kr;function lo(ye){var Ce="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),xe=document.createElement("div");xe.id=Ce;var Me=xe.style;Me.position="absolute",Me.left="0",Me.top="0",Me.width="100px",Me.height="100px",Me.overflow="scroll";var Ne,ze;if(ye){var Ze=getComputedStyle(ye);Me.scrollbarColor=Ze.scrollbarColor,Me.scrollbarWidth=Ze.scrollbarWidth;var We=getComputedStyle(ye,"::-webkit-scrollbar"),st=parseInt(We.width,10),ot=parseInt(We.height,10);try{var Et=st?"width: ".concat(We.width,";"):"",pt=ot?"height: ".concat(We.height,";"):"";Hr(`
|
|
|
#`.concat(Ce,`::-webkit-scrollbar {
|
|
|
`).concat(Et,`
|
|
|
`).concat(pt,`
|
|
|
}`),Ce)}catch(Lt){console.error(Lt),Ne=st,ze=ot}}document.body.appendChild(xe);var bt=ye&&Ne&&!isNaN(Ne)?Ne:xe.offsetWidth-xe.clientWidth,_t=ye&&ze&&!isNaN(ze)?ze:xe.offsetHeight-xe.clientHeight;return document.body.removeChild(xe),yo(Ce),{width:bt,height:_t}}function _o(ye){return typeof document=="undefined"?0:((ye||Kr===void 0)&&(Kr=lo()),Kr.width)}function zt(ye){return typeof document=="undefined"||!ye||!(ye instanceof Element)?{width:0,height:0}:lo(ye)}var Ao=`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`,po=`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`,vi="".concat(Ao," ").concat(po).split(/[\s\n]+/),Ri="aria-",bn="data-";function tr(ye,Ce){return ye.indexOf(Ce)===0}function Sr(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe;Ce===!1?xe={aria:!0,data:!0,attr:!0}:Ce===!0?xe={aria:!0}:xe=(0,Fe.Z)({},Ce);var Me={};return Object.keys(ye).forEach(function(Ne){(xe.aria&&(Ne==="role"||tr(Ne,Ri))||xe.data&&tr(Ne,bn)||xe.attr&&vi.includes(Ne))&&(Me[Ne]=ye[Ne])}),Me}function Xn(ye,Ce,xe,Me,Ne,ze,Ze){ye.push({record:Ce,indent:xe,index:Ze});var We=ze(Ce),st=Ne==null?void 0:Ne.has(We);if(Ce&&Array.isArray(Ce[Me])&&st)for(var ot=0;ot<Ce[Me].length;ot+=1)Xn(ye,Ce[Me][ot],xe+1,Me,Ne,ze,ot)}function Oo(ye,Ce,xe,Me){var Ne=E.useMemo(function(){if(xe!=null&&xe.size){for(var ze=[],Ze=0;Ze<(ye==null?void 0:ye.length);Ze+=1){var We=ye[Ze];Xn(ze,We,0,Ce,xe,Me,Ze)}return ze}return ye==null?void 0:ye.map(function(st,ot){return{record:st,indent:0,index:ot}})},[ye,Ce,xe,Me]);return Ne}function ni(ye,Ce,xe,Me){var Ne=ue(ge,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),ze=Ne.flattenColumns,Ze=Ne.expandableType,We=Ne.expandedKeys,st=Ne.childrenColumnName,ot=Ne.onTriggerExpand,Et=Ne.rowExpandable,pt=Ne.onRow,bt=Ne.expandRowByClick,_t=Ne.rowClassName,Lt=Ze==="nest",Ht=Ze==="row"&&(!Et||Et(ye)),Bt=Ht||Lt,qt=We&&We.has(Ce),Ut=st&&ye&&ye[st],Wt=Be(ot),un=pt==null?void 0:pt(ye,xe),Bn=un==null?void 0:un.onClick,er=function(br){bt&&Bt&&ot(ye,br);for(var Lr=arguments.length,ar=new Array(Lr>1?Lr-1:0),or=1;or<Lr;or++)ar[or-1]=arguments[or];Bn==null||Bn.apply(void 0,[br].concat(ar))},In;typeof _t=="string"?In=_t:typeof _t=="function"&&(In=_t(ye,xe,Me));var Br=fn(ze);return(0,Fe.Z)((0,Fe.Z)({},Ne),{},{columnsKey:Br,nestExpandable:Lt,expanded:qt,hasNestChildren:Ut,record:ye,onTriggerExpand:Wt,rowSupportExpand:Ht,expandable:Bt,rowProps:(0,Fe.Z)((0,Fe.Z)({},un),{},{className:at()(In,un==null?void 0:un.className),onClick:er})})}function Si(ye){var Ce=ye.prefixCls,xe=ye.children,Me=ye.component,Ne=ye.cellComponent,ze=ye.className,Ze=ye.expanded,We=ye.colSpan,st=ye.isEmpty,ot=ue(ge,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Et=ot.scrollbarSize,pt=ot.fixHeader,bt=ot.fixColumn,_t=ot.componentWidth,Lt=ot.horizonScroll,Ht=xe;return(st?Lt&&_t:bt)&&(Ht=E.createElement("div",{style:{width:_t-(pt&&!st?Et:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Ht)),E.createElement(Me,{className:ze,style:{display:Ze?null:"none"}},E.createElement(En,{component:Ne,prefixCls:Ce,colSpan:We},Ht))}var zi=Si;function Hi(ye){var Ce=ye.prefixCls,xe=ye.record,Me=ye.onExpand,Ne=ye.expanded,ze=ye.expandable,Ze="".concat(Ce,"-row-expand-icon");if(!ze)return E.createElement("span",{className:at()(Ze,"".concat(Ce,"-row-spaced"))});var We=function(ot){Me(xe,ot),ot.stopPropagation()};return E.createElement("span",{className:at()(Ze,(0,Ie.Z)((0,Ie.Z)({},"".concat(Ce,"-row-expanded"),Ne),"".concat(Ce,"-row-collapsed"),!Ne)),onClick:We})}function gs(ye,Ce,xe){var Me=[];function Ne(ze){(ze||[]).forEach(function(Ze,We){Me.push(Ce(Ze,We)),Ne(Ze[xe])})}return Ne(ye),Me}function ea(ye,Ce,xe,Me){return typeof ye=="string"?ye:typeof ye=="function"?ye(Ce,xe,Me):""}function $a(ye,Ce,xe,Me,Ne){var ze=ye.record,Ze=ye.prefixCls,We=ye.columnsKey,st=ye.fixedInfoList,ot=ye.expandIconColumnIndex,Et=ye.nestExpandable,pt=ye.indentSize,bt=ye.expandIcon,_t=ye.expanded,Lt=ye.hasNestChildren,Ht=ye.onTriggerExpand,Bt=We[xe],qt=st[xe],Ut;xe===(ot||0)&&Et&&(Ut=E.createElement(E.Fragment,null,E.createElement("span",{style:{paddingLeft:"".concat(pt*Me,"px")},className:"".concat(Ze,"-row-indent indent-level-").concat(Me)}),bt({prefixCls:Ze,expanded:_t,expandable:Lt,record:ze,onExpand:Ht})));var Wt;return Ce.onCell&&(Wt=Ce.onCell(ze,Ne)),{key:Bt,fixedInfo:qt,appendCellNode:Ut,additionalCellProps:Wt||{}}}function fs(ye){var Ce=ye.className,xe=ye.style,Me=ye.record,Ne=ye.index,ze=ye.renderIndex,Ze=ye.rowKey,We=ye.indent,st=We===void 0?0:We,ot=ye.rowComponent,Et=ye.cellComponent,pt=ye.scopeCellComponent,bt=ni(Me,Ze,Ne,st),_t=bt.prefixCls,Lt=bt.flattenColumns,Ht=bt.expandedRowClassName,Bt=bt.expandedRowRender,qt=bt.rowProps,Ut=bt.expanded,Wt=bt.rowSupportExpand,un=E.useRef(!1);un.current||(un.current=Ut);var Bn=ea(Ht,Me,Ne,st),er=E.createElement(ot,(0,le.Z)({},qt,{"data-row-key":Ze,className:at()(Ce,"".concat(_t,"-row"),"".concat(_t,"-row-level-").concat(st),qt==null?void 0:qt.className,(0,Ie.Z)({},Bn,st>=1)),style:(0,Fe.Z)((0,Fe.Z)({},xe),qt==null?void 0:qt.style)}),Lt.map(function(pr,br){var Lr=pr.render,ar=pr.dataIndex,or=pr.className,Kn=$a(bt,pr,br,st,Ne),Fn=Kn.key,Vn=Kn.fixedInfo,lr=Kn.appendCellNode,gr=Kn.additionalCellProps;return E.createElement(En,(0,le.Z)({className:or,ellipsis:pr.ellipsis,align:pr.align,scope:pr.rowScope,component:pr.rowScope?pt:Et,prefixCls:_t,key:Fn,record:Me,index:Ne,renderIndex:ze,dataIndex:ar,render:Lr,shouldCellUpdate:pr.shouldCellUpdate},Vn,{appendNode:lr,additionalProps:gr}))})),In;if(Wt&&(un.current||Ut)){var Br=Bt(Me,Ne,st+1,Ut);In=E.createElement(zi,{expanded:Ut,className:at()("".concat(_t,"-expanded-row"),"".concat(_t,"-expanded-row-level-").concat(st+1),Bn),prefixCls:_t,component:ot,cellComponent:Et,colSpan:Lt.length,isEmpty:!1},Br)}return E.createElement(E.Fragment,null,er,In)}var es=ee(fs);function Ra(ye){var Ce=ye.columnKey,xe=ye.onColumnResize,Me=E.useRef();return E.useEffect(function(){Me.current&&xe(Ce,Me.current.offsetWidth)},[]),E.createElement(Ae.Z,{data:Ce},E.createElement("td",{ref:Me,style:{padding:0,border:0,height:0}},E.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Wa(ye){var Ce=ye.prefixCls,xe=ye.columnsKey,Me=ye.onColumnResize;return E.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},E.createElement(Ae.Z.Collection,{onBatchResize:function(ze){ze.forEach(function(Ze){var We=Ze.data,st=Ze.size;Me(We,st.offsetWidth)})}},xe.map(function(Ne){return E.createElement(Ra,{key:Ne,columnKey:Ne,onColumnResize:Me})})))}function Ui(ye){var Ce=ye.data,xe=ye.measureColumnWidth,Me=ue(ge,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ne=Me.prefixCls,ze=Me.getComponent,Ze=Me.onColumnResize,We=Me.flattenColumns,st=Me.getRowKey,ot=Me.expandedKeys,Et=Me.childrenColumnName,pt=Me.emptyNode,bt=Oo(Ce,Et,ot,st),_t=E.useRef({renderWithProps:!1}),Lt=ze(["body","wrapper"],"tbody"),Ht=ze(["body","row"],"tr"),Bt=ze(["body","cell"],"td"),qt=ze(["body","cell"],"th"),Ut;Ce.length?Ut=bt.map(function(un,Bn){var er=un.record,In=un.indent,Br=un.index,pr=st(er,Bn);return E.createElement(es,{key:pr,rowKey:pr,record:er,index:Bn,renderIndex:Br,rowComponent:Ht,cellComponent:Bt,scopeCellComponent:qt,indent:In})}):Ut=E.createElement(zi,{expanded:!0,className:"".concat(Ne,"-placeholder"),prefixCls:Ne,component:Ht,cellComponent:Bt,colSpan:We.length,isEmpty:!0},pt);var Wt=fn(We);return E.createElement(Zt.Provider,{value:_t.current},E.createElement(Lt,{className:"".concat(Ne,"-tbody")},xe&&E.createElement(Wa,{prefixCls:Ne,columnsKey:Wt,onColumnResize:Ze}),Ut))}var Ka=ee(Ui),Ha=["expandable"],ua="RC_TABLE_INTERNAL_COL_DEFINE";function bo(ye){var Ce=ye.expandable,xe=(0,ho.Z)(ye,Ha),Me;return"expandable"in ye?Me=(0,Fe.Z)((0,Fe.Z)({},xe),Ce):Me=xe,Me.showExpandColumn===!1&&(Me.expandIconColumnIndex=-1),Me}var ya=["columnType"];function ts(ye){for(var Ce=ye.colWidths,xe=ye.columns,Me=ye.columCount,Ne=ue(ge,["tableLayout"]),ze=Ne.tableLayout,Ze=[],We=Me||xe.length,st=!1,ot=We-1;ot>=0;ot-=1){var Et=Ce[ot],pt=xe&&xe[ot],bt=void 0,_t=void 0;if(pt&&(bt=pt[ua],ze==="auto"&&(_t=pt.minWidth)),Et||_t||bt||st){var Lt=bt||{},Ht=Lt.columnType,Bt=(0,ho.Z)(Lt,ya);Ze.unshift(E.createElement("col",(0,le.Z)({key:ot,style:{width:Et,minWidth:_t}},Bt))),st=!0}}return E.createElement("colgroup",null,Ze)}var ta=ts,$i=te(74902),da=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ua(ye,Ce){return(0,E.useMemo)(function(){for(var xe=[],Me=0;Me<Ce;Me+=1){var Ne=ye[Me];if(Ne!==void 0)xe[Me]=Ne;else return null}return xe},[ye.join("_"),Ce])}var Ks=E.forwardRef(function(ye,Ce){var xe=ye.className,Me=ye.noData,Ne=ye.columns,ze=ye.flattenColumns,Ze=ye.colWidths,We=ye.columCount,st=ye.stickyOffsets,ot=ye.direction,Et=ye.fixHeader,pt=ye.stickyTopOffset,bt=ye.stickyBottomOffset,_t=ye.stickyClassName,Lt=ye.onScroll,Ht=ye.maxContentScroll,Bt=ye.children,qt=(0,ho.Z)(ye,da),Ut=ue(ge,["prefixCls","scrollbarSize","isSticky","getComponent"]),Wt=Ut.prefixCls,un=Ut.scrollbarSize,Bn=Ut.isSticky,er=Ut.getComponent,In=er(["header","table"],"table"),Br=Bn&&!Et?0:un,pr=E.useRef(null),br=E.useCallback(function(gr){tn(Ce,gr),tn(pr,gr)},[]);E.useEffect(function(){var gr;function Gn(Yr){var ro=Yr,Mi=ro.currentTarget,Mo=ro.deltaX;Mo&&(Lt({currentTarget:Mi,scrollLeft:Mi.scrollLeft+Mo}),Yr.preventDefault())}return(gr=pr.current)===null||gr===void 0||gr.addEventListener("wheel",Gn,{passive:!1}),function(){var Yr;(Yr=pr.current)===null||Yr===void 0||Yr.removeEventListener("wheel",Gn)}},[]);var Lr=E.useMemo(function(){return ze.every(function(gr){return gr.width})},[ze]),ar=ze[ze.length-1],or={fixed:ar?ar.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Wt,"-cell-scrollbar")}}},Kn=(0,E.useMemo)(function(){return Br?[].concat((0,$i.Z)(Ne),[or]):Ne},[Br,Ne]),Fn=(0,E.useMemo)(function(){return Br?[].concat((0,$i.Z)(ze),[or]):ze},[Br,ze]),Vn=(0,E.useMemo)(function(){var gr=st.right,Gn=st.left;return(0,Fe.Z)((0,Fe.Z)({},st),{},{left:ot==="rtl"?[].concat((0,$i.Z)(Gn.map(function(Yr){return Yr+Br})),[0]):Gn,right:ot==="rtl"?gr:[].concat((0,$i.Z)(gr.map(function(Yr){return Yr+Br})),[0]),isSticky:Bn})},[Br,st,Bn]),lr=Ua(Ze,We);return E.createElement("div",{style:(0,Fe.Z)({overflow:"hidden"},Bn?{top:pt,bottom:bt}:{}),ref:br,className:at()(xe,(0,Ie.Z)({},_t,!!_t))},E.createElement(In,{style:{tableLayout:"fixed",visibility:Me||lr?null:"hidden"}},(!Me||!Ht||Lr)&&E.createElement(ta,{colWidths:lr?[].concat((0,$i.Z)(lr),[Br]):[],columCount:We+1,columns:Fn}),Bt((0,Fe.Z)((0,Fe.Z)({},qt),{},{stickyOffsets:Vn,columns:Kn,flattenColumns:Fn}))))}),Oa=E.memo(Ks),Es=function(Ce){var xe=Ce.cells,Me=Ce.stickyOffsets,Ne=Ce.flattenColumns,ze=Ce.rowComponent,Ze=Ce.cellComponent,We=Ce.onHeaderRow,st=Ce.index,ot=ue(ge,["prefixCls","direction"]),Et=ot.prefixCls,pt=ot.direction,bt;We&&(bt=We(xe.map(function(Lt){return Lt.column}),st));var _t=fn(xe.map(function(Lt){return Lt.column}));return E.createElement(ze,bt,xe.map(function(Lt,Ht){var Bt=Lt.column,qt=fr(Lt.colStart,Lt.colEnd,Ne,Me,pt),Ut;return Bt&&Bt.onHeaderCell&&(Ut=Lt.column.onHeaderCell(Bt)),E.createElement(En,(0,le.Z)({},Lt,{scope:Bt.title?Lt.colSpan>1?"colgroup":"col":null,ellipsis:Bt.ellipsis,align:Bt.align,component:Ze,prefixCls:Et,key:_t[Ht]},qt,{additionalProps:Ut,rowType:"header"}))}))},_s=Es;function Os(ye){var Ce=[];function xe(Ze,We){var st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[st]=Ce[st]||[];var ot=We,Et=Ze.filter(Boolean).map(function(pt){var bt={key:pt.key,className:pt.className||"",children:pt.title,column:pt,colStart:ot},_t=1,Lt=pt.children;return Lt&&Lt.length>0&&(_t=xe(Lt,ot,st+1).reduce(function(Ht,Bt){return Ht+Bt},0),bt.hasSubColumns=!0),"colSpan"in pt&&(_t=pt.colSpan),"rowSpan"in pt&&(bt.rowSpan=pt.rowSpan),bt.colSpan=_t,bt.colEnd=bt.colStart+_t-1,Ce[st].push(bt),ot+=_t,_t});return Et}xe(ye,0);for(var Me=Ce.length,Ne=function(We){Ce[We].forEach(function(st){!("rowSpan"in st)&&!st.hasSubColumns&&(st.rowSpan=Me-We)})},ze=0;ze<Me;ze+=1)Ne(ze);return Ce}var Vs=function(Ce){var xe=Ce.stickyOffsets,Me=Ce.columns,Ne=Ce.flattenColumns,ze=Ce.onHeaderRow,Ze=ue(ge,["prefixCls","getComponent"]),We=Ze.prefixCls,st=Ze.getComponent,ot=E.useMemo(function(){return Os(Me)},[Me]),Et=st(["header","wrapper"],"thead"),pt=st(["header","row"],"tr"),bt=st(["header","cell"],"th");return E.createElement(Et,{className:"".concat(We,"-thead")},ot.map(function(_t,Lt){var Ht=E.createElement(_s,{key:Lt,flattenColumns:Ne,cells:_t,stickyOffsets:xe,rowComponent:pt,cellComponent:bt,onHeaderRow:ze,index:Lt});return Ht}))},Us=ee(Vs);function ws(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xe=[];return E.Children.forEach(ye,function(Me){Me==null&&!Ce.keepEmpty||(Array.isArray(Me)?xe=xe.concat(ws(Me)):en(Me)&&Me.props?xe=xe.concat(ws(Me.props.children,Ce)):xe.push(Me))}),xe}function Ds(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?ye*parseFloat(Ce)/100:null}function Gs(ye,Ce,xe){return E.useMemo(function(){if(Ce&&Ce>0){var Me=0,Ne=0;ye.forEach(function(bt){var _t=Ds(Ce,bt.width);_t?Me+=_t:Ne+=1});var ze=Math.max(Ce,xe),Ze=Math.max(ze-Me,Ne),We=Ne,st=Ze/Ne,ot=0,Et=ye.map(function(bt){var _t=(0,Fe.Z)({},bt),Lt=Ds(Ce,_t.width);if(Lt)_t.width=Lt;else{var Ht=Math.floor(st);_t.width=We===1?Ze:Ht,Ze-=Ht,We-=1}return ot+=_t.width,_t});if(ot<ze){var pt=ze/ot;Ze=ze,Et.forEach(function(bt,_t){var Lt=Math.floor(bt.width*pt);bt.width=_t===Et.length-1?Ze:Lt,Ze-=Lt})}return[Et,Math.max(ot,ze)]}return[ye,Ce]},[ye,Ce,xe])}var Ls=["children"],sr=["fixed"];function Qn(ye){return ws(ye).filter(function(Ce){return E.isValidElement(Ce)}).map(function(Ce){var xe=Ce.key,Me=Ce.props,Ne=Me.children,ze=(0,ho.Z)(Me,Ls),Ze=(0,Fe.Z)({key:xe},ze);return Ne&&(Ze.children=Qn(Ne)),Ze})}function ir(ye){return ye.filter(function(Ce){return Ce&&(0,Le.Z)(Ce)==="object"&&!Ce.hidden}).map(function(Ce){var xe=Ce.children;return xe&&xe.length>0?(0,Fe.Z)((0,Fe.Z)({},Ce),{},{children:ir(xe)}):Ce})}function hr(ye){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ye.filter(function(xe){return xe&&(0,Le.Z)(xe)==="object"}).reduce(function(xe,Me,Ne){var ze=Me.fixed,Ze=ze===!0?"left":ze,We="".concat(Ce,"-").concat(Ne),st=Me.children;return st&&st.length>0?[].concat((0,$i.Z)(xe),(0,$i.Z)(hr(st,We).map(function(ot){return(0,Fe.Z)({fixed:Ze},ot)}))):[].concat((0,$i.Z)(xe),[(0,Fe.Z)((0,Fe.Z)({key:We},Me),{},{fixed:Ze})])},[])}function No(ye){return ye.map(function(Ce){var xe=Ce.fixed,Me=(0,ho.Z)(Ce,sr),Ne=xe;return xe==="left"?Ne="right":xe==="right"&&(Ne="left"),(0,Fe.Z)({fixed:Ne},Me)})}function yi(ye,Ce){var xe=ye.prefixCls,Me=ye.columns,Ne=ye.children,ze=ye.expandable,Ze=ye.expandedKeys,We=ye.columnTitle,st=ye.getRowKey,ot=ye.onTriggerExpand,Et=ye.expandIcon,pt=ye.rowExpandable,bt=ye.expandIconColumnIndex,_t=ye.direction,Lt=ye.expandRowByClick,Ht=ye.columnWidth,Bt=ye.fixed,qt=ye.scrollWidth,Ut=ye.clientWidth,Wt=E.useMemo(function(){var ar=Me||Qn(Ne)||[];return ir(ar.slice())},[Me,Ne]),un=E.useMemo(function(){if(ze){var ar=Wt.slice();if(!ar.includes(_e)){var or=bt||0;or>=0&&(or||Bt==="left"||!Bt)&&ar.splice(or,0,_e),Bt==="right"&&ar.splice(Wt.length,0,_e)}var Kn=ar.indexOf(_e);ar=ar.filter(function(gr,Gn){return gr!==_e||Gn===Kn});var Fn=Wt[Kn],Vn;Bt?Vn=Bt:Vn=Fn?Fn.fixed:null;var lr=(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},ua,{className:"".concat(xe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",We),"fixed",Vn),"className","".concat(xe,"-row-expand-icon-cell")),"width",Ht),"render",function(Gn,Yr,ro){var Mi=st(Yr,ro),Mo=Ze.has(Mi),Xo=pt?pt(Yr):!0,Pi=Et({prefixCls:xe,expanded:Mo,expandable:Xo,record:Yr,onExpand:ot});return Lt?E.createElement("span",{onClick:function(xo){return xo.stopPropagation()}},Pi):Pi});return ar.map(function(gr){return gr===_e?lr:gr})}return Wt.filter(function(gr){return gr!==_e})},[ze,Wt,st,Ze,Et,_t]),Bn=E.useMemo(function(){var ar=un;return Ce&&(ar=Ce(ar)),ar.length||(ar=[{render:function(){return null}}]),ar},[Ce,un,_t]),er=E.useMemo(function(){return _t==="rtl"?No(hr(Bn)):hr(Bn)},[Bn,_t,qt]),In=E.useMemo(function(){for(var ar=-1,or=er.length-1;or>=0;or-=1){var Kn=er[or].fixed;if(Kn==="left"||Kn===!0){ar=or;break}}if(ar>=0)for(var Fn=0;Fn<=ar;Fn+=1){var Vn=er[Fn].fixed;if(Vn!=="left"&&Vn!==!0)return!0}var lr=er.findIndex(function(Yr){var ro=Yr.fixed;return ro==="right"});if(lr>=0)for(var gr=lr;gr<er.length;gr+=1){var Gn=er[gr].fixed;if(Gn!=="right")return!0}return!1},[er]),Br=Gs(er,qt,Ut),pr=(0,pe.Z)(Br,2),br=pr[0],Lr=pr[1];return[Bn,br,Lr,In]}var Ue=yi;function $e(ye,Ce,xe){var Me=bo(ye),Ne=Me.expandIcon,ze=Me.expandedRowKeys,Ze=Me.defaultExpandedRowKeys,We=Me.defaultExpandAllRows,st=Me.expandedRowRender,ot=Me.onExpand,Et=Me.onExpandedRowsChange,pt=Me.childrenColumnName,bt=Ne||Hi,_t=pt||"children",Lt=E.useMemo(function(){return st?"row":ye.expandable&&ye.internalHooks===Ee&&ye.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Bn){return Bn&&(0,Le.Z)(Bn)==="object"&&Bn[_t]})?"nest":!1},[!!st,Ce]),Ht=E.useState(function(){return Ze||(We?gs(Ce,xe,_t):[])}),Bt=(0,pe.Z)(Ht,2),qt=Bt[0],Ut=Bt[1],Wt=E.useMemo(function(){return new Set(ze||qt||[])},[ze,qt]),un=E.useCallback(function(Bn){var er=xe(Bn,Ce.indexOf(Bn)),In,Br=Wt.has(er);Br?(Wt.delete(er),In=(0,$i.Z)(Wt)):In=[].concat((0,$i.Z)(Wt),[er]),Ut(In),ot&&ot(!Br,Bn),Et&&Et(In)},[xe,Wt,Ce,ot,Et]);return[Me,Lt,Wt,bt,_t,un]}function dt(ye,Ce,xe){var Me=ye.map(function(Ne,ze){return fr(ze,ze,ye,Ce,xe)});return et(function(){return Me},[Me],function(Ne,ze){return!ht(Ne,ze)})}function Mt(ye){var Ce=(0,E.useRef)(ye),xe=(0,E.useState)({}),Me=(0,pe.Z)(xe,2),Ne=Me[1],ze=(0,E.useRef)(null),Ze=(0,E.useRef)([]);function We(st){Ze.current.push(st);var ot=Promise.resolve();ze.current=ot,ot.then(function(){if(ze.current===ot){var Et=Ze.current,pt=Ce.current;Ze.current=[],Et.forEach(function(bt){Ce.current=bt(Ce.current)}),ze.current=null,pt!==Ce.current&&Ne({})}})}return(0,E.useEffect)(function(){return function(){ze.current=null}},[]),[Ce.current,We]}function dn(ye){var Ce=(0,E.useRef)(ye||null),xe=(0,E.useRef)();function Me(){window.clearTimeout(xe.current)}function Ne(Ze){Ce.current=Ze,Me(),xe.current=window.setTimeout(function(){Ce.current=null,xe.current=void 0},100)}function ze(){return Ce.current}return(0,E.useEffect)(function(){return Me},[]),[Ne,ze]}function nr(){var ye=E.useState(-1),Ce=(0,pe.Z)(ye,2),xe=Ce[0],Me=Ce[1],Ne=E.useState(-1),ze=(0,pe.Z)(Ne,2),Ze=ze[0],We=ze[1],st=E.useCallback(function(ot,Et){Me(ot),We(Et)},[]);return[xe,Ze,st]}var Pr=rt()?window:null;function Qr(ye,Ce){var xe=(0,Le.Z)(ye)==="object"?ye:{},Me=xe.offsetHeader,Ne=Me===void 0?0:Me,ze=xe.offsetSummary,Ze=ze===void 0?0:ze,We=xe.offsetScroll,st=We===void 0?0:We,ot=xe.getContainer,Et=ot===void 0?function(){return Pr}:ot,pt=Et()||Pr,bt=!!ye;return E.useMemo(function(){return{isSticky:bt,stickyClassName:bt?"".concat(Ce,"-sticky-holder"):"",offsetHeader:Ne,offsetSummary:Ze,offsetScroll:st,container:pt}},[bt,st,Ne,Ze,Ce,pt])}function Xr(ye,Ce,xe){var Me=(0,E.useMemo)(function(){var Ne=Ce.length,ze=function(ot,Et,pt){for(var bt=[],_t=0,Lt=ot;Lt!==Et;Lt+=pt)bt.push(_t),Ce[Lt].fixed&&(_t+=ye[Lt]||0);return bt},Ze=ze(0,Ne,1),We=ze(Ne-1,-1,-1).reverse();return xe==="rtl"?{left:We,right:Ze}:{left:Ze,right:We}},[ye,Ce,xe]);return Me}var Vo=Xr;function Qo(ye){var Ce=ye.className,xe=ye.children;return E.createElement("div",{className:Ce},xe)}var Ei=Qo;function Po(ye,Ce,xe,Me){var Ne=de.unstable_batchedUpdates?function(Ze){de.unstable_batchedUpdates(xe,Ze)}:xe;return ye!=null&&ye.addEventListener&&ye.addEventListener(Ce,Ne,Me),{remove:function(){ye!=null&&ye.removeEventListener&&ye.removeEventListener(Ce,Ne,Me)}}}var Ur=function(Ce){return+setTimeout(Ce,16)},Jr=function(Ce){return clearTimeout(Ce)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ur=function(Ce){return window.requestAnimationFrame(Ce)},Jr=function(Ce){return window.cancelAnimationFrame(Ce)});var Jo=0,Bi=new Map;function Wi(ye){Bi.delete(ye)}var Eo=function(Ce){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Jo+=1;var Me=Jo;function Ne(ze){if(ze===0)Wi(Me),Ce();else{var Ze=Ur(function(){Ne(ze-1)});Bi.set(Me,Ze)}}return Ne(xe),Me};Eo.cancel=function(ye){var Ce=Bi.get(ye);return Wi(ye),Jr(Ce)};var Xi=Eo;function ci(ye){return ye instanceof HTMLElement||ye instanceof SVGElement}function ri(ye){return ye&&(0,Le.Z)(ye)==="object"&&ci(ye.nativeElement)?ye.nativeElement:ci(ye)?ye:null}function ui(ye){var Ce=ri(ye);if(Ce)return Ce;if(ye instanceof React.Component){var xe;return(xe=ReactDOM.findDOMNode)===null||xe===void 0?void 0:xe.call(ReactDOM,ye)}return null}function Qi(ye){var Ce=ri(ye),xe=Ce.getBoundingClientRect(),Me=document.documentElement;return{left:xe.left+(window.pageXOffset||Me.scrollLeft)-(Me.clientLeft||document.body.clientLeft||0),top:xe.top+(window.pageYOffset||Me.scrollTop)-(Me.clientTop||document.body.clientTop||0)}}var ns=function(Ce,xe){var Me,Ne,ze=Ce.scrollBodyRef,Ze=Ce.onScroll,We=Ce.offsetScroll,st=Ce.container,ot=Ce.direction,Et=ue(ge,"prefixCls"),pt=((Me=ze.current)===null||Me===void 0?void 0:Me.scrollWidth)||0,bt=((Ne=ze.current)===null||Ne===void 0?void 0:Ne.clientWidth)||0,_t=pt&&bt*(bt/pt),Lt=E.useRef(),Ht=Mt({scrollLeft:0,isHiddenScrollBar:!0}),Bt=(0,pe.Z)(Ht,2),qt=Bt[0],Ut=Bt[1],Wt=E.useRef({delta:0,x:0}),un=E.useState(!1),Bn=(0,pe.Z)(un,2),er=Bn[0],In=Bn[1],Br=E.useRef(null);E.useEffect(function(){return function(){Xi.cancel(Br.current)}},[]);var pr=function(){In(!1)},br=function(Fn){Fn.persist(),Wt.current.delta=Fn.pageX-qt.scrollLeft,Wt.current.x=0,In(!0),Fn.preventDefault()},Lr=function(Fn){var Vn,lr=Fn||((Vn=window)===null||Vn===void 0?void 0:Vn.event),gr=lr.buttons;if(!er||gr===0){er&&In(!1);return}var Gn=Wt.current.x+Fn.pageX-Wt.current.x-Wt.current.delta,Yr=ot==="rtl";Gn=Math.max(Yr?_t-bt:0,Math.min(Yr?0:bt-_t,Gn));var ro=!Yr||Math.abs(Gn)+Math.abs(_t)<bt;ro&&(Ze({scrollLeft:Gn/bt*(pt+2)}),Wt.current.x=Fn.pageX)},ar=function(){Xi.cancel(Br.current),Br.current=Xi(function(){if(ze.current){var Fn=Qi(ze.current).top,Vn=Fn+ze.current.offsetHeight,lr=st===window?document.documentElement.scrollTop+window.innerHeight:Qi(st).top+st.clientHeight;Vn-_o()<=lr||Fn>=lr-We?Ut(function(gr){return(0,Fe.Z)((0,Fe.Z)({},gr),{},{isHiddenScrollBar:!0})}):Ut(function(gr){return(0,Fe.Z)((0,Fe.Z)({},gr),{},{isHiddenScrollBar:!1})})}})},or=function(Fn){Ut(function(Vn){return(0,Fe.Z)((0,Fe.Z)({},Vn),{},{scrollLeft:Fn/pt*bt||0})})};return E.useImperativeHandle(xe,function(){return{setScrollLeft:or,checkScrollBarVisible:ar}}),E.useEffect(function(){var Kn=Po(document.body,"mouseup",pr,!1),Fn=Po(document.body,"mousemove",Lr,!1);return ar(),function(){Kn.remove(),Fn.remove()}},[_t,er]),E.useEffect(function(){if(ze.current){for(var Kn=[],Fn=ri(ze.current);Fn;)Kn.push(Fn),Fn=Fn.parentElement;return Kn.forEach(function(Vn){return Vn.addEventListener("scroll",ar,!1)}),window.addEventListener("resize",ar,!1),window.addEventListener("scroll",ar,!1),st.addEventListener("scroll",ar,!1),function(){Kn.forEach(function(Vn){return Vn.removeEventListener("scroll",ar)}),window.removeEventListener("resize",ar),window.removeEventListener("scroll",ar),st.removeEventListener("scroll",ar)}}},[st]),E.useEffect(function(){qt.isHiddenScrollBar||Ut(function(Kn){var Fn=ze.current;return Fn?(0,Fe.Z)((0,Fe.Z)({},Kn),{},{scrollLeft:Fn.scrollLeft/Fn.scrollWidth*Fn.clientWidth}):Kn})},[qt.isHiddenScrollBar]),pt<=bt||!_t||qt.isHiddenScrollBar?null:E.createElement("div",{style:{height:_o(),width:bt,bottom:We},className:"".concat(Et,"-sticky-scroll")},E.createElement("div",{onMouseDown:br,ref:Lt,className:at()("".concat(Et,"-sticky-scroll-bar"),(0,Ie.Z)({},"".concat(Et,"-sticky-scroll-bar-active"),er)),style:{width:"".concat(_t,"px"),transform:"translate3d(".concat(qt.scrollLeft,"px, 0, 0)")}}))},Va=E.forwardRef(ns);function ga(ye){return null}var La=ga;function na(ye){return null}var Ya=na,Qe="rc-table",je=[],mt={};function Tt(){return"No Data"}function kt(ye,Ce){var xe=(0,Fe.Z)({rowKey:"key",prefixCls:Qe,emptyText:Tt},ye),Me=xe.prefixCls,Ne=xe.className,ze=xe.rowClassName,Ze=xe.style,We=xe.data,st=xe.rowKey,ot=xe.scroll,Et=xe.tableLayout,pt=xe.direction,bt=xe.title,_t=xe.footer,Lt=xe.summary,Ht=xe.caption,Bt=xe.id,qt=xe.showHeader,Ut=xe.components,Wt=xe.emptyText,un=xe.onRow,Bn=xe.onHeaderRow,er=xe.onScroll,In=xe.internalHooks,Br=xe.transformColumns,pr=xe.internalRefs,br=xe.tailor,Lr=xe.getContainerWidth,ar=xe.sticky,or=xe.rowHoverable,Kn=or===void 0?!0:or,Fn=We||je,Vn=!!Fn.length,lr=In===Ee,gr=E.useCallback(function(ei,ii){return Qt(Ut,ei)||ii},[Ut]),Gn=E.useMemo(function(){return typeof st=="function"?st:function(ei){var ii=ei&&ei[st];return ii}},[st]),Yr=gr(["body"]),ro=nr(),Mi=(0,pe.Z)(ro,3),Mo=Mi[0],Xo=Mi[1],Pi=Mi[2],pa=$e(xe,Fn,Gn),xo=(0,pe.Z)(pa,6),So=xo[0],Uo=xo[1],Di=xo[2],cr=xo[3],xr=xo[4],rr=xo[5],Er=ot==null?void 0:ot.x,ko=E.useState(0),jo=(0,pe.Z)(ko,2),Ti=jo[0],pi=jo[1],ba=Ue((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},xe),So),{},{expandable:!!So.expandedRowRender,columnTitle:So.columnTitle,expandedKeys:Di,getRowKey:Gn,onTriggerExpand:rr,expandIcon:cr,expandIconColumnIndex:So.expandIconColumnIndex,direction:pt,scrollWidth:lr&&br&&typeof Er=="number"?Er:null,clientWidth:Ti}),lr?Br:null),va=(0,pe.Z)(ba,4),Mr=va[0],Or=va[1],Go=va[2],Ai=va[3],ti=Go!=null?Go:Er,Aa=E.useMemo(function(){return{columns:Mr,flattenColumns:Or}},[Mr,Or]),Ii=E.useRef(),vs=E.useRef(),gi=E.useRef(),Ko=E.useRef();E.useImperativeHandle(Ce,function(){return{nativeElement:Ii.current,scrollTo:function(ii){var us;if(gi.current instanceof HTMLElement){var Hs=ii.index,ds=ii.top,Ol=ii.key;if(mn(ds)){var yl;(yl=gi.current)===null||yl===void 0||yl.scrollTo({top:ds})}else{var _l,jl=Ol!=null?Ol:Gn(Fn[Hs]);(_l=gi.current.querySelector('[data-row-key="'.concat(jl,'"]')))===null||_l===void 0||_l.scrollIntoView()}}else(us=gi.current)!==null&&us!==void 0&&us.scrollTo&&gi.current.scrollTo(ii)}}});var fi=E.useRef(),Ni=E.useState(!1),wa=(0,pe.Z)(Ni,2),Sa=wa[0],Ro=wa[1],aa=E.useState(!1),Ci=(0,pe.Z)(aa,2),ka=Ci[0],sa=Ci[1],as=Mt(new Map),Ys=(0,pe.Z)(as,2),ol=Ys[0],ji=Ys[1],pl=fn(Or),ja=pl.map(function(ei){return ol.get(ei)}),ss=E.useMemo(function(){return ja},[ja.join("_")]),Ss=Vo(ss,Or,pt),qa=ot&&hn(ot.y),ls=ot&&hn(ti)||!!So.fixed,ys=ls&&Or.some(function(ei){var ii=ei.fixed;return ii}),zs=E.useRef(),Ps=Qr(ar,Me),As=Ps.isSticky,Fl=Ps.offsetHeader,vl=Ps.offsetSummary,kl=Ps.offsetScroll,xl=Ps.stickyClassName,Ml=Ps.container,ao=E.useMemo(function(){return Lt==null?void 0:Lt(Fn)},[Lt,Fn]),oi=(qa||As)&&E.isValidElement(ao)&&ao.type===oe&&ao.props.fixed,la,Pa,cs;qa&&(Pa={overflowY:Vn?"scroll":"auto",maxHeight:ot.y}),ls&&(la={overflowX:"auto"},qa||(Pa={overflowY:"hidden"}),cs={width:ti===!0?"auto":ti,minWidth:"100%"});var Cs=E.useCallback(function(ei,ii){nt(Ii.current)&&ji(function(us){if(us.get(ei)!==ii){var Hs=new Map(us);return Hs.set(ei,ii),Hs}return us})},[]),Rs=dn(null),Ca=(0,pe.Z)(Rs,2),Kl=Ca[0],so=Ca[1];function $r(ei,ii){ii&&(typeof ii=="function"?ii(ei):ii.scrollLeft!==ei&&(ii.scrollLeft=ei,ii.scrollLeft!==ei&&setTimeout(function(){ii.scrollLeft=ei},0)))}var Io=Be(function(ei){var ii=ei.currentTarget,us=ei.scrollLeft,Hs=pt==="rtl",ds=typeof us=="number"?us:ii.scrollLeft,Ol=ii||mt;if(!so()||so()===Ol){var yl;Kl(Ol),$r(ds,vs.current),$r(ds,gi.current),$r(ds,fi.current),$r(ds,(yl=zs.current)===null||yl===void 0?void 0:yl.setScrollLeft)}var _l=ii||vs.current;if(_l){var jl=lr&&br&&typeof ti=="number"?ti:_l.scrollWidth,_c=_l.clientWidth;if(jl===_c){Ro(!1),sa(!1);return}Hs?(Ro(-ds<jl-_c),sa(-ds>0)):(Ro(ds>0),sa(ds<jl-_c))}}),ca=Be(function(ei){Io(ei),er==null||er(ei)}),za=function(){if(ls&&gi.current){var ii;Io({currentTarget:ri(gi.current),scrollLeft:(ii=gi.current)===null||ii===void 0?void 0:ii.scrollLeft})}else Ro(!1),sa(!1)},Al=function(ii){var us,Hs=ii.width;(us=zs.current)===null||us===void 0||us.checkScrollBarVisible();var ds=Ii.current?Ii.current.offsetWidth:Hs;lr&&Lr&&Ii.current&&(ds=Lr(Ii.current,ds)||ds),ds!==Ti&&(za(),pi(ds))},Xs=E.useRef(!1);E.useEffect(function(){Xs.current&&za()},[ls,We,Mr.length]),E.useEffect(function(){Xs.current=!0},[]);var mc=E.useState(0),Vl=(0,pe.Z)(mc,2),Sl=Vl[0],Rl=Vl[1],$u=E.useState(!0),jc=(0,pe.Z)($u,2),zc=jc[0],Wu=jc[1];E.useEffect(function(){(!br||!lr)&&(gi.current instanceof Element?Rl(zt(gi.current).width):Rl(zt(Ko.current).width)),Wu(It("position","sticky"))},[]),E.useEffect(function(){lr&&pr&&(pr.body.current=gi.current)});var Ku=E.useCallback(function(ei){return E.createElement(E.Fragment,null,E.createElement(Us,ei),oi==="top"&&E.createElement(be,ei,ao))},[oi,ao]),Vu=E.useCallback(function(ei){return E.createElement(be,ei,ao)},[ao]),Hc=gr(["table"],"table"),Yl=E.useMemo(function(){return Et||(ys?ti==="max-content"?"auto":"fixed":qa||As||Or.some(function(ei){var ii=ei.ellipsis;return ii})?"fixed":"auto")},[qa,ys,Or,Et,As]),pc,vc={colWidths:ss,columCount:Or.length,stickyOffsets:Ss,onHeaderRow:Bn,fixHeader:qa,scroll:ot},Uc=E.useMemo(function(){return Vn?null:typeof Wt=="function"?Wt():Wt},[Vn,Wt]),Gc=E.createElement(Ka,{data:Fn,measureColumnWidth:qa||ls||As}),Zc=E.createElement(ta,{colWidths:Or.map(function(ei){var ii=ei.width;return ii}),columns:Or}),$c=Ht!=null?E.createElement("caption",{className:"".concat(Me,"-caption")},Ht):void 0,Yu=Sr(xe,{data:!0}),Wc=Sr(xe,{aria:!0});if(qa||As){var Sc;typeof Yr=="function"?(Sc=Yr(Fn,{scrollbarSize:Sl,ref:gi,onScroll:Io}),vc.colWidths=Or.map(function(ei,ii){var us=ei.width,Hs=ii===Or.length-1?us-Sl:us;return typeof Hs=="number"&&!Number.isNaN(Hs)?Hs:0})):Sc=E.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},la),Pa),onScroll:ca,ref:gi,className:at()("".concat(Me,"-body"))},E.createElement(Hc,(0,le.Z)({style:(0,Fe.Z)((0,Fe.Z)({},cs),{},{tableLayout:Yl})},Wc),$c,Zc,Gc,!oi&&ao&&E.createElement(be,{stickyOffsets:Ss,flattenColumns:Or},ao)));var Kc=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({noData:!Fn.length,maxContentScroll:ls&&ti==="max-content"},vc),Aa),{},{direction:pt,stickyClassName:xl,onScroll:Io});pc=E.createElement(E.Fragment,null,qt!==!1&&E.createElement(Oa,(0,le.Z)({},Kc,{stickyTopOffset:Fl,className:"".concat(Me,"-header"),ref:vs}),Ku),Sc,oi&&oi!=="top"&&E.createElement(Oa,(0,le.Z)({},Kc,{stickyBottomOffset:vl,className:"".concat(Me,"-summary"),ref:fi}),Vu),As&&gi.current&&gi.current instanceof Element&&E.createElement(Va,{ref:zs,offsetScroll:kl,scrollBodyRef:gi,onScroll:Io,container:Ml,direction:pt}))}else pc=E.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},la),Pa),className:at()("".concat(Me,"-content")),onScroll:Io,ref:gi},E.createElement(Hc,(0,le.Z)({style:(0,Fe.Z)((0,Fe.Z)({},cs),{},{tableLayout:Yl})},Wc),$c,Zc,qt!==!1&&E.createElement(Us,(0,le.Z)({},vc,Aa)),Gc,ao&&E.createElement(be,{stickyOffsets:Ss,flattenColumns:Or},ao)));var yc=E.createElement("div",(0,le.Z)({className:at()(Me,Ne,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Me,"-rtl"),pt==="rtl"),"".concat(Me,"-ping-left"),Sa),"".concat(Me,"-ping-right"),ka),"".concat(Me,"-layout-fixed"),Et==="fixed"),"".concat(Me,"-fixed-header"),qa),"".concat(Me,"-fixed-column"),ys),"".concat(Me,"-fixed-column-gapped"),ys&&Ai),"".concat(Me,"-scroll-horizontal"),ls),"".concat(Me,"-has-fix-left"),Or[0]&&Or[0].fixed),"".concat(Me,"-has-fix-right"),Or[Or.length-1]&&Or[Or.length-1].fixed==="right")),style:Ze,id:Bt,ref:Ii},Yu),bt&&E.createElement(Ei,{className:"".concat(Me,"-title")},bt(Fn)),E.createElement("div",{ref:Ko,className:"".concat(Me,"-container")},pc),_t&&E.createElement(Ei,{className:"".concat(Me,"-footer")},_t(Fn)));ls&&(yc=E.createElement(Ae.Z,{onResize:Al},yc));var Vc=dt(Or,Ss,pt),Xu=E.useMemo(function(){return{scrollX:ti,prefixCls:Me,getComponent:gr,scrollbarSize:Sl,direction:pt,fixedInfoList:Vc,isSticky:As,supportSticky:zc,componentWidth:Ti,fixHeader:qa,fixColumn:ys,horizonScroll:ls,tableLayout:Yl,rowClassName:ze,expandedRowClassName:So.expandedRowClassName,expandIcon:cr,expandableType:Uo,expandRowByClick:So.expandRowByClick,expandedRowRender:So.expandedRowRender,onTriggerExpand:rr,expandIconColumnIndex:So.expandIconColumnIndex,indentSize:So.indentSize,allColumnsFixedLeft:Or.every(function(ei){return ei.fixed==="left"}),emptyNode:Uc,columns:Mr,flattenColumns:Or,onColumnResize:Cs,hoverStartRow:Mo,hoverEndRow:Xo,onHover:Pi,rowExpandable:So.rowExpandable,onRow:un,getRowKey:Gn,expandedKeys:Di,childrenColumnName:xr,rowHoverable:Kn}},[ti,Me,gr,Sl,pt,Vc,As,zc,Ti,qa,ys,ls,Yl,ze,So.expandedRowClassName,cr,Uo,So.expandRowByClick,So.expandedRowRender,rr,So.expandIconColumnIndex,So.indentSize,Uc,Mr,Or,Cs,Mo,Xo,Pi,So.rowExpandable,un,Gn,Di,xr,Kn]);return E.createElement(ge.Provider,{value:Xu},yc)}var Jt=E.forwardRef(kt);function Cn(ye){return z(Jt,ye)}var pn=Cn();pn.EXPAND_COLUMN=_e,pn.INTERNAL_HOOKS=Ee,pn.Column=La,pn.ColumnGroup=Ya,pn.Summary=we;var Yt=pn;function yn(ye){var Ce=E.useRef();Ce.current=ye;var xe=E.useCallback(function(){for(var Me,Ne=arguments.length,ze=new Array(Ne),Ze=0;Ze<Ne;Ze++)ze[Ze]=arguments[Ze];return(Me=Ce.current)===null||Me===void 0?void 0:Me.call.apply(Me,[Ce].concat(ze))},[]);return xe}function Zn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var kn=Zn()?E.useLayoutEffect:E.useEffect,Ar=function(Ce,xe){var Me=E.useRef(!0);kn(function(){return Ce(Me.current)},xe),kn(function(){return Me.current=!1,function(){Me.current=!0}},[])},zr=function(Ce,xe){Ar(function(Me){if(!Me)return Ce()},xe)},kr=Ar;function oo(ye){var Ce=React.useRef(!1),xe=React.useState(ye),Me=_slicedToArray(xe,2),Ne=Me[0],ze=Me[1];React.useEffect(function(){return Ce.current=!1,function(){Ce.current=!0}},[]);function Ze(We,st){st&&Ce.current||ze(We)}return[Ne,Ze]}function qr(ye){return ye!==void 0}function yr(ye,Ce){var xe=Ce||{},Me=xe.defaultValue,Ne=xe.value,ze=xe.onChange,Ze=xe.postState,We=useState(function(){return qr(Ne)?Ne:qr(Me)?typeof Me=="function"?Me():Me:typeof ye=="function"?ye():ye}),st=_slicedToArray(We,2),ot=st[0],Et=st[1],pt=Ne!==void 0?Ne:ot,bt=Ze?Ze(pt):pt,_t=useEvent(ze),Lt=useState([pt]),Ht=_slicedToArray(Lt,2),Bt=Ht[0],qt=Ht[1];useLayoutUpdateEffect(function(){var Wt=Bt[0];ot!==Wt&&_t(ot,Wt)},[Bt]),useLayoutUpdateEffect(function(){qr(Ne)||Et(Ne)},[Ne]);var Ut=useEvent(function(Wt,un){Et(Wt,un),qt([pt],un)});return[bt,Ut]}function Bo(ye,Ce,xe){var Me=React.useRef({});return(!("value"in Me.current)||xe(Me.current.condition,Ce))&&(Me.current.value=ye(),Me.current.condition=Ce),Me.current.value}function co(ye,Ce){typeof ye=="function"?ye(Ce):_typeof(ye)==="object"&&ye&&"current"in ye&&(ye.current=Ce)}function uo(){for(var ye=arguments.length,Ce=new Array(ye),xe=0;xe<ye;xe++)Ce[xe]=arguments[xe];var Me=Ce.filter(function(Ne){return Ne});return Me.length<=1?Me[0]:function(Ne){Ce.forEach(function(ze){co(ze,Ne)})}}function Dr(){for(var ye=arguments.length,Ce=new Array(ye),xe=0;xe<ye;xe++)Ce[xe]=arguments[xe];return useMemo(function(){return uo.apply(void 0,Ce)},Ce,function(Me,Ne){return Me.length!==Ne.length||Me.every(function(ze,Ze){return ze!==Ne[Ze]})})}function io(ye){var Ce,xe,Me=isMemo(ye)?ye.type.type:ye.type;return!(typeof Me=="function"&&!((Ce=Me.prototype)!==null&&Ce!==void 0&&Ce.render)||typeof ye=="function"&&!((xe=ye.prototype)!==null&&xe!==void 0&&xe.render))}function Tr(ye){return!isValidElement(ye)||isFragment(ye)?!1:io(ye)}function Gr(ye,Ce,xe,Me){if(!Ce.length)return xe;var Ne=_toArray(Ce),ze=Ne[0],Ze=Ne.slice(1),We;return!ye&&typeof ze=="number"?We=[]:Array.isArray(ye)?We=_toConsumableArray(ye):We=_objectSpread({},ye),Me&&xe===void 0&&Ze.length===1?delete We[ze][Ze[0]]:We[ze]=Gr(We[ze],Ze,xe,Me),We}function Fo(ye,Ce,xe){var Me=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ce.length&&Me&&xe===void 0&&!get(ye,Ce.slice(0,-1))?ye:Gr(ye,Ce,xe,Me)}function $o(ye){return _typeof(ye)==="object"&&ye!==null&&Object.getPrototypeOf(ye)===Object.prototype}function wr(ye){return Array.isArray(ye)?[]:{}}var wo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function hi(){for(var ye=arguments.length,Ce=new Array(ye),xe=0;xe<ye;xe++)Ce[xe]=arguments[xe];var Me=wr(Ce[0]);return Ce.forEach(function(Ne){function ze(Ze,We){var st=new Set(We),ot=get(Ne,Ze),Et=Array.isArray(ot);if(Et||$o(ot)){if(!st.has(ot)){st.add(ot);var pt=get(Me,Ze);Et?Me=Fo(Me,Ze,[]):(!pt||_typeof(pt)!=="object")&&(Me=Fo(Me,Ze,wr(ot))),wo(ot).forEach(function(bt){ze([].concat(_toConsumableArray(Ze),[bt]),st)})}}else Me=Fo(Me,Ze,ot)}ze([])}),Me}var zo={},si=[],Fi=function(Ce){si.push(Ce)};function fa(ye,Ce){if(0)var xe}function ra(ye,Ce){if(0)var xe}function Ga(){zo={}}function oa(ye,Ce,xe){!Ce&&!zo[xe]&&(ye(!1,xe),zo[xe]=!0)}function ia(ye,Ce){oa(fa,ye,Ce)}function Ki(ye,Ce){oa(ra,ye,Ce)}ia.preMessage=Fi,ia.resetWarned=Ga,ia.noteOnce=Ki;var Da=null,Ta=E.forwardRef(function(ye,Ce){var xe=ye.height,Me=ye.offsetY,Ne=ye.offsetX,ze=ye.children,Ze=ye.prefixCls,We=ye.onInnerResize,st=ye.innerProps,ot=ye.rtl,Et=ye.extra,pt={},bt={display:"flex",flexDirection:"column"};return Me!==void 0&&(pt={height:xe,position:"relative",overflow:"hidden"},bt=(0,Fe.Z)((0,Fe.Z)({},bt),{},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({transform:"translateY(".concat(Me,"px)")},ot?"marginRight":"marginLeft",-Ne),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:pt},E.createElement(Ae.Z,{onResize:function(Lt){var Ht=Lt.offsetHeight;Ht&&We&&We()}},E.createElement("div",(0,le.Z)({style:bt,className:at()((0,Ie.Z)({},"".concat(Ze,"-holder-inner"),Ze)),ref:Ce},st),ze,Et)))});Ta.displayName="Filler";var Za=Ta;function ha(ye){var Ce=ye.children,xe=ye.setRef,Me=E.useCallback(function(Ne){xe(Ne)},[]);return E.cloneElement(Ce,{ref:Me})}function rs(ye,Ce,xe,Me,Ne,ze,Ze,We){var st=We.getKey;return ye.slice(Ce,xe+1).map(function(ot,Et){var pt=Ce+Et,bt=Ze(ot,pt,{style:{width:Me},offsetX:Ne}),_t=st(ot);return E.createElement(ha,{key:_t,setRef:function(Ht){return ze(ot,Ht)}},bt)})}function Ia(ye,Ce,xe,Me){var Ne=xe-ye,ze=Ce-xe,Ze=Math.min(Ne,ze)*2;if(Me<=Ze){var We=Math.floor(Me/2);return Me%2?xe+We+1:xe-We}return Ne>ze?xe-(Me-ze):xe+(Me-Ne)}function xa(ye,Ce,xe){var Me=ye.length,Ne=Ce.length,ze,Ze;if(Me===0&&Ne===0)return null;Me<Ne?(ze=ye,Ze=Ce):(ze=Ce,Ze=ye);var We={__EMPTY_ITEM__:!0};function st(Lt){return Lt!==void 0?xe(Lt):We}for(var ot=null,Et=Math.abs(Me-Ne)!==1,pt=0;pt<Ze.length;pt+=1){var bt=st(ze[pt]),_t=st(Ze[pt]);if(bt!==_t){ot=pt,Et=Et||bt!==st(Ze[pt+1]);break}}return ot===null?null:{index:ot,multiple:Et}}function Ji(ye,Ce,xe){var Me=E.useState(ye),Ne=(0,pe.Z)(Me,2),ze=Ne[0],Ze=Ne[1],We=E.useState(null),st=(0,pe.Z)(We,2),ot=st[0],Et=st[1];return E.useEffect(function(){var pt=xa(ze||[],ye||[],Ce);(pt==null?void 0:pt.index)!==void 0&&(xe==null||xe(pt.index),Et(ye[pt.index])),Ze(ye)},[ye]),[ot]}var Xa=function(Ce){return+setTimeout(Ce,16)},ma=function(Ce){return clearTimeout(Ce)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Xa=function(Ce){return window.requestAnimationFrame(Ce)},ma=function(Ce){return window.cancelAnimationFrame(Ce)});var Na=0,Ba=new Map;function wi(ye){Ba.delete(ye)}var Gi=function(Ce){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Na+=1;var Me=Na;function Ne(ze){if(ze===0)wi(Me),Ce();else{var Ze=Xa(function(){Ne(ze-1)});Ba.set(Me,Ze)}}return Ne(xe),Me};Gi.cancel=function(ye){var Ce=Ba.get(ye);return wi(Ce),ma(Ce)};var _i=Gi,mi=(typeof navigator=="undefined"?"undefined":(0,Le.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Fa=mi,Vi=function(ye,Ce,xe,Me){var Ne=(0,E.useRef)(!1),ze=(0,E.useRef)(null);function Ze(){clearTimeout(ze.current),Ne.current=!0,ze.current=setTimeout(function(){Ne.current=!1},50)}var We=(0,E.useRef)({top:ye,bottom:Ce,left:xe,right:Me});return We.current.top=ye,We.current.bottom=Ce,We.current.left=xe,We.current.right=Me,function(st,ot){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,pt=st?ot<0&&We.current.left||ot>0&&We.current.right:ot<0&&We.current.top||ot>0&&We.current.bottom;return Et&&pt?(clearTimeout(ze.current),Ne.current=!1):(!pt||Ne.current)&&Ze(),!Ne.current&&pt}};function Zs(ye,Ce,xe,Me,Ne,ze,Ze){var We=(0,E.useRef)(0),st=(0,E.useRef)(null),ot=(0,E.useRef)(null),Et=(0,E.useRef)(!1),pt=Vi(Ce,xe,Me,Ne);function bt(Ut,Wt){if(_i.cancel(st.current),!pt(!1,Wt)){var un=Ut;if(!un._virtualHandled)un._virtualHandled=!0;else return;We.current+=Wt,ot.current=Wt,Fa||un.preventDefault(),st.current=_i(function(){var Bn=Et.current?10:1;Ze(We.current*Bn,!1),We.current=0})}}function _t(Ut,Wt){Ze(Wt,!0),Fa||Ut.preventDefault()}var Lt=(0,E.useRef)(null),Ht=(0,E.useRef)(null);function Bt(Ut){if(ye){_i.cancel(Ht.current),Ht.current=_i(function(){Lt.current=null},2);var Wt=Ut.deltaX,un=Ut.deltaY,Bn=Ut.shiftKey,er=Wt,In=un;(Lt.current==="sx"||!Lt.current&&Bn&&un&&!Wt)&&(er=un,In=0,Lt.current="sx");var Br=Math.abs(er),pr=Math.abs(In);Lt.current===null&&(Lt.current=ze&&Br>pr?"x":"y"),Lt.current==="y"?bt(Ut,In):_t(Ut,er)}}function qt(Ut){ye&&(Et.current=Ut.detail===ot.current)}return[Bt,qt]}function $s(ye,Ce,xe,Me){var Ne=E.useMemo(function(){return[new Map,[]]},[ye,xe.id,Me]),ze=(0,pe.Z)(Ne,2),Ze=ze[0],We=ze[1],st=function(Et){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Et,bt=Ze.get(Et),_t=Ze.get(pt);if(bt===void 0||_t===void 0)for(var Lt=ye.length,Ht=We.length;Ht<Lt;Ht+=1){var Bt,qt=ye[Ht],Ut=Ce(qt);Ze.set(Ut,Ht);var Wt=(Bt=xe.get(Ut))!==null&&Bt!==void 0?Bt:Me;if(We[Ht]=(We[Ht-1]||0)+Wt,Ut===Et&&(bt=Ht),Ut===pt&&(_t=Ht),bt!==void 0&&_t!==void 0)break}return{top:We[bt-1]||0,bottom:We[_t]}};return st}var Qa=te(15671),xs=te(43144),ul=function(){function ye(){(0,Qa.Z)(this,ye),(0,Ie.Z)(this,"maps",void 0),(0,Ie.Z)(this,"id",0),(0,Ie.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,xs.Z)(ye,[{key:"set",value:function(xe,Me){this.maps[xe]=Me,this.id+=1,this.diffKeys.add(xe)}},{key:"get",value:function(xe){return this.maps[xe]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),ye}(),dl=ul;function Qs(ye){var Ce=parseFloat(ye);return isNaN(Ce)?0:Ce}function Ts(ye,Ce,xe){var Me=E.useState(0),Ne=(0,pe.Z)(Me,2),ze=Ne[0],Ze=Ne[1],We=(0,E.useRef)(new Map),st=(0,E.useRef)(new dl),ot=(0,E.useRef)(0);function Et(){ot.current+=1}function pt(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Et();var Lt=function(){var qt=!1;We.current.forEach(function(Ut,Wt){if(Ut&&Ut.offsetParent){var un=Ut.offsetHeight,Bn=getComputedStyle(Ut),er=Bn.marginTop,In=Bn.marginBottom,Br=Qs(er),pr=Qs(In),br=un+Br+pr;st.current.get(Wt)!==br&&(st.current.set(Wt,br),qt=!0)}}),qt&&Ze(function(Ut){return Ut+1})};if(_t)Lt();else{ot.current+=1;var Ht=ot.current;Promise.resolve().then(function(){Ht===ot.current&&Lt()})}}function bt(_t,Lt){var Ht=ye(_t),Bt=We.current.get(Ht);Lt?(We.current.set(Ht,Lt),pt()):We.current.delete(Ht),!Bt!=!Lt&&(Lt?Ce==null||Ce(_t):xe==null||xe(_t))}return(0,E.useEffect)(function(){return Et},[]),[bt,pt,st.current,ze]}var Ms=14/15;function Js(ye,Ce,xe){var Me=(0,E.useRef)(!1),Ne=(0,E.useRef)(0),ze=(0,E.useRef)(0),Ze=(0,E.useRef)(null),We=(0,E.useRef)(null),st,ot=function(_t){if(Me.current){var Lt=Math.ceil(_t.touches[0].pageX),Ht=Math.ceil(_t.touches[0].pageY),Bt=Ne.current-Lt,qt=ze.current-Ht,Ut=Math.abs(Bt)>Math.abs(qt);Ut?Ne.current=Lt:ze.current=Ht;var Wt=xe(Ut,Ut?Bt:qt,!1,_t);Wt&&_t.preventDefault(),clearInterval(We.current),Wt&&(We.current=setInterval(function(){Ut?Bt*=Ms:qt*=Ms;var un=Math.floor(Ut?Bt:qt);(!xe(Ut,un,!0)||Math.abs(un)<=.1)&&clearInterval(We.current)},16))}},Et=function(){Me.current=!1,st()},pt=function(_t){st(),_t.touches.length===1&&!Me.current&&(Me.current=!0,Ne.current=Math.ceil(_t.touches[0].pageX),ze.current=Math.ceil(_t.touches[0].pageY),Ze.current=_t.target,Ze.current.addEventListener("touchmove",ot,{passive:!1}),Ze.current.addEventListener("touchend",Et,{passive:!0}))};st=function(){Ze.current&&(Ze.current.removeEventListener("touchmove",ot),Ze.current.removeEventListener("touchend",Et))},kr(function(){return ye&&Ce.current.addEventListener("touchstart",pt,{passive:!0}),function(){var bt;(bt=Ce.current)===null||bt===void 0||bt.removeEventListener("touchstart",pt),st(),clearInterval(We.current)}},[ye])}function hs(ye){return Math.floor(Math.pow(ye,.5))}function Is(ye,Ce){var xe="touches"in ye?ye.touches[0]:ye;return xe[Ce?"pageX":"pageY"]-window[Ce?"scrollX":"scrollY"]}function qs(ye,Ce,xe){E.useEffect(function(){var Me=Ce.current;if(ye&&Me){var Ne=!1,ze,Ze,We=function(){_i.cancel(ze)},st=function bt(){We(),ze=_i(function(){xe(Ze),bt()})},ot=function(_t){if(!(_t.target.draggable||_t.button!==0)){var Lt=_t;Lt._virtualHandled||(Lt._virtualHandled=!0,Ne=!0)}},Et=function(){Ne=!1,We()},pt=function(_t){if(Ne){var Lt=Is(_t,!1),Ht=Me.getBoundingClientRect(),Bt=Ht.top,qt=Ht.bottom;if(Lt<=Bt){var Ut=Bt-Lt;Ze=-hs(Ut),st()}else if(Lt>=qt){var Wt=Lt-qt;Ze=hs(Wt),st()}else We()}};return Me.addEventListener("mousedown",ot),Me.ownerDocument.addEventListener("mouseup",Et),Me.ownerDocument.addEventListener("mousemove",pt),function(){Me.removeEventListener("mousedown",ot),Me.ownerDocument.removeEventListener("mouseup",Et),Me.ownerDocument.removeEventListener("mousemove",pt),We()}}},[ye])}var bl=10;function Dl(ye,Ce,xe,Me,Ne,ze,Ze,We){var st=E.useRef(),ot=E.useState(null),Et=(0,pe.Z)(ot,2),pt=Et[0],bt=Et[1];return kr(function(){if(pt&&pt.times<bl){if(!ye.current){bt(function(Gn){return(0,Fe.Z)({},Gn)});return}ze();var _t=pt.targetAlign,Lt=pt.originAlign,Ht=pt.index,Bt=pt.offset,qt=ye.current.clientHeight,Ut=!1,Wt=_t,un=null;if(qt){for(var Bn=_t||Lt,er=0,In=0,Br=0,pr=Math.min(Ce.length-1,Ht),br=0;br<=pr;br+=1){var Lr=Ne(Ce[br]);In=er;var ar=xe.get(Lr);Br=In+(ar===void 0?Me:ar),er=Br}for(var or=Bn==="top"?Bt:qt-Bt,Kn=pr;Kn>=0;Kn-=1){var Fn=Ne(Ce[Kn]),Vn=xe.get(Fn);if(Vn===void 0){Ut=!0;break}if(or-=Vn,or<=0)break}switch(Bn){case"top":un=In-Bt;break;case"bottom":un=Br-qt+Bt;break;default:{var lr=ye.current.scrollTop,gr=lr+qt;In<lr?Wt="top":Br>gr&&(Wt="bottom")}}un!==null&&Ze(un),un!==pt.lastTop&&(Ut=!0)}Ut&&bt((0,Fe.Z)((0,Fe.Z)({},pt),{},{times:pt.times+1,targetAlign:Wt,lastTop:un}))}},[pt,ye.current]),function(_t){if(_t==null){We();return}if(_i.cancel(st.current),typeof _t=="number")Ze(_t);else if(_t&&(0,Le.Z)(_t)==="object"){var Lt,Ht=_t.align;"index"in _t?Lt=_t.index:Lt=Ce.findIndex(function(Ut){return Ne(Ut)===_t.key});var Bt=_t.offset,qt=Bt===void 0?0:Bt;bt({times:0,index:Lt,offset:qt,originAlign:Ht})}}}var Tl=E.forwardRef(function(ye,Ce){var xe=ye.prefixCls,Me=ye.rtl,Ne=ye.scrollOffset,ze=ye.scrollRange,Ze=ye.onStartMove,We=ye.onStopMove,st=ye.onScroll,ot=ye.horizontal,Et=ye.spinSize,pt=ye.containerSize,bt=ye.style,_t=ye.thumbStyle,Lt=ye.showScrollBar,Ht=E.useState(!1),Bt=(0,pe.Z)(Ht,2),qt=Bt[0],Ut=Bt[1],Wt=E.useState(null),un=(0,pe.Z)(Wt,2),Bn=un[0],er=un[1],In=E.useState(null),Br=(0,pe.Z)(In,2),pr=Br[0],br=Br[1],Lr=!Me,ar=E.useRef(),or=E.useRef(),Kn=E.useState(Lt),Fn=(0,pe.Z)(Kn,2),Vn=Fn[0],lr=Fn[1],gr=E.useRef(),Gn=function(){Lt===!0||Lt===!1||(clearTimeout(gr.current),lr(!0),gr.current=setTimeout(function(){lr(!1)},3e3))},Yr=ze-pt||0,ro=pt-Et||0,Mi=E.useMemo(function(){if(Ne===0||Yr===0)return 0;var cr=Ne/Yr;return cr*ro},[Ne,Yr,ro]),Mo=function(xr){xr.stopPropagation(),xr.preventDefault()},Xo=E.useRef({top:Mi,dragging:qt,pageY:Bn,startTop:pr});Xo.current={top:Mi,dragging:qt,pageY:Bn,startTop:pr};var Pi=function(xr){Ut(!0),er(Is(xr,ot)),br(Xo.current.top),Ze(),xr.stopPropagation(),xr.preventDefault()};E.useEffect(function(){var cr=function(ko){ko.preventDefault()},xr=ar.current,rr=or.current;return xr.addEventListener("touchstart",cr,{passive:!1}),rr.addEventListener("touchstart",Pi,{passive:!1}),function(){xr.removeEventListener("touchstart",cr),rr.removeEventListener("touchstart",Pi)}},[]);var pa=E.useRef();pa.current=Yr;var xo=E.useRef();xo.current=ro,E.useEffect(function(){if(qt){var cr,xr=function(ko){var jo=Xo.current,Ti=jo.dragging,pi=jo.pageY,ba=jo.startTop;_i.cancel(cr);var va=ar.current.getBoundingClientRect(),Mr=pt/(ot?va.width:va.height);if(Ti){var Or=(Is(ko,ot)-pi)*Mr,Go=ba;!Lr&&ot?Go-=Or:Go+=Or;var Ai=pa.current,ti=xo.current,Aa=ti?Go/ti:0,Ii=Math.ceil(Aa*Ai);Ii=Math.max(Ii,0),Ii=Math.min(Ii,Ai),cr=_i(function(){st(Ii,ot)})}},rr=function(){Ut(!1),We()};return window.addEventListener("mousemove",xr,{passive:!0}),window.addEventListener("touchmove",xr,{passive:!0}),window.addEventListener("mouseup",rr,{passive:!0}),window.addEventListener("touchend",rr,{passive:!0}),function(){window.removeEventListener("mousemove",xr),window.removeEventListener("touchmove",xr),window.removeEventListener("mouseup",rr),window.removeEventListener("touchend",rr),_i.cancel(cr)}}},[qt]),E.useEffect(function(){return Gn(),function(){clearTimeout(gr.current)}},[Ne]),E.useImperativeHandle(Ce,function(){return{delayHidden:Gn}});var So="".concat(xe,"-scrollbar"),Uo={position:"absolute",visibility:Vn?null:"hidden"},Di={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ot?(Uo.height=8,Uo.left=0,Uo.right=0,Uo.bottom=0,Di.height="100%",Di.width=Et,Lr?Di.left=Mi:Di.right=Mi):(Uo.width=8,Uo.top=0,Uo.bottom=0,Lr?Uo.right=0:Uo.left=0,Di.width="100%",Di.height=Et,Di.top=Mi),E.createElement("div",{ref:ar,className:at()(So,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(So,"-horizontal"),ot),"".concat(So,"-vertical"),!ot),"".concat(So,"-visible"),Vn)),style:(0,Fe.Z)((0,Fe.Z)({},Uo),bt),onMouseDown:Mo,onMouseMove:Gn},E.createElement("div",{ref:or,className:at()("".concat(So,"-thumb"),(0,Ie.Z)({},"".concat(So,"-thumb-moving"),qt)),style:(0,Fe.Z)((0,Fe.Z)({},Di),_t),onMouseDown:Pi}))}),gl=Tl,Pl=20;function os(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=ye/Ce*ye;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Pl),Math.floor(xe)}var Ns=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],il=[],Xl={overflowY:"auto",overflowAnchor:"none"};function Ql(ye,Ce){var xe=ye.prefixCls,Me=xe===void 0?"rc-virtual-list":xe,Ne=ye.className,ze=ye.height,Ze=ye.itemHeight,We=ye.fullHeight,st=We===void 0?!0:We,ot=ye.style,Et=ye.data,pt=ye.children,bt=ye.itemKey,_t=ye.virtual,Lt=ye.direction,Ht=ye.scrollWidth,Bt=ye.component,qt=Bt===void 0?"div":Bt,Ut=ye.onScroll,Wt=ye.onVirtualScroll,un=ye.onVisibleChange,Bn=ye.innerProps,er=ye.extraRender,In=ye.styles,Br=ye.showScrollBar,pr=Br===void 0?"optional":Br,br=(0,ho.Z)(ye,Ns),Lr=E.useCallback(function(so){return typeof bt=="function"?bt(so):so==null?void 0:so[bt]},[bt]),ar=Ts(Lr,null,null),or=(0,pe.Z)(ar,4),Kn=or[0],Fn=or[1],Vn=or[2],lr=or[3],gr=!!(_t!==!1&&ze&&Ze),Gn=E.useMemo(function(){return Object.values(Vn.maps).reduce(function(so,$r){return so+$r},0)},[Vn.id,Vn.maps]),Yr=gr&&Et&&(Math.max(Ze*Et.length,Gn)>ze||!!Ht),ro=Lt==="rtl",Mi=at()(Me,(0,Ie.Z)({},"".concat(Me,"-rtl"),ro),Ne),Mo=Et||il,Xo=(0,E.useRef)(),Pi=(0,E.useRef)(),pa=(0,E.useRef)(),xo=(0,E.useState)(0),So=(0,pe.Z)(xo,2),Uo=So[0],Di=So[1],cr=(0,E.useState)(0),xr=(0,pe.Z)(cr,2),rr=xr[0],Er=xr[1],ko=(0,E.useState)(!1),jo=(0,pe.Z)(ko,2),Ti=jo[0],pi=jo[1],ba=function(){pi(!0)},va=function(){pi(!1)},Mr={getKey:Lr};function Or(so){Di(function($r){var Io;typeof so=="function"?Io=so($r):Io=so;var ca=pl(Io);return Xo.current.scrollTop=ca,ca})}var Go=(0,E.useRef)({start:0,end:Mo.length}),Ai=(0,E.useRef)(),ti=Ji(Mo,Lr),Aa=(0,pe.Z)(ti,1),Ii=Aa[0];Ai.current=Ii;var vs=E.useMemo(function(){if(!gr)return{scrollHeight:void 0,start:0,end:Mo.length-1,offset:void 0};if(!Yr){var so;return{scrollHeight:((so=Pi.current)===null||so===void 0?void 0:so.offsetHeight)||0,start:0,end:Mo.length-1,offset:void 0}}for(var $r=0,Io,ca,za,Al=Mo.length,Xs=0;Xs<Al;Xs+=1){var mc=Mo[Xs],Vl=Lr(mc),Sl=Vn.get(Vl),Rl=$r+(Sl===void 0?Ze:Sl);Rl>=Uo&&Io===void 0&&(Io=Xs,ca=$r),Rl>Uo+ze&&za===void 0&&(za=Xs),$r=Rl}return Io===void 0&&(Io=0,ca=0,za=Math.ceil(ze/Ze)),za===void 0&&(za=Mo.length-1),za=Math.min(za+1,Mo.length-1),{scrollHeight:$r,start:Io,end:za,offset:ca}},[Yr,gr,Uo,Mo,lr,ze]),gi=vs.scrollHeight,Ko=vs.start,fi=vs.end,Ni=vs.offset;Go.current.start=Ko,Go.current.end=fi,E.useLayoutEffect(function(){var so=Vn.getRecord();if(so.size===1){var $r=Array.from(so)[0],Io=Mo[Ko];if(Io){var ca=Lr(Io);if(ca===$r){var za=Vn.get($r),Al=za-Ze;Or(function(Xs){return Xs+Al})}}}Vn.resetRecord()},[gi]);var wa=E.useState({width:0,height:ze}),Sa=(0,pe.Z)(wa,2),Ro=Sa[0],aa=Sa[1],Ci=function($r){aa({width:$r.offsetWidth,height:$r.offsetHeight})},ka=(0,E.useRef)(),sa=(0,E.useRef)(),as=E.useMemo(function(){return os(Ro.width,Ht)},[Ro.width,Ht]),Ys=E.useMemo(function(){return os(Ro.height,gi)},[Ro.height,gi]),ol=gi-ze,ji=(0,E.useRef)(ol);ji.current=ol;function pl(so){var $r=so;return Number.isNaN(ji.current)||($r=Math.min($r,ji.current)),$r=Math.max($r,0),$r}var ja=Uo<=0,ss=Uo>=ol,Ss=rr<=0,qa=rr>=Ht,ls=Vi(ja,ss,Ss,qa),ys=function(){return{x:ro?-rr:rr,y:Uo}},zs=(0,E.useRef)(ys()),Ps=yn(function(so){if(Wt){var $r=(0,Fe.Z)((0,Fe.Z)({},ys()),so);(zs.current.x!==$r.x||zs.current.y!==$r.y)&&(Wt($r),zs.current=$r)}});function As(so,$r){var Io=so;$r?((0,de.flushSync)(function(){Er(Io)}),Ps()):Or(Io)}function Fl(so){var $r=so.currentTarget.scrollTop;$r!==Uo&&Or($r),Ut==null||Ut(so),Ps()}var vl=function($r){var Io=$r,ca=Ht?Ht-Ro.width:0;return Io=Math.max(Io,0),Io=Math.min(Io,ca),Io},kl=yn(function(so,$r){$r?((0,de.flushSync)(function(){Er(function(Io){var ca=Io+(ro?-so:so);return vl(ca)})}),Ps()):Or(function(Io){var ca=Io+so;return ca})}),xl=Zs(gr,ja,ss,Ss,qa,!!Ht,kl),Ml=(0,pe.Z)(xl,2),ao=Ml[0],oi=Ml[1];Js(gr,Xo,function(so,$r,Io,ca){var za=ca;return ls(so,$r,Io)?!1:!za||!za._virtualHandled?(za&&(za._virtualHandled=!0),ao({preventDefault:function(){},deltaX:so?$r:0,deltaY:so?0:$r}),!0):!1}),qs(Yr,Xo,function(so){Or(function($r){return $r+so})}),kr(function(){function so(Io){var ca=ja&&Io.detail<0,za=ss&&Io.detail>0;gr&&!ca&&!za&&Io.preventDefault()}var $r=Xo.current;return $r.addEventListener("wheel",ao,{passive:!1}),$r.addEventListener("DOMMouseScroll",oi,{passive:!0}),$r.addEventListener("MozMousePixelScroll",so,{passive:!1}),function(){$r.removeEventListener("wheel",ao),$r.removeEventListener("DOMMouseScroll",oi),$r.removeEventListener("MozMousePixelScroll",so)}},[gr,ja,ss]),kr(function(){if(Ht){var so=vl(rr);Er(so),Ps({x:so})}},[Ro.width,Ht]);var la=function(){var $r,Io;($r=ka.current)===null||$r===void 0||$r.delayHidden(),(Io=sa.current)===null||Io===void 0||Io.delayHidden()},Pa=Dl(Xo,Mo,Vn,Ze,Lr,function(){return Fn(!0)},Or,la);E.useImperativeHandle(Ce,function(){return{nativeElement:pa.current,getScrollInfo:ys,scrollTo:function($r){function Io(ca){return ca&&(0,Le.Z)(ca)==="object"&&("left"in ca||"top"in ca)}Io($r)?($r.left!==void 0&&Er(vl($r.left)),Pa($r.top)):Pa($r)}}}),kr(function(){if(un){var so=Mo.slice(Ko,fi+1);un(so,Mo)}},[Ko,fi,Mo]);var cs=$s(Mo,Lr,Vn,Ze),Cs=er==null?void 0:er({start:Ko,end:fi,virtual:Yr,offsetX:rr,offsetY:Ni,rtl:ro,getSize:cs}),Rs=rs(Mo,Ko,fi,Ht,rr,Kn,pt,Mr),Ca=null;ze&&(Ca=(0,Fe.Z)((0,Ie.Z)({},st?"height":"maxHeight",ze),Xl),gr&&(Ca.overflowY="hidden",Ht&&(Ca.overflowX="hidden"),Ti&&(Ca.pointerEvents="none")));var Kl={};return ro&&(Kl.dir="rtl"),E.createElement("div",(0,le.Z)({ref:pa,style:(0,Fe.Z)((0,Fe.Z)({},ot),{},{position:"relative"}),className:Mi},Kl,br),E.createElement(Ae.Z,{onResize:Ci},E.createElement(qt,{className:"".concat(Me,"-holder"),style:Ca,ref:Xo,onScroll:Fl,onMouseEnter:la},E.createElement(Za,{prefixCls:Me,height:gi,offsetX:rr,offsetY:Ni,scrollWidth:Ht,onInnerResize:Fn,ref:Pi,innerProps:Bn,rtl:ro,extra:Cs},Rs))),Yr&&gi>ze&&E.createElement(gl,{ref:ka,prefixCls:Me,scrollOffset:Uo,scrollRange:gi,rtl:ro,onScroll:As,onStartMove:ba,onStopMove:va,spinSize:Ys,containerSize:Ro.height,style:In==null?void 0:In.verticalScrollBar,thumbStyle:In==null?void 0:In.verticalScrollBarThumb,showScrollBar:pr}),Yr&&Ht>Ro.width&&E.createElement(gl,{ref:sa,prefixCls:Me,scrollOffset:rr,scrollRange:Ht,rtl:ro,onScroll:As,onStartMove:ba,onStopMove:va,spinSize:as,containerSize:Ro.width,horizontal:!0,style:In==null?void 0:In.horizontalScrollBar,thumbStyle:In==null?void 0:In.horizontalScrollBarThumb,showScrollBar:pr}))}var Vr=E.forwardRef(Ql);Vr.displayName="List";var Jl=Vr,ql=Jl,Il=ce(null),fl=ce(null);function zl(ye,Ce,xe){var Me=Ce||1;return xe[ye+Me]-(xe[ye]||0)}function Hl(ye){var Ce=ye.rowInfo,xe=ye.column,Me=ye.colIndex,Ne=ye.indent,ze=ye.index,Ze=ye.component,We=ye.renderIndex,st=ye.record,ot=ye.style,Et=ye.className,pt=ye.inverse,bt=ye.getHeight,_t=xe.render,Lt=xe.dataIndex,Ht=xe.className,Bt=xe.width,qt=ue(fl,["columnsOffset"]),Ut=qt.columnsOffset,Wt=$a(Ce,xe,Me,Ne,ze),un=Wt.key,Bn=Wt.fixedInfo,er=Wt.appendCellNode,In=Wt.additionalCellProps,Br=In.style,pr=In.colSpan,br=pr===void 0?1:pr,Lr=In.rowSpan,ar=Lr===void 0?1:Lr,or=Me-1,Kn=zl(or,br,Ut),Fn=br>1?Bt-Kn:0,Vn=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Br),ot),{},{flex:"0 0 ".concat(Kn,"px"),width:"".concat(Kn,"px"),marginRight:Fn,pointerEvents:"auto"}),lr=E.useMemo(function(){return pt?ar<=1:br===0||ar===0||ar>1},[ar,br,pt]);lr?Vn.visibility="hidden":pt&&(Vn.height=bt==null?void 0:bt(ar));var gr=lr?function(){return null}:_t,Gn={};return(ar===0||br===0)&&(Gn.rowSpan=1,Gn.colSpan=1),E.createElement(En,(0,le.Z)({className:at()(Ht,Et),ellipsis:xe.ellipsis,align:xe.align,scope:xe.rowScope,component:Ze,prefixCls:Ce.prefixCls,key:un,record:st,index:ze,renderIndex:We,dataIndex:Lt,render:gr,shouldCellUpdate:xe.shouldCellUpdate},Bn,{appendNode:er,additionalProps:(0,Fe.Z)((0,Fe.Z)({},In),{},{style:Vn},Gn)}))}var Ul=Hl,Oi=["data","index","className","rowKey","style","extra","getHeight"],Ea=E.forwardRef(function(ye,Ce){var xe=ye.data,Me=ye.index,Ne=ye.className,ze=ye.rowKey,Ze=ye.style,We=ye.extra,st=ye.getHeight,ot=(0,ho.Z)(ye,Oi),Et=xe.record,pt=xe.indent,bt=xe.index,_t=ue(ge,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Lt=_t.scrollX,Ht=_t.flattenColumns,Bt=_t.prefixCls,qt=_t.fixColumn,Ut=_t.componentWidth,Wt=ue(Il,["getComponent"]),un=Wt.getComponent,Bn=ni(Et,ze,Me,pt),er=un(["body","row"],"div"),In=un(["body","cell"],"div"),Br=Bn.rowSupportExpand,pr=Bn.expanded,br=Bn.rowProps,Lr=Bn.expandedRowRender,ar=Bn.expandedRowClassName,or;if(Br&&pr){var Kn=Lr(Et,Me,pt+1,pr),Fn=ea(ar,Et,Me,pt),Vn={};qt&&(Vn={style:(0,Ie.Z)({},"--virtual-width","".concat(Ut,"px"))});var lr="".concat(Bt,"-expanded-row-cell");or=E.createElement(er,{className:at()("".concat(Bt,"-expanded-row"),"".concat(Bt,"-expanded-row-level-").concat(pt+1),Fn)},E.createElement(En,{component:In,prefixCls:Bt,className:at()(lr,(0,Ie.Z)({},"".concat(lr,"-fixed"),qt)),additionalProps:Vn},Kn))}var gr=(0,Fe.Z)((0,Fe.Z)({},Ze),{},{width:Lt});We&&(gr.position="absolute",gr.pointerEvents="none");var Gn=E.createElement(er,(0,le.Z)({},br,ot,{"data-row-key":ze,ref:Br?null:Ce,className:at()(Ne,"".concat(Bt,"-row"),br==null?void 0:br.className,(0,Ie.Z)({},"".concat(Bt,"-row-extra"),We)),style:(0,Fe.Z)((0,Fe.Z)({},gr),br==null?void 0:br.style)}),Ht.map(function(Yr,ro){return E.createElement(Ul,{key:ro,component:In,rowInfo:Bn,column:Yr,colIndex:ro,indent:pt,index:Me,renderIndex:bt,record:Et,inverse:We,getHeight:st})}));return Br?E.createElement("div",{ref:Ce},Gn,or):Gn}),ec=ee(Ea),ms=ec,bc=E.forwardRef(function(ye,Ce){var xe=ye.data,Me=ye.onScroll,Ne=ue(ge,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),ze=Ne.flattenColumns,Ze=Ne.onColumnResize,We=Ne.getRowKey,st=Ne.expandedKeys,ot=Ne.prefixCls,Et=Ne.childrenColumnName,pt=Ne.scrollX,bt=Ne.direction,_t=ue(Il),Lt=_t.sticky,Ht=_t.scrollY,Bt=_t.listItemHeight,qt=_t.getComponent,Ut=_t.onScroll,Wt=E.useRef(),un=Oo(xe,Et,st,We),Bn=E.useMemo(function(){var or=0;return ze.map(function(Kn){var Fn=Kn.width,Vn=Kn.key;return or+=Fn,[Vn,Fn,or]})},[ze]),er=E.useMemo(function(){return Bn.map(function(or){return or[2]})},[Bn]);E.useEffect(function(){Bn.forEach(function(or){var Kn=(0,pe.Z)(or,2),Fn=Kn[0],Vn=Kn[1];Ze(Fn,Vn)})},[Bn]),E.useImperativeHandle(Ce,function(){var or,Kn={scrollTo:function(Vn){var lr;(lr=Wt.current)===null||lr===void 0||lr.scrollTo(Vn)},nativeElement:(or=Wt.current)===null||or===void 0?void 0:or.nativeElement};return Object.defineProperty(Kn,"scrollLeft",{get:function(){var Vn;return((Vn=Wt.current)===null||Vn===void 0?void 0:Vn.getScrollInfo().x)||0},set:function(Vn){var lr;(lr=Wt.current)===null||lr===void 0||lr.scrollTo({left:Vn})}}),Kn});var In=function(Kn,Fn){var Vn,lr=(Vn=un[Fn])===null||Vn===void 0?void 0:Vn.record,gr=Kn.onCell;if(gr){var Gn,Yr=gr(lr,Fn);return(Gn=Yr==null?void 0:Yr.rowSpan)!==null&&Gn!==void 0?Gn:1}return 1},Br=function(Kn){var Fn=Kn.start,Vn=Kn.end,lr=Kn.getSize,gr=Kn.offsetY;if(Vn<0)return null;for(var Gn=ze.filter(function(cr){return In(cr,Fn)===0}),Yr=Fn,ro=function(xr){if(Gn=Gn.filter(function(rr){return In(rr,xr)===0}),!Gn.length)return Yr=xr,1},Mi=Fn;Mi>=0&&!ro(Mi);Mi-=1);for(var Mo=ze.filter(function(cr){return In(cr,Vn)!==1}),Xo=Vn,Pi=function(xr){if(Mo=Mo.filter(function(rr){return In(rr,xr)!==1}),!Mo.length)return Xo=Math.max(xr-1,Vn),1},pa=Vn;pa<un.length&&!Pi(pa);pa+=1);for(var xo=[],So=function(xr){var rr=un[xr];if(!rr)return 1;ze.some(function(Er){return In(Er,xr)>1})&&xo.push(xr)},Uo=Yr;Uo<=Xo;Uo+=1)So(Uo);var Di=xo.map(function(cr){var xr=un[cr],rr=We(xr.record,cr),Er=function(Ti){var pi=cr+Ti-1,ba=We(un[pi].record,pi),va=lr(rr,ba);return va.bottom-va.top},ko=lr(rr);return E.createElement(ms,{key:cr,data:xr,rowKey:rr,index:cr,style:{top:-gr+ko.top},extra:!0,getHeight:Er})});return Di},pr=E.useMemo(function(){return{columnsOffset:er}},[er]),br="".concat(ot,"-tbody"),Lr=qt(["body","wrapper"]),ar={};return Lt&&(ar.position="sticky",ar.bottom=0,(0,Le.Z)(Lt)==="object"&&Lt.offsetScroll&&(ar.bottom=Lt.offsetScroll)),E.createElement(fl.Provider,{value:pr},E.createElement(ql,{fullHeight:!1,ref:Wt,prefixCls:"".concat(br,"-virtual"),styles:{horizontalScrollBar:ar},className:br,height:Ht,itemHeight:Bt||24,data:un,itemKey:function(Kn){return We(Kn.record)},component:Lr,scrollWidth:pt,direction:bt,onVirtualScroll:function(Kn){var Fn,Vn=Kn.x;Me({currentTarget:(Fn=Wt.current)===null||Fn===void 0?void 0:Fn.nativeElement,scrollLeft:Vn})},onScroll:Ut,extraRender:Br},function(or,Kn,Fn){var Vn=We(or.record,Kn);return E.createElement(ms,{data:or,rowKey:Vn,index:Kn,style:Fn.style})}))}),tc=ee(bc),nc=tc,Cl=function(Ce,xe){var Me=xe.ref,Ne=xe.onScroll;return E.createElement(nc,{ref:Me,data:Ce,onScroll:Ne})};function rc(ye,Ce){var xe=ye.data,Me=ye.columns,Ne=ye.scroll,ze=ye.sticky,Ze=ye.prefixCls,We=Ze===void 0?Qe:Ze,st=ye.className,ot=ye.listItemHeight,Et=ye.components,pt=ye.onScroll,bt=Ne||{},_t=bt.x,Lt=bt.y;typeof _t!="number"&&(_t=1),typeof Lt!="number"&&(Lt=500);var Ht=Be(function(Ut,Wt){return Qt(Et,Ut)||Wt}),Bt=Be(pt),qt=E.useMemo(function(){return{sticky:ze,scrollY:Lt,listItemHeight:ot,getComponent:Ht,onScroll:Bt}},[ze,Lt,ot,Ht,Bt]);return E.createElement(Il.Provider,{value:qt},E.createElement(Yt,(0,le.Z)({},ye,{className:at()(st,"".concat(We,"-virtual")),scroll:(0,Fe.Z)((0,Fe.Z)({},Ne),{},{x:_t}),components:(0,Fe.Z)((0,Fe.Z)({},Et),{},{body:xe!=null&&xe.length?Cl:void 0}),columns:Me,internalHooks:Ee,tailor:!0,ref:Ce})))}var oc=E.forwardRef(rc);function Gl(ye){return z(oc,ye)}var Pc=Gl(),Cc=null,He=ye=>null,dr=ye=>null,rn=te(96641),nn=te(15558),vn=te(13144),jt=te.n(vn),sn=te(10225),jn=te(17341),Lo=te(1089),Ir=te(5663);function Do(ye){const[Ce,xe]=(0,E.useState)(null);return[(0,E.useCallback)((ze,Ze,We)=>{const st=Ce!=null?Ce:ze,ot=Math.min(st||0,ze),Et=Math.max(st||0,ze),pt=Ze.slice(ot,Et+1).map(Lt=>ye(Lt)),bt=pt.some(Lt=>!We.has(Lt)),_t=[];return pt.forEach(Lt=>{bt?(We.has(Lt)||_t.push(Lt),We.add(Lt)):(We.delete(Lt),_t.push(Lt))}),xe(bt?Et:null),_t},[Ce]),ze=>{xe(ze)}]}var Cr=te(27288),vo=te(84567),jr=te(85418),Li=te(98813);const eo={},To="SELECT_ALL",xi="SELECT_INVERT",fo="SELECT_NONE",di=[],qn=(ye,Ce)=>{let xe=[];return(Ce||[]).forEach(Me=>{xe.push(Me),Me&&typeof Me=="object"&&ye in Me&&(xe=[].concat((0,rn.Z)(xe),(0,rn.Z)(qn(ye,Me[ye]))))}),xe};var Ho=(ye,Ce)=>{const{preserveSelectedRowKeys:xe,selectedRowKeys:Me,defaultSelectedRowKeys:Ne,getCheckboxProps:ze,onChange:Ze,onSelect:We,onSelectAll:st,onSelectInvert:ot,onSelectNone:Et,onSelectMultiple:pt,columnWidth:bt,type:_t,selections:Lt,fixed:Ht,renderCell:Bt,hideSelectAll:qt,checkStrictly:Ut=!0}=Ce||{},{prefixCls:Wt,data:un,pageData:Bn,getRecordByKey:er,getRowKey:In,expandType:Br,childrenColumnName:pr,locale:br,getPopupContainer:Lr}=ye,ar=(0,Cr.ln)("Table"),[or,Kn]=Do(cr=>cr),[Fn,Vn]=(0,Ir.Z)(Me||Ne||di,{value:Me}),lr=E.useRef(new Map),gr=(0,E.useCallback)(cr=>{if(xe){const xr=new Map;cr.forEach(rr=>{let Er=er(rr);!Er&&lr.current.has(rr)&&(Er=lr.current.get(rr)),xr.set(rr,Er)}),lr.current=xr}},[er,xe]);E.useEffect(()=>{gr(Fn)},[Fn]);const Gn=(0,E.useMemo)(()=>qn(pr,Bn),[pr,Bn]),{keyEntities:Yr}=(0,E.useMemo)(()=>{if(Ut)return{keyEntities:null};let cr=un;if(xe){const xr=new Set(Gn.map((Er,ko)=>In(Er,ko))),rr=Array.from(lr.current).reduce((Er,ko)=>{let[jo,Ti]=ko;return xr.has(jo)?Er:Er.concat(Ti)},[]);cr=[].concat((0,rn.Z)(cr),(0,rn.Z)(rr))}return(0,Lo.I8)(cr,{externalGetKey:In,childrenPropName:pr})},[un,In,Ut,pr,xe,Gn]),ro=(0,E.useMemo)(()=>{const cr=new Map;return Gn.forEach((xr,rr)=>{const Er=In(xr,rr),ko=(ze?ze(xr):null)||{};cr.set(Er,ko)}),cr},[Gn,In,ze]),Mi=(0,E.useCallback)(cr=>{const xr=In(cr);let rr;return ro.has(xr)?rr=ro.get(In(cr)):rr=ze?ze(cr):void 0,!!(rr!=null&&rr.disabled)},[ro,In]),[Mo,Xo]=(0,E.useMemo)(()=>{if(Ut)return[Fn||[],[]];const{checkedKeys:cr,halfCheckedKeys:xr}=(0,jn.S)(Fn,!0,Yr,Mi);return[cr||[],xr]},[Fn,Ut,Yr,Mi]),Pi=(0,E.useMemo)(()=>{const cr=_t==="radio"?Mo.slice(0,1):Mo;return new Set(cr)},[Mo,_t]),pa=(0,E.useMemo)(()=>_t==="radio"?new Set:new Set(Xo),[Xo,_t]);E.useEffect(()=>{Ce||Vn(di)},[!!Ce]);const xo=(0,E.useCallback)((cr,xr)=>{let rr,Er;gr(cr),xe?(rr=cr,Er=cr.map(ko=>lr.current.get(ko))):(rr=[],Er=[],cr.forEach(ko=>{const jo=er(ko);jo!==void 0&&(rr.push(ko),Er.push(jo))})),Vn(rr),Ze==null||Ze(rr,Er,{type:xr})},[Vn,er,Ze,xe]),So=(0,E.useCallback)((cr,xr,rr,Er)=>{if(We){const ko=rr.map(jo=>er(jo));We(er(cr),xr,ko,Er)}xo(rr,"single")},[We,er,xo]),Uo=(0,E.useMemo)(()=>!Lt||qt?null:(Lt===!0?[To,xi,fo]:Lt).map(xr=>xr===To?{key:"all",text:br.selectionAll,onSelect(){xo(un.map((rr,Er)=>In(rr,Er)).filter(rr=>{const Er=ro.get(rr);return!(Er!=null&&Er.disabled)||Pi.has(rr)}),"all")}}:xr===xi?{key:"invert",text:br.selectInvert,onSelect(){const rr=new Set(Pi);Bn.forEach((ko,jo)=>{const Ti=In(ko,jo),pi=ro.get(Ti);pi!=null&&pi.disabled||(rr.has(Ti)?rr.delete(Ti):rr.add(Ti))});const Er=Array.from(rr);ot&&(ar.deprecated(!1,"onSelectInvert","onChange"),ot(Er)),xo(Er,"invert")}}:xr===fo?{key:"none",text:br.selectNone,onSelect(){Et==null||Et(),xo(Array.from(Pi).filter(rr=>{const Er=ro.get(rr);return Er==null?void 0:Er.disabled}),"none")}}:xr).map(xr=>Object.assign(Object.assign({},xr),{onSelect:function(){for(var rr,Er,ko=arguments.length,jo=new Array(ko),Ti=0;Ti<ko;Ti++)jo[Ti]=arguments[Ti];(Er=xr.onSelect)===null||Er===void 0||(rr=Er).call.apply(rr,[xr].concat(jo)),Kn(null)}})),[Lt,Pi,Bn,In,ot,xo]);return[(0,E.useCallback)(cr=>{var xr;if(!Ce)return cr.filter(Ko=>Ko!==eo);let rr=(0,rn.Z)(cr);const Er=new Set(Pi),ko=Gn.map(In).filter(Ko=>!ro.get(Ko).disabled),jo=ko.every(Ko=>Er.has(Ko)),Ti=ko.some(Ko=>Er.has(Ko)),pi=()=>{const Ko=[];jo?ko.forEach(Ni=>{Er.delete(Ni),Ko.push(Ni)}):ko.forEach(Ni=>{Er.has(Ni)||(Er.add(Ni),Ko.push(Ni))});const fi=Array.from(Er);st==null||st(!jo,fi.map(Ni=>er(Ni)),Ko.map(Ni=>er(Ni))),xo(fi,"all"),Kn(null)};let ba,va;if(_t!=="radio"){let Ko;if(Uo){const Ro={getPopupContainer:Lr,items:Uo.map((aa,Ci)=>{const{key:ka,text:sa,onSelect:as}=aa;return{key:ka!=null?ka:Ci,onClick:()=>{as==null||as(ko)},label:sa}})};Ko=E.createElement("div",{className:`${Wt}-selection-extra`},E.createElement(jr.Z,{menu:Ro,getPopupContainer:Lr},E.createElement("span",null,E.createElement(nn.Z,null))))}const fi=Gn.map((Ro,aa)=>{const Ci=In(Ro,aa),ka=ro.get(Ci)||{};return Object.assign({checked:Er.has(Ci)},ka)}).filter(Ro=>{let{disabled:aa}=Ro;return aa}),Ni=!!fi.length&&fi.length===Gn.length,wa=Ni&&fi.every(Ro=>{let{checked:aa}=Ro;return aa}),Sa=Ni&&fi.some(Ro=>{let{checked:aa}=Ro;return aa});va=E.createElement(vo.default,{checked:Ni?wa:!!Gn.length&&jo,indeterminate:Ni?!wa&&Sa:!jo&&Ti,onChange:pi,disabled:Gn.length===0||Ni,"aria-label":Ko?"Custom selection":"Select all",skipGroup:!0}),ba=!qt&&E.createElement("div",{className:`${Wt}-selection`},va,Ko)}let Mr;_t==="radio"?Mr=(Ko,fi,Ni)=>{const wa=In(fi,Ni),Sa=Er.has(wa),Ro=ro.get(wa);return{node:E.createElement(Li.ZP,Object.assign({},Ro,{checked:Sa,onClick:aa=>{var Ci;aa.stopPropagation(),(Ci=Ro==null?void 0:Ro.onClick)===null||Ci===void 0||Ci.call(Ro,aa)},onChange:aa=>{var Ci;Er.has(wa)||So(wa,!0,[wa],aa.nativeEvent),(Ci=Ro==null?void 0:Ro.onChange)===null||Ci===void 0||Ci.call(Ro,aa)}})),checked:Sa}}:Mr=(Ko,fi,Ni)=>{var wa;const Sa=In(fi,Ni),Ro=Er.has(Sa),aa=pa.has(Sa),Ci=ro.get(Sa);let ka;return Br==="nest"?ka=aa:ka=(wa=Ci==null?void 0:Ci.indeterminate)!==null&&wa!==void 0?wa:aa,{node:E.createElement(vo.default,Object.assign({},Ci,{indeterminate:ka,checked:Ro,skipGroup:!0,onClick:sa=>{var as;sa.stopPropagation(),(as=Ci==null?void 0:Ci.onClick)===null||as===void 0||as.call(Ci,sa)},onChange:sa=>{var as;const{nativeEvent:Ys}=sa,{shiftKey:ol}=Ys,ji=ko.findIndex(ja=>ja===Sa),pl=Mo.some(ja=>ko.includes(ja));if(ol&&Ut&&pl){const ja=or(ji,ko,Er),ss=Array.from(Er);pt==null||pt(!Ro,ss.map(Ss=>er(Ss)),ja.map(Ss=>er(Ss))),xo(ss,"multiple")}else{const ja=Mo;if(Ut){const ss=Ro?(0,sn._5)(ja,Sa):(0,sn.L0)(ja,Sa);So(Sa,!Ro,ss,Ys)}else{const ss=(0,jn.S)([].concat((0,rn.Z)(ja),[Sa]),!0,Yr,Mi),{checkedKeys:Ss,halfCheckedKeys:qa}=ss;let ls=Ss;if(Ro){const ys=new Set(Ss);ys.delete(Sa),ls=(0,jn.S)(Array.from(ys),{checked:!1,halfCheckedKeys:qa},Yr,Mi).checkedKeys}So(Sa,!Ro,ls,Ys)}}Kn(Ro?null:ji),(as=Ci==null?void 0:Ci.onChange)===null||as===void 0||as.call(Ci,sa)}})),checked:Ro}};const Or=(Ko,fi,Ni)=>{const{node:wa,checked:Sa}=Mr(Ko,fi,Ni);return Bt?Bt(Sa,fi,Ni,wa):wa};if(!rr.includes(eo))if(rr.findIndex(Ko=>{var fi;return((fi=Ko[ua])===null||fi===void 0?void 0:fi.columnType)==="EXPAND_COLUMN"})===0){const[Ko,...fi]=rr;rr=[Ko,eo].concat((0,rn.Z)(fi))}else rr=[eo].concat((0,rn.Z)(rr));const Go=rr.indexOf(eo);rr=rr.filter((Ko,fi)=>Ko!==eo||fi===Go);const Ai=rr[Go-1],ti=rr[Go+1];let Aa=Ht;Aa===void 0&&((ti==null?void 0:ti.fixed)!==void 0?Aa=ti.fixed:(Ai==null?void 0:Ai.fixed)!==void 0&&(Aa=Ai.fixed)),Aa&&Ai&&((xr=Ai[ua])===null||xr===void 0?void 0:xr.columnType)==="EXPAND_COLUMN"&&Ai.fixed===void 0&&(Ai.fixed=Aa);const Ii=jt()(`${Wt}-selection-col`,{[`${Wt}-selection-col-with-dropdown`]:Lt&&_t==="checkbox"}),vs=()=>Ce!=null&&Ce.columnTitle?typeof Ce.columnTitle=="function"?Ce.columnTitle(va):Ce.columnTitle:ba,gi={fixed:Aa,width:bt,className:`${Wt}-selection-column`,title:vs(),render:Or,onCell:Ce.onCell,[ua]:{className:Ii}};return rr.map(Ko=>Ko===eo?gi:Ko)},[In,Gn,Ce,Mo,Pi,pa,bt,Uo,Br,ro,pt,So,Mi]),Pi]},Yi=te(10366);function is(ye,Ce){return ye._antProxy=ye._antProxy||{},Object.keys(Ce).forEach(xe=>{if(!(xe in ye._antProxy)){const Me=ye[xe];ye._antProxy[xe]=Me,ye[xe]=Ce[xe]}}),ye}function _r(ye,Ce){return(0,E.useImperativeHandle)(ye,()=>{const xe=Ce(),{nativeElement:Me}=xe;return typeof Proxy!="undefined"?new Proxy(Me,{get(Ne,ze){return xe[ze]?xe[ze]:Reflect.get(Ne,ze)}}):is(Me,xe)})}var ki=te(58375),Wo=te(53124),Rr=te(88258),Co=te(35792),qo=te(98675),Yo=te(25378),hl=te(24457),el=te(73802),tl=te(74330),al=te(15729);function Bs(ye){return Ce=>{const{prefixCls:xe,onExpand:Me,record:Ne,expanded:ze,expandable:Ze}=Ce,We=`${xe}-row-expand-icon`;return E.createElement("button",{type:"button",onClick:st=>{Me(Ne,st),st.stopPropagation()},className:jt()(We,{[`${We}-spaced`]:!Ze,[`${We}-expanded`]:Ze&&ze,[`${We}-collapsed`]:Ze&&!ze}),"aria-label":ze?ye.collapse:ye.expand,"aria-expanded":ze})}}var sl=Bs;function Zr(ye){return(xe,Me)=>{const Ne=xe.querySelector(`.${ye}-container`);let ze=Me;if(Ne){const Ze=getComputedStyle(Ne),We=parseInt(Ze.borderLeftWidth,10),st=parseInt(Ze.borderRightWidth,10);ze=Me-We-st}return ze}}const li=(ye,Ce)=>"key"in ye&&ye.key!==void 0&&ye.key!==null?ye.key:ye.dataIndex?Array.isArray(ye.dataIndex)?ye.dataIndex.join("."):ye.dataIndex:Ce;function Ma(ye,Ce){return Ce?`${Ce}-${ye}`:`${ye}`}const Fs=(ye,Ce)=>typeof ye=="function"?ye(Ce):ye,ps=(ye,Ce)=>{const xe=Fs(ye,Ce);return Object.prototype.toString.call(xe)==="[object Object]"?"":xe};var ll=te(83963),ks={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"},_a=ks,Ws=te(84180),ic=function(Ce,xe){return E.createElement(Ws.Z,(0,ll.Z)({},Ce,{ref:xe,icon:_a}))},ac=E.forwardRef(ic),sc=ac,mo=te(7699),qi=te(38780),Ja=te(57838);function bs(ye){const Ce=E.useRef(ye),xe=(0,Ja.Z)();return[()=>Ce.current,Me=>{Ce.current=Me,xe()}]}var Zi=te(85804),js=te(32983),cl=te(50136),ml=te(76529),El=te(51380),nl=te(47880),lc=te(82586),Zl=ye=>{const{value:Ce,filterSearch:xe,tablePrefixCls:Me,locale:Ne,onChange:ze}=ye;return xe?E.createElement("div",{className:`${Me}-filter-dropdown-search`},E.createElement(lc.Z,{prefix:E.createElement(nl.Z,null),placeholder:Ne.filterSearchPlaceholder,onChange:ze,value:Ce,htmlSize:1,className:`${Me}-filter-dropdown-search-input`})):null},Ec=te(92389);const Yc=ye=>{const{keyCode:Ce}=ye;Ce===Ec.Z.ENTER&&ye.stopPropagation()};var Xc=E.forwardRef((ye,Ce)=>E.createElement("div",{className:ye.className,onClick:xe=>xe.stopPropagation(),onKeyDown:Yc,ref:Ce},ye.children));function Ll(ye){let Ce=[];return(ye||[]).forEach(xe=>{let{value:Me,children:Ne}=xe;Ce.push(Me),Ne&&(Ce=[].concat((0,rn.Z)(Ce),(0,rn.Z)(Ll(Ne))))}),Ce}function Qc(ye){return ye.some(Ce=>{let{children:xe}=Ce;return xe})}function wc(ye,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(ye.trim().toLowerCase()):!1}function Lc(ye){let{filters:Ce,prefixCls:xe,filteredKeys:Me,filterMultiple:Ne,searchValue:ze,filterSearch:Ze}=ye;return Ce.map((We,st)=>{const ot=String(We.value);if(We.children)return{key:ot||st,label:We.text,popupClassName:`${xe}-dropdown-submenu`,children:Lc({filters:We.children,prefixCls:xe,filteredKeys:Me,filterMultiple:Ne,searchValue:ze,filterSearch:Ze})};const Et=Ne?vo.default:Li.ZP,pt={key:We.value!==void 0?ot:st,label:E.createElement(E.Fragment,null,E.createElement(Et,{checked:Me.includes(ot)}),E.createElement("span",null,We.text))};return ze.trim()?typeof Ze=="function"?Ze(ze,We)?pt:null:wc(ze,We.text)?pt:null:pt})}function cc(ye){return ye||[]}var Jc=ye=>{var Ce,xe,Me,Ne;const{tablePrefixCls:ze,prefixCls:Ze,column:We,dropdownPrefixCls:st,columnKey:ot,filterOnClose:Et,filterMultiple:pt,filterMode:bt="menu",filterSearch:_t=!1,filterState:Lt,triggerFilter:Ht,locale:Bt,children:qt,getPopupContainer:Ut,rootClassName:Wt}=ye,{filterResetToDefaultFilteredValue:un,defaultFilteredValue:Bn,filterDropdownProps:er={},filterDropdownOpen:In,filterDropdownVisible:Br,onFilterDropdownVisibleChange:pr,onFilterDropdownOpenChange:br}=We,[Lr,ar]=E.useState(!1),or=!!(Lt&&(!((Ce=Lt.filteredKeys)===null||Ce===void 0)&&Ce.length||Lt.forceFiltered)),Kn=Mr=>{var Or;ar(Mr),(Or=er.onOpenChange)===null||Or===void 0||Or.call(er,Mr),br==null||br(Mr),pr==null||pr(Mr)},Fn=(Ne=(Me=(xe=er.open)!==null&&xe!==void 0?xe:In)!==null&&Me!==void 0?Me:Br)!==null&&Ne!==void 0?Ne:Lr,Vn=Lt==null?void 0:Lt.filteredKeys,[lr,gr]=bs(cc(Vn)),Gn=Mr=>{let{selectedKeys:Or}=Mr;gr(Or)},Yr=(Mr,Or)=>{let{node:Go,checked:Ai}=Or;Gn(pt?{selectedKeys:Mr}:{selectedKeys:Ai&&Go.key?[Go.key]:[]})};E.useEffect(()=>{Lr&&Gn({selectedKeys:cc(Vn)})},[Vn]);const[ro,Mi]=E.useState([]),Mo=Mr=>{Mi(Mr)},[Xo,Pi]=E.useState(""),pa=Mr=>{const{value:Or}=Mr.target;Pi(Or)};E.useEffect(()=>{Lr||Pi("")},[Lr]);const xo=Mr=>{const Or=Mr!=null&&Mr.length?Mr:null;if(Or===null&&(!Lt||!Lt.filteredKeys)||(0,mo.Z)(Or,Lt==null?void 0:Lt.filteredKeys,!0))return null;Ht({column:We,key:ot,filteredKeys:Or})},So=()=>{Kn(!1),xo(lr())},Uo=function(){let{confirm:Mr,closeDropdown:Or}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Mr&&xo([]),Or&&Kn(!1),Pi(""),gr(un?(Bn||[]).map(Go=>String(Go)):[])},Di=function(){let{closeDropdown:Mr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Mr&&Kn(!1),xo(lr())},cr=(Mr,Or)=>{Or.source==="trigger"&&(Mr&&Vn!==void 0&&gr(cc(Vn)),Kn(Mr),!Mr&&!We.filterDropdown&&Et&&So())},xr=jt()({[`${st}-menu-without-submenu`]:!Qc(We.filters||[])}),rr=Mr=>{if(Mr.target.checked){const Or=Ll(We==null?void 0:We.filters).map(Go=>String(Go));gr(Or)}else gr([])},Er=Mr=>{let{filters:Or}=Mr;return(Or||[]).map((Go,Ai)=>{const ti=String(Go.value),Aa={title:Go.text,key:Go.value!==void 0?ti:String(Ai)};return Go.children&&(Aa.children=Er({filters:Go.children})),Aa})},ko=Mr=>{var Or;return Object.assign(Object.assign({},Mr),{text:Mr.title,value:Mr.key,children:((Or=Mr.children)===null||Or===void 0?void 0:Or.map(Go=>ko(Go)))||[]})};let jo;const{direction:Ti,renderEmpty:pi}=E.useContext(Wo.E_);if(typeof We.filterDropdown=="function")jo=We.filterDropdown({prefixCls:`${st}-custom`,setSelectedKeys:Mr=>Gn({selectedKeys:Mr}),selectedKeys:lr(),confirm:Di,clearFilters:Uo,filters:We.filters,visible:Fn,close:()=>{Kn(!1)}});else if(We.filterDropdown)jo=We.filterDropdown;else{const Mr=lr()||[],Or=()=>{var Ai,ti;const Aa=(Ai=pi==null?void 0:pi("Table.filter"))!==null&&Ai!==void 0?Ai:E.createElement(js.Z,{image:js.Z.PRESENTED_IMAGE_SIMPLE,description:Bt.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((We.filters||[]).length===0)return Aa;if(bt==="tree")return E.createElement(E.Fragment,null,E.createElement(Zl,{filterSearch:_t,value:Xo,onChange:pa,tablePrefixCls:ze,locale:Bt}),E.createElement("div",{className:`${ze}-filter-dropdown-tree`},pt?E.createElement(vo.default,{checked:Mr.length===Ll(We.filters).length,indeterminate:Mr.length>0&&Mr.length<Ll(We.filters).length,className:`${ze}-filter-dropdown-checkall`,onChange:rr},(ti=Bt==null?void 0:Bt.filterCheckall)!==null&&ti!==void 0?ti:Bt==null?void 0:Bt.filterCheckAll):null,E.createElement(El.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:pt,checkStrictly:!pt,className:`${st}-menu`,onCheck:Yr,checkedKeys:Mr,selectedKeys:Mr,showIcon:!1,treeData:Er({filters:We.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Xo.trim()?gi=>typeof _t=="function"?_t(Xo,ko(gi)):wc(Xo,gi.title):void 0})));const Ii=Lc({filters:We.filters||[],filterSearch:_t,prefixCls:Ze,filteredKeys:lr(),filterMultiple:pt,searchValue:Xo}),vs=Ii.every(gi=>gi===null);return E.createElement(E.Fragment,null,E.createElement(Zl,{filterSearch:_t,value:Xo,onChange:pa,tablePrefixCls:ze,locale:Bt}),vs?Aa:E.createElement(cl.default,{selectable:!0,multiple:pt,prefixCls:`${st}-menu`,className:xr,onSelect:Gn,onDeselect:Gn,selectedKeys:Mr,getPopupContainer:Ut,openKeys:ro,onOpenChange:Mo,items:Ii}))},Go=()=>un?(0,mo.Z)((Bn||[]).map(Ai=>String(Ai)),Mr,!0):Mr.length===0;jo=E.createElement(E.Fragment,null,Or(),E.createElement("div",{className:`${Ze}-dropdown-btns`},E.createElement(Zi.ZP,{type:"link",size:"small",disabled:Go(),onClick:()=>Uo()},Bt.filterReset),E.createElement(Zi.ZP,{type:"primary",size:"small",onClick:So},Bt.filterConfirm)))}We.filterDropdown&&(jo=E.createElement(ml.J,{selectable:void 0},jo)),jo=E.createElement(Xc,{className:`${Ze}-dropdown`},jo);const ba=()=>{let Mr;return typeof We.filterIcon=="function"?Mr=We.filterIcon(or):We.filterIcon?Mr=We.filterIcon:Mr=E.createElement(sc,null),E.createElement("span",{role:"button",tabIndex:-1,className:jt()(`${Ze}-trigger`,{active:or}),onClick:Or=>{Or.stopPropagation()}},Mr)},va=(0,qi.Z)({trigger:["click"],placement:Ti==="rtl"?"bottomLeft":"bottomRight",children:ba(),getPopupContainer:Ut},Object.assign(Object.assign({},er),{rootClassName:jt()(Wt,er.rootClassName),open:Fn,onOpenChange:cr,dropdownRender:()=>typeof(er==null?void 0:er.dropdownRender)=="function"?er.dropdownRender(jo):jo}));return E.createElement("div",{className:`${Ze}-column`},E.createElement("span",{className:`${ze}-column-title`},qt),E.createElement(jr.Z,Object.assign({},va)))};const uc=(ye,Ce,xe)=>{let Me=[];return(ye||[]).forEach((Ne,ze)=>{var Ze;const We=Ma(ze,xe);if(Ne.filters||"filterDropdown"in Ne||"onFilter"in Ne)if("filteredValue"in Ne){let st=Ne.filteredValue;"filterDropdown"in Ne||(st=(Ze=st==null?void 0:st.map(String))!==null&&Ze!==void 0?Ze:st),Me.push({column:Ne,key:li(Ne,We),filteredKeys:st,forceFiltered:Ne.filtered})}else Me.push({column:Ne,key:li(Ne,We),filteredKeys:Ce&&Ne.defaultFilteredValue?Ne.defaultFilteredValue:void 0,forceFiltered:Ne.filtered});"children"in Ne&&(Me=[].concat((0,rn.Z)(Me),(0,rn.Z)(uc(Ne.children,Ce,We))))}),Me};function xc(ye,Ce,xe,Me,Ne,ze,Ze,We,st){return xe.map((ot,Et)=>{const pt=Ma(Et,We),{filterOnClose:bt=!0,filterMultiple:_t=!0,filterMode:Lt,filterSearch:Ht}=ot;let Bt=ot;if(Bt.filters||Bt.filterDropdown){const qt=li(Bt,pt),Ut=Me.find(Wt=>{let{key:un}=Wt;return qt===un});Bt=Object.assign(Object.assign({},Bt),{title:Wt=>E.createElement(Jc,{tablePrefixCls:ye,prefixCls:`${ye}-filter`,dropdownPrefixCls:Ce,column:Bt,columnKey:qt,filterState:Ut,filterOnClose:bt,filterMultiple:_t,filterMode:Lt,filterSearch:Ht,triggerFilter:ze,locale:Ne,getPopupContainer:Ze,rootClassName:st},Fs(ot.title,Wt))})}return"children"in Bt&&(Bt=Object.assign(Object.assign({},Bt),{children:xc(ye,Ce,Bt.children,Me,Ne,ze,Ze,pt,st)})),Bt})}const Mc=ye=>{const Ce={};return ye.forEach(xe=>{let{key:Me,filteredKeys:Ne,column:ze}=xe;const Ze=Me,{filters:We,filterDropdown:st}=ze;if(st)Ce[Ze]=Ne||null;else if(Array.isArray(Ne)){const ot=Ll(We);Ce[Ze]=ot.filter(Et=>Ne.includes(String(Et)))}else Ce[Ze]=null}),Ce},dc=(ye,Ce,xe)=>Ce.reduce((Ne,ze)=>{const{column:{onFilter:Ze,filters:We},filteredKeys:st}=ze;return Ze&&st&&st.length?Ne.map(ot=>Object.assign({},ot)).filter(ot=>st.some(Et=>{const pt=Ll(We),bt=pt.findIndex(Lt=>String(Lt)===String(Et)),_t=bt!==-1?pt[bt]:Et;return ot[xe]&&(ot[xe]=dc(ot[xe],Ce,xe)),Ze(_t,ot)})):Ne},ye),Ac=ye=>ye.flatMap(Ce=>"children"in Ce?[Ce].concat((0,rn.Z)(Ac(Ce.children||[]))):[Ce]);var qc=ye=>{const{prefixCls:Ce,dropdownPrefixCls:xe,mergedColumns:Me,onFilterChange:Ne,getPopupContainer:ze,locale:Ze,rootClassName:We}=ye,st=(0,Cr.ln)("Table"),ot=E.useMemo(()=>Ac(Me||[]),[Me]),[Et,pt]=E.useState(()=>uc(ot,!0)),bt=E.useMemo(()=>{const Bt=uc(ot,!1);if(Bt.length===0)return Bt;let qt=!0,Ut=!0;if(Bt.forEach(Wt=>{let{filteredKeys:un}=Wt;un!==void 0?qt=!1:Ut=!1}),qt){const Wt=(ot||[]).map((un,Bn)=>li(un,Ma(Bn)));return Et.filter(un=>{let{key:Bn}=un;return Wt.includes(Bn)}).map(un=>{const Bn=ot[Wt.findIndex(er=>er===un.key)];return Object.assign(Object.assign({},un),{column:Object.assign(Object.assign({},un.column),Bn),forceFiltered:Bn.filtered})})}return Bt},[ot,Et]),_t=E.useMemo(()=>Mc(bt),[bt]),Lt=Bt=>{const qt=bt.filter(Ut=>{let{key:Wt}=Ut;return Wt!==Bt.key});qt.push(Bt),pt(qt),Ne(Mc(qt),qt)};return[Bt=>xc(Ce,xe,Bt,bt,Ze,Lt,ze,void 0,We),bt,_t]},eu=(ye,Ce,xe)=>{const Me=E.useRef({});function Ne(ze){var Ze;if(!Me.current||Me.current.data!==ye||Me.current.childrenColumnName!==Ce||Me.current.getRowKey!==xe){let st=function(ot){ot.forEach((Et,pt)=>{const bt=xe(Et,pt);We.set(bt,Et),Et&&typeof Et=="object"&&Ce in Et&&st(Et[Ce]||[])})};const We=new Map;st(ye),Me.current={data:ye,childrenColumnName:Ce,kvMap:We,getRowKey:xe}}return(Ze=Me.current.kvMap)===null||Ze===void 0?void 0:Ze.get(ze)}return[Ne]},tu=function(ye,Ce){var xe={};for(var Me in ye)Object.prototype.hasOwnProperty.call(ye,Me)&&Ce.indexOf(Me)<0&&(xe[Me]=ye[Me]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Me=Object.getOwnPropertySymbols(ye);Ne<Me.length;Ne++)Ce.indexOf(Me[Ne])<0&&Object.prototype.propertyIsEnumerable.call(ye,Me[Ne])&&(xe[Me[Ne]]=ye[Me[Ne]]);return xe};const Rc=10;function nu(ye,Ce){const xe={current:ye.current,pageSize:ye.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(Ne=>{const ze=ye[Ne];typeof ze!="function"&&(xe[Ne]=ze)}),xe}function ru(ye,Ce,xe){const Me=xe&&typeof xe=="object"?xe:{},{total:Ne=0}=Me,ze=tu(Me,["total"]),[Ze,We]=(0,E.useState)(()=>({current:"defaultCurrent"in ze?ze.defaultCurrent:1,pageSize:"defaultPageSize"in ze?ze.defaultPageSize:Rc})),st=(0,qi.Z)(Ze,ze,{total:Ne>0?Ne:ye}),ot=Math.ceil((Ne||ye)/st.pageSize);st.current>ot&&(st.current=ot||1);const Et=(bt,_t)=>{We({current:bt!=null?bt:1,pageSize:_t||st.pageSize})},pt=(bt,_t)=>{var Lt;xe&&((Lt=xe.onChange)===null||Lt===void 0||Lt.call(xe,bt,_t)),Et(bt,_t),Ce(bt,_t||(st==null?void 0:st.pageSize))};return xe===!1?[{},()=>{}]:[Object.assign(Object.assign({},st),{onChange:pt}),Et]}var ou=ru,iu={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"},au=iu,su=function(Ce,xe){return E.createElement(Ws.Z,(0,ll.Z)({},Ce,{ref:xe,icon:au}))},lu=E.forwardRef(su),cu=lu,uu={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"},du=uu,gu=function(Ce,xe){return E.createElement(Ws.Z,(0,ll.Z)({},Ce,{ref:xe,icon:du}))},fu=E.forwardRef(gu),hu=fu,Oc=te(83062);const $l="ascend",gc="descend",Wl=ye=>typeof ye.sorter=="object"&&typeof ye.sorter.multiple=="number"?ye.sorter.multiple:!1,Dc=ye=>typeof ye=="function"?ye:ye&&typeof ye=="object"&&ye.compare?ye.compare:!1,mu=(ye,Ce)=>Ce?ye[ye.indexOf(Ce)+1]:ye[0],fc=(ye,Ce,xe)=>{let Me=[];const Ne=(ze,Ze)=>{Me.push({column:ze,key:li(ze,Ze),multiplePriority:Wl(ze),sortOrder:ze.sortOrder})};return(ye||[]).forEach((ze,Ze)=>{const We=Ma(Ze,xe);ze.children?("sortOrder"in ze&&Ne(ze,We),Me=[].concat((0,rn.Z)(Me),(0,rn.Z)(fc(ze.children,Ce,We)))):ze.sorter&&("sortOrder"in ze?Ne(ze,We):Ce&&ze.defaultSortOrder&&Me.push({column:ze,key:li(ze,We),multiplePriority:Wl(ze),sortOrder:ze.defaultSortOrder}))}),Me},Tc=(ye,Ce,xe,Me,Ne,ze,Ze,We)=>(Ce||[]).map((ot,Et)=>{const pt=Ma(Et,We);let bt=ot;if(bt.sorter){const _t=bt.sortDirections||Ne,Lt=bt.showSorterTooltip===void 0?Ze:bt.showSorterTooltip,Ht=li(bt,pt),Bt=xe.find(pr=>{let{key:br}=pr;return br===Ht}),qt=Bt?Bt.sortOrder:null,Ut=mu(_t,qt);let Wt;if(ot.sortIcon)Wt=ot.sortIcon({sortOrder:qt});else{const pr=_t.includes($l)&&E.createElement(hu,{className:jt()(`${ye}-column-sorter-up`,{active:qt===$l})}),br=_t.includes(gc)&&E.createElement(cu,{className:jt()(`${ye}-column-sorter-down`,{active:qt===gc})});Wt=E.createElement("span",{className:jt()(`${ye}-column-sorter`,{[`${ye}-column-sorter-full`]:!!(pr&&br)})},E.createElement("span",{className:`${ye}-column-sorter-inner`,"aria-hidden":"true"},pr,br))}const{cancelSort:un,triggerAsc:Bn,triggerDesc:er}=ze||{};let In=un;Ut===gc?In=er:Ut===$l&&(In=Bn);const Br=typeof Lt=="object"?Object.assign({title:In},Lt):{title:In};bt=Object.assign(Object.assign({},bt),{className:jt()(bt.className,{[`${ye}-column-sort`]:qt}),title:pr=>{const br=`${ye}-column-sorters`,Lr=E.createElement("span",{className:`${ye}-column-title`},Fs(ot.title,pr)),ar=E.createElement("div",{className:br},Lr,Wt);return Lt?typeof Lt!="boolean"&&(Lt==null?void 0:Lt.target)==="sorter-icon"?E.createElement("div",{className:`${br} ${ye}-column-sorters-tooltip-target-sorter`},Lr,E.createElement(Oc.Z,Object.assign({},Br),Wt)):E.createElement(Oc.Z,Object.assign({},Br),ar):ar},onHeaderCell:pr=>{var br;const Lr=((br=ot.onHeaderCell)===null||br===void 0?void 0:br.call(ot,pr))||{},ar=Lr.onClick,or=Lr.onKeyDown;Lr.onClick=Vn=>{Me({column:ot,key:Ht,sortOrder:Ut,multiplePriority:Wl(ot)}),ar==null||ar(Vn)},Lr.onKeyDown=Vn=>{Vn.keyCode===Ec.Z.ENTER&&(Me({column:ot,key:Ht,sortOrder:Ut,multiplePriority:Wl(ot)}),or==null||or(Vn))};const Kn=ps(ot.title,{}),Fn=Kn==null?void 0:Kn.toString();return qt&&(Lr["aria-sort"]=qt==="ascend"?"ascending":"descending"),Lr["aria-label"]=Fn||"",Lr.className=jt()(Lr.className,`${ye}-column-has-sorters`),Lr.tabIndex=0,ot.ellipsis&&(Lr.title=(Kn!=null?Kn:"").toString()),Lr}})}return"children"in bt&&(bt=Object.assign(Object.assign({},bt),{children:Tc(ye,bt.children,xe,Me,Ne,ze,Ze,pt)})),bt}),Ic=ye=>{const{column:Ce,sortOrder:xe}=ye;return{column:Ce,order:xe,field:Ce.dataIndex,columnKey:Ce.key}},Nc=ye=>{const Ce=ye.filter(xe=>{let{sortOrder:Me}=xe;return Me}).map(Ic);if(Ce.length===0&&ye.length){const xe=ye.length-1;return Object.assign(Object.assign({},Ic(ye[xe])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return Ce.length<=1?Ce[0]||{}:Ce},hc=(ye,Ce,xe)=>{const Me=Ce.slice().sort((Ze,We)=>We.multiplePriority-Ze.multiplePriority),Ne=ye.slice(),ze=Me.filter(Ze=>{let{column:{sorter:We},sortOrder:st}=Ze;return Dc(We)&&st});return ze.length?Ne.sort((Ze,We)=>{for(let st=0;st<ze.length;st+=1){const ot=ze[st],{column:{sorter:Et},sortOrder:pt}=ot,bt=Dc(Et);if(bt&&pt){const _t=bt(Ze,We,pt);if(_t!==0)return pt===$l?_t:-_t}}return 0}).map(Ze=>{const We=Ze[xe];return We?Object.assign(Object.assign({},Ze),{[xe]:hc(We,Ce,xe)}):Ze}):Ne};var pu=ye=>{const{prefixCls:Ce,mergedColumns:xe,sortDirections:Me,tableLocale:Ne,showSorterTooltip:ze,onSorterChange:Ze}=ye,[We,st]=E.useState(fc(xe,!0)),ot=(Ht,Bt)=>{const qt=[];return Ht.forEach((Ut,Wt)=>{const un=Ma(Wt,Bt);if(qt.push(li(Ut,un)),Array.isArray(Ut.children)){const Bn=ot(Ut.children,un);qt.push.apply(qt,(0,rn.Z)(Bn))}}),qt},Et=E.useMemo(()=>{let Ht=!0;const Bt=fc(xe,!1);if(!Bt.length){const un=ot(xe);return We.filter(Bn=>{let{key:er}=Bn;return un.includes(er)})}const qt=[];function Ut(un){Ht?qt.push(un):qt.push(Object.assign(Object.assign({},un),{sortOrder:null}))}let Wt=null;return Bt.forEach(un=>{Wt===null?(Ut(un),un.sortOrder&&(un.multiplePriority===!1?Ht=!1:Wt=!0)):(Wt&&un.multiplePriority!==!1||(Ht=!1),Ut(un))}),qt},[xe,We]),pt=E.useMemo(()=>{var Ht,Bt;const qt=Et.map(Ut=>{let{column:Wt,sortOrder:un}=Ut;return{column:Wt,order:un}});return{sortColumns:qt,sortColumn:(Ht=qt[0])===null||Ht===void 0?void 0:Ht.column,sortOrder:(Bt=qt[0])===null||Bt===void 0?void 0:Bt.order}},[Et]),bt=Ht=>{let Bt;Ht.multiplePriority===!1||!Et.length||Et[0].multiplePriority===!1?Bt=[Ht]:Bt=[].concat((0,rn.Z)(Et.filter(qt=>{let{key:Ut}=qt;return Ut!==Ht.key})),[Ht]),st(Bt),Ze(Nc(Bt),Bt)};return[Ht=>Tc(Ce,Ht,Et,bt,Me,Ne,ze),Et,pt,()=>Nc(Et)]};const Bc=(ye,Ce)=>ye.map(Me=>{const Ne=Object.assign({},Me);return Ne.title=Fs(Me.title,Ce),"children"in Ne&&(Ne.children=Bc(Ne.children,Ce)),Ne});var vu=ye=>[E.useCallback(xe=>Bc(xe,ye),[ye])],Su=Cn((ye,Ce)=>{const{_renderTimes:xe}=ye,{_renderTimes:Me}=Ce;return xe!==Me}),yu=Gl((ye,Ce)=>{const{_renderTimes:xe}=ye,{_renderTimes:Me}=Ce;return xe!==Me}),to=te(16777),Nl=te(24327),Bl=te(14747),_u=te(83559),bu=te(43259),Pu=ye=>{const{componentCls:Ce,lineWidth:xe,lineType:Me,tableBorderColor:Ne,tableHeaderBg:ze,tablePaddingVertical:Ze,tablePaddingHorizontal:We,calc:st}=ye,ot=`${(0,to.unit)(xe)} ${Me} ${Ne}`,Et=(pt,bt,_t)=>({[`&${Ce}-${pt}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`${(0,to.unit)(st(bt).mul(-1).equal())}
|
|
|
${(0,to.unit)(st(st(_t).add(xe)).mul(-1).equal())}`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:ot,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:ot,borderTop:ot,[`
|
|
|
> ${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:ot},"> thead":{"> tr:not(:last-child) > th":{borderBottom:ot},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:ot}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`${(0,to.unit)(st(Ze).mul(-1).equal())} ${(0,to.unit)(st(st(We).add(xe)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:xe,bottom:0,borderInlineEnd:ot,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Ce}-expanded-row,
|
|
|
> tr${Ce}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Et("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle)),Et("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:ot,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,to.unit)(xe)} 0 ${(0,to.unit)(xe)} ${ze}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:ot}}}},Cu=ye=>{const{componentCls:Ce}=ye;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},Bl.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"}})}}},Eu=ye=>{const{componentCls:Ce}=ye;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:ye.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ye.colorBgContainer}}}}},wu=ye=>{const{componentCls:Ce,antCls:xe,motionDurationSlow:Me,lineWidth:Ne,paddingXS:ze,lineType:Ze,tableBorderColor:We,tableExpandIconBg:st,tableExpandColumnWidth:ot,borderRadius:Et,tablePaddingVertical:pt,tablePaddingHorizontal:bt,tableExpandedRowBg:_t,paddingXXS:Lt,expandIconMarginTop:Ht,expandIconSize:Bt,expandIconHalfInner:qt,expandIconScale:Ut,calc:Wt}=ye,un=`${(0,to.unit)(Ne)} ${Ze} ${We}`,Bn=Wt(Lt).sub(Ne).equal();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,Bl.Nd)(ye)),{position:"relative",float:"left",width:Bt,height:Bt,color:"inherit",lineHeight:(0,to.unit)(Bt),background:st,border:un,borderRadius:Et,transform:`scale(${Ut})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Me} ease-out`,content:'""'},"&::before":{top:qt,insetInlineEnd:Bn,insetInlineStart:Bn,height:Ne},"&::after":{top:Bn,bottom:Bn,insetInlineStart:qt,width:Ne,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:Ht,marginInlineEnd:ze},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:_t}},[`${xe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`${(0,to.unit)(Wt(pt).mul(-1).equal())} ${(0,to.unit)(Wt(bt).mul(-1).equal())}`,padding:`${(0,to.unit)(pt)} ${(0,to.unit)(bt)}`}}}},Lu=ye=>{const{componentCls:Ce,antCls:xe,iconCls:Me,tableFilterDropdownWidth:Ne,tableFilterDropdownSearchWidth:ze,paddingXXS:Ze,paddingXS:We,colorText:st,lineWidth:ot,lineType:Et,tableBorderColor:pt,headerIconColor:bt,fontSizeSM:_t,tablePaddingHorizontal:Lt,borderRadius:Ht,motionDurationSlow:Bt,colorTextDescription:qt,colorPrimary:Ut,tableHeaderFilterActiveBg:Wt,colorTextDisabled:un,tableFilterDropdownBg:Bn,tableFilterDropdownHeight:er,controlItemBgHover:In,controlItemBgActive:Br,boxShadowSecondary:pr,filterDropdownMenuBg:br,calc:Lr}=ye,ar=`${xe}-dropdown`,or=`${Ce}-filter-dropdown`,Kn=`${xe}-tree`,Fn=`${(0,to.unit)(ot)} ${Et} ${pt}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:Lr(Ze).mul(-1).equal(),marginInline:`${(0,to.unit)(Ze)} ${(0,to.unit)(Lr(Lt).div(2).mul(-1).equal())}`,padding:`0 ${(0,to.unit)(Ze)}`,color:bt,fontSize:_t,borderRadius:Ht,cursor:"pointer",transition:`all ${Bt}`,"&:hover":{color:qt,background:Wt},"&.active":{color:Ut}}}},{[`${xe}-dropdown`]:{[or]:Object.assign(Object.assign({},(0,Bl.Wf)(ye)),{minWidth:Ne,backgroundColor:Bn,borderRadius:Ht,boxShadow:pr,overflow:"hidden",[`${ar}-menu`]:{maxHeight:er,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:br,"&:empty::after":{display:"block",padding:`${(0,to.unit)(We)} 0`,color:un,fontSize:_t,textAlign:"center",content:'"Not Found"'}},[`${or}-tree`]:{paddingBlock:`${(0,to.unit)(We)} 0`,paddingInline:We,[Kn]:{padding:0},[`${Kn}-treenode ${Kn}-node-content-wrapper:hover`]:{backgroundColor:In},[`${Kn}-treenode-checkbox-checked ${Kn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Br}}},[`${or}-search`]:{padding:We,borderBottom:Fn,"&-input":{input:{minWidth:ze},[Me]:{color:un}}},[`${or}-checkall`]:{width:"100%",marginBottom:Ze,marginInlineStart:Ze},[`${or}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,to.unit)(Lr(We).sub(ot).equal())} ${(0,to.unit)(We)}`,overflow:"hidden",borderTop:Fn}})}},{[`${xe}-dropdown ${or}, ${or}-submenu`]:{[`${xe}-checkbox-wrapper + span`]:{paddingInlineStart:We,color:st},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},xu=ye=>{const{componentCls:Ce,lineWidth:xe,colorSplit:Me,motionDurationSlow:Ne,zIndexTableFixed:ze,tableBg:Ze,zIndexTableSticky:We,calc:st}=ye,ot=Me;return{[`${Ce}-wrapper`]:{[`
|
|
|
${Ce}-cell-fix-left,
|
|
|
${Ce}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:ze,background:Ze},[`
|
|
|
${Ce}-cell-fix-left-first::after,
|
|
|
${Ce}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:st(xe).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Ne}`,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:st(xe).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ne}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:st(We).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Ne}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${ot}`},[`
|
|
|
${Ce}-cell-fix-left-first::after,
|
|
|
${Ce}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${ot}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${ot}`},[`
|
|
|
${Ce}-cell-fix-right-first::after,
|
|
|
${Ce}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${ot}`}},[`${Ce}-fixed-column-gapped`]:{[`
|
|
|
${Ce}-cell-fix-left-first::after,
|
|
|
${Ce}-cell-fix-left-last::after,
|
|
|
${Ce}-cell-fix-right-first::after,
|
|
|
${Ce}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},Mu=ye=>{const{componentCls:Ce,antCls:xe,margin:Me}=ye;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${xe}-pagination`]:{margin:`${(0,to.unit)(Me)} 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ye.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Au=ye=>{const{componentCls:Ce,tableRadius:xe}=ye;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${(0,to.unit)(xe)} ${(0,to.unit)(xe)} 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:xe,borderStartEndRadius:xe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:xe},"> *:last-child":{borderStartEndRadius:xe}}},"&-footer":{borderRadius:`0 0 ${(0,to.unit)(xe)} ${(0,to.unit)(xe)}`}}}}},Ru=ye=>{const{componentCls:Ce}=ye;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"}}}}},Ou=ye=>{const{componentCls:Ce,antCls:xe,iconCls:Me,fontSizeIcon:Ne,padding:ze,paddingXS:Ze,headerIconColor:We,headerIconHoverColor:st,tableSelectionColumnWidth:ot,tableSelectedRowBg:Et,tableSelectedRowHoverBg:pt,tableRowHoverBg:bt,tablePaddingHorizontal:_t,calc:Lt}=ye;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:ot,[`&${Ce}-selection-col-with-dropdown`]:{width:Lt(ot).add(Ne).add(Lt(ze).div(4)).equal()}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:Lt(ot).add(Lt(Ze).mul(2)).equal(),[`&${Ce}-selection-col-with-dropdown`]:{width:Lt(ot).add(Ne).add(Lt(ze).div(4)).add(Lt(Ze).mul(2)).equal()}},[`
|
|
|
table tr th${Ce}-selection-column,
|
|
|
table tr td${Ce}-selection-column,
|
|
|
${Ce}-selection-column
|
|
|
`]:{paddingInlineEnd:ye.paddingXS,paddingInlineStart:ye.paddingXS,textAlign:"center",[`${xe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:Lt(ye.zIndexTableFixed).add(1).equal({unit:!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 ${ye.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,to.unit)(Lt(_t).div(4).equal()),[Me]:{color:We,fontSize:Ne,verticalAlign:"baseline","&:hover":{color:st}}},[`${Ce}-tbody`]:{[`${Ce}-row`]:{[`&${Ce}-row-selected`]:{[`> ${Ce}-cell`]:{background:Et,"&-row-hover":{background:pt}}},[`> ${Ce}-cell-row-hover`]:{background:bt}}}}}},Du=ye=>{const{componentCls:Ce,tableExpandColumnWidth:xe,calc:Me}=ye,Ne=(ze,Ze,We,st)=>({[`${Ce}${Ce}-${ze}`]:{fontSize:st,[`
|
|
|
${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:`${(0,to.unit)(Ze)} ${(0,to.unit)(We)}`},[`${Ce}-filter-trigger`]:{marginInlineEnd:(0,to.unit)(Me(We).div(2).mul(-1).equal())},[`${Ce}-expanded-row-fixed`]:{margin:`${(0,to.unit)(Me(Ze).mul(-1).equal())} ${(0,to.unit)(Me(We).mul(-1).equal())}`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:(0,to.unit)(Me(Ze).mul(-1).equal()),marginInline:`${(0,to.unit)(Me(xe).sub(We).equal())} ${(0,to.unit)(Me(We).mul(-1).equal())}`}},[`${Ce}-selection-extra`]:{paddingInlineStart:(0,to.unit)(Me(We).div(4).equal())}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},Ne("middle",ye.tablePaddingVerticalMiddle,ye.tablePaddingHorizontalMiddle,ye.tableFontSizeMiddle)),Ne("small",ye.tablePaddingVerticalSmall,ye.tablePaddingHorizontalSmall,ye.tableFontSizeSmall))}},Tu=ye=>{const{componentCls:Ce,marginXXS:xe,fontSizeIcon:Me,headerIconColor:Ne,headerIconHoverColor:ze}=ye;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ye.motionDurationSlow}, left 0s`,"&:hover":{background:ye.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ye.colorPrimary},[`
|
|
|
&${Ce}-cell-fix-left:hover,
|
|
|
&${Ce}-cell-fix-right:hover
|
|
|
`]:{background:ye.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:ye.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:ye.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${Ce}-column-sorter`]:{marginInlineStart:xe,color:Ne,fontSize:0,transition:`color ${ye.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Me,"&.active":{color:ye.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:ze}}}},Iu=ye=>{const{componentCls:Ce,opacityLoading:xe,tableScrollThumbBg:Me,tableScrollThumbBgHover:Ne,tableScrollThumbSize:ze,tableScrollBg:Ze,zIndexTableSticky:We,stickyScrollBarBorderRadius:st,lineWidth:ot,lineType:Et,tableBorderColor:pt}=ye,bt=`${(0,to.unit)(ot)} ${Et} ${pt}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:We,background:ye.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,to.unit)(ze)} !important`,zIndex:We,display:"flex",alignItems:"center",background:Ze,borderTop:bt,opacity:xe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:ze,backgroundColor:Me,borderRadius:st,transition:`all ${ye.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ne}}}}}}},Fc=ye=>{const{componentCls:Ce,lineWidth:xe,tableBorderColor:Me,calc:Ne}=ye,ze=`${(0,to.unit)(xe)} ${ye.lineType} ${Me}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:ye.zIndexTableFixed,background:ye.tableBg,"> tr":{"> th, > td":{borderBottom:ze}}},[`div${Ce}-summary`]:{boxShadow:`0 ${(0,to.unit)(Ne(xe).mul(-1).equal())} 0 ${Me}`}}}},Nu=ye=>{const{componentCls:Ce,motionDurationMid:xe,lineWidth:Me,lineType:Ne,tableBorderColor:ze,calc:Ze}=ye,We=`${(0,to.unit)(Me)} ${Ne} ${ze}`,st=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${Ce}-row,
|
|
|
& > div:not(${Ce}-row) > ${Ce}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${Ce}-cell`]:{borderBottom:We,transition:`background ${xe}`},[`${Ce}-expanded-row`]:{[`${st}${st}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,to.unit)(Me)})`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:We,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:We,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Ze(Me).mul(-1).equal(),borderInlineStart:We}}},[`&${Ce}-virtual`]:{[`${Ce}-placeholder ${Ce}-cell`]:{borderInlineEnd:We,borderBottom:We}}}}}};const Bu=ye=>{const{componentCls:Ce,fontWeightStrong:xe,tablePaddingVertical:Me,tablePaddingHorizontal:Ne,tableExpandColumnWidth:ze,lineWidth:Ze,lineType:We,tableBorderColor:st,tableFontSize:ot,tableBg:Et,tableRadius:pt,tableHeaderTextColor:bt,motionDurationMid:_t,tableHeaderBg:Lt,tableHeaderCellSplitColor:Ht,tableFooterTextColor:Bt,tableFooterBg:qt,calc:Ut}=ye,Wt=`${(0,to.unit)(Ze)} ${We} ${st}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Bl.dF)()),{[Ce]:Object.assign(Object.assign({},(0,Bl.Wf)(ye)),{fontSize:ot,background:Et,borderRadius:`${(0,to.unit)(pt)} ${(0,to.unit)(pt)} 0 0`,scrollbarColor:`${ye.tableScrollThumbBg} ${ye.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,to.unit)(pt)} ${(0,to.unit)(pt)} 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:`${(0,to.unit)(Me)} ${(0,to.unit)(Ne)}`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${(0,to.unit)(Me)} ${(0,to.unit)(Ne)}`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:bt,fontWeight:xe,textAlign:"start",background:Lt,borderBottom:Wt,transition:`background ${_t} 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:Ht,transform:"translateY(-50%)",transition:`background-color ${_t}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${_t}, border-color ${_t}`,borderBottom:Wt,[`
|
|
|
> ${Ce}-wrapper:only-child,
|
|
|
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
|
|
|
`]:{[Ce]:{marginBlock:(0,to.unit)(Ut(Me).mul(-1).equal()),marginInline:`${(0,to.unit)(Ut(ze).sub(Ne).equal())}
|
|
|
${(0,to.unit)(Ut(Ne).mul(-1).equal())}`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:bt,fontWeight:xe,textAlign:"start",background:Lt,borderBottom:Wt,transition:`background ${_t} ease`}}},[`${Ce}-footer`]:{padding:`${(0,to.unit)(Me)} ${(0,to.unit)(Ne)}`,color:Bt,background:qt}})}},Fu=ye=>{const{colorFillAlter:Ce,colorBgContainer:xe,colorTextHeading:Me,colorFillSecondary:Ne,colorFillContent:ze,controlItemBgActive:Ze,controlItemBgActiveHover:We,padding:st,paddingSM:ot,paddingXS:Et,colorBorderSecondary:pt,borderRadiusLG:bt,controlHeight:_t,colorTextPlaceholder:Lt,fontSize:Ht,fontSizeSM:Bt,lineHeight:qt,lineWidth:Ut,colorIcon:Wt,colorIconHover:un,opacityLoading:Bn,controlInteractiveSize:er}=ye,In=new Nl.FastColor(Ne).onBackground(xe).toHexString(),Br=new Nl.FastColor(ze).onBackground(xe).toHexString(),pr=new Nl.FastColor(Ce).onBackground(xe).toHexString(),br=new Nl.FastColor(Wt),Lr=new Nl.FastColor(un),ar=er/2-Ut,or=ar*2+Ut*3;return{headerBg:pr,headerColor:Me,headerSortActiveBg:In,headerSortHoverBg:Br,bodySortBg:pr,rowHoverBg:pr,rowSelectedBg:Ze,rowSelectedHoverBg:We,rowExpandedBg:Ce,cellPaddingBlock:st,cellPaddingInline:st,cellPaddingBlockMD:ot,cellPaddingInlineMD:Et,cellPaddingBlockSM:Et,cellPaddingInlineSM:Et,borderColor:pt,headerBorderRadius:bt,footerBg:pr,footerColor:Me,cellFontSize:Ht,cellFontSizeMD:Ht,cellFontSizeSM:Ht,headerSplitColor:pt,fixedHeaderSortActiveBg:In,headerFilterHoverBg:ze,filterDropdownMenuBg:xe,filterDropdownBg:xe,expandIconBg:xe,selectionColumnWidth:_t,stickyScrollBarBg:Lt,stickyScrollBarBorderRadius:100,expandIconMarginTop:(Ht*qt-Ut*3)/2-Math.ceil((Bt*1.4-Ut*3)/2),headerIconColor:br.clone().setA(br.a*Bn).toRgbString(),headerIconHoverColor:Lr.clone().setA(Lr.a*Bn).toRgbString(),expandIconHalfInner:ar,expandIconSize:or,expandIconScale:er/or}},kc=2;var ku=(0,_u.I$)("Table",ye=>{const{colorTextHeading:Ce,colorSplit:xe,colorBgContainer:Me,controlInteractiveSize:Ne,headerBg:ze,headerColor:Ze,headerSortActiveBg:We,headerSortHoverBg:st,bodySortBg:ot,rowHoverBg:Et,rowSelectedBg:pt,rowSelectedHoverBg:bt,rowExpandedBg:_t,cellPaddingBlock:Lt,cellPaddingInline:Ht,cellPaddingBlockMD:Bt,cellPaddingInlineMD:qt,cellPaddingBlockSM:Ut,cellPaddingInlineSM:Wt,borderColor:un,footerBg:Bn,footerColor:er,headerBorderRadius:In,cellFontSize:Br,cellFontSizeMD:pr,cellFontSizeSM:br,headerSplitColor:Lr,fixedHeaderSortActiveBg:ar,headerFilterHoverBg:or,filterDropdownBg:Kn,expandIconBg:Fn,selectionColumnWidth:Vn,stickyScrollBarBg:lr,calc:gr}=ye,Gn=(0,bu.mergeToken)(ye,{tableFontSize:Br,tableBg:Me,tableRadius:In,tablePaddingVertical:Lt,tablePaddingHorizontal:Ht,tablePaddingVerticalMiddle:Bt,tablePaddingHorizontalMiddle:qt,tablePaddingVerticalSmall:Ut,tablePaddingHorizontalSmall:Wt,tableBorderColor:un,tableHeaderTextColor:Ze,tableHeaderBg:ze,tableFooterTextColor:er,tableFooterBg:Bn,tableHeaderCellSplitColor:Lr,tableHeaderSortBg:We,tableHeaderSortHoverBg:st,tableBodySortBg:ot,tableFixedHeaderSortActiveBg:ar,tableHeaderFilterActiveBg:or,tableFilterDropdownBg:Kn,tableRowHoverBg:Et,tableSelectedRowBg:pt,tableSelectedRowHoverBg:bt,zIndexTableFixed:kc,zIndexTableSticky:gr(kc).add(1).equal({unit:!1}),tableFontSizeMiddle:pr,tableFontSizeSmall:br,tableSelectionColumnWidth:Vn,tableExpandIconBg:Fn,tableExpandColumnWidth:gr(Ne).add(gr(ye.padding).mul(2)).equal(),tableExpandedRowBg:_t,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:lr,tableScrollThumbBgHover:Ce,tableScrollBg:xe});return[Bu(Gn),Mu(Gn),Fc(Gn),Tu(Gn),Lu(Gn),Pu(Gn),Au(Gn),wu(Gn),Fc(Gn),Eu(Gn),Ou(Gn),xu(Gn),Iu(Gn),Cu(Gn),Du(Gn),Ru(Gn),Nu(Gn)]},Fu,{unitless:{expandIconScale:!0}});const ju=[],zu=(ye,Ce)=>{var xe,Me;const{prefixCls:Ne,className:ze,rootClassName:Ze,style:We,size:st,bordered:ot,dropdownPrefixCls:Et,dataSource:pt,pagination:bt,rowSelection:_t,rowKey:Lt="key",rowClassName:Ht,columns:Bt,children:qt,childrenColumnName:Ut,onChange:Wt,getPopupContainer:un,loading:Bn,expandIcon:er,expandable:In,expandedRowRender:Br,expandIconColumnIndex:pr,indentSize:br,scroll:Lr,sortDirections:ar,locale:or,showSorterTooltip:Kn={target:"full-header"},virtual:Fn}=ye,Vn=(0,Cr.ln)("Table"),lr=E.useMemo(()=>Bt||Qn(qt),[Bt,qt]),gr=E.useMemo(()=>lr.some(ao=>ao.responsive),[lr]),Gn=(0,Yo.Z)(gr),Yr=E.useMemo(()=>{const ao=new Set(Object.keys(Gn).filter(oi=>Gn[oi]));return lr.filter(oi=>!oi.responsive||oi.responsive.some(la=>ao.has(la)))},[lr,Gn]),ro=(0,Yi.Z)(ye,["className","style","columns"]),{locale:Mi=hl.Z,direction:Mo,table:Xo,renderEmpty:Pi,getPrefixCls:pa,getPopupContainer:xo}=E.useContext(Wo.E_),So=(0,qo.Z)(st),Uo=Object.assign(Object.assign({},Mi.Table),or),Di=pt||ju,cr=pa("table",Ne),xr=pa("dropdown",Et),[,rr]=(0,al.ZP)(),Er=(0,Co.Z)(cr),[ko,jo,Ti]=ku(cr,Er),pi=Object.assign(Object.assign({childrenColumnName:Ut,expandIconColumnIndex:pr},In),{expandIcon:(xe=In==null?void 0:In.expandIcon)!==null&&xe!==void 0?xe:(Me=Xo==null?void 0:Xo.expandable)===null||Me===void 0?void 0:Me.expandIcon}),{childrenColumnName:ba="children"}=pi,va=E.useMemo(()=>Di.some(ao=>ao==null?void 0:ao[ba])?"nest":Br||In!=null&&In.expandedRowRender?"row":null,[Di]),Mr={body:E.useRef(null)},Or=Zr(cr),Go=E.useRef(null),Ai=E.useRef(null);_r(Ce,()=>Object.assign(Object.assign({},Ai.current),{nativeElement:Go.current}));const ti=E.useMemo(()=>typeof Lt=="function"?Lt:ao=>ao==null?void 0:ao[Lt],[Lt]),[Aa]=eu(Di,ba,ti),Ii={},vs=function(ao,oi){let la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Pa,cs,Cs,Rs;const Ca=Object.assign(Object.assign({},Ii),ao);la&&((Pa=Ii.resetPagination)===null||Pa===void 0||Pa.call(Ii),!((cs=Ca.pagination)===null||cs===void 0)&&cs.current&&(Ca.pagination.current=1),bt&&((Cs=bt.onChange)===null||Cs===void 0||Cs.call(bt,1,(Rs=Ca.pagination)===null||Rs===void 0?void 0:Rs.pageSize))),Lr&&Lr.scrollToFirstRowOnChange!==!1&&Mr.body.current&&(0,ki.Z)(0,{getContainer:()=>Mr.body.current}),Wt==null||Wt(Ca.pagination,Ca.filters,Ca.sorter,{currentDataSource:dc(hc(Di,Ca.sorterStates,ba),Ca.filterStates,ba),action:oi})},gi=(ao,oi)=>{vs({sorter:ao,sorterStates:oi},"sort",!1)},[Ko,fi,Ni,wa]=pu({prefixCls:cr,mergedColumns:Yr,onSorterChange:gi,sortDirections:ar||["ascend","descend"],tableLocale:Uo,showSorterTooltip:Kn}),Sa=E.useMemo(()=>hc(Di,fi,ba),[Di,fi]);Ii.sorter=wa(),Ii.sorterStates=fi;const Ro=(ao,oi)=>{vs({filters:ao,filterStates:oi},"filter",!0)},[aa,Ci,ka]=qc({prefixCls:cr,locale:Uo,dropdownPrefixCls:xr,mergedColumns:Yr,onFilterChange:Ro,getPopupContainer:un||xo,rootClassName:jt()(Ze,Er)}),sa=dc(Sa,Ci,ba);Ii.filters=ka,Ii.filterStates=Ci;const as=E.useMemo(()=>{const ao={};return Object.keys(ka).forEach(oi=>{ka[oi]!==null&&(ao[oi]=ka[oi])}),Object.assign(Object.assign({},Ni),{filters:ao})},[Ni,ka]),[Ys]=vu(as),ol=(ao,oi)=>{vs({pagination:Object.assign(Object.assign({},Ii.pagination),{current:ao,pageSize:oi})},"paginate")},[ji,pl]=ou(sa.length,ol,bt);Ii.pagination=bt===!1?{}:nu(ji,bt),Ii.resetPagination=pl;const ja=E.useMemo(()=>{if(bt===!1||!ji.pageSize)return sa;const{current:ao=1,total:oi,pageSize:la=Rc}=ji;return sa.length<oi?sa.length>la?sa.slice((ao-1)*la,ao*la):sa:sa.slice((ao-1)*la,ao*la)},[!!bt,sa,ji==null?void 0:ji.current,ji==null?void 0:ji.pageSize,ji==null?void 0:ji.total]),[ss,Ss]=Ho({prefixCls:cr,data:sa,pageData:ja,getRowKey:ti,getRecordByKey:Aa,expandType:va,childrenColumnName:ba,locale:Uo,getPopupContainer:un||xo},_t),qa=(ao,oi,la)=>{let Pa;return typeof Ht=="function"?Pa=jt()(Ht(ao,oi,la)):Pa=jt()(Ht),jt()({[`${cr}-row-selected`]:Ss.has(ti(ao,oi))},Pa)};pi.__PARENT_RENDER_ICON__=pi.expandIcon,pi.expandIcon=pi.expandIcon||er||sl(Uo),va==="nest"&&pi.expandIconColumnIndex===void 0?pi.expandIconColumnIndex=_t?1:0:pi.expandIconColumnIndex>0&&_t&&(pi.expandIconColumnIndex-=1),typeof pi.indentSize!="number"&&(pi.indentSize=typeof br=="number"?br:15);const ls=E.useCallback(ao=>Ys(ss(aa(Ko(ao)))),[Ko,aa,ss]);let ys,zs;if(bt!==!1&&(ji!=null&&ji.total)){let ao;ji.size?ao=ji.size:ao=So==="small"||So==="middle"?"small":void 0;const oi=cs=>E.createElement(el.Z,Object.assign({},ji,{className:jt()(`${cr}-pagination ${cr}-pagination-${cs}`,ji.className),size:ao})),la=Mo==="rtl"?"left":"right",{position:Pa}=ji;if(Pa!==null&&Array.isArray(Pa)){const cs=Pa.find(Ca=>Ca.includes("top")),Cs=Pa.find(Ca=>Ca.includes("bottom")),Rs=Pa.every(Ca=>`${Ca}`=="none");!cs&&!Cs&&!Rs&&(zs=oi(la)),cs&&(ys=oi(cs.toLowerCase().replace("top",""))),Cs&&(zs=oi(Cs.toLowerCase().replace("bottom","")))}else zs=oi(la)}let Ps;typeof Bn=="boolean"?Ps={spinning:Bn}:typeof Bn=="object"&&(Ps=Object.assign({spinning:!0},Bn));const As=jt()(Ti,Er,`${cr}-wrapper`,Xo==null?void 0:Xo.className,{[`${cr}-wrapper-rtl`]:Mo==="rtl"},ze,Ze,jo),Fl=Object.assign(Object.assign({},Xo==null?void 0:Xo.style),We),vl=typeof(or==null?void 0:or.emptyText)!="undefined"?or.emptyText:(Pi==null?void 0:Pi("Table"))||E.createElement(Rr.Z,{componentName:"Table"}),kl=Fn?yu:Su,xl={},Ml=E.useMemo(()=>{const{fontSize:ao,lineHeight:oi,lineWidth:la,padding:Pa,paddingXS:cs,paddingSM:Cs}=rr,Rs=Math.floor(ao*oi);switch(So){case"middle":return Cs*2+Rs+la;case"small":return cs*2+Rs+la;default:return Pa*2+Rs+la}},[rr,So]);return Fn&&(xl.listItemHeight=Ml),ko(E.createElement("div",{ref:Go,className:As,style:Fl},E.createElement(tl.Z,Object.assign({spinning:!1},Ps),ys,E.createElement(kl,Object.assign({},xl,ro,{ref:Ai,columns:Yr,direction:Mo,expandable:pi,prefixCls:cr,className:jt()({[`${cr}-middle`]:So==="middle",[`${cr}-small`]:So==="small",[`${cr}-bordered`]:ot,[`${cr}-empty`]:Di.length===0},Ti,Er,jo),data:ja,rowKey:ti,rowClassName:qa,emptyText:vl,internalHooks:Ee,internalRefs:Mr,transformColumns:ls,getContainerWidth:Or})),zs)))};var Hu=E.forwardRef(zu);const Uu=(ye,Ce)=>{const xe=E.useRef(0);return xe.current+=1,E.createElement(Hu,Object.assign({},ye,{ref:Ce,_renderTimes:xe.current}))},rl=E.forwardRef(Uu);rl.SELECTION_COLUMN=eo,rl.EXPAND_COLUMN=_e,rl.SELECTION_ALL=To,rl.SELECTION_INVERT=xi,rl.SELECTION_NONE=fo,rl.Column=He,rl.ColumnGroup=dr,rl.Summary=we;var Gu=rl,Zu=Gu},66309:function(ft,Je,te){"use strict";te.d(Je,{default:function(){return at}});var E=te(67294),_e=te(13144),Ee=te.n(_e),pe=te(10366),ve=te(98787),fe=te(69760),me=te(96159),de=te(45353),ce=te(53124),ue=te(16777),le=te(24327),he=te(14747),ie=te(43259),ne=te(83559);const a=et=>{const{paddingXXS:De,lineWidth:Oe,tagPaddingHorizontal:ke,componentCls:lt,calc:Xe}=et,xt=Xe(ke).sub(Oe).equal(),Ot=Xe(De).sub(Oe).equal();return{[lt]:Object.assign(Object.assign({},(0,he.Wf)(et)),{display:"inline-block",height:"auto",marginInlineEnd:et.marginXS,paddingInline:xt,fontSize:et.tagFontSize,lineHeight:et.tagLineHeight,whiteSpace:"nowrap",background:et.defaultBg,border:`${(0,ue.unit)(et.lineWidth)} ${et.lineType} ${et.colorBorder}`,borderRadius:et.borderRadiusSM,opacity:1,transition:`all ${et.motionDurationMid}`,textAlign:"start",position:"relative",[`&${lt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:et.defaultColor},[`${lt}-close-icon`]:{marginInlineStart:Ot,fontSize:et.tagIconSize,color:et.colorTextDescription,cursor:"pointer",transition:`all ${et.motionDurationMid}`,"&:hover":{color:et.colorTextHeading}},[`&${lt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${et.iconCls}-close, ${et.iconCls}-close:hover`]:{color:et.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${lt}-checkable-checked):hover`]:{color:et.colorPrimary,backgroundColor:et.colorFillSecondary},"&:active, &-checked":{color:et.colorTextLightSolid},"&-checked":{backgroundColor:et.colorPrimary,"&:hover":{backgroundColor:et.colorPrimaryHover}},"&:active":{backgroundColor:et.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${et.iconCls} + span, > span + ${et.iconCls}`]:{marginInlineStart:xt}}),[`${lt}-borderless`]:{borderColor:"transparent",background:et.tagBorderlessBg}}},y=et=>{const{lineWidth:De,fontSizeIcon:Oe,calc:ke}=et,lt=et.fontSizeSM;return(0,ie.mergeToken)(et,{tagFontSize:lt,tagLineHeight:(0,ue.unit)(ke(et.lineHeightSM).mul(lt).equal()),tagIconSize:ke(Oe).sub(ke(De).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:et.defaultBg})},x=et=>({defaultBg:new le.FastColor(et.colorFillQuaternary).onBackground(et.colorBgContainer).toHexString(),defaultColor:et.colorText});var b=(0,ne.I$)("Tag",et=>{const De=y(et);return a(De)},x),z=function(et,De){var Oe={};for(var ke in et)Object.prototype.hasOwnProperty.call(et,ke)&&De.indexOf(ke)<0&&(Oe[ke]=et[ke]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ke=Object.getOwnPropertySymbols(et);lt<ke.length;lt++)De.indexOf(ke[lt])<0&&Object.prototype.propertyIsEnumerable.call(et,ke[lt])&&(Oe[ke[lt]]=et[ke[lt]]);return Oe},re=E.forwardRef((et,De)=>{const{prefixCls:Oe,style:ke,className:lt,checked:Xe,onChange:xt,onClick:Ot}=et,Dt=z(et,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Kt,tag:St}=E.useContext(ce.E_),gt=Gt=>{xt==null||xt(!Xe),Ot==null||Ot(Gt)},ht=Kt("tag",Oe),[Qt,yt,Zt]=b(ht),Ye=Ee()(ht,`${ht}-checkable`,{[`${ht}-checkable-checked`]:Xe},St==null?void 0:St.className,lt,yt,Zt);return Qt(E.createElement("span",Object.assign({},Dt,{ref:De,style:Object.assign(Object.assign({},ke),St==null?void 0:St.style),className:Ye,onClick:gt})))}),se=te(98719);const ge=et=>(0,se.Z)(et,(De,Oe)=>{let{textColor:ke,lightBorderColor:lt,lightColor:Xe,darkColor:xt}=Oe;return{[`${et.componentCls}${et.componentCls}-${De}`]:{color:ke,background:Xe,borderColor:lt,"&-inverse":{color:et.colorTextLightSolid,background:xt,borderColor:xt},[`&${et.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Se=(0,ne.bk)(["Tag","preset"],et=>{const De=y(et);return ge(De)},x);function Pe(et){return typeof et!="string"?et:et.charAt(0).toUpperCase()+et.slice(1)}const Re=(et,De,Oe)=>{const ke=Pe(Oe);return{[`${et.componentCls}${et.componentCls}-${De}`]:{color:et[`color${Oe}`],background:et[`color${ke}Bg`],borderColor:et[`color${ke}Border`],[`&${et.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Le=(0,ne.bk)(["Tag","status"],et=>{const De=y(et);return[Re(De,"success","Success"),Re(De,"processing","Info"),Re(De,"error","Error"),Re(De,"warning","Warning")]},x),Fe=function(et,De){var Oe={};for(var ke in et)Object.prototype.hasOwnProperty.call(et,ke)&&De.indexOf(ke)<0&&(Oe[ke]=et[ke]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,ke=Object.getOwnPropertySymbols(et);lt<ke.length;lt++)De.indexOf(ke[lt])<0&&Object.prototype.propertyIsEnumerable.call(et,ke[lt])&&(Oe[ke[lt]]=et[ke[lt]]);return Oe};const vt=E.forwardRef((et,De)=>{const{prefixCls:Oe,className:ke,rootClassName:lt,style:Xe,children:xt,icon:Ot,color:Dt,onClose:Kt,bordered:St=!0,visible:gt}=et,ht=Fe(et,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Qt,direction:yt,tag:Zt}=E.useContext(ce.E_),[Ye,Gt]=E.useState(!0),fn=(0,pe.Z)(ht,["closeIcon","closable"]);E.useEffect(()=>{gt!==void 0&&Gt(gt)},[gt]);const hn=(0,ve.o2)(Dt),mn=(0,ve.yT)(Dt),Mn=hn||mn,Rt=Object.assign(Object.assign({backgroundColor:Dt&&!Mn?Dt:void 0},Zt==null?void 0:Zt.style),Xe),$t=Qt("tag",Oe),[Ct,Be,rt]=b($t),tt=Ee()($t,Zt==null?void 0:Zt.className,{[`${$t}-${Dt}`]:Mn,[`${$t}-has-color`]:Dt&&!Mn,[`${$t}-hidden`]:!Ye,[`${$t}-rtl`]:yt==="rtl",[`${$t}-borderless`]:!St},ke,lt,Be,rt),ct=_n=>{_n.stopPropagation(),Kt==null||Kt(_n),!_n.defaultPrevented&&Gt(!1)},[,qe]=(0,fe.Z)((0,fe.w)(et),(0,fe.w)(Zt),{closable:!1,closeIconRender:_n=>{const Rn=E.createElement("span",{className:`${$t}-close-icon`,onClick:ct},_n);return(0,me.wm)(_n,Rn,wn=>({onClick:Ln=>{var en;(en=wn==null?void 0:wn.onClick)===null||en===void 0||en.call(wn,Ln),ct(Ln)},className:Ee()(wn==null?void 0:wn.className,`${$t}-close-icon`)}))}}),Ge=typeof ht.onClick=="function"||xt&&xt.type==="a",ut=Ot||null,Pt=ut?E.createElement(E.Fragment,null,ut,xt&&E.createElement("span",null,xt)):xt,Ft=E.createElement("span",Object.assign({},fn,{ref:De,className:tt,style:Rt}),Pt,qe,hn&&E.createElement(Se,{key:"preset",prefixCls:$t}),mn&&E.createElement(Le,{key:"status",prefixCls:$t}));return Ct(Ge?E.createElement(de.Z,{component:"Tag"},Ft):Ft)});vt.CheckableTag=re;var at=vt},51380:function(ft,Je,te){"use strict";te.d(Je,{default:function(){return Gt}});var E=te(70593),_e=te(96641),Ee=te(67294),pe=te(46214),ve=te(83963),fe={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"},me=fe,de=te(84180),ce=function(hn,mn){return Ee.createElement(de.Z,(0,ve.Z)({},hn,{ref:mn,icon:me}))},ue=Ee.forwardRef(ce),le=ue,he={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"},ie=he,ne=function(hn,mn){return Ee.createElement(de.Z,(0,ve.Z)({},hn,{ref:mn,icon:ie}))},a=Ee.forwardRef(ne),y=a,x=te(13144),b=te.n(x),z=te(10225),ee=te(1089),re=te(53124),se={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"},ge=se,Se=function(hn,mn){return Ee.createElement(de.Z,(0,ve.Z)({},hn,{ref:mn,icon:ge}))},Pe=Ee.forwardRef(Se),Re=Pe,Le=te(33603),Fe=te(15729),Ie=te(40561);const vt=4;function at(fn){const{dropPosition:hn,dropLevelOffset:mn,prefixCls:Mn,indent:Rt,direction:$t="ltr"}=fn,Ct=$t==="ltr"?"left":"right",Be=$t==="ltr"?"right":"left",rt={[Ct]:-mn*Rt+vt,[Be]:0};switch(hn){case-1:rt.top=-3;break;case 1:rt.bottom=-3;break;default:rt.bottom=-3,rt[Ct]=Rt+vt;break}return Ee.createElement("div",{style:rt,className:`${Mn}-drop-indicator`})}var et=at,De=te(7349),ke=Ee.forwardRef((fn,hn)=>{var mn;const{getPrefixCls:Mn,direction:Rt,virtual:$t,tree:Ct}=Ee.useContext(re.E_),{prefixCls:Be,className:rt,showIcon:tt=!1,showLine:ct,switcherIcon:qe,switcherLoadingIcon:Ge,blockNode:ut=!1,children:Pt,checkable:Ft=!1,selectable:_n=!0,draggable:Rn,motion:wn,style:Ln}=fn,en=Mn("tree",Be),Sn=Mn(),tn=wn!=null?wn:Object.assign(Object.assign({},(0,Le.Z)(Sn)),{motionAppear:!1}),Ke=Object.assign(Object.assign({},fn),{checkable:Ft,selectable:_n,showIcon:tt,motion:tn,blockNode:ut,showLine:!!ct,dropIndicatorRender:et}),[At,Nt,gn]=(0,Ie.ZP)(en),[,xn]=(0,Fe.ZP)(),Nn=xn.paddingXS/2+(((mn=xn.Tree)===null||mn===void 0?void 0:mn.titleHeight)||xn.controlHeightSM),Pn=Ee.useMemo(()=>{if(!Rn)return!1;let Hn={};switch(typeof Rn){case"function":Hn.nodeDraggable=Rn;break;case"object":Hn=Object.assign({},Rn);break;default:break}return Hn.icon!==!1&&(Hn.icon=Hn.icon||Ee.createElement(Re,null)),Hn},[Rn]),ur=Hn=>Ee.createElement(De.Z,{prefixCls:en,switcherIcon:qe,switcherLoadingIcon:Ge,treeNodeProps:Hn,showLine:ct});return At(Ee.createElement(E.ZP,Object.assign({itemHeight:Nn,ref:hn,virtual:$t},Ke,{style:Object.assign(Object.assign({},Ct==null?void 0:Ct.style),Ln),prefixCls:en,className:b()({[`${en}-icon-hide`]:!tt,[`${en}-block-node`]:ut,[`${en}-unselectable`]:!_n,[`${en}-rtl`]:Rt==="rtl"},Ct==null?void 0:Ct.className,rt,Nt,gn),direction:Rt,checkable:Ft&&Ee.createElement("span",{className:`${en}-checkbox-inner`}),selectable:_n,switcherIcon:ur,draggable:Pn}),Pt))});const lt=0,Xe=1,xt=2;function Ot(fn,hn,mn){const{key:Mn,children:Rt}=mn;function $t(Ct){const Be=Ct[Mn],rt=Ct[Rt];hn(Be,Ct)!==!1&&Ot(rt||[],hn,mn)}fn.forEach($t)}function Dt(fn){let{treeData:hn,expandedKeys:mn,startKey:Mn,endKey:Rt,fieldNames:$t}=fn;const Ct=[];let Be=lt;if(Mn&&Mn===Rt)return[Mn];if(!Mn||!Rt)return[];function rt(tt){return tt===Mn||tt===Rt}return Ot(hn,tt=>{if(Be===xt)return!1;if(rt(tt)){if(Ct.push(tt),Be===lt)Be=Xe;else if(Be===Xe)return Be=xt,!1}else Be===Xe&&Ct.push(tt);return mn.includes(tt)},(0,ee.w$)($t)),Ct}function Kt(fn,hn,mn){const Mn=(0,_e.Z)(hn),Rt=[];return Ot(fn,($t,Ct)=>{const Be=Mn.indexOf($t);return Be!==-1&&(Rt.push(Ct),Mn.splice(Be,1)),!!Mn.length},(0,ee.w$)(mn)),Rt}var St=function(fn,hn){var mn={};for(var Mn in fn)Object.prototype.hasOwnProperty.call(fn,Mn)&&hn.indexOf(Mn)<0&&(mn[Mn]=fn[Mn]);if(fn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Mn=Object.getOwnPropertySymbols(fn);Rt<Mn.length;Rt++)hn.indexOf(Mn[Rt])<0&&Object.prototype.propertyIsEnumerable.call(fn,Mn[Rt])&&(mn[Mn[Rt]]=fn[Mn[Rt]]);return mn};function gt(fn){const{isLeaf:hn,expanded:mn}=fn;return hn?Ee.createElement(pe.Z,null):mn?Ee.createElement(le,null):Ee.createElement(y,null)}function ht(fn){let{treeData:hn,children:mn}=fn;return hn||(0,ee.zn)(mn)}const Qt=(fn,hn)=>{var{defaultExpandAll:mn,defaultExpandParent:Mn,defaultExpandedKeys:Rt}=fn,$t=St(fn,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ct=Ee.useRef(null),Be=Ee.useRef(null),rt=()=>{const{keyEntities:At}=(0,ee.I8)(ht($t));let Nt;return mn?Nt=Object.keys(At):Mn?Nt=(0,z.r7)($t.expandedKeys||Rt||[],At):Nt=$t.expandedKeys||Rt||[],Nt},[tt,ct]=Ee.useState($t.selectedKeys||$t.defaultSelectedKeys||[]),[qe,Ge]=Ee.useState(()=>rt());Ee.useEffect(()=>{"selectedKeys"in $t&&ct($t.selectedKeys)},[$t.selectedKeys]),Ee.useEffect(()=>{"expandedKeys"in $t&&Ge($t.expandedKeys)},[$t.expandedKeys]);const ut=(At,Nt)=>{var gn;return"expandedKeys"in $t||Ge(At),(gn=$t.onExpand)===null||gn===void 0?void 0:gn.call($t,At,Nt)},Pt=(At,Nt)=>{var gn;const{multiple:xn,fieldNames:Nn}=$t,{node:Pn,nativeEvent:ur}=Nt,{key:Hn=""}=Pn,Nr=ht($t),no=Object.assign(Object.assign({},Nt),{selected:!0}),Fr=(ur==null?void 0:ur.ctrlKey)||(ur==null?void 0:ur.metaKey),Tn=ur==null?void 0:ur.shiftKey;let Yn;xn&&Fr?(Yn=At,Ct.current=Hn,Be.current=Yn,no.selectedNodes=Kt(Nr,Yn,Nn)):xn&&Tn?(Yn=Array.from(new Set([].concat((0,_e.Z)(Be.current||[]),(0,_e.Z)(Dt({treeData:Nr,expandedKeys:qe,startKey:Hn,endKey:Ct.current,fieldNames:Nn}))))),no.selectedNodes=Kt(Nr,Yn,Nn)):(Yn=[Hn],Ct.current=Hn,Be.current=Yn,no.selectedNodes=Kt(Nr,Yn,Nn)),(gn=$t.onSelect)===null||gn===void 0||gn.call($t,Yn,no),"selectedKeys"in $t||ct(Yn)},{getPrefixCls:Ft,direction:_n}=Ee.useContext(re.E_),{prefixCls:Rn,className:wn,showIcon:Ln=!0,expandAction:en="click"}=$t,Sn=St($t,["prefixCls","className","showIcon","expandAction"]),tn=Ft("tree",Rn),Ke=b()(`${tn}-directory`,{[`${tn}-directory-rtl`]:_n==="rtl"},wn);return Ee.createElement(ke,Object.assign({icon:gt,ref:hn,blockNode:!0},Sn,{showIcon:Ln,expandAction:en,prefixCls:tn,className:Ke,expandedKeys:qe,selectedKeys:tt,onSelect:Pt,onExpand:ut}))};var Zt=Ee.forwardRef(Qt);const Ye=ke;Ye.DirectoryTree=Zt,Ye.TreeNode=E.OF;var Gt=Ye},40561:function(ft,Je,te){"use strict";te.d(Je,{ZP:function(){return a},Yk:function(){return he},TM:function(){return ie}});var E=te(16777),_e=te(63185),Ee=te(14747),pe=te(33507),ve=te(43259),fe=te(83559);const me=y=>{let{treeCls:x,treeNodeCls:b,directoryNodeSelectedBg:z,directoryNodeSelectedColor:ee,motionDurationMid:re,borderRadius:se,controlItemBgHover:ge}=y;return{[`${x}${x}-directory ${b}`]:{[`${x}-node-content-wrapper`]:{position:"static",[`> *:not(${x}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${re}`,content:'""',borderRadius:se},"&:hover:before":{background:ge}},[`${x}-switcher, ${x}-checkbox, ${x}-draggable-icon`]:{zIndex:1},"&-selected":{[`${x}-switcher, ${x}-draggable-icon`]:{color:ee},[`${x}-node-content-wrapper`]:{color:ee,background:"transparent","&:before, &:hover:before":{background:z}}}}}},de=new E.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ce=(y,x)=>({[`.${y}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${x.motionDurationSlow}`}}}),ue=(y,x)=>({[`.${y}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:x.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,E.unit)(x.lineWidthBold)} solid ${x.colorPrimary}`,borderRadius:"50%",content:'""'}}}),le=(y,x)=>{const{treeCls:b,treeNodeCls:z,treeNodePadding:ee,titleHeight:re,indentSize:se,nodeSelectedBg:ge,nodeHoverBg:Se,colorTextQuaternary:Pe,controlItemBgActiveDisabled:Re}=x;return{[b]:Object.assign(Object.assign({},(0,Ee.Wf)(x)),{background:x.colorBgContainer,borderRadius:x.borderRadius,transition:`background-color ${x.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${b}-rtl ${b}-switcher_close ${b}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${b}-active-focused)`]:Object.assign({},(0,Ee.oN)(x)),[`${b}-list-holder-inner`]:{alignItems:"flex-start"},[`&${b}-block-node`]:{[`${b}-list-holder-inner`]:{alignItems:"stretch",[`${b}-node-content-wrapper`]:{flex:"auto"},[`${z}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${x.colorPrimary}`,opacity:0,animationName:de,animationDuration:x.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:x.borderRadius}}},[z]:{display:"flex",alignItems:"flex-start",marginBottom:ee,lineHeight:(0,E.unit)(re),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:ee},[`&-disabled ${b}-node-content-wrapper`]:{color:x.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${b}-checkbox-disabled + ${b}-node-selected,&${z}-disabled${z}-selected ${b}-node-content-wrapper`]:{backgroundColor:Re},[`${b}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${z}-disabled)`]:{[`${b}-node-content-wrapper`]:{"&:hover":{color:x.nodeHoverColor}}},[`&-active ${b}-node-content-wrapper`]:{background:x.controlItemBgHover},[`&:not(${z}-disabled).filter-node ${b}-title`]:{color:x.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${b}-draggable-icon`]:{flexShrink:0,width:re,textAlign:"center",visibility:"visible",color:Pe},[`&${z}-disabled ${b}-draggable-icon`]:{visibility:"hidden"}}},[`${b}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:se}},[`${b}-draggable-icon`]:{visibility:"hidden"},[`${b}-switcher, ${b}-checkbox`]:{marginInlineEnd:x.calc(x.calc(re).sub(x.controlInteractiveSize)).div(2).equal()},[`${b}-switcher`]:Object.assign(Object.assign({},ce(y,x)),{position:"relative",flex:"none",alignSelf:"stretch",width:re,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${x.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:re,height:re,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:x.borderRadius,transition:`all ${x.motionDurationSlow}`},[`&:not(${b}-switcher-noop):hover:before`]:{backgroundColor:x.colorBgTextHover},[`&_close ${b}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:x.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x.calc(re).div(2).equal(),bottom:x.calc(ee).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${x.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:x.calc(x.calc(re).div(2).equal()).mul(.8).equal(),height:x.calc(re).div(2).equal(),borderBottom:`1px solid ${x.colorBorder}`,content:'""'}}}),[`${b}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:re,paddingBlock:0,paddingInline:x.paddingXS,background:"transparent",borderRadius:x.borderRadius,cursor:"pointer",transition:`all ${x.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ue(y,x)),{"&:hover":{backgroundColor:Se},[`&${b}-node-selected`]:{color:x.nodeSelectedColor,backgroundColor:ge},[`${b}-iconEle`]:{display:"inline-block",width:re,height:re,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${b}-unselectable ${b}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${z}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${x.colorPrimary}`},"&-show-line":{[`${b}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x.calc(re).div(2).equal(),bottom:x.calc(ee).mul(-1).equal(),borderInlineEnd:`1px solid ${x.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${b}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${z}-leaf-last ${b}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,E.unit)(x.calc(re).div(2).equal())} !important`}})}},he=function(y,x){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const z=`.${y}`,ee=`${z}-treenode`,re=x.calc(x.paddingXS).div(2).equal(),se=(0,ve.mergeToken)(x,{treeCls:z,treeNodeCls:ee,treeNodePadding:re});return[le(y,se),b&&me(se)].filter(Boolean)},ie=y=>{const{controlHeightSM:x,controlItemBgHover:b,controlItemBgActive:z}=y,ee=x;return{titleHeight:ee,indentSize:ee,nodeHoverBg:b,nodeHoverColor:y.colorText,nodeSelectedBg:z,nodeSelectedColor:y.colorText}},ne=y=>{const{colorTextLightSolid:x,colorPrimary:b}=y;return Object.assign(Object.assign({},ie(y)),{directoryNodeSelectedColor:x,directoryNodeSelectedBg:b})};var a=(0,fe.I$)("Tree",(y,x)=>{let{prefixCls:b}=x;return[{[y.componentCls]:(0,_e.C2)(`${b}-checkbox`,y)},he(b,y),(0,pe.Z)(y)]},ne)},7349:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return Pe}});var E=te(67294),_e=te(83963),Ee={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"},pe=Ee,ve=te(84180),fe=function(Le,Fe){return E.createElement(ve.Z,(0,_e.Z)({},Le,{ref:Fe,icon:pe}))},me=E.forwardRef(fe),de=me,ce=te(46214),ue=te(77322),le={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"},he=le,ie=function(Le,Fe){return E.createElement(ve.Z,(0,_e.Z)({},Le,{ref:Fe,icon:he}))},ne=E.forwardRef(ie),a=ne,y={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"},x=y,b=function(Le,Fe){return E.createElement(ve.Z,(0,_e.Z)({},Le,{ref:Fe,icon:x}))},z=E.forwardRef(b),ee=z,re=te(13144),se=te.n(re),ge=te(96159),Pe=Re=>{const{prefixCls:Le,switcherIcon:Fe,treeNodeProps:Ie,showLine:vt,switcherLoadingIcon:at}=Re,{isLeaf:et,expanded:De,loading:Oe}=Ie;if(Oe)return E.isValidElement(at)?at:E.createElement(ue.Z,{className:`${Le}-switcher-loading-icon`});let ke;if(vt&&typeof vt=="object"&&(ke=vt.showLeafIcon),et){if(!vt)return null;if(typeof ke!="boolean"&&ke){const xt=typeof ke=="function"?ke(Ie):ke,Ot=`${Le}-switcher-line-custom-icon`;return E.isValidElement(xt)?(0,ge.Tm)(xt,{className:se()(xt.props.className||"",Ot)}):xt}return ke?E.createElement(ce.Z,{className:`${Le}-switcher-line-icon`}):E.createElement("span",{className:`${Le}-switcher-leaf-line`})}const lt=`${Le}-switcher-icon`,Xe=typeof Fe=="function"?Fe(Ie):Fe;return E.isValidElement(Xe)?(0,ge.Tm)(Xe,{className:se()(Xe.props.className||"",lt)}):Xe!==void 0?Xe:vt?De?E.createElement(a,{className:`${Le}-switcher-line-icon`}):E.createElement(ee,{className:`${Le}-switcher-line-icon`}):E.createElement(de,{className:lt})}},46214:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return de}});var E=te(83963),_e=te(67294),Ee={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"},pe=Ee,ve=te(84180),fe=function(ue,le){return _e.createElement(ve.Z,(0,E.Z)({},ue,{ref:le,icon:pe}))},me=_e.forwardRef(fe),de=me},55007:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return de}});var E=te(83963),_e=te(67294),Ee={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"},pe=Ee,ve=te(84180),fe=function(ue,le){return _e.createElement(ve.Z,(0,E.Z)({},ue,{ref:le,icon:pe}))},me=_e.forwardRef(fe),de=me},79269:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return de}});var E=te(83963),_e=te(67294),Ee={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"},pe=Ee,ve=te(84180),fe=function(ue,le){return _e.createElement(ve.Z,(0,E.Z)({},ue,{ref:le,icon:pe}))},me=_e.forwardRef(fe),de=me},17689:function(ft,Je){var te,E;(function(){"use strict";var _e={}.hasOwnProperty,Ee="[native code]";function pe(){for(var ve=[],fe=0;fe<arguments.length;fe++){var me=arguments[fe];if(me){var de=typeof me;if(de==="string"||de==="number")ve.push(me);else if(Array.isArray(me)){if(me.length){var ce=pe.apply(null,me);ce&&ve.push(ce)}}else if(de==="object"){if(me.toString!==Object.prototype.toString&&!me.toString.toString().includes("[native code]")){ve.push(me.toString());continue}for(var ue in me)_e.call(me,ue)&&me[ue]&&ve.push(ue)}}}return ve.join(" ")}ft.exports?(pe.default=pe,ft.exports=pe):(te=[],E=function(){return pe}.apply(Je,te),E!==void 0&&(ft.exports=E))})()},92389:function(ft,Je){"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(_e){var Ee=_e.keyCode;if(_e.altKey&&!_e.ctrlKey||_e.metaKey||Ee>=te.F1&&Ee<=te.F12)return!1;switch(Ee){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(_e){if(_e>=te.ZERO&&_e<=te.NINE||_e>=te.NUM_ZERO&&_e<=te.NUM_MULTIPLY||_e>=te.A&&_e<=te.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_e===0)return!0;switch(_e){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}}};Je.Z=te},82702:function(ft,Je,te){var E=te(34155);(function(_e,Ee){ft.exports=Ee()})(this,function(){"use strict";function _e(tt){var ct=typeof tt;return tt!==null&&(ct==="object"||ct==="function")}function Ee(tt){return typeof tt=="function"}var pe=void 0;Array.isArray?pe=Array.isArray:pe=function(tt){return Object.prototype.toString.call(tt)==="[object Array]"};var ve=pe,fe=0,me=void 0,de=void 0,ce=function(ct,qe){se[fe]=ct,se[fe+1]=qe,fe+=2,fe===2&&(de?de(ge):Pe())};function ue(tt){de=tt}function le(tt){ce=tt}var he=typeof window!="undefined"?window:void 0,ie=he||{},ne=ie.MutationObserver||ie.WebKitMutationObserver,a=typeof self=="undefined"&&typeof E!="undefined"&&{}.toString.call(E)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function x(){return function(){return E.nextTick(ge)}}function b(){return typeof me!="undefined"?function(){me(ge)}:re()}function z(){var tt=0,ct=new ne(ge),qe=document.createTextNode("");return ct.observe(qe,{characterData:!0}),function(){qe.data=tt=++tt%2}}function ee(){var tt=new MessageChannel;return tt.port1.onmessage=ge,function(){return tt.port2.postMessage(0)}}function re(){var tt=setTimeout;return function(){return tt(ge,1)}}var se=new Array(1e3);function ge(){for(var tt=0;tt<fe;tt+=2){var ct=se[tt],qe=se[tt+1];ct(qe),se[tt]=void 0,se[tt+1]=void 0}fe=0}function Se(){try{var tt=Function("return this")().require("vertx");return me=tt.runOnLoop||tt.runOnContext,b()}catch(ct){return re()}}var Pe=void 0;a?Pe=x():ne?Pe=z():y?Pe=ee():he===void 0?Pe=Se():Pe=re();function Re(tt,ct){var qe=this,Ge=new this.constructor(Ie);Ge[Fe]===void 0&&Gt(Ge);var ut=qe._state;if(ut){var Pt=arguments[ut-1];ce(function(){return Qt(ut,Ge,Pt,qe._result)})}else gt(qe,Ge,tt,ct);return Ge}function Le(tt){var ct=this;if(tt&&typeof tt=="object"&&tt.constructor===ct)return tt;var qe=new ct(Ie);return Ot(qe,tt),qe}var Fe=Math.random().toString(36).substring(2);function Ie(){}var vt=void 0,at=1,et=2;function De(){return new TypeError("You cannot resolve a promise with itself")}function Oe(){return new TypeError("A promises callback cannot return that same promise.")}function ke(tt,ct,qe,Ge){try{tt.call(ct,qe,Ge)}catch(ut){return ut}}function lt(tt,ct,qe){ce(function(Ge){var ut=!1,Pt=ke(qe,ct,function(Ft){ut||(ut=!0,ct!==Ft?Ot(Ge,Ft):Kt(Ge,Ft))},function(Ft){ut||(ut=!0,St(Ge,Ft))},"Settle: "+(Ge._label||" unknown promise"));!ut&&Pt&&(ut=!0,St(Ge,Pt))},tt)}function Xe(tt,ct){ct._state===at?Kt(tt,ct._result):ct._state===et?St(tt,ct._result):gt(ct,void 0,function(qe){return Ot(tt,qe)},function(qe){return St(tt,qe)})}function xt(tt,ct,qe){ct.constructor===tt.constructor&&qe===Re&&ct.constructor.resolve===Le?Xe(tt,ct):qe===void 0?Kt(tt,ct):Ee(qe)?lt(tt,ct,qe):Kt(tt,ct)}function Ot(tt,ct){if(tt===ct)St(tt,De());else if(_e(ct)){var qe=void 0;try{qe=ct.then}catch(Ge){St(tt,Ge);return}xt(tt,ct,qe)}else Kt(tt,ct)}function Dt(tt){tt._onerror&&tt._onerror(tt._result),ht(tt)}function Kt(tt,ct){tt._state===vt&&(tt._result=ct,tt._state=at,tt._subscribers.length!==0&&ce(ht,tt))}function St(tt,ct){tt._state===vt&&(tt._state=et,tt._result=ct,ce(Dt,tt))}function gt(tt,ct,qe,Ge){var ut=tt._subscribers,Pt=ut.length;tt._onerror=null,ut[Pt]=ct,ut[Pt+at]=qe,ut[Pt+et]=Ge,Pt===0&&tt._state&&ce(ht,tt)}function ht(tt){var ct=tt._subscribers,qe=tt._state;if(ct.length!==0){for(var Ge=void 0,ut=void 0,Pt=tt._result,Ft=0;Ft<ct.length;Ft+=3)Ge=ct[Ft],ut=ct[Ft+qe],Ge?Qt(qe,Ge,ut,Pt):ut(Pt);tt._subscribers.length=0}}function Qt(tt,ct,qe,Ge){var ut=Ee(qe),Pt=void 0,Ft=void 0,_n=!0;if(ut){try{Pt=qe(Ge)}catch(Rn){_n=!1,Ft=Rn}if(ct===Pt){St(ct,Oe());return}}else Pt=Ge;ct._state!==vt||(ut&&_n?Ot(ct,Pt):_n===!1?St(ct,Ft):tt===at?Kt(ct,Pt):tt===et&&St(ct,Pt))}function yt(tt,ct){try{ct(function(Ge){Ot(tt,Ge)},function(Ge){St(tt,Ge)})}catch(qe){St(tt,qe)}}var Zt=0;function Ye(){return Zt++}function Gt(tt){tt[Fe]=Zt++,tt._state=void 0,tt._result=void 0,tt._subscribers=[]}function fn(){return new Error("Array Methods must be provided an Array")}var hn=function(){function tt(ct,qe){this._instanceConstructor=ct,this.promise=new ct(Ie),this.promise[Fe]||Gt(this.promise),ve(qe)?(this.length=qe.length,this._remaining=qe.length,this._result=new Array(this.length),this.length===0?Kt(this.promise,this._result):(this.length=this.length||0,this._enumerate(qe),this._remaining===0&&Kt(this.promise,this._result))):St(this.promise,fn())}return tt.prototype._enumerate=function(qe){for(var Ge=0;this._state===vt&&Ge<qe.length;Ge++)this._eachEntry(qe[Ge],Ge)},tt.prototype._eachEntry=function(qe,Ge){var ut=this._instanceConstructor,Pt=ut.resolve;if(Pt===Le){var Ft=void 0,_n=void 0,Rn=!1;try{Ft=qe.then}catch(Ln){Rn=!0,_n=Ln}if(Ft===Re&&qe._state!==vt)this._settledAt(qe._state,Ge,qe._result);else if(typeof Ft!="function")this._remaining--,this._result[Ge]=qe;else if(ut===Be){var wn=new ut(Ie);Rn?St(wn,_n):xt(wn,qe,Ft),this._willSettleAt(wn,Ge)}else this._willSettleAt(new ut(function(Ln){return Ln(qe)}),Ge)}else this._willSettleAt(Pt(qe),Ge)},tt.prototype._settledAt=function(qe,Ge,ut){var Pt=this.promise;Pt._state===vt&&(this._remaining--,qe===et?St(Pt,ut):this._result[Ge]=ut),this._remaining===0&&Kt(Pt,this._result)},tt.prototype._willSettleAt=function(qe,Ge){var ut=this;gt(qe,void 0,function(Pt){return ut._settledAt(at,Ge,Pt)},function(Pt){return ut._settledAt(et,Ge,Pt)})},tt}();function mn(tt){return new hn(this,tt).promise}function Mn(tt){var ct=this;return ve(tt)?new ct(function(qe,Ge){for(var ut=tt.length,Pt=0;Pt<ut;Pt++)ct.resolve(tt[Pt]).then(qe,Ge)}):new ct(function(qe,Ge){return Ge(new TypeError("You must pass an array to race."))})}function Rt(tt){var ct=this,qe=new ct(Ie);return St(qe,tt),qe}function $t(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ct(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Be=function(){function tt(ct){this[Fe]=Ye(),this._result=this._state=void 0,this._subscribers=[],Ie!==ct&&(typeof ct!="function"&&$t(),this instanceof tt?yt(this,ct):Ct())}return tt.prototype.catch=function(qe){return this.then(null,qe)},tt.prototype.finally=function(qe){var Ge=this,ut=Ge.constructor;return Ee(qe)?Ge.then(function(Pt){return ut.resolve(qe()).then(function(){return Pt})},function(Pt){return ut.resolve(qe()).then(function(){throw Pt})}):Ge.then(qe,qe)},tt}();Be.prototype.then=Re,Be.all=mn,Be.race=Mn,Be.resolve=Le,Be.reject=Rt,Be._setScheduler=ue,Be._setAsap=le,Be._asap=ce;function rt(){var tt=void 0;if(typeof te.g!="undefined")tt=te.g;else if(typeof self!="undefined")tt=self;else try{tt=Function("return this")()}catch(Ge){throw new Error("polyfill failed because global object is unavailable in this environment")}var ct=tt.Promise;if(ct){var qe=null;try{qe=Object.prototype.toString.call(ct.resolve())}catch(Ge){}if(qe==="[object Promise]"&&!ct.cast)return}tt.Promise=Be}return Be.polyfill=rt,Be.Promise=Be,Be})},17187:function(ft){"use strict";var Je=typeof Reflect=="object"?Reflect:null,te=Je&&typeof Je.apply=="function"?Je.apply:function(ee,re,se){return Function.prototype.apply.call(ee,re,se)},E;Je&&typeof Je.ownKeys=="function"?E=Je.ownKeys:Object.getOwnPropertySymbols?E=function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:E=function(ee){return Object.getOwnPropertyNames(ee)};function _e(z){console&&console.warn&&console.warn(z)}var Ee=Number.isNaN||function(ee){return ee!==ee};function pe(){pe.init.call(this)}ft.exports=pe,ft.exports.once=y,pe.EventEmitter=pe,pe.prototype._events=void 0,pe.prototype._eventsCount=0,pe.prototype._maxListeners=void 0;var ve=10;function fe(z){if(typeof z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof z)}Object.defineProperty(pe,"defaultMaxListeners",{enumerable:!0,get:function(){return ve},set:function(z){if(typeof z!="number"||z<0||Ee(z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+z+".");ve=z}}),pe.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},pe.prototype.setMaxListeners=function(ee){if(typeof ee!="number"||ee<0||Ee(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 me(z){return z._maxListeners===void 0?pe.defaultMaxListeners:z._maxListeners}pe.prototype.getMaxListeners=function(){return me(this)},pe.prototype.emit=function(ee){for(var re=[],se=1;se<arguments.length;se++)re.push(arguments[se]);var ge=ee==="error",Se=this._events;if(Se!==void 0)ge=ge&&Se.error===void 0;else if(!ge)return!1;if(ge){var Pe;if(re.length>0&&(Pe=re[0]),Pe instanceof Error)throw Pe;var Re=new Error("Unhandled error."+(Pe?" ("+Pe.message+")":""));throw Re.context=Pe,Re}var Le=Se[ee];if(Le===void 0)return!1;if(typeof Le=="function")te(Le,this,re);else for(var Fe=Le.length,Ie=ie(Le,Fe),se=0;se<Fe;++se)te(Ie[se],this,re);return!0};function de(z,ee,re,se){var ge,Se,Pe;if(fe(re),Se=z._events,Se===void 0?(Se=z._events=Object.create(null),z._eventsCount=0):(Se.newListener!==void 0&&(z.emit("newListener",ee,re.listener?re.listener:re),Se=z._events),Pe=Se[ee]),Pe===void 0)Pe=Se[ee]=re,++z._eventsCount;else if(typeof Pe=="function"?Pe=Se[ee]=se?[re,Pe]:[Pe,re]:se?Pe.unshift(re):Pe.push(re),ge=me(z),ge>0&&Pe.length>ge&&!Pe.warned){Pe.warned=!0;var Re=new Error("Possible EventEmitter memory leak detected. "+Pe.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");Re.name="MaxListenersExceededWarning",Re.emitter=z,Re.type=ee,Re.count=Pe.length,_e(Re)}return z}pe.prototype.addListener=function(ee,re){return de(this,ee,re,!1)},pe.prototype.on=pe.prototype.addListener,pe.prototype.prependListener=function(ee,re){return de(this,ee,re,!0)};function ce(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ue(z,ee,re){var se={fired:!1,wrapFn:void 0,target:z,type:ee,listener:re},ge=ce.bind(se);return ge.listener=re,se.wrapFn=ge,ge}pe.prototype.once=function(ee,re){return fe(re),this.on(ee,ue(this,ee,re)),this},pe.prototype.prependOnceListener=function(ee,re){return fe(re),this.prependListener(ee,ue(this,ee,re)),this},pe.prototype.removeListener=function(ee,re){var se,ge,Se,Pe,Re;if(fe(re),ge=this._events,ge===void 0)return this;if(se=ge[ee],se===void 0)return this;if(se===re||se.listener===re)--this._eventsCount===0?this._events=Object.create(null):(delete ge[ee],ge.removeListener&&this.emit("removeListener",ee,se.listener||re));else if(typeof se!="function"){for(Se=-1,Pe=se.length-1;Pe>=0;Pe--)if(se[Pe]===re||se[Pe].listener===re){Re=se[Pe].listener,Se=Pe;break}if(Se<0)return this;Se===0?se.shift():ne(se,Se),se.length===1&&(ge[ee]=se[0]),ge.removeListener!==void 0&&this.emit("removeListener",ee,Re||re)}return this},pe.prototype.off=pe.prototype.removeListener,pe.prototype.removeAllListeners=function(ee){var re,se,ge;if(se=this._events,se===void 0)return this;if(se.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):se[ee]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete se[ee]),this;if(arguments.length===0){var Se=Object.keys(se),Pe;for(ge=0;ge<Se.length;++ge)Pe=Se[ge],Pe!=="removeListener"&&this.removeAllListeners(Pe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(re=se[ee],typeof re=="function")this.removeListener(ee,re);else if(re!==void 0)for(ge=re.length-1;ge>=0;ge--)this.removeListener(ee,re[ge]);return this};function le(z,ee,re){var se=z._events;if(se===void 0)return[];var ge=se[ee];return ge===void 0?[]:typeof ge=="function"?re?[ge.listener||ge]:[ge]:re?a(ge):ie(ge,ge.length)}pe.prototype.listeners=function(ee){return le(this,ee,!0)},pe.prototype.rawListeners=function(ee){return le(this,ee,!1)},pe.listenerCount=function(z,ee){return typeof z.listenerCount=="function"?z.listenerCount(ee):he.call(z,ee)},pe.prototype.listenerCount=he;function he(z){var ee=this._events;if(ee!==void 0){var re=ee[z];if(typeof re=="function")return 1;if(re!==void 0)return re.length}return 0}pe.prototype.eventNames=function(){return this._eventsCount>0?E(this._events):[]};function ie(z,ee){for(var re=new Array(ee),se=0;se<ee;++se)re[se]=z[se];return re}function ne(z,ee){for(;ee+1<z.length;ee++)z[ee]=z[ee+1];z.pop()}function a(z){for(var ee=new Array(z.length),re=0;re<ee.length;++re)ee[re]=z[re].listener||z[re];return ee}function y(z,ee){return new Promise(function(re,se){function ge(Pe){z.removeListener(ee,Se),se(Pe)}function Se(){typeof z.removeListener=="function"&&z.removeListener("error",ge),re([].slice.call(arguments))}b(z,ee,Se,{once:!0}),ee!=="error"&&x(z,ge,{once:!0})})}function x(z,ee,re){typeof z.on=="function"&&b(z,"error",ee,re)}function b(z,ee,re,se){if(typeof z.on=="function")se.once?z.once(ee,re):z.on(ee,re);else if(typeof z.addEventListener=="function")z.addEventListener(ee,function ge(Se){se.once&&z.removeEventListener(ee,ge),re(Se)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof z)}},19575:function(ft,Je,te){var E,_e;(function(Ee,pe){ft.exports=pe(Ee)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te.g!="undefined"?te.g:this,function(Ee){"use strict";Ee=Ee||{};var pe=Ee.Base64,ve="2.6.4",fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",me=function(at){for(var et={},De=0,Oe=at.length;De<Oe;De++)et[at.charAt(De)]=De;return et}(fe),de=String.fromCharCode,ce=function(at){if(at.length<2){var et=at.charCodeAt(0);return et<128?at:et<2048?de(192|et>>>6)+de(128|et&63):de(224|et>>>12&15)+de(128|et>>>6&63)+de(128|et&63)}else{var et=65536+(at.charCodeAt(0)-55296)*1024+(at.charCodeAt(1)-56320);return de(240|et>>>18&7)+de(128|et>>>12&63)+de(128|et>>>6&63)+de(128|et&63)}},ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,le=function(at){return at.replace(ue,ce)},he=function(at){var et=[0,2,1][at.length%3],De=at.charCodeAt(0)<<16|(at.length>1?at.charCodeAt(1):0)<<8|(at.length>2?at.charCodeAt(2):0),Oe=[fe.charAt(De>>>18),fe.charAt(De>>>12&63),et>=2?"=":fe.charAt(De>>>6&63),et>=1?"=":fe.charAt(De&63)];return Oe.join("")},ie=Ee.btoa&&typeof Ee.btoa=="function"?function(at){return Ee.btoa(at)}:function(at){if(at.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return at.replace(/[\s\S]{1,3}/g,he)},ne=function(at){return ie(le(String(at)))},a=function(at){return at.replace(/[+\/]/g,function(et){return et=="+"?"-":"_"}).replace(/=/g,"")},y=function(at,et){return et?a(ne(at)):ne(at)},x=function(at){return y(at,!0)},b;Ee.Uint8Array&&(b=function(at,et){for(var De="",Oe=0,ke=at.length;Oe<ke;Oe+=3){var lt=at[Oe],Xe=at[Oe+1],xt=at[Oe+2],Ot=lt<<16|Xe<<8|xt;De+=fe.charAt(Ot>>>18)+fe.charAt(Ot>>>12&63)+(typeof Xe!="undefined"?fe.charAt(Ot>>>6&63):"=")+(typeof xt!="undefined"?fe.charAt(Ot&63):"=")}return et?a(De):De});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ee=function(at){switch(at.length){case 4:var et=(7&at.charCodeAt(0))<<18|(63&at.charCodeAt(1))<<12|(63&at.charCodeAt(2))<<6|63&at.charCodeAt(3),De=et-65536;return de((De>>>10)+55296)+de((De&1023)+56320);case 3:return de((15&at.charCodeAt(0))<<12|(63&at.charCodeAt(1))<<6|63&at.charCodeAt(2));default:return de((31&at.charCodeAt(0))<<6|63&at.charCodeAt(1))}},re=function(at){return at.replace(z,ee)},se=function(at){var et=at.length,De=et%4,Oe=(et>0?me[at.charAt(0)]<<18:0)|(et>1?me[at.charAt(1)]<<12:0)|(et>2?me[at.charAt(2)]<<6:0)|(et>3?me[at.charAt(3)]:0),ke=[de(Oe>>>16),de(Oe>>>8&255),de(Oe&255)];return ke.length-=[0,0,2,1][De],ke.join("")},ge=Ee.atob&&typeof Ee.atob=="function"?function(at){return Ee.atob(at)}:function(at){return at.replace(/\S{1,4}/g,se)},Se=function(at){return ge(String(at).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(at){return re(ge(at))},Re=function(at){return String(at).replace(/[-_]/g,function(et){return et=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Le=function(at){return Pe(Re(at))},Fe;Ee.Uint8Array&&(Fe=function(at){return Uint8Array.from(Se(Re(at)),function(et){return et.charCodeAt(0)})});var Ie=function(){var at=Ee.Base64;return Ee.Base64=pe,at};if(Ee.Base64={VERSION:ve,atob:Se,btoa:ie,fromBase64:Le,toBase64:y,utob:le,encode:y,encodeURI:x,btou:re,decode:Le,noConflict:Ie,fromUint8Array:b,toUint8Array:Fe},typeof Object.defineProperty=="function"){var vt=function(at){return{value:at,enumerable:!1,writable:!0,configurable:!0}};Ee.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",vt(function(){return Le(this)})),Object.defineProperty(String.prototype,"toBase64",vt(function(at){return y(this,at)})),Object.defineProperty(String.prototype,"toBase64URI",vt(function(){return y(this,!0)}))}}return Ee.Meteor&&(Base64=Ee.Base64),ft.exports?ft.exports.Base64=Ee.Base64:(E=[],_e=function(){return Ee.Base64}.apply(Je,E),_e!==void 0&&(ft.exports=_e)),{Base64:Ee.Base64}})},26819:function(ft,Je){"use strict";var te;var E=typeof Symbol=="function"&&Symbol.for,_e=E?Symbol.for("react.element"):60103,Ee=E?Symbol.for("react.portal"):60106,pe=E?Symbol.for("react.fragment"):60107,ve=E?Symbol.for("react.strict_mode"):60108,fe=E?Symbol.for("react.profiler"):60114,me=E?Symbol.for("react.provider"):60109,de=E?Symbol.for("react.context"):60110,ce=E?Symbol.for("react.async_mode"):60111,ue=E?Symbol.for("react.concurrent_mode"):60111,le=E?Symbol.for("react.forward_ref"):60112,he=E?Symbol.for("react.suspense"):60113,ie=E?Symbol.for("react.suspense_list"):60120,ne=E?Symbol.for("react.memo"):60115,a=E?Symbol.for("react.lazy"):60116,y=E?Symbol.for("react.block"):60121,x=E?Symbol.for("react.fundamental"):60117,b=E?Symbol.for("react.responder"):60118,z=E?Symbol.for("react.scope"):60119;function ee(se){if(typeof se=="object"&&se!==null){var ge=se.$$typeof;switch(ge){case _e:switch(se=se.type,se){case ce:case ue:case pe:case fe:case ve:case he:return se;default:switch(se=se&&se.$$typeof,se){case de:case le:case a:case ne:case me:return se;default:return ge}}case Ee:return ge}}}function re(se){return ee(se)===ue}te=ce,te=ue,te=de,te=me,te=_e,te=le,te=pe,te=a,te=ne,te=Ee,te=fe,te=ve,te=he,te=function(se){return re(se)||ee(se)===ce},te=re,te=function(se){return ee(se)===de},te=function(se){return ee(se)===me},te=function(se){return typeof se=="object"&&se!==null&&se.$$typeof===_e},te=function(se){return ee(se)===le},te=function(se){return ee(se)===pe},te=function(se){return ee(se)===a},Je.isMemo=function(se){return ee(se)===ne},te=function(se){return ee(se)===Ee},te=function(se){return ee(se)===fe},te=function(se){return ee(se)===ve},te=function(se){return ee(se)===he},te=function(se){return typeof se=="string"||typeof se=="function"||se===pe||se===ue||se===fe||se===ve||se===he||se===ie||typeof se=="object"&&se!==null&&(se.$$typeof===a||se.$$typeof===ne||se.$$typeof===me||se.$$typeof===de||se.$$typeof===le||se.$$typeof===x||se.$$typeof===b||se.$$typeof===z||se.$$typeof===y)},te=ee},18459:function(ft,Je,te){"use strict";ft.exports=te(26819)},16651:function(ft,Je){"use strict";var te;var E=Symbol.for("react.element"),_e=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),me=Symbol.for("react.context"),de=Symbol.for("react.server_context"),ce=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var b=x.$$typeof;switch(b){case E:switch(x=x.type,x){case Ee:case ve:case pe:case ue:case le:return x;default:switch(x=x&&x.$$typeof,x){case de:case me:case ce:case ie:case he:case fe:return x;default:return b}}case _e:return b}}}te=me,te=fe,te=E,te=ce,te=Ee,te=ie,te=he,te=_e,te=ve,te=pe,te=ue,te=le,te=function(){return!1},te=function(){return!1},te=function(x){return y(x)===me},te=function(x){return y(x)===fe},te=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===E},te=function(x){return y(x)===ce},te=function(x){return y(x)===Ee},te=function(x){return y(x)===ie},te=function(x){return y(x)===he},te=function(x){return y(x)===_e},te=function(x){return y(x)===ve},te=function(x){return y(x)===pe},te=function(x){return y(x)===ue},te=function(x){return y(x)===le},te=function(x){return typeof x=="string"||typeof x=="function"||x===Ee||x===ve||x===pe||x===ue||x===le||x===ne||typeof x=="object"&&x!==null&&(x.$$typeof===ie||x.$$typeof===he||x.$$typeof===fe||x.$$typeof===me||x.$$typeof===ce||x.$$typeof===a||x.getModuleId!==void 0)},te=y},33993:function(ft,Je,te){"use strict";te(16651)},46762:function(ft,Je){"use strict";var te;var E=Symbol.for("react.element"),_e=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),pe=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),me=Symbol.for("react.context"),de=Symbol.for("react.server_context"),ce=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var b=x.$$typeof;switch(b){case E:switch(x=x.type,x){case Ee:case ve:case pe:case ue:case le:return x;default:switch(x=x&&x.$$typeof,x){case de:case me:case ce:case ie:case he:case fe:return x;default:return b}}case _e:return b}}}te=me,te=fe,te=E,te=ce,te=Ee,te=ie,te=he,te=_e,te=ve,te=pe,te=ue,te=le,te=function(){return!1},te=function(){return!1},te=function(x){return y(x)===me},te=function(x){return y(x)===fe},te=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===E},te=function(x){return y(x)===ce},te=function(x){return y(x)===Ee},te=function(x){return y(x)===ie},te=function(x){return y(x)===he},te=function(x){return y(x)===_e},te=function(x){return y(x)===ve},te=function(x){return y(x)===pe},te=function(x){return y(x)===ue},te=function(x){return y(x)===le},te=function(x){return typeof x=="string"||typeof x=="function"||x===Ee||x===ve||x===pe||x===ue||x===le||x===ne||typeof x=="object"&&x!==null&&(x.$$typeof===ie||x.$$typeof===he||x.$$typeof===fe||x.$$typeof===me||x.$$typeof===ce||x.$$typeof===a||x.getModuleId!==void 0)},te=y},35110:function(ft,Je,te){"use strict";te(46762)},86128:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return ee}});var E=te(87462),_e=te(4942),Ee=te(1413),pe=te(97685),ve=te(45987),fe=te(67294),me=te(94184),de=te.n(me),ce=te(64217),ue=te(27822),le=function(se){for(var ge=se.prefixCls,Se=se.level,Pe=se.isStart,Re=se.isEnd,Le="".concat(ge,"-indent-unit"),Fe=[],Ie=0;Ie<Se;Ie+=1)Fe.push(fe.createElement("span",{key:Ie,className:de()(Le,(0,_e.Z)((0,_e.Z)({},"".concat(Le,"-start"),Pe[Ie]),"".concat(Le,"-end"),Re[Ie]))}));return fe.createElement("span",{"aria-hidden":"true",className:"".concat(ge,"-indent")},Fe)},he=fe.memo(le),ie=te(35381),ne=te(1089),a=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],y="open",x="close",b="---",z=function(se){var ge,Se,Pe,Re=se.eventKey,Le=se.className,Fe=se.style,Ie=se.dragOver,vt=se.dragOverGapTop,at=se.dragOverGapBottom,et=se.isLeaf,De=se.isStart,Oe=se.isEnd,ke=se.expanded,lt=se.selected,Xe=se.checked,xt=se.halfChecked,Ot=se.loading,Dt=se.domRef,Kt=se.active,St=se.data,gt=se.onMouseMove,ht=se.selectable,Qt=(0,ve.Z)(se,a),yt=fe.useContext(ue.k),Zt=fe.useContext(ue.y),Ye=fe.useRef(null),Gt=fe.useState(!1),fn=(0,pe.Z)(Gt,2),hn=fn[0],mn=fn[1],Mn=!!(yt.disabled||se.disabled||(ge=Zt.nodeDisabled)!==null&&ge!==void 0&&ge.call(Zt,St)),Rt=fe.useMemo(function(){return!yt.checkable||se.checkable===!1?!1:yt.checkable},[yt.checkable,se.checkable]),$t=function($n){Mn||yt.onNodeSelect($n,(0,ne.F)(se))},Ct=function($n){Mn||!Rt||se.disableCheckbox||yt.onNodeCheck($n,(0,ne.F)(se),!Xe)},Be=fe.useMemo(function(){return typeof ht=="boolean"?ht:yt.selectable},[ht,yt.selectable]),rt=function($n){yt.onNodeClick($n,(0,ne.F)(se)),Be?$t($n):Ct($n)},tt=function($n){yt.onNodeDoubleClick($n,(0,ne.F)(se))},ct=function($n){yt.onNodeMouseEnter($n,(0,ne.F)(se))},qe=function($n){yt.onNodeMouseLeave($n,(0,ne.F)(se))},Ge=function($n){yt.onNodeContextMenu($n,(0,ne.F)(se))},ut=fe.useMemo(function(){return!!(yt.draggable&&(!yt.draggable.nodeDraggable||yt.draggable.nodeDraggable(St)))},[yt.draggable,St]),Pt=function($n){$n.stopPropagation(),mn(!0),yt.onNodeDragStart($n,se);try{$n.dataTransfer.setData("text/plain","")}catch(Un){}},Ft=function($n){$n.preventDefault(),$n.stopPropagation(),yt.onNodeDragEnter($n,se)},_n=function($n){$n.preventDefault(),$n.stopPropagation(),yt.onNodeDragOver($n,se)},Rn=function($n){$n.stopPropagation(),yt.onNodeDragLeave($n,se)},wn=function($n){$n.stopPropagation(),mn(!1),yt.onNodeDragEnd($n,se)},Ln=function($n){$n.preventDefault(),$n.stopPropagation(),mn(!1),yt.onNodeDrop($n,se)},en=function($n){Ot||yt.onNodeExpand($n,(0,ne.F)(se))},Sn=fe.useMemo(function(){var fr=(0,ie.Z)(yt.keyEntities,Re)||{},$n=fr.children;return!!($n||[]).length},[yt.keyEntities,Re]),tn=fe.useMemo(function(){return et===!1?!1:et||!yt.loadData&&!Sn||yt.loadData&&se.loaded&&!Sn},[et,yt.loadData,Sn,se.loaded]);fe.useEffect(function(){Ot||typeof yt.loadData=="function"&&ke&&!tn&&!se.loaded&&yt.onNodeLoad((0,ne.F)(se))},[Ot,yt.loadData,yt.onNodeLoad,ke,tn,se]);var Ke=fe.useMemo(function(){var fr;return(fr=yt.draggable)!==null&&fr!==void 0&&fr.icon?fe.createElement("span",{className:"".concat(yt.prefixCls,"-draggable-icon")},yt.draggable.icon):null},[yt.draggable]),At=function($n){var Un=se.switcherIcon||yt.switcherIcon;return typeof Un=="function"?Un((0,Ee.Z)((0,Ee.Z)({},se),{},{isLeaf:$n})):Un},Nt=function(){if(tn){var $n=At(!0);return $n!==!1?fe.createElement("span",{className:de()("".concat(yt.prefixCls,"-switcher"),"".concat(yt.prefixCls,"-switcher-noop"))},$n):null}var Un=At(!1);return Un!==!1?fe.createElement("span",{onClick:en,className:de()("".concat(yt.prefixCls,"-switcher"),"".concat(yt.prefixCls,"-switcher_").concat(ke?y:x))},Un):null},gn=fe.useMemo(function(){if(!Rt)return null;var fr=typeof Rt!="boolean"?Rt:null;return fe.createElement("span",{className:de()("".concat(yt.prefixCls,"-checkbox"),(0,_e.Z)((0,_e.Z)((0,_e.Z)({},"".concat(yt.prefixCls,"-checkbox-checked"),Xe),"".concat(yt.prefixCls,"-checkbox-indeterminate"),!Xe&&xt),"".concat(yt.prefixCls,"-checkbox-disabled"),Mn||se.disableCheckbox)),onClick:Ct,role:"checkbox","aria-checked":xt?"mixed":Xe,"aria-disabled":Mn||se.disableCheckbox,"aria-label":"Select ".concat(typeof se.title=="string"?se.title:"tree node")},fr)},[Rt,Xe,xt,Mn,se.disableCheckbox,se.title]),xn=fe.useMemo(function(){return tn?null:ke?y:x},[tn,ke]),Nn=fe.useMemo(function(){return fe.createElement("span",{className:de()("".concat(yt.prefixCls,"-iconEle"),"".concat(yt.prefixCls,"-icon__").concat(xn||"docu"),(0,_e.Z)({},"".concat(yt.prefixCls,"-icon_loading"),Ot))})},[yt.prefixCls,xn,Ot]),Pn=fe.useMemo(function(){var fr=!!yt.draggable,$n=!se.disabled&&fr&&yt.dragOverNodeKey===Re;return $n?yt.dropIndicatorRender({dropPosition:yt.dropPosition,dropLevelOffset:yt.dropLevelOffset,indent:yt.indent,prefixCls:yt.prefixCls,direction:yt.direction}):null},[yt.dropPosition,yt.dropLevelOffset,yt.indent,yt.prefixCls,yt.direction,yt.draggable,yt.dragOverNodeKey,yt.dropIndicatorRender]),ur=fe.useMemo(function(){var fr=se.title,$n=fr===void 0?b:fr,Un="".concat(yt.prefixCls,"-node-content-wrapper"),Zo;if(yt.showIcon){var ho=se.icon||yt.icon;Zo=ho?fe.createElement("span",{className:de()("".concat(yt.prefixCls,"-iconEle"),"".concat(yt.prefixCls,"-icon__customize"))},typeof ho=="function"?ho(se):ho):Nn}else yt.loadData&&Ot&&(Zo=Nn);var Wr;return typeof $n=="function"?Wr=$n(St):yt.titleRender?Wr=yt.titleRender(St):Wr=$n,fe.createElement("span",{ref:Ye,title:typeof $n=="string"?$n:"",className:de()(Un,"".concat(Un,"-").concat(xn||"normal"),(0,_e.Z)({},"".concat(yt.prefixCls,"-node-selected"),!Mn&&(lt||hn))),onMouseEnter:ct,onMouseLeave:qe,onContextMenu:Ge,onClick:rt,onDoubleClick:tt},Zo,fe.createElement("span",{className:"".concat(yt.prefixCls,"-title")},Wr),Pn)},[yt.prefixCls,yt.showIcon,se,yt.icon,Nn,yt.titleRender,St,xn,ct,qe,Ge,rt,tt]),Hn=(0,ce.Z)(Qt,{aria:!0,data:!0}),Nr=(0,ie.Z)(yt.keyEntities,Re)||{},no=Nr.level,Fr=Oe[Oe.length-1],Tn=!Mn&&ut,Yn=yt.draggingNodeKey===Re,En=ht!==void 0?{"aria-selected":!!ht}:void 0;return fe.createElement("div",(0,E.Z)({ref:Dt,role:"treeitem","aria-expanded":et?void 0:ke,className:de()(Le,"".concat(yt.prefixCls,"-treenode"),(Pe={},(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)(Pe,"".concat(yt.prefixCls,"-treenode-disabled"),Mn),"".concat(yt.prefixCls,"-treenode-switcher-").concat(ke?"open":"close"),!et),"".concat(yt.prefixCls,"-treenode-checkbox-checked"),Xe),"".concat(yt.prefixCls,"-treenode-checkbox-indeterminate"),xt),"".concat(yt.prefixCls,"-treenode-selected"),lt),"".concat(yt.prefixCls,"-treenode-loading"),Ot),"".concat(yt.prefixCls,"-treenode-active"),Kt),"".concat(yt.prefixCls,"-treenode-leaf-last"),Fr),"".concat(yt.prefixCls,"-treenode-draggable"),ut),"dragging",Yn),(0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)((0,_e.Z)(Pe,"drop-target",yt.dropTargetKey===Re),"drop-container",yt.dropContainerKey===Re),"drag-over",!Mn&&Ie),"drag-over-gap-top",!Mn&&vt),"drag-over-gap-bottom",!Mn&&at),"filter-node",(Se=yt.filterTreeNode)===null||Se===void 0?void 0:Se.call(yt,(0,ne.F)(se))),"".concat(yt.prefixCls,"-treenode-leaf"),tn))),style:Fe,draggable:Tn,onDragStart:Tn?Pt:void 0,onDragEnter:ut?Ft:void 0,onDragOver:ut?_n:void 0,onDragLeave:ut?Rn:void 0,onDrop:ut?Ln:void 0,onDragEnd:ut?wn:void 0,onMouseMove:gt},En,Hn),fe.createElement(he,{prefixCls:yt.prefixCls,level:no,isStart:De,isEnd:Oe}),Ke,Nt(),gn,ur)};z.isTreeNode=1;var ee=z},27822:function(ft,Je,te){"use strict";te.d(Je,{k:function(){return _e},y:function(){return Ee}});var E=te(67294),_e=E.createContext(null),Ee=E.createContext({})},70593:function(ft,Je,te){"use strict";te.d(Je,{OF:function(){return Re.Z},y6:function(){return x.y},ZP:function(){return Mn}});var E=te(87462),_e=te(71002),Ee=te(1413),pe=te(74902),ve=te(15671),fe=te(43144),me=te(97326),de=te(60136),ce=te(29388),ue=te(4942),le=te(94184),he=te.n(le),ie=te(15105),ne=te(64217),a=te(80334),y=te(67294),x=te(27822),b=function($t){var Ct=$t.dropPosition,Be=$t.dropLevelOffset,rt=$t.indent,tt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ct){case-1:tt.top=0,tt.left=-Be*rt;break;case 1:tt.bottom=0,tt.left=-Be*rt;break;case 0:tt.bottom=0,tt.left=rt;break}return y.createElement("div",{style:tt})},z=b;function ee(Rt){if(Rt==null)throw new TypeError("Cannot destructure "+Rt)}var re=te(97685),se=te(45987),ge=te(8410),Se=te(73299),Pe=te(62874),Re=te(86128);function Le(Rt,$t){var Ct=y.useState(!1),Be=(0,re.Z)(Ct,2),rt=Be[0],tt=Be[1];(0,ge.Z)(function(){if(rt)return Rt(),function(){$t()}},[rt]),(0,ge.Z)(function(){return tt(!0),function(){tt(!1)}},[])}var Fe=Le,Ie=te(1089),vt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],at=y.forwardRef(function(Rt,$t){var Ct=Rt.className,Be=Rt.style,rt=Rt.motion,tt=Rt.motionNodes,ct=Rt.motionType,qe=Rt.onMotionStart,Ge=Rt.onMotionEnd,ut=Rt.active,Pt=Rt.treeNodeRequiredProps,Ft=(0,se.Z)(Rt,vt),_n=y.useState(!0),Rn=(0,re.Z)(_n,2),wn=Rn[0],Ln=Rn[1],en=y.useContext(x.k),Sn=en.prefixCls,tn=tt&&ct!=="hide";(0,ge.Z)(function(){tt&&tn!==wn&&Ln(tn)},[tt]);var Ke=function(){tt&&qe()},At=y.useRef(!1),Nt=function(){tt&&!At.current&&(At.current=!0,Ge())};Fe(Ke,Nt);var gn=function(Nn){tn===Nn&&Nt()};return tt?y.createElement(Pe.Z,(0,E.Z)({ref:$t,visible:wn},rt,{motionAppear:ct==="show",onVisibleChanged:gn}),function(xn,Nn){var Pn=xn.className,ur=xn.style;return y.createElement("div",{ref:Nn,className:he()("".concat(Sn,"-treenode-motion"),Pn),style:ur},tt.map(function(Hn){var Nr=Object.assign({},(ee(Hn.data),Hn.data)),no=Hn.title,Fr=Hn.key,Tn=Hn.isStart,Yn=Hn.isEnd;delete Nr.children;var En=(0,Ie.H8)(Fr,Pt);return y.createElement(Re.Z,(0,E.Z)({},Nr,En,{title:no,active:ut,data:Hn.data,key:Fr,isStart:Tn,isEnd:Yn}))}))}):y.createElement(Re.Z,(0,E.Z)({domRef:$t,className:Ct,style:Be},Ft,{active:ut}))}),et=at;function De(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ct=Rt.length,Be=$t.length;if(Math.abs(Ct-Be)!==1)return{add:!1,key:null};function rt(tt,ct){var qe=new Map;tt.forEach(function(ut){qe.set(ut,!0)});var Ge=ct.filter(function(ut){return!qe.has(ut)});return Ge.length===1?Ge[0]:null}return Ct<Be?{add:!0,key:rt(Rt,$t)}:{add:!1,key:rt($t,Rt)}}function Oe(Rt,$t,Ct){var Be=Rt.findIndex(function(qe){return qe.key===Ct}),rt=Rt[Be+1],tt=$t.findIndex(function(qe){return qe.key===Ct});if(rt){var ct=$t.findIndex(function(qe){return qe.key===rt.key});return $t.slice(tt+1,ct)}return $t.slice(tt+1)}var ke=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],lt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Xe=function(){},xt="RC_TREE_MOTION_".concat(Math.random()),Ot={key:xt},Dt={key:xt,level:0,index:0,pos:"0",node:Ot,nodes:[Ot]},Kt={parent:null,children:[],pos:Dt.pos,data:Ot,title:null,key:xt,isStart:[],isEnd:[]};function St(Rt,$t,Ct,Be){return $t===!1||!Ct?Rt:Rt.slice(0,Math.ceil(Ct/Be)+1)}function gt(Rt){var $t=Rt.key,Ct=Rt.pos;return(0,Ie.km)($t,Ct)}function ht(Rt){for(var $t=String(Rt.data.key),Ct=Rt;Ct.parent;)Ct=Ct.parent,$t="".concat(Ct.data.key," > ").concat($t);return $t}var Qt=y.forwardRef(function(Rt,$t){var Ct=Rt.prefixCls,Be=Rt.data,rt=Rt.selectable,tt=Rt.checkable,ct=Rt.expandedKeys,qe=Rt.selectedKeys,Ge=Rt.checkedKeys,ut=Rt.loadedKeys,Pt=Rt.loadingKeys,Ft=Rt.halfCheckedKeys,_n=Rt.keyEntities,Rn=Rt.disabled,wn=Rt.dragging,Ln=Rt.dragOverNodeKey,en=Rt.dropPosition,Sn=Rt.motion,tn=Rt.height,Ke=Rt.itemHeight,At=Rt.virtual,Nt=Rt.scrollWidth,gn=Rt.focusable,xn=Rt.activeItem,Nn=Rt.focused,Pn=Rt.tabIndex,ur=Rt.onKeyDown,Hn=Rt.onFocus,Nr=Rt.onBlur,no=Rt.onActiveChange,Fr=Rt.onListChangeStart,Tn=Rt.onListChangeEnd,Yn=(0,se.Z)(Rt,ke),En=y.useRef(null),fr=y.useRef(null);y.useImperativeHandle($t,function(){return{scrollTo:function(Jn){En.current.scrollTo(Jn)},getIndentWidth:function(){return fr.current.offsetWidth}}});var $n=y.useState(ct),Un=(0,re.Z)($n,2),Zo=Un[0],ho=Un[1],Wr=y.useState(Be),ai=(0,re.Z)(Wr,2),ln=ai[0],oe=ai[1],ae=y.useState(Be),be=(0,re.Z)(ae,2),we=be[0],Ae=be[1],nt=y.useState([]),it=(0,re.Z)(nt,2),Vt=it[0],It=it[1],on=y.useState(null),zn=(0,re.Z)(on,2),On=zn[0],wt=zn[1],An=y.useRef(Be);An.current=Be;function Dn(){var cn=An.current;oe(cn),Ae(cn),It([]),wt(null),Tn()}(0,ge.Z)(function(){ho(ct);var cn=De(Zo,ct);if(cn.key!==null)if(cn.add){var Jn=ln.findIndex(function(Kr){var lo=Kr.key;return lo===cn.key}),vr=St(Oe(ln,Be,cn.key),At,tn,Ke),yo=ln.slice();yo.splice(Jn+1,0,Kt),Ae(yo),It(vr),wt("show")}else{var mr=Be.findIndex(function(Kr){var lo=Kr.key;return lo===cn.key}),Wn=St(Oe(Be,ln,cn.key),At,tn,Ke),Hr=Be.slice();Hr.splice(mr+1,0,Kt),Ae(Hr),It(Wn),wt("hide")}else ln!==Be&&(oe(Be),Ae(Be))},[ct,Be]),y.useEffect(function(){wn||Dn()},[wn]);var Xt=Sn?we:Be,an={expandedKeys:ct,selectedKeys:qe,loadedKeys:ut,loadingKeys:Pt,checkedKeys:Ge,halfCheckedKeys:Ft,dragOverNodeKey:Ln,dropPosition:en,keyEntities:_n};return y.createElement(y.Fragment,null,Nn&&xn&&y.createElement("span",{style:lt,"aria-live":"assertive"},ht(xn)),y.createElement("div",null,y.createElement("input",{style:lt,disabled:gn===!1||Rn,tabIndex:gn!==!1?Pn:null,onKeyDown:ur,onFocus:Hn,onBlur:Nr,value:"",onChange:Xe,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(Ct,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(Ct,"-indent")},y.createElement("div",{ref:fr,className:"".concat(Ct,"-indent-unit")}))),y.createElement(Se.Z,(0,E.Z)({},Yn,{data:Xt,itemKey:gt,height:tn,fullHeight:!1,virtual:At,itemHeight:Ke,scrollWidth:Nt,prefixCls:"".concat(Ct,"-list"),ref:En,role:"tree",onVisibleChange:function(Jn){Jn.every(function(vr){return gt(vr)!==xt})&&Dn()}}),function(cn){var Jn=cn.pos,vr=Object.assign({},(ee(cn.data),cn.data)),yo=cn.title,mr=cn.key,Wn=cn.isStart,Hr=cn.isEnd,Kr=(0,Ie.km)(mr,Jn);delete vr.key,delete vr.children;var lo=(0,Ie.H8)(Kr,an);return y.createElement(et,(0,E.Z)({},vr,lo,{title:yo,active:!!xn&&mr===xn.key,pos:Jn,data:cn.data,isStart:Wn,isEnd:Hr,motion:Sn,motionNodes:mr===xt?Vt:null,motionType:On,onMotionStart:Fr,onMotionEnd:Dn,treeNodeRequiredProps:an,onMouseMove:function(){no(null)}}))}))}),yt=Qt,Zt=te(10225),Ye=te(17341),Gt=te(35381),fn=10,hn=function(Rt){(0,de.Z)(Ct,Rt);var $t=(0,ce.Z)(Ct);function Ct(){var Be;(0,ve.Z)(this,Ct);for(var rt=arguments.length,tt=new Array(rt),ct=0;ct<rt;ct++)tt[ct]=arguments[ct];return Be=$t.call.apply($t,[this].concat(tt)),(0,ue.Z)((0,me.Z)(Be),"destroyed",!1),(0,ue.Z)((0,me.Z)(Be),"delayedDragEnterLogic",void 0),(0,ue.Z)((0,me.Z)(Be),"loadingRetryTimes",{}),(0,ue.Z)((0,me.Z)(Be),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Ie.w$)()}),(0,ue.Z)((0,me.Z)(Be),"dragStartMousePosition",null),(0,ue.Z)((0,me.Z)(Be),"dragNodeProps",null),(0,ue.Z)((0,me.Z)(Be),"currentMouseOverDroppableNodeKey",null),(0,ue.Z)((0,me.Z)(Be),"listRef",y.createRef()),(0,ue.Z)((0,me.Z)(Be),"onNodeDragStart",function(qe,Ge){var ut=Be.state,Pt=ut.expandedKeys,Ft=ut.keyEntities,_n=Be.props.onDragStart,Rn=Ge.eventKey;Be.dragNodeProps=Ge,Be.dragStartMousePosition={x:qe.clientX,y:qe.clientY};var wn=(0,Zt._5)(Pt,Rn);Be.setState({draggingNodeKey:Rn,dragChildrenKeys:(0,Zt.wA)(Rn,Ft),indent:Be.listRef.current.getIndentWidth()}),Be.setExpandedKeys(wn),window.addEventListener("dragend",Be.onWindowDragEnd),_n==null||_n({event:qe,node:(0,Ie.F)(Ge)})}),(0,ue.Z)((0,me.Z)(Be),"onNodeDragEnter",function(qe,Ge){var ut=Be.state,Pt=ut.expandedKeys,Ft=ut.keyEntities,_n=ut.dragChildrenKeys,Rn=ut.flattenNodes,wn=ut.indent,Ln=Be.props,en=Ln.onDragEnter,Sn=Ln.onExpand,tn=Ln.allowDrop,Ke=Ln.direction,At=Ge.pos,Nt=Ge.eventKey;if(Be.currentMouseOverDroppableNodeKey!==Nt&&(Be.currentMouseOverDroppableNodeKey=Nt),!Be.dragNodeProps){Be.resetDragState();return}var gn=(0,Zt.OM)(qe,Be.dragNodeProps,Ge,wn,Be.dragStartMousePosition,tn,Rn,Ft,Pt,Ke),xn=gn.dropPosition,Nn=gn.dropLevelOffset,Pn=gn.dropTargetKey,ur=gn.dropContainerKey,Hn=gn.dropTargetPos,Nr=gn.dropAllowed,no=gn.dragOverNodeKey;if(_n.includes(Pn)||!Nr){Be.resetDragState();return}if(Be.delayedDragEnterLogic||(Be.delayedDragEnterLogic={}),Object.keys(Be.delayedDragEnterLogic).forEach(function(Fr){clearTimeout(Be.delayedDragEnterLogic[Fr])}),Be.dragNodeProps.eventKey!==Ge.eventKey&&(qe.persist(),Be.delayedDragEnterLogic[At]=window.setTimeout(function(){if(Be.state.draggingNodeKey!==null){var Fr=(0,pe.Z)(Pt),Tn=(0,Gt.Z)(Ft,Ge.eventKey);Tn&&(Tn.children||[]).length&&(Fr=(0,Zt.L0)(Pt,Ge.eventKey)),Be.props.hasOwnProperty("expandedKeys")||Be.setExpandedKeys(Fr),Sn==null||Sn(Fr,{node:(0,Ie.F)(Ge),expanded:!0,nativeEvent:qe.nativeEvent})}},800)),Be.dragNodeProps.eventKey===Pn&&Nn===0){Be.resetDragState();return}Be.setState({dragOverNodeKey:no,dropPosition:xn,dropLevelOffset:Nn,dropTargetKey:Pn,dropContainerKey:ur,dropTargetPos:Hn,dropAllowed:Nr}),en==null||en({event:qe,node:(0,Ie.F)(Ge),expandedKeys:Pt})}),(0,ue.Z)((0,me.Z)(Be),"onNodeDragOver",function(qe,Ge){var ut=Be.state,Pt=ut.dragChildrenKeys,Ft=ut.flattenNodes,_n=ut.keyEntities,Rn=ut.expandedKeys,wn=ut.indent,Ln=Be.props,en=Ln.onDragOver,Sn=Ln.allowDrop,tn=Ln.direction;if(Be.dragNodeProps){var Ke=(0,Zt.OM)(qe,Be.dragNodeProps,Ge,wn,Be.dragStartMousePosition,Sn,Ft,_n,Rn,tn),At=Ke.dropPosition,Nt=Ke.dropLevelOffset,gn=Ke.dropTargetKey,xn=Ke.dropContainerKey,Nn=Ke.dropTargetPos,Pn=Ke.dropAllowed,ur=Ke.dragOverNodeKey;Pt.includes(gn)||!Pn||(Be.dragNodeProps.eventKey===gn&&Nt===0?Be.state.dropPosition===null&&Be.state.dropLevelOffset===null&&Be.state.dropTargetKey===null&&Be.state.dropContainerKey===null&&Be.state.dropTargetPos===null&&Be.state.dropAllowed===!1&&Be.state.dragOverNodeKey===null||Be.resetDragState():At===Be.state.dropPosition&&Nt===Be.state.dropLevelOffset&&gn===Be.state.dropTargetKey&&xn===Be.state.dropContainerKey&&Nn===Be.state.dropTargetPos&&Pn===Be.state.dropAllowed&&ur===Be.state.dragOverNodeKey||Be.setState({dropPosition:At,dropLevelOffset:Nt,dropTargetKey:gn,dropContainerKey:xn,dropTargetPos:Nn,dropAllowed:Pn,dragOverNodeKey:ur}),en==null||en({event:qe,node:(0,Ie.F)(Ge)}))}}),(0,ue.Z)((0,me.Z)(Be),"onNodeDragLeave",function(qe,Ge){Be.currentMouseOverDroppableNodeKey===Ge.eventKey&&!qe.currentTarget.contains(qe.relatedTarget)&&(Be.resetDragState(),Be.currentMouseOverDroppableNodeKey=null);var ut=Be.props.onDragLeave;ut==null||ut({event:qe,node:(0,Ie.F)(Ge)})}),(0,ue.Z)((0,me.Z)(Be),"onWindowDragEnd",function(qe){Be.onNodeDragEnd(qe,null,!0),window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,ue.Z)((0,me.Z)(Be),"onNodeDragEnd",function(qe,Ge){var ut=Be.props.onDragEnd;Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),ut==null||ut({event:qe,node:(0,Ie.F)(Ge)}),Be.dragNodeProps=null,window.removeEventListener("dragend",Be.onWindowDragEnd)}),(0,ue.Z)((0,me.Z)(Be),"onNodeDrop",function(qe,Ge){var ut,Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ft=Be.state,_n=Ft.dragChildrenKeys,Rn=Ft.dropPosition,wn=Ft.dropTargetKey,Ln=Ft.dropTargetPos,en=Ft.dropAllowed;if(en){var Sn=Be.props.onDrop;if(Be.setState({dragOverNodeKey:null}),Be.cleanDragState(),wn!==null){var tn=(0,Ee.Z)((0,Ee.Z)({},(0,Ie.H8)(wn,Be.getTreeNodeRequiredProps())),{},{active:((ut=Be.getActiveItem())===null||ut===void 0?void 0:ut.key)===wn,data:(0,Gt.Z)(Be.state.keyEntities,wn).node}),Ke=_n.includes(wn);(0,a.ZP)(!Ke,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var At=(0,Zt.yx)(Ln),Nt={event:qe,node:(0,Ie.F)(tn),dragNode:Be.dragNodeProps?(0,Ie.F)(Be.dragNodeProps):null,dragNodesKeys:[Be.dragNodeProps.eventKey].concat(_n),dropToGap:Rn!==0,dropPosition:Rn+Number(At[At.length-1])};Pt||Sn==null||Sn(Nt),Be.dragNodeProps=null}}}),(0,ue.Z)((0,me.Z)(Be),"cleanDragState",function(){var qe=Be.state.draggingNodeKey;qe!==null&&Be.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Be.dragStartMousePosition=null,Be.currentMouseOverDroppableNodeKey=null}),(0,ue.Z)((0,me.Z)(Be),"triggerExpandActionExpand",function(qe,Ge){var ut=Be.state,Pt=ut.expandedKeys,Ft=ut.flattenNodes,_n=Ge.expanded,Rn=Ge.key,wn=Ge.isLeaf;if(!(wn||qe.shiftKey||qe.metaKey||qe.ctrlKey)){var Ln=Ft.filter(function(Sn){return Sn.key===Rn})[0],en=(0,Ie.F)((0,Ee.Z)((0,Ee.Z)({},(0,Ie.H8)(Rn,Be.getTreeNodeRequiredProps())),{},{data:Ln.data}));Be.setExpandedKeys(_n?(0,Zt._5)(Pt,Rn):(0,Zt.L0)(Pt,Rn)),Be.onNodeExpand(qe,en)}}),(0,ue.Z)((0,me.Z)(Be),"onNodeClick",function(qe,Ge){var ut=Be.props,Pt=ut.onClick,Ft=ut.expandAction;Ft==="click"&&Be.triggerExpandActionExpand(qe,Ge),Pt==null||Pt(qe,Ge)}),(0,ue.Z)((0,me.Z)(Be),"onNodeDoubleClick",function(qe,Ge){var ut=Be.props,Pt=ut.onDoubleClick,Ft=ut.expandAction;Ft==="doubleClick"&&Be.triggerExpandActionExpand(qe,Ge),Pt==null||Pt(qe,Ge)}),(0,ue.Z)((0,me.Z)(Be),"onNodeSelect",function(qe,Ge){var ut=Be.state.selectedKeys,Pt=Be.state,Ft=Pt.keyEntities,_n=Pt.fieldNames,Rn=Be.props,wn=Rn.onSelect,Ln=Rn.multiple,en=Ge.selected,Sn=Ge[_n.key],tn=!en;tn?Ln?ut=(0,Zt.L0)(ut,Sn):ut=[Sn]:ut=(0,Zt._5)(ut,Sn);var Ke=ut.map(function(At){var Nt=(0,Gt.Z)(Ft,At);return Nt?Nt.node:null}).filter(Boolean);Be.setUncontrolledState({selectedKeys:ut}),wn==null||wn(ut,{event:"select",selected:tn,node:Ge,selectedNodes:Ke,nativeEvent:qe.nativeEvent})}),(0,ue.Z)((0,me.Z)(Be),"onNodeCheck",function(qe,Ge,ut){var Pt=Be.state,Ft=Pt.keyEntities,_n=Pt.checkedKeys,Rn=Pt.halfCheckedKeys,wn=Be.props,Ln=wn.checkStrictly,en=wn.onCheck,Sn=Ge.key,tn,Ke={event:"check",node:Ge,checked:ut,nativeEvent:qe.nativeEvent};if(Ln){var At=ut?(0,Zt.L0)(_n,Sn):(0,Zt._5)(_n,Sn),Nt=(0,Zt._5)(Rn,Sn);tn={checked:At,halfChecked:Nt},Ke.checkedNodes=At.map(function(Hn){return(0,Gt.Z)(Ft,Hn)}).filter(Boolean).map(function(Hn){return Hn.node}),Be.setUncontrolledState({checkedKeys:At})}else{var gn=(0,Ye.S)([].concat((0,pe.Z)(_n),[Sn]),!0,Ft),xn=gn.checkedKeys,Nn=gn.halfCheckedKeys;if(!ut){var Pn=new Set(xn);Pn.delete(Sn);var ur=(0,Ye.S)(Array.from(Pn),{checked:!1,halfCheckedKeys:Nn},Ft);xn=ur.checkedKeys,Nn=ur.halfCheckedKeys}tn=xn,Ke.checkedNodes=[],Ke.checkedNodesPositions=[],Ke.halfCheckedKeys=Nn,xn.forEach(function(Hn){var Nr=(0,Gt.Z)(Ft,Hn);if(Nr){var no=Nr.node,Fr=Nr.pos;Ke.checkedNodes.push(no),Ke.checkedNodesPositions.push({node:no,pos:Fr})}}),Be.setUncontrolledState({checkedKeys:xn},!1,{halfCheckedKeys:Nn})}en==null||en(tn,Ke)}),(0,ue.Z)((0,me.Z)(Be),"onNodeLoad",function(qe){var Ge,ut=qe.key,Pt=Be.state.keyEntities,Ft=(0,Gt.Z)(Pt,ut);if(!(Ft!=null&&(Ge=Ft.children)!==null&&Ge!==void 0&&Ge.length)){var _n=new Promise(function(Rn,wn){Be.setState(function(Ln){var en=Ln.loadedKeys,Sn=en===void 0?[]:en,tn=Ln.loadingKeys,Ke=tn===void 0?[]:tn,At=Be.props,Nt=At.loadData,gn=At.onLoad;if(!Nt||Sn.includes(ut)||Ke.includes(ut))return null;var xn=Nt(qe);return xn.then(function(){var Nn=Be.state.loadedKeys,Pn=(0,Zt.L0)(Nn,ut);gn==null||gn(Pn,{event:"load",node:qe}),Be.setUncontrolledState({loadedKeys:Pn}),Be.setState(function(ur){return{loadingKeys:(0,Zt._5)(ur.loadingKeys,ut)}}),Rn()}).catch(function(Nn){if(Be.setState(function(ur){return{loadingKeys:(0,Zt._5)(ur.loadingKeys,ut)}}),Be.loadingRetryTimes[ut]=(Be.loadingRetryTimes[ut]||0)+1,Be.loadingRetryTimes[ut]>=fn){var Pn=Be.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Be.setUncontrolledState({loadedKeys:(0,Zt.L0)(Pn,ut)}),Rn()}wn(Nn)}),{loadingKeys:(0,Zt.L0)(Ke,ut)}})});return _n.catch(function(){}),_n}}),(0,ue.Z)((0,me.Z)(Be),"onNodeMouseEnter",function(qe,Ge){var ut=Be.props.onMouseEnter;ut==null||ut({event:qe,node:Ge})}),(0,ue.Z)((0,me.Z)(Be),"onNodeMouseLeave",function(qe,Ge){var ut=Be.props.onMouseLeave;ut==null||ut({event:qe,node:Ge})}),(0,ue.Z)((0,me.Z)(Be),"onNodeContextMenu",function(qe,Ge){var ut=Be.props.onRightClick;ut&&(qe.preventDefault(),ut({event:qe,node:Ge}))}),(0,ue.Z)((0,me.Z)(Be),"onFocus",function(){var qe=Be.props.onFocus;Be.setState({focused:!0});for(var Ge=arguments.length,ut=new Array(Ge),Pt=0;Pt<Ge;Pt++)ut[Pt]=arguments[Pt];qe==null||qe.apply(void 0,ut)}),(0,ue.Z)((0,me.Z)(Be),"onBlur",function(){var qe=Be.props.onBlur;Be.setState({focused:!1}),Be.onActiveChange(null);for(var Ge=arguments.length,ut=new Array(Ge),Pt=0;Pt<Ge;Pt++)ut[Pt]=arguments[Pt];qe==null||qe.apply(void 0,ut)}),(0,ue.Z)((0,me.Z)(Be),"getTreeNodeRequiredProps",function(){var qe=Be.state,Ge=qe.expandedKeys,ut=qe.selectedKeys,Pt=qe.loadedKeys,Ft=qe.loadingKeys,_n=qe.checkedKeys,Rn=qe.halfCheckedKeys,wn=qe.dragOverNodeKey,Ln=qe.dropPosition,en=qe.keyEntities;return{expandedKeys:Ge||[],selectedKeys:ut||[],loadedKeys:Pt||[],loadingKeys:Ft||[],checkedKeys:_n||[],halfCheckedKeys:Rn||[],dragOverNodeKey:wn,dropPosition:Ln,keyEntities:en}}),(0,ue.Z)((0,me.Z)(Be),"setExpandedKeys",function(qe){var Ge=Be.state,ut=Ge.treeData,Pt=Ge.fieldNames,Ft=(0,Ie.oH)(ut,qe,Pt);Be.setUncontrolledState({expandedKeys:qe,flattenNodes:Ft},!0)}),(0,ue.Z)((0,me.Z)(Be),"onNodeExpand",function(qe,Ge){var ut=Be.state.expandedKeys,Pt=Be.state,Ft=Pt.listChanging,_n=Pt.fieldNames,Rn=Be.props,wn=Rn.onExpand,Ln=Rn.loadData,en=Ge.expanded,Sn=Ge[_n.key];if(!Ft){var tn=ut.includes(Sn),Ke=!en;if((0,a.ZP)(en&&tn||!en&&!tn,"Expand state not sync with index check"),ut=Ke?(0,Zt.L0)(ut,Sn):(0,Zt._5)(ut,Sn),Be.setExpandedKeys(ut),wn==null||wn(ut,{node:Ge,expanded:Ke,nativeEvent:qe.nativeEvent}),Ke&&Ln){var At=Be.onNodeLoad(Ge);At&&At.then(function(){var Nt=(0,Ie.oH)(Be.state.treeData,ut,_n);Be.setUncontrolledState({flattenNodes:Nt})}).catch(function(){var Nt=Be.state.expandedKeys,gn=(0,Zt._5)(Nt,Sn);Be.setExpandedKeys(gn)})}}}),(0,ue.Z)((0,me.Z)(Be),"onListChangeStart",function(){Be.setUncontrolledState({listChanging:!0})}),(0,ue.Z)((0,me.Z)(Be),"onListChangeEnd",function(){setTimeout(function(){Be.setUncontrolledState({listChanging:!1})})}),(0,ue.Z)((0,me.Z)(Be),"onActiveChange",function(qe){var Ge=Be.state.activeKey,ut=Be.props,Pt=ut.onActiveChange,Ft=ut.itemScrollOffset,_n=Ft===void 0?0:Ft;Ge!==qe&&(Be.setState({activeKey:qe}),qe!==null&&Be.scrollTo({key:qe,offset:_n}),Pt==null||Pt(qe))}),(0,ue.Z)((0,me.Z)(Be),"getActiveItem",function(){var qe=Be.state,Ge=qe.activeKey,ut=qe.flattenNodes;return Ge===null?null:ut.find(function(Pt){var Ft=Pt.key;return Ft===Ge})||null}),(0,ue.Z)((0,me.Z)(Be),"offsetActiveKey",function(qe){var Ge=Be.state,ut=Ge.flattenNodes,Pt=Ge.activeKey,Ft=ut.findIndex(function(wn){var Ln=wn.key;return Ln===Pt});Ft===-1&&qe<0&&(Ft=ut.length),Ft=(Ft+qe+ut.length)%ut.length;var _n=ut[Ft];if(_n){var Rn=_n.key;Be.onActiveChange(Rn)}else Be.onActiveChange(null)}),(0,ue.Z)((0,me.Z)(Be),"onKeyDown",function(qe){var Ge=Be.state,ut=Ge.activeKey,Pt=Ge.expandedKeys,Ft=Ge.checkedKeys,_n=Ge.fieldNames,Rn=Be.props,wn=Rn.onKeyDown,Ln=Rn.checkable,en=Rn.selectable;switch(qe.which){case ie.Z.UP:{Be.offsetActiveKey(-1),qe.preventDefault();break}case ie.Z.DOWN:{Be.offsetActiveKey(1),qe.preventDefault();break}}var Sn=Be.getActiveItem();if(Sn&&Sn.data){var tn=Be.getTreeNodeRequiredProps(),Ke=Sn.data.isLeaf===!1||!!(Sn.data[_n.children]||[]).length,At=(0,Ie.F)((0,Ee.Z)((0,Ee.Z)({},(0,Ie.H8)(ut,tn)),{},{data:Sn.data,active:!0}));switch(qe.which){case ie.Z.LEFT:{Ke&&Pt.includes(ut)?Be.onNodeExpand({},At):Sn.parent&&Be.onActiveChange(Sn.parent.key),qe.preventDefault();break}case ie.Z.RIGHT:{Ke&&!Pt.includes(ut)?Be.onNodeExpand({},At):Sn.children&&Sn.children.length&&Be.onActiveChange(Sn.children[0].key),qe.preventDefault();break}case ie.Z.ENTER:case ie.Z.SPACE:{Ln&&!At.disabled&&At.checkable!==!1&&!At.disableCheckbox?Be.onNodeCheck({},At,!Ft.includes(ut)):!Ln&&en&&!At.disabled&&At.selectable!==!1&&Be.onNodeSelect({},At);break}}}wn==null||wn(qe)}),(0,ue.Z)((0,me.Z)(Be),"setUncontrolledState",function(qe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Be.destroyed){var Pt=!1,Ft=!0,_n={};Object.keys(qe).forEach(function(Rn){if(Be.props.hasOwnProperty(Rn)){Ft=!1;return}Pt=!0,_n[Rn]=qe[Rn]}),Pt&&(!Ge||Ft)&&Be.setState((0,Ee.Z)((0,Ee.Z)({},_n),ut))}}),(0,ue.Z)((0,me.Z)(Be),"scrollTo",function(qe){Be.listRef.current.scrollTo(qe)}),Be}return(0,fe.Z)(Ct,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var rt=this.props,tt=rt.activeKey,ct=rt.itemScrollOffset,qe=ct===void 0?0:ct;tt!==void 0&&tt!==this.state.activeKey&&(this.setState({activeKey:tt}),tt!==null&&this.scrollTo({key:tt,offset:qe}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var rt=this.state,tt=rt.focused,ct=rt.flattenNodes,qe=rt.keyEntities,Ge=rt.draggingNodeKey,ut=rt.activeKey,Pt=rt.dropLevelOffset,Ft=rt.dropContainerKey,_n=rt.dropTargetKey,Rn=rt.dropPosition,wn=rt.dragOverNodeKey,Ln=rt.indent,en=this.props,Sn=en.prefixCls,tn=en.className,Ke=en.style,At=en.showLine,Nt=en.focusable,gn=en.tabIndex,xn=gn===void 0?0:gn,Nn=en.selectable,Pn=en.showIcon,ur=en.icon,Hn=en.switcherIcon,Nr=en.draggable,no=en.checkable,Fr=en.checkStrictly,Tn=en.disabled,Yn=en.motion,En=en.loadData,fr=en.filterTreeNode,$n=en.height,Un=en.itemHeight,Zo=en.scrollWidth,ho=en.virtual,Wr=en.titleRender,ai=en.dropIndicatorRender,ln=en.onContextMenu,oe=en.onScroll,ae=en.direction,be=en.rootClassName,we=en.rootStyle,Ae=(0,ne.Z)(this.props,{aria:!0,data:!0}),nt;Nr&&((0,_e.Z)(Nr)==="object"?nt=Nr:typeof Nr=="function"?nt={nodeDraggable:Nr}:nt={});var it={prefixCls:Sn,selectable:Nn,showIcon:Pn,icon:ur,switcherIcon:Hn,draggable:nt,draggingNodeKey:Ge,checkable:no,checkStrictly:Fr,disabled:Tn,keyEntities:qe,dropLevelOffset:Pt,dropContainerKey:Ft,dropTargetKey:_n,dropPosition:Rn,dragOverNodeKey:wn,indent:Ln,direction:ae,dropIndicatorRender:ai,loadData:En,filterTreeNode:fr,titleRender:Wr,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};return y.createElement(x.k.Provider,{value:it},y.createElement("div",{className:he()(Sn,tn,be,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Sn,"-show-line"),At),"".concat(Sn,"-focused"),tt),"".concat(Sn,"-active-focused"),ut!==null)),style:we},y.createElement(yt,(0,E.Z)({ref:this.listRef,prefixCls:Sn,style:Ke,data:ct,disabled:Tn,selectable:Nn,checkable:!!no,motion:Yn,dragging:Ge!==null,height:$n,itemHeight:Un,virtual:ho,focusable:Nt,focused:tt,tabIndex:xn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ln,onScroll:oe,scrollWidth:Zo},this.getTreeNodeRequiredProps(),Ae))))}}],[{key:"getDerivedStateFromProps",value:function(rt,tt){var ct=tt.prevProps,qe={prevProps:rt};function Ge(xn){return!ct&&rt.hasOwnProperty(xn)||ct&&ct[xn]!==rt[xn]}var ut,Pt=tt.fieldNames;if(Ge("fieldNames")&&(Pt=(0,Ie.w$)(rt.fieldNames),qe.fieldNames=Pt),Ge("treeData")?ut=rt.treeData:Ge("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ut=(0,Ie.zn)(rt.children)),ut){qe.treeData=ut;var Ft=(0,Ie.I8)(ut,{fieldNames:Pt});qe.keyEntities=(0,Ee.Z)((0,ue.Z)({},xt,Dt),Ft.keyEntities)}var _n=qe.keyEntities||tt.keyEntities;if(Ge("expandedKeys")||ct&&Ge("autoExpandParent"))qe.expandedKeys=rt.autoExpandParent||!ct&&rt.defaultExpandParent?(0,Zt.r7)(rt.expandedKeys,_n):rt.expandedKeys;else if(!ct&&rt.defaultExpandAll){var Rn=(0,Ee.Z)({},_n);delete Rn[xt];var wn=[];Object.keys(Rn).forEach(function(xn){var Nn=Rn[xn];Nn.children&&Nn.children.length&&wn.push(Nn.key)}),qe.expandedKeys=wn}else!ct&&rt.defaultExpandedKeys&&(qe.expandedKeys=rt.autoExpandParent||rt.defaultExpandParent?(0,Zt.r7)(rt.defaultExpandedKeys,_n):rt.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,ut||qe.expandedKeys){var Ln=(0,Ie.oH)(ut||tt.treeData,qe.expandedKeys||tt.expandedKeys,Pt);qe.flattenNodes=Ln}if(rt.selectable&&(Ge("selectedKeys")?qe.selectedKeys=(0,Zt.BT)(rt.selectedKeys,rt):!ct&&rt.defaultSelectedKeys&&(qe.selectedKeys=(0,Zt.BT)(rt.defaultSelectedKeys,rt))),rt.checkable){var en;if(Ge("checkedKeys")?en=(0,Zt.E6)(rt.checkedKeys)||{}:!ct&&rt.defaultCheckedKeys?en=(0,Zt.E6)(rt.defaultCheckedKeys)||{}:ut&&(en=(0,Zt.E6)(rt.checkedKeys)||{checkedKeys:tt.checkedKeys,halfCheckedKeys:tt.halfCheckedKeys}),en){var Sn=en,tn=Sn.checkedKeys,Ke=tn===void 0?[]:tn,At=Sn.halfCheckedKeys,Nt=At===void 0?[]:At;if(!rt.checkStrictly){var gn=(0,Ye.S)(Ke,!0,_n);Ke=gn.checkedKeys,Nt=gn.halfCheckedKeys}qe.checkedKeys=Ke,qe.halfCheckedKeys=Nt}}return Ge("loadedKeys")&&(qe.loadedKeys=rt.loadedKeys),qe}}]),Ct}(y.Component);(0,ue.Z)(hn,"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:z,allowDrop:function(){return!0},expandAction:!1}),(0,ue.Z)(hn,"TreeNode",Re.Z);var mn=hn,Mn=mn},10225:function(ft,Je,te){"use strict";te.d(Je,{BT:function(){return y},E6:function(){return z},L0:function(){return ue},OM:function(){return a},_5:function(){return ce},r7:function(){return ee},wA:function(){return he},yx:function(){return le}});var E=te(74902),_e=te(71002),Ee=te(80334),pe=te(67294),ve=te(86128),fe=te(35381),me=te(1089),de=null;function ce(re,se){if(!re)return[];var ge=re.slice(),Se=ge.indexOf(se);return Se>=0&&ge.splice(Se,1),ge}function ue(re,se){var ge=(re||[]).slice();return ge.indexOf(se)===-1&&ge.push(se),ge}function le(re){return re.split("-")}function he(re,se){var ge=[],Se=(0,fe.Z)(se,re);function Pe(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Re.forEach(function(Le){var Fe=Le.key,Ie=Le.children;ge.push(Fe),Pe(Ie)})}return Pe(Se.children),ge}function ie(re){if(re.parent){var se=le(re.pos);return Number(se[se.length-1])===re.parent.children.length-1}return!1}function ne(re){var se=le(re.pos);return Number(se[se.length-1])===0}function a(re,se,ge,Se,Pe,Re,Le,Fe,Ie,vt){var at,et=re.clientX,De=re.clientY,Oe=re.target.getBoundingClientRect(),ke=Oe.top,lt=Oe.height,Xe=(vt==="rtl"?-1:1)*(((Pe==null?void 0:Pe.x)||0)-et),xt=(Xe-12)/Se,Ot=Ie.filter(function(Mn){var Rt;return(Rt=Fe[Mn])===null||Rt===void 0||(Rt=Rt.children)===null||Rt===void 0?void 0:Rt.length}),Dt=(0,fe.Z)(Fe,ge.eventKey);if(De<ke+lt/2){var Kt=Le.findIndex(function(Mn){return Mn.key===Dt.key}),St=Kt<=0?0:Kt-1,gt=Le[St].key;Dt=(0,fe.Z)(Fe,gt)}var ht=Dt.key,Qt=Dt,yt=Dt.key,Zt=0,Ye=0;if(!Ot.includes(ht))for(var Gt=0;Gt<xt&&ie(Dt);Gt+=1)Dt=Dt.parent,Ye+=1;var fn=se.data,hn=Dt.node,mn=!0;return ne(Dt)&&Dt.level===0&&De<ke+lt/2&&Re({dragNode:fn,dropNode:hn,dropPosition:-1})&&Dt.key===ge.eventKey?Zt=-1:(Qt.children||[]).length&&Ot.includes(yt)?Re({dragNode:fn,dropNode:hn,dropPosition:0})?Zt=0:mn=!1:Ye===0?xt>-1.5?Re({dragNode:fn,dropNode:hn,dropPosition:1})?Zt=1:mn=!1:Re({dragNode:fn,dropNode:hn,dropPosition:0})?Zt=0:Re({dragNode:fn,dropNode:hn,dropPosition:1})?Zt=1:mn=!1:Re({dragNode:fn,dropNode:hn,dropPosition:1})?Zt=1:mn=!1,{dropPosition:Zt,dropLevelOffset:Ye,dropTargetKey:Dt.key,dropTargetPos:Dt.pos,dragOverNodeKey:yt,dropContainerKey:Zt===0?null:((at=Dt.parent)===null||at===void 0?void 0:at.key)||null,dropAllowed:mn}}function y(re,se){if(re){var ge=se.multiple;return ge?re.slice():re.length?[re[0]]:re}}var x=function(se){return se};function b(re,se){if(!re)return[];var ge=se||{},Se=ge.processProps,Pe=Se===void 0?x:Se,Re=Array.isArray(re)?re:[re];return Re.map(function(Le){var Fe=Le.children,Ie=_objectWithoutProperties(Le,de),vt=b(Fe,se);return React.createElement(TreeNode,_extends({key:Ie.key},Pe(Ie)),vt)})}function z(re){if(!re)return null;var se;if(Array.isArray(re))se={checkedKeys:re,halfCheckedKeys:void 0};else if((0,_e.Z)(re)==="object")se={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,Ee.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return se}function ee(re,se){var ge=new Set;function Se(Pe){if(!ge.has(Pe)){var Re=(0,fe.Z)(se,Pe);if(Re){ge.add(Pe);var Le=Re.parent,Fe=Re.node;Fe.disabled||Le&&Se(Le.key)}}}return(re||[]).forEach(function(Pe){Se(Pe)}),(0,E.Z)(ge)}},17341:function(ft,Je,te){"use strict";te.d(Je,{S:function(){return me}});var E=te(80334),_e=te(35381);function Ee(de,ce){var ue=new Set;return de.forEach(function(le){ce.has(le)||ue.add(le)}),ue}function pe(de){var ce=de||{},ue=ce.disabled,le=ce.disableCheckbox,he=ce.checkable;return!!(ue||le)||he===!1}function ve(de,ce,ue,le){for(var he=new Set(de),ie=new Set,ne=0;ne<=ue;ne+=1){var a=ce.get(ne)||new Set;a.forEach(function(z){var ee=z.key,re=z.node,se=z.children,ge=se===void 0?[]:se;he.has(ee)&&!le(re)&&ge.filter(function(Se){return!le(Se.node)}).forEach(function(Se){he.add(Se.key)})})}for(var y=new Set,x=ue;x>=0;x-=1){var b=ce.get(x)||new Set;b.forEach(function(z){var ee=z.parent,re=z.node;if(!(le(re)||!z.parent||y.has(z.parent.key))){if(le(z.parent.node)){y.add(ee.key);return}var se=!0,ge=!1;(ee.children||[]).filter(function(Se){return!le(Se.node)}).forEach(function(Se){var Pe=Se.key,Re=he.has(Pe);se&&!Re&&(se=!1),!ge&&(Re||ie.has(Pe))&&(ge=!0)}),se&&he.add(ee.key),ge&&ie.add(ee.key),y.add(ee.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(Ee(ie,he))}}function fe(de,ce,ue,le,he){for(var ie=new Set(de),ne=new Set(ce),a=0;a<=le;a+=1){var y=ue.get(a)||new Set;y.forEach(function(ee){var re=ee.key,se=ee.node,ge=ee.children,Se=ge===void 0?[]:ge;!ie.has(re)&&!ne.has(re)&&!he(se)&&Se.filter(function(Pe){return!he(Pe.node)}).forEach(function(Pe){ie.delete(Pe.key)})})}ne=new Set;for(var x=new Set,b=le;b>=0;b-=1){var z=ue.get(b)||new Set;z.forEach(function(ee){var re=ee.parent,se=ee.node;if(!(he(se)||!ee.parent||x.has(ee.parent.key))){if(he(ee.parent.node)){x.add(re.key);return}var ge=!0,Se=!1;(re.children||[]).filter(function(Pe){return!he(Pe.node)}).forEach(function(Pe){var Re=Pe.key,Le=ie.has(Re);ge&&!Le&&(ge=!1),!Se&&(Le||ne.has(Re))&&(Se=!0)}),ge||ie.delete(re.key),Se&&ne.add(re.key),x.add(re.key)}})}return{checkedKeys:Array.from(ie),halfCheckedKeys:Array.from(Ee(ne,ie))}}function me(de,ce,ue,le){var he=[],ie;le?ie=le:ie=pe;var ne=new Set(de.filter(function(b){var z=!!(0,_e.Z)(ue,b);return z||he.push(b),z})),a=new Map,y=0;Object.keys(ue).forEach(function(b){var z=ue[b],ee=z.level,re=a.get(ee);re||(re=new Set,a.set(ee,re)),re.add(z),y=Math.max(y,ee)}),(0,E.ZP)(!he.length,"Tree missing follow keys: ".concat(he.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var x;return ce===!0?x=ve(ne,a,y,ie):x=fe(ne,ce.halfCheckedKeys,a,y,ie),x}},35381:function(ft,Je,te){"use strict";te.d(Je,{Z:function(){return E}});function E(_e,Ee){return _e[Ee]}},1089:function(ft,Je,te){"use strict";te.d(Je,{F:function(){return ee},H8:function(){return z},I8:function(){return b},km:function(){return he},oH:function(){return y},w$:function(){return ie},zn:function(){return a}});var E=te(71002),_e=te(74902),Ee=te(1413),pe=te(45987),ve=te(50344),fe=te(98423),me=te(80334),de=te(35381),ce=["children"];function ue(re,se){return"".concat(re,"-").concat(se)}function le(re){return re&&re.type&&re.type.isTreeNode}function he(re,se){return re!=null?re:se}function ie(re){var se=re||{},ge=se.title,Se=se._title,Pe=se.key,Re=se.children,Le=ge||"title";return{title:Le,_title:Se||[Le],key:Pe||"key",children:Re||"children"}}function ne(re,se){var ge=new Map;function Se(Pe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Pe||[]).forEach(function(Le){var Fe=Le[se.key],Ie=Le[se.children];warning(Fe!=null,"Tree node must have a certain key: [".concat(Re).concat(Fe,"]"));var vt=String(Fe);warning(!ge.has(vt)||Fe===null||Fe===void 0,"Same 'key' exist in the Tree: ".concat(vt)),ge.set(vt,!0),Se(Ie,"".concat(Re).concat(vt," > "))})}Se(re)}function a(re){function se(ge){var Se=(0,ve.Z)(ge);return Se.map(function(Pe){if(!le(Pe))return(0,me.ZP)(!Pe,"Tree/TreeNode can only accept TreeNode as children."),null;var Re=Pe.key,Le=Pe.props,Fe=Le.children,Ie=(0,pe.Z)(Le,ce),vt=(0,Ee.Z)({key:Re},Ie),at=se(Fe);return at.length&&(vt.children=at),vt}).filter(function(Pe){return Pe})}return se(re)}function y(re,se,ge){var Se=ie(ge),Pe=Se._title,Re=Se.key,Le=Se.children,Fe=new Set(se===!0?[]:se),Ie=[];function vt(at){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return at.map(function(De,Oe){for(var ke=ue(et?et.pos:"0",Oe),lt=he(De[Re],ke),Xe,xt=0;xt<Pe.length;xt+=1){var Ot=Pe[xt];if(De[Ot]!==void 0){Xe=De[Ot];break}}var Dt=Object.assign((0,fe.Z)(De,[].concat((0,_e.Z)(Pe),[Re,Le])),{title:Xe,key:lt,parent:et,pos:ke,children:null,data:De,isStart:[].concat((0,_e.Z)(et?et.isStart:[]),[Oe===0]),isEnd:[].concat((0,_e.Z)(et?et.isEnd:[]),[Oe===at.length-1])});return Ie.push(Dt),se===!0||Fe.has(lt)?Dt.children=vt(De[Le]||[],Dt):Dt.children=[],Dt})}return vt(re),Ie}function x(re,se,ge){var Se={};(0,E.Z)(ge)==="object"?Se=ge:Se={externalGetKey:ge},Se=Se||{};var Pe=Se,Re=Pe.childrenPropName,Le=Pe.externalGetKey,Fe=Pe.fieldNames,Ie=ie(Fe),vt=Ie.key,at=Ie.children,et=Re||at,De;Le?typeof Le=="string"?De=function(lt){return lt[Le]}:typeof Le=="function"&&(De=function(lt){return Le(lt)}):De=function(lt,Xe){return he(lt[vt],Xe)};function Oe(ke,lt,Xe,xt){var Ot=ke?ke[et]:re,Dt=ke?ue(Xe.pos,lt):"0",Kt=ke?[].concat((0,_e.Z)(xt),[ke]):[];if(ke){var St=De(ke,Dt),gt={node:ke,index:lt,pos:Dt,key:St,parentPos:Xe.node?Xe.pos:null,level:Xe.level+1,nodes:Kt};se(gt)}Ot&&Ot.forEach(function(ht,Qt){Oe(ht,Qt,{node:ke,pos:Dt,level:Xe?Xe.level+1:-1},Kt)})}Oe(null)}function b(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=se.initWrapper,Se=se.processEntity,Pe=se.onProcessFinished,Re=se.externalGetKey,Le=se.childrenPropName,Fe=se.fieldNames,Ie=arguments.length>2?arguments[2]:void 0,vt=Re||Ie,at={},et={},De={posEntities:at,keyEntities:et};return ge&&(De=ge(De)||De),x(re,function(Oe){var ke=Oe.node,lt=Oe.index,Xe=Oe.pos,xt=Oe.key,Ot=Oe.parentPos,Dt=Oe.level,Kt=Oe.nodes,St={node:ke,nodes:Kt,index:lt,key:xt,pos:Xe,level:Dt},gt=he(xt,Xe);at[Xe]=St,et[gt]=St,St.parent=at[Ot],St.parent&&(St.parent.children=St.parent.children||[],St.parent.children.push(St)),Se&&Se(St,De)},{externalGetKey:vt,childrenPropName:Le,fieldNames:Fe}),Pe&&Pe(De),De}function z(re,se){var ge=se.expandedKeys,Se=se.selectedKeys,Pe=se.loadedKeys,Re=se.loadingKeys,Le=se.checkedKeys,Fe=se.halfCheckedKeys,Ie=se.dragOverNodeKey,vt=se.dropPosition,at=se.keyEntities,et=(0,de.Z)(at,re),De={eventKey:re,expanded:ge.indexOf(re)!==-1,selected:Se.indexOf(re)!==-1,loaded:Pe.indexOf(re)!==-1,loading:Re.indexOf(re)!==-1,checked:Le.indexOf(re)!==-1,halfChecked:Fe.indexOf(re)!==-1,pos:String(et?et.pos:""),dragOver:Ie===re&&vt===0,dragOverGapTop:Ie===re&&vt===-1,dragOverGapBottom:Ie===re&&vt===1};return De}function ee(re){var se=re.data,ge=re.expanded,Se=re.selected,Pe=re.checked,Re=re.loaded,Le=re.loading,Fe=re.halfChecked,Ie=re.dragOver,vt=re.dragOverGapTop,at=re.dragOverGapBottom,et=re.pos,De=re.active,Oe=re.eventKey,ke=(0,Ee.Z)((0,Ee.Z)({},se),{},{expanded:ge,selected:Se,checked:Pe,loaded:Re,loading:Le,halfChecked:Fe,dragOver:Ie,dragOverGapTop:vt,dragOverGapBottom:at,pos:et,active:De,key:Oe});return"props"in ke||Object.defineProperty(ke,"props",{get:function(){return(0,me.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),re}}),ke}},58971:function(ft,Je,te){var E=te(62195),_e=te(39015),Ee=[te(19257)];ft.exports=E.createStore(_e,Ee)},19257:function(ft,Je,te){ft.exports=E;function E(){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(ft){return ft<10?"0"+ft:ft}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(ft){return rx_escapable.lastIndex=0,rx_escapable.test(ft)?'"'+ft.replace(rx_escapable,function(Je){var te=meta[Je];return typeof te=="string"?te:"\\u"+("0000"+Je.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ft+'"'}function str(ft,Je){var te,E,_e,Ee,pe=gap,ve,fe=Je[ft];switch(fe&&typeof fe=="object"&&typeof fe.toJSON=="function"&&(fe=fe.toJSON(ft)),typeof rep=="function"&&(fe=rep.call(Je,ft,fe)),typeof fe){case"string":return quote(fe);case"number":return isFinite(fe)?String(fe):"null";case"boolean":case"null":return String(fe);case"object":if(!fe)return"null";if(gap+=indent,ve=[],Object.prototype.toString.apply(fe)==="[object Array]"){for(Ee=fe.length,te=0;te<Ee;te+=1)ve[te]=str(te,fe)||"null";return _e=ve.length===0?"[]":gap?`[
|
|
|
`+gap+ve.join(`,
|
|
|
`+gap)+`
|
|
|
`+pe+"]":"["+ve.join(",")+"]",gap=pe,_e}if(rep&&typeof rep=="object")for(Ee=rep.length,te=0;te<Ee;te+=1)typeof rep[te]=="string"&&(E=rep[te],_e=str(E,fe),_e&&ve.push(quote(E)+(gap?": ":":")+_e));else for(E in fe)Object.prototype.hasOwnProperty.call(fe,E)&&(_e=str(E,fe),_e&&ve.push(quote(E)+(gap?": ":":")+_e));return _e=ve.length===0?"{}":gap?`{
|
|
|
`+gap+ve.join(`,
|
|
|
`+gap)+`
|
|
|
`+pe+"}":"{"+ve.join(",")+"}",gap=pe,_e}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(ft,Je,te){var E;if(gap="",indent="",typeof te=="number")for(E=0;E<te;E+=1)indent+=" ";else typeof te=="string"&&(indent=te);if(rep=Je,Je&&typeof Je!="function"&&(typeof Je!="object"||typeof Je.length!="number"))throw new Error("JSON.stringify");return str("",{"":ft})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(ft,Je){var te,E,_e=ft[Je];if(_e&&typeof _e=="object")for(te in _e)Object.prototype.hasOwnProperty.call(_e,te)&&(E=walk(_e,te),E!==void 0?_e[te]=E:delete _e[te]);return reviver.call(ft,Je,_e)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(ft){return"\\u"+("0000"+ft.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},62195:function(ft,Je,te){var E=te(69078),_e=E.slice,Ee=E.pluck,pe=E.each,ve=E.bind,fe=E.create,me=E.isList,de=E.isFunction,ce=E.isObject;ft.exports={createStore:he};var ue={version:"2.0.12",enabled:!1,get:function(ie,ne){var a=this.storage.read(this._namespacePrefix+ie);return this._deserialize(a,ne)},set:function(ie,ne){return ne===void 0?this.remove(ie):(this.storage.write(this._namespacePrefix+ie,this._serialize(ne)),ne)},remove:function(ie){this.storage.remove(this._namespacePrefix+ie)},each:function(ie){var ne=this;this.storage.each(function(a,y){ie.call(ne,ne._deserialize(a),(y||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(ie){return this._namespacePrefix=="__storejs_"+ie+"_"},createStore:function(){return he.apply(this,arguments)},addPlugin:function(ie){this._addPlugin(ie)},namespace:function(ie){return he(this.storage,this.plugins,ie)}};function le(){var ie=typeof console=="undefined"?null:console;if(ie){var ne=ie.warn?ie.warn:ie.log;ne.apply(ie,arguments)}}function he(ie,ne,a){a||(a=""),ie&&!me(ie)&&(ie=[ie]),ne&&!me(ne)&&(ne=[ne]);var y=a?"__storejs_"+a+"_":"",x=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 z={_namespacePrefix:y,_namespaceRegexp:x,_testStorage:function(re){try{var se="__storejs__test__";re.write(se,se);var ge=re.read(se)===se;return re.remove(se),ge}catch(Se){return!1}},_assignPluginFnProp:function(re,se){var ge=this[se];this[se]=function(){var Pe=_e(arguments,0),Re=this;function Le(){if(ge)return pe(arguments,function(Ie,vt){Pe[vt]=Ie}),ge.apply(Re,Pe)}var Fe=[Le].concat(Pe);return re.apply(Re,Fe)}},_serialize:function(re){return JSON.stringify(re)},_deserialize:function(re,se){if(!re)return se;var ge="";try{ge=JSON.parse(re)}catch(Se){ge=re}return ge!==void 0?ge:se},_addStorage:function(re){this.enabled||this._testStorage(re)&&(this.storage=re,this.enabled=!0)},_addPlugin:function(re){var se=this;if(me(re)){pe(re,function(Pe){se._addPlugin(Pe)});return}var ge=Ee(this.plugins,function(Pe){return re===Pe});if(!ge){if(this.plugins.push(re),!de(re))throw new Error("Plugins must be function values that return objects");var Se=re.call(this);if(!ce(Se))throw new Error("Plugins must return an object of function properties");pe(Se,function(Pe,Re){if(!de(Pe))throw new Error("Bad plugin property: "+Re+" from plugin "+re.name+". Plugins should only return functions.");se._assignPluginFnProp(Pe,Re)})}},addStorage:function(re){le("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(re)}},ee=fe(z,ue,{plugins:[]});return ee.raw={},pe(ee,function(re,se){de(re)&&(ee.raw[se]=ve(ee,re))}),pe(ie,function(re){ee._addStorage(re)}),pe(ne,function(re){ee._addPlugin(re)}),ee}},69078:function(ft,Je,te){var E=ve(),_e=fe(),Ee=me(),pe=typeof window!="undefined"?window:te.g;ft.exports={assign:E,create:_e,trim:Ee,bind:de,slice:ce,each:ue,map:le,pluck:he,isList:ie,isFunction:ne,isObject:a,Global:pe};function ve(){return Object.assign?Object.assign:function(x,b,z,ee){for(var re=1;re<arguments.length;re++)ue(Object(arguments[re]),function(se,ge){x[ge]=se});return x}}function fe(){if(Object.create)return function(b,z,ee,re){var se=ce(arguments,1);return E.apply(this,[Object.create(b)].concat(se))};{let x=function(){};var y=x;return function(z,ee,re,se){var ge=ce(arguments,1);return x.prototype=z,E.apply(this,[new x].concat(ge))}}}function me(){return String.prototype.trim?function(x){return String.prototype.trim.call(x)}:function(x){return x.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function de(y,x){return function(){return x.apply(y,Array.prototype.slice.call(arguments,0))}}function ce(y,x){return Array.prototype.slice.call(y,x||0)}function ue(y,x){he(y,function(b,z){return x(b,z),!1})}function le(y,x){var b=ie(y)?[]:{};return he(y,function(z,ee){return b[ee]=x(z,ee),!1}),b}function he(y,x){if(ie(y)){for(var b=0;b<y.length;b++)if(x(y[b],b))return y[b]}else for(var z in y)if(y.hasOwnProperty(z)&&x(y[z],z))return y[z]}function ie(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(ft,Je,te){ft.exports=[te(39627),te(95347),te(34524),te(45580),te(58855),te(8728)]},45580:function(ft,Je,te){var E=te(69078),_e=E.Global,Ee=E.trim;ft.exports={name:"cookieStorage",read:ve,write:me,each:fe,remove:de,clearAll:ce};var pe=_e.document;function ve(le){if(!le||!ue(le))return null;var he="(?:^|.*;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(pe.cookie.replace(new RegExp(he),"$1"))}function fe(le){for(var he=pe.cookie.split(/; ?/g),ie=he.length-1;ie>=0;ie--)if(Ee(he[ie])){var ne=he[ie].split("="),a=unescape(ne[0]),y=unescape(ne[1]);le(y,a)}}function me(le,he){le&&(pe.cookie=escape(le)+"="+escape(he)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function de(le){!le||!ue(le)||(pe.cookie=escape(le)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ce(){fe(function(le,he){de(he)})}function ue(le){return new RegExp("(?:^|;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(pe.cookie)}},39627:function(ft,Je,te){var E=te(69078),_e=E.Global;ft.exports={name:"localStorage",read:pe,write:ve,each:fe,remove:me,clearAll:de};function Ee(){return _e.localStorage}function pe(ce){return Ee().getItem(ce)}function ve(ce,ue){return Ee().setItem(ce,ue)}function fe(ce){for(var ue=Ee().length-1;ue>=0;ue--){var le=Ee().key(ue);ce(pe(le),le)}}function me(ce){return Ee().removeItem(ce)}function de(){return Ee().clear()}},8728:function(ft){ft.exports={name:"memoryStorage",read:te,write:E,each:_e,remove:Ee,clearAll:pe};var Je={};function te(ve){return Je[ve]}function E(ve,fe){Je[ve]=fe}function _e(ve){for(var fe in Je)Je.hasOwnProperty(fe)&&ve(Je[fe],fe)}function Ee(ve){delete Je[ve]}function pe(ve){Je={}}},95347:function(ft,Je,te){var E=te(69078),_e=E.Global;ft.exports={name:"oldFF-globalStorage",read:pe,write:ve,each:fe,remove:me,clearAll:de};var Ee=_e.globalStorage;function pe(ce){return Ee[ce]}function ve(ce,ue){Ee[ce]=ue}function fe(ce){for(var ue=Ee.length-1;ue>=0;ue--){var le=Ee.key(ue);ce(Ee[le],le)}}function me(ce){return Ee.removeItem(ce)}function de(){fe(function(ce,ue){delete Ee[ce]})}},34524:function(ft,Je,te){var E=te(69078),_e=E.Global;ft.exports={name:"oldIE-userDataStorage",write:me,read:de,each:ce,remove:ue,clearAll:le};var Ee="storejs",pe=_e.document,ve=ne(),fe=(_e.navigator?_e.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function me(a,y){if(!fe){var x=ie(a);ve(function(b){b.setAttribute(x,y),b.save(Ee)})}}function de(a){if(!fe){var y=ie(a),x=null;return ve(function(b){x=b.getAttribute(y)}),x}}function ce(a){ve(function(y){for(var x=y.XMLDocument.documentElement.attributes,b=x.length-1;b>=0;b--){var z=x[b];a(y.getAttribute(z.name),z.name)}})}function ue(a){var y=ie(a);ve(function(x){x.removeAttribute(y),x.save(Ee)})}function le(){ve(function(a){var y=a.XMLDocument.documentElement.attributes;a.load(Ee);for(var x=y.length-1;x>=0;x--)a.removeAttribute(y[x].name);a.save(Ee)})}var he=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ie(a){return a.replace(/^\d/,"___$&").replace(he,"___")}function ne(){if(!pe||!pe.documentElement||!pe.documentElement.addBehavior)return null;var a="script",y,x,b;try{x=new ActiveXObject("htmlfile"),x.open(),x.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),x.close(),y=x.w.frames[0].document,b=y.createElement("div")}catch(z){b=pe.createElement("div"),y=pe.body}return function(z){var ee=[].slice.call(arguments,0);ee.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(Ee),z.apply(this,ee),y.removeChild(b)}}},58855:function(ft,Je,te){var E=te(69078),_e=E.Global;ft.exports={name:"sessionStorage",read:pe,write:ve,each:fe,remove:me,clearAll:de};function Ee(){return _e.sessionStorage}function pe(ce){return Ee().getItem(ce)}function ve(ce,ue){return Ee().setItem(ce,ue)}function fe(ce){for(var ue=Ee().length-1;ue>=0;ue--){var le=Ee().key(ue);ce(pe(le),le)}}function me(ce){return Ee().removeItem(ce)}function de(){return Ee().clear()}},18034:function(ft){var Je=arguments[3],te=arguments[4],E=arguments[5],_e=JSON.stringify;ft.exports=function(Ee,pe){for(var ve,fe=Object.keys(E),me=0,de=fe.length;me<de;me++){var ce=fe[me],ue=E[ce].exports;if(ue===Ee||ue&&ue.default===Ee){ve=ce;break}}if(!ve){ve=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var le={},me=0,de=fe.length;me<de;me++){var ce=fe[me];le[ce]=ce}te[ve]=["function(require,module,exports){"+Ee+"(self); }",le]}var he=Math.floor(Math.pow(16,8)*Math.random()).toString(16),ie={};ie[ve]=ve,te[he]=["function(require,module,exports){var f = require("+_e(ve)+");(f.default ? f.default : f)(self);}",ie];var ne={};a(he);function a(re){ne[re]=!0;for(var se in te[re][1]){var ge=te[re][1][se];ne[ge]||a(ge)}}var y="("+Je+")({"+Object.keys(ne).map(function(re){return _e(re)+":["+te[re][0]+","+_e(te[re][1])+"]"}).join(",")+"},{},["+_e(he)+"])",x=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(pe&&pe.bare)return b;var z=x.createObjectURL(b),ee=new Worker(z);return ee.objectURL=z,ee}},12320:function(ft){(function(Je,te){if(1)ft.exports=te();else var E,_e})(window,function(){return function(Je){var te={};function E(_e){if(te[_e])return te[_e].exports;var Ee=te[_e]={i:_e,l:!1,exports:{}};return Je[_e].call(Ee.exports,Ee,Ee.exports,E),Ee.l=!0,Ee.exports}return E.m=Je,E.c=te,E.d=function(_e,Ee,pe){E.o(_e,Ee)||Object.defineProperty(_e,Ee,{enumerable:!0,get:pe})},E.r=function(_e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(_e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(_e,"__esModule",{value:!0})},E.t=function(_e,Ee){if(1&Ee&&(_e=E(_e)),8&Ee||4&Ee&&typeof _e=="object"&&_e&&_e.__esModule)return _e;var pe=Object.create(null);if(E.r(pe),Object.defineProperty(pe,"default",{enumerable:!0,value:_e}),2&Ee&&typeof _e!="string")for(var ve in _e)E.d(pe,ve,function(fe){return _e[fe]}.bind(null,ve));return pe},E.n=function(_e){var Ee=_e&&_e.__esModule?function(){return _e.default}:function(){return _e};return E.d(Ee,"a",Ee),Ee},E.o=function(_e,Ee){return Object.prototype.hasOwnProperty.call(_e,Ee)},E.p="",E(E.s=34)}([function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.forwardEvent=te.EventEmitter=void 0;var _e=function(){function Ee(){this._listeners=[],this._disposed=!1}return Object.defineProperty(Ee.prototype,"event",{get:function(){var pe=this;return this._event||(this._event=function(ve){return pe._listeners.push(ve),{dispose:function(){if(!pe._disposed){for(var fe=0;fe<pe._listeners.length;fe++)if(pe._listeners[fe]===ve)return void pe._listeners.splice(fe,1)}}}}),this._event},enumerable:!1,configurable:!0}),Ee.prototype.fire=function(pe,ve){for(var fe=[],me=0;me<this._listeners.length;me++)fe.push(this._listeners[me]);for(me=0;me<fe.length;me++)fe[me].call(void 0,pe,ve)},Ee.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},Ee}();te.EventEmitter=_e,te.forwardEvent=function(Ee,pe){return Ee(function(ve){return pe.fire(ve)})}},function(Je,te,E){"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 _e=E(14);te.IBufferService=_e.createDecorator("BufferService"),te.ICoreMouseService=_e.createDecorator("CoreMouseService"),te.ICoreService=_e.createDecorator("CoreService"),te.ICharsetService=_e.createDecorator("CharsetService"),te.IDirtyRowService=_e.createDecorator("DirtyRowService"),te.IInstantiationService=_e.createDecorator("InstantiationService"),te.ILogService=_e.createDecorator("LogService"),te.IOptionsService=_e.createDecorator("OptionsService"),te.IUnicodeService=_e.createDecorator("UnicodeService")},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.getDisposeArrayDisposable=te.disposeArray=te.Disposable=void 0;var _e=function(){function pe(){this._disposables=[],this._isDisposed=!1}return pe.prototype.dispose=function(){this._isDisposed=!0;for(var ve=0,fe=this._disposables;ve<fe.length;ve++)fe[ve].dispose();this._disposables.length=0},pe.prototype.register=function(ve){return this._disposables.push(ve),ve},pe.prototype.unregister=function(ve){var fe=this._disposables.indexOf(ve);fe!==-1&&this._disposables.splice(fe,1)},pe}();function Ee(pe){for(var ve=0,fe=pe;ve<fe.length;ve++)fe[ve].dispose();pe.length=0}te.Disposable=_e,te.disposeArray=Ee,te.getDisposeArrayDisposable=function(pe){return{dispose:function(){return Ee(pe)}}}},function(Je,te,E){"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(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(de,ce){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,le){ue.__proto__=le}||function(ue,le){for(var he in le)le.hasOwnProperty(he)&&(ue[he]=le[he])})(de,ce)},function(de,ce){function ue(){this.constructor=de}_e(de,ce),de.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(te,"__esModule",{value:!0}),te.CellData=void 0;var pe=E(8),ve=E(3),fe=E(6),me=function(de){function ce(){var ue=de!==null&&de.apply(this,arguments)||this;return ue.content=0,ue.fg=0,ue.bg=0,ue.extended=new fe.ExtendedAttrs,ue.combinedData="",ue}return Ee(ce,de),ce.fromCharData=function(ue){var le=new ce;return le.setFromCharData(ue),le},ce.prototype.isCombined=function(){return 2097152&this.content},ce.prototype.getWidth=function(){return this.content>>22},ce.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?pe.stringFromCodePoint(2097151&this.content):""},ce.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},ce.prototype.setFromCharData=function(ue){this.fg=ue[ve.CHAR_DATA_ATTR_INDEX],this.bg=0;var le=!1;if(ue[ve.CHAR_DATA_CHAR_INDEX].length>2)le=!0;else if(ue[ve.CHAR_DATA_CHAR_INDEX].length===2){var he=ue[ve.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=he&&he<=56319){var ie=ue[ve.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=ie&&ie<=57343?this.content=1024*(he-55296)+ie-56320+65536|ue[ve.CHAR_DATA_WIDTH_INDEX]<<22:le=!0}else le=!0}else this.content=ue[ve.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ue[ve.CHAR_DATA_WIDTH_INDEX]<<22;le&&(this.combinedData=ue[ve.CHAR_DATA_CHAR_INDEX],this.content=2097152|ue[ve.CHAR_DATA_WIDTH_INDEX]<<22)},ce.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ce}(fe.AttributeData);te.CellData=me},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ISoundService=te.ISelectionService=te.IRenderService=te.IMouseService=te.ICoreBrowserService=te.ICharSizeService=void 0;var _e=E(14);te.ICharSizeService=_e.createDecorator("CharSizeService"),te.ICoreBrowserService=_e.createDecorator("CoreBrowserService"),te.IMouseService=_e.createDecorator("MouseService"),te.IRenderService=_e.createDecorator("RenderService"),te.ISelectionService=_e.createDecorator("SelectionService"),te.ISoundService=_e.createDecorator("SoundService")},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ExtendedAttrs=te.AttributeData=void 0;var _e=function(){function pe(){this.fg=0,this.bg=0,this.extended=new Ee}return pe.toColorRGB=function(ve){return[ve>>>16&255,ve>>>8&255,255&ve]},pe.fromColorRGB=function(ve){return(255&ve[0])<<16|(255&ve[1])<<8|255&ve[2]},pe.prototype.clone=function(){var ve=new pe;return ve.fg=this.fg,ve.bg=this.bg,ve.extended=this.extended.clone(),ve},pe.prototype.isInverse=function(){return 67108864&this.fg},pe.prototype.isBold=function(){return 134217728&this.fg},pe.prototype.isUnderline=function(){return 268435456&this.fg},pe.prototype.isBlink=function(){return 536870912&this.fg},pe.prototype.isInvisible=function(){return 1073741824&this.fg},pe.prototype.isItalic=function(){return 67108864&this.bg},pe.prototype.isDim=function(){return 134217728&this.bg},pe.prototype.getFgColorMode=function(){return 50331648&this.fg},pe.prototype.getBgColorMode=function(){return 50331648&this.bg},pe.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},pe.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},pe.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},pe.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},pe.prototype.isFgDefault=function(){return(50331648&this.fg)==0},pe.prototype.isBgDefault=function(){return(50331648&this.bg)==0},pe.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},pe.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},pe.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},pe.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},pe.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},pe.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()},pe.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},pe.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},pe.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},pe.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},pe.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},pe}();te.AttributeData=_e;var Ee=function(){function pe(ve,fe){ve===void 0&&(ve=0),fe===void 0&&(fe=-1),this.underlineStyle=ve,this.underlineColor=fe}return pe.prototype.clone=function(){return new pe(this.underlineStyle,this.underlineColor)},pe.prototype.isEmpty=function(){return this.underlineStyle===0},pe}();te.ExtendedAttrs=Ee},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.addDisposableDomListener=void 0,te.addDisposableDomListener=function(_e,Ee,pe,ve){_e.addEventListener(Ee,pe,ve);var fe=!1;return{dispose:function(){fe||(fe=!0,_e.removeEventListener(Ee,pe,ve))}}}},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Utf8ToUtf32=te.StringToUtf32=te.utf32ToString=te.stringFromCodePoint=void 0,te.stringFromCodePoint=function(pe){return pe>65535?(pe-=65536,String.fromCharCode(55296+(pe>>10))+String.fromCharCode(pe%1024+56320)):String.fromCharCode(pe)},te.utf32ToString=function(pe,ve,fe){ve===void 0&&(ve=0),fe===void 0&&(fe=pe.length);for(var me="",de=ve;de<fe;++de){var ce=pe[de];ce>65535?(ce-=65536,me+=String.fromCharCode(55296+(ce>>10))+String.fromCharCode(ce%1024+56320)):me+=String.fromCharCode(ce)}return me};var _e=function(){function pe(){this._interim=0}return pe.prototype.clear=function(){this._interim=0},pe.prototype.decode=function(ve,fe){var me=ve.length;if(!me)return 0;var de=0,ce=0;this._interim&&(56320<=(he=ve.charCodeAt(ce++))&&he<=57343?fe[de++]=1024*(this._interim-55296)+he-56320+65536:(fe[de++]=this._interim,fe[de++]=he),this._interim=0);for(var ue=ce;ue<me;++ue){var le=ve.charCodeAt(ue);if(55296<=le&&le<=56319){if(++ue>=me)return this._interim=le,de;var he;56320<=(he=ve.charCodeAt(ue))&&he<=57343?fe[de++]=1024*(le-55296)+he-56320+65536:(fe[de++]=le,fe[de++]=he)}else fe[de++]=le}return de},pe}();te.StringToUtf32=_e;var Ee=function(){function pe(){this.interim=new Uint8Array(3)}return pe.prototype.clear=function(){this.interim.fill(0)},pe.prototype.decode=function(ve,fe){var me=ve.length;if(!me)return 0;var de,ce,ue,le,he=0,ie=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 x=0,b=void 0;(b=63&this.interim[++x])&&x<4;)y<<=6,y|=b;for(var z=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,ee=z-x;ne<ee;){if(ne>=me)return 0;if((192&(b=ve[ne++]))!=128){ne--,a=!0;break}this.interim[x++]=b,y<<=6,y|=63&b}a||(z===2?y<128?ne--:fe[he++]=y:z===3?y<2048||y>=55296&&y<=57343||(fe[he++]=y):y<65536||y>1114111||(fe[he++]=y)),this.interim.fill(0)}for(var re=me-4,se=ne;se<me;){for(;!(!(se<re)||128&(de=ve[se])||128&(ce=ve[se+1])||128&(ue=ve[se+2])||128&(le=ve[se+3]));)fe[he++]=de,fe[he++]=ce,fe[he++]=ue,fe[he++]=le,se+=4;if((de=ve[se++])<128)fe[he++]=de;else if((224&de)==192){if(se>=me)return this.interim[0]=de,he;if((192&(ce=ve[se++]))!=128){se--;continue}if((ie=(31&de)<<6|63&ce)<128){se--;continue}fe[he++]=ie}else if((240&de)==224){if(se>=me)return this.interim[0]=de,he;if((192&(ce=ve[se++]))!=128){se--;continue}if(se>=me)return this.interim[0]=de,this.interim[1]=ce,he;if((192&(ue=ve[se++]))!=128){se--;continue}if((ie=(15&de)<<12|(63&ce)<<6|63&ue)<2048||ie>=55296&&ie<=57343)continue;fe[he++]=ie}else if((248&de)==240){if(se>=me)return this.interim[0]=de,he;if((192&(ce=ve[se++]))!=128){se--;continue}if(se>=me)return this.interim[0]=de,this.interim[1]=ce,he;if((192&(ue=ve[se++]))!=128){se--;continue}if(se>=me)return this.interim[0]=de,this.interim[1]=ce,this.interim[2]=ue,he;if((192&(le=ve[se++]))!=128){se--;continue}if((ie=(7&de)<<18|(63&ce)<<12|(63&ue)<<6|63&le)<65536||ie>1114111)continue;fe[he++]=ie}}return he},pe}();te.Utf8ToUtf32=Ee},function(Je,te,E){"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(Je,te,E){"use strict";var _e,Ee,pe,ve;function fe(de){var ce=de.toString(16);return ce.length<2?"0"+ce:ce}function me(de,ce){return de<ce?(ce+.05)/(de+.05):(de+.05)/(ce+.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(ce,ue,le,he){return he!==void 0?"#"+fe(ce)+fe(ue)+fe(le)+fe(he):"#"+fe(ce)+fe(ue)+fe(le)},de.toRgba=function(ce,ue,le,he){return he===void 0&&(he=255),(ce<<24|ue<<16|le<<8|he)>>>0}}(_e=te.channels||(te.channels={})),(Ee=te.color||(te.color={})).blend=function(de,ce){var ue=(255&ce.rgba)/255;if(ue===1)return{css:ce.css,rgba:ce.rgba};var le=ce.rgba>>24&255,he=ce.rgba>>16&255,ie=ce.rgba>>8&255,ne=de.rgba>>24&255,a=de.rgba>>16&255,y=de.rgba>>8&255,x=ne+Math.round((le-ne)*ue),b=a+Math.round((he-a)*ue),z=y+Math.round((ie-y)*ue);return{css:_e.toCss(x,b,z),rgba:_e.toRgba(x,b,z)}},Ee.isOpaque=function(de){return(255&de.rgba)==255},Ee.ensureContrastRatio=function(de,ce,ue){var le=ve.ensureContrastRatio(de.rgba,ce.rgba,ue);if(le)return ve.toColor(le>>24&255,le>>16&255,le>>8&255)},Ee.opaque=function(de){var ce=(255|de.rgba)>>>0,ue=ve.toChannels(ce),le=ue[0],he=ue[1],ie=ue[2];return{css:_e.toCss(le,he,ie),rgba:ce}},Ee.opacity=function(de,ce){var ue=Math.round(255*ce),le=ve.toChannels(de.rgba),he=le[0],ie=le[1],ne=le[2];return{css:_e.toCss(he,ie,ne,ue),rgba:_e.toRgba(he,ie,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 ce(ue,le,he){var ie=ue/255,ne=le/255,a=he/255;return .2126*(ie<=.03928?ie/12.92:Math.pow((ie+.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 ce(ue>>16&255,ue>>8&255,255&ue)},de.relativeLuminance2=ce}(pe=te.rgb||(te.rgb={})),function(de){function ce(le,he,ie){for(var ne=le>>24&255,a=le>>16&255,y=le>>8&255,x=he>>24&255,b=he>>16&255,z=he>>8&255,ee=me(pe.relativeLuminance2(x,z,b),pe.relativeLuminance2(ne,a,y));ee<ie&&(x>0||b>0||z>0);)x-=Math.max(0,Math.ceil(.1*x)),b-=Math.max(0,Math.ceil(.1*b)),z-=Math.max(0,Math.ceil(.1*z)),ee=me(pe.relativeLuminance2(x,z,b),pe.relativeLuminance2(ne,a,y));return(x<<24|b<<16|z<<8|255)>>>0}function ue(le,he,ie){for(var ne=le>>24&255,a=le>>16&255,y=le>>8&255,x=he>>24&255,b=he>>16&255,z=he>>8&255,ee=me(pe.relativeLuminance2(x,z,b),pe.relativeLuminance2(ne,a,y));ee<ie&&(x<255||b<255||z<255);)x=Math.min(255,x+Math.ceil(.1*(255-x))),b=Math.min(255,b+Math.ceil(.1*(255-b))),z=Math.min(255,z+Math.ceil(.1*(255-z))),ee=me(pe.relativeLuminance2(x,z,b),pe.relativeLuminance2(ne,a,y));return(x<<24|b<<16|z<<8|255)>>>0}de.ensureContrastRatio=function(le,he,ie){var ne=pe.relativeLuminance(le>>8),a=pe.relativeLuminance(he>>8);if(me(ne,a)<ie)return a<ne?ce(le,he,ie):ue(le,he,ie)},de.reduceLuminance=ce,de.increaseLuminance=ue,de.toChannels=function(le){return[le>>24&255,le>>16&255,le>>8&255,255&le]},de.toColor=function(le,he,ie){return{css:_e.toCss(le,he,ie),rgba:_e.toRgba(le,he,ie)}}}(ve=te.rgba||(te.rgba={})),te.toPaddedHex=fe,te.contrastRatio=me},function(Je,te,E){"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 _e=typeof navigator=="undefined",Ee=_e?"node":navigator.userAgent,pe=_e?"node":navigator.platform;function ve(fe,me){return fe.indexOf(me)>=0}te.isFirefox=!!~Ee.indexOf("Firefox"),te.isSafari=/^((?!chrome|android).)*safari/i.test(Ee),te.isMac=ve(["Macintosh","MacIntel","MacPPC","Mac68K"],pe),te.isIpad=pe==="iPad",te.isIphone=pe==="iPhone",te.isWindows=ve(["Windows","Win16","Win32","WinCE"],pe),te.isLinux=pe.indexOf("Linux")>=0},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.C1=te.C0=void 0,function(_e){_e.NUL="\0",_e.SOH="",_e.STX="",_e.ETX="",_e.EOT="",_e.ENQ="",_e.ACK="",_e.BEL="\x07",_e.BS="\b",_e.HT=" ",_e.LF=`
|
|
|
`,_e.VT="\v",_e.FF="\f",_e.CR="\r",_e.SO="",_e.SI="",_e.DLE="",_e.DC1="",_e.DC2="",_e.DC3="",_e.DC4="",_e.NAK="",_e.SYN="",_e.ETB="",_e.CAN="",_e.EM="",_e.SUB="",_e.ESC="\x1B",_e.FS="",_e.GS="",_e.RS="",_e.US="",_e.SP=" ",_e.DEL="\x7F"}(te.C0||(te.C0={})),function(_e){_e.PAD="\x80",_e.HOP="\x81",_e.BPH="\x82",_e.NBH="\x83",_e.IND="\x84",_e.NEL="\x85",_e.SSA="\x86",_e.ESA="\x87",_e.HTS="\x88",_e.HTJ="\x89",_e.VTS="\x8A",_e.PLD="\x8B",_e.PLU="\x8C",_e.RI="\x8D",_e.SS2="\x8E",_e.SS3="\x8F",_e.DCS="\x90",_e.PU1="\x91",_e.PU2="\x92",_e.STS="\x93",_e.CCH="\x94",_e.MW="\x95",_e.SPA="\x96",_e.EPA="\x97",_e.SOS="\x98",_e.SGCI="\x99",_e.SCI="\x9A",_e.CSI="\x9B",_e.ST="\x9C",_e.OSC="\x9D",_e.PM="\x9E",_e.APC="\x9F"}(te.C1||(te.C1={}))},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseRenderLayer=void 0;var _e=E(3),Ee=E(9),pe=E(25),ve=E(6),fe=E(28),me=E(10),de=E(17),ce=function(){function ue(le,he,ie,ne,a,y,x,b){this._container=le,this._alpha=ne,this._colors=a,this._rendererId=y,this._bufferService=x,this._optionsService=b,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+he+"-layer"),this._canvas.style.zIndex=ie.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return ue.prototype.dispose=function(){var le;de.removeElementFromParent(this._canvas),(le=this._charAtlas)===null||le===void 0||le.dispose()},ue.prototype._initCanvas=function(){this._ctx=fe.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(le,he){},ue.prototype.onSelectionChanged=function(le,he,ie){ie===void 0&&(ie=!1)},ue.prototype.setColors=function(le){this._refreshCharAtlas(le)},ue.prototype._setTransparency=function(le){if(le!==this._alpha){var he=this._canvas;this._alpha=le,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,he),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},ue.prototype._refreshCharAtlas=function(le){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=pe.acquireCharAtlas(this._optionsService.options,this._rendererId,le,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},ue.prototype.resize=function(le){this._scaledCellWidth=le.scaledCellWidth,this._scaledCellHeight=le.scaledCellHeight,this._scaledCharWidth=le.scaledCharWidth,this._scaledCharHeight=le.scaledCharHeight,this._scaledCharLeft=le.scaledCharLeft,this._scaledCharTop=le.scaledCharTop,this._canvas.width=le.scaledCanvasWidth,this._canvas.height=le.scaledCanvasHeight,this._canvas.style.width=le.canvasWidth+"px",this._canvas.style.height=le.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},ue.prototype._fillCells=function(le,he,ie,ne){this._ctx.fillRect(le*this._scaledCellWidth,he*this._scaledCellHeight,ie*this._scaledCellWidth,ne*this._scaledCellHeight)},ue.prototype._fillBottomLineAtCells=function(le,he,ie){ie===void 0&&(ie=1),this._ctx.fillRect(le*this._scaledCellWidth,(he+1)*this._scaledCellHeight-window.devicePixelRatio-1,ie*this._scaledCellWidth,window.devicePixelRatio)},ue.prototype._fillLeftLineAtCell=function(le,he,ie){this._ctx.fillRect(le*this._scaledCellWidth,he*this._scaledCellHeight,window.devicePixelRatio*ie,this._scaledCellHeight)},ue.prototype._strokeRectAtCell=function(le,he,ie,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(le*this._scaledCellWidth+window.devicePixelRatio/2,he*this._scaledCellHeight+window.devicePixelRatio/2,ie*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(le,he,ie,ne){this._alpha?this._ctx.clearRect(le*this._scaledCellWidth,he*this._scaledCellHeight,ie*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(le*this._scaledCellWidth,he*this._scaledCellHeight,ie*this._scaledCellWidth,ne*this._scaledCellHeight))},ue.prototype._fillCharTrueColor=function(le,he,ie){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(ie),this._ctx.fillText(le.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,ie*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},ue.prototype._drawChars=function(le,he,ie){var ne,a,y=this._getContrastColor(le);y||le.isFgRGB()||le.isBgRGB()?this._drawUncachedChars(le,he,ie,y):(le.isInverse()?(ne=le.isBgDefault()?Ee.INVERTED_DEFAULT_COLOR:le.getBgColor(),a=le.isFgDefault()?Ee.INVERTED_DEFAULT_COLOR:le.getFgColor()):(a=le.isBgDefault()?_e.DEFAULT_COLOR:le.getBgColor(),ne=le.isFgDefault()?_e.DEFAULT_COLOR:le.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=le.getChars()||_e.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=le.getCode()||_e.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!le.isBold(),this._currentGlyphIdentifier.dim=!!le.isDim(),this._currentGlyphIdentifier.italic=!!le.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,he*this._scaledCellWidth+this._scaledCharLeft,ie*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(le,he,ie))},ue.prototype._drawUncachedChars=function(le,he,ie,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!le.isBold(),!!le.isItalic()),this._ctx.textBaseline="middle",le.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(le.isBgDefault())this._ctx.fillStyle=me.color.opaque(this._colors.background).css;else if(le.isBgRGB())this._ctx.fillStyle="rgb("+ve.AttributeData.toColorRGB(le.getBgColor()).join(",")+")";else{var a=le.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(le.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(le.isFgRGB())this._ctx.fillStyle="rgb("+ve.AttributeData.toColorRGB(le.getFgColor()).join(",")+")";else{var y=le.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(ie),le.isDim()&&(this._ctx.globalAlpha=Ee.DIM_OPACITY),this._ctx.fillText(le.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,ie*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},ue.prototype._clipRow=function(le){this._ctx.beginPath(),this._ctx.rect(0,le*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},ue.prototype._getFont=function(le,he){return(he?"italic":"")+" "+(le?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},ue.prototype._getContrastColor=function(le){if(this._optionsService.options.minimumContrastRatio!==1){var he=this._colors.contrastCache.getColor(le.bg,le.fg);if(he!==void 0)return he||void 0;var ie=le.getFgColor(),ne=le.getFgColorMode(),a=le.getBgColor(),y=le.getBgColorMode(),x=!!le.isInverse(),b=!!le.isInverse();if(x){var z=ie;ie=a,a=z;var ee=ne;ne=y,y=ee}var re=this._resolveBackgroundRgba(y,a,x),se=this._resolveForegroundRgba(ne,ie,x,b),ge=me.rgba.ensureContrastRatio(re,se,this._optionsService.options.minimumContrastRatio);if(ge){var Se={css:me.channels.toCss(ge>>24&255,ge>>16&255,ge>>8&255),rgba:ge};return this._colors.contrastCache.setColor(le.bg,le.fg,Se),Se}this._colors.contrastCache.setColor(le.bg,le.fg,null)}},ue.prototype._resolveBackgroundRgba=function(le,he,ie){switch(le){case 16777216:case 33554432:return this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return ie?this._colors.foreground.rgba:this._colors.background.rgba}},ue.prototype._resolveForegroundRgba=function(le,he,ie,ne){switch(le){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&he<8&&(he+=8),this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return ie?this._colors.background.rgba:this._colors.foreground.rgba}},ue}();te.BaseRenderLayer=ce},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createDecorator=te.getServiceDependencies=te.serviceRegistry=void 0;function _e(Ee,pe,ve){pe.di$target===pe?pe.di$dependencies.push({id:Ee,index:ve}):(pe.di$dependencies=[{id:Ee,index:ve}],pe.di$target=pe)}te.serviceRegistry=new Map,te.getServiceDependencies=function(Ee){return Ee.di$dependencies||[]},te.createDecorator=function(Ee){if(te.serviceRegistry.has(Ee))return te.serviceRegistry.get(Ee);var pe=function(ve,fe,me){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");_e(pe,ve,me)};return pe.toString=function(){return Ee},te.serviceRegistry.set(Ee,pe),pe}},function(Je,te,E){"use strict";function _e(Ee,pe,ve,fe){if(ve===void 0&&(ve=0),fe===void 0&&(fe=Ee.length),ve>=Ee.length)return Ee;ve=(Ee.length+ve)%Ee.length,fe=fe>=Ee.length?Ee.length:(Ee.length+fe)%Ee.length;for(var me=ve;me<fe;++me)Ee[me]=pe;return Ee}Object.defineProperty(te,"__esModule",{value:!0}),te.concat=te.fillFallback=te.fill=void 0,te.fill=function(Ee,pe,ve,fe){return Ee.fill?Ee.fill(pe,ve,fe):_e(Ee,pe,ve,fe)},te.fillFallback=_e,te.concat=function(Ee,pe){var ve=new Ee.constructor(Ee.length+pe.length);return ve.set(Ee),ve.set(pe,Ee.length),ve}},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferLine=te.DEFAULT_ATTR_DATA=void 0;var _e=E(8),Ee=E(3),pe=E(4),ve=E(6);te.DEFAULT_ATTR_DATA=Object.freeze(new ve.AttributeData);var fe=function(){function me(de,ce,ue){ue===void 0&&(ue=!1),this.isWrapped=ue,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*de);for(var le=ce||pe.CellData.fromCharData([0,Ee.NULL_CELL_CHAR,Ee.NULL_CELL_WIDTH,Ee.NULL_CELL_CODE]),he=0;he<de;++he)this.setCell(he,le);this.length=de}return me.prototype.get=function(de){var ce=this._data[3*de+0],ue=2097151&ce;return[this._data[3*de+1],2097152&ce?this._combined[de]:ue?_e.stringFromCodePoint(ue):"",ce>>22,2097152&ce?this._combined[de].charCodeAt(this._combined[de].length-1):ue]},me.prototype.set=function(de,ce){this._data[3*de+1]=ce[Ee.CHAR_DATA_ATTR_INDEX],ce[Ee.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[de]=ce[1],this._data[3*de+0]=2097152|de|ce[Ee.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*de+0]=ce[Ee.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ce[Ee.CHAR_DATA_WIDTH_INDEX]<<22},me.prototype.getWidth=function(de){return this._data[3*de+0]>>22},me.prototype.hasWidth=function(de){return 12582912&this._data[3*de+0]},me.prototype.getFg=function(de){return this._data[3*de+1]},me.prototype.getBg=function(de){return this._data[3*de+2]},me.prototype.hasContent=function(de){return 4194303&this._data[3*de+0]},me.prototype.getCodePoint=function(de){var ce=this._data[3*de+0];return 2097152&ce?this._combined[de].charCodeAt(this._combined[de].length-1):2097151&ce},me.prototype.isCombined=function(de){return 2097152&this._data[3*de+0]},me.prototype.getString=function(de){var ce=this._data[3*de+0];return 2097152&ce?this._combined[de]:2097151&ce?_e.stringFromCodePoint(2097151&ce):""},me.prototype.loadCell=function(de,ce){var ue=3*de;return ce.content=this._data[ue+0],ce.fg=this._data[ue+1],ce.bg=this._data[ue+2],2097152&ce.content&&(ce.combinedData=this._combined[de]),268435456&ce.bg&&(ce.extended=this._extendedAttrs[de]),ce},me.prototype.setCell=function(de,ce){2097152&ce.content&&(this._combined[de]=ce.combinedData),268435456&ce.bg&&(this._extendedAttrs[de]=ce.extended),this._data[3*de+0]=ce.content,this._data[3*de+1]=ce.fg,this._data[3*de+2]=ce.bg},me.prototype.setCellFromCodePoint=function(de,ce,ue,le,he,ie){268435456&he&&(this._extendedAttrs[de]=ie),this._data[3*de+0]=ce|ue<<22,this._data[3*de+1]=le,this._data[3*de+2]=he},me.prototype.addCodepointToCell=function(de,ce){var ue=this._data[3*de+0];2097152&ue?this._combined[de]+=_e.stringFromCodePoint(ce):(2097151&ue?(this._combined[de]=_e.stringFromCodePoint(2097151&ue)+_e.stringFromCodePoint(ce),ue&=-2097152,ue|=2097152):ue=ce|1<<22,this._data[3*de+0]=ue)},me.prototype.insertCells=function(de,ce,ue,le){if((de%=this.length)&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ve.ExtendedAttrs),ce<this.length-de){for(var he=new pe.CellData,ie=this.length-de-ce-1;ie>=0;--ie)this.setCell(de+ce+ie,this.loadCell(de+ie,he));for(ie=0;ie<ce;++ie)this.setCell(de+ie,ue)}else for(ie=de;ie<this.length;++ie)this.setCell(ie,ue);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ve.ExtendedAttrs)},me.prototype.deleteCells=function(de,ce,ue,le){if(de%=this.length,ce<this.length-de){for(var he=new pe.CellData,ie=0;ie<this.length-de-ce;++ie)this.setCell(de+ie,this.loadCell(de+ce+ie,he));for(ie=this.length-ce;ie<this.length;++ie)this.setCell(ie,ue)}else for(ie=de;ie<this.length;++ie)this.setCell(ie,ue);de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ve.ExtendedAttrs),this.getWidth(de)!==0||this.hasContent(de)||this.setCellFromCodePoint(de,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ve.ExtendedAttrs)},me.prototype.replaceCells=function(de,ce,ue,le){for(de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ve.ExtendedAttrs),ce<this.length&&this.getWidth(ce-1)===2&&this.setCellFromCodePoint(ce,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ve.ExtendedAttrs);de<ce&&de<this.length;)this.setCell(de++,ue)},me.prototype.resize=function(de,ce){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 le=this.length;le<de;++le)this.setCell(le,ce)}else if(de){(ue=new Uint32Array(3*de)).set(this._data.subarray(0,3*de)),this._data=ue;var he=Object.keys(this._combined);for(le=0;le<he.length;le++){var ie=parseInt(he[le],10);ie>=de&&delete this._combined[ie]}}else this._data=new Uint32Array(0),this._combined={};this.length=de}},me.prototype.fill=function(de){this._combined={},this._extendedAttrs={};for(var ce=0;ce<this.length;++ce)this.setCell(ce,de)},me.prototype.copyFrom=function(de){for(var ce 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[ce]=de._combined[ce];for(var ce in this._extendedAttrs={},de._extendedAttrs)this._extendedAttrs[ce]=de._extendedAttrs[ce];this.isWrapped=de.isWrapped},me.prototype.clone=function(){var de=new me(0);for(var ce in de._data=new Uint32Array(this._data),de.length=this.length,this._combined)de._combined[ce]=this._combined[ce];for(var ce in this._extendedAttrs)de._extendedAttrs[ce]=this._extendedAttrs[ce];return de.isWrapped=this.isWrapped,de},me.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},me.prototype.copyCellsFrom=function(de,ce,ue,le,he){var ie=de._data;if(he)for(var ne=le-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(ue+ne)+a]=ie[3*(ce+ne)+a];else for(ne=0;ne<le;ne++)for(a=0;a<3;a++)this._data[3*(ue+ne)+a]=ie[3*(ce+ne)+a];var y=Object.keys(de._combined);for(a=0;a<y.length;a++){var x=parseInt(y[a],10);x>=ce&&(this._combined[x-ce+ue]=de._combined[x])}},me.prototype.translateToString=function(de,ce,ue){de===void 0&&(de=!1),ce===void 0&&(ce=0),ue===void 0&&(ue=this.length),de&&(ue=Math.min(ue,this.getTrimmedLength()));for(var le="";ce<ue;){var he=this._data[3*ce+0],ie=2097151&he;le+=2097152&he?this._combined[ce]:ie?_e.stringFromCodePoint(ie):Ee.WHITESPACE_CELL_CHAR,ce+=he>>22||1}return le},me}();te.BufferLine=fe},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeElementFromParent=void 0,te.removeElementFromParent=function(){for(var _e,Ee=[],pe=0;pe<arguments.length;pe++)Ee[pe]=arguments[pe];for(var ve=0,fe=Ee;ve<fe.length;ve++){var me=fe[ve];(_e=me==null?void 0:me.parentElement)===null||_e===void 0||_e.removeChild(me)}}},function(Je,te,E){"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(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(se,ge){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,Pe){Se.__proto__=Pe}||function(Se,Pe){for(var Re in Pe)Pe.hasOwnProperty(Re)&&(Se[Re]=Pe[Re])})(se,ge)},function(se,ge){function Se(){this.constructor=se}_e(se,ge),se.prototype=ge===null?Object.create(ge):(Se.prototype=ge.prototype,new Se)});Object.defineProperty(te,"__esModule",{value:!0}),te.InputHandler=te.WindowsOptionsReportType=void 0;var pe,ve=E(12),fe=E(20),me=E(39),de=E(2),ce=E(15),ue=E(8),le=E(16),he=E(0),ie=E(3),ne=E(4),a=E(6),y=E(22),x=E(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function z(se,ge){if(se>24)return ge.setWinLines||!1;switch(se){case 1:return!!ge.restoreWin;case 2:return!!ge.minimizeWin;case 3:return!!ge.setWinPosition;case 4:return!!ge.setWinSizePixels;case 5:return!!ge.raiseWin;case 6:return!!ge.lowerWin;case 7:return!!ge.refreshWin;case 8:return!!ge.setWinSizeChars;case 9:return!!ge.maximizeWin;case 10:return!!ge.fullscreenWin;case 11:return!!ge.getWinState;case 13:return!!ge.getWinPosition;case 14:return!!ge.getWinSizePixels;case 15:return!!ge.getScreenSizePixels;case 16:return!!ge.getCellSizePixels;case 18:return!!ge.getWinSizeChars;case 19:return!!ge.getScreenSizeChars;case 20:return!!ge.getIconTitle;case 21:return!!ge.getWinTitle;case 22:return!!ge.pushTitle;case 23:return!!ge.popTitle;case 24:return!!ge.setWinLines}return!1}(function(se){se[se.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",se[se.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(pe=te.WindowsOptionsReportType||(te.WindowsOptionsReportType={}));var ee=function(){function se(ge,Se,Pe,Re){this._bufferService=ge,this._coreService=Se,this._logService=Pe,this._optionsService=Re,this._data=new Uint32Array(0)}return se.prototype.hook=function(ge){this._data=new Uint32Array(0)},se.prototype.put=function(ge,Se,Pe){this._data=ce.concat(this._data,ge.subarray(Se,Pe))},se.prototype.unhook=function(ge){if(ge){var Se=ue.utf32ToString(this._data);switch(this._data=new Uint32Array(0),Se){case'"q':return this._coreService.triggerDataEvent(ve.C0.ESC+'P1$r0"q'+ve.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(ve.C0.ESC+'P1$r61;1"p'+ve.C0.ESC+"\\");case"r":var Pe=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(ve.C0.ESC+"P1$r"+Pe+ve.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(ve.C0.ESC+"P1$r0m"+ve.C0.ESC+"\\");case" q":var Re={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return Re-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(ve.C0.ESC+"P1$r"+Re+" q"+ve.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",Se),this._coreService.triggerDataEvent(ve.C0.ESC+"P0$r"+ve.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},se}(),re=function(se){function ge(Se,Pe,Re,Le,Fe,Ie,vt,at,et){et===void 0&&(et=new me.EscapeSequenceParser);var De=se.call(this)||this;De._bufferService=Se,De._charsetService=Pe,De._coreService=Re,De._dirtyRowService=Le,De._logService=Fe,De._optionsService=Ie,De._coreMouseService=vt,De._unicodeService=at,De._parser=et,De._parseBuffer=new Uint32Array(4096),De._stringDecoder=new ue.StringToUtf32,De._utf8Decoder=new ue.Utf8ToUtf32,De._workCell=new ne.CellData,De._windowTitle="",De._iconName="",De._windowTitleStack=[],De._iconNameStack=[],De._curAttrData=le.DEFAULT_ATTR_DATA.clone(),De._eraseAttrDataInternal=le.DEFAULT_ATTR_DATA.clone(),De._onRequestBell=new he.EventEmitter,De._onRequestRefreshRows=new he.EventEmitter,De._onRequestReset=new he.EventEmitter,De._onRequestScroll=new he.EventEmitter,De._onRequestSyncScrollBar=new he.EventEmitter,De._onRequestWindowsOptionsReport=new he.EventEmitter,De._onA11yChar=new he.EventEmitter,De._onA11yTab=new he.EventEmitter,De._onCursorMove=new he.EventEmitter,De._onLineFeed=new he.EventEmitter,De._onScroll=new he.EventEmitter,De._onTitleChange=new he.EventEmitter,De.register(De._parser),De._parser.setCsiHandlerFallback(function(Xe,xt){De._logService.debug("Unknown CSI code: ",{identifier:De._parser.identToString(Xe),params:xt.toArray()})}),De._parser.setEscHandlerFallback(function(Xe){De._logService.debug("Unknown ESC code: ",{identifier:De._parser.identToString(Xe)})}),De._parser.setExecuteHandlerFallback(function(Xe){De._logService.debug("Unknown EXECUTE code: ",{code:Xe})}),De._parser.setOscHandlerFallback(function(Xe,xt,Ot){De._logService.debug("Unknown OSC code: ",{identifier:Xe,action:xt,data:Ot})}),De._parser.setDcsHandlerFallback(function(Xe,xt,Ot){xt==="HOOK"&&(Ot=Ot.toArray()),De._logService.debug("Unknown DCS code: ",{identifier:De._parser.identToString(Xe),action:xt,payload:Ot})}),De._parser.setPrintHandler(function(Xe,xt,Ot){return De.print(Xe,xt,Ot)}),De._parser.setCsiHandler({final:"@"},function(Xe){return De.insertChars(Xe)}),De._parser.setCsiHandler({intermediates:" ",final:"@"},function(Xe){return De.scrollLeft(Xe)}),De._parser.setCsiHandler({final:"A"},function(Xe){return De.cursorUp(Xe)}),De._parser.setCsiHandler({intermediates:" ",final:"A"},function(Xe){return De.scrollRight(Xe)}),De._parser.setCsiHandler({final:"B"},function(Xe){return De.cursorDown(Xe)}),De._parser.setCsiHandler({final:"C"},function(Xe){return De.cursorForward(Xe)}),De._parser.setCsiHandler({final:"D"},function(Xe){return De.cursorBackward(Xe)}),De._parser.setCsiHandler({final:"E"},function(Xe){return De.cursorNextLine(Xe)}),De._parser.setCsiHandler({final:"F"},function(Xe){return De.cursorPrecedingLine(Xe)}),De._parser.setCsiHandler({final:"G"},function(Xe){return De.cursorCharAbsolute(Xe)}),De._parser.setCsiHandler({final:"H"},function(Xe){return De.cursorPosition(Xe)}),De._parser.setCsiHandler({final:"I"},function(Xe){return De.cursorForwardTab(Xe)}),De._parser.setCsiHandler({final:"J"},function(Xe){return De.eraseInDisplay(Xe)}),De._parser.setCsiHandler({prefix:"?",final:"J"},function(Xe){return De.eraseInDisplay(Xe)}),De._parser.setCsiHandler({final:"K"},function(Xe){return De.eraseInLine(Xe)}),De._parser.setCsiHandler({prefix:"?",final:"K"},function(Xe){return De.eraseInLine(Xe)}),De._parser.setCsiHandler({final:"L"},function(Xe){return De.insertLines(Xe)}),De._parser.setCsiHandler({final:"M"},function(Xe){return De.deleteLines(Xe)}),De._parser.setCsiHandler({final:"P"},function(Xe){return De.deleteChars(Xe)}),De._parser.setCsiHandler({final:"S"},function(Xe){return De.scrollUp(Xe)}),De._parser.setCsiHandler({final:"T"},function(Xe){return De.scrollDown(Xe)}),De._parser.setCsiHandler({final:"X"},function(Xe){return De.eraseChars(Xe)}),De._parser.setCsiHandler({final:"Z"},function(Xe){return De.cursorBackwardTab(Xe)}),De._parser.setCsiHandler({final:"`"},function(Xe){return De.charPosAbsolute(Xe)}),De._parser.setCsiHandler({final:"a"},function(Xe){return De.hPositionRelative(Xe)}),De._parser.setCsiHandler({final:"b"},function(Xe){return De.repeatPrecedingCharacter(Xe)}),De._parser.setCsiHandler({final:"c"},function(Xe){return De.sendDeviceAttributesPrimary(Xe)}),De._parser.setCsiHandler({prefix:">",final:"c"},function(Xe){return De.sendDeviceAttributesSecondary(Xe)}),De._parser.setCsiHandler({final:"d"},function(Xe){return De.linePosAbsolute(Xe)}),De._parser.setCsiHandler({final:"e"},function(Xe){return De.vPositionRelative(Xe)}),De._parser.setCsiHandler({final:"f"},function(Xe){return De.hVPosition(Xe)}),De._parser.setCsiHandler({final:"g"},function(Xe){return De.tabClear(Xe)}),De._parser.setCsiHandler({final:"h"},function(Xe){return De.setMode(Xe)}),De._parser.setCsiHandler({prefix:"?",final:"h"},function(Xe){return De.setModePrivate(Xe)}),De._parser.setCsiHandler({final:"l"},function(Xe){return De.resetMode(Xe)}),De._parser.setCsiHandler({prefix:"?",final:"l"},function(Xe){return De.resetModePrivate(Xe)}),De._parser.setCsiHandler({final:"m"},function(Xe){return De.charAttributes(Xe)}),De._parser.setCsiHandler({final:"n"},function(Xe){return De.deviceStatus(Xe)}),De._parser.setCsiHandler({prefix:"?",final:"n"},function(Xe){return De.deviceStatusPrivate(Xe)}),De._parser.setCsiHandler({intermediates:"!",final:"p"},function(Xe){return De.softReset(Xe)}),De._parser.setCsiHandler({intermediates:" ",final:"q"},function(Xe){return De.setCursorStyle(Xe)}),De._parser.setCsiHandler({final:"r"},function(Xe){return De.setScrollRegion(Xe)}),De._parser.setCsiHandler({final:"s"},function(Xe){return De.saveCursor(Xe)}),De._parser.setCsiHandler({final:"t"},function(Xe){return De.windowOptions(Xe)}),De._parser.setCsiHandler({final:"u"},function(Xe){return De.restoreCursor(Xe)}),De._parser.setCsiHandler({intermediates:"'",final:"}"},function(Xe){return De.insertColumns(Xe)}),De._parser.setCsiHandler({intermediates:"'",final:"~"},function(Xe){return De.deleteColumns(Xe)}),De._parser.setExecuteHandler(ve.C0.BEL,function(){return De.bell()}),De._parser.setExecuteHandler(ve.C0.LF,function(){return De.lineFeed()}),De._parser.setExecuteHandler(ve.C0.VT,function(){return De.lineFeed()}),De._parser.setExecuteHandler(ve.C0.FF,function(){return De.lineFeed()}),De._parser.setExecuteHandler(ve.C0.CR,function(){return De.carriageReturn()}),De._parser.setExecuteHandler(ve.C0.BS,function(){return De.backspace()}),De._parser.setExecuteHandler(ve.C0.HT,function(){return De.tab()}),De._parser.setExecuteHandler(ve.C0.SO,function(){return De.shiftOut()}),De._parser.setExecuteHandler(ve.C0.SI,function(){return De.shiftIn()}),De._parser.setExecuteHandler(ve.C1.IND,function(){return De.index()}),De._parser.setExecuteHandler(ve.C1.NEL,function(){return De.nextLine()}),De._parser.setExecuteHandler(ve.C1.HTS,function(){return De.tabSet()}),De._parser.setOscHandler(0,new y.OscHandler(function(Xe){De.setTitle(Xe),De.setIconName(Xe)})),De._parser.setOscHandler(1,new y.OscHandler(function(Xe){return De.setIconName(Xe)})),De._parser.setOscHandler(2,new y.OscHandler(function(Xe){return De.setTitle(Xe)})),De._parser.setEscHandler({final:"7"},function(){return De.saveCursor()}),De._parser.setEscHandler({final:"8"},function(){return De.restoreCursor()}),De._parser.setEscHandler({final:"D"},function(){return De.index()}),De._parser.setEscHandler({final:"E"},function(){return De.nextLine()}),De._parser.setEscHandler({final:"H"},function(){return De.tabSet()}),De._parser.setEscHandler({final:"M"},function(){return De.reverseIndex()}),De._parser.setEscHandler({final:"="},function(){return De.keypadApplicationMode()}),De._parser.setEscHandler({final:">"},function(){return De.keypadNumericMode()}),De._parser.setEscHandler({final:"c"},function(){return De.fullReset()}),De._parser.setEscHandler({final:"n"},function(){return De.setgLevel(2)}),De._parser.setEscHandler({final:"o"},function(){return De.setgLevel(3)}),De._parser.setEscHandler({final:"|"},function(){return De.setgLevel(3)}),De._parser.setEscHandler({final:"}"},function(){return De.setgLevel(2)}),De._parser.setEscHandler({final:"~"},function(){return De.setgLevel(1)}),De._parser.setEscHandler({intermediates:"%",final:"@"},function(){return De.selectDefaultCharset()}),De._parser.setEscHandler({intermediates:"%",final:"G"},function(){return De.selectDefaultCharset()});var Oe=function(Xe){ke._parser.setEscHandler({intermediates:"(",final:Xe},function(){return De.selectCharset("("+Xe)}),ke._parser.setEscHandler({intermediates:")",final:Xe},function(){return De.selectCharset(")"+Xe)}),ke._parser.setEscHandler({intermediates:"*",final:Xe},function(){return De.selectCharset("*"+Xe)}),ke._parser.setEscHandler({intermediates:"+",final:Xe},function(){return De.selectCharset("+"+Xe)}),ke._parser.setEscHandler({intermediates:"-",final:Xe},function(){return De.selectCharset("-"+Xe)}),ke._parser.setEscHandler({intermediates:".",final:Xe},function(){return De.selectCharset("."+Xe)}),ke._parser.setEscHandler({intermediates:"/",final:Xe},function(){return De.selectCharset("/"+Xe)})},ke=this;for(var lt in fe.CHARSETS)Oe(lt);return De._parser.setEscHandler({intermediates:"#",final:"8"},function(){return De.screenAlignmentPattern()}),De._parser.setErrorHandler(function(Xe){return De._logService.error("Parsing error: ",Xe),Xe}),De._parser.setDcsHandler({intermediates:"$",final:"q"},new ee(De._bufferService,De._coreService,De._logService,De._optionsService)),De}return Ee(ge,se),Object.defineProperty(ge.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ge.prototype.dispose=function(){se.prototype.dispose.call(this)},ge.prototype.parse=function(Se){var Pe=this._bufferService.buffer,Re=Pe.x,Le=Pe.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 Ie=Fe+131072<Se.length?Fe+131072:Se.length,vt=typeof Se=="string"?this._stringDecoder.decode(Se.substring(Fe,Ie),this._parseBuffer):this._utf8Decoder.decode(Se.subarray(Fe,Ie),this._parseBuffer);this._parser.parse(this._parseBuffer,vt)}else vt=typeof Se=="string"?this._stringDecoder.decode(Se,this._parseBuffer):this._utf8Decoder.decode(Se,this._parseBuffer),this._parser.parse(this._parseBuffer,vt);(Pe=this._bufferService.buffer).x===Re&&Pe.y===Le||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ge.prototype.print=function(Se,Pe,Re){var Le,Fe,Ie=this._bufferService.buffer,vt=this._charsetService.charset,at=this._optionsService.options.screenReaderMode,et=this._bufferService.cols,De=this._coreService.decPrivateModes.wraparound,Oe=this._coreService.modes.insertMode,ke=this._curAttrData,lt=Ie.lines.get(Ie.ybase+Ie.y);this._dirtyRowService.markDirty(Ie.y),Ie.x&&Re-Pe>0&<.getWidth(Ie.x-1)===2&<.setCellFromCodePoint(Ie.x-1,0,1,ke.fg,ke.bg,ke.extended);for(var Xe=Pe;Xe<Re;++Xe){if(Le=Se[Xe],Fe=this._unicodeService.wcwidth(Le),Le<127&&vt){var xt=vt[String.fromCharCode(Le)];xt&&(Le=xt.charCodeAt(0))}if(at&&this._onA11yChar.fire(ue.stringFromCodePoint(Le)),Fe||!Ie.x){if(Ie.x+Fe-1>=et){if(De){for(;Ie.x<et;)lt.setCellFromCodePoint(Ie.x++,0,1,ke.fg,ke.bg,ke.extended);Ie.x=0,Ie.y++,Ie.y===Ie.scrollBottom+1?(Ie.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Ie.y>=this._bufferService.rows&&(Ie.y=this._bufferService.rows-1),Ie.lines.get(Ie.ybase+Ie.y).isWrapped=!0),lt=Ie.lines.get(Ie.ybase+Ie.y)}else if(Ie.x=et-1,Fe===2)continue}if(Oe&&(lt.insertCells(Ie.x,Fe,Ie.getNullCell(ke),ke),lt.getWidth(et-1)===2&<.setCellFromCodePoint(et-1,ie.NULL_CELL_CODE,ie.NULL_CELL_WIDTH,ke.fg,ke.bg,ke.extended)),lt.setCellFromCodePoint(Ie.x++,Le,Fe,ke.fg,ke.bg,ke.extended),Fe>0)for(;--Fe;)lt.setCellFromCodePoint(Ie.x++,0,0,ke.fg,ke.bg,ke.extended)}else lt.getWidth(Ie.x-1)?lt.addCodepointToCell(Ie.x-1,Le):lt.addCodepointToCell(Ie.x-2,Le)}Re-Pe>0&&(lt.loadCell(Ie.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),Ie.x<et&&Re-Pe>0&<.getWidth(Ie.x)===0&&!lt.hasContent(Ie.x)&<.setCellFromCodePoint(Ie.x,0,1,ke.fg,ke.bg,ke.extended),this._dirtyRowService.markDirty(Ie.y)},ge.prototype.addCsiHandler=function(Se,Pe){var Re=this;return Se.final!=="t"||Se.prefix||Se.intermediates?this._parser.addCsiHandler(Se,Pe):this._parser.addCsiHandler(Se,function(Le){return!z(Le.params[0],Re._optionsService.options.windowOptions)||Pe(Le)})},ge.prototype.addDcsHandler=function(Se,Pe){return this._parser.addDcsHandler(Se,new x.DcsHandler(Pe))},ge.prototype.addEscHandler=function(Se,Pe){return this._parser.addEscHandler(Se,Pe)},ge.prototype.addOscHandler=function(Se,Pe){return this._parser.addOscHandler(Se,new y.OscHandler(Pe))},ge.prototype.bell=function(){this._onRequestBell.fire()},ge.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()},ge.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ge.prototype.backspace=function(){var Se,Pe=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Pe.x>0&&Pe.x--);if(this._restrictCursor(this._bufferService.cols),Pe.x>0)Pe.x--;else if(Pe.x===0&&Pe.y>Pe.scrollTop&&Pe.y<=Pe.scrollBottom&&(!((Se=Pe.lines.get(Pe.ybase+Pe.y))===null||Se===void 0)&&Se.isWrapped)){Pe.lines.get(Pe.ybase+Pe.y).isWrapped=!1,Pe.y--,Pe.x=this._bufferService.cols-1;var Re=Pe.lines.get(Pe.ybase+Pe.y);Re.hasWidth(Pe.x)&&!Re.hasContent(Pe.x)&&Pe.x--}this._restrictCursor()},ge.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)}},ge.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ge.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ge.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)},ge.prototype._setCursor=function(Se,Pe){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=Se,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Pe):(this._bufferService.buffer.x=Se,this._bufferService.buffer.y=Pe),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ge.prototype._moveCursor=function(Se,Pe){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+Se,this._bufferService.buffer.y+Pe)},ge.prototype.cursorUp=function(Se){var Pe=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Pe>=0?this._moveCursor(0,-Math.min(Pe,Se.params[0]||1)):this._moveCursor(0,-(Se.params[0]||1))},ge.prototype.cursorDown=function(Se){var Pe=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Pe>=0?this._moveCursor(0,Math.min(Pe,Se.params[0]||1)):this._moveCursor(0,Se.params[0]||1)},ge.prototype.cursorForward=function(Se){this._moveCursor(Se.params[0]||1,0)},ge.prototype.cursorBackward=function(Se){this._moveCursor(-(Se.params[0]||1),0)},ge.prototype.cursorNextLine=function(Se){this.cursorDown(Se),this._bufferService.buffer.x=0},ge.prototype.cursorPrecedingLine=function(Se){this.cursorUp(Se),this._bufferService.buffer.x=0},ge.prototype.cursorCharAbsolute=function(Se){this._setCursor((Se.params[0]||1)-1,this._bufferService.buffer.y)},ge.prototype.cursorPosition=function(Se){this._setCursor(Se.length>=2?(Se.params[1]||1)-1:0,(Se.params[0]||1)-1)},ge.prototype.charPosAbsolute=function(Se){this._setCursor((Se.params[0]||1)-1,this._bufferService.buffer.y)},ge.prototype.hPositionRelative=function(Se){this._moveCursor(Se.params[0]||1,0)},ge.prototype.linePosAbsolute=function(Se){this._setCursor(this._bufferService.buffer.x,(Se.params[0]||1)-1)},ge.prototype.vPositionRelative=function(Se){this._moveCursor(0,Se.params[0]||1)},ge.prototype.hVPosition=function(Se){this.cursorPosition(Se)},ge.prototype.tabClear=function(Se){var Pe=Se.params[0];Pe===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Pe===3&&(this._bufferService.buffer.tabs={})},ge.prototype.cursorForwardTab=function(Se){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Pe=Se.params[0]||1;Pe--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ge.prototype.cursorBackwardTab=function(Se){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Pe=Se.params[0]||1,Re=this._bufferService.buffer;Pe--;)Re.x=Re.prevStop()},ge.prototype._eraseInBufferLine=function(Se,Pe,Re,Le){Le===void 0&&(Le=!1);var Fe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+Se);Fe.replaceCells(Pe,Re,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Le&&(Fe.isWrapped=!1)},ge.prototype._resetBufferLine=function(Se){var Pe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+Se);Pe.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Pe.isWrapped=!1},ge.prototype.eraseInDisplay=function(Se){var Pe;switch(this._restrictCursor(),Se.params[0]){case 0:for(Pe=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Pe),this._eraseInBufferLine(Pe++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Pe<this._bufferService.rows;Pe++)this._resetBufferLine(Pe);this._dirtyRowService.markDirty(Pe);break;case 1:for(Pe=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Pe),this._eraseInBufferLine(Pe,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Pe+1).isWrapped=!1);Pe--;)this._resetBufferLine(Pe);this._dirtyRowService.markDirty(0);break;case 2:for(Pe=this._bufferService.rows,this._dirtyRowService.markDirty(Pe-1);Pe--;)this._resetBufferLine(Pe);this._dirtyRowService.markDirty(0);break;case 3:var Re=this._bufferService.buffer.lines.length-this._bufferService.rows;Re>0&&(this._bufferService.buffer.lines.trimStart(Re),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-Re,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-Re,0),this._onScroll.fire(0))}},ge.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)},ge.prototype.insertLines=function(Se){this._restrictCursor();var Pe=Se.params[0]||1,Re=this._bufferService.buffer;if(!(Re.y>Re.scrollBottom||Re.y<Re.scrollTop)){for(var Le=Re.ybase+Re.y,Fe=this._bufferService.rows-1-Re.scrollBottom,Ie=this._bufferService.rows-1+Re.ybase-Fe+1;Pe--;)Re.lines.splice(Ie-1,1),Re.lines.splice(Le,0,Re.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Re.y,Re.scrollBottom),Re.x=0}},ge.prototype.deleteLines=function(Se){this._restrictCursor();var Pe=Se.params[0]||1,Re=this._bufferService.buffer;if(!(Re.y>Re.scrollBottom||Re.y<Re.scrollTop)){var Le,Fe=Re.ybase+Re.y;for(Le=this._bufferService.rows-1-Re.scrollBottom,Le=this._bufferService.rows-1+Re.ybase-Le;Pe--;)Re.lines.splice(Fe,1),Re.lines.splice(Le,0,Re.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Re.y,Re.scrollBottom),Re.x=0}},ge.prototype.insertChars=function(Se){this._restrictCursor();var Pe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Pe&&(Pe.insertCells(this._bufferService.buffer.x,Se.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ge.prototype.deleteChars=function(Se){this._restrictCursor();var Pe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Pe&&(Pe.deleteCells(this._bufferService.buffer.x,Se.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ge.prototype.scrollUp=function(Se){for(var Pe=Se.params[0]||1,Re=this._bufferService.buffer;Pe--;)Re.lines.splice(Re.ybase+Re.scrollTop,1),Re.lines.splice(Re.ybase+Re.scrollBottom,0,Re.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Re.scrollTop,Re.scrollBottom)},ge.prototype.scrollDown=function(Se){for(var Pe=Se.params[0]||1,Re=this._bufferService.buffer;Pe--;)Re.lines.splice(Re.ybase+Re.scrollBottom,1),Re.lines.splice(Re.ybase+Re.scrollTop,0,Re.getBlankLine(le.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(Re.scrollTop,Re.scrollBottom)},ge.prototype.scrollLeft=function(Se){var Pe=this._bufferService.buffer;if(!(Pe.y>Pe.scrollBottom||Pe.y<Pe.scrollTop)){for(var Re=Se.params[0]||1,Le=Pe.scrollTop;Le<=Pe.scrollBottom;++Le){var Fe=Pe.lines.get(Pe.ybase+Le);Fe.deleteCells(0,Re,Pe.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Pe.scrollTop,Pe.scrollBottom)}},ge.prototype.scrollRight=function(Se){var Pe=this._bufferService.buffer;if(!(Pe.y>Pe.scrollBottom||Pe.y<Pe.scrollTop)){for(var Re=Se.params[0]||1,Le=Pe.scrollTop;Le<=Pe.scrollBottom;++Le){var Fe=Pe.lines.get(Pe.ybase+Le);Fe.insertCells(0,Re,Pe.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Pe.scrollTop,Pe.scrollBottom)}},ge.prototype.insertColumns=function(Se){var Pe=this._bufferService.buffer;if(!(Pe.y>Pe.scrollBottom||Pe.y<Pe.scrollTop)){for(var Re=Se.params[0]||1,Le=Pe.scrollTop;Le<=Pe.scrollBottom;++Le){var Fe=this._bufferService.buffer.lines.get(Pe.ybase+Le);Fe.insertCells(Pe.x,Re,Pe.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Pe.scrollTop,Pe.scrollBottom)}},ge.prototype.deleteColumns=function(Se){var Pe=this._bufferService.buffer;if(!(Pe.y>Pe.scrollBottom||Pe.y<Pe.scrollTop)){for(var Re=Se.params[0]||1,Le=Pe.scrollTop;Le<=Pe.scrollBottom;++Le){var Fe=Pe.lines.get(Pe.ybase+Le);Fe.deleteCells(Pe.x,Re,Pe.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Pe.scrollTop,Pe.scrollBottom)}},ge.prototype.eraseChars=function(Se){this._restrictCursor();var Pe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Pe&&(Pe.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))},ge.prototype.repeatPrecedingCharacter=function(Se){if(this._parser.precedingCodepoint){for(var Pe=Se.params[0]||1,Re=new Uint32Array(Pe),Le=0;Le<Pe;++Le)Re[Le]=this._parser.precedingCodepoint;this.print(Re,0,Re.length)}},ge.prototype.sendDeviceAttributesPrimary=function(Se){Se.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(ve.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(ve.C0.ESC+"[?6c"))},ge.prototype.sendDeviceAttributesSecondary=function(Se){Se.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(ve.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(ve.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(Se.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(ve.C0.ESC+"[>83;40003;0c"))},ge.prototype._is=function(Se){return(this._optionsService.options.termName+"").indexOf(Se)===0},ge.prototype.setMode=function(Se){for(var Pe=0;Pe<Se.length;Pe++)switch(Se.params[Pe]){case 4:this._coreService.modes.insertMode=!0}},ge.prototype.setModePrivate=function(Se){for(var Pe=0;Pe<Se.length;Pe++)switch(Se.params[Pe]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,fe.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},ge.prototype.resetMode=function(Se){for(var Pe=0;Pe<Se.length;Pe++)switch(Se.params[Pe]){case 4:this._coreService.modes.insertMode=!1}},ge.prototype.resetModePrivate=function(Se){for(var Pe=0;Pe<Se.length;Pe++)switch(Se.params[Pe]){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[Pe]===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}},ge.prototype._updateAttrColor=function(Se,Pe,Re,Le,Fe){return Pe===2?(Se|=50331648,Se&=-16777216,Se|=a.AttributeData.fromColorRGB([Re,Le,Fe])):Pe===5&&(Se&=-50331904,Se|=33554432|255&Re),Se},ge.prototype._extractColor=function(Se,Pe,Re){var Le=[0,0,-1,0,0,0],Fe=0,Ie=0;do{if(Le[Ie+Fe]=Se.params[Pe+Ie],Se.hasSubParams(Pe+Ie)){var vt=Se.getSubParams(Pe+Ie),at=0;do Le[1]===5&&(Fe=1),Le[Ie+at+1+Fe]=vt[at];while(++at<vt.length&&at+Ie+1+Fe<Le.length);break}if(Le[1]===5&&Ie+Fe>=2||Le[1]===2&&Ie+Fe>=5)break;Le[1]&&(Fe=1)}while(++Ie+Pe<Se.length&&Ie+Fe<Le.length);for(at=2;at<Le.length;++at)Le[at]===-1&&(Le[at]=0);switch(Le[0]){case 38:Re.fg=this._updateAttrColor(Re.fg,Le[1],Le[3],Le[4],Le[5]);break;case 48:Re.bg=this._updateAttrColor(Re.bg,Le[1],Le[3],Le[4],Le[5]);break;case 58:Re.extended=Re.extended.clone(),Re.extended.underlineColor=this._updateAttrColor(Re.extended.underlineColor,Le[1],Le[3],Le[4],Le[5])}return Ie},ge.prototype._processUnderline=function(Se,Pe){Pe.extended=Pe.extended.clone(),(!~Se||Se>5)&&(Se=1),Pe.extended.underlineStyle=Se,Pe.fg|=268435456,Se===0&&(Pe.fg&=-268435457),Pe.updateExtended()},ge.prototype.charAttributes=function(Se){if(Se.length===1&&Se.params[0]===0)return this._curAttrData.fg=le.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=le.DEFAULT_ATTR_DATA.bg);for(var Pe,Re=Se.length,Le=this._curAttrData,Fe=0;Fe<Re;Fe++)(Pe=Se.params[Fe])>=30&&Pe<=37?(Le.fg&=-50331904,Le.fg|=16777216|Pe-30):Pe>=40&&Pe<=47?(Le.bg&=-50331904,Le.bg|=16777216|Pe-40):Pe>=90&&Pe<=97?(Le.fg&=-50331904,Le.fg|=16777224|Pe-90):Pe>=100&&Pe<=107?(Le.bg&=-50331904,Le.bg|=16777224|Pe-100):Pe===0?(Le.fg=le.DEFAULT_ATTR_DATA.fg,Le.bg=le.DEFAULT_ATTR_DATA.bg):Pe===1?Le.fg|=134217728:Pe===3?Le.bg|=67108864:Pe===4?(Le.fg|=268435456,this._processUnderline(Se.hasSubParams(Fe)?Se.getSubParams(Fe)[0]:1,Le)):Pe===5?Le.fg|=536870912:Pe===7?Le.fg|=67108864:Pe===8?Le.fg|=1073741824:Pe===2?Le.bg|=134217728:Pe===21?this._processUnderline(2,Le):Pe===22?(Le.fg&=-134217729,Le.bg&=-134217729):Pe===23?Le.bg&=-67108865:Pe===24?Le.fg&=-268435457:Pe===25?Le.fg&=-536870913:Pe===27?Le.fg&=-67108865:Pe===28?Le.fg&=-1073741825:Pe===39?(Le.fg&=-67108864,Le.fg|=16777215&le.DEFAULT_ATTR_DATA.fg):Pe===49?(Le.bg&=-67108864,Le.bg|=16777215&le.DEFAULT_ATTR_DATA.bg):Pe===38||Pe===48||Pe===58?Fe+=this._extractColor(Se,Fe,Le):Pe===59?(Le.extended=Le.extended.clone(),Le.extended.underlineColor=-1,Le.updateExtended()):Pe===100?(Le.fg&=-67108864,Le.fg|=16777215&le.DEFAULT_ATTR_DATA.fg,Le.bg&=-67108864,Le.bg|=16777215&le.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Pe)},ge.prototype.deviceStatus=function(Se){switch(Se.params[0]){case 5:this._coreService.triggerDataEvent(ve.C0.ESC+"[0n");break;case 6:var Pe=this._bufferService.buffer.y+1,Re=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(ve.C0.ESC+"["+Pe+";"+Re+"R")}},ge.prototype.deviceStatusPrivate=function(Se){switch(Se.params[0]){case 6:var Pe=this._bufferService.buffer.y+1,Re=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(ve.C0.ESC+"[?"+Pe+";"+Re+"R")}},ge.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=le.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},ge.prototype.setCursorStyle=function(Se){var Pe=Se.params[0]||1;switch(Pe){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 Re=Pe%2==1;this._optionsService.options.cursorBlink=Re},ge.prototype.setScrollRegion=function(Se){var Pe,Re=Se.params[0]||1;(Se.length<2||(Pe=Se.params[1])>this._bufferService.rows||Pe===0)&&(Pe=this._bufferService.rows),Pe>Re&&(this._bufferService.buffer.scrollTop=Re-1,this._bufferService.buffer.scrollBottom=Pe-1,this._setCursor(0,0))},ge.prototype.windowOptions=function(Se){if(z(Se.params[0],this._optionsService.options.windowOptions)){var Pe=Se.length>1?Se.params[1]:0;switch(Se.params[0]){case 14:Pe!==2&&this._onRequestWindowsOptionsReport.fire(pe.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(pe.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(ve.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:Pe!==0&&Pe!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),Pe!==0&&Pe!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:Pe!==0&&Pe!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),Pe!==0&&Pe!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ge.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},ge.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()},ge.prototype.setTitle=function(Se){this._windowTitle=Se,this._onTitleChange.fire(Se)},ge.prototype.setIconName=function(Se){this._iconName=Se},ge.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ge.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ge.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ge.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,fe.DEFAULT_CHARSET)},ge.prototype.selectCharset=function(Se){Se.length===2?Se[0]!=="/"&&this._charsetService.setgCharset(b[Se[0]],fe.CHARSETS[Se[1]]||fe.DEFAULT_CHARSET):this.selectDefaultCharset()},ge.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()},ge.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ge.prototype.reverseIndex=function(){this._restrictCursor();var Se=this._bufferService.buffer;if(Se.y===Se.scrollTop){var Pe=Se.scrollBottom-Se.scrollTop;Se.lines.shiftElements(Se.ybase+Se.y,Pe,1),Se.lines.set(Se.ybase+Se.y,Se.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}else Se.y--,this._restrictCursor()},ge.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ge.prototype.reset=function(){this._curAttrData=le.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=le.DEFAULT_ATTR_DATA.clone()},ge.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ge.prototype.setgLevel=function(Se){this._charsetService.setgLevel(Se)},ge.prototype.screenAlignmentPattern=function(){var Se=new ne.CellData;Se.content=1<<22|69,Se.fg=this._curAttrData.fg,Se.bg=this._curAttrData.bg;var Pe=this._bufferService.buffer;this._setCursor(0,0);for(var Re=0;Re<this._bufferService.rows;++Re){var Le=Pe.ybase+Pe.y+Re,Fe=Pe.lines.get(Le);Fe&&(Fe.fill(Se),Fe.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ge}(de.Disposable);te.InputHandler=re},function(Je,te,E){"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(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Params=void 0;var _e=function(){function Ee(pe,ve){if(pe===void 0&&(pe=32),ve===void 0&&(ve=32),this.maxLength=pe,this.maxSubParamsLength=ve,ve>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(pe),this.length=0,this._subParams=new Int32Array(ve),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(pe),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return Ee.fromArray=function(pe){var ve=new Ee;if(!pe.length)return ve;for(var fe=pe[0]instanceof Array?1:0;fe<pe.length;++fe){var me=pe[fe];if(me instanceof Array)for(var de=0;de<me.length;++de)ve.addSubParam(me[de]);else ve.addParam(me)}return ve},Ee.prototype.clone=function(){var pe=new Ee(this.maxLength,this.maxSubParamsLength);return pe.params.set(this.params),pe.length=this.length,pe._subParams.set(this._subParams),pe._subParamsLength=this._subParamsLength,pe._subParamsIdx.set(this._subParamsIdx),pe._rejectDigits=this._rejectDigits,pe._rejectSubDigits=this._rejectSubDigits,pe._digitIsSub=this._digitIsSub,pe},Ee.prototype.toArray=function(){for(var pe=[],ve=0;ve<this.length;++ve){pe.push(this.params[ve]);var fe=this._subParamsIdx[ve]>>8,me=255&this._subParamsIdx[ve];me-fe>0&&pe.push(Array.prototype.slice.call(this._subParams,fe,me))}return pe},Ee.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},Ee.prototype.addParam=function(pe){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(pe<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=pe>2147483647?2147483647:pe}},Ee.prototype.addSubParam=function(pe){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(pe<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=pe>2147483647?2147483647:pe,this._subParamsIdx[this.length-1]++}},Ee.prototype.hasSubParams=function(pe){return(255&this._subParamsIdx[pe])-(this._subParamsIdx[pe]>>8)>0},Ee.prototype.getSubParams=function(pe){var ve=this._subParamsIdx[pe]>>8,fe=255&this._subParamsIdx[pe];return fe-ve>0?this._subParams.subarray(ve,fe):null},Ee.prototype.getSubParamsAll=function(){for(var pe={},ve=0;ve<this.length;++ve){var fe=this._subParamsIdx[ve]>>8,me=255&this._subParamsIdx[ve];me-fe>0&&(pe[ve]=this._subParams.slice(fe,me))}return pe},Ee.prototype.addDigit=function(pe){var ve;if(!(this._rejectDigits||!(ve=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var fe=this._digitIsSub?this._subParams:this.params,me=fe[ve-1];fe[ve-1]=~me?Math.min(10*me+pe,2147483647):pe}},Ee}();te.Params=_e},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OscHandler=te.OscParser=void 0;var _e=E(23),Ee=E(8),pe=function(){function fe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return fe.prototype.addHandler=function(me,de){this._handlers[me]===void 0&&(this._handlers[me]=[]);var ce=this._handlers[me];return ce.push(de),{dispose:function(){var ue=ce.indexOf(de);ue!==-1&&ce.splice(ue,1)}}},fe.prototype.setHandler=function(me,de){this._handlers[me]=[de]},fe.prototype.clearHandler=function(me){this._handlers[me]&&delete this._handlers[me]},fe.prototype.setHandlerFallback=function(me){this._handlerFb=me},fe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},fe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},fe.prototype._start=function(){var me=this._handlers[this._id];if(me)for(var de=me.length-1;de>=0;de--)me[de].start();else this._handlerFb(this._id,"START")},fe.prototype._put=function(me,de,ce){var ue=this._handlers[this._id];if(ue)for(var le=ue.length-1;le>=0;le--)ue[le].put(me,de,ce);else this._handlerFb(this._id,"PUT",Ee.utf32ToString(me,de,ce))},fe.prototype._end=function(me){var de=this._handlers[this._id];if(de){for(var ce=de.length-1;ce>=0&&de[ce].end(me)===!1;ce--);for(ce--;ce>=0;ce--)de[ce].end(!1)}else this._handlerFb(this._id,"END",me)},fe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},fe.prototype.put=function(me,de,ce){if(this._state!==3){if(this._state===1)for(;de<ce;){var ue=me[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&&ce-de>0&&this._put(me,de,ce)}},fe.prototype.end=function(me){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(me)),this._id=-1,this._state=0)},fe}();te.OscParser=pe;var ve=function(){function fe(me){this._handler=me,this._data="",this._hitLimit=!1}return fe.prototype.start=function(){this._data="",this._hitLimit=!1},fe.prototype.put=function(me,de,ce){this._hitLimit||(this._data+=Ee.utf32ToString(me,de,ce),this._data.length>_e.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},fe.prototype.end=function(me){var de;return this._hitLimit?de=!1:me&&(de=this._handler(this._data)),this._data="",this._hitLimit=!1,de},fe}();te.OscHandler=ve},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.PAYLOAD_LIMIT=void 0,te.PAYLOAD_LIMIT=1e7},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DcsHandler=te.DcsParser=void 0;var _e=E(8),Ee=E(21),pe=E(23),ve=[],fe=function(){function de(){this._handlers=Object.create(null),this._active=ve,this._ident=0,this._handlerFb=function(){}}return de.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},de.prototype.addHandler=function(ce,ue){this._handlers[ce]===void 0&&(this._handlers[ce]=[]);var le=this._handlers[ce];return le.push(ue),{dispose:function(){var he=le.indexOf(ue);he!==-1&&le.splice(he,1)}}},de.prototype.setHandler=function(ce,ue){this._handlers[ce]=[ue]},de.prototype.clearHandler=function(ce){this._handlers[ce]&&delete this._handlers[ce]},de.prototype.setHandlerFallback=function(ce){this._handlerFb=ce},de.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=ve,this._ident=0},de.prototype.hook=function(ce,ue){if(this.reset(),this._ident=ce,this._active=this._handlers[ce]||ve,this._active.length)for(var le=this._active.length-1;le>=0;le--)this._active[le].hook(ue);else this._handlerFb(this._ident,"HOOK",ue)},de.prototype.put=function(ce,ue,le){if(this._active.length)for(var he=this._active.length-1;he>=0;he--)this._active[he].put(ce,ue,le);else this._handlerFb(this._ident,"PUT",_e.utf32ToString(ce,ue,le))},de.prototype.unhook=function(ce){if(this._active.length){for(var ue=this._active.length-1;ue>=0&&this._active[ue].unhook(ce)===!1;ue--);for(ue--;ue>=0;ue--)this._active[ue].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",ce);this._active=ve,this._ident=0},de}();te.DcsParser=fe;var me=function(){function de(ce){this._handler=ce,this._data="",this._hitLimit=!1}return de.prototype.hook=function(ce){this._params=ce.clone(),this._data="",this._hitLimit=!1},de.prototype.put=function(ce,ue,le){this._hitLimit||(this._data+=_e.utf32ToString(ce,ue,le),this._data.length>pe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},de.prototype.unhook=function(ce){var ue;return this._hitLimit?ue=!1:ce&&(ue=this._handler(this._data,this._params||new Ee.Params)),this._params=void 0,this._data="",this._hitLimit=!1,ue},de}();te.DcsHandler=me},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeTerminalFromCache=te.acquireCharAtlas=void 0;var _e=E(26),Ee=E(43),pe=[];te.acquireCharAtlas=function(ve,fe,me,de,ce){for(var ue=_e.generateConfig(de,ce,ve,me),le=0;le<pe.length;le++){var he=(ie=pe[le]).ownedBy.indexOf(fe);if(he>=0){if(_e.configEquals(ie.config,ue))return ie.atlas;ie.ownedBy.length===1?(ie.atlas.dispose(),pe.splice(le,1)):ie.ownedBy.splice(he,1);break}}for(le=0;le<pe.length;le++){var ie=pe[le];if(_e.configEquals(ie.config,ue))return ie.ownedBy.push(fe),ie.atlas}var ne={atlas:new Ee.DynamicCharAtlas(document,ue),config:ue,ownedBy:[fe]};return pe.push(ne),ne.atlas},te.removeTerminalFromCache=function(ve){for(var fe=0;fe<pe.length;fe++){var me=pe[fe].ownedBy.indexOf(ve);if(me!==-1){pe[fe].ownedBy.length===1?(pe[fe].atlas.dispose(),pe.splice(fe,1)):pe[fe].ownedBy.splice(me,1);break}}}},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.is256Color=te.configEquals=te.generateConfig=void 0;var _e=E(3);te.generateConfig=function(Ee,pe,ve,fe){var me={foreground:fe.foreground,background:fe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:fe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:Ee,scaledCharHeight:pe,fontFamily:ve.fontFamily,fontSize:ve.fontSize,fontWeight:ve.fontWeight,fontWeightBold:ve.fontWeightBold,allowTransparency:ve.allowTransparency,colors:me}},te.configEquals=function(Ee,pe){for(var ve=0;ve<Ee.colors.ansi.length;ve++)if(Ee.colors.ansi[ve].rgba!==pe.colors.ansi[ve].rgba)return!1;return Ee.devicePixelRatio===pe.devicePixelRatio&&Ee.fontFamily===pe.fontFamily&&Ee.fontSize===pe.fontSize&&Ee.fontWeight===pe.fontWeight&&Ee.fontWeightBold===pe.fontWeightBold&&Ee.allowTransparency===pe.allowTransparency&&Ee.scaledCharWidth===pe.scaledCharWidth&&Ee.scaledCharHeight===pe.scaledCharHeight&&Ee.colors.foreground===pe.colors.foreground&&Ee.colors.background===pe.colors.background},te.is256Color=function(Ee){return Ee<_e.DEFAULT_COLOR}},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorManager=te.DEFAULT_ANSI_COLORS=void 0;var _e=E(10),Ee=E(45),pe=_e.css.toColor("#ffffff"),ve=_e.css.toColor("#000000"),fe=_e.css.toColor("#ffffff"),me=_e.css.toColor("#000000"),de={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};te.DEFAULT_ANSI_COLORS=function(){for(var ue=[_e.css.toColor("#2e3436"),_e.css.toColor("#cc0000"),_e.css.toColor("#4e9a06"),_e.css.toColor("#c4a000"),_e.css.toColor("#3465a4"),_e.css.toColor("#75507b"),_e.css.toColor("#06989a"),_e.css.toColor("#d3d7cf"),_e.css.toColor("#555753"),_e.css.toColor("#ef2929"),_e.css.toColor("#8ae234"),_e.css.toColor("#fce94f"),_e.css.toColor("#729fcf"),_e.css.toColor("#ad7fa8"),_e.css.toColor("#34e2e2"),_e.css.toColor("#eeeeec")],le=[0,95,135,175,215,255],he=0;he<216;he++){var ie=le[he/36%6|0],ne=le[he/6%6|0],a=le[he%6];ue.push({css:_e.channels.toCss(ie,ne,a),rgba:_e.channels.toRgba(ie,ne,a)})}for(he=0;he<24;he++){var y=8+10*he;ue.push({css:_e.channels.toCss(y,y,y),rgba:_e.channels.toRgba(y,y,y)})}return ue}();var ce=function(){function ue(le,he){this.allowTransparency=he;var ie=le.createElement("canvas");ie.width=1,ie.height=1;var ne=ie.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 Ee.ColorContrastCache,this.colors={foreground:pe,background:ve,cursor:fe,cursorAccent:me,selectionTransparent:de,selectionOpaque:_e.color.blend(ve,de),ansi:te.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return ue.prototype.onOptionsChange=function(le){le==="minimumContrastRatio"&&this._contrastCache.clear()},ue.prototype.setTheme=function(le){le===void 0&&(le={}),this.colors.foreground=this._parseColor(le.foreground,pe),this.colors.background=this._parseColor(le.background,ve),this.colors.cursor=this._parseColor(le.cursor,fe,!0),this.colors.cursorAccent=this._parseColor(le.cursorAccent,me,!0),this.colors.selectionTransparent=this._parseColor(le.selection,de,!0),this.colors.selectionOpaque=_e.color.blend(this.colors.background,this.colors.selectionTransparent),_e.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=_e.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(le.black,te.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(le.red,te.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(le.green,te.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(le.yellow,te.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(le.blue,te.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(le.magenta,te.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(le.cyan,te.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(le.white,te.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(le.brightBlack,te.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(le.brightRed,te.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(le.brightGreen,te.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(le.brightYellow,te.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(le.brightBlue,te.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(le.brightMagenta,te.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(le.brightCyan,te.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(le.brightWhite,te.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},ue.prototype._parseColor=function(le,he,ie){if(ie===void 0&&(ie=this.allowTransparency),le===void 0)return he;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=le,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+le+" is invalid using fallback "+he.css),he;this._ctx.fillRect(0,0,1,1);var ne=this._ctx.getImageData(0,0,1,1).data;if(ne[3]!==255){if(!ie)return console.warn("Color: "+le+" is using transparency, but allowTransparency is false. Using fallback "+he.css+"."),he;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(re){return Number(re)}),y=a[0],x=a[1],b=a[2],z=a[3],ee=Math.round(255*z);return{rgba:_e.channels.toRgba(y,x,b,ee),css:le}}return{css:this._ctx.fillStyle,rgba:_e.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},ue}();te.ColorManager=ce},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.throwIfFalsy=void 0,te.throwIfFalsy=function(_e){if(!_e)throw new Error("value must not be falsy");return _e}},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(ce,ue){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,he){le.__proto__=he}||function(le,he){for(var ie in he)he.hasOwnProperty(ie)&&(le[ie]=he[ie])})(ce,ue)},function(ce,ue){function le(){this.constructor=ce}_e(ce,ue),ce.prototype=ue===null?Object.create(ue):(le.prototype=ue.prototype,new le)});Object.defineProperty(te,"__esModule",{value:!0}),te.CharacterJoinerRegistry=te.JoinedCellData=void 0;var pe=E(6),ve=E(3),fe=E(4),me=function(ce){function ue(le,he,ie){var ne=ce.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=le.fg,ne.bg=le.bg,ne.combinedData=he,ne._width=ie,ne}return Ee(ue,ce),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(le){throw new Error("not implemented")},ue.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ue}(pe.AttributeData);te.JoinedCellData=me;var de=function(){function ce(ue){this._bufferService=ue,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new fe.CellData}return ce.prototype.registerCharacterJoiner=function(ue){var le={id:this._nextCharacterJoinerId++,handler:ue};return this._characterJoiners.push(le),le.id},ce.prototype.deregisterCharacterJoiner=function(ue){for(var le=0;le<this._characterJoiners.length;le++)if(this._characterJoiners[le].id===ue)return this._characterJoiners.splice(le,1),!0;return!1},ce.prototype.getJoinedCharacters=function(ue){if(this._characterJoiners.length===0)return[];var le=this._bufferService.buffer.lines.get(ue);if(!le||le.length===0)return[];for(var he=[],ie=le.translateToString(!0),ne=0,a=0,y=0,x=le.getFg(0),b=le.getBg(0),z=0;z<le.getTrimmedLength();z++)if(le.loadCell(z,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==x||this._workCell.bg!==b){if(z-ne>1)for(var ee=this._getJoinedRanges(ie,y,a,le,ne),re=0;re<ee.length;re++)he.push(ee[re]);ne=z,y=a,x=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||ve.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(ee=this._getJoinedRanges(ie,y,a,le,ne),re=0;re<ee.length;re++)he.push(ee[re]);return he},ce.prototype._getJoinedRanges=function(ue,le,he,ie,ne){for(var a=ue.substring(le,he),y=this._characterJoiners[0].handler(a),x=1;x<this._characterJoiners.length;x++)for(var b=this._characterJoiners[x].handler(a),z=0;z<b.length;z++)ce._mergeRanges(y,b[z]);return this._stringRangesToCellRanges(y,ie,ne),y},ce.prototype._stringRangesToCellRanges=function(ue,le,he){var ie=0,ne=!1,a=0,y=ue[ie];if(y){for(var x=he;x<this._bufferService.cols;x++){var b=le.getWidth(x),z=le.getString(x).length||ve.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!ne&&y[0]<=a&&(y[0]=x,ne=!0),y[1]<=a){if(y[1]=x,!(y=ue[++ie]))break;y[0]<=a?(y[0]=x,ne=!0):ne=!1}a+=z}}y&&(y[1]=this._bufferService.cols)}},ce._mergeRanges=function(ue,le){for(var he=!1,ie=0;ie<ue.length;ie++){var ne=ue[ie];if(he){if(le[1]<=ne[0])return ue[ie-1][1]=le[1],ue;if(le[1]<=ne[1])return ue[ie-1][1]=Math.max(le[1],ne[1]),ue.splice(ie,1),ue;ue.splice(ie,1),ie--}else{if(le[1]<=ne[0])return ue.splice(ie,0,le),ue;if(le[1]<=ne[1])return ne[0]=Math.min(le[0],ne[0]),ue;le[0]<ne[1]&&(ne[0]=Math.min(le[0],ne[0]),he=!0)}}return he?ue[ue.length-1][1]=le[1]:ue.push(le),ue},ce}();te.CharacterJoinerRegistry=de},function(Je,te,E){"use strict";function _e(Ee,pe){var ve=pe.getBoundingClientRect();return[Ee.clientX-ve.left,Ee.clientY-ve.top]}Object.defineProperty(te,"__esModule",{value:!0}),te.getRawByteCoords=te.getCoords=te.getCoordsRelativeToElement=void 0,te.getCoordsRelativeToElement=_e,te.getCoords=function(Ee,pe,ve,fe,me,de,ce,ue){if(me){var le=_e(Ee,pe);if(le)return le[0]=Math.ceil((le[0]+(ue?de/2:0))/de),le[1]=Math.ceil(le[1]/ce),le[0]=Math.min(Math.max(le[0],1),ve+(ue?1:0)),le[1]=Math.min(Math.max(le[1],1),fe),le}},te.getRawByteCoords=function(Ee){if(Ee)return{x:Ee[0]+32,y:Ee[1]+32}}},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.RenderDebouncer=void 0;var _e=function(){function Ee(pe){this._renderCallback=pe}return Ee.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},Ee.prototype.refresh=function(pe,ve,fe){var me=this;this._rowCount=fe,pe=pe!==void 0?pe:0,ve=ve!==void 0?ve:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,pe):pe,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,ve):ve,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return me._innerRefresh()}))},Ee.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var pe=Math.max(this._rowStart,0),ve=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(pe,ve)}},Ee}();te.RenderDebouncer=_e},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(ve,fe){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,de){me.__proto__=de}||function(me,de){for(var ce in de)de.hasOwnProperty(ce)&&(me[ce]=de[ce])})(ve,fe)},function(ve,fe){function me(){this.constructor=ve}_e(ve,fe),ve.prototype=fe===null?Object.create(fe):(me.prototype=fe.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.ScreenDprMonitor=void 0;var pe=function(ve){function fe(){var me=ve!==null&&ve.apply(this,arguments)||this;return me._currentDevicePixelRatio=window.devicePixelRatio,me}return Ee(fe,ve),fe.prototype.setListener=function(me){var de=this;this._listener&&this.clearListener(),this._listener=me,this._outerListener=function(){de._listener&&(de._listener(window.devicePixelRatio,de._currentDevicePixelRatio),de._updateDpr())},this._updateDpr()},fe.prototype.dispose=function(){ve.prototype.dispose.call(this),this.clearListener()},fe.prototype._updateDpr=function(){var me;this._outerListener&&((me=this._resolutionMediaMatchList)===null||me===void 0||me.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},fe.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},fe}(E(2).Disposable);te.ScreenDprMonitor=pe},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.clone=void 0,te.clone=function _e(Ee,pe){if(pe===void 0&&(pe=5),typeof Ee!="object")return Ee;var ve=Array.isArray(Ee)?[]:{};for(var fe in Ee)ve[fe]=pe<=1?Ee[fe]:Ee[fe]?_e(Ee[fe],pe-1):Ee[fe];return ve}},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var _e=E(4),Ee=E(35),pe=E(18),ve=E(0),fe=E(83),me=function(){function ie(ne){this._core=new Ee.Terminal(ne),this._addonManager=new fe.AddonManager}return ie.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(ie.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new le(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"unicode",{get:function(){return this._checkProposedApi(),new he(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"buffer",{get:function(){return this._checkProposedApi(),new ce(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),ie.prototype.blur=function(){this._core.blur()},ie.prototype.focus=function(){this._core.focus()},ie.prototype.resize=function(ne,a){this._verifyIntegers(ne,a),this._core.resize(ne,a)},ie.prototype.open=function(ne){this._core.open(ne)},ie.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},ie.prototype.registerLinkMatcher=function(ne,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,a,y)},ie.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},ie.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},ie.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},ie.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},ie.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},ie.prototype.addMarker=function(ne){return this.registerMarker(ne)},ie.prototype.hasSelection=function(){return this._core.hasSelection()},ie.prototype.select=function(ne,a,y){this._verifyIntegers(ne,a,y),this._core.select(ne,a,y)},ie.prototype.getSelection=function(){return this._core.getSelection()},ie.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},ie.prototype.clearSelection=function(){this._core.clearSelection()},ie.prototype.selectAll=function(){this._core.selectAll()},ie.prototype.selectLines=function(ne,a){this._verifyIntegers(ne,a),this._core.selectLines(ne,a)},ie.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},ie.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},ie.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},ie.prototype.scrollToTop=function(){this._core.scrollToTop()},ie.prototype.scrollToBottom=function(){this._core.scrollToBottom()},ie.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},ie.prototype.clear=function(){this._core.clear()},ie.prototype.write=function(ne,a){this._core.write(ne,a)},ie.prototype.writeUtf8=function(ne,a){this._core.write(ne,a)},ie.prototype.writeln=function(ne,a){this._core.write(ne),this._core.write(`\r
|
|
|
`,a)},ie.prototype.paste=function(ne){this._core.paste(ne)},ie.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},ie.prototype.setOption=function(ne,a){this._core.optionsService.setOption(ne,a)},ie.prototype.refresh=function(ne,a){this._verifyIntegers(ne,a),this._core.refresh(ne,a)},ie.prototype.reset=function(){this._core.reset()},ie.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(ie,"strings",{get:function(){return pe},enumerable:!1,configurable:!0}),ie.prototype._verifyIntegers=function(){for(var ne=[],a=0;a<arguments.length;a++)ne[a]=arguments[a];for(var y=0,x=ne;y<x.length;y++){var b=x[y];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},ie}();te.Terminal=me;var de=function(){function ie(ne,a){this._buffer=ne,this.type=a}return ie.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(ie.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),ie.prototype.getLine=function(ne){var a=this._buffer.lines.get(ne);if(a)return new ue(a)},ie.prototype.getNullCell=function(){return new _e.CellData},ie}(),ce=function(){function ie(ne){var a=this;this._buffers=ne,this._onBufferChange=new ve.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(ie.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ie.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(ie.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),ie}(),ue=function(){function ie(ne){this._line=ne}return Object.defineProperty(ie.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),ie.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 _e.CellData)},ie.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},ie}(),le=function(){function ie(ne){this._core=ne}return ie.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},ie.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},ie.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,x){return a(y,x.toArray())})},ie.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},ie.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},ie.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},ie.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},ie.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},ie}(),he=function(){function ie(ne){this._core=ne}return ie.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(ie.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),ie}()},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(et,De){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Oe,ke){Oe.__proto__=ke}||function(Oe,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(Oe[lt]=ke[lt])})(et,De)},function(et,De){function Oe(){this.constructor=et}_e(et,De),et.prototype=De===null?Object.create(De):(Oe.prototype=De.prototype,new Oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var pe=E(36),ve=E(37),fe=E(38),me=E(12),de=E(19),ce=E(40),ue=E(50),le=E(51),he=E(11),ie=E(7),ne=E(18),a=E(54),y=E(55),x=E(56),b=E(57),z=E(59),ee=E(0),re=E(16),se=E(27),ge=E(60),Se=E(5),Pe=E(61),Re=E(62),Le=E(63),Fe=E(64),Ie=E(65),vt=typeof window!="undefined"?window.document:null,at=function(et){function De(Oe){Oe===void 0&&(Oe={});var ke=et.call(this,Oe)||this;return ke.browser=he,ke._keyDownHandled=!1,ke._onCursorMove=new ee.EventEmitter,ke._onKey=new ee.EventEmitter,ke._onRender=new ee.EventEmitter,ke._onSelectionChange=new ee.EventEmitter,ke._onTitleChange=new ee.EventEmitter,ke._onFocus=new ee.EventEmitter,ke._onBlur=new ee.EventEmitter,ke._onA11yCharEmitter=new ee.EventEmitter,ke._onA11yTabEmitter=new ee.EventEmitter,ke._setup(),ke.linkifier=ke._instantiationService.createInstance(ue.Linkifier),ke.linkifier2=ke.register(ke._instantiationService.createInstance(Le.Linkifier2)),ke.register(ke._inputHandler.onRequestBell(function(){return ke.bell()})),ke.register(ke._inputHandler.onRequestRefreshRows(function(lt,Xe){return ke.refresh(lt,Xe)})),ke.register(ke._inputHandler.onRequestReset(function(){return ke.reset()})),ke.register(ke._inputHandler.onRequestScroll(function(lt,Xe){return ke.scroll(lt,Xe||void 0)})),ke.register(ke._inputHandler.onRequestWindowsOptionsReport(function(lt){return ke._reportWindowsOptions(lt)})),ke.register(ee.forwardEvent(ke._inputHandler.onCursorMove,ke._onCursorMove)),ke.register(ee.forwardEvent(ke._inputHandler.onTitleChange,ke._onTitleChange)),ke.register(ee.forwardEvent(ke._inputHandler.onA11yChar,ke._onA11yCharEmitter)),ke.register(ee.forwardEvent(ke._inputHandler.onA11yTab,ke._onA11yTabEmitter)),ke.register(ke._bufferService.onResize(function(lt){return ke._afterResize(lt.cols,lt.rows)})),ke}return Ee(De,et),Object.defineProperty(De.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(De.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),De.prototype.dispose=function(){var Oe,ke,lt;this._isDisposed||(et.prototype.dispose.call(this),(Oe=this._renderService)===null||Oe===void 0||Oe.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(lt=(ke=this.element)===null||ke===void 0?void 0:ke.parentNode)===null||lt===void 0||lt.removeChild(this.element))},De.prototype._setup=function(){et.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(De.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),De.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},De.prototype._updateOptions=function(Oe){var ke,lt,Xe,xt;switch(et.prototype._updateOptions.call(this,Oe),Oe){case"fontFamily":case"fontSize":(ke=this._renderService)===null||ke===void 0||ke.clear(),(lt=this._charSizeService)===null||lt===void 0||lt.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":(Xe=this.viewport)===null||Xe===void 0||Xe.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new x.AccessibilityManager(this,this._renderService)):((xt=this._accessibilityManager)===null||xt===void 0||xt.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},De.prototype._onTextAreaFocus=function(Oe){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(me.C0.ESC+"[I"),this.updateCursorStyle(Oe),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},De.prototype.blur=function(){var Oe;return(Oe=this.textarea)===null||Oe===void 0?void 0:Oe.blur()},De.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(me.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},De.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var Oe=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),ke=this._bufferService.buffer.y*Oe,lt=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=lt+"px",this.textarea.style.top=ke+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=Oe+"px",this.textarea.style.lineHeight=Oe+"px",this.textarea.style.zIndex="-5"}},De.prototype._initGlobal=function(){var Oe=this;this._bindKeys(),this.register(ie.addDisposableDomListener(this.element,"copy",function(lt){Oe.hasSelection()&&fe.copyHandler(lt,Oe._selectionService)}));var ke=function(lt){return fe.handlePasteEvent(lt,Oe.textarea,Oe._coreService)};this.register(ie.addDisposableDomListener(this.textarea,"paste",ke)),this.register(ie.addDisposableDomListener(this.element,"paste",ke)),he.isFirefox?this.register(ie.addDisposableDomListener(this.element,"mousedown",function(lt){lt.button===2&&fe.rightClickHandler(lt,Oe.textarea,Oe.screenElement,Oe._selectionService,Oe.options.rightClickSelectsWord)})):this.register(ie.addDisposableDomListener(this.element,"contextmenu",function(lt){fe.rightClickHandler(lt,Oe.textarea,Oe.screenElement,Oe._selectionService,Oe.options.rightClickSelectsWord)})),he.isLinux&&this.register(ie.addDisposableDomListener(this.element,"auxclick",function(lt){lt.button===1&&fe.moveTextAreaUnderMouseCursor(lt,Oe.textarea,Oe.screenElement)}))},De.prototype._bindKeys=function(){var Oe=this;this.register(ie.addDisposableDomListener(this.textarea,"keyup",function(ke){return Oe._keyUp(ke)},!0)),this.register(ie.addDisposableDomListener(this.textarea,"keydown",function(ke){return Oe._keyDown(ke)},!0)),this.register(ie.addDisposableDomListener(this.textarea,"keypress",function(ke){return Oe._keyPress(ke)},!0)),this.register(ie.addDisposableDomListener(this.textarea,"compositionstart",function(){return Oe._compositionHelper.compositionstart()})),this.register(ie.addDisposableDomListener(this.textarea,"compositionupdate",function(ke){return Oe._compositionHelper.compositionupdate(ke)})),this.register(ie.addDisposableDomListener(this.textarea,"compositionend",function(){return Oe._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Oe._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(ke){return Oe._queueLinkification(ke.start,ke.end)}))},De.prototype.open=function(Oe){var ke=this;if(!Oe)throw new Error("Terminal requires a parent element.");vt.body.contains(Oe)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Oe.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"),Oe.appendChild(this.element);var lt=vt.createDocumentFragment();this._viewportElement=vt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),lt.appendChild(this._viewportElement),this._viewportScrollArea=vt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=vt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=vt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),lt.appendChild(this.screenElement),this.textarea=vt.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(ie.addDisposableDomListener(this.textarea,"focus",function(Ot){return ke._onTextAreaFocus(Ot)})),this.register(ie.addDisposableDomListener(this.textarea,"blur",function(){return ke._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Xe=this._instantiationService.createInstance(Fe.CoreBrowserService,this.textarea);this._instantiationService.setService(Se.ICoreBrowserService,Xe),this._charSizeService=this._instantiationService.createInstance(Pe.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(Se.ICharSizeService,this._charSizeService),this._compositionView=vt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(pe.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(lt),this._theme=this.options.theme||this._theme,this._colorManager=new se.ColorManager(vt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Ot){return ke._colorManager.onOptionsChange(Ot)})),this._colorManager.setTheme(this._theme);var xt=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ge.RenderService,xt,this.rows,this.screenElement)),this._instantiationService.setService(Se.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Ot){return ke._onRender.fire(Ot)})),this.onResize(function(Ot){return ke._renderService.resize(Ot.cols,Ot.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(Se.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(Re.MouseService),this._instantiationService.setService(Se.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(ve.Viewport,function(Ot,Dt){return ke.scrollLines(Ot,Dt)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return ke.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){ke._renderService.onCursorMove(),ke._syncTextArea()})),this.register(this.onResize(function(){return ke._renderService.onResize(ke.cols,ke.rows)})),this.register(this.onBlur(function(){return ke._renderService.onBlur()})),this.register(this.onFocus(function(){return ke._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return ke.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(le.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(Se.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Ot){return ke.scrollLines(Ot.amount,Ot.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return ke._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Ot){return ke._renderService.onSelectionChanged(Ot.start,Ot.end,Ot.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Ot){ke.textarea.value=Ot,ke.textarea.focus(),ke.textarea.select()})),this.register(this.onScroll(function(){ke.viewport.syncScrollArea(),ke._selectionService.refresh()})),this.register(ie.addDisposableDomListener(this._viewportElement,"scroll",function(){return ke._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return ke._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(ie.addDisposableDomListener(this.element,"mousedown",function(Ot){return ke._selectionService.onMouseDown(Ot)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new x.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},De.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(ce.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},De.prototype._setTheme=function(Oe){var ke,lt,Xe;this._theme=Oe,(ke=this._colorManager)===null||ke===void 0||ke.setTheme(Oe),(lt=this._renderService)===null||lt===void 0||lt.setColors(this._colorManager.colors),(Xe=this.viewport)===null||Xe===void 0||Xe.onThemeChange(this._colorManager.colors)},De.prototype.bindMouse=function(){var Oe=this,ke=this,lt=this.element;function Xe(gt){var ht,Qt,yt=ke._mouseService.getRawByteCoords(gt,ke.screenElement,ke.cols,ke.rows);if(!yt)return!1;switch(gt.overrideType||gt.type){case"mousemove":Qt=32,gt.buttons===void 0?(ht=3,gt.button!==void 0&&(ht=gt.button<3?gt.button:3)):ht=1>.buttons?0:4>.buttons?1:2>.buttons?2:3;break;case"mouseup":Qt=0,ht=gt.button<3?gt.button:3;break;case"mousedown":Qt=1,ht=gt.button<3?gt.button:3;break;case"wheel":gt.deltaY!==0&&(Qt=gt.deltaY<0?0:1),ht=4;break;default:return!1}return!(Qt===void 0||ht===void 0||ht>4)&&ke._coreMouseService.triggerMouseEvent({col:yt.x-33,row:yt.y-33,button:ht,action:Qt,ctrl:gt.ctrlKey,alt:gt.altKey,shift:gt.shiftKey})}var xt={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Ot=function(gt){return Xe(gt),gt.buttons||(Oe._document.removeEventListener("mouseup",xt.mouseup),xt.mousedrag&&Oe._document.removeEventListener("mousemove",xt.mousedrag)),Oe.cancel(gt)},Dt=function(gt){return Xe(gt),gt.preventDefault(),Oe.cancel(gt)},Kt=function(gt){gt.buttons&&Xe(gt)},St=function(gt){gt.buttons||Xe(gt)};this.register(this._coreMouseService.onProtocolChange(function(gt){gt?(Oe.optionsService.options.logLevel==="debug"&&Oe._logService.debug("Binding to mouse events:",Oe._coreMouseService.explainEvents(gt)),Oe.element.classList.add("enable-mouse-events"),Oe._selectionService.disable()):(Oe._logService.debug("Unbinding from mouse events."),Oe.element.classList.remove("enable-mouse-events"),Oe._selectionService.enable()),8>?xt.mousemove||(lt.addEventListener("mousemove",St),xt.mousemove=St):(lt.removeEventListener("mousemove",xt.mousemove),xt.mousemove=null),16>?xt.wheel||(lt.addEventListener("wheel",Dt,{passive:!1}),xt.wheel=Dt):(lt.removeEventListener("wheel",xt.wheel),xt.wheel=null),2>?xt.mouseup||(xt.mouseup=Ot):(Oe._document.removeEventListener("mouseup",xt.mouseup),xt.mouseup=null),4>?xt.mousedrag||(xt.mousedrag=Kt):(Oe._document.removeEventListener("mousemove",xt.mousedrag),xt.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(ie.addDisposableDomListener(lt,"mousedown",function(gt){if(gt.preventDefault(),Oe.focus(),Oe._coreMouseService.areMouseEventsActive&&!Oe._selectionService.shouldForceSelection(gt))return Xe(gt),xt.mouseup&&Oe._document.addEventListener("mouseup",xt.mouseup),xt.mousedrag&&Oe._document.addEventListener("mousemove",xt.mousedrag),Oe.cancel(gt)})),this.register(ie.addDisposableDomListener(lt,"wheel",function(gt){if(!xt.wheel){if(!Oe.buffer.hasScrollback){var ht=Oe.viewport.getLinesScrolled(gt);if(ht===0)return;for(var Qt=me.C0.ESC+(Oe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(gt.deltaY<0?"A":"B"),yt="",Zt=0;Zt<Math.abs(ht);Zt++)yt+=Qt;Oe._coreService.triggerDataEvent(yt,!0)}}},{passive:!0})),this.register(ie.addDisposableDomListener(lt,"wheel",function(gt){if(!xt.wheel)return Oe.viewport.onWheel(gt)?void 0:Oe.cancel(gt)},{passive:!1})),this.register(ie.addDisposableDomListener(lt,"touchstart",function(gt){if(!Oe._coreMouseService.areMouseEventsActive)return Oe.viewport.onTouchStart(gt),Oe.cancel(gt)},{passive:!0})),this.register(ie.addDisposableDomListener(lt,"touchmove",function(gt){if(!Oe._coreMouseService.areMouseEventsActive)return Oe.viewport.onTouchMove(gt)?void 0:Oe.cancel(gt)},{passive:!1}))},De.prototype.refresh=function(Oe,ke){var lt;(lt=this._renderService)===null||lt===void 0||lt.refreshRows(Oe,ke)},De.prototype._queueLinkification=function(Oe,ke){var lt;(lt=this.linkifier)===null||lt===void 0||lt.linkifyRows(Oe,ke)},De.prototype.updateCursorStyle=function(Oe){this._selectionService&&this._selectionService.shouldColumnSelect(Oe)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},De.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},De.prototype.scrollLines=function(Oe,ke){et.prototype.scrollLines.call(this,Oe,ke),this.refresh(0,this.rows-1)},De.prototype.paste=function(Oe){fe.paste(Oe,this.textarea,this._coreService)},De.prototype.attachCustomKeyEventHandler=function(Oe){this._customKeyEventHandler=Oe},De.prototype.registerLinkMatcher=function(Oe,ke,lt){var Xe=this.linkifier.registerLinkMatcher(Oe,ke,lt);return this.refresh(0,this.rows-1),Xe},De.prototype.deregisterLinkMatcher=function(Oe){this.linkifier.deregisterLinkMatcher(Oe)&&this.refresh(0,this.rows-1)},De.prototype.registerLinkProvider=function(Oe){return this.linkifier2.registerLinkProvider(Oe)},De.prototype.registerCharacterJoiner=function(Oe){var ke=this._renderService.registerCharacterJoiner(Oe);return this.refresh(0,this.rows-1),ke},De.prototype.deregisterCharacterJoiner=function(Oe){this._renderService.deregisterCharacterJoiner(Oe)&&this.refresh(0,this.rows-1)},Object.defineProperty(De.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),De.prototype.addMarker=function(Oe){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Oe)},De.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},De.prototype.select=function(Oe,ke,lt){this._selectionService.setSelection(Oe,ke,lt)},De.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},De.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]}},De.prototype.clearSelection=function(){var Oe;(Oe=this._selectionService)===null||Oe===void 0||Oe.clearSelection()},De.prototype.selectAll=function(){var Oe;(Oe=this._selectionService)===null||Oe===void 0||Oe.selectAll()},De.prototype.selectLines=function(Oe,ke){var lt;(lt=this._selectionService)===null||lt===void 0||lt.selectLines(Oe,ke)},De.prototype._keyDown=function(Oe){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Oe)===!1)return!1;if(!this._compositionHelper.keydown(Oe))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var ke=z.evaluateKeyboardEvent(Oe,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Oe),ke.type===3||ke.type===2){var lt=this.rows-1;return this.scrollLines(ke.type===2?-lt:lt),this.cancel(Oe,!0)}return ke.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Oe)||(ke.cancel&&this.cancel(Oe,!0),!ke.key||(ke.key!==me.C0.ETX&&ke.key!==me.C0.CR||(this.textarea.value=""),this._onKey.fire({key:ke.key,domEvent:Oe}),this._showCursor(),this._coreService.triggerDataEvent(ke.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Oe,!0)))},De.prototype._isThirdLevelShift=function(Oe,ke){var lt=Oe.isMac&&!this.options.macOptionIsMeta&&ke.altKey&&!ke.ctrlKey&&!ke.metaKey||Oe.isWindows&&ke.altKey&&ke.ctrlKey&&!ke.metaKey;return ke.type==="keypress"?lt:lt&&(!ke.keyCode||ke.keyCode>47)},De.prototype._keyUp=function(Oe){this._customKeyEventHandler&&this._customKeyEventHandler(Oe)===!1||(function(ke){return ke.keyCode===16||ke.keyCode===17||ke.keyCode===18}(Oe)||this.focus(),this.updateCursorStyle(Oe))},De.prototype._keyPress=function(Oe){var ke;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Oe)===!1)return!1;if(this.cancel(Oe),Oe.charCode)ke=Oe.charCode;else if(Oe.which===null||Oe.which===void 0)ke=Oe.keyCode;else{if(Oe.which===0||Oe.charCode===0)return!1;ke=Oe.which}return!(!ke||(Oe.altKey||Oe.ctrlKey||Oe.metaKey)&&!this._isThirdLevelShift(this.browser,Oe))&&(ke=String.fromCharCode(ke),this._onKey.fire({key:ke,domEvent:Oe}),this._showCursor(),this._coreService.triggerDataEvent(ke,!0),!0)},De.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},De.prototype.resize=function(Oe,ke){Oe!==this.cols||ke!==this.rows?et.prototype.resize.call(this,Oe,ke):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},De.prototype._afterResize=function(Oe,ke){var lt,Xe;(lt=this._charSizeService)===null||lt===void 0||lt.measure(),(Xe=this.viewport)===null||Xe===void 0||Xe.syncScrollArea(!0)},De.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 Oe=1;Oe<this.rows;Oe++)this.buffer.lines.push(this.buffer.getBlankLine(re.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},De.prototype.reset=function(){var Oe,ke;this.options.rows=this.rows,this.options.cols=this.cols;var lt=this._customKeyEventHandler;this._setup(),et.prototype.reset.call(this),(Oe=this._selectionService)===null||Oe===void 0||Oe.reset(),this._customKeyEventHandler=lt,this.refresh(0,this.rows-1),(ke=this.viewport)===null||ke===void 0||ke.syncScrollArea()},De.prototype._reportWindowsOptions=function(Oe){if(this._renderService)switch(Oe){case de.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var ke=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),lt=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(me.C0.ESC+"[4;"+lt+";"+ke+"t");break;case de.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Xe=this._renderService.dimensions.scaledCellWidth.toFixed(0),xt=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(me.C0.ESC+"[6;"+xt+";"+Xe+"t")}},De.prototype.cancel=function(Oe,ke){if(this.options.cancelEvents||ke)return Oe.preventDefault(),Oe.stopPropagation(),!1},De.prototype._visualBell=function(){return!1},De.prototype._soundBell=function(){return this.options.bellStyle==="sound"},De}(Ie.CoreTerminal);te.Terminal=at},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(me,de,ce,ue){var le,he=arguments.length,ie=he<3?de:ue===null?ue=Object.getOwnPropertyDescriptor(de,ce):ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ie=Reflect.decorate(me,de,ce,ue);else for(var ne=me.length-1;ne>=0;ne--)(le=me[ne])&&(ie=(he<3?le(ie):he>3?le(de,ce,ie):le(de,ce))||ie);return he>3&&ie&&Object.defineProperty(de,ce,ie),ie},Ee=this&&this.__param||function(me,de){return function(ce,ue){de(ce,ue,me)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CompositionHelper=void 0;var pe=E(5),ve=E(1),fe=function(){function me(de,ce,ue,le,he,ie){this._textarea=de,this._compositionView=ce,this._bufferService=ue,this._optionsService=le,this._charSizeService=he,this._coreService=ie,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(me.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),me.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},me.prototype.compositionupdate=function(de){var ce=this;this._compositionView.textContent=de.data,this.updateCompositionElements(),setTimeout(function(){ce._compositionPosition.end=ce._textarea.value.length},0)},me.prototype.compositionend=function(){this._finalizeComposition(!0)},me.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)},me.prototype._finalizeComposition=function(de){var ce=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(ce._isSendingComposition){ce._isSendingComposition=!1;var he=void 0;he=ce._isComposing?ce._textarea.value.substring(ue.start,ue.end):ce._textarea.value.substring(ue.start),ce._coreService.triggerDataEvent(he,!0)}},0)}else{this._isSendingComposition=!1;var le=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(le,!0)}},me.prototype._handleAnyTextareaChanges=function(){var de=this,ce=this._textarea.value;setTimeout(function(){if(!de._isComposing){var ue=de._textarea.value.replace(ce,"");ue.length>0&&de._coreService.triggerDataEvent(ue,!0)}},0)},me.prototype.updateCompositionElements=function(de){var ce=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var ue=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),le=this._bufferService.buffer.y*ue,he=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=he+"px",this._compositionView.style.top=le+"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 ie=this._compositionView.getBoundingClientRect();this._textarea.style.left=he+"px",this._textarea.style.top=le+"px",this._textarea.style.width=ie.width+"px",this._textarea.style.height=ie.height+"px",this._textarea.style.lineHeight=ie.height+"px"}de||setTimeout(function(){return ce.updateCompositionElements(!0)},0)}},me=_e([Ee(2,ve.IBufferService),Ee(3,ve.IOptionsService),Ee(4,pe.ICharSizeService),Ee(5,ve.ICoreService)],me)}();te.CompositionHelper=fe},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(le,he){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(le,he)},function(le,he){function ie(){this.constructor=le}_e(le,he),le.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)}),pe=this&&this.__decorate||function(le,he,ie,ne){var a,y=arguments.length,x=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(le,he,ie,ne);else for(var b=le.length-1;b>=0;b--)(a=le[b])&&(x=(y<3?a(x):y>3?a(he,ie,x):a(he,ie))||x);return y>3&&x&&Object.defineProperty(he,ie,x),x},ve=this&&this.__param||function(le,he){return function(ie,ne){he(ie,ne,le)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Viewport=void 0;var fe=E(2),me=E(7),de=E(5),ce=E(1),ue=function(le){function he(ie,ne,a,y,x,b,z){var ee=le.call(this)||this;return ee._scrollLines=ie,ee._viewportElement=ne,ee._scrollArea=a,ee._bufferService=y,ee._optionsService=x,ee._charSizeService=b,ee._renderService=z,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(me.addDisposableDomListener(ee._viewportElement,"scroll",ee._onScroll.bind(ee))),setTimeout(function(){return ee.syncScrollArea()},0),ee}return Ee(he,le),he.prototype.onThemeChange=function(ie){this._viewportElement.style.backgroundColor=ie.background.css},he.prototype._refresh=function(ie){var ne=this;if(ie)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ne._innerRefresh()}))},he.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var ie=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==ie&&(this._lastRecordedBufferHeight=ie,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==ne&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=ne),this._refreshAnimationFrame=null},he.prototype.syncScrollArea=function(ie){if(ie===void 0&&(ie=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(ie);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(ie)}else this._refresh(ie)},he.prototype._onScroll=function(ie){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var ne=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(ne,!0)}},he.prototype._bubbleScroll=function(ie,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a<this._lastRecordedBufferHeight)||(ie.cancelable&&ie.preventDefault(),!1)},he.prototype.onWheel=function(ie){var ne=this._getPixelsScrolled(ie);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(ie,ne))},he.prototype._getPixelsScrolled=function(ie){if(ie.deltaY===0)return 0;var ne=this._applyScrollModifier(ie.deltaY,ie);return ie.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:ie.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},he.prototype.getLinesScrolled=function(ie){if(ie.deltaY===0)return 0;var ne=this._applyScrollModifier(ie.deltaY,ie);return ie.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):ie.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},he.prototype._applyScrollModifier=function(ie,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?ie*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:ie*this._optionsService.options.scrollSensitivity},he.prototype.onTouchStart=function(ie){this._lastTouchY=ie.touches[0].pageY},he.prototype.onTouchMove=function(ie){var ne=this._lastTouchY-ie.touches[0].pageY;return this._lastTouchY=ie.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(ie,ne))},he=pe([ve(3,ce.IBufferService),ve(4,ce.IOptionsService),ve(5,de.ICharSizeService),ve(6,de.IRenderService)],he)}(fe.Disposable);te.Viewport=ue},function(Je,te,E){"use strict";function _e(fe){return fe.replace(/\r?\n/g,"\r")}function Ee(fe,me){return me?"\x1B[200~"+fe+"\x1B[201~":fe}function pe(fe,me,de){fe=Ee(fe=_e(fe),de.decPrivateModes.bracketedPasteMode),de.triggerDataEvent(fe,!0),me.value=""}function ve(fe,me,de){var ce=de.getBoundingClientRect(),ue=fe.clientX-ce.left-10,le=fe.clientY-ce.top-10;me.style.width="20px",me.style.height="20px",me.style.left=ue+"px",me.style.top=le+"px",me.style.zIndex="1000",me.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=_e,te.bracketTextForPaste=Ee,te.copyHandler=function(fe,me){fe.clipboardData&&fe.clipboardData.setData("text/plain",me.selectionText),fe.preventDefault()},te.handlePasteEvent=function(fe,me,de){fe.stopPropagation(),fe.clipboardData&&pe(fe.clipboardData.getData("text/plain"),me,de)},te.paste=pe,te.moveTextAreaUnderMouseCursor=ve,te.rightClickHandler=function(fe,me,de,ce,ue){ve(fe,me,de),ue&&!ce.isClickInSelection(fe)&&ce.selectWordAtCursor(fe),me.value=ce.selectionText,me.select()}},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(le,he){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(le,he)},function(le,he){function ie(){this.constructor=le}_e(le,he),le.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.EscapeSequenceParser=te.VT500_TRANSITION_TABLE=te.TransitionTable=void 0;var pe=E(2),ve=E(15),fe=E(21),me=E(22),de=E(24),ce=function(){function le(he){this.table=new Uint8Array(he)}return le.prototype.setDefault=function(he,ie){ve.fill(this.table,he<<4|ie)},le.prototype.add=function(he,ie,ne,a){this.table[ie<<8|he]=ne<<4|a},le.prototype.addMany=function(he,ie,ne,a){for(var y=0;y<he.length;y++)this.table[ie<<8|he[y]]=ne<<4|a},le}();te.TransitionTable=ce,te.VT500_TRANSITION_TABLE=function(){var le=new ce(4095),he=Array.apply(null,Array(256)).map(function(b,z){return z}),ie=function(b,z){return he.slice(b,z)},ne=ie(32,127),a=ie(0,24);a.push(25),a.push.apply(a,ie(28,32));var y,x=ie(0,14);for(y in le.setDefault(1,0),le.addMany(ne,0,2,0),x)le.addMany([24,26,153,154],y,3,0),le.addMany(ie(128,144),y,3,0),le.addMany(ie(144,152),y,3,0),le.add(156,y,0,0),le.add(27,y,11,1),le.add(157,y,4,8),le.addMany([152,158,159],y,0,7),le.add(155,y,11,3),le.add(144,y,11,9);return le.addMany(a,0,3,0),le.addMany(a,1,3,1),le.add(127,1,0,1),le.addMany(a,8,0,8),le.addMany(a,3,3,3),le.add(127,3,0,3),le.addMany(a,4,3,4),le.add(127,4,0,4),le.addMany(a,6,3,6),le.addMany(a,5,3,5),le.add(127,5,0,5),le.addMany(a,2,3,2),le.add(127,2,0,2),le.add(93,1,4,8),le.addMany(ne,8,5,8),le.add(127,8,5,8),le.addMany([156,27,24,26,7],8,6,0),le.addMany(ie(28,32),8,0,8),le.addMany([88,94,95],1,0,7),le.addMany(ne,7,0,7),le.addMany(a,7,0,7),le.add(156,7,0,0),le.add(127,7,0,7),le.add(91,1,11,3),le.addMany(ie(64,127),3,7,0),le.addMany(ie(48,60),3,8,4),le.addMany([60,61,62,63],3,9,4),le.addMany(ie(48,60),4,8,4),le.addMany(ie(64,127),4,7,0),le.addMany([60,61,62,63],4,0,6),le.addMany(ie(32,64),6,0,6),le.add(127,6,0,6),le.addMany(ie(64,127),6,0,0),le.addMany(ie(32,48),3,9,5),le.addMany(ie(32,48),5,9,5),le.addMany(ie(48,64),5,0,6),le.addMany(ie(64,127),5,7,0),le.addMany(ie(32,48),4,9,5),le.addMany(ie(32,48),1,9,2),le.addMany(ie(32,48),2,9,2),le.addMany(ie(48,127),2,10,0),le.addMany(ie(48,80),1,10,0),le.addMany(ie(81,88),1,10,0),le.addMany([89,90,92],1,10,0),le.addMany(ie(96,127),1,10,0),le.add(80,1,11,9),le.addMany(a,9,0,9),le.add(127,9,0,9),le.addMany(ie(28,32),9,0,9),le.addMany(ie(32,48),9,9,12),le.addMany(ie(48,60),9,8,10),le.addMany([60,61,62,63],9,9,10),le.addMany(a,11,0,11),le.addMany(ie(32,128),11,0,11),le.addMany(ie(28,32),11,0,11),le.addMany(a,10,0,10),le.add(127,10,0,10),le.addMany(ie(28,32),10,0,10),le.addMany(ie(48,60),10,8,10),le.addMany([60,61,62,63],10,0,11),le.addMany(ie(32,48),10,9,12),le.addMany(a,12,0,12),le.add(127,12,0,12),le.addMany(ie(28,32),12,0,12),le.addMany(ie(32,48),12,9,12),le.addMany(ie(48,64),12,0,11),le.addMany(ie(64,127),12,12,13),le.addMany(ie(64,127),10,12,13),le.addMany(ie(64,127),9,12,13),le.addMany(a,13,13,13),le.addMany(ne,13,13,13),le.add(127,13,0,13),le.addMany([27,156,24,26],13,14,0),le.add(160,0,2,0),le.add(160,8,5,8),le.add(160,6,0,6),le.add(160,11,0,11),le.add(160,13,13,13),le}();var ue=function(le){function he(ie){ie===void 0&&(ie=te.VT500_TRANSITION_TABLE);var ne=le.call(this)||this;return ne._transitions=ie,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new fe.Params,ne._params.addParam(0),ne._collect=0,ne.precedingCodepoint=0,ne._printHandlerFb=function(a,y,x){},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 me.OscParser,ne._dcsParser=new de.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return Ee(he,le),he.prototype._identifier=function(ie,ne){ne===void 0&&(ne=[64,126]);var a=0;if(ie.prefix){if(ie.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=ie.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(ie.intermediates){if(ie.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<ie.intermediates.length;++y){var x=ie.intermediates.charCodeAt(y);if(32>x||x>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=x}}if(ie.final.length!==1)throw new Error("final must be a single byte");var b=ie.final.charCodeAt(0);if(ne[0]>b||b>ne[1])throw new Error("final must be in range "+ne[0]+" .. "+ne[1]);return a<<=8,a|=b},he.prototype.identToString=function(ie){for(var ne=[];ie;)ne.push(String.fromCharCode(255&ie)),ie>>=8;return ne.reverse().join("")},he.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},he.prototype.setPrintHandler=function(ie){this._printHandler=ie},he.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},he.prototype.addEscHandler=function(ie,ne){var a=this._identifier(ie,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);var y=this._escHandlers[a];return y.push(ne),{dispose:function(){var x=y.indexOf(ne);x!==-1&&y.splice(x,1)}}},he.prototype.setEscHandler=function(ie,ne){this._escHandlers[this._identifier(ie,[48,126])]=[ne]},he.prototype.clearEscHandler=function(ie){this._escHandlers[this._identifier(ie,[48,126])]&&delete this._escHandlers[this._identifier(ie,[48,126])]},he.prototype.setEscHandlerFallback=function(ie){this._escHandlerFb=ie},he.prototype.setExecuteHandler=function(ie,ne){this._executeHandlers[ie.charCodeAt(0)]=ne},he.prototype.clearExecuteHandler=function(ie){this._executeHandlers[ie.charCodeAt(0)]&&delete this._executeHandlers[ie.charCodeAt(0)]},he.prototype.setExecuteHandlerFallback=function(ie){this._executeHandlerFb=ie},he.prototype.addCsiHandler=function(ie,ne){var a=this._identifier(ie);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);var y=this._csiHandlers[a];return y.push(ne),{dispose:function(){var x=y.indexOf(ne);x!==-1&&y.splice(x,1)}}},he.prototype.setCsiHandler=function(ie,ne){this._csiHandlers[this._identifier(ie)]=[ne]},he.prototype.clearCsiHandler=function(ie){this._csiHandlers[this._identifier(ie)]&&delete this._csiHandlers[this._identifier(ie)]},he.prototype.setCsiHandlerFallback=function(ie){this._csiHandlerFb=ie},he.prototype.addDcsHandler=function(ie,ne){return this._dcsParser.addHandler(this._identifier(ie),ne)},he.prototype.setDcsHandler=function(ie,ne){this._dcsParser.setHandler(this._identifier(ie),ne)},he.prototype.clearDcsHandler=function(ie){this._dcsParser.clearHandler(this._identifier(ie))},he.prototype.setDcsHandlerFallback=function(ie){this._dcsParser.setHandlerFallback(ie)},he.prototype.addOscHandler=function(ie,ne){return this._oscParser.addHandler(ie,ne)},he.prototype.setOscHandler=function(ie,ne){this._oscParser.setHandler(ie,ne)},he.prototype.clearOscHandler=function(ie){this._oscParser.clearHandler(ie)},he.prototype.setOscHandlerFallback=function(ie){this._oscParser.setHandlerFallback(ie)},he.prototype.setErrorHandler=function(ie){this._errorHandler=ie},he.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},he.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},he.prototype.parse=function(ie,ne){for(var a=0,y=0,x=this.currentState,b=this._oscParser,z=this._dcsParser,ee=this._collect,re=this._params,se=this._transitions.table,ge=0;ge<ne;++ge){switch((y=se[x<<8|((a=ie[ge])<160?a:160)])>>4){case 2:for(var Se=ge+1;;++Se){if(Se>=ne||(a=ie[Se])<32||a>126&&a<160){this._printHandler(ie,ge,Se),ge=Se-1;break}if(++Se>=ne||(a=ie[Se])<32||a>126&&a<160){this._printHandler(ie,ge,Se),ge=Se-1;break}if(++Se>=ne||(a=ie[Se])<32||a>126&&a<160){this._printHandler(ie,ge,Se),ge=Se-1;break}if(++Se>=ne||(a=ie[Se])<32||a>126&&a<160){this._printHandler(ie,ge,Se),ge=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:ge,code:a,currentState:x,collect:ee,params:re,abort:!1}).abort)return;break;case 7:for(var Pe=this._csiHandlers[ee<<8|a],Re=Pe?Pe.length-1:-1;Re>=0&&Pe[Re](re)===!1;Re--);Re<0&&this._csiHandlerFb(ee<<8|a,re),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:re.addParam(0);break;case 58:re.addSubParam(-1);break;default:re.addDigit(a-48)}while(++ge<ne&&(a=ie[ge])>47&&a<60);ge--;break;case 9:ee<<=8,ee|=a;break;case 10:for(var Le=this._escHandlers[ee<<8|a],Fe=Le?Le.length-1:-1;Fe>=0&&Le[Fe]()===!1;Fe--);Fe<0&&this._escHandlerFb(ee<<8|a),this.precedingCodepoint=0;break;case 11:re.reset(),re.addParam(0),ee=0;break;case 12:z.hook(ee<<8|a,re);break;case 13:for(var Ie=ge+1;;++Ie)if(Ie>=ne||(a=ie[Ie])===24||a===26||a===27||a>127&&a<160){z.put(ie,ge,Ie),ge=Ie-1;break}break;case 14:z.unhook(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),ee=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var vt=ge+1;;vt++)if(vt>=ne||(a=ie[vt])<32||a>127&&a<=159){b.put(ie,ge,vt),ge=vt-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),ee=0,this.precedingCodepoint=0}x=15&y}this._collect=ee,this.currentState=x},he}(pe.Disposable);te.EscapeSequenceParser=ue},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(b,z){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,re){ee.__proto__=re}||function(ee,re){for(var se in re)re.hasOwnProperty(se)&&(ee[se]=re[se])})(b,z)},function(b,z){function ee(){this.constructor=b}_e(b,z),b.prototype=z===null?Object.create(z):(ee.prototype=z.prototype,new ee)}),pe=this&&this.__decorate||function(b,z,ee,re){var se,ge=arguments.length,Se=ge<3?z:re===null?re=Object.getOwnPropertyDescriptor(z,ee):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Se=Reflect.decorate(b,z,ee,re);else for(var Pe=b.length-1;Pe>=0;Pe--)(se=b[Pe])&&(Se=(ge<3?se(Se):ge>3?se(z,ee,Se):se(z,ee))||Se);return ge>3&&Se&&Object.defineProperty(z,ee,Se),Se},ve=this&&this.__param||function(b,z){return function(ee,re){z(ee,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Renderer=void 0;var fe=E(41),me=E(47),de=E(48),ce=E(49),ue=E(29),le=E(2),he=E(5),ie=E(1),ne=E(25),a=E(0),y=1,x=function(b){function z(ee,re,se,ge,Se,Pe,Re,Le,Fe){var Ie=b.call(this)||this;Ie._colors=ee,Ie._screenElement=re,Ie._bufferService=Se,Ie._charSizeService=Pe,Ie._optionsService=Re,Ie._id=y++,Ie._onRequestRedraw=new a.EventEmitter;var vt=Ie._optionsService.options.allowTransparency;return Ie._characterJoinerRegistry=new ue.CharacterJoinerRegistry(Ie._bufferService),Ie._renderLayers=[new fe.TextRenderLayer(Ie._screenElement,0,Ie._colors,Ie._characterJoinerRegistry,vt,Ie._id,Ie._bufferService,Re),new me.SelectionRenderLayer(Ie._screenElement,1,Ie._colors,Ie._id,Ie._bufferService,Re),new ce.LinkRenderLayer(Ie._screenElement,2,Ie._colors,Ie._id,se,ge,Ie._bufferService,Re),new de.CursorRenderLayer(Ie._screenElement,3,Ie._colors,Ie._id,Ie._onRequestRedraw,Ie._bufferService,Re,Le,Fe)],Ie.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},Ie._devicePixelRatio=window.devicePixelRatio,Ie._updateDimensions(),Ie.onOptionsChanged(),Ie}return Ee(z,b),Object.defineProperty(z.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),z.prototype.dispose=function(){for(var ee=0,re=this._renderLayers;ee<re.length;ee++)re[ee].dispose();b.prototype.dispose.call(this),ne.removeTerminalFromCache(this._id)},z.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},z.prototype.setColors=function(ee){this._colors=ee;for(var re=0,se=this._renderLayers;re<se.length;re++){var ge=se[re];ge.setColors(this._colors),ge.reset()}},z.prototype.onResize=function(ee,re){this._updateDimensions();for(var se=0,ge=this._renderLayers;se<ge.length;se++)ge[se].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},z.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},z.prototype.onBlur=function(){this._runOperation(function(ee){return ee.onBlur()})},z.prototype.onFocus=function(){this._runOperation(function(ee){return ee.onFocus()})},z.prototype.onSelectionChanged=function(ee,re,se){se===void 0&&(se=!1),this._runOperation(function(ge){return ge.onSelectionChanged(ee,re,se)})},z.prototype.onCursorMove=function(){this._runOperation(function(ee){return ee.onCursorMove()})},z.prototype.onOptionsChanged=function(){this._runOperation(function(ee){return ee.onOptionsChanged()})},z.prototype.clear=function(){this._runOperation(function(ee){return ee.reset()})},z.prototype._runOperation=function(ee){for(var re=0,se=this._renderLayers;re<se.length;re++)ee(se[re])},z.prototype.renderRows=function(ee,re){for(var se=0,ge=this._renderLayers;se<ge.length;se++)ge[se].onGridChanged(ee,re)},z.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)},z.prototype.registerCharacterJoiner=function(ee){return this._characterJoinerRegistry.registerCharacterJoiner(ee)},z.prototype.deregisterCharacterJoiner=function(ee){return this._characterJoinerRegistry.deregisterCharacterJoiner(ee)},z=pe([ve(4,ie.IBufferService),ve(5,he.ICharSizeService),ve(6,ie.IOptionsService),ve(7,ie.ICoreService),ve(8,he.ICoreBrowserService)],z)}(le.Disposable);te.Renderer=x},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(le,he){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(le,he)},function(le,he){function ie(){this.constructor=le}_e(le,he),le.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.TextRenderLayer=void 0;var pe=E(42),ve=E(13),fe=E(6),me=E(3),de=E(29),ce=E(4),ue=function(le){function he(ie,ne,a,y,x,b,z,ee){var re=le.call(this,ie,"text",ne,x,a,b,z,ee)||this;return re._characterWidth=0,re._characterFont="",re._characterOverlapCache={},re._workCell=new ce.CellData,re._state=new pe.GridCache,re._characterJoinerRegistry=y,re}return Ee(he,le),he.prototype.resize=function(ie){le.prototype.resize.call(this,ie);var ne=this._getFont(!1,!1);this._characterWidth===ie.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=ie.scaledCharWidth,this._characterFont=ne,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},he.prototype.reset=function(){this._state.clear(),this._clearAll()},he.prototype._forEachCell=function(ie,ne,a,y){for(var x=ie;x<=ne;x++)for(var b=x+this._bufferService.buffer.ydisp,z=this._bufferService.buffer.lines.get(b),ee=a?a.getJoinedCharacters(b):[],re=0;re<this._bufferService.cols;re++){z.loadCell(re,this._workCell);var se=this._workCell,ge=!1,Se=re;if(se.getWidth()!==0){if(ee.length>0&&re===ee[0][0]){ge=!0;var Pe=ee.shift();se=new de.JoinedCellData(this._workCell,z.translateToString(!0,Pe[0],Pe[1]),Pe[1]-Pe[0]),Se=Pe[1]-1}!ge&&this._isOverlapping(se)&&Se<z.length-1&&z.getCodePoint(Se+1)===me.NULL_CELL_CODE&&(se.content&=-12582913,se.content|=2<<22),y(se,re,x),re=Se}}},he.prototype._drawBackground=function(ie,ne){var a=this,y=this._ctx,x=this._bufferService.cols,b=0,z=0,ee=null;y.save(),this._forEachCell(ie,ne,null,function(re,se,ge){var Se=null;re.isInverse()?Se=re.isFgDefault()?a._colors.foreground.css:re.isFgRGB()?"rgb("+fe.AttributeData.toColorRGB(re.getFgColor()).join(",")+")":a._colors.ansi[re.getFgColor()].css:re.isBgRGB()?Se="rgb("+fe.AttributeData.toColorRGB(re.getBgColor()).join(",")+")":re.isBgPalette()&&(Se=a._colors.ansi[re.getBgColor()].css),ee===null&&(b=se,z=ge),ge!==z?(y.fillStyle=ee||"",a._fillCells(b,z,x-b,1),b=se,z=ge):ee!==Se&&(y.fillStyle=ee||"",a._fillCells(b,z,se-b,1),b=se,z=ge),ee=Se}),ee!==null&&(y.fillStyle=ee,this._fillCells(b,z,x-b,1)),y.restore()},he.prototype._drawForeground=function(ie,ne){var a=this;this._forEachCell(ie,ne,this._characterJoinerRegistry,function(y,x,b){if(!y.isInvisible()&&(a._drawChars(y,x,b),y.isUnderline())){if(a._ctx.save(),y.isInverse())if(y.isBgDefault())a._ctx.fillStyle=a._colors.background.css;else if(y.isBgRGB())a._ctx.fillStyle="rgb("+fe.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var z=y.getBgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&z<8&&(z+=8),a._ctx.fillStyle=a._colors.ansi[z].css}else if(y.isFgDefault())a._ctx.fillStyle=a._colors.foreground.css;else if(y.isFgRGB())a._ctx.fillStyle="rgb("+fe.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var ee=y.getFgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&ee<8&&(ee+=8),a._ctx.fillStyle=a._colors.ansi[ee].css}a._fillBottomLineAtCells(x,b,y.getWidth()),a._ctx.restore()}})},he.prototype.onGridChanged=function(ie,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,ie,this._bufferService.cols,ne-ie+1),this._drawBackground(ie,ne),this._drawForeground(ie,ne))},he.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},he.prototype._isOverlapping=function(ie){if(ie.getWidth()!==1||ie.getCode()<256)return!1;var ne=ie.getChars();if(this._characterOverlapCache.hasOwnProperty(ne))return this._characterOverlapCache[ne];this._ctx.save(),this._ctx.font=this._characterFont;var a=Math.floor(this._ctx.measureText(ne).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=a,a},he}(ve.BaseRenderLayer);te.TextRenderLayer=ue},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.GridCache=void 0;var _e=function(){function Ee(){this.cache=[]}return Ee.prototype.resize=function(pe,ve){for(var fe=0;fe<pe;fe++){this.cache.length<=fe&&this.cache.push([]);for(var me=this.cache[fe].length;me<ve;me++)this.cache[fe].push(void 0);this.cache[fe].length=ve}this.cache.length=pe},Ee.prototype.clear=function(){for(var pe=0;pe<this.cache.length;pe++)for(var ve=0;ve<this.cache[pe].length;ve++)this.cache[pe][ve]=void 0},Ee}();te.GridCache=_e},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(a,y){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var z in b)b.hasOwnProperty(z)&&(x[z]=b[z])})(a,y)},function(a,y){function x(){this.constructor=a}_e(a,y),a.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)});Object.defineProperty(te,"__esModule",{value:!0}),te.NoneCharAtlas=te.DynamicCharAtlas=te.getGlyphCacheKey=void 0;var pe=E(9),ve=E(44),fe=E(27),me=E(46),de=E(11),ce=E(28),ue=E(10),le={css:"rgba(0, 0, 0, 0)",rgba:0};function he(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}te.getGlyphCacheKey=he;var ie=function(a){function y(x,b){var z=a.call(this)||this;z._config=b,z._drawToCacheCount=0,z._glyphsWaitingOnBitmap=[],z._bitmapCommitTimeout=null,z._bitmap=null,z._cacheCanvas=x.createElement("canvas"),z._cacheCanvas.width=1024,z._cacheCanvas.height=1024,z._cacheCtx=ce.throwIfFalsy(z._cacheCanvas.getContext("2d",{alpha:!0}));var ee=x.createElement("canvas");ee.width=z._config.scaledCharWidth,ee.height=z._config.scaledCharHeight,z._tmpCtx=ce.throwIfFalsy(ee.getContext("2d",{alpha:z._config.allowTransparency})),z._width=Math.floor(1024/z._config.scaledCharWidth),z._height=Math.floor(1024/z._config.scaledCharHeight);var re=z._width*z._height;return z._cacheMap=new me.LRUMap(re),z._cacheMap.prealloc(re),z}return Ee(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(x,b,z,ee){if(b.code===32)return!0;if(!this._canCache(b))return!1;var re=he(b),se=this._cacheMap.get(re);if(se!=null)return this._drawFromCache(x,se,z,ee),!0;if(this._drawToCacheCount<100){var ge=void 0;ge=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var Se=this._drawToCache(b,ge);return this._cacheMap.set(re,Se),this._drawFromCache(x,Se,z,ee),!0}return!1},y.prototype._canCache=function(x){return x.code<256},y.prototype._toCoordinateX=function(x){return x%this._width*this._config.scaledCharWidth},y.prototype._toCoordinateY=function(x){return Math.floor(x/this._width)*this._config.scaledCharHeight},y.prototype._drawFromCache=function(x,b,z,ee){if(!b.isEmpty){var re=this._toCoordinateX(b.index),se=this._toCoordinateY(b.index);x.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,re,se,this._config.scaledCharWidth,this._config.scaledCharHeight,z,ee,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(x){return x<this._config.colors.ansi.length?this._config.colors.ansi[x]:fe.DEFAULT_ANSI_COLORS[x]},y.prototype._getBackgroundColor=function(x){return this._config.allowTransparency?le:x.bg===pe.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:x.bg<256?this._getColorFromAnsiIndex(x.bg):this._config.colors.background},y.prototype._getForegroundColor=function(x){return x.fg===pe.INVERTED_DEFAULT_COLOR?ue.color.opaque(this._config.colors.background):x.fg<256?this._getColorFromAnsiIndex(x.fg):this._config.colors.foreground},y.prototype._drawToCache=function(x,b){this._drawToCacheCount++,this._tmpCtx.save();var z=this._getBackgroundColor(x);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=z.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var ee=x.bold?this._config.fontWeightBold:this._config.fontWeight,re=x.italic?"italic":"";this._tmpCtx.font=re+" "+ee+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(x).css,x.dim&&(this._tmpCtx.globalAlpha=pe.DIM_OPACITY),this._tmpCtx.fillText(x.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var se=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ge=!1;this._config.allowTransparency||(ge=function(Le,Fe){for(var Ie=!0,vt=Fe.rgba>>>24,at=Fe.rgba>>>16&255,et=Fe.rgba>>>8&255,De=0;De<Le.data.length;De+=4)Le.data[De]===vt&&Le.data[De+1]===at&&Le.data[De+2]===et?Le.data[De+3]=0:Ie=!1;return Ie}(se,z));var Se=this._toCoordinateX(b),Pe=this._toCoordinateY(b);this._cacheCtx.putImageData(se,Se,Pe);var Re={index:b,isEmpty:ge,inBitmap:!1};return this._addGlyphToBitmap(Re),Re},y.prototype._addGlyphToBitmap=function(x){var b=this;!("createImageBitmap"in window)||de.isFirefox||de.isSafari||(this._glyphsWaitingOnBitmap.push(x),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},y.prototype._generateBitmap=function(){var x=this,b=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(z){x._bitmap=z;for(var ee=0;ee<b.length;ee++)b[ee].inBitmap=!0}),this._bitmapCommitTimeout=null},y}(ve.BaseCharAtlas);te.DynamicCharAtlas=ie;var ne=function(a){function y(x,b){return a.call(this)||this}return Ee(y,a),y.prototype.draw=function(x,b,z,ee){return!1},y}(ve.BaseCharAtlas);te.NoneCharAtlas=ne},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseCharAtlas=void 0;var _e=function(){function Ee(){this._didWarmUp=!1}return Ee.prototype.dispose=function(){},Ee.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},Ee.prototype._doWarmUp=function(){},Ee.prototype.beginFrame=function(){},Ee}();te.BaseCharAtlas=_e},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorContrastCache=void 0;var _e=function(){function Ee(){this._color={},this._rgba={}}return Ee.prototype.clear=function(){this._color={},this._rgba={}},Ee.prototype.setCss=function(pe,ve,fe){this._rgba[pe]||(this._rgba[pe]={}),this._rgba[pe][ve]=fe},Ee.prototype.getCss=function(pe,ve){return this._rgba[pe]?this._rgba[pe][ve]:void 0},Ee.prototype.setColor=function(pe,ve,fe){this._color[pe]||(this._color[pe]={}),this._color[pe][ve]=fe},Ee.prototype.getColor=function(pe,ve){return this._color[pe]?this._color[pe][ve]:void 0},Ee}();te.ColorContrastCache=_e},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.LRUMap=void 0;var _e=function(){function Ee(pe){this.capacity=pe,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return Ee.prototype._unlinkNode=function(pe){var ve=pe.prev,fe=pe.next;pe===this._head&&(this._head=fe),pe===this._tail&&(this._tail=ve),ve!==null&&(ve.next=fe),fe!==null&&(fe.prev=ve)},Ee.prototype._appendNode=function(pe){var ve=this._tail;ve!==null&&(ve.next=pe),pe.prev=ve,pe.next=null,this._tail=pe,this._head===null&&(this._head=pe)},Ee.prototype.prealloc=function(pe){for(var ve=this._nodePool,fe=0;fe<pe;fe++)ve.push({prev:null,next:null,key:null,value:null})},Ee.prototype.get=function(pe){var ve=this._map[pe];return ve!==void 0?(this._unlinkNode(ve),this._appendNode(ve),ve.value):null},Ee.prototype.peekValue=function(pe){var ve=this._map[pe];return ve!==void 0?ve.value:null},Ee.prototype.peek=function(){var pe=this._head;return pe===null?null:pe.value},Ee.prototype.set=function(pe,ve){var fe=this._map[pe];if(fe!==void 0)fe=this._map[pe],this._unlinkNode(fe),fe.value=ve;else if(this.size>=this.capacity)fe=this._head,this._unlinkNode(fe),delete this._map[fe.key],fe.key=pe,fe.value=ve,this._map[pe]=fe;else{var me=this._nodePool;me.length>0?((fe=me.pop()).key=pe,fe.value=ve):fe={prev:null,next:null,key:pe,value:ve},this._map[pe]=fe,this.size++}this._appendNode(fe)},Ee}();te.LRUMap=_e},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(ve,fe){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,de){me.__proto__=de}||function(me,de){for(var ce in de)de.hasOwnProperty(ce)&&(me[ce]=de[ce])})(ve,fe)},function(ve,fe){function me(){this.constructor=ve}_e(ve,fe),ve.prototype=fe===null?Object.create(fe):(me.prototype=fe.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionRenderLayer=void 0;var pe=function(ve){function fe(me,de,ce,ue,le,he){var ie=ve.call(this,me,"selection",de,!0,ce,ue,le,he)||this;return ie._clearState(),ie}return Ee(fe,ve),fe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},fe.prototype.resize=function(me){ve.prototype.resize.call(this,me),this._clearState()},fe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},fe.prototype.onSelectionChanged=function(me,de,ce){if(this._didStateChange(me,de,ce,this._bufferService.buffer.ydisp))if(this._clearAll(),me&&de){var ue=me[1]-this._bufferService.buffer.ydisp,le=de[1]-this._bufferService.buffer.ydisp,he=Math.max(ue,0),ie=Math.min(le,this._bufferService.rows-1);if(!(he>=this._bufferService.rows||ie<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,ce){var ne=me[0],a=de[0]-ne,y=ie-he+1;this._fillCells(ne,he,a,y)}else{ne=ue===he?me[0]:0;var x=he===ie?de[0]:this._bufferService.cols;this._fillCells(ne,he,x-ne,1);var b=Math.max(ie-he-1,0);if(this._fillCells(0,he+1,this._bufferService.cols,b),he!==ie){var z=le===ie?de[0]:this._bufferService.cols;this._fillCells(0,ie,z,1)}}this._state.start=[me[0],me[1]],this._state.end=[de[0],de[1]],this._state.columnSelectMode=ce,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},fe.prototype._didStateChange=function(me,de,ce,ue){return!this._areCoordinatesEqual(me,this._state.start)||!this._areCoordinatesEqual(de,this._state.end)||ce!==this._state.columnSelectMode||ue!==this._state.ydisp},fe.prototype._areCoordinatesEqual=function(me,de){return!(!me||!de)&&me[0]===de[0]&&me[1]===de[1]},fe}(E(13).BaseRenderLayer);te.SelectionRenderLayer=pe},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(de,ce){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,le){ue.__proto__=le}||function(ue,le){for(var he in le)le.hasOwnProperty(he)&&(ue[he]=le[he])})(de,ce)},function(de,ce){function ue(){this.constructor=de}_e(de,ce),de.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(te,"__esModule",{value:!0}),te.CursorRenderLayer=void 0;var pe=E(13),ve=E(4),fe=function(de){function ce(ue,le,he,ie,ne,a,y,x,b){var z=de.call(this,ue,"cursor",le,!0,he,ie,a,y)||this;return z._onRequestRedraw=ne,z._coreService=x,z._coreBrowserService=b,z._cell=new ve.CellData,z._state={x:0,y:0,isFocused:!1,style:"",width:0},z._cursorRenderers={bar:z._renderBarCursor.bind(z),block:z._renderBlockCursor.bind(z),underline:z._renderUnderlineCursor.bind(z)},z}return Ee(ce,de),ce.prototype.resize=function(ue){de.prototype.resize.call(this,ue),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},ce.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},ce.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ce.prototype.onOptionsChanged=function(){var ue,le=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new me(this._coreBrowserService.isFocused,function(){le._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})},ce.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype.onGridChanged=function(ue,le){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},ce.prototype._render=function(ue){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var le=this._bufferService.buffer.ybase+this._bufferService.buffer.y,he=le-this._bufferService.buffer.ydisp;if(he<0||he>=this._bufferService.rows)this._clearCursor();else{var ie=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(le).loadCell(ie,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](ie,he,this._cell):this._renderBlurCursor(ie,he,this._cell),this._ctx.restore(),this._state.x=ie,this._state.y=he,this._state.isFocused=!1,this._state.style=ne,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===ie&&this._state.y===he&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](ie,he,this._cell),this._ctx.restore(),this._state.x=ie,this._state.y=he,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},ce.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},ce.prototype._renderBarCursor=function(ue,le,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(ue,le,this._optionsService.options.cursorWidth),this._ctx.restore()},ce.prototype._renderBlockCursor=function(ue,le,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(ue,le,he.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(he,ue,le),this._ctx.restore()},ce.prototype._renderUnderlineCursor=function(ue,le,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(ue,le),this._ctx.restore()},ce.prototype._renderBlurCursor=function(ue,le,he){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(ue,le,he.getWidth(),1),this._ctx.restore()},ce}(pe.BaseRenderLayer);te.CursorRenderLayer=fe;var me=function(){function de(ce,ue){this._renderCallback=ue,this.isCursorVisible=!0,ce&&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 ce=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){ce._renderCallback(),ce._animationFrame=void 0})))},de.prototype._restartInterval=function(ce){var ue=this;ce===void 0&&(ce=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(ue._animationTimeRestarted){var le=600-(Date.now()-ue._animationTimeRestarted);if(ue._animationTimeRestarted=void 0,le>0)return void ue._restartInterval(le)}ue.isCursorVisible=!1,ue._animationFrame=window.requestAnimationFrame(function(){ue._renderCallback(),ue._animationFrame=void 0}),ue._blinkInterval=window.setInterval(function(){if(ue._animationTimeRestarted){var he=600-(Date.now()-ue._animationTimeRestarted);return ue._animationTimeRestarted=void 0,void ue._restartInterval(he)}ue.isCursorVisible=!ue.isCursorVisible,ue._animationFrame=window.requestAnimationFrame(function(){ue._renderCallback(),ue._animationFrame=void 0})},600)},ce)},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(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(de,ce){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,le){ue.__proto__=le}||function(ue,le){for(var he in le)le.hasOwnProperty(he)&&(ue[he]=le[he])})(de,ce)},function(de,ce){function ue(){this.constructor=de}_e(de,ce),de.prototype=ce===null?Object.create(ce):(ue.prototype=ce.prototype,new ue)});Object.defineProperty(te,"__esModule",{value:!0}),te.LinkRenderLayer=void 0;var pe=E(13),ve=E(9),fe=E(26),me=function(de){function ce(ue,le,he,ie,ne,a,y,x){var b=de.call(this,ue,"link",le,!0,he,ie,y,x)||this;return ne.onShowLinkUnderline(function(z){return b._onShowLinkUnderline(z)}),ne.onHideLinkUnderline(function(z){return b._onHideLinkUnderline(z)}),a.onShowLinkUnderline(function(z){return b._onShowLinkUnderline(z)}),a.onHideLinkUnderline(function(z){return b._onHideLinkUnderline(z)}),b}return Ee(ce,de),ce.prototype.resize=function(ue){de.prototype.resize.call(this,ue),this._state=void 0},ce.prototype.reset=function(){this._clearCurrentLink()},ce.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var 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}},ce.prototype._onShowLinkUnderline=function(ue){if(ue.fg===ve.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:ue.fg&&fe.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 le=ue.y1+1;le<ue.y2;le++)this._fillBottomLineAtCells(0,le,ue.cols);this._fillBottomLineAtCells(0,ue.y2,ue.x2)}this._state=ue},ce.prototype._onHideLinkUnderline=function(ue){this._clearCurrentLink()},ce}(pe.BaseRenderLayer);te.LinkRenderLayer=me},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(de,ce,ue,le){var he,ie=arguments.length,ne=ie<3?ce:le===null?le=Object.getOwnPropertyDescriptor(ce,ue):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,ce,ue,le);else for(var a=de.length-1;a>=0;a--)(he=de[a])&&(ne=(ie<3?he(ne):ie>3?he(ce,ue,ne):he(ce,ue))||ne);return ie>3&&ne&&Object.defineProperty(ce,ue,ne),ne},Ee=this&&this.__param||function(de,ce){return function(ue,le){ce(ue,le,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZone=te.Linkifier=void 0;var pe=E(0),ve=E(1),fe=function(){function de(ce,ue,le){this._bufferService=ce,this._logService=ue,this._unicodeService=le,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new pe.EventEmitter,this._onHideLinkUnderline=new pe.EventEmitter,this._onLinkTooltip=new pe.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(ce,ue){this._element=ce,this._mouseZoneManager=ue},de.prototype.linkifyRows=function(ce,ue){var le=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=ce,this._rowsToLinkify.end=ue):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,ce),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,ue)),this._mouseZoneManager.clearAll(ce,ue),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return le._linkifyRows()},de._timeBeforeLatency))},de.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var ce=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var ue=ce.ydisp+this._rowsToLinkify.start;if(!(ue>=ce.lines.length)){for(var le=ce.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,he=Math.ceil(2e3/this._bufferService.cols),ie=this._bufferService.buffer.iterator(!1,ue,le,he,he);ie.hasNext();)for(var ne=ie.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(ce,ue,le){if(le===void 0&&(le={}),!ue)throw new Error("handler must be defined");var he={id:this._nextLinkMatcherId++,regex:ce,handler:ue,matchIndex:le.matchIndex,validationCallback:le.validationCallback,hoverTooltipCallback:le.tooltipCallback,hoverLeaveCallback:le.leaveCallback,willLinkActivate:le.willLinkActivate,priority:le.priority||0};return this._addLinkMatcherToList(he),he.id},de.prototype._addLinkMatcherToList=function(ce){if(this._linkMatchers.length!==0){for(var ue=this._linkMatchers.length-1;ue>=0;ue--)if(ce.priority<=this._linkMatchers[ue].priority)return void this._linkMatchers.splice(ue+1,0,ce);this._linkMatchers.splice(0,0,ce)}else this._linkMatchers.push(ce)},de.prototype.deregisterLinkMatcher=function(ce){for(var ue=0;ue<this._linkMatchers.length;ue++)if(this._linkMatchers[ue].id===ce)return this._linkMatchers.splice(ue,1),!0;return!1},de.prototype._doLinkifyRow=function(ce,ue,le){for(var he,ie=this,ne=new RegExp(le.regex.source,(le.regex.flags||"")+"g"),a=-1,y=function(){var b=he[typeof le.matchIndex!="number"?0:le.matchIndex];if(!b)return x._logService.debug("match found without corresponding matchIndex",he,le),"break";if(a=ue.indexOf(b,a+1),ne.lastIndex=a+b.length,a<0)return"break";var z=x._bufferService.buffer.stringIndexToBufferIndex(ce,a);if(z[0]<0)return"break";var ee=x._bufferService.buffer.lines.get(z[0]);if(!ee)return"break";var re=ee.getFg(z[1]),se=re?re>>9&511:void 0;le.validationCallback?le.validationCallback(b,function(ge){ie._rowsTimeoutId||ge&&ie._addLink(z[1],z[0]-ie._bufferService.buffer.ydisp,b,le,se)}):x._addLink(z[1],z[0]-x._bufferService.buffer.ydisp,b,le,se)},x=this;(he=ne.exec(ue))!==null&&y()!=="break";);},de.prototype._addLink=function(ce,ue,le,he,ie){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(le),y=ce%this._bufferService.cols,x=ue+Math.floor(ce/this._bufferService.cols),b=(y+a)%this._bufferService.cols,z=x+Math.floor((y+a)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,z--),this._mouseZoneManager.add(new me(y+1,x+1,b+1,z+1,function(ee){if(he.handler)return he.handler(ee,le);var re=window.open();re?(re.opener=null,re.location.href=le):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(y,x,b,z,ie)),ne._element.classList.add("xterm-cursor-pointer")},function(ee){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,x,b,z,ie)),he.hoverTooltipCallback&&he.hoverTooltipCallback(ee,le,{start:{x:y,y:x},end:{x:b,y:z}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(y,x,b,z,ie)),ne._element.classList.remove("xterm-cursor-pointer"),he.hoverLeaveCallback&&he.hoverLeaveCallback()},function(ee){return!he.willLinkActivate||he.willLinkActivate(ee,le)}))}},de.prototype._createLinkHoverEvent=function(ce,ue,le,he,ie){return{x1:ce,y1:ue,x2:le,y2:he,cols:this._bufferService.cols,fg:ie}},de._timeBeforeLatency=200,de=_e([Ee(0,ve.IBufferService),Ee(1,ve.ILogService),Ee(2,ve.IUnicodeService)],de)}();te.Linkifier=fe;var me=function(de,ce,ue,le,he,ie,ne,a,y){this.x1=de,this.y1=ce,this.x2=ue,this.y2=le,this.clickCallback=he,this.hoverCallback=ie,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};te.MouseZone=me},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(b,z){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,re){ee.__proto__=re}||function(ee,re){for(var se in re)re.hasOwnProperty(se)&&(ee[se]=re[se])})(b,z)},function(b,z){function ee(){this.constructor=b}_e(b,z),b.prototype=z===null?Object.create(z):(ee.prototype=z.prototype,new ee)}),pe=this&&this.__decorate||function(b,z,ee,re){var se,ge=arguments.length,Se=ge<3?z:re===null?re=Object.getOwnPropertyDescriptor(z,ee):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Se=Reflect.decorate(b,z,ee,re);else for(var Pe=b.length-1;Pe>=0;Pe--)(se=b[Pe])&&(Se=(ge<3?se(Se):ge>3?se(z,ee,Se):se(z,ee))||Se);return ge>3&&Se&&Object.defineProperty(z,ee,Se),Se},ve=this&&this.__param||function(b,z){return function(ee,re){z(ee,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionService=void 0;var fe=E(11),me=E(52),de=E(4),ce=E(0),ue=E(5),le=E(1),he=E(30),ie=E(53),ne=E(2),a="\xA0",y=new RegExp(a,"g"),x=function(b){function z(ee,re,se,ge,Se,Pe,Re){var Le=b.call(this)||this;return Le._element=ee,Le._screenElement=re,Le._bufferService=se,Le._coreService=ge,Le._mouseService=Se,Le._optionsService=Pe,Le._renderService=Re,Le._dragScrollAmount=0,Le._enabled=!0,Le._workCell=new de.CellData,Le._mouseDownTimeStamp=0,Le._onLinuxMouseSelection=Le.register(new ce.EventEmitter),Le._onRedrawRequest=Le.register(new ce.EventEmitter),Le._onSelectionChange=Le.register(new ce.EventEmitter),Le._onRequestScrollLines=Le.register(new ce.EventEmitter),Le._mouseMoveListener=function(Fe){return Le._onMouseMove(Fe)},Le._mouseUpListener=function(Fe){return Le._onMouseUp(Fe)},Le._coreService.onUserInput(function(){Le.hasSelection&&Le.clearSelection()}),Le._trimListener=Le._bufferService.buffer.lines.onTrim(function(Fe){return Le._onTrim(Fe)}),Le.register(Le._bufferService.buffers.onBufferActivate(function(Fe){return Le._onBufferActivate(Fe)})),Le.enable(),Le._model=new me.SelectionModel(Le._bufferService),Le._activeSelectionMode=0,Le}return Ee(z,b),Object.defineProperty(z.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),z.prototype.dispose=function(){this._removeMouseDownListeners()},z.prototype.reset=function(){this.clearSelection()},z.prototype.disable=function(){this.clearSelection(),this._enabled=!1},z.prototype.enable=function(){this._enabled=!0},Object.defineProperty(z.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"hasSelection",{get:function(){var ee=this._model.finalSelectionStart,re=this._model.finalSelectionEnd;return!(!ee||!re)&&(ee[0]!==re[0]||ee[1]!==re[1])},enumerable:!1,configurable:!0}),Object.defineProperty(z.prototype,"selectionText",{get:function(){var ee=this._model.finalSelectionStart,re=this._model.finalSelectionEnd;if(!ee||!re)return"";var se=this._bufferService.buffer,ge=[];if(this._activeSelectionMode===3){if(ee[0]===re[0])return"";for(var Se=ee[1];Se<=re[1];Se++){var Pe=se.translateBufferLineToString(Se,!0,ee[0],re[0]);ge.push(Pe)}}else{var Re=ee[1]===re[1]?re[0]:void 0;for(ge.push(se.translateBufferLineToString(ee[1],!0,ee[0],Re)),Se=ee[1]+1;Se<=re[1]-1;Se++){var Le=se.lines.get(Se);Pe=se.translateBufferLineToString(Se,!0),Le&&Le.isWrapped?ge[ge.length-1]+=Pe:ge.push(Pe)}ee[1]!==re[1]&&(Le=se.lines.get(re[1]),Pe=se.translateBufferLineToString(re[1],!0,0,re[0]),Le&&Le.isWrapped?ge[ge.length-1]+=Pe:ge.push(Pe))}return ge.map(function(Fe){return Fe.replace(y," ")}).join(fe.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),z.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},z.prototype.refresh=function(ee){var re=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return re._refresh()})),fe.isLinux&&ee&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},z.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},z.prototype.isClickInSelection=function(ee){var re=this._getMouseBufferCoords(ee),se=this._model.finalSelectionStart,ge=this._model.finalSelectionEnd;return!!(se&&ge&&re)&&this._areCoordsInSelection(re,se,ge)},z.prototype._areCoordsInSelection=function(ee,re,se){return ee[1]>re[1]&&ee[1]<se[1]||re[1]===se[1]&&ee[1]===re[1]&&ee[0]>=re[0]&&ee[0]<se[0]||re[1]<se[1]&&ee[1]===se[1]&&ee[0]<se[0]||re[1]<se[1]&&ee[1]===re[1]&&ee[0]>=re[0]},z.prototype.selectWordAtCursor=function(ee){var re=this._getMouseBufferCoords(ee);re&&(this._selectWordAt(re,!1),this._model.selectionEnd=void 0,this.refresh(!0))},z.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},z.prototype.selectLines=function(ee,re){this._model.clearSelection(),ee=Math.max(ee,0),re=Math.min(re,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,ee],this._model.selectionEnd=[this._bufferService.cols,re],this.refresh(),this._onSelectionChange.fire()},z.prototype._onTrim=function(ee){this._model.onTrim(ee)&&this.refresh()},z.prototype._getMouseBufferCoords=function(ee){var re=this._mouseService.getCoords(ee,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(re)return re[0]--,re[1]--,re[1]+=this._bufferService.buffer.ydisp,re},z.prototype._getMouseEventScrollAmount=function(ee){var re=he.getCoordsRelativeToElement(ee,this._screenElement)[1],se=this._renderService.dimensions.canvasHeight;return re>=0&&re<=se?0:(re>se&&(re-=se),re=Math.min(Math.max(re,-50),50),(re/=50)/Math.abs(re)+Math.round(14*re))},z.prototype.shouldForceSelection=function(ee){return fe.isMac?ee.altKey&&this._optionsService.options.macOptionClickForcesSelection:ee.shiftKey},z.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)}},z.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)},z.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},z.prototype._onIncrementalClick=function(ee){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(ee))},z.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 re=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);re&&re.length!==this._model.selectionStart[0]&&re.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},z.prototype._onDoubleClick=function(ee){var re=this._getMouseBufferCoords(ee);re&&(this._activeSelectionMode=1,this._selectWordAt(re,!0))},z.prototype._onTripleClick=function(ee){var re=this._getMouseBufferCoords(ee);re&&(this._activeSelectionMode=2,this._selectLineAt(re[1]))},z.prototype.shouldColumnSelect=function(ee){return ee.altKey&&!(fe.isMac&&this._optionsService.options.macOptionClickForcesSelection)},z.prototype._onMouseMove=function(ee){if(ee.stopImmediatePropagation(),this._model.selectionStart){var re=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 se=this._bufferService.buffer;if(this._model.selectionEnd[1]<se.lines.length){var ge=se.lines.get(this._model.selectionEnd[1]);ge&&ge.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}re&&re[0]===this._model.selectionEnd[0]&&re[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},z.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()}},z.prototype._onMouseUp=function(ee){var re=ee.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&re<500&&ee.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var se=this._mouseService.getCoords(ee,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(se&&se[0]!==void 0&&se[1]!==void 0){var ge=ie.moveToCellSequence(se[0]-1,se[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ge,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},z.prototype._onBufferActivate=function(ee){var re=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=ee.activeBuffer.lines.onTrim(function(se){return re._onTrim(se)})},z.prototype._convertViewportColToCharacterIndex=function(ee,re){for(var se=re[0],ge=0;re[0]>=ge;ge++){var Se=ee.loadCell(ge,this._workCell).getChars().length;this._workCell.getWidth()===0?se--:Se>1&&re[0]!==ge&&(se+=Se-1)}return se},z.prototype.setSelection=function(ee,re,se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[ee,re],this._model.selectionStartLength=se,this.refresh()},z.prototype._getWordAt=function(ee,re,se,ge){if(se===void 0&&(se=!0),ge===void 0&&(ge=!0),!(ee[0]>=this._bufferService.cols)){var Se=this._bufferService.buffer,Pe=Se.lines.get(ee[1]);if(Pe){var Re=Se.translateBufferLineToString(ee[1],!1),Le=this._convertViewportColToCharacterIndex(Pe,ee),Fe=Le,Ie=ee[0]-Le,vt=0,at=0,et=0,De=0;if(Re.charAt(Le)===" "){for(;Le>0&&Re.charAt(Le-1)===" ";)Le--;for(;Fe<Re.length&&Re.charAt(Fe+1)===" ";)Fe++}else{var Oe=ee[0],ke=ee[0];Pe.getWidth(Oe)===0&&(vt++,Oe--),Pe.getWidth(ke)===2&&(at++,ke++);var lt=Pe.getString(ke).length;for(lt>1&&(De+=lt-1,Fe+=lt-1);Oe>0&&Le>0&&!this._isCharWordSeparator(Pe.loadCell(Oe-1,this._workCell));){Pe.loadCell(Oe-1,this._workCell);var Xe=this._workCell.getChars().length;this._workCell.getWidth()===0?(vt++,Oe--):Xe>1&&(et+=Xe-1,Le-=Xe-1),Le--,Oe--}for(;ke<Pe.length&&Fe+1<Re.length&&!this._isCharWordSeparator(Pe.loadCell(ke+1,this._workCell));){Pe.loadCell(ke+1,this._workCell);var xt=this._workCell.getChars().length;this._workCell.getWidth()===2?(at++,ke++):xt>1&&(De+=xt-1,Fe+=xt-1),Fe++,ke++}}Fe++;var Ot=Le+Ie-vt+et,Dt=Math.min(this._bufferService.cols,Fe-Le+vt+at-et-De);if(re||Re.slice(Le,Fe).trim()!==""){if(se&&Ot===0&&Pe.getCodePoint(0)!==32){var Kt=Se.lines.get(ee[1]-1);if(Kt&&Pe.isWrapped&&Kt.getCodePoint(this._bufferService.cols-1)!==32){var St=this._getWordAt([this._bufferService.cols-1,ee[1]-1],!1,!0,!1);if(St){var gt=this._bufferService.cols-St.start;Ot-=gt,Dt+=gt}}}if(ge&&Ot+Dt===this._bufferService.cols&&Pe.getCodePoint(this._bufferService.cols-1)!==32){var ht=Se.lines.get(ee[1]+1);if(ht&&ht.isWrapped&&ht.getCodePoint(0)!==32){var Qt=this._getWordAt([0,ee[1]+1],!1,!1,!0);Qt&&(Dt+=Qt.length)}}return{start:Ot,length:Dt}}}}},z.prototype._selectWordAt=function(ee,re){var se=this._getWordAt(ee,re);if(se){for(;se.start<0;)se.start+=this._bufferService.cols,ee[1]--;this._model.selectionStart=[se.start,ee[1]],this._model.selectionStartLength=se.length}},z.prototype._selectToWordAt=function(ee){var re=this._getWordAt(ee,!0);if(re){for(var se=ee[1];re.start<0;)re.start+=this._bufferService.cols,se--;if(!this._model.areSelectionValuesReversed())for(;re.start+re.length>this._bufferService.cols;)re.length-=this._bufferService.cols,se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?re.start:re.start+re.length,se]}},z.prototype._isCharWordSeparator=function(ee){return ee.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(ee.getChars())>=0},z.prototype._selectLineAt=function(ee){var re=this._bufferService.buffer.getWrappedRangeForLine(ee);this._model.selectionStart=[0,re.first],this._model.selectionEnd=[this._bufferService.cols,re.last],this._model.selectionStartLength=0},z=pe([ve(2,le.IBufferService),ve(3,le.ICoreService),ve(4,ue.IMouseService),ve(5,le.IOptionsService),ve(6,ue.IRenderService)],z)}(ne.Disposable);te.SelectionService=x},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionModel=void 0;var _e=function(){function Ee(pe){this._bufferService=pe,this.isSelectAllActive=!1,this.selectionStartLength=0}return Ee.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(Ee.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(Ee.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 pe=this.selectionStart[0]+this.selectionStartLength;return pe>this._bufferService.cols?[pe%this._bufferService.cols,this.selectionStart[1]+Math.floor(pe/this._bufferService.cols)]:[pe,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}),Ee.prototype.areSelectionValuesReversed=function(){var pe=this.selectionStart,ve=this.selectionEnd;return!(!pe||!ve)&&(pe[1]>ve[1]||pe[1]===ve[1]&&pe[0]>ve[0])},Ee.prototype.onTrim=function(pe){return this.selectionStart&&(this.selectionStart[1]-=pe),this.selectionEnd&&(this.selectionEnd[1]-=pe),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},Ee}();te.SelectionModel=_e},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.moveToCellSequence=void 0;var _e=E(12);function Ee(ce,ue,le,he){var ie=ce-pe(le,ce),ne=ue-pe(le,ue);return de(Math.abs(ie-ne)-function(a,y,x){for(var b=0,z=a-pe(x,a),ee=y-pe(x,y),re=0;re<Math.abs(z-ee);re++){var se=ve(a,y)==="A"?-1:1,ge=x.buffer.lines.get(z+se*re);ge&&ge.isWrapped&&b++}return b}(ce,ue,le),me(ve(ce,ue),he))}function pe(ce,ue){for(var le=0,he=ce.buffer.lines.get(ue),ie=he&&he.isWrapped;ie&&ue>=0&&ue<ce.rows;)le++,ie=(he=ce.buffer.lines.get(--ue))&&he.isWrapped;return le}function ve(ce,ue){return ce>ue?"A":"B"}function fe(ce,ue,le,he,ie,ne){for(var a=ce,y=ue,x="";a!==le||y!==he;)a+=ie?1:-1,ie&&a>ne.cols-1?(x+=ne.buffer.translateBufferLineToString(y,!1,ce,a),a=0,ce=0,y++):!ie&&a<0&&(x+=ne.buffer.translateBufferLineToString(y,!1,0,ce+1),ce=a=ne.cols-1,y--);return x+ne.buffer.translateBufferLineToString(y,!1,ce,a)}function me(ce,ue){var le=ue?"O":"[";return _e.C0.ESC+le+ce}function de(ce,ue){ce=Math.floor(ce);for(var le="",he=0;he<ce;he++)le+=ue;return le}te.moveToCellSequence=function(ce,ue,le,he){var ie,ne=le.buffer.x,a=le.buffer.y;if(!le.buffer.hasScrollback)return function(x,b,z,ee,re,se){return Ee(b,ee,re,se).length===0?"":de(fe(x,b,x,b-pe(re,b),!1,re).length,me("D",se))}(ne,a,0,ue,le,he)+Ee(a,ue,le,he)+function(x,b,z,ee,re,se){var ge;ge=Ee(b,ee,re,se).length>0?ee-pe(re,ee):b;var Se=ee,Pe=function(Re,Le,Fe,Ie,vt,at){var et;return et=Ee(Fe,Ie,vt,at).length>0?Ie-pe(vt,Ie):Le,Re<Fe&&et<=Ie||Re>=Fe&&et<Ie?"C":"D"}(x,b,z,ee,re,se);return de(fe(x,ge,z,Se,Pe==="C",re).length,me(Pe,se))}(ne,a,ce,ue,le,he);if(a===ue)return ie=ne>ce?"D":"C",de(Math.abs(ne-ce),me(ie,he));ie=a>ue?"D":"C";var y=Math.abs(a-ue);return de(function(x,b){return b.cols-x}(a>ue?ce:ne,le)+(y-1)*le.cols+1+((a>ue?ne:ce)-1),me(ie,he))}},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(fe,me,de,ce){var ue,le=arguments.length,he=le<3?me:ce===null?ce=Object.getOwnPropertyDescriptor(me,de):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,me,de,ce);else for(var ie=fe.length-1;ie>=0;ie--)(ue=fe[ie])&&(he=(le<3?ue(he):le>3?ue(me,de,he):ue(me,de))||he);return le>3&&he&&Object.defineProperty(me,de,he),he},Ee=this&&this.__param||function(fe,me){return function(de,ce){me(de,ce,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SoundService=void 0;var pe=E(1),ve=function(){function fe(me){this._optionsService=me}return Object.defineProperty(fe,"audioContext",{get:function(){if(!fe._audioContext){var me=window.AudioContext||window.webkitAudioContext;if(!me)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;fe._audioContext=new me}return fe._audioContext},enumerable:!1,configurable:!0}),fe.prototype.playBellSound=function(){var me=fe.audioContext;if(me){var de=me.createBufferSource();me.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(ce){de.buffer=ce,de.connect(me.destination),de.start(0)})}},fe.prototype._base64ToArrayBuffer=function(me){for(var de=window.atob(me),ce=de.length,ue=new Uint8Array(ce),le=0;le<ce;le++)ue[le]=de.charCodeAt(le);return ue.buffer},fe.prototype._removeMimeType=function(me){return me.split(",")[1]},fe=_e([Ee(0,pe.IOptionsService)],fe)}();te.SoundService=ve},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(le,he){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(le,he)},function(le,he){function ie(){this.constructor=le}_e(le,he),le.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)}),pe=this&&this.__decorate||function(le,he,ie,ne){var a,y=arguments.length,x=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(le,he,ie,ne);else for(var b=le.length-1;b>=0;b--)(a=le[b])&&(x=(y<3?a(x):y>3?a(he,ie,x):a(he,ie))||x);return y>3&&x&&Object.defineProperty(he,ie,x),x},ve=this&&this.__param||function(le,he){return function(ie,ne){he(ie,ne,le)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZoneManager=void 0;var fe=E(2),me=E(7),de=E(5),ce=E(1),ue=function(le){function he(ie,ne,a,y,x,b){var z=le.call(this)||this;return z._element=ie,z._screenElement=ne,z._bufferService=a,z._mouseService=y,z._selectionService=x,z._optionsService=b,z._zones=[],z._areZonesActive=!1,z._lastHoverCoords=[void 0,void 0],z._initialSelectionLength=0,z.register(me.addDisposableDomListener(z._element,"mousedown",function(ee){return z._onMouseDown(ee)})),z._mouseMoveListener=function(ee){return z._onMouseMove(ee)},z._mouseLeaveListener=function(ee){return z._onMouseLeave(ee)},z._clickListener=function(ee){return z._onClick(ee)},z}return Ee(he,le),he.prototype.dispose=function(){le.prototype.dispose.call(this),this._deactivate()},he.prototype.add=function(ie){this._zones.push(ie),this._zones.length===1&&this._activate()},he.prototype.clearAll=function(ie,ne){if(this._zones.length!==0){ie&&ne||(ie=0,ne=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>ie&&y.y1<=ne+1||y.y2>ie&&y.y2<=ne+1||y.y1<ie&&y.y2>ne+1)&&(this._currentZone&&this._currentZone===y&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(a--,1))}this._zones.length===0&&this._deactivate()}},he.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},he.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},he.prototype._onMouseMove=function(ie){this._lastHoverCoords[0]===ie.pageX&&this._lastHoverCoords[1]===ie.pageY||(this._onHover(ie),this._lastHoverCoords=[ie.pageX,ie.pageY])},he.prototype._onHover=function(ie){var ne=this,a=this._findZoneEventAt(ie);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(ie),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(ie)},this._optionsService.options.linkTooltipHoverDuration)))},he.prototype._onTooltip=function(ie){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(ie);ne&&ne.tooltipCallback&&ne.tooltipCallback(ie)},he.prototype._onMouseDown=function(ie){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(ie);ne!=null&&ne.willLinkActivate(ie)&&(ie.preventDefault(),ie.stopImmediatePropagation())}},he.prototype._onMouseLeave=function(ie){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},he.prototype._onClick=function(ie){var ne=this._findZoneEventAt(ie),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(ie),ie.preventDefault(),ie.stopImmediatePropagation())},he.prototype._getSelectionLength=function(){var ie=this._selectionService.selectionText;return ie?ie.length:0},he.prototype._findZoneEventAt=function(ie){var ne=this._mouseService.getCoords(ie,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var a=ne[0],y=ne[1],x=0;x<this._zones.length;x++){var b=this._zones[x];if(b.y1===b.y2){if(y===b.y1&&a>=b.x1&&a<b.x2)return b}else if(y===b.y1&&a>=b.x1||y===b.y2&&a<b.x2||y>b.y1&&y<b.y2)return b}},he=pe([ve(2,ce.IBufferService),ve(3,de.IMouseService),ve(4,de.ISelectionService),ve(5,ce.IOptionsService)],he)}(fe.Disposable);te.MouseZoneManager=ue},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(he,ie){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,a){ne.__proto__=a}||function(ne,a){for(var y in a)a.hasOwnProperty(y)&&(ne[y]=a[y])})(he,ie)},function(he,ie){function ne(){this.constructor=he}_e(he,ie),he.prototype=ie===null?Object.create(ie):(ne.prototype=ie.prototype,new ne)});Object.defineProperty(te,"__esModule",{value:!0}),te.AccessibilityManager=void 0;var pe=E(18),ve=E(11),fe=E(31),me=E(7),de=E(2),ce=E(32),ue=E(17),le=function(he){function ie(ne,a){var y=he.call(this)||this;y._terminal=ne,y._renderService=a,y._liveRegionLineCount=0,y._charsToConsume=[],y._charsToAnnounce="",y._accessibilityTreeRoot=document.createElement("div"),y._accessibilityTreeRoot.classList.add("xterm-accessibility"),y._rowContainer=document.createElement("div"),y._rowContainer.classList.add("xterm-accessibility-tree"),y._rowContainer.setAttribute("role","list"),y._rowElements=[];for(var x=0;x<y._terminal.rows;x++)y._rowElements[x]=y._createAccessibilityTreeNode(),y._rowContainer.appendChild(y._rowElements[x]);if(y._topBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,0)},y._bottomBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,1)},y._rowElements[0].addEventListener("focus",y._topBoundaryFocusListener),y._rowElements[y._rowElements.length-1].addEventListener("focus",y._bottomBoundaryFocusListener),y._refreshRowsDimensions(),y._accessibilityTreeRoot.appendChild(y._rowContainer),y._renderRowsDebouncer=new fe.RenderDebouncer(y._renderRows.bind(y)),y._refreshRows(),y._liveRegion=document.createElement("div"),y._liveRegion.classList.add("live-region"),y._liveRegion.setAttribute("aria-live","assertive"),y._accessibilityTreeRoot.appendChild(y._liveRegion),!y._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return y._terminal.element.insertAdjacentElement("afterbegin",y._accessibilityTreeRoot),y.register(y._renderRowsDebouncer),y.register(y._terminal.onResize(function(b){return y._onResize(b.rows)})),y.register(y._terminal.onRender(function(b){return y._refreshRows(b.start,b.end)})),y.register(y._terminal.onScroll(function(){return y._refreshRows()})),y.register(y._terminal.onA11yChar(function(b){return y._onChar(b)})),y.register(y._terminal.onLineFeed(function(){return y._onChar(`
|
|
|
`)})),y.register(y._terminal.onA11yTab(function(b){return y._onTab(b)})),y.register(y._terminal.onKey(function(b){return y._onKey(b.key)})),y.register(y._terminal.onBlur(function(){return y._clearLiveRegion()})),y.register(y._renderService.onDimensionsChange(function(){return y._refreshRowsDimensions()})),y._screenDprMonitor=new ce.ScreenDprMonitor,y.register(y._screenDprMonitor),y._screenDprMonitor.setListener(function(){return y._refreshRowsDimensions()}),y.register(me.addDisposableDomListener(window,"resize",function(){return y._refreshRowsDimensions()})),y}return Ee(ie,he),ie.prototype.dispose=function(){he.prototype.dispose.call(this),ue.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},ie.prototype._onBoundaryFocus=function(ne,a){var y=ne.target,x=this._rowElements[a===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")!==(a===0?"1":""+this._terminal.buffer.lines.length)&&ne.relatedTarget===x){var b,z;if(a===0?(b=y,z=this._rowElements.pop(),this._rowContainer.removeChild(z)):(b=this._rowElements.shift(),z=y,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),z.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()}},ie.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()},ie.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},ie.prototype._onTab=function(ne){for(var a=0;a<ne;a++)this._onChar(" ")},ie.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+=pe.tooMuchOutput)),ve.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},ie.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,ve.isMac&&ue.removeElementFromParent(this._liveRegion)},ie.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},ie.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},ie.prototype._renderRows=function(ne,a){for(var y=this._terminal.buffer,x=y.lines.length.toString(),b=ne;b<=a;b++){var z=y.translateBufferLineToString(y.ydisp+b,!0),ee=(y.ydisp+b+1).toString(),re=this._rowElements[b];re&&(z.length===0?re.innerHTML=" ":re.textContent=z,re.setAttribute("aria-posinset",ee),re.setAttribute("aria-setsize",x))}this._announceCharacters()},ie.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])}},ie.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},ie.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},ie}(de.Disposable);te.AccessibilityManager=le},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(y,x){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,z){b.__proto__=z}||function(b,z){for(var ee in z)z.hasOwnProperty(ee)&&(b[ee]=z[ee])})(y,x)},function(y,x){function b(){this.constructor=y}_e(y,x),y.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)}),pe=this&&this.__decorate||function(y,x,b,z){var ee,re=arguments.length,se=re<3?x:z===null?z=Object.getOwnPropertyDescriptor(x,b):z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(y,x,b,z);else for(var ge=y.length-1;ge>=0;ge--)(ee=y[ge])&&(se=(re<3?ee(se):re>3?ee(x,b,se):ee(x,b))||se);return re>3&&se&&Object.defineProperty(x,b,se),se},ve=this&&this.__param||function(y,x){return function(b,z){x(b,z,y)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DomRenderer=void 0;var fe=E(58),me=E(9),de=E(2),ce=E(5),ue=E(1),le=E(0),he=E(10),ie=E(17),ne=1,a=function(y){function x(b,z,ee,re,se,ge,Se,Pe,Re){var Le=y.call(this)||this;return Le._colors=b,Le._element=z,Le._screenElement=ee,Le._viewportElement=re,Le._linkifier=se,Le._linkifier2=ge,Le._charSizeService=Se,Le._optionsService=Pe,Le._bufferService=Re,Le._terminalClass=ne++,Le._rowElements=[],Le._rowContainer=document.createElement("div"),Le._rowContainer.classList.add("xterm-rows"),Le._rowContainer.style.lineHeight="normal",Le._rowContainer.setAttribute("aria-hidden","true"),Le._refreshRowElements(Le._bufferService.cols,Le._bufferService.rows),Le._selectionContainer=document.createElement("div"),Le._selectionContainer.classList.add("xterm-selection"),Le._selectionContainer.setAttribute("aria-hidden","true"),Le.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},Le._updateDimensions(),Le._injectCss(),Le._rowFactory=new fe.DomRendererRowFactory(document,Le._optionsService,Le._colors),Le._element.classList.add("xterm-dom-renderer-owner-"+Le._terminalClass),Le._screenElement.appendChild(Le._rowContainer),Le._screenElement.appendChild(Le._selectionContainer),Le._linkifier.onShowLinkUnderline(function(Fe){return Le._onLinkHover(Fe)}),Le._linkifier.onHideLinkUnderline(function(Fe){return Le._onLinkLeave(Fe)}),Le._linkifier2.onShowLinkUnderline(function(Fe){return Le._onLinkHover(Fe)}),Le._linkifier2.onHideLinkUnderline(function(Fe){return Le._onLinkLeave(Fe)}),Le}return Ee(x,y),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return new le.EventEmitter().event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),ie.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.prototype.dispose.call(this)},x.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,z=this._rowElements;b<z.length;b++){var ee=z[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 re=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=re,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},x.prototype.setColors=function(b){this._colors=b,this._injectCss()},x.prototype._injectCss=function(){var b=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var z=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";z+=this._terminalSelector+" span:not(."+fe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+fe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+fe.ITALIC_CLASS+" { font-style: italic;}",z+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",z+="@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+"; }}",z+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+":not(."+fe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",z+=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,re){z+=b._terminalSelector+" .xterm-fg-"+re+" { color: "+ee.css+"; }"+b._terminalSelector+" .xterm-bg-"+re+" { background-color: "+ee.css+"; }"}),z+=this._terminalSelector+" .xterm-fg-"+me.INVERTED_DEFAULT_COLOR+" { color: "+he.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+me.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=z},x.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},x.prototype._refreshRowElements=function(b,z){for(var ee=this._rowElements.length;ee<=z;ee++){var re=document.createElement("div");this._rowContainer.appendChild(re),this._rowElements.push(re)}for(;this._rowElements.length>z;)this._rowContainer.removeChild(this._rowElements.pop())},x.prototype.onResize=function(b,z){this._refreshRowElements(b,z),this._updateDimensions()},x.prototype.onCharSizeChanged=function(){this._updateDimensions()},x.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},x.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},x.prototype.onSelectionChanged=function(b,z,ee){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&z){var re=b[1]-this._bufferService.buffer.ydisp,se=z[1]-this._bufferService.buffer.ydisp,ge=Math.max(re,0),Se=Math.min(se,this._bufferService.rows-1);if(!(ge>=this._bufferService.rows||Se<0)){var Pe=document.createDocumentFragment();if(ee)Pe.appendChild(this._createSelectionElement(ge,b[0],z[0],Se-ge+1));else{var Re=re===ge?b[0]:0,Le=ge===Se?z[0]:this._bufferService.cols;Pe.appendChild(this._createSelectionElement(ge,Re,Le));var Fe=Se-ge-1;if(Pe.appendChild(this._createSelectionElement(ge+1,0,this._bufferService.cols,Fe)),ge!==Se){var Ie=se===Se?z[0]:this._bufferService.cols;Pe.appendChild(this._createSelectionElement(Se,0,Ie))}}this._selectionContainer.appendChild(Pe)}}},x.prototype._createSelectionElement=function(b,z,ee,re){re===void 0&&(re=1);var se=document.createElement("div");return se.style.height=re*this.dimensions.actualCellHeight+"px",se.style.top=b*this.dimensions.actualCellHeight+"px",se.style.left=z*this.dimensions.actualCellWidth+"px",se.style.width=this.dimensions.actualCellWidth*(ee-z)+"px",se},x.prototype.onCursorMove=function(){},x.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},x.prototype.clear=function(){for(var b=0,z=this._rowElements;b<z.length;b++)z[b].innerHTML=""},x.prototype.renderRows=function(b,z){for(var ee=this._bufferService.buffer.ybase+this._bufferService.buffer.y,re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),se=this._optionsService.options.cursorBlink,ge=b;ge<=z;ge++){var Se=this._rowElements[ge];Se.innerHTML="";var Pe=ge+this._bufferService.buffer.ydisp,Re=this._bufferService.buffer.lines.get(Pe),Le=this._optionsService.options.cursorStyle;Se.appendChild(this._rowFactory.createRow(Re,Pe===ee,Le,re,se,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(x.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),x.prototype.registerCharacterJoiner=function(b){return-1},x.prototype.deregisterCharacterJoiner=function(b){return!1},x.prototype._onLinkHover=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)},x.prototype._onLinkLeave=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)},x.prototype._setCellUnderline=function(b,z,ee,re,se,ge){for(;b!==z||ee!==re;){var Se=this._rowElements[ee];if(!Se)return;var Pe=Se.children[b];Pe&&(Pe.style.textDecoration=ge?"underline":"none"),++b>=se&&(b=0,ee++)}},x=pe([ve(6,ce.ICharSizeService),ve(7,ue.IOptionsService),ve(8,ue.IBufferService)],x)}(de.Disposable);te.DomRenderer=a},function(Je,te,E){"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 _e=E(9),Ee=E(3),pe=E(4),ve=E(10);te.BOLD_CLASS="xterm-bold",te.DIM_CLASS="xterm-dim",te.ITALIC_CLASS="xterm-italic",te.UNDERLINE_CLASS="xterm-underline",te.CURSOR_CLASS="xterm-cursor",te.CURSOR_BLINK_CLASS="xterm-cursor-blink",te.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",te.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",te.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var fe=function(){function de(ce,ue,le){this._document=ce,this._optionsService=ue,this._colors=le,this._workCell=new pe.CellData}return de.prototype.setColors=function(ce){this._colors=ce},de.prototype.createRow=function(ce,ue,le,he,ie,ne,a){for(var y=this._document.createDocumentFragment(),x=0,b=Math.min(ce.length,a)-1;b>=0;b--)if(ce.loadCell(b,this._workCell).getCode()!==Ee.NULL_CELL_CODE||ue&&b===he){x=b+1;break}for(b=0;b<x;b++){ce.loadCell(b,this._workCell);var z=this._workCell.getWidth();if(z!==0){var ee=this._document.createElement("span");if(z>1&&(ee.style.width=ne*z+"px"),ue&&b===he)switch(ee.classList.add(te.CURSOR_CLASS),ie&&ee.classList.add(te.CURSOR_BLINK_CLASS),le){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=Ee.WHITESPACE_CELL_CHAR:ee.textContent=this._workCell.getChars()||Ee.WHITESPACE_CELL_CHAR;var re=this._workCell.getFgColor(),se=this._workCell.getFgColorMode(),ge=this._workCell.getBgColor(),Se=this._workCell.getBgColorMode(),Pe=!!this._workCell.isInverse();if(Pe){var Re=re;re=ge,ge=Re;var Le=se;se=Se,Se=Le}switch(se){case 16777216:case 33554432:this._workCell.isBold()&&re<8&&this._optionsService.options.drawBoldTextInBrightColors&&(re+=8),this._applyMinimumContrast(ee,this._colors.background,this._colors.ansi[re])||ee.classList.add("xterm-fg-"+re);break;case 50331648:var Fe=ve.rgba.toColor(re>>16&255,re>>8&255,255&re);this._applyMinimumContrast(ee,this._colors.background,Fe)||this._addStyle(ee,"color:#"+me(re.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(ee,this._colors.background,this._colors.foreground)||Pe&&ee.classList.add("xterm-fg-"+_e.INVERTED_DEFAULT_COLOR)}switch(Se){case 16777216:case 33554432:ee.classList.add("xterm-bg-"+ge);break;case 50331648:this._addStyle(ee,"background-color:#"+me(ge.toString(16),"0",6));break;case 0:default:Pe&&ee.classList.add("xterm-bg-"+_e.INVERTED_DEFAULT_COLOR)}y.appendChild(ee)}}return y},de.prototype._applyMinimumContrast=function(ce,ue,le){if(this._optionsService.options.minimumContrastRatio===1)return!1;var he=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return he===void 0&&(he=ve.color.ensureContrastRatio(ue,le,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,he!=null?he:null)),!!he&&(this._addStyle(ce,"color:"+he.css),!0)},de.prototype._addStyle=function(ce,ue){ce.setAttribute("style",""+(ce.getAttribute("style")||"")+ue+";")},de}();function me(de,ce,ue){for(;de.length<ue;)de=ce+de;return de}te.DomRendererRowFactory=fe},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.evaluateKeyboardEvent=void 0;var _e=E(12),Ee={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(pe,ve,fe,me){var de={type:0,cancel:!1,key:void 0},ce=(pe.shiftKey?1:0)|(pe.altKey?2:0)|(pe.ctrlKey?4:0)|(pe.metaKey?8:0);switch(pe.keyCode){case 0:pe.key==="UIKeyInputUpArrow"?de.key=ve?_e.C0.ESC+"OA":_e.C0.ESC+"[A":pe.key==="UIKeyInputLeftArrow"?de.key=ve?_e.C0.ESC+"OD":_e.C0.ESC+"[D":pe.key==="UIKeyInputRightArrow"?de.key=ve?_e.C0.ESC+"OC":_e.C0.ESC+"[C":pe.key==="UIKeyInputDownArrow"&&(de.key=ve?_e.C0.ESC+"OB":_e.C0.ESC+"[B");break;case 8:if(pe.shiftKey){de.key=_e.C0.BS;break}if(pe.altKey){de.key=_e.C0.ESC+_e.C0.DEL;break}de.key=_e.C0.DEL;break;case 9:if(pe.shiftKey){de.key=_e.C0.ESC+"[Z";break}de.key=_e.C0.HT,de.cancel=!0;break;case 13:de.key=pe.altKey?_e.C0.ESC+_e.C0.CR:_e.C0.CR,de.cancel=!0;break;case 27:de.key=_e.C0.ESC,pe.altKey&&(de.key=_e.C0.ESC+_e.C0.ESC),de.cancel=!0;break;case 37:if(pe.metaKey)break;ce?(de.key=_e.C0.ESC+"[1;"+(ce+1)+"D",de.key===_e.C0.ESC+"[1;3D"&&(de.key=_e.C0.ESC+(fe?"b":"[1;5D"))):de.key=ve?_e.C0.ESC+"OD":_e.C0.ESC+"[D";break;case 39:if(pe.metaKey)break;ce?(de.key=_e.C0.ESC+"[1;"+(ce+1)+"C",de.key===_e.C0.ESC+"[1;3C"&&(de.key=_e.C0.ESC+(fe?"f":"[1;5C"))):de.key=ve?_e.C0.ESC+"OC":_e.C0.ESC+"[C";break;case 38:if(pe.metaKey)break;ce?(de.key=_e.C0.ESC+"[1;"+(ce+1)+"A",fe||de.key!==_e.C0.ESC+"[1;3A"||(de.key=_e.C0.ESC+"[1;5A")):de.key=ve?_e.C0.ESC+"OA":_e.C0.ESC+"[A";break;case 40:if(pe.metaKey)break;ce?(de.key=_e.C0.ESC+"[1;"+(ce+1)+"B",fe||de.key!==_e.C0.ESC+"[1;3B"||(de.key=_e.C0.ESC+"[1;5B")):de.key=ve?_e.C0.ESC+"OB":_e.C0.ESC+"[B";break;case 45:pe.shiftKey||pe.ctrlKey||(de.key=_e.C0.ESC+"[2~");break;case 46:de.key=ce?_e.C0.ESC+"[3;"+(ce+1)+"~":_e.C0.ESC+"[3~";break;case 36:de.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"H":ve?_e.C0.ESC+"OH":_e.C0.ESC+"[H";break;case 35:de.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"F":ve?_e.C0.ESC+"OF":_e.C0.ESC+"[F";break;case 33:pe.shiftKey?de.type=2:de.key=_e.C0.ESC+"[5~";break;case 34:pe.shiftKey?de.type=3:de.key=_e.C0.ESC+"[6~";break;case 112:de.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"P":_e.C0.ESC+"OP";break;case 113:de.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"Q":_e.C0.ESC+"OQ";break;case 114:de.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"R":_e.C0.ESC+"OR";break;case 115:de.key=ce?_e.C0.ESC+"[1;"+(ce+1)+"S":_e.C0.ESC+"OS";break;case 116:de.key=ce?_e.C0.ESC+"[15;"+(ce+1)+"~":_e.C0.ESC+"[15~";break;case 117:de.key=ce?_e.C0.ESC+"[17;"+(ce+1)+"~":_e.C0.ESC+"[17~";break;case 118:de.key=ce?_e.C0.ESC+"[18;"+(ce+1)+"~":_e.C0.ESC+"[18~";break;case 119:de.key=ce?_e.C0.ESC+"[19;"+(ce+1)+"~":_e.C0.ESC+"[19~";break;case 120:de.key=ce?_e.C0.ESC+"[20;"+(ce+1)+"~":_e.C0.ESC+"[20~";break;case 121:de.key=ce?_e.C0.ESC+"[21;"+(ce+1)+"~":_e.C0.ESC+"[21~";break;case 122:de.key=ce?_e.C0.ESC+"[23;"+(ce+1)+"~":_e.C0.ESC+"[23~";break;case 123:de.key=ce?_e.C0.ESC+"[24;"+(ce+1)+"~":_e.C0.ESC+"[24~";break;default:if(!pe.ctrlKey||pe.shiftKey||pe.altKey||pe.metaKey)if(fe&&!me||!pe.altKey||pe.metaKey)fe&&!pe.altKey&&!pe.ctrlKey&&pe.metaKey?pe.keyCode===65&&(de.type=1):pe.key&&!pe.ctrlKey&&!pe.altKey&&!pe.metaKey&&pe.keyCode>=48&&pe.key.length===1?de.key=pe.key:pe.key&&pe.ctrlKey&&pe.key==="_"&&(de.key=_e.C0.US);else{var ue=Ee[pe.keyCode],le=ue&&ue[pe.shiftKey?1:0];if(le)de.key=_e.C0.ESC+le;else if(pe.keyCode>=65&&pe.keyCode<=90){var he=pe.ctrlKey?pe.keyCode-64:pe.keyCode+32;de.key=_e.C0.ESC+String.fromCharCode(he)}}else pe.keyCode>=65&&pe.keyCode<=90?de.key=String.fromCharCode(pe.keyCode-64):pe.keyCode===32?de.key=_e.C0.NUL:pe.keyCode>=51&&pe.keyCode<=55?de.key=String.fromCharCode(pe.keyCode-51+27):pe.keyCode===56?de.key=_e.C0.DEL:pe.keyCode===219?de.key=_e.C0.ESC:pe.keyCode===220?de.key=_e.C0.FS:pe.keyCode===221&&(de.key=_e.C0.GS)}return de}},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(ne,a){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var b in x)x.hasOwnProperty(b)&&(y[b]=x[b])})(ne,a)},function(ne,a){function y(){this.constructor=ne}_e(ne,a),ne.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),pe=this&&this.__decorate||function(ne,a,y,x){var b,z=arguments.length,ee=z<3?a:x===null?x=Object.getOwnPropertyDescriptor(a,y):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(ne,a,y,x);else for(var re=ne.length-1;re>=0;re--)(b=ne[re])&&(ee=(z<3?b(ee):z>3?b(a,y,ee):b(a,y))||ee);return z>3&&ee&&Object.defineProperty(a,y,ee),ee},ve=this&&this.__param||function(ne,a){return function(y,x){a(y,x,ne)}};Object.defineProperty(te,"__esModule",{value:!0}),te.RenderService=void 0;var fe=E(31),me=E(0),de=E(2),ce=E(32),ue=E(7),le=E(1),he=E(5),ie=function(ne){function a(y,x,b,z,ee,re){var se=ne.call(this)||this;if(se._renderer=y,se._rowCount=x,se._isPaused=!1,se._needsFullRefresh=!1,se._isNextRenderRedrawOnly=!0,se._needsSelectionRefresh=!1,se._canvasWidth=0,se._canvasHeight=0,se._selectionState={start:void 0,end:void 0,columnSelectMode:!1},se._onDimensionsChange=new me.EventEmitter,se._onRender=new me.EventEmitter,se._onRefreshRequest=new me.EventEmitter,se.register({dispose:function(){return se._renderer.dispose()}}),se._renderDebouncer=new fe.RenderDebouncer(function(Se,Pe){return se._renderRows(Se,Pe)}),se.register(se._renderDebouncer),se._screenDprMonitor=new ce.ScreenDprMonitor,se._screenDprMonitor.setListener(function(){return se.onDevicePixelRatioChange()}),se.register(se._screenDprMonitor),se.register(re.onResize(function(Se){return se._fullRefresh()})),se.register(z.onOptionChange(function(){return se._renderer.onOptionsChanged()})),se.register(ee.onCharSizeChange(function(){return se.onCharSizeChanged()})),se._renderer.onRequestRedraw(function(Se){return se.refreshRows(Se.start,Se.end,!0)}),se.register(ue.addDisposableDomListener(window,"resize",function(){return se.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ge=new IntersectionObserver(function(Se){return se._onIntersectionChange(Se[Se.length-1])},{threshold:0});ge.observe(b),se.register({dispose:function(){return ge.disconnect()}})}return se}return Ee(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,x,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(y,x,this._rowCount))},a.prototype._renderRows=function(y,x){this._renderer.renderRows(y,x),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:x}),this._isNextRenderRedrawOnly=!0},a.prototype.resize=function(y,x){this._rowCount=x,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 x=this;this._renderer.dispose(),this._renderer=y,this._renderer.onRequestRedraw(function(b){return x.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,x){this._renderer.onResize(y,x),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,x,b){this._selectionState.start=y,this._selectionState.end=x,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(y,x,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=pe([ve(3,le.IOptionsService),ve(4,he.ICharSizeService),ve(5,le.IBufferService)],a)}(de.Disposable);te.RenderService=ie},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(de,ce,ue,le){var he,ie=arguments.length,ne=ie<3?ce:le===null?le=Object.getOwnPropertyDescriptor(ce,ue):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,ce,ue,le);else for(var a=de.length-1;a>=0;a--)(he=de[a])&&(ne=(ie<3?he(ne):ie>3?he(ce,ue,ne):he(ce,ue))||ne);return ie>3&&ne&&Object.defineProperty(ce,ue,ne),ne},Ee=this&&this.__param||function(de,ce){return function(ue,le){ce(ue,le,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CharSizeService=void 0;var pe=E(1),ve=E(0),fe=function(){function de(ce,ue,le){this._optionsService=le,this.width=0,this.height=0,this._onCharSizeChange=new ve.EventEmitter,this._measureStrategy=new me(ce,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 ce=this._measureStrategy.measure();ce.width===this.width&&ce.height===this.height||(this.width=ce.width,this.height=ce.height,this._onCharSizeChange.fire())},de=_e([Ee(2,pe.IOptionsService)],de)}();te.CharSizeService=fe;var me=function(){function de(ce,ue,le){this._document=ce,this._parentElement=ue,this._optionsService=le,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return de.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var ce=this._measureElement.getBoundingClientRect();return ce.width!==0&&ce.height!==0&&(this._result.width=ce.width,this._result.height=Math.ceil(ce.height)),this._result},de}()},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(me,de,ce,ue){var le,he=arguments.length,ie=he<3?de:ue===null?ue=Object.getOwnPropertyDescriptor(de,ce):ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ie=Reflect.decorate(me,de,ce,ue);else for(var ne=me.length-1;ne>=0;ne--)(le=me[ne])&&(ie=(he<3?le(ie):he>3?le(de,ce,ie):le(de,ce))||ie);return he>3&&ie&&Object.defineProperty(de,ce,ie),ie},Ee=this&&this.__param||function(me,de){return function(ce,ue){de(ce,ue,me)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseService=void 0;var pe=E(5),ve=E(30),fe=function(){function me(de,ce){this._renderService=de,this._charSizeService=ce}return me.prototype.getCoords=function(de,ce,ue,le,he){return ve.getCoords(de,ce,ue,le,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,he)},me.prototype.getRawByteCoords=function(de,ce,ue,le){var he=this.getCoords(de,ce,ue,le);return ve.getRawByteCoords(he)},me=_e([Ee(0,pe.IRenderService),Ee(1,pe.ICharSizeService)],me)}();te.MouseService=fe},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(le,he){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(le,he)},function(le,he){function ie(){this.constructor=le}_e(le,he),le.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)}),pe=this&&this.__decorate||function(le,he,ie,ne){var a,y=arguments.length,x=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(le,he,ie,ne);else for(var b=le.length-1;b>=0;b--)(a=le[b])&&(x=(y<3?a(x):y>3?a(he,ie,x):a(he,ie))||x);return y>3&&x&&Object.defineProperty(he,ie,x),x},ve=this&&this.__param||function(le,he){return function(ie,ne){he(ie,ne,le)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Linkifier2=void 0;var fe=E(1),me=E(0),de=E(2),ce=E(7),ue=function(le){function he(ie){var ne=le.call(this)||this;return ne._bufferService=ie,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new me.EventEmitter),ne._onHideLinkUnderline=ne.register(new me.EventEmitter),ne.register(de.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return Ee(he,le),Object.defineProperty(he.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),he.prototype.registerLinkProvider=function(ie){var ne=this;return this._linkProviders.push(ie),{dispose:function(){var a=ne._linkProviders.indexOf(ie);a!==-1&&ne._linkProviders.splice(a,1)}}},he.prototype.attachToDom=function(ie,ne,a){var y=this;this._element=ie,this._mouseService=ne,this._renderService=a,this.register(ce.addDisposableDomListener(this._element,"mouseleave",function(){y._isMouseOut=!0,y._clearCurrentLink()})),this.register(ce.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(ce.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},he.prototype._onMouseMove=function(ie){if(this._lastMouseEvent=ie,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(ie,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=ie.composedPath(),y=0;y<a.length;y++){var x=a[y];if(x.classList.contains("xterm"))break;if(x.classList.contains("xterm-hover"))return}this._lastBufferCell&&ne.x===this._lastBufferCell.x&&ne.y===this._lastBufferCell.y||(this._onHover(ne),this._lastBufferCell=ne)}}},he.prototype._onHover=function(ie){if(this._activeLine!==ie.y)return this._clearCurrentLink(),void this._askForLink(ie,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,ie)||(this._clearCurrentLink(),this._askForLink(ie,!0))},he.prototype._askForLink=function(ie,ne){var a=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=ie.y);var y=!1;this._linkProviders.forEach(function(x,b){var z;ne?!((z=a._activeProviderReplies)===null||z===void 0)&&z.get(b)&&(y=a._checkLinkProviderResult(b,ie,y)):x.provideLinks(ie.y,function(ee){var re,se;if(!a._isMouseOut){var ge=ee==null?void 0:ee.map(function(Se){return{link:Se}});(re=a._activeProviderReplies)===null||re===void 0||re.set(b,ge),y=a._checkLinkProviderResult(b,ie,y),((se=a._activeProviderReplies)===null||se===void 0?void 0:se.size)===a._linkProviders.length&&a._removeIntersectingLinks(ie.y,a._activeProviderReplies)}})})},he.prototype._removeIntersectingLinks=function(ie,ne){for(var a=new Set,y=0;y<ne.size;y++){var x=ne.get(y);if(x)for(var b=0;b<x.length;b++)for(var z=x[b],ee=z.link.range.start.y<ie?0:z.link.range.start.x,re=z.link.range.end.y>ie?this._bufferService.cols:z.link.range.end.x,se=ee;se<=re;se++){if(a.has(se)){x.splice(b--,1);break}a.add(se)}}},he.prototype._checkLinkProviderResult=function(ie,ne,a){var y,x=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(ie),z=!1,ee=0;ee<ie;ee++)this._activeProviderReplies.has(ee)&&!this._activeProviderReplies.get(ee)||(z=!0);if(!z&&b){var re=b.find(function(ge){return x._linkAtPosition(ge.link,ne)});re&&(a=!0,this._handleNewLink(re))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(ee=0;ee<this._activeProviderReplies.size;ee++){var se=(y=this._activeProviderReplies.get(ee))===null||y===void 0?void 0:y.find(function(ge){return x._linkAtPosition(ge.link,ne)});if(se){a=!0,this._handleNewLink(se);break}}return a},he.prototype._onClick=function(ie){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(ie,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(ie,this._currentLink.link.text)}},he.prototype._clearCurrentLink=function(ie,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!ie||!ne||this._currentLink.link.range.start.y>=ie&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,de.disposeArray(this._linkCacheDisposables))},he.prototype._handleNewLink=function(ie){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(ie.link,a)&&(this._currentLink=ie,this._currentLink.state={decorations:{underline:ie.link.decorations===void 0||ie.link.decorations.underline,pointerCursor:ie.link.decorations===void 0||ie.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,ie.link,this._lastMouseEvent),ie.link.decorations={},Object.defineProperties(ie.link.decorations,{pointerCursor:{get:function(){var y,x;return(x=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||x===void 0?void 0:x.decorations.pointerCursor},set:function(y){var x,b;!((x=ne._currentLink)===null||x===void 0)&&x.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,x;return(x=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||x===void 0?void 0:x.decorations.underline},set:function(y){var x,b,z;!((x=ne._currentLink)===null||x===void 0)&&x.state&&((z=(b=ne._currentLink)===null||b===void 0?void 0:b.state)===null||z===void 0?void 0:z.decorations.underline)!==y&&(ne._currentLink.state.decorations.underline=y,ne._currentLink.state.isHovered&&ne._fireUnderlineEvent(ie.link,y))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(y){var x=y.start===0?0:y.start+1+ne._bufferService.buffer.ydisp;ne._clearCurrentLink(x,y.end+1+ne._bufferService.buffer.ydisp)})))}},he.prototype._linkHover=function(ie,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&&ie.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},he.prototype._fireUnderlineEvent=function(ie,ne){var a=ie.range,y=this._bufferService.buffer.ydisp,x=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(x)},he.prototype._linkLeave=function(ie,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&&ie.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},he.prototype._linkAtPosition=function(ie,ne){var a=ie.range.start.y===ie.range.end.y,y=ie.range.start.y<ne.y,x=ie.range.end.y>ne.y;return(a&&ie.range.start.x<=ne.x&&ie.range.end.x>=ne.x||y&&ie.range.end.x>=ne.x||x&&ie.range.start.x<=ne.x||y&&x)&&ie.range.start.y<=ne.y&&ie.range.end.y>=ne.y},he.prototype._positionFromMouseEvent=function(ie,ne,a){var y=a.getCoords(ie,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},he.prototype._createLinkUnderlineEvent=function(ie,ne,a,y,x){return{x1:ie,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:x}},he=pe([ve(0,fe.IBufferService)],he)}(de.Disposable);te.Linkifier2=ue},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CoreBrowserService=void 0;var _e=function(){function Ee(pe){this._textarea=pe}return Object.defineProperty(Ee.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),Ee}();te.CoreBrowserService=_e},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(ee,re){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ge){se.__proto__=ge}||function(se,ge){for(var Se in ge)ge.hasOwnProperty(Se)&&(se[Se]=ge[Se])})(ee,re)},function(ee,re){function se(){this.constructor=ee}_e(ee,re),ee.prototype=re===null?Object.create(re):(se.prototype=re.prototype,new se)});Object.defineProperty(te,"__esModule",{value:!0}),te.CoreTerminal=void 0;var pe=E(2),ve=E(1),fe=E(66),me=E(67),de=E(68),ce=E(74),ue=E(75),le=E(0),he=E(76),ie=E(77),ne=E(78),a=E(80),y=E(81),x=E(19),b=E(82),z=function(ee){function re(se){var ge=ee.call(this)||this;return ge._onBinary=new le.EventEmitter,ge._onData=new le.EventEmitter,ge._onLineFeed=new le.EventEmitter,ge._onResize=new le.EventEmitter,ge._onScroll=new le.EventEmitter,ge._instantiationService=new fe.InstantiationService,ge.optionsService=new ce.OptionsService(se),ge._instantiationService.setService(ve.IOptionsService,ge.optionsService),ge._bufferService=ge.register(ge._instantiationService.createInstance(de.BufferService)),ge._instantiationService.setService(ve.IBufferService,ge._bufferService),ge._logService=ge._instantiationService.createInstance(me.LogService),ge._instantiationService.setService(ve.ILogService,ge._logService),ge._coreService=ge.register(ge._instantiationService.createInstance(ue.CoreService,function(){return ge.scrollToBottom()})),ge._instantiationService.setService(ve.ICoreService,ge._coreService),ge._coreMouseService=ge._instantiationService.createInstance(he.CoreMouseService),ge._instantiationService.setService(ve.ICoreMouseService,ge._coreMouseService),ge._dirtyRowService=ge._instantiationService.createInstance(ie.DirtyRowService),ge._instantiationService.setService(ve.IDirtyRowService,ge._dirtyRowService),ge.unicodeService=ge._instantiationService.createInstance(ne.UnicodeService),ge._instantiationService.setService(ve.IUnicodeService,ge.unicodeService),ge._charsetService=ge._instantiationService.createInstance(a.CharsetService),ge._instantiationService.setService(ve.ICharsetService,ge._charsetService),ge._inputHandler=new x.InputHandler(ge._bufferService,ge._charsetService,ge._coreService,ge._dirtyRowService,ge._logService,ge.optionsService,ge._coreMouseService,ge.unicodeService),ge.register(le.forwardEvent(ge._inputHandler.onLineFeed,ge._onLineFeed)),ge.register(ge._inputHandler),ge.register(le.forwardEvent(ge._bufferService.onResize,ge._onResize)),ge.register(le.forwardEvent(ge._coreService.onData,ge._onData)),ge.register(le.forwardEvent(ge._coreService.onBinary,ge._onBinary)),ge.register(ge.optionsService.onOptionChange(function(Se){return ge._updateOptions(Se)})),ge._writeBuffer=new b.WriteBuffer(function(Se){return ge._inputHandler.parse(Se)}),ge}return Ee(re,ee),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),re.prototype.dispose=function(){var se;this._isDisposed||(ee.prototype.dispose.call(this),(se=this._windowsMode)===null||se===void 0||se.dispose(),this._windowsMode=void 0)},re.prototype.write=function(se,ge){this._writeBuffer.write(se,ge)},re.prototype.writeSync=function(se){this._writeBuffer.writeSync(se)},re.prototype.resize=function(se,ge){isNaN(se)||isNaN(ge)||(se=Math.max(se,de.MINIMUM_COLS),ge=Math.max(ge,de.MINIMUM_ROWS),this._bufferService.resize(se,ge))},re.prototype.scroll=function(se,ge){ge===void 0&&(ge=!1);var Se,Pe=this._bufferService.buffer;(Se=this._cachedBlankLine)&&Se.length===this.cols&&Se.getFg(0)===se.fg&&Se.getBg(0)===se.bg||(Se=Pe.getBlankLine(se,ge),this._cachedBlankLine=Se),Se.isWrapped=ge;var Re=Pe.ybase+Pe.scrollTop,Le=Pe.ybase+Pe.scrollBottom;if(Pe.scrollTop===0){var Fe=Pe.lines.isFull;Le===Pe.lines.length-1?Fe?Pe.lines.recycle().copyFrom(Se):Pe.lines.push(Se.clone()):Pe.lines.splice(Le+1,0,Se.clone()),Fe?this._bufferService.isUserScrolling&&(Pe.ydisp=Math.max(Pe.ydisp-1,0)):(Pe.ybase++,this._bufferService.isUserScrolling||Pe.ydisp++)}else{var Ie=Le-Re+1;Pe.lines.shiftElements(Re+1,Ie-1,-1),Pe.lines.set(Le,Se.clone())}this._bufferService.isUserScrolling||(Pe.ydisp=Pe.ybase),this._dirtyRowService.markRangeDirty(Pe.scrollTop,Pe.scrollBottom),this._onScroll.fire(Pe.ydisp)},re.prototype.scrollLines=function(se,ge){var Se=this._bufferService.buffer;if(se<0){if(Se.ydisp===0)return;this._bufferService.isUserScrolling=!0}else se+Se.ydisp>=Se.ybase&&(this._bufferService.isUserScrolling=!1);var Pe=Se.ydisp;Se.ydisp=Math.max(Math.min(Se.ydisp+se,Se.ybase),0),Pe!==Se.ydisp&&(ge||this._onScroll.fire(Se.ydisp))},re.prototype.scrollPages=function(se){this.scrollLines(se*(this.rows-1))},re.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},re.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},re.prototype.scrollToLine=function(se){var ge=se-this._bufferService.buffer.ydisp;ge!==0&&this.scrollLines(ge)},re.prototype.addEscHandler=function(se,ge){return this._inputHandler.addEscHandler(se,ge)},re.prototype.addDcsHandler=function(se,ge){return this._inputHandler.addDcsHandler(se,ge)},re.prototype.addCsiHandler=function(se,ge){return this._inputHandler.addCsiHandler(se,ge)},re.prototype.addOscHandler=function(se,ge){return this._inputHandler.addOscHandler(se,ge)},re.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},re.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},re.prototype._updateOptions=function(se){var ge;switch(se){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ge=this._windowsMode)===null||ge===void 0||ge.dispose(),this._windowsMode=void 0)}},re.prototype._enableWindowsMode=function(){var se=this;if(!this._windowsMode){var ge=[];ge.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),ge.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(se._bufferService),!1})),this._windowsMode={dispose:function(){for(var Se=0,Pe=ge;Se<Pe.length;Se++)Pe[Se].dispose()}}}},re}(pe.Disposable);te.CoreTerminal=z},function(Je,te,E){"use strict";var _e=this&&this.__spreadArrays||function(){for(var me=0,de=0,ce=arguments.length;de<ce;de++)me+=arguments[de].length;var ue=Array(me),le=0;for(de=0;de<ce;de++)for(var he=arguments[de],ie=0,ne=he.length;ie<ne;ie++,le++)ue[le]=he[ie];return ue};Object.defineProperty(te,"__esModule",{value:!0}),te.InstantiationService=te.ServiceCollection=void 0;var Ee=E(1),pe=E(14),ve=function(){function me(){for(var de=[],ce=0;ce<arguments.length;ce++)de[ce]=arguments[ce];this._entries=new Map;for(var ue=0,le=de;ue<le.length;ue++){var he=le[ue],ie=he[0],ne=he[1];this.set(ie,ne)}}return me.prototype.set=function(de,ce){var ue=this._entries.get(de);return this._entries.set(de,ce),ue},me.prototype.forEach=function(de){this._entries.forEach(function(ce,ue){return de(ue,ce)})},me.prototype.has=function(de){return this._entries.has(de)},me.prototype.get=function(de){return this._entries.get(de)},me}();te.ServiceCollection=ve;var fe=function(){function me(){this._services=new ve,this._services.set(Ee.IInstantiationService,this)}return me.prototype.setService=function(de,ce){this._services.set(de,ce)},me.prototype.getService=function(de){return this._services.get(de)},me.prototype.createInstance=function(de){for(var ce=[],ue=1;ue<arguments.length;ue++)ce[ue-1]=arguments[ue];for(var le=pe.getServiceDependencies(de).sort(function(b,z){return b.index-z.index}),he=[],ie=0,ne=le;ie<ne.length;ie++){var a=ne[ie],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+de.name+" depends on UNKNOWN service "+a.id+".");he.push(y)}var x=le.length>0?le[0].index:ce.length;if(ce.length!==x)throw new Error("[createInstance] First service dependency of "+de.name+" at position "+(x+1)+" conflicts with "+ce.length+" static arguments");return new(de.bind.apply(de,_e([void 0],_e(ce,he))))},me}();te.InstantiationService=fe},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(ce,ue,le,he){var ie,ne=arguments.length,a=ne<3?ue:he===null?he=Object.getOwnPropertyDescriptor(ue,le):he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(ce,ue,le,he);else for(var y=ce.length-1;y>=0;y--)(ie=ce[y])&&(a=(ne<3?ie(a):ne>3?ie(ue,le,a):ie(ue,le))||a);return ne>3&&a&&Object.defineProperty(ue,le,a),a},Ee=this&&this.__param||function(ce,ue){return function(le,he){ue(le,he,ce)}},pe=this&&this.__spreadArrays||function(){for(var ce=0,ue=0,le=arguments.length;ue<le;ue++)ce+=arguments[ue].length;var he=Array(ce),ie=0;for(ue=0;ue<le;ue++)for(var ne=arguments[ue],a=0,y=ne.length;a<y;a++,ie++)he[ie]=ne[a];return he};Object.defineProperty(te,"__esModule",{value:!0}),te.LogService=te.LogLevel=void 0;var ve,fe=E(1);(function(ce){ce[ce.DEBUG=0]="DEBUG",ce[ce.INFO=1]="INFO",ce[ce.WARN=2]="WARN",ce[ce.ERROR=3]="ERROR",ce[ce.OFF=4]="OFF"})(ve=te.LogLevel||(te.LogLevel={}));var me={debug:ve.DEBUG,info:ve.INFO,warn:ve.WARN,error:ve.ERROR,off:ve.OFF},de=function(){function ce(ue){var le=this;this._optionsService=ue,this._updateLogLevel(),this._optionsService.onOptionChange(function(he){he==="logLevel"&&le._updateLogLevel()})}return ce.prototype._updateLogLevel=function(){this._logLevel=me[this._optionsService.options.logLevel]},ce.prototype._evalLazyOptionalParams=function(ue){for(var le=0;le<ue.length;le++)typeof ue[le]=="function"&&(ue[le]=ue[le]())},ce.prototype._log=function(ue,le,he){this._evalLazyOptionalParams(he),ue.call.apply(ue,pe([console,"xterm.js: "+le],he))},ce.prototype.debug=function(ue){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ve.DEBUG&&this._log(console.log,ue,le)},ce.prototype.info=function(ue){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ve.INFO&&this._log(console.info,ue,le)},ce.prototype.warn=function(ue){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ve.WARN&&this._log(console.warn,ue,le)},ce.prototype.error=function(ue){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ve.ERROR&&this._log(console.error,ue,le)},ce=_e([Ee(0,fe.IOptionsService)],ce)}();te.LogService=de},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(le,he){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ne){ie.__proto__=ne}||function(ie,ne){for(var a in ne)ne.hasOwnProperty(a)&&(ie[a]=ne[a])})(le,he)},function(le,he){function ie(){this.constructor=le}_e(le,he),le.prototype=he===null?Object.create(he):(ie.prototype=he.prototype,new ie)}),pe=this&&this.__decorate||function(le,he,ie,ne){var a,y=arguments.length,x=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(le,he,ie,ne);else for(var b=le.length-1;b>=0;b--)(a=le[b])&&(x=(y<3?a(x):y>3?a(he,ie,x):a(he,ie))||x);return y>3&&x&&Object.defineProperty(he,ie,x),x},ve=this&&this.__param||function(le,he){return function(ie,ne){he(ie,ne,le)}};Object.defineProperty(te,"__esModule",{value:!0}),te.BufferService=te.MINIMUM_ROWS=te.MINIMUM_COLS=void 0;var fe=E(1),me=E(69),de=E(0),ce=E(2);te.MINIMUM_COLS=2,te.MINIMUM_ROWS=1;var ue=function(le){function he(ie){var ne=le.call(this)||this;return ne._optionsService=ie,ne.isUserScrolling=!1,ne._onResize=new de.EventEmitter,ne.cols=Math.max(ie.options.cols,te.MINIMUM_COLS),ne.rows=Math.max(ie.options.rows,te.MINIMUM_ROWS),ne.buffers=new me.BufferSet(ie,ne),ne}return Ee(he,le),Object.defineProperty(he.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),he.prototype.dispose=function(){le.prototype.dispose.call(this),this.buffers.dispose()},he.prototype.resize=function(ie,ne){this.cols=ie,this.rows=ne,this.buffers.resize(ie,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:ie,rows:ne})},he.prototype.reset=function(){this.buffers.dispose(),this.buffers=new me.BufferSet(this._optionsService,this),this.isUserScrolling=!1},he=pe([ve(0,fe.IOptionsService)],he)}(ce.Disposable);te.BufferService=ue},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(me,de){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,ue){ce.__proto__=ue}||function(ce,ue){for(var le in ue)ue.hasOwnProperty(le)&&(ce[le]=ue[le])})(me,de)},function(me,de){function ce(){this.constructor=me}_e(me,de),me.prototype=de===null?Object.create(de):(ce.prototype=de.prototype,new ce)});Object.defineProperty(te,"__esModule",{value:!0}),te.BufferSet=void 0;var pe=E(70),ve=E(0),fe=function(me){function de(ce,ue){var le=me.call(this)||this;return le._onBufferActivate=le.register(new ve.EventEmitter),le._normal=new pe.Buffer(!0,ce,ue),le._normal.fillViewportRows(),le._alt=new pe.Buffer(!1,ce,ue),le._activeBuffer=le._normal,le.setupTabStops(),le}return Ee(de,me),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(ce){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(ce),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},de.prototype.resize=function(ce,ue){this._normal.resize(ce,ue),this._alt.resize(ce,ue)},de.prototype.setupTabStops=function(ce){this._normal.setupTabStops(ce),this._alt.setupTabStops(ce)},de}(E(2).Disposable);te.BufferSet=fe},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferStringIterator=te.Buffer=te.MAX_BUFFER_SIZE=void 0;var _e=E(71),Ee=E(16),pe=E(4),ve=E(3),fe=E(72),me=E(73),de=E(20),ce=E(6);te.MAX_BUFFER_SIZE=4294967295;var ue=function(){function he(ie,ne,a){this._hasScrollback=ie,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=Ee.DEFAULT_ATTR_DATA.clone(),this.savedCharset=de.DEFAULT_CHARSET,this.markers=[],this._nullCell=pe.CellData.fromCharData([0,ve.NULL_CELL_CHAR,ve.NULL_CELL_WIDTH,ve.NULL_CELL_CODE]),this._whitespaceCell=pe.CellData.fromCharData([0,ve.WHITESPACE_CELL_CHAR,ve.WHITESPACE_CELL_WIDTH,ve.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new _e.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return he.prototype.getNullCell=function(ie){return ie?(this._nullCell.fg=ie.fg,this._nullCell.bg=ie.bg,this._nullCell.extended=ie.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new ce.ExtendedAttrs),this._nullCell},he.prototype.getWhitespaceCell=function(ie){return ie?(this._whitespaceCell.fg=ie.fg,this._whitespaceCell.bg=ie.bg,this._whitespaceCell.extended=ie.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new ce.ExtendedAttrs),this._whitespaceCell},he.prototype.getBlankLine=function(ie,ne){return new Ee.BufferLine(this._bufferService.cols,this.getNullCell(ie),ne)},Object.defineProperty(he.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isCursorInViewport",{get:function(){var ie=this.ybase+this.y-this.ydisp;return ie>=0&&ie<this._rows},enumerable:!1,configurable:!0}),he.prototype._getCorrectBufferLength=function(ie){if(!this._hasScrollback)return ie;var ne=ie+this._optionsService.options.scrollback;return ne>te.MAX_BUFFER_SIZE?te.MAX_BUFFER_SIZE:ne},he.prototype.fillViewportRows=function(ie){if(this.lines.length===0){ie===void 0&&(ie=Ee.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(ie))}},he.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new _e.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},he.prototype.resize=function(ie,ne){var a=this.getNullCell(Ee.DEFAULT_ATTR_DATA),y=this._getCorrectBufferLength(ne);if(y>this.lines.maxLength&&(this.lines.maxLength=y),this.lines.length>0){if(this._cols<ie)for(var x=0;x<this.lines.length;x++)this.lines.get(x).resize(ie,a);var b=0;if(this._rows<ne)for(var z=this._rows;z<ne;z++)this.lines.length<ne+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new Ee.BufferLine(ie,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 Ee.BufferLine(ie,a)));else for(z=this._rows;z>ne;z--)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,ie-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,ie-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(ie,ne),this._cols>ie))for(x=0;x<this.lines.length;x++)this.lines.get(x).resize(ie,a);this._cols=ie,this._rows=ne},Object.defineProperty(he.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),he.prototype._reflow=function(ie,ne){this._cols!==ie&&(ie>this._cols?this._reflowLarger(ie,ne):this._reflowSmaller(ie,ne))},he.prototype._reflowLarger=function(ie,ne){var a=fe.reflowLargerGetLinesToRemove(this.lines,this._cols,ie,this.ybase+this.y,this.getNullCell(Ee.DEFAULT_ATTR_DATA));if(a.length>0){var y=fe.reflowLargerCreateNewLayout(this.lines,a);fe.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(ie,ne,y.countRemoved)}},he.prototype._reflowLargerAdjustViewport=function(ie,ne,a){for(var y=this.getNullCell(Ee.DEFAULT_ATTR_DATA),x=a;x-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<ne&&this.lines.push(new Ee.BufferLine(ie,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},he.prototype._reflowSmaller=function(ie,ne){for(var a=this.getNullCell(Ee.DEFAULT_ATTR_DATA),y=[],x=0,b=this.lines.length-1;b>=0;b--){var z=this.lines.get(b);if(!(!z||!z.isWrapped&&z.getTrimmedLength()<=ie)){for(var ee=[z];z.isWrapped&&b>0;)z=this.lines.get(--b),ee.unshift(z);var re=this.ybase+this.y;if(!(re>=b&&re<b+ee.length)){var se=ee[ee.length-1].getTrimmedLength(),ge=fe.reflowSmallerGetNewLineLengths(ee,this._cols,ie),Se=ge.length-ee.length,Pe=void 0;Pe=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 Re=[],Le=0;Le<Se;Le++){var Fe=this.getBlankLine(Ee.DEFAULT_ATTR_DATA,!0);Re.push(Fe)}Re.length>0&&(y.push({start:b+ee.length+x,newLines:Re}),x+=Re.length),ee.push.apply(ee,Re);var Ie=ge.length-1,vt=ge[Ie];vt===0&&(vt=ge[--Ie]);for(var at=ee.length-Se-1,et=se;at>=0;){var De=Math.min(et,vt);if(ee[Ie].copyCellsFrom(ee[at],et-De,vt-De,De,!0),(vt-=De)===0&&(vt=ge[--Ie]),(et-=De)===0){at--;var Oe=Math.max(at,0);et=fe.getWrappedLineTrimmedLength(ee,Oe,this._cols)}}for(Le=0;Le<ee.length;Le++)ge[Le]<ie&&ee[Le].setCell(ge[Le],a);for(var ke=Se-Pe;ke-- >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+x)-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 lt=[],Xe=[];for(Le=0;Le<this.lines.length;Le++)Xe.push(this.lines.get(Le));var xt=this.lines.length,Ot=xt-1,Dt=0,Kt=y[Dt];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+x);var St=0;for(Le=Math.min(this.lines.maxLength-1,xt+x-1);Le>=0;Le--)if(Kt&&Kt.start>Ot+St){for(var gt=Kt.newLines.length-1;gt>=0;gt--)this.lines.set(Le--,Kt.newLines[gt]);Le++,lt.push({index:Ot+1,amount:Kt.newLines.length}),St+=Kt.newLines.length,Kt=y[++Dt]}else this.lines.set(Le,Xe[Ot--]);var ht=0;for(Le=lt.length-1;Le>=0;Le--)lt[Le].index+=ht,this.lines.onInsertEmitter.fire(lt[Le]),ht+=lt[Le].amount;var Qt=Math.max(0,xt+x-this.lines.maxLength);Qt>0&&this.lines.onTrimEmitter.fire(Qt)}},he.prototype.stringIndexToBufferIndex=function(ie,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(ie);if(!y)return[-1,-1];for(var x=a?y.getTrimmedLength():y.length,b=0;b<x;++b)if(y.get(b)[ve.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[ve.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[ie,b];ie++}return[ie,0]},he.prototype.translateBufferLineToString=function(ie,ne,a,y){a===void 0&&(a=0);var x=this.lines.get(ie);return x?x.translateToString(ne,a,y):""},he.prototype.getWrappedRangeForLine=function(ie){for(var ne=ie,a=ie;ne>0&&this.lines.get(ne).isWrapped;)ne--;for(;a+1<this.lines.length&&this.lines.get(a+1).isWrapped;)a++;return{first:ne,last:a}},he.prototype.setupTabStops=function(ie){for(ie!=null?this.tabs[ie]||(ie=this.prevStop(ie)):(this.tabs={},ie=0);ie<this._cols;ie+=this._optionsService.options.tabStopWidth)this.tabs[ie]=!0},he.prototype.prevStop=function(ie){for(ie==null&&(ie=this.x);!this.tabs[--ie]&&ie>0;);return ie>=this._cols?this._cols-1:ie<0?0:ie},he.prototype.nextStop=function(ie){for(ie==null&&(ie=this.x);!this.tabs[++ie]&&ie<this._cols;);return ie>=this._cols?this._cols-1:ie<0?0:ie},he.prototype.addMarker=function(ie){var ne=this,a=new me.Marker(ie);return this.markers.push(a),a.register(this.lines.onTrim(function(y){a.line-=y,a.line<0&&a.dispose()})),a.register(this.lines.onInsert(function(y){a.line>=y.index&&(a.line+=y.amount)})),a.register(this.lines.onDelete(function(y){a.line>=y.index&&a.line<y.index+y.amount&&a.dispose(),a.line>y.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return ne._removeMarker(a)})),a},he.prototype._removeMarker=function(ie){this.markers.splice(this.markers.indexOf(ie),1)},he.prototype.iterator=function(ie,ne,a,y,x){return new le(this,ie,ne,a,y,x)},he}();te.Buffer=ue;var le=function(){function he(ie,ne,a,y,x,b){a===void 0&&(a=0),y===void 0&&(y=ie.lines.length),x===void 0&&(x=0),b===void 0&&(b=0),this._buffer=ie,this._trimRight=ne,this._startIndex=a,this._endIndex=y,this._startOverscan=x,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return he.prototype.hasNext=function(){return this._current<this._endIndex},he.prototype.next=function(){var ie=this._buffer.getWrappedRangeForLine(this._current);ie.first<this._startIndex-this._startOverscan&&(ie.first=this._startIndex-this._startOverscan),ie.last>this._endIndex+this._endOverscan&&(ie.last=this._endIndex+this._endOverscan),ie.first=Math.max(ie.first,0),ie.last=Math.min(ie.last,this._buffer.lines.length);for(var ne="",a=ie.first;a<=ie.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=ie.last+1,{range:ie,content:ne}},he}();te.BufferStringIterator=le},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CircularList=void 0;var _e=E(0),Ee=function(){function pe(ve){this._maxLength=ve,this.onDeleteEmitter=new _e.EventEmitter,this.onInsertEmitter=new _e.EventEmitter,this.onTrimEmitter=new _e.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(pe.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"maxLength",{get:function(){return this._maxLength},set:function(ve){if(this._maxLength!==ve){for(var fe=new Array(ve),me=0;me<Math.min(ve,this.length);me++)fe[me]=this._array[this._getCyclicIndex(me)];this._array=fe,this._maxLength=ve,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"length",{get:function(){return this._length},set:function(ve){if(ve>this._length)for(var fe=this._length;fe<ve;fe++)this._array[fe]=void 0;this._length=ve},enumerable:!1,configurable:!0}),pe.prototype.get=function(ve){return this._array[this._getCyclicIndex(ve)]},pe.prototype.set=function(ve,fe){this._array[this._getCyclicIndex(ve)]=fe},pe.prototype.push=function(ve){this._array[this._getCyclicIndex(this._length)]=ve,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},pe.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(pe.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),pe.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},pe.prototype.splice=function(ve,fe){for(var me=[],de=2;de<arguments.length;de++)me[de-2]=arguments[de];if(fe){for(var ce=ve;ce<this._length-fe;ce++)this._array[this._getCyclicIndex(ce)]=this._array[this._getCyclicIndex(ce+fe)];this._length-=fe}for(ce=this._length-1;ce>=ve;ce--)this._array[this._getCyclicIndex(ce+me.length)]=this._array[this._getCyclicIndex(ce)];for(ce=0;ce<me.length;ce++)this._array[this._getCyclicIndex(ve+ce)]=me[ce];if(this._length+me.length>this._maxLength){var ue=this._length+me.length-this._maxLength;this._startIndex+=ue,this._length=this._maxLength,this.onTrimEmitter.fire(ue)}else this._length+=me.length},pe.prototype.trimStart=function(ve){ve>this._length&&(ve=this._length),this._startIndex+=ve,this._length-=ve,this.onTrimEmitter.fire(ve)},pe.prototype.shiftElements=function(ve,fe,me){if(!(fe<=0)){if(ve<0||ve>=this._length)throw new Error("start argument out of range");if(ve+me<0)throw new Error("Cannot shift elements in list beyond index 0");if(me>0){for(var de=fe-1;de>=0;de--)this.set(ve+de+me,this.get(ve+de));var ce=ve+fe+me-this._length;if(ce>0)for(this._length+=ce;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(de=0;de<fe;de++)this.set(ve+de+me,this.get(ve+de))}},pe.prototype._getCyclicIndex=function(ve){return(this._startIndex+ve)%this._maxLength},pe}();te.CircularList=Ee},function(Je,te,E){"use strict";function _e(Ee,pe,ve){if(pe===Ee.length-1)return Ee[pe].getTrimmedLength();var fe=!Ee[pe].hasContent(ve-1)&&Ee[pe].getWidth(ve-1)===1,me=Ee[pe+1].getWidth(0)===2;return fe&&me?ve-1:ve}Object.defineProperty(te,"__esModule",{value:!0}),te.getWrappedLineTrimmedLength=te.reflowSmallerGetNewLineLengths=te.reflowLargerApplyNewLayout=te.reflowLargerCreateNewLayout=te.reflowLargerGetLinesToRemove=void 0,te.reflowLargerGetLinesToRemove=function(Ee,pe,ve,fe,me){for(var de=[],ce=0;ce<Ee.length-1;ce++){var ue=ce,le=Ee.get(++ue);if(le.isWrapped){for(var he=[Ee.get(ce)];ue<Ee.length&&le.isWrapped;)he.push(le),le=Ee.get(++ue);if(fe>=ce&&fe<ue)ce+=he.length-1;else{for(var ie=0,ne=_e(he,ie,pe),a=1,y=0;a<he.length;){var x=_e(he,a,pe),b=x-y,z=ve-ne,ee=Math.min(b,z);he[ie].copyCellsFrom(he[a],y,ne,ee,!1),(ne+=ee)===ve&&(ie++,ne=0),(y+=ee)===x&&(a++,y=0),ne===0&&ie!==0&&he[ie-1].getWidth(ve-1)===2&&(he[ie].copyCellsFrom(he[ie-1],ve-1,ne++,1,!1),he[ie-1].setCell(ve-1,me))}he[ie].replaceCells(ne,ve,me);for(var re=0,se=he.length-1;se>0&&(se>ie||he[se].getTrimmedLength()===0);se--)re++;re>0&&(de.push(ce+he.length-re),de.push(re)),ce+=he.length-1}}}return de},te.reflowLargerCreateNewLayout=function(Ee,pe){for(var ve=[],fe=0,me=pe[fe],de=0,ce=0;ce<Ee.length;ce++)if(me===ce){var ue=pe[++fe];Ee.onDeleteEmitter.fire({index:ce-de,amount:ue}),ce+=ue-1,de+=ue,me=pe[++fe]}else ve.push(ce);return{layout:ve,countRemoved:de}},te.reflowLargerApplyNewLayout=function(Ee,pe){for(var ve=[],fe=0;fe<pe.length;fe++)ve.push(Ee.get(pe[fe]));for(fe=0;fe<ve.length;fe++)Ee.set(fe,ve[fe]);Ee.length=pe.length},te.reflowSmallerGetNewLineLengths=function(Ee,pe,ve){for(var fe=[],me=Ee.map(function(ne,a){return _e(Ee,a,pe)}).reduce(function(ne,a){return ne+a}),de=0,ce=0,ue=0;ue<me;){if(me-ue<ve){fe.push(me-ue);break}de+=ve;var le=_e(Ee,ce,pe);de>le&&(de-=le,ce++);var he=Ee[ce].getWidth(de-1)===2;he&&de--;var ie=he?ve-1:ve;fe.push(ie),ue+=ie}return fe},te.getWrappedLineTrimmedLength=_e},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(fe,me){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ce){de.__proto__=ce}||function(de,ce){for(var ue in ce)ce.hasOwnProperty(ue)&&(de[ue]=ce[ue])})(fe,me)},function(fe,me){function de(){this.constructor=fe}_e(fe,me),fe.prototype=me===null?Object.create(me):(de.prototype=me.prototype,new de)});Object.defineProperty(te,"__esModule",{value:!0}),te.Marker=void 0;var pe=E(0),ve=function(fe){function me(de){var ce=fe.call(this)||this;return ce.line=de,ce._id=me._nextId++,ce.isDisposed=!1,ce._onDispose=new pe.EventEmitter,ce}return Ee(me,fe),Object.defineProperty(me.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),me.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},me._nextId=1,me}(E(2).Disposable);te.Marker=ve},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OptionsService=te.DEFAULT_OPTIONS=te.DEFAULT_BELL_SOUND=void 0;var _e=E(0),Ee=E(11),pe=E(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:Ee.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var ve=["cols","rows"],fe=function(){function me(de){this._onOptionChange=new _e.EventEmitter,this.options=pe.clone(te.DEFAULT_OPTIONS);for(var ce=0,ue=Object.keys(de);ce<ue.length;ce++){var le=ue[ce];if(le in this.options){var he=de[le];this.options[le]=he}}}return Object.defineProperty(me.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),me.prototype.setOption=function(de,ce){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');if(ve.indexOf(de)!==-1)throw new Error('Option "'+de+'" can only be set in the constructor');this.options[de]!==ce&&(ce=this._sanitizeAndValidateOption(de,ce),this.options[de]!==ce&&(this.options[de]=ce,this._onOptionChange.fire(de)))},me.prototype._sanitizeAndValidateOption=function(de,ce){switch(de){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":ce||(ce=te.DEFAULT_OPTIONS[de]);break;case"cursorWidth":ce=Math.floor(ce);case"lineHeight":case"tabStopWidth":if(ce<1)throw new Error(de+" cannot be less than 1, value: "+ce);break;case"minimumContrastRatio":ce=Math.max(1,Math.min(21,Math.round(10*ce)/10));break;case"scrollback":if((ce=Math.min(ce,4294967295))<0)throw new Error(de+" cannot be less than 0, value: "+ce);break;case"fastScrollSensitivity":case"scrollSensitivity":if(ce<=0)throw new Error(de+" cannot be less than or equal to 0, value: "+ce)}return ce},me.prototype.getOption=function(de){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');return this.options[de]},me}();te.OptionsService=fe},function(Je,te,E){"use strict";var _e,Ee=this&&this.__extends||(_e=function(ie,ne){return(_e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var x in y)y.hasOwnProperty(x)&&(a[x]=y[x])})(ie,ne)},function(ie,ne){function a(){this.constructor=ie}_e(ie,ne),ie.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),pe=this&&this.__decorate||function(ie,ne,a,y){var x,b=arguments.length,z=b<3?ne:y===null?y=Object.getOwnPropertyDescriptor(ne,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(ie,ne,a,y);else for(var ee=ie.length-1;ee>=0;ee--)(x=ie[ee])&&(z=(b<3?x(z):b>3?x(ne,a,z):x(ne,a))||z);return b>3&&z&&Object.defineProperty(ne,a,z),z},ve=this&&this.__param||function(ie,ne){return function(a,y){ne(a,y,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreService=void 0;var fe=E(1),me=E(0),de=E(33),ce=E(2),ue=Object.freeze({insertMode:!1}),le=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),he=function(ie){function ne(a,y,x,b){var z=ie.call(this)||this;return z._bufferService=y,z._logService=x,z._optionsService=b,z.isCursorInitialized=!1,z.isCursorHidden=!1,z._onData=z.register(new me.EventEmitter),z._onUserInput=z.register(new me.EventEmitter),z._onBinary=z.register(new me.EventEmitter),z._scrollToBottom=a,z.register({dispose:function(){return z._scrollToBottom=void 0}}),z.modes=de.clone(ue),z.decPrivateModes=de.clone(le),z}return Ee(ne,ie),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(le)},ne.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var x=this._bufferService.buffer;x.ybase!==x.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=pe([ve(1,fe.IBufferService),ve(2,fe.ILogService),ve(3,fe.IOptionsService)],ne)}(ce.Disposable);te.CoreService=he},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(le,he,ie,ne){var a,y=arguments.length,x=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,ie):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(le,he,ie,ne);else for(var b=le.length-1;b>=0;b--)(a=le[b])&&(x=(y<3?a(x):y>3?a(he,ie,x):a(he,ie))||x);return y>3&&x&&Object.defineProperty(he,ie,x),x},Ee=this&&this.__param||function(le,he){return function(ie,ne){he(ie,ne,le)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreMouseService=void 0;var pe=E(1),ve=E(0),fe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(le){return le.button!==4&&le.action===1&&(le.ctrl=!1,le.alt=!1,le.shift=!1,!0)}},VT200:{events:19,restrict:function(le){return le.action!==32}},DRAG:{events:23,restrict:function(le){return le.action!==32||le.button!==3}},ANY:{events:31,restrict:function(le){return!0}}};function me(le,he){var ie=(le.ctrl?16:0)|(le.shift?4:0)|(le.alt?8:0);return le.button===4?(ie|=64,ie|=le.action):(ie|=3&le.button,4&le.button&&(ie|=64),8&le.button&&(ie|=128),le.action===32?ie|=32:le.action!==0||he||(ie|=3)),ie}var de=String.fromCharCode,ce={DEFAULT:function(le){var he=[me(le,!1)+32,le.col+32,le.row+32];return he[0]>255||he[1]>255||he[2]>255?"":"\x1B[M"+de(he[0])+de(he[1])+de(he[2])},SGR:function(le){var he=le.action===0&&le.button!==4?"m":"M";return"\x1B[<"+me(le,!0)+";"+le.col+";"+le.row+he}},ue=function(){function le(he,ie){this._bufferService=he,this._coreService=ie,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new ve.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(fe);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,fe[y])}for(var x=0,b=Object.keys(ce);x<b.length;x++){var z=b[x];this.addEncoding(z,ce[z])}this.reset()}return le.prototype.addProtocol=function(he,ie){this._protocols[he]=ie},le.prototype.addEncoding=function(he,ie){this._encodings[he]=ie},Object.defineProperty(le.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(he){if(!this._protocols[he])throw new Error('unknown protocol "'+he+'"');this._activeProtocol=he,this._onProtocolChange.fire(this._protocols[he].events)},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(he){if(!this._encodings[he])throw new Error('unknown encoding "'+he+'"');this._activeEncoding=he},enumerable:!1,configurable:!0}),le.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(le.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),le.prototype.triggerMouseEvent=function(he){if(he.col<0||he.col>=this._bufferService.cols||he.row<0||he.row>=this._bufferService.rows||he.button===4&&he.action===32||he.button===3&&he.action!==32||he.button!==4&&(he.action===2||he.action===3)||(he.col++,he.row++,he.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,he))||!this._protocols[this._activeProtocol].restrict(he))return!1;var ie=this._encodings[this._activeEncoding](he);return ie&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(ie):this._coreService.triggerDataEvent(ie,!0)),this._lastEvent=he,!0},le.prototype.explainEvents=function(he){return{down:!!(1&he),up:!!(2&he),drag:!!(4&he),move:!!(8&he),wheel:!!(16&he)}},le.prototype._compareEvents=function(he,ie){return he.col===ie.col&&he.row===ie.row&&he.button===ie.button&&he.action===ie.action&&he.ctrl===ie.ctrl&&he.alt===ie.alt&&he.shift===ie.shift},le=_e([Ee(0,pe.IBufferService),Ee(1,pe.ICoreService)],le)}();te.CoreMouseService=ue},function(Je,te,E){"use strict";var _e=this&&this.__decorate||function(fe,me,de,ce){var ue,le=arguments.length,he=le<3?me:ce===null?ce=Object.getOwnPropertyDescriptor(me,de):ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,me,de,ce);else for(var ie=fe.length-1;ie>=0;ie--)(ue=fe[ie])&&(he=(le<3?ue(he):le>3?ue(me,de,he):ue(me,de))||he);return le>3&&he&&Object.defineProperty(me,de,he),he},Ee=this&&this.__param||function(fe,me){return function(de,ce){me(de,ce,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DirtyRowService=void 0;var pe=E(1),ve=function(){function fe(me){this._bufferService=me,this.clearRange()}return Object.defineProperty(fe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),fe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},fe.prototype.markDirty=function(me){me<this._start?this._start=me:me>this._end&&(this._end=me)},fe.prototype.markRangeDirty=function(me,de){if(me>de){var ce=me;me=de,de=ce}me<this._start&&(this._start=me),de>this._end&&(this._end=de)},fe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},fe=_e([Ee(0,pe.IBufferService)],fe)}();te.DirtyRowService=ve},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeService=void 0;var _e=E(0),Ee=E(79),pe=function(){function ve(){this._providers=Object.create(null),this._active="",this._onChange=new _e.EventEmitter;var fe=new Ee.UnicodeV6;this.register(fe),this._active=fe.version,this._activeProvider=fe}return Object.defineProperty(ve.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(ve.prototype,"activeVersion",{get:function(){return this._active},set:function(fe){if(!this._providers[fe])throw new Error('unknown Unicode version "'+fe+'"');this._active=fe,this._activeProvider=this._providers[fe],this._onChange.fire(fe)},enumerable:!1,configurable:!0}),ve.prototype.register=function(fe){this._providers[fe.version]=fe},ve.prototype.wcwidth=function(fe){return this._activeProvider.wcwidth(fe)},ve.prototype.getStringCellWidth=function(fe){for(var me=0,de=fe.length,ce=0;ce<de;++ce){var ue=fe.charCodeAt(ce);if(55296<=ue&&ue<=56319){if(++ce>=de)return me+this.wcwidth(ue);var le=fe.charCodeAt(ce);56320<=le&&le<=57343?ue=1024*(ue-55296)+le-56320+65536:me+=this.wcwidth(le)}me+=this.wcwidth(ue)}return me},ve}();te.UnicodeService=pe},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeV6=void 0;var _e,Ee=E(15),pe=[[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]],ve=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],fe=function(){function me(){if(this.version="6",!_e){_e=new Uint8Array(65536),Ee.fill(_e,1),_e[0]=0,Ee.fill(_e,0,1,32),Ee.fill(_e,0,127,160),Ee.fill(_e,2,4352,4448),_e[9001]=2,_e[9002]=2,Ee.fill(_e,2,11904,42192),_e[12351]=1,Ee.fill(_e,2,44032,55204),Ee.fill(_e,2,63744,64256),Ee.fill(_e,2,65040,65050),Ee.fill(_e,2,65072,65136),Ee.fill(_e,2,65280,65377),Ee.fill(_e,2,65504,65511);for(var de=0;de<pe.length;++de)Ee.fill(_e,0,pe[de][0],pe[de][1]+1)}}return me.prototype.wcwidth=function(de){return de<32?0:de<127?1:de<65536?_e[de]:function(ce,ue){var le,he=0,ie=ue.length-1;if(ce<ue[0][0]||ce>ue[ie][1])return!1;for(;ie>=he;)if(ce>ue[le=he+ie>>1][1])he=le+1;else{if(!(ce<ue[le][0]))return!0;ie=le-1}return!1}(de,ve)?0:de>=131072&&de<=196605||de>=196608&&de<=262141?2:1},me}();te.UnicodeV6=fe},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CharsetService=void 0;var _e=function(){function Ee(){this.glevel=0,this._charsets=[]}return Ee.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},Ee.prototype.setgLevel=function(pe){this.glevel=pe,this.charset=this._charsets[pe]},Ee.prototype.setgCharset=function(pe,ve){this._charsets[pe]=ve,this.glevel===pe&&(this.charset=ve)},Ee}();te.CharsetService=_e},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.updateWindowsModeWrappedState=void 0;var _e=E(3);te.updateWindowsModeWrappedState=function(Ee){var pe=Ee.buffer.lines.get(Ee.buffer.ybase+Ee.buffer.y-1),ve=pe==null?void 0:pe.get(Ee.cols-1),fe=Ee.buffer.lines.get(Ee.buffer.ybase+Ee.buffer.y);fe&&ve&&(fe.isWrapped=ve[_e.CHAR_DATA_CODE_INDEX]!==_e.NULL_CELL_CODE&&ve[_e.CHAR_DATA_CODE_INDEX]!==_e.WHITESPACE_CELL_CODE)}},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WriteBuffer=void 0;var _e=function(){function Ee(pe){this._action=pe,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return Ee.prototype.writeSync=function(pe){if(this._writeBuffer.length){for(var ve=this._bufferOffset;ve<this._writeBuffer.length;++ve){var fe=this._writeBuffer[ve],me=this._callbacks[ve];this._action(fe),me&&me()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(pe)},Ee.prototype.write=function(pe,ve){var fe=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return fe._innerWrite()})),this._pendingData+=pe.length,this._writeBuffer.push(pe),this._callbacks.push(ve)},Ee.prototype._innerWrite=function(){for(var pe=this,ve=Date.now();this._writeBuffer.length>this._bufferOffset;){var fe=this._writeBuffer[this._bufferOffset],me=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(fe),this._pendingData-=fe.length,me&&me(),Date.now()-ve>=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 pe._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},Ee}();te.WriteBuffer=_e},function(Je,te,E){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.AddonManager=void 0;var _e=function(){function Ee(){this._addons=[]}return Ee.prototype.dispose=function(){for(var pe=this._addons.length-1;pe>=0;pe--)this._addons[pe].instance.dispose()},Ee.prototype.loadAddon=function(pe,ve){var fe=this,me={instance:ve,dispose:ve.dispose,isDisposed:!1};this._addons.push(me),ve.dispose=function(){return fe._wrappedAddonDispose(me)},ve.activate(pe)},Ee.prototype._wrappedAddonDispose=function(pe){if(!pe.isDisposed){for(var ve=-1,fe=0;fe<this._addons.length;fe++)if(this._addons[fe]===pe){ve=fe;break}if(ve===-1)throw new Error("Could not dispose an addon that has not been loaded");pe.isDisposed=!0,pe.dispose.apply(pe.instance),this._addons.splice(ve,1)}},Ee}();te.AddonManager=_e}])})},62522:function(ft){"use strict";ft.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAABYCAYAAACJfF6vAAAAAXNSR0IArs4c6QAAIABJREFUeF7sXQe4FcXZfmd2T7n90jtYsFGModkVUGNJ7BVTVIxdI5ii/iYmxkRjEhV7ohF7wQaxBqOIxgqCQSkWUKRIv72csjvzP9/M7p7ZPefce8EGhOOD95wt0+ed9yvzDcO2z7YW2NYCm00LNL19cQ/H4j/nEt+vKK38LhtyVWazKdz/UEHY/1Bdt1V1Wwts1i3QMGviGRLyJgAVVFCb4YiykZNe2KwLvZUWbhswbqUdu61aW1YL1L0z4TrG8Cuz1IyxOytH3njOllWTraO024Bx6+jHbbXYglugcfaEC4TErZEqNAN4q2rUpEO24KptsUXfBoxbbNdtK/jW0AINsyfsC2CGlIgzBgGJaRzi9jKeeo2NuDO7NdRxS6zDNmDcEnttW5k32xYYP3XZFADfA6QFsKWTj+2/e7HCyld+azeU1S8AsDOAjxnEGZWjbn7z26rc+H8u/yWEPMti9kV3HdN7+rdVjs0h323AuDn0wrYybDUtMH7a8lsh5QW6Qqxl8rH9yopVrmHWhLMl8HcAL1UK93i21y0N30ZD/Hj66rJYKjMZAid5+T82+dj+J38bZdlc8twGjJtLT2wrx1bRAmc+tWy8ZLhb4yJWTz6mf69CFSO2WF9av5QxLG1w2CH99rmx9dtogDP/uXygFHIqgCG6zOyhxkzf0x4/ibnfRnk2lzy3WGBsmDXhTSkxFAxSAksB9jFneIFZztMVw25Zt7k08Jcpx7p9d6lAPD5BMHkKY/K33V9e8MSXSe+berf+zYmdEZO3VpZUnf6/5od35tTloyTkO15bz5t8bP89CrV7/bsTvg+B+2yOoWUjJq36pvomms/4aStugxTne6A4td/RfU+4ijHxbZVnc8l3SwbGP0ng0gIN6TDgXhv896Wjbli+uTT0xpZj7ZihR0gmJwPoocmH/E33GQv+sLHpfBvP18+eOBFS3sAYplWOnHTst1GGbyvPs5/5oqvjOGphZmBP3X1sv+MLAuOsCVM4w2sVIyfd9m2V1c93/D+XHQWBS7Kl8e8/cGhPsob/z3+2WGCsnz3hcEg8X7QHpUwxxi6uHDXpzi2tl2tG7z4ky8UcAHG/7BJ4vueM+d/fEupSN2viSwzyIAbMqxw1qSBj2hLqsallPGPqshYGlDCGP959TP9fR9ORn1yUaKy1llQ4bCf2LYnQm1q3/5X3tlhgbPrg4h6ilR0NoBJgO0vIsQB2zBuEUl5WvedN121JHbruoKHXCSlNZ986Bjat+4wPztgS6tEwa8JqSUyXyb9VjbzpvC2hzF9lGcdPXbYSQG8p+ZH3HNf32WjaTbMvPsQFP7xq5I2XfJX5bkvrq2uBLRYYC4on7168JxPsCgkcGdxnEFzKMRWjbnrtq2u2rzeltWOHPCKBU1QuDNNjrOXkzi99Wv/15vrVpV4/awL539mc48qKEZOu/upS3jJSGj91+ceA3D4Vk90f/sGA2mip62dPuF5IPNBp1KT/bhk1+t8r5VYFjH73Ncye8CspEbBECTxVPWpSQV3P5tjla8cOeVMCezNgJUtnd+v2xkeNm2M5i5WpbtaEJgaUMc4urxxx45+2pLJ/FWU9Y+qyxUz5MPY7uFB6DbMn/LNy5CSSdrZ9NtMW2CqBUT52otWwXZ80AMtr9wVVoyZpd4TN/LNu/916iZhFRiMLjP22x8sf/H4zL3Je8RpmT3xfSjlUQl5fPeqmX2xp5f+y5R0/bdkqJnDF3cf1J+NZ6FP3/mWdrHT69xUjb7zoy+az7f2vrwW2SmCsfeOCATxmf0ZOWV7TPV01avNfoSXA144d8iSAY6jcUoq9er6y0Hf9+PpGwVeccv27E2+DkOcD7M2qUTfSlrf/mc/oV6S9Q92KVY1Z9H/8pH55vom170w8llbryj1vJN/BbZ/NtAW2SmBsmD3xH1LKM/02t5j8XvnIm/69mfaBKtYXhwwZYbns94A83Ctn4/L6RJcRc+Zscftl62dPHAUp/8gku/1/DQDGP7XiO5KJI+85tn9B16r6WRNulen0b6r3vyNP97g5j89vs2xrxgw5jjGc0W3G/KMYIL+Jsmx1wNjwzoS9JZNvBGyR4f6qkZNO+yYa88vksWbskPcBDDXSeKrHjPlbjF70y9R9a3p3/NSlxyezpdNvP6l7U6F61c+e+EjVyBvHbWqdT3/mi10t1zlTSowF5E4ASwJYx4A5kvEn7L59HrlzBNviFtNi7bF27ODnJZhPFu5Yt1pMGLJw4dcevHfrA8bZE5+QUvqAslzEsHun706q29SB+E29t3bMkMslwzWUH62KEjisx4z5L37d+cvHYKEbZYlyoMJuqXFjpby8NCvczjEeY04qYYML2+ash+uyOMAtBlYGLsshEQNYDC6LcUtWA7Ic4EwIxjizOJjkAsxidJGJCsncwVLCBhhnknFIFWiBQzAOFuiDAbrHyKddswPJpNADlUkwSbsyBJikLWt0X0gmXMaRhbBWMmmtEKBnJHkjuABzIaUEE6SpqBdSNoOLLIfMgCHrZuM1YI4DLh3Eso4U1hqb7nGRzXJHCJltTJSiEYl0Fk5jFp+iBWdDMIaCW+bOfnpl/zuP6rOsUL81vTtxqCvkiVWjJl25Kf3q7cMm9yde7H0GLHGZnHjvMQOe2ZQ8Nrd31o4dulJC9vbLxYAVYHig+8vz/+/rLOtWBYzyldOTDWXVtBE/Ro3GGT+hYuQNpLPb7D9LDt6hqlyUUrTmnTjDn7q9PP/6YoWWr8BGBVhtLUqTtSXlJYmycgi7Ck4sASa7u+lYGWDFmO30hcNLYKE7wBOMsTgYejLJ4hDclpIiRYsqSG4ziVJIZlFUGElgxRnBkCLeGp0UYOuP1MidGzxaujGvqVdzjxf5bqCftyKY+UTTMB7JS89/1pezKO/Q+8wvT2TI0yoU3DMKHVSU6iUlY3AkAS1nrWDCYWA1krEWMAWiDgTWSMgUlzIlpFwvuJuyZXwFIFKIpzOOK1en+x1xmpVe+4ps/M+MkuSGJnRCC4YXB9lo/585bfmVUsqrAKxnDA8I4AMmmC0hhzOGEwB00esH9Zz8e1m834RbjmBkhNxiP6vHDrmCAaZaYi1n1v7dXp738ddZqa0KGGvfmrAdt/CZbjBWXzlyRRfGHt88N8MT9wFY7Us7VKRSg7O9GlsqYGdLIXgP1121I+OpXnDRHdyuZpbsxJjVSQpWCclKmJQ9pFBglpRSJomAqWmv0MDXwtDcMJAp+BGFq2KQYsJQ9Huh3/41Dzl1HxSARq93FHCZMFbovWLXjCnhI6AHZBpqc5/QbR/sdENFytce7Ppp5upEeekSRurhP+Lb/ug3Y2jpNxKly94hMktAm5IMKTCWAU9+zJCth4y3CCHXcJlOwyIWm21yXb4STDaCZ1rSPLH2Bvu2C/YQ//7znuL6Fd0WoIVdpTKXJz42P15hV10Mhis1c1f1md0Fy8b9fPG+q+OVxNSBRhc8ZsHiApylwUorIRprIMuTiv8z4cKVaV0hYUGIVkiXQ4hmSLcesu/2EIsBpDdApnpDDv8CEoMhscBodl0mfwR8KZ0gzZF1Ywf/SoKRzSDOwY/rNuP9uUYXfy1ftypglO9eWtUgUrXekrmyetSkvl9FqylxE4ivWwfLcsFdC6LbWjUog832xOLqllaXV9t2SUZaXTi3ezAZJ5GzJ3N5FzDeFRI9mc07A6ySwA2CE0urUF5FUiQhpS0J49RQ9yjYV1GB/4U08hFws6p1troPRLIcidUfdbxcHqAGOA6pYqZIiQyYbAVjDYDbCMbXCVc0AW7dYj4ocV/ZFUeu4X1I90gagvoRLf+87uQNl7/tSrdFZLJpIeBK+geImJWQkkHINIRwmCsAkYgxtyVLugomShgTMt0kZQLSlRAiDVkhITYkId1WyGoBIco1aKYciIGdIeesgmzsBbluIeSJj+s58k0ZTTreuG0/uVUBI1W1ftYE2mM8jCRAy2Kjyobd+O6mNNZvfwv+i8HlXbK1sifSvNrm8c7cinWyLd6VMbu7xa1qzqxO4LyLBOvCGKohUQnBysBo7Y0OB4PB+ZjnPRPmOLq0Siw1eifKrfw6mbxHsxdTxM3VPPe+yZY01zF5nS61foamIf2NDpIoI/OoapBZsbL65TPYROid/HLk6rOxvDZXyxxiFqqr10u6zY26FypYobbVdfV5ajgvP21SmTbvtD9Klr0HKxUOuZjPbr20aLiwMP+lnggUr6Fcw6QszUtxZ8mlmBffW1eDMTky/Urr8al76rq4XzRKiRop3TrhoEYKd42Q7jrhOGuyWacWqUxNS1OmkWWd1kw6kxbSW/yTQCKblK02kwkJ0ZxlMiGYcAUTMgaZtJtcR0JUuhCuC+E4EM0JuCs6w1UAOQgSV+XkmU2Zk9/kO1sdMDbOnnCClOwByeRKKXF39ahJ10YbVOno0n0rG+viXUsEujPBezLGegsXfTh4HyZZDylkD0antUlUMrBySXrLnOwUiKlqSHrj0pdkc0o5z4ziI1wIMQpN9RBihpV6vknGm4hRNAugTOkE1axStooc8nldHczuQmKsLm8Ah+qL94JWOOZLoAaaUTVDeftlNhE+QCC/jB6squS9awFa5Z4JkMtEMm8FYVRnszlVmbz6UTtoSVbZYAKVQyQ7PwFdB7NP9QoVXAuht7d6+Te9l0nFp1rRu57pviPc8i4o+Wx2MBT9quaqXAB28/oqVy4Fxt7w0gpg0gl7+aqsGZ4qGY9/lVDsWV1osi/tkX0Luzrz0N39Akm0YKCz0APPQEpxwVhKSlnPGKsTUtRIR9RIIdesRo+113e6uef2rR988qMVv56damiuyWRaW9GUTrkMrisgkjakEGUiVmFlU2sbnLIyOCGAfBxkSAsj+TeJeB3Ma6sDxkL1llMGHipS1rGMyb6Q6A3BukOgE5R+jmkLnz+PNvsuM2tYiMN0sOc3y8c2k/q0KZZvXBndss5o3XEUkkvnwG74OsKEtl2e9+L74v7yCWji1Xk9/oOWB3F0y30dGgkEwv8uOQ5TSnVMkCGZ2eLCxiszNnMaIOUGIeU615Fr4IgFaz9fMzXT4NZx28rYaSuTSDRkurXAmROHO5w051sAc9zqgdF9aKffs1b+a9J3RyHFJx8B2QgTigAvFVkymEqUaxVK1385yLRAS0eIhrYCe/YTM02TpAQkMELeTHDPk30NohGQqUh5FJnymZXHMXxx3rc2q+YxlvsgiUi5i+UR1ClCBAtaS6IEt+CKF1ZehfI18CJEJs2yRtQVfhbm2hgdNAER9wh5MfsSpSHjpWjdaS+wdAtKF7+dI+9RYlxkrQus/GZbRHDQJ9rm+Izaghp4Nf5ZejreSB4GlykbjPpcWvcz7JhZGGh9cgO+sE7mxqrrsDA+PHj/qOZ7cWTLg6GeUTRD4LP1S9b9JF3XsiZt8VSpY7c2JxozdiMyS5fCGT0T7ubOGrdqYEw/OmC3WGNinnClct+Jgk1uAhSnCG2Sh0KT9Ute+6bza7e4aoR4ui0PGUMLRQhoDEjx5LyNrU8gxptIv7GJtFsp/4G2EjbvheRn7+VcSc2F0v8uyqqR2mE4eUKh5KM3wFPk7/31VCSaarFcNvAemJM8EKutvqiUdTiq6T7wwu6YRVtwXmJv3F15OVK8DF3dL3DN+h/n1Yu63kk7Tyx/f8WfrCRrjgurWTK7pU42prEOmcGD4JiGyw531zf44FYNjM7kHU9mGf6oJN9eY7T4SuygnX32Za7GhUZ7VEHvqxA9lhcARjsd6LOOfKJg6AWV+42hIywg4gfF7cDMIEW+0h+a7eB9z12LgEGR0RFisKbay9N1hfSSAV0LJ+abdvKXq+KNp97xgDpfS9WeiBvpUJ/+muYnkxrr9SCY9CH2JrUeN795cu3XOmh/iJIKJJbMhVW3us1nzaIEY2MTMFTXMLy05I+x3JXAf9Nf3DyJQOmnTcU5vWKMv5fLjsOUygsRlyncsvqIXN2M14SUi5fPXXluvJQ1Omm3IcOtxngy0WyvrEv3BTLYzHWNWzUwtt65ww/jLn9QEDCaKBiwEV1909Jn8KO8GRoeqznbrX6wLXTK3StkVzRFvVw6+fBTeK5EmYtZp0JMJ1zW8DQKrwy5t3NukhD+hhPaz+IHL9ItEF1L/PIWneO0QYU2uXhGg8A6X2BUBj0YEn/1GxE4D4msyhwkhVYle3qA0Dv+4qDsTLRhxtXpcRI5zYKYsGMODbNvc22Q7bUzrOZa8Ib1hlwabqFC7VK4x8Iek+EeD/VSpA/yx3d0/CkzDQG9t6rnl8m7YtiZaqweuLf6Uvyg8T7skpkXeC+YI4tJ+fnn81b83OWsgUlrQ0yI2qxrN6WbmlpTnZAefifoCJICy/03SAvbyGqrBUbyPUxt6D8+LmJ3amAsNk2LgYffatH32gLAQgAZGi5eosWms5mnDzXR8hXLn7zSPF922sCilD2FaG9RGMkfJpX9wfrtDayaC1m3RN23xlwDlHSFXP8R5Nt/Arjt7XjRrDywDkdTi2KMlQAffhHQZWeIF84DpAO+ywmQiQrPckxT2N/5VoCf1X8KufQlr55ha63GM822Wbch4PtcCvHGNZDrFxVHcMq1/wHgIy4E3CzEa78Daj/xDMvR/or2abElAUBJN10WNw1k/LCaxSCxEE60u7y0IaIXXZK83il2v1Ce7aUV6XAhVi6dv/pKxniNbcu1krs16Ra7wSpraUqvRurxx+FcRdrIzfSzVQLjF8/0LpULM/0qZfx7JeXJmzVe+G4o+X57bfdNeJDkGsznN20xCZ+NRlmFv6eOtgSHffWizLNt2DbSregH65C/ALESiDf/AvH5zHzGyyy1DdkHTJNr5IRDT0Sk3W+H3Qq+y5GQzevh3rs/2K7HwDpIez+JFy6E/PRfHt8mNkZfuQJKxcyyzWFcDpVGgg0aB2vMH3VaC5+EePkXsE57A6wy2BbbZreIT56DeOF8nZ/6FBjK8QpYp/8HLF6uvI3dx44BBM1F3WdR4ZvtdgKsg3V8Y+fRo4F1tJ2DGJX/fI6r+e/7eftSR2jZES6scc+BdR8M8fnrcKf9UJW3raU1l4MpqvsuWDSQuUd8zZEYxnuz4Uy5xmSLhcZVWxDsv5v/np9DWPKSQqxa/uHqaxnnG6SUqzmz1ieYqM3EE42OW9f64C3IbgPGb3BV+OLvKE0vLqt0m53ybj26HF7WKXGzIB//Dn/aY4TRhIo8b8UB2rJMcQzShlNvshP40B+CJavgzv0H0LwmkmAhRuc9YieA8t5qosMmj9sqsEQ5ECsFq9oOfMRZGmhWzgGaVwP0fKwcLFain7dLIT5+FuKNP3lMqwAL8EY+6z4U9slTlbjs/udPkB9OhfWj6WAl2u1DNq7SaRA75RYYidWKqVqQGz6B+9gP9G+FWTofk1cRteSH3gq+sz7fy33tj5CpGlU3PvgUINkJ4oOHgHSt1o1W7wA2+ESwRKVidO67t0O8c6PO23TXNFtTuOD7/Rp8+E91Hm/8GfLd2zSr9T4KchTZlWC7nwbrIL0t17n/IMiaxV7ZuUeFiwwiagdKhPpaJe5lIBzYp78K1nVniMX/gvvPM2kLe2EQz0s60jcl3WDtcwmQqoNMNwKpWv03XQ+01kDWL1eLInNaIZ1WQDiA6xi6QlKH5FQfG8n/iigsik0qBibE6s8/WnujZfO1rovVUsq1Nhc1djbe4LgNLdsNQGZzNsBsVYyRxOc1s5Bsaiov4yzbqUvP6sPKqkomuT4wBh6x5rocFbLDQyb8pM8Pciu0b7jweaOaaDQhTnocvO9IiA+fhvPCxZ4uDUD1AMTO1MfPZB86CnLVewGoqGAwBZTnvkKe9d0H9okPKZFZkmjmZIBsi/7nZsG676Ymslj9AeTaBWBOC2SmFcg0AdlGyEwKsuYTyDV01Ehupc/l6Rl8mAV73D/BegyBbK2Dc/d+sI67D7z3cD3xnbQCAaqnEt/pn3TAynuoeso18+E8eoTB5nLtFtL22iWwTnkesnk1xMuXQ9Z+ohYT6+C/gg08FHBaIeY/Cla9Hfh2YyEzjRCLnoCYdw/QsAygxUehdAH6511jJZ1hETjFyyBXzIb4/FXwXY/yyu2V381CiixYWXewLgP14vLpTA0+6z+EePcOSGJqGuVDIE8AZB9xK1i/vVR5Vds4aUgnpVgzXWexUsjapZBLXoTMpnR/ZBohs9Q3zQqAZZ23xT+AzVw+Kt8uuyB22nRISnvtIr0gJjuBlXWB3LAEYtFUWPv+XAGiyjvTAmQaIFMaRClPd/Ydqj455pj/zWSNftNG4c+fEwFLVg72YclJCrl2xeK1t0DytczCSjCsdaS7oYzH62W8saXvjUizbaJ0sZXlq70uT4S1ZgCSLXVl5Yg51V26Vx9eVpW8MQDG3Lje9IwLEUR/BBFK0mTlcdhH3wk+YB/F3sS7d4OVdVK6OVT0gjX0FK2PW/8J7ZEGEhUaTKaekQcmoYLacbBEJ0iaWG5Ki4WK7nCgtDPi57wDWDbcWXdCLHgCiJcCsSRYvBIgYGhaBbn8zQLOf0YuUsA64ApYo87VmNO4GuK/98PaXx9a6L76B4gPHlQTk0RPWAnIT54D67ITrCNuV6DhPD0ekkT56I6fvJkmgdJuQOt6NaH5/leC9dhdM8QuO4OVds4VjAw0NZ9Ctm7Q4LvybYi3/wzJSDTNbW1U4rHPIGlFIda472UqTfHW9bAO+A34sNM73P/is9fgPDEOMPz/Qi+rRXAK+Hb7dTjN6IPurL/BfY0izhmBQCJmJdZ7BGKnPglZsxTZe8eqvuc7HAL7uLvUGHMeP1UvTKQ+GHsVeN8Reux9+gpYCY29LhAeMLZb0I2nk3lJMinWLl+y/jYKSk9nF4HJNSIrakqteJ1b1tjctxLp/1nGKB8bPBCuHAQpi8aPa7eTog/45jO1rBuj1XVBLlmZjGOJtBt3Um4ZHGdEMmH9lHbG+5+8Po9cMBlgVKj10yjozWAnED/jZQVQSnSNWGwL1pNAzVvh5cq5cB4bFwBjSOw0zSjVA2Af9hc1AVi8RInRsElUToDFEjnQI0bnZgE3o1lMthViyb/hvnylLpsPHqbMQNvKuuyK2OkvBEYN2VqD7B3DwYefDZaogniboqE5YBX9YJ/5uqqW89y5kKvngX/nNCXquXNuU2JbSBzxK+Qp9iSBunpAX6DwhtYxD4JvN0axaLF0plI38O+OV/VQrE1kYe14OFj3QSAdo/PcOQCPhZSFwRY7SlYIFYZRZa1CM3LwwaeCb7e/Bm0Sa0lHyWkxs8Gq+oFV9dELQs2nqlxixbtwFePXuswQ41UXBPiw8WBdd1GirFJfWDEwuwSs1x5gSTIm6Y9ib9TGavGkfPW0cF67HuLtSYEDkKnH87+zHQ5C7IR7FMATawSxQiphSTXEp6/CeeInavFDNoXY+JfAuuwAZ/rlcOdOzhmolH7T15WEtQPqqsf88vWI+Xp5s28LmhKlrFu3vOH5eNKqY3G7JlZi11rxWGOs1G7hiVjGSjBhKck+7Nmw0XgQfYGpEBkL2GkffqmwZF+LKK222z465M9w5cVqj7HpEqbcIjyBxHfV8xCo0IAwLZ0+EwjSMxuFGBhZn10JmRWQGQGRykJkSM/yDXy4hfhPZ6pJIVtrwUq7gFX2gkw1wJ17H9Bap9lOayPsH9wAVlIF57Ub4M6ZrEUwEktVDNZ2PiVdYA0frydGlpgjibQEABQrinR8HmWykmBq4nMNnrEyuO/cCqSKn8Kq2p/biJ3zpmKxxApJj5W9bQ8l9lm7/wjW3hfCfeV3kGs/QOzsWWoyOdN/AT5gP7AdD4Xzr4shl7wQ7LQMgYmBKvaJT4GVddWTlvJ4+FDYR98Lvv1BEIunQ3zwAFDWA/b3rldA4D5/gWLJfNg54AP2V7pS59lzizNs4cA66DrwPqNUu0rhQrxzG8RHTytWb+09AeKDRz0Rlqk2tPf7Jaz9LlEDNHPLd4GWdZ6xyke2In2j+s3XK2rDGuszArEfPQEWU0Fu1Mf98F9wpp2r+4PAkwA5VqbGi0xt0NHjinz4bkcjdvStECvmwvn3FWCl3cAHHwtryLFwFz4N8eGziB11qxKjlZhN8X/XLAQavoBM1UEseRli0TPhyCTtjbUvcV86AulaB3aJDavMhl1qgyUssBhX/2B5BjvfDchD17Z8gUO+JV5TBTu2qAdyOEKBh++AvXBi3e17VGRY9iIwdgwDSE9Cr3wEiSeYFHd0n7mwYKT1rwcYH9h1nJT8YSMoV0GfsHC7FytKIe4U2UDviSAaGAVEVkJkXIi0A2Q1MJq6k0JOLB0dA4XSCd4lJiZcMDcDa9+JsMdeDtm4Bumbh+UsiVIgfv5b4J0GwPnPJDiveae8+vvvPKZVzFxEYiMxFPvAn2uWSOxDKdU99kkskUDTyWgdFgR4lx1VEdN3HQK5blFBCddnDFR+a+S5kM3rEDvmFpVG5ubdwfvvA/u4fyiwdT98Fu7L/4f4+f9VE9B58TLw7Q4E3/lwBfDOi5dCLHzUK1euxXILn0Rs/Fs5dtZSg+zfvwP76HvAdzhYMyLSmxK7SlJgcAoBS0HYaZktA7MTEB8RMBJjzG1xC/WrcBA75gHwHccG3ZN94VeQn0xH7IdTFaMia7vzxGkQa96nOOCwD7wc1t4XqD5M37wH0Oody+I78kf87fP0cb5es6IX4uOfA6vonjesss9eCnfu/XpBUM+TTloTJ27nC1YaDHSfxw67GrJuBdyPXlDMnPUdAWvHMXDnPgCxej5iR1wHsfQNuHMfBMq6qrbjuxwG3nMwnNdvgfPqtR4wdnzaB0+amxk6YIqRjkRrTVYBokX/SmzwhAUe46qeKq57QF4L2vQjiuNCMyJsc881NgVrZ2hdgL83zWbHA6xroflNIr4Q7gk9Zy56O3pfFW3D2xdV2sK2K/e+obbhrUs6WXGMEILIOErHAAAgAElEQVQNqBx1w10dBQzzOfnQoGkyI8Pn5vpwvykJtvdOIJ5JFTSOVisFjKkcMLaXxJe/T8Cko+4TxtnDfozYkddDppuRuW0fSIv0g+VAohLxo28G6zwAYvm7EJ+/qXVp8XKIms/hzrymbT0j8cLv/hix718H6WaQuedoyJYNSomvxGYCRkFHfngiavchSJw9XQPj5CMhV7Ud41NLt5rxxM94GtLJIPvYaYidcDdYvBRi1ftwnrkQrKInYqdM8RjjZRDzH4F99GTwgQcpcMw8cITyGwxEt0gDWwf+BqzrrkqsJQNP5o6hiNH7Ox4Cd+49cF75NVjlAMTPelOD8x17KAOCfdhNsIacAPHhM8g+d64WcYM5Y0weSQB/IVjvYbB2OlTlnn1mAsSCJ2GNOg/2mMu16JhqQPaJ8RCfv4HYIX+ANepM1YbpG4dqXa5qD49ntDVIfANQsjPi46eBd90RYsV/wXsP1Zb9T9+AtcO+yviSuf8UiOUUsFYdzKD/UsT0eDGNk1SMnA8+RvUBklVg8QogSeqUcjjvPUxCP+wxl8KZfQ/ceY9p4F/2NuzRl8P6zgnITr8S7ux/dNAi/uVng3AkUrUOrFILdmkMPGnBImCMW+A2qRMIGDsC0JsOHHXTObKk4Sz+yYCxST1e/uDSgsDYOHviLULKC82bDJhROWrSQZvSRPKBXQ6Dw6YJgUTeqlogQf+ZYnmZ99v8TqsvRdPMEjBqUZoYY6H0o8wv90yuI/LZYW4zYTRNThNw2KlK56P+VfcHq+6riTuJyaQLa2cciGWzkL77CCXqFdt0Rm1kDToa8RPuUCKi+8E0rTMk0VfpHMuV0UWJcMpFpwQsUaqB8f4TFBDnPiHhRF32daykx0uc85LKI33zSFijLwPvNRSZR05F4uyZYCWVQTKZB4+F/GK2Knfs2Mlw339YibrayTxaaa0/IVUQ2+4AxE56BLK1HpnbCRj/AT7we5Ak7jev1+JmdX8tCtct021JTChRAZes/c94wFhk4JCVn5X2QuICHZIzO+0CBagkVtt7XajAUTZ+gezTF0N89h/YR/wF9vAfK/AiYITTkktZScse8EaiuvnAycp7In7a4+DdBkLWLkfm4TOQuOAllUbmiYtgDT0G1i4HQbbUIn3PCZBfzM9593AGnsgBY0hOKusK3mUn5c4k0y1K9UBSAS2MSncqXMQOvRr23ucg+8pfwUo7wd7zTGSmTYC16+Gwdj0Umacugjv/iSKRIwsqsUKt2pakVGh+CUcgVedqxkjidIkHjDELzGOMxXCxmERXDEuimKAKzlm2cRZ/MvURO8WrCHVmA4USlJAlYJjEXPmX7jMXri40fJhii9xaAYo9aH6krK18vroru+qqDii+8pN279v1IubImzuiNivo8UpJRtlzm3KsjreXY4wColUDY9SFOn+y5gNEGDz8X4WQTReS7/p9JE65O3iNDAbMd3amePHL5yg9I4m/1sAD1XNi+Xtw3rxNsUrli9ZSqwHAlF9yKQbfeL+9YB90GcgVhXXdAcyy4Mx9HLJ+mU4r06z0m7HRExUIuO89BueNWyDrV+jJrvwNCwCW0Y0K3PuM0MYh8pGzbCXeypoliP/4SfBee0B89qpya3HnP6aNEF0GQjathnSaQ04nofbWMrtus377IDZuigLCzK0EjHeB73QoxLK34C6aBlbSBfYBv1LGF2fG75Uu1tr9VPA+w+Au+iecZ84L+eapRI3thWoZq+yLxLlvaWB86ly4BNhUAgLmIScp0VoxbikQG/corJ0OVm2Yvml3lZ+pw1KqIaVCNJmpNsCwXsOQOPUesMqeCujTdx2tdrskJ+q8Mw+fBffzt5G8aAZYeTcNjg+cAbGEDFgcFLmdE40INq7nwIrv9n3Ej7lZq06U6oDGOY1t7RLkLn9P6Y7t4eOQefYyWP33hLX7sUg/MA72AZfAGjASaWKp5IIUDK6oySTXL21PPH+QROdMGM6IC6TqXc0YCRiTNniSxGjNGEFHqpljMIquHWZD5qDV/aPdStkvNzwcmwUmf+JKcWfPLgvnsMfhytGj7XprQ//qlz8g61rRD2ucM+E44eIeOgNcG6XYUgb5Ghjuqhw56Y22Xm7vnnvPznfCwVlqS6y5KBWw7oUw0A/p5CtUI3UPdY25eitgJJc6ATframDMeCdJRhi5and1zQSIIp0dvBs5vCkoF9Mg1XMI0LIesrUB9l5nIbbv2Sr97L9+j+ysycp1Bs0bEDvkN4gdcJG65372JpxX/gJ36dtaFCbLYRBsthDhot0lxD457GE/RPwHeveI8/5UOHMeUVZQsorb+5yjxTgp4cx/VgMiufvEyuG88w+4S8idxq+AHz3Hm5jCQfz4v4F16g/33fthj/kleOf+yL78JwUa8cOv0oD79l1w/vNnZfW2Rp4Fe8xlkKveR2bKOL0FzmyfCA4r6bHfnoj/8CllrU3fMhixo++EtfNhcN+7D9kXL1dW4sS570BmWpB9bgJYshL23heDVfeDu3Aask+fF1Y7KCdrhY66X0lHWdEfifP0MM48+VOIj2m3Dj3iwP7BLeB9hmuDFG1R7KH9QGXTeqRu2UNbtf0Atyq8qpd+kI/eTxXb+1y9UMUSui73joNY+jZ47+8g+bOXVXbpyePgfvIy+Pb7ITH+UTA7rnSp2eeuRvY/f8uJ0iRSGztz/Ca0Bh4CRscjrPwv4if/A7xzP2Rn3gixar7yOLCGjYM95Eikp5yL2P4XgvcegtTNByB+8p3gPXZF6u+HQ6x8L5h50V0weSzNuJD/rIdaoWgo+pruZgaXGGODgE1MUTFGW4vSpGMkw4vaiu4fuFbA2u/TGdN7wpzDxrz3iZUqji7A/fysj0//Mnuxg+Eq5/2iDNmGDBtx51d2Jq2krXlryl8RjhyV7+cQgVUTGf1o0d4Yz9vLHwHZoGECxkjiNAGjA6QzoUVSRxQxNMn6FI0gzmA09mJQypBsEyGhweomgNIuiB/1V9hDj1RMIjP9j0qsip94q9qJ0HrtborRWbsdgfhRfwKr0lvgRN0KiKWzkH3tZsg1C4MA3N44038qeiNJohkBrEWGFy/Qge+a47nlKCfibAoyTY7dzcqxWzuC0/e00kHRJCkgSOvqxkpQ8qt5ynKenf5HWMNOVuIhiWlUvviJf4M96Ailn8s89CPIbDOs7fZD7NCrVFu7i19B5vGf0GF6hm+e15IGQPIdRiN+ysMK+NI3D0HsyNtg7XI43PfuR/ZflyoxOnHeO5DZFoiPXoQ15JigO5y5DyA7/Vdg3m4OXRfj+AhvceGdBiJxzqsaGJ8gYHzeD+etfDVjB+efZOrMfRDZ5y4J3Jo0kCr1sbJeB2OZRNjD/ojYfufoR9JNECs+gFyzCJJYe2ln2KN+qO5lX/orBInOrQ2wdjsUsf1+Grh0Zd9+COkpF4KXeuqWaLxK10H8Rw/CHnwEUveeivhxN4BX9oQz7ymIlfPgLnoB9sjTwAeMgjN3CuJHXwekm9B67RAkfz4LvKoXWm/YE3LDZ4EVMjqcQ9ZJv74eMQlNR/90yGKRpbz+VTpGAkYlSlvgSQMYycikHCh8v82INUcNdgMFQ9gQsckYZaWvnOM95tQdwC5YV9DaHEGdoj/b0Xp1NJniz7XevdMOiayc5Qp0UZn5QTr9KClm/UNHcuYmUl5gAq+hAv9h3/1HWfgIFCPAqBo6V8agHP71cFSynAnbfC8qeUSov5oEe56O2H7nKh0PsYv0Uz+H885kWLsdhuQZjypdUMs1g8G67QS56gOgvCeSP31KDVy1Y6XuC7TesJdiACFA9McCsZqBo/VuidYGSNoO5oGe2u2gdqF4/oEkT5COjqzWtnYLYdKBILHY1/3lKYf0BXvoMUiMu0ul1fLXkUj+5EHwnrsh+/odyDz3f0p8jR9yBZz50xTzSZz9HJzXb1NuKLF9ztELwtQL4c5/MvChCw00+pGoQOLM6WCdt1dVFcvegVizSIE3+Q6SzyUZqqzvjPO2txEI/UHrGxtWI/3YjyHXfeT5J1KCBYYyjyFxyiPg2+mzT2T9SmSe/xXkZ68q/RwZf2KjL/UAima6C3fFbLiz71QGGO1W5qVN45ZEaXKKpbHgT9ZkJ5T87FWgtBqp+36ExFHXgnffqc2J4342G86cx5E4/jrd55O+pxzplfHFrIb/3XGUCG71+y7SUy5A/Khr1KJFxh3JY8i+eA3cRc+p7ZKJs/6pnpOuA+fNu5B98x+KyZJhT0kk/sfre/UnSjSKld58zhw7/nej7ASM6UapdYtKlPZ1jCROkyit9alF9YzGfAt8iw0cDaauAZqWjVomxZ7s3E8/+bLI9bUDIxXQuX1H8iF6gjxBQt64QekLLQkGapkoEXonPLOVhEMOvWR8oX8kSqfDBDgiUbfbfnkrqxeJL9pwNMFLLvgXWFlnOB88B9Z1R/BOfZCZfg3E8jkouejfevfFuiXg3QciM/MWiDUfIXnyrQqAMtP/BPez1yE+fyeY5OGy5n5R2rH9zgNL0j5pMq5UALQThYwvcdobnQTI2Vs5EpO/nPZvdBZNR2rySdq/0fuE6kcjULhInvcvWNuNgvv5u2i9ZYya+Fb/YZBNG+DMI7CzdNrxUmVp5VU9VWqpxy6E1W+4EtPJpUc7ufvCldHUUiDxw4dg7UqGlkY1YWlrmwIv2srmLwwBpyWLU1w7S7uO3iMsXDhv3AbnndsVTciBmEpF/Zc49m8hlhnUuXGNcnshVqe2zSlLvrc9UKE0bRZIAyIDd8V7cOdP1fVQHg++OJ1rQWvH0aqdnQ+no+SC6eCd+mtH73gy5Mfov+F+9Bpabz0C9t5nQCz7L8SqBVpCiOsAEXkfK4bSKxaq3VNKd632p3O0/HkkxLpPtIph6NGIfe9y8OreSsep+j1RCrFyPlIPnQGxfknIt7TYwO/I/MifEzo18zrFJ0g1SdjEFAkck1bIXYcCJwWxNc2zfkIFi+KCeTN8jzZDAfKH9gWfPtLupO7AA98IMFI5sjdvfxOAnwUBPyMNaVazrXLnkZxIWymrNLnrBMBIq+TXUc3IEKKgCANGqd7m1X2R/NFdSg/XesuhyrhQdqk+CCnz4l8R/94vlOWz5c97IXHsn2EP+h5Ewxq0Xr+vUsq397H6D0fJRS+qx8joQqxDMUjSlZHxJdUImW5Q+6RlayMSx/wR9q4Hwf3kdbT+jazeOd+/PIpCi/n2+8EefjLcj2fCeW8KEifehtieWiQs9hH1q9Dy51F6H7Cn38ub5T4zJ3eFk25HbOQpSE25UDGf5Kn/AO+1a3tVz92ntr1xL22sCoy5xuiQLuLH/x32d46HWL1IuUbZI37UQReRXDbpx86ES47RKlQj7RPXfoehcajiOHr0R9FK2tViwR52EpKn3KwSa73xEIiWWu1mk01BrP7QA3CPkZKlPmYwX1+soeBrvQajdOJrehFReuKEyq/56sGKxpZe8h+wCu2qR+MoNXmcWoSTZzzkAWUD0lMugrPgaWXo+SY+tLakm0SOLXqMkZy7lbuOdxQ6laXQnI6SU7/MhXBCJcXY3dZFn+poIV/B5+tAjILFkn/vXSpSiXdcIYeoBwosTb6Pc4frFVm61Pj0GCMpf2UrsQsyAhRgLcbxoL7A5OupcirksPycC1yWn6L/LlmDS3/xhlrds7MeRfqRs1UorbLfLVKTsvX2YxA/+mpYfYYi+940pKddirLLZumdMPNfQCsNau98rvyjMnWFrZ6DUfpLvR0v9fBFELWfKdZAaShXHfJzI3ZF3xNlsHY6UCnr3c/nomXSgYox6pS0+5H5Ca4Qg1LRc7jaoZI4+Vbw/t/V7h4UtcXbbkgiqVy3BOl/XQuxZkFuEVLJ5tLWUWw8h1zyv+09FPEDL0DqYTJQ0WTlsLbfG9aAEWDlxB7bXAIhm2uQfeV6r4za4T8YV1638e33QfywK5C69xQV4Yj3GwVr6NHgXQbobZvEeok9q10oxIJt75/e1kdMtvX2AzWLVZsHSJQ29ZjeOPaNMV4ZVPbky7rXaUiedKOSCJqu3A2yaa0qIvO2uAftTu+ppjbkW6/tyOUoccx1iB9wLrJznoCz6EUkx92m+pDGS/aNu8F33A/x0efDefdxpJ/9DWQTHbolQe5DJec8Cd5zF6QeOAvu/GfUTp5ceF9/IvpNZ/aXP0V1LMyctGzuS89d1d9yM4SMoHSagzK+EFv0RWmbaUd2ZZXOjbzo3PfVZ8EjxlyPQofF2GKeYiPYZZ8W39bVYVDRD35jwEiZNV/Xb0Qixl93BWhTbwc/hci9iYi5+8qNQjFGjzUq44tpHY1mGV2XzJN7zYlpPtdGsel8j/OegT1wb8imGqQeOh9IlMDabk/ER+ugDK33nq4mSsn4+zWjvPFg8H7fRfKkG9Qq33Lb0RBLXvPdsyP2SQ/gO/VH+ZXzNA44eqeLzFIg1FbtlEx/lb9bg2KmVp/dwXsMhLtqEVr+NDLHGINN3/4uhNxADwtGXhBcK+HhlTezVVQdan9COo+FFhxR5gzwtoTSrKB3yBldJeHFqNT+MLl9owHAhhcpVRAF3JH+MIcGgR3lYerWaPX0YzIqZmvMArKSKpDSoio5XetAHb7xxRCjA5OngYYhC6NE/IDzkTj2GrWQNF0xEGjx521kTBOKBm46EcUbAeOJNyO+7+lovf+ncOY8BmvnMUiefBN41+08RKMtjwJoqVPO8MQslThN/ygqUHUvZP59PZx5Uw3G3PbCk4OHqDhb7Hd4LhG7TjVD6xb9fwmufBjVzhfl4to+/OgnpDpjO899jzY7WDybzboHlfxq+X86CCgdeqz9knUomY4/lP1Lvz9IsCuUz6H3WiHY8Z0WfEujryA2VxDTwqwajtgiGV8IGGm/NDl4k1U6cCQwGVKYlIcPlw+vf9EhlA8furS83zCUnj8VrLQarfefDWunAxDf+0ehxmm5/Vg4H81E2S9ehfvpW0i/+Fe1wpeMuw2Ztx+A++mb2o3BeMuEBHWnpBolZz4MpBqQnnEzxOfvqhBgjMKRKUtw7qPmfef+yulcttRBNHwRWODNsz18C6F5Ho5ieKZ1sJBjqcGW8vqz4Nwzw3x7NTPdYPIKX0TU8t1ofC8DD1uD1T6MxSrVQrAfPO9bYNUFj1P5MX2D8kWsqH5Zi4E3xckkR3irBLL2cyNqQ35sygAqC5WbMSROuR3pJ3+hw4mprVVxZd22B+4D1nV7ZcBj5bQNkBz8adtk+Py3ltuPg/vRyx778+Ubz5JfcKzlH6fgPxaMEc9dR6fmzxndzrRmppoZrCRXOkZb7XrxQDGWE6VDwytvjfOIQEAnfTlHP8j1PJkU++WyiR1HoI49+Y0Do7yhb4mTBVmptUj9ZT6RiWcaX1zSBRnAGMqmEAn9MuXI+QuBd+qL2N6nI/381bCHnYjS8fcoVkeg5Lz7BFLTLtfmTRLjyMjgR+GhkdSRiDx+OUmUVaPDi5i9UeUvhFi5vavmfA8tH1HSRg+aLgOh0WQ2cqTBDWlUgTO5SxlO04GwZu4aK4ZqJuKFQLUdRtTGbd/xOCiHiooSnEgTRtgQEhdoIL9Z1QFaHsFVeftRf1QjFuk9o5DF9EyKAXtxPGkskFqAouwkCJRpF1aVMmw5C6d7W0U3aqDohzdhvvjAaCu2yLUPY0IDo7JKk7/mpqKP1yycs8X1aB3W7dL1/pkRm1C5wq9satG+VAFar+m1vw02wxHKzVN93J12h6juDN7UCL58MVgTiQHGwAhNDDMsj/+YjsRMrDEkSmc0Y2yrooUE87YEhsKCvOeKpAaSACNLaawEvKKH2gusDCJkfS0AfoXwJupkWIi1RjtBY4tmeUEZjUEdGt8+WQsxKd1KodPjvIzz5kYAbsaREb5jut/aClC07kmLvl5PBCDoiUeBGO31kgeIXnVCTK/QPG1v3hbtrzZHsdniOaaYl5c/sEJKzvDxaiH+71Ok0O4ZjwkZB05pQ60uQ6QkoaHhA1cUZMwxFTX6mnOh0DgvNFfMNizWbH6VPOcGtDYzaGD0wJGs7krHaACjP9iCAhs5hQoeLoHFIQQThycvX6WtkF/x51sBRqpD5g+97hISP6XGFD37wdljn1zVhID14VzwZfoAJhPY2upInzH6ojQFkWAeMAYJFZtFHen5jjR+W7O0vRlcKP3QCPceaKsORXu0HQbV7vIRKZw3C0K7morm7TVu4HiaS0tH7MpRSK3jy2evHWn6dp8phDBFXsp/tI2p4gN+gZhZ/ltRcA4t+iZItlcJ1fdt9KU5NqLjpNgYb29cRt9r73lflG4hpsgDxmgpUZopcPSt0ib2hbiP0Q7RvlDqacYeif/6i1Pba65Nvf+tAWPT/3XvEUvyBeT4LZNlWq/TpTvcgYOB0jJVH+v9WeDL29zSGKp3IEordx2pwo75wNheX0bHUxSQ/d+FxlZHMLWtMekDf1vMpth4b69eZrmLMQF1XWVOu4C8H74hQiWQO6XP45TaUZ+e9Qvti9SBf5oBfjkiGGY79K6y49DqaJBKz0Ibqlu08MYKWbQN2hjd6p22Ot1IP1eTcII5K6wpFhqJdnR2bQwwFpjpHV0nOzpWollsypgnUbq1hcM2gJHHmLcl0NsrHR34HZTZbQv1TjoztPSPNcs3Ffjae6+jXddeOht9X/62c2Vaxpa4UnYNtUcsDnfEAZBduyuLoPXOTLD1RgAMf39mgV5W4yuwSoeBcaML2MEXOsLDOphU6LGNSndTR7yZowdyoTnq6/iKjRLf7cQDRUVkzH/tVdwHV2U00yCrPXeIURieP/5uqejq5E+s9vLpyP0oEBbpgDb7JdpOHVaiGYy5DY1jR6qxuTxDRvLWZgJG2vHClI7Rimu2GPgxmsBoLp7FFizveQtoyDp8YMW1q8kv6Wv5fGvA2Hx5tzMtjn/QRgJzfKufsRjcAw4FKqqAbAbWay+CNdbled3ltR+NLwpUSzvjlPHFAcsa26C8JizEvtpadTsy/wq93xG86ggT9J8pNHcVczN1qF6PtsmiCrIh32iam/pRybc9SZlA0WQXxepWcCSb9TAy6kgbRvG9LWbcXnp590N0yQsGFzzkHQLVluRfTPlnFFrt1S8wNovN+I1qVzMf73sU3Iv1ayGmGF2bouKvn5ZmjB4okvElrv/5sRiVp5XXNu0x3mh9KZSjI3BxxbXrtPf81/D5VoBR/hY8k+k6Kyvk8KKdX1UNMeZw7XOXSYPNmw2+fKnh8qDfDDWavyVQnRwpINNuDhgLjYaCANEBqtAubTDQvhgKb2xnbhSF3NjEizwfHfX+Y+YsNl7VkWg6kHexBztax0LPFSlTB0qT5w9UrBgdLV6QZ97sMhvUG70daS+zEsXqXiidQqhVbJX1N+60lU575TDua8ZIbjqenjHhidHEGGmn6JexStPeIs4Wzt+wfo8Rd+IrC3oTrV6Hxs5X+VDTJVUHWbb1b0e07WAutx8IOdIwyqRagYZ68E8+BL6gwKXhUmmdl9DbXsmXMeOCF2CMAaLSl+jgLbocR0ZkdJkrsOypSwa78Db06kyDm5El3SxPG2kGluNIx+R7dURi0kfr3N5yba4+HahzUJz2qFlBW2sbM69Q3gX6L+d76aVl0J5wfxRwQ2m3zJvmutKhuRONqGO+ZI4hf9AXpXPGOI2CXHRs5bVfcfaQ1zTGBb9dyYruOzUpxthMjJGAkURpDouMLqRnJMqnfPN1gYJ1MpK9/lm4UygGheOIoytvqKN9jl/551thjM0/r35RCBwSuG8YSBV1ixO7DQV2HxbykmdPPw7W0qwNAJHO1g7etCPEA0Y6+6SDzWb2S+F4dW0v1x1hFOFncr/ChKcjKRWrlF/y/DSieYedSvIdqcPt4TuO+PmGW9Usf87ZN1w/cy4Xw1gzVf128RiY/spYjCxG38yvj48MujTR9tA1Ldxjha621WvF26TYiMj1b+F0275aCAML1ye/1n7KbY1Vc0NE/kiQ5EuD1iYtSivWGCfG6OkXaTugxxgDA5Y3IMwRQ76tCmw95NX5eH6vKkAPe6Pkr7X7f5m4i34rN8ye+EdIwSua669iY+5NfePA2PCziv0si7/qio7vZpc9egGDhgCdOgPNTWDTnyuMCurYFR2sVjNGB5y2zKnWNro5mEkFhoC/9Sg4klA/83GP/fDgnrfA4TH0qV+E4Z9PxYilT8D2z1cJXCgKyJN5oqPvh+kvlx4tM5/zv7crn3qVMV1FzLoGLVWorv5N754aeQbMRN1C/PshhPENB5EjH6M+qN6AjkYsVkkVCHgaKoc3IbRrR1SpaoBX0fhZHVhoCrWzaorotCsA737bh9rdbG+vfyPNG4Y+T7wIrQyFdBNmFGcvwbzjM83dRZF0g6YIPM/DiuGgqAXu5y0URh1VW+XGghKlPWBUbNEAxoAxlpVD7rob0LMPUFau31+zGuxVHdw37xPpRosR/5GHV93UoA812sSPfOxEq2G7Pp8B6McYFnGJn200MNKu2LVjBl8Bxn4CyL7dZywoo814HSkTGR2bL6qY4YKNDnZMmMt9Macmv7M8uVStJN7ECzCPnhF0DKYEhTxS4JjRJ/aZm5t0dv6JKvqXz14KSR76nsSTw6/B2zuMC1WzqmUVjpp3NYau0FGh/dTCGw8NB2gDdHLP5FxhwvPGZzFmljmeZVsUXVoi49D5zbnJmnPtzokq+m5OwR+wIH81VuZgcxIauzz0i8Lz2CHlhzq+SfW5vq7/MrjSu0fXKLykMjoztadFvxN+V8UG8zaEUBGD5veu5drULLpn96ZgNPosOKXX1LvDJJ0RoL8zhbbaI1I9R9cBLumMWf+7vk42ALquvkum0qB3PViMUBlzDSkw6HNjKddXuUnmj6Yw7JutnQtgEu13nz371/2ezrmPm3n74zyXSi4YRM79KuBgxujNjZXoBlpznIWFXHPkewOGROkoY/R8GHsD+/wAABucSURBVFUUPPI6OHEcUKLPIwo+ixYA71LovSJqi9woUWW2OWaVrmrYh44t6AgGFXqmftYECh31YHCP4bmNBsa1Y4dMkcBJfiKJDOtc/foH7cfKAlB7QenRMfCpjg6YnQdI5n5LP/1CBTTX7CiwqR1SZJH29ktzP0hBCIAjPhFmAMzIObf+dP37mIfRlOiC9RXbwaXzgI3P7sufwwmzL0PSMYIGm2gbraxZljAa6g0i5pY5owH8r7YlUZIQZJlDayp0YLkKpapOryegAhw6WUEyRsZ/VzCWVYGzGMvScdCS0z04YCwrmHrWEf67HA4kpcOFpANS6Oh6AkDun3ziez4GJ0To4328+cppFkU6L1Qvg1/Qa9625LxQAR1acY2+iIroqkjGGhME3aLzuCRhKEG3Bk9IySm8AZNCOQ1JAZtLWLQzmUnYELC4pO+SwhPFoP/SM+o3h9SnmUgZk3SN4o8JWAS8+tBvLSVFu98HAX8BC4edCW1Nymd3+fipr5htHx2Lhd6JElx/Yvlp5es4cjhSYPs76RhbmizYcdIvMs8iTTtY9QmByir9vcOB3n1Cc0k+Ow1s/froxq/gGbN/6Ts1rhDih1V3ND+8KcAo559f3tgS/1ACfkEcbmH3jQLGNQcPPh6CPeG12Ycc7JLuMz54oSMFkhNR0pQqf8+VcpdgNSgACgUVgtFOLvSeVyi9dVRvC6SAtQoYTZSN0kNTtDAzD6homEc6PIHPuo3AGzudjoV9Dg50n10al+K0189Bz/qP2m8OXxqKgDUxKwZGgOaCSYpImiHwAkNGgGckZMayZLLKcreXHM11sP+bgUX7RDPCoueYSyDImHRIzUrbplQoNg6a6WFG5iMOU+cwqXv6EpEm9Vtdo3vK95o8U9TZPSpJdd3rBvVXNavnjmi+5z/nNwpBrHnNZIfRhgu3vE4/UMDkwW74bfKAiUYeFN47/nUCRg+RVU/4bpT0HD2j/qqDlbyFnMDUg5zgvtbSqKWDnvU4sGKcHqMlMLWYgC0JVIWkqItxLhBnAjEpBJ0NmGASCehTNeNcihiBrQQSBL5Mg2oArCFcizZStBGD8d3+sGz7iY1LyAdGHxR1dDfPj9H3U917HyCbBdatA0jlVVoKLPaCb5vspxDJMOa0zbC0Nd28e7fJ2Og90w2zJt4pIc8ykPeqqj0n/W6jgHH12CFEMY9gwPPdEqnj2AuL24rpFWrn+rNLf8OA39OsjwzhQPGthVb/E9m4X2ANKdRVKh4jBWAmcZrgROrjU/XHTD0navqiRTh3X+AsZoZhWNp1OJ4cdS3WVO2sUo87zThh1qXY4/NnNbL48CIgWZKtI320YCwNsLS00CoZUi7jadholUBGcmJujBidQ/GiiZ35sQY0sAn0yKaPtaQsXReLT81YVoMXkUmLutSSHqPzJqpQXE+zNw10mv7RZJacUWPpe/4z6j0tDWnA01oHDZ7+tZwUl2tQxbsM8KUSEcE0G9UvQ0hSz+lh1LMeYG8sUwyNqQhomkCn2sADPaYDIPpDgwRq4ssKgujQQ2/I+HIitVYAlKo1KLShHlZ+7RmtbNRaOuiPar3gPXVqLEG757/uxaZQ95nWClCHqzw8xqrst8RSIYidyhiXMsEEkkyKJHNRYgkkpZRJLmWJbJX9KdyiytyD5lwFw+ojv9JRBUtunvhVy7VsWJTOCdO5J3OGHOF6xhdijN4/Yosq5okPjF7SbUNuIRkgjCBaXyKvq7yr9bIIuLT5s37Wxb8G2NXGQ29Ujlx5IGOPuxsFjGvGDFnLGLrEhLNjp5kfLu1oIRrPiA9iFp+VldB7/Tbp0/6K5QORYoykY8ySHESEK9fdZtaFiCjdN3MK5eqHCvRC+pEaK4Mknh3xa8wdmgsvtseiKRjzn+tQ0lqraQjN/Z1j9yLGUwQy68p3Kuve/EmTJhpCcpoPNJ3ImOfp3bgHWEpbpvV4ssJJ71LlusfV27HJTZa1wtPzqbWAJAoveoTS21GaaocfAZQPah7AabDTQMaZSz7xckPlrmUPDf7bOQctvfHRoeueXk7vkXJbPavCxitKqQBSKXO4vu9SUCB/xvjPqUb0LBIUstG7bxn3Ff7471Ei3kd/s9RpBRszTOhAP/N5oldueNYH91XN1X1trfF/e3VkLleHNyjAI9BS36mzci2pAFA/o6LvUsQ3RpK2pQBTarDTayp1sgJDyodkdQW66h61jMUYl8wR4MpQS897ek71vgZogliS8VVa6rr3jA+uTLCY/DhzjmKlvjHIDzfJPUUqFc4LY0lo68Uh1opYb6dRVKKOEreO9kk2zZBJaaOLb3ghl2S180XHPw6oTi5NM/eOdr/uVovJtHDdfarvyc5tr4xS/taun1X/R8bwS0Pp8BG33f0rht2idtNsHDCOHUKHEn/aY8YHHQ4ZJk9EvKE8/qoA2ysnc0UUq1Hx1kSnQqgW7T2/JbwDi7QBRusa1bZC5oVlUs95Da7S0AnpPdakqyC2SX+9397ZUvq+vmakoL772+AW7XQEnj/oWqQT+iD6ZKoOw+Y/gt0Wv4AeNYsE286etLz7qOTbA04btrjb6BGjP7nxsX0+u2uRMhkxRpFGKWsFaASQJP4qwCMxWDJlT+qdbbnEYWzeukTiX8rsQUyPnieW6AGpAlHJSFkm6JvUpgR11f+uAM8DRmoZx7Jw28iXftMQ7zWcSTc7aMOLt5308c/+TXilwMsDKfW+B2gK2ChXPz6SoANJlQtFbkT7z3MPTP1QkfSO953AMhxBMjesbbI6ej/NwxjMgU/66uhE8J91BRi9T799TWxagJn3FVgLMFdIRmV3XeoC/WE+2HrMkNLzQdTi9A79ttSSRGBqS+8aMU+PUVIa5IFhWSo6GCdIVODnSjpFlERzbkmLCSa5YpuOBk0Swwm7lDFIU1Ddk3RPA6syJtEt6m7pIGEtzVzu6TZzZ197veF3ivJz9XXYEezRyK1BS8Xp9b4zLpVTNt1XbLZAfGCzD2ieNDfQ6sKU+ExitHbVocp6+kWz13wdfyEcCDqjDWOM9z4H/tvQlN6n3+PwTpMrDJH1syY8Rqaf4K7EJzHGDyoddUOw93qjgHH1mCGLOLC++yvz928Plf37tT+J/55x/IYOVwuAxHdmLbIomKuUD0SFvGECNud9UX+IzamtgdqfUekaSX5R2OOdc+Qw7c7jgV14t4ZWAPqBW4N+8VvK+xvs9PJ/A2go74nnxlyLxQNGh5pHhWZQTDCn9ko6jWsunrnPry3XcTgnzkZ6QEYSSMAg9TUlXYlymdmx0nEuWZOIn5/lzLE0eGrA84Dvk96Hdtll3YtrbQ+k6D49p80KZEohxSXtGtBgR3/p923DX/5VTbzvsVTomGj9+IhPr75kZN1Ta+i3gywVSHWJ7ernY2TXNT5kdTA3XobuW/khZ0LPuvnM0NcKk/Uia9i5VLoZIEumJe8T5KUKlitUNmU8Q+n4t/1n6Lx6Lx3KIks2de+TFWDqMTrNlMCR8rT0NdqUwATNco91kgnLLwsBsaWBVz8H5nDJYtqur8BTid2UJgGra3HvpIHgGgEkKVGUSOyCu0zqZyg9BgJPrhwS6LuUlgJaYXHhyJLYisxNkkptgqH/3R/kAUKaSmddgdA88Pex+xMwoBSeyT4ATg2WCjg1+IPYoioggSKBIQGjJ0YrWuwFGgmxUcM7KIotUTwohj1KGcHl9dX3ZH/RFj7J9y/r1JROnS8kjmMMq1wbP+r03Ul15jsbBYxrxg6+k2xJPWbM92Kqtw2PG35of8+22LOOgDrmJzSbom5vCjULMEn/utFBeRY3490cu/NZo+fTqEDSi1Sv5FWv7N4qpWUq739B6ED9UACSBggGZaBONtQgBJif9dkHb3znLHzaZz8IP+S/l50t0mu7NS15+ZCPr31mQO27tcRpCbwc4UrLUjpFQeOLmI4StMBElkH2TbdOdCwsqk2WPgtXAx39s+k+gJk7/GyHFC+3f7DkqkXSAk0ZGXc0YKnfHgBJi6nrpByOW5DXj/jPFQ3xnqdR8eKyZeapSy64eOem15tM5XHCZjLlX/AOpUiQzdr/JIFkDLI1BSTt8HV1LcbU8Tv0DDlntJAY29rquInCLhZEUIjAm6PLShPpKyN0Co1ZRq3gfYg+0VeiCyXeX5YFS9LZONGh6j9E17OS0X16znyQ2eG8MmlweiZtaxClpiCPMDVGfFW2C0bvBddtSQDHFAgToFkaGDUYx4xrksG/t7LHWNaaPDnbecM1TufGLwgYHQJJR/IYPaP1iJyAkyiYSyCZlqUla9NTpEQ8b1umyRBDQYINQIwCZh6g5vSH1MOv7nUJRvz3PpS2bvAS0fNHhQTzWKFmiNroooFT6x8UgG0M8kTBw3w3gpqW0pCIEzo96E5rG53avrsxxcOaMYP3BWOvS5sP7fni+/PbSrruVOzALfutrIvuPqaZUnHBkHLG7jU/bYU5eahaPGcFjL7oS6xRue94Ry6TPKpYYthXJADFAmwwaCDtHOf1fg5D1WDwixN5P2uXYE3nndGa7Cw+Hjj60qrWxYtHLpvyBTFAy4bIusTamAKtWIyipGUVoMU8NihdNe0lTaS+TnrKChsnu3bCIWAjgJMeCMks5F9Hz/nrOfOO+FWXzNqsjwxKXZ9lssR7rhlAaYxJ9TcO9feGnV6/qCXW5bK4aH7gwiWHX97FWRoo/GQcsjwJKTOQDSTzpyFLyY3H+2Rb4TZ31uA2cANcDIbEib5xO2/h6ajSaJPHc6FjyfEY+OLVsJMOeIyAxAfRJrBupWA1JWANLng1gLo6fb5fUIAqgHnMk5M7bOTTnAYrBzkmA82kyi4H+Q4wNBOE608L+QrEJeMecLY6GlRpgaAYJ6VxsJQjWToGVuKClSzvcyRrLbkWahWQNbKq4YzmLms/JLAlIM4yybNZcALYhB1j/neWFaWJdZkZkqzbxuQJ1Fc+MSkCgGqO+tvO6BkFoDkUNcH23UGn4vkD/4B95/4NY9/8c7ASBrxCsUmyQHvH5xAYWp5u0TtRN9qYphTtz/eQ378xx5Q6IDy8cj3DyLcKtdmss2/XKSBV1SZ9NgoYKYe1Y4e8CIaa7i/PP6VYjqtORLfSGJ/pSDYoqLDBqtR7oZbwfCV8tZ/RsXmWk+hqYbLMYJXzwJEU/8pQ4jl8EyB6orYyisg4Ym4vMJRA8Do49uqANKoiFANKowzR4Cn6t7E7QQE7c5vL+V4yzuticQgCKwK1uIAgpiLJM86CTNIZ7zaTIgNJrCpZwoRIM9lLNu1puTi4pqriavJHKEtByjiTFOO8ItEgp+xyz4CPq0bfd8Vr2x9YlYAkp9LqZI651dDvUv2b1vfOLZC0XIkWSNEMefegx3ocvvCkNT0qIft28t4j09poOGxMDgg3aYRtwS+RYWPxzxC3O+dA0a4CsxrCIMnLwKgd/aquawLr4f2gezWtYJ1LIOkvnX9Y1wryRVAjhZeCNabBqlClQDW2rO8vmMsvzzWbXO12qxmbqmioYXEwAtbyOJTvAgFrmktO7NgSoqykxn1Pu/gYjR5gm/7iy0DGj9DX4BkjDQLM1kQ1VncehLcHn44Ptz9UZdB9w4c47/HDQqKgr3P3nbiVvtJnkL6Bx2eMJiaYUldUujTHUPSd6Pjy9Y1MLnFSYv9uT2HVpgzBjQbGdWN230VAvMcYO637jA8eL5Rp3SnsSRfsuA5FWtmUUrfzjm+dVuzQY4+kdyRuoxmlbl07vSOYzC2wbuJzSN4cBkQTBA2wDAFn9LrPcv3JwZBNlcQGpWKx+pJSJmRKg1pZBRfEUirjdVIkIKtLIDes1y917ge5dh3glkLuWo8rHeCJmnIolu5UhrUS13xnye8E7GGXvTLgyHRnyMEAFiwEUp0gh/eCfHwhZLdBtN0IAlfpU1a+hmb/n0nSJyzeeVwMvwPDwgijHJT7PVOtMcCcVWAUTmpBLRgG6eZK1ITfsxvBSpcNIWdlpfNVHy4fkXssUL52vAWsphzM8sC1IQNWjWpkRLqsc0v6EylREurcEMAV6CKfTNAtg00GPz0gmnzow/i0dy6gS2mqBmc+cyK61S1WcykXvIQMODpwr69L9A06PmhGycTXNXAsJmd2elSO2ZT0NxoYKZO1Y4eeLiFvZVwc1v2lhfqAY+Oz4URcyRi7SslY5smQHruLxppV/WGIy37DmWKAfz94zPui/pisUeXpxcnzxWpKyDsFU62IVCa3AjzVP1RuaddDJlfoa9oRTRt7DVk5d2qeN4qiwOmnaFy3ORYtT8qR2RLIHmWQTi2kU5EDp/RqSAIxerXxY0iaRDMPzBVt3y/wQKw3cifeX+V7LepynvnUso/AsGDysf1zk2lTRsO2d76xFigo9nsjr/bgoYOzQr5vFMa17MyQLpmPCYUwZ2cNpslasERP/Z3GUB+wN7MSOpRfCB1zkysqhkafDc05rwD0zufdR+DOI55UV8pa1+P0F09Drw2eNi0kDXoqJ0/fqOaOZ2wJVGL+6Yv+tI+gUO5YHC8tE7wjPeTPf/XXn5IeaxSQ13d7DG0aYop1+CYBIyW2ZuyQ3wH4OYCf9Jgxf6qZQe0xqJZxzIRk3/GP9NA+w74C10DBApYU9VxQUx8BTZ7j93rOzh9OO6oj0SuaYoq+8THVByxLmiX6CCC5BojVEWLmUNoExADho02pfcT88EjaNU+XmQaCzdHsuji+8xD8+/GFYCcOgsRVADXe7/KHbx6Tk+ehk+vg9/ZduKhQJ/7kqRU720x8BMamTj6m33Hf2MzeltHX2gJrxw5ZLoG+QSZMXt3j5QVXmplGwXXdcdg/buFZR6IiEJl9pAvp78OGFOM83WDs5nlqQOLB0XcikW3CoXOvQ0XLGm/06kmiR32uRFqjpOenvu7r6M0a5EzRsrknZKoLwLNg8QawkvXKouWtFQHSezOr6L5ZJaVrr5IPbVvuX/kIPBls47prk4FRgeOYIbcBOE8yXNNDzP8dm5nTR607ChU8jjMZMCKI4rBxZdvkp42AyH6P+b3n15e5dbseL6VNqmCHlS3/J4vXu8qpWrvA5FTw+iySnGomNwpC5TOh3hsT5DG0hkvc3eVJLNjUyjhn4xjCWPsuhBYfP70zpi07g0lMBvDS5GP7H7Kp+Wx7b/NqgTVjhrwFhr38UjHgje4z5u/XXinXHYVdEMNPLaB3ofhV5txgMUXlgp040WGvniXPeXJkJP9JY0ulvzVSbRNVPmOhkpGXrN4PRN60yoEu9/GO7VYX1C4kmoQ1u54opXEYNs/CLl85h8WaOrDH1khcO5z8lzv4x/+3d7WxTZVR+Dn9WBk4BjLWDdmmyBC2zg9C4g+/YIUpxAxKVIjGIKUgiBKJP4zEECDRxBh/kCEJbN0w/jAGYkdggsC6KUJUVJB1w8wfaiewdW5B0cDW9R7z9mN00G39uGs3ec/P3vOec97nNufe956vybUYkIIzHHY3uexY2G/l7VxQvFkheh+MCwro1dyGpi8Tkzjyqz0Lix5lRXMy4ON4V46zOeLb2MhbMryGXht2XmNsz7RDxFBuIWutexcYGwH8WG3JH7Qj+vCaJMdoQsBjNp1lxoNhNnUbnS4Ru/nfUffCGZm9yngHAY+H5eKLfV7TMy+6s6H5VLI3ndAbY8hYj7n4KWaqgnhKEY4R086pzqajo/Ej/y+LZxom9o5rBAefxoQyY73reLKBj1afdy0+01di0COytdZ9HAzRzaKz2pLnT42SNLYR4Geh9XSZPARkMOMKCK1E+Cq73rVlbO9saOuDgd1dIPF/7qeuNEU3b3LjuahLkNXASBXHKAzxzC+6gzUa0ZVikz/7HvwbgQ5B4c97DPgu74vmiG88Yi0XFaW1G1GY29AS95EzGjDaF5aUaBSuYKA/tKFVaE5WY9PP0axPNg/bMKeP8LK+Eq8PpntNrdvFjGJxbJmQNn5SxZIpIuVQkkRgTCIgSiH/LDV9qADrb2yATxqdzeJtMmmkmmMMWdxuLplB4PVgrAaQFfqdwJdEWhgBfzHoKqCkgWkSCCLl6z4Rp0g36HMyjpwdkZGIHWbTWQw8mgjT/s02XJ8SS5egpN0ZkcxrwzZinNHZMUjLcsBa2+YGc57/AUPaR2qW3XU6mTZKXRIBtREQzrGz1HSCgfBUm+U3B3nV1hsuT3XHGBL+6/y7x2VQxpNM/JgCiNrqB4JVVAP3w+gE+DS0dMrX11szrbE1rijScCB1mIv3gGld2FNIYdZsyGlo2jvc2lRcF8cpbyZa9T24nz4WtRSRyepwi5TIQOcK0KZqS15FKuyVOiUCaiLQZS4u6lPIFQrcMqEup971tJo6hpI1Yo4xktKuxTMn9vWMm8qKL12rV7qv6HxdhTH0dEwEFM8Ck5UJ9qAD+VYL2pLlPO9MROZIru2x4RkwrAY7lgylx+po2wZQAUi5zhpNXU359MMjaZeULREIIbC61r0CjPVareatqvLp38SDzKX5s7J02rSlYCXdpyiHc8PaGd4UgOoyOl39J9B4dMWyJqmOMRbD1ObtNM+exay1KMyNOQ0twaESamtRRx6/BoP3Gs4zY7vBjrhatqtjiZQiERgcAavDLYZQlfm/4hB9YF+WJ/obRk2dpXPm+qA5RoFKSXHiqTc6m/oDL+1m0xlizAtc47+NzubMqIUnyHjbOMYEcUrq8l4b9hBhpY6QS3v9zWgkSQRGHQJWh1t89vI7NQKO2y35wklGTZ5SU2N4IJSAq41TXJOf2w9fMFAqar8DrTQZJ4wNrqTl6UrHGPVtTA6jdy22M2MrAe/oq/B2crRKLRKB2BGwOtzioS16WAi6XG3JnxaLlI5Sk+iJ4m9PxODNOsKp9sv8U3YWilmnEbOlZgTliT7nZVn1TSdikZ8Ir3SMiaCn4lp+ERO8BohKolUEdOv6cC/tiz9zX0XTpCiJQEQErI62VoALQxcV+B7aZ7nnXLRweUpNFxiY7XeMGlomBjURaVcCLKaQ3hh/ybzV2NAcPpslWhVx80nHGDd06izkddB7FYiB1TsAFPilEjamVWK3OhqkFInAyCCw5qB7NyvYECbdXm3Jt0WrLdiMpmYI/otEeCO73vVptDLV4pOOUS0kY5TjXYs3WfGXfC0CBb7TBOmTtCo8H6M4yS4RSDoCLx1qK9T4+Dw40Pzc39Bcy3M/Ki+IulCjw1zygsh7DpY/iubevzPoay376to7cMTU0hI+CSNpe5SOMWlQD1TktaGOcUsqzg/6HjwxVN5iisyVaiUCERFYc/CPVayw3T9AQxDzgerlBTcGTY1R3KRjTNGN67NhnQLsCakn4KguHSuoArKkL0X3RKqNDwGrw11GoPcU4gM1S/Pe7R+dG5+4UbFKOsYU3QZ+BTneXlxk4DIBO/RVqByNTTdSBI9UKxFIKQLSMaYQ/t7VeFj/D76n/ZGn5aXQNKlaInBbI/Af7NFDa4Ye3CIAAAAASUVORK5CYII="}}]);
|