From 851396de59b633205ddec37672e8c9c8f7cd8432 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Tue, 11 Feb 2025 16:37:52 +0800 Subject: [PATCH] Auto Submit --- index.html | 2 +- ...l__answer__Detail__index.39b4d846.async.js | 44 +++++++++---------- umi.e39d6348.js => umi.662f4883.js | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) rename p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.c175de8f.async.js => p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.39b4d846.async.js (90%) rename umi.e39d6348.js => umi.662f4883.js (99%) diff --git a/index.html b/index.html index 8f5a963015..9cb1069efa 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.c175de8f.async.js b/p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.39b4d846.async.js similarity index 90% rename from p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.c175de8f.async.js rename to p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.39b4d846.async.js index 75d4e75522..d2c417db54 100644 --- a/p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.c175de8f.async.js +++ b/p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index.39b4d846.async.js @@ -1,4 +1,4 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[5319],{33853:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Te}});var ge=ie(16378),he=ie(59301),je={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"},He=je,ue=ie(7657),Oe=function(Ge,Ue){return he.createElement(ue.Z,(0,ge.Z)({},Ge,{ref:Ue,icon:He}))},se=he.forwardRef(Oe),Te=se},38819:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Te}});var ge=ie(16378),he=ie(59301),je={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"},He=je,ue=ie(7657),Oe=function(Ge,Ue){return he.createElement(ue.Z,(0,ge.Z)({},Ge,{ref:Ue,icon:He}))},se=he.forwardRef(Oe),Te=se},93938:function(Be,Qe){"use strict";Qe.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},53502:function(Be,Qe){"use strict";Qe.Z={flex_box_center:"flex_box_center___oaxfO",flex_space_between:"flex_space_between___NQ5Gm",flex_box_vertical_center:"flex_box_vertical_center___UGzY9",flex_box_center_end:"flex_box_center_end___SnN1r",flex_box_column:"flex_box_column___c0981",right:"right___sOpmg",title:"title___Nmi5q",titles:"titles___PaouY",tips:"tips___h2FE4"}},37404:function(){"use strict";function Be(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(Be.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(Be.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(Be.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(Be.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 Be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var Qe=[];function ie(ne,a){var y=Qe.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ge(){var ne=Qe.pop();return ne===void 0?new go.Point:ne}function he(ne){Qe.push(ne)}function je(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,ae=b-z,re=NaN,le=NaN;if(oe===0)if(ae===0)ne===y&&(re=ne,le=a);else{var me=(E-ee)/ae,Fe=E-me*b;re=ne,le=me*re+Fe}else if(ae===0){var _e=(a-x)/oe,Ze=a-_e*ne;re=b,le=_e*re+Ze}else{var _e=(a-x)/oe,me=(E-ee)/ae,Ze=a-_e*ne,Fe=E-me*b;re=(Fe-Ze)/(_e-me),le=_e*re+Ze}return te.x=re,te.y=le,te}function He(ne,a,y,x,b,E,z,ee,te,oe,ae,re,le,me){var Fe=1-te,_e=te,Ze=ne*Fe+y*_e,Xe=a*Fe+x*_e,et=y*Fe+b*_e,Le=x*Fe+E*_e,Ie=b*Fe+z*_e,We=E*Fe+ee*_e,Me=Ze*Fe+et*_e,ke=Xe*Fe+Le*_e,at=et*Fe+Ie*_e,St=Le*Fe+We*_e,Lt=Me*Fe+at*_e,xt=ke*Fe+St*_e;oe.x=Ze,oe.y=Xe,ae.x=Me,ae.y=ke,re.x=Lt,re.y=xt,le.x=at,le.y=St,me.x=Ie,me.y=We}var ue=new go.Spot(.156,.156),Oe=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Be("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*se,E=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&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),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=ue,b.spot2=Oe,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,se*a,0,a,(1-se)*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,se*y,(1-se)*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,se*y,se*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-se)*a,0,0,(1-se)*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 Be("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 E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ue,E.spot2=Oe,E.defaultStretch=go.GraphObject.Uniform,E}),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 Be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Be("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 E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=se/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Be("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,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Be("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,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Be("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 E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ae=new go.PathFigure(te,0,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ae.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ae.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ae.add(new go.PathSegment(go.PathSegment.Line,te,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Be("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,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Be("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,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Be("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,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.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,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*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 E=.2,z=.3,ee=0,te=E*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*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 E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*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)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).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=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=se*.4;var oe=ge(),ae=ge(),re=ge(),le=ge();He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ae,re,le,le);var me=ge(),Fe=ge(),_e=ge();He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,le,le,_e,me,Fe);var Ze=ge(),Xe=ge(),et=ge();He(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,Ze,Xe,et,le,le);var Le=ge(),Ie=ge(),We=ge();return He(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,le,le,We,Le,Ie),te.add(new go.PathSegment(go.PathSegment.Move,We.x*a,We.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,oe.x*a,oe.y*y,ae.x*a,ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,We.x*a,We.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,et.x*a,et.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,_e.x*a,_e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,Fe.x*a,Fe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,et.x*a,et.y*y,Ze.x*a,Ze.y*y,Xe.x*a,Xe.y*y).close()),he(oe),he(ae),he(re),he(le),he(me),he(Fe),he(_e),he(Ze),he(Xe),he(et),he(Le),he(Ie),he(We),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 Be("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,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.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=se*.4,E=.4,z=.5,ee=.5,te=ge(),oe=ge(),ae=ge(),re=ge(),le=new go.PathFigure((z-E)*a,ee*y,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ae,re,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ae.x*a,ae.y*y,re.x*a,re.y*y));var me=ie(oe.x,oe.y);He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ae,re);var Fe=ie(oe.x,oe.y);le.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),le.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ae.x*a,ae.y*y,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=se*.35;var _e=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var Ze=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(Ze),he(te),he(oe),he(ae),he(re),he(me),he(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,E=0,z=-.125,ee=b*se,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*se;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),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 Be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Be("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 E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ae=je(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(ae.x,ae.y),he(ae),te}),go.Shape.setFigureParameter("Arrow2",0,new Be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Be("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 E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ae=je(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(ae.x,ae.y),he(ae),te}),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 Be("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,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=je(0,.5,.3,0,0,b/y,.1,b/y,ge());return z.spot1=new go.Spot(te.x,te.y),te=je(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Be("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 E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ae=new go.PathFigure(a,.5*y,!0);oe.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=je(0,.5,.3,ee/y,0,E/y,1,E/y,ge());return oe.spot1=new go.Spot(re.x,re.y),re=je(.7,te/y,1,.5,0,z/y,1,z/y,re),oe.spot2=new go.Spot(re.x,re.y),he(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Be("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,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=je(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Be("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 E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ae=new go.PathFigure(a,.5*y,!0);oe.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var re=je(.7,te/y,1,.5,0,z/y,1,z/y,ge());return oe.spot2=new go.Spot(re.x,re.y),he(re),oe}),go.Shape.setFigureParameter("Pointer",0,new Be("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,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=je(.2,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Be("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,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.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 z=je(0,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Be("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,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=je(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Be("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,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=je(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Be("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,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.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=se*.5,E=se*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*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 E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.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 E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.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 E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.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,E=se*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-se*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-se*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-se*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,E=se*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-se*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-se*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-se*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,E=se*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+se*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+se*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,E=se*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-se*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-se*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 E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.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 E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.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 E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.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 E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.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,E=.1,z=se*b,ee=se*E,te=.5,oe=.1,ae=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var re=.05,le=se*re;te=.05,oe=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,oe*y,(te+le)*a,(oe-re)*y,(te+re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,le=se*re,te=.825,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-le)*y,(te+le)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-le)*a,(oe-re)*y,(te-re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,le=se*re,te=.5,oe=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-le)*y,(te+le)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-le)*a,(oe-re)*y,(te-re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,le=se*re,te=.175,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-le)*y,(te+le)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-le)*a,(oe-re)*y,(te-re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,le=se*re,te=.05,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te-re)*a,(oe-le)*y,(te-le)*a,(oe-re)*y)),me.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 Be("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,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.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 E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.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 E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*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=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*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 E=se*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));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("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.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 E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),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 E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.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 E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.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 E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.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,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.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)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*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 E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.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=se*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),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 E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.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 E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.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 E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.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 E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.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 E=1-b,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,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.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=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.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,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);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,(1-E)*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}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.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 E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.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 E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.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 E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),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 E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.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=se*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.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=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.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=se*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-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=se*.5,E=se*.4,z=se*.1,ee=.1,te=.9,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var re=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*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,E=se*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*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,E=se*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.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,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*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,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.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=se*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*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,E=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,te=0,oe=.5,ae=(b-a)/2,re=(E-y)/2,le=new go.PathFigure(te*a+ae,(oe+ee)*y+re,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*y+re,(te-z)*a+ae,(oe+ee)*y+re,(te-ee)*a+ae,(oe+z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te-ee)*a+ae,(oe-z)*y+re,(te-z)*a+ae,(oe-ee)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ae,oe*y+re,te*a+ae,(oe-ee)*y+re,(te-ee+z*.5)*a+ae,(oe-z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te-ee+z*.5)*a+ae,(oe+z)*y+re,te*a+ae,(oe+ee)*y+re).close()),z=se*.4,ee=.4,te=.2,oe=.5;var me=new go.PathFigure(te*a+ae,(oe+ee)*y+re,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*y+re,(te-z)*a+ae,(oe+ee)*y+re,(te-ee)*a+ae,(oe+z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te-ee)*a+ae,(oe-z)*y+re,(te-z)*a+ae,(oe-ee)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ae,oe*y+re,te*a+ae,(oe-ee)*y+re,(te-ee+z*.5)*a+ae,(oe-z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te-ee+z*.5)*a+ae,(oe+z)*y+re,te*a+ae,(oe+ee)*y+re).close()),z=se*.2,ee=.2,te=.5,oe=.5;var Fe=new go.PathFigure((te-ee)*a+ae,oe*y+re,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te-ee)*a+ae,(oe-z)*y+re,(te-z)*a+ae,(oe-ee)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*y+re,(te+z)*a+ae,(oe-ee)*y+re,(te+ee)*a+ae,(oe-z)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te+ee)*a+ae,(oe+z)*y+re,(te+z)*a+ae,(oe+ee)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*y+re,(te-z)*a+ae,(oe+ee)*y+re,(te-ee)*a+ae,(oe+z)*y+re)),z=se*.4,ee=.4,te=.8,oe=.5;var _e=new go.PathFigure(te*a+ae,(oe-ee)*y+re,!0);x.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*y+re,(te+z)*a+ae,(oe-ee)*y+re,(te+ee)*a+ae,(oe-z)*y+re)),_e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te+ee)*a+ae,(oe+z)*y+re,(te+z)*a+ae,(oe+ee)*y+re)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ae,oe*y+re,te*a+ae,(oe+ee)*y+re,(te+ee-z*.5)*a+ae,(oe+z)*y+re)),_e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te+ee-z*.5)*a+ae,(oe-z)*y+re,te*a+ae,(oe-ee)*y+re).close()),z=se*.8,ee=.8,te=1,oe=.5;var Ze=new go.PathFigure(te*a+ae,(oe-ee)*y+re,!0);return x.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*y+re,(te+z)*a+ae,(oe-ee)*y+re,(te+ee)*a+ae,(oe-z)*y+re)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te+ee)*a+ae,(oe+z)*y+re,(te+z)*a+ae,(oe+ee)*y+re)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ae,oe*y+re,te*a+ae,(oe+ee)*y+re,(te+ee-z*.5)*a+ae,(oe+z)*y+re)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te+ee-z*.5)*a+ae,(oe-z)*y+re,te*a+ae,(oe-ee)*y+re).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 E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.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 E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.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=se*.4,E=.4,z=.5,ee=.5,te=ge(),oe=ge(),ae=ge(),re=ge();He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ae,re);var le=ie(oe.x,oe.y),me=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ae.x*a,ae.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),He(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ae,re,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ae.x*a,ae.y*y,re.x*a,re.y*y)),b=se*.3,E=.3,He(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ae,re,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,re.x*a,re.y*y,ae.x*a,ae.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ae,re),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ae.x*a,ae.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(oe),he(ae),he(re),he(le),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 E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(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,E=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ae=1,re=.5,le=.5,me=0,Fe=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,re*y,ae*a,.7*y,ae*a,re*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*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 E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),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 E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.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 E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ae=4*(1-Math.cos(oe))/(3*Math.sin(oe)),re=ae*.5,le=z,me=z,Fe=ae*le,_e=ae*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-le)*a,te*y,(ee-(Fe+le)/2)*a,(te+(me+_e)/2)*y,(ee-le)*a,(te+_e)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-le)*a,(te-_e)*y,(ee-Fe)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+le)*a,te*y,(ee+Fe)*a,(te-me)*y,(ee+le)*a,(te-_e)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+le)*a,(te+_e)*y,(ee+(Fe+le)/2)*a,(te+(me+_e)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Ze=new go.PathFigure(.2*a,y,!1);x.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Xe=new go.PathFigure(.8*a,y,!1);return x.add(Xe),Xe.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 E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.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 E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),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 E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*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 E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.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 E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.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 E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*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).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 E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),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 E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.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 E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,te=.2,oe=.9,ae=new go.PathFigure((te-z)*a,oe*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,te=.8,oe=.9;var re=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*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 E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=se*.1,ae=.1,re=.9,le=new go.PathFigure((ae-te)*a,re*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-te)*y,(ae-te)*a,(re-oe)*y,(ae-oe)*a,(re-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,re*y,(ae+oe)*a,(re-te)*y,(ae+te)*a,(re-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+te)*y,(ae+te)*a,(re+oe)*y,(ae+oe)*a,(re+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,re*y,(ae-oe)*a,(re+te)*y,(ae-te)*a,(re+oe)*y)),te=.1,oe=se*.1,ae=.4,re=.9;var me=new go.PathFigure((ae-te)*a,re*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-te)*y,(ae-te)*a,(re-oe)*y,(ae-oe)*a,(re-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,re*y,(ae+oe)*a,(re-te)*y,(ae+te)*a,(re-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+te)*y,(ae+te)*a,(re+oe)*y,(ae+oe)*a,(re+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,re*y,(ae-oe)*a,(re+te)*y,(ae-te)*a,(re+oe)*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 E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ae=.05,re=se*.05,le=.175,me=.95,ee=new go.PathFigure((le-ae)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y));var ae=.05,re=se*.05,le=.375,me=.95,te=new go.PathFigure((le-ae)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y));var ae=.05,re=se*.05,le=.625,me=.95,oe=new go.PathFigure((le-ae)*a,me*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y));var ae=.05,re=se*.05,le=.825,me=.95,Fe=new go.PathFigure((le-ae)*a,me*y,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y).close());var _e=new go.PathFigure(0,y,!1);return x.add(_e),_e.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 E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=se*.05,oe=.35,ae=.775,re=new go.PathFigure((oe-ee)*a,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae-ee)*y,(oe-ee)*a,(ae-te)*y,(oe-te)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ae*y,(oe+te)*a,(ae-ee)*y,(oe+ee)*a,(ae-te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae+ee)*y,(oe+ee)*a,(ae+te)*y,(oe+te)*a,(ae+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ae*y,(oe-te)*a,(ae+ee)*y,(oe-ee)*a,(ae+te)*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,E=se*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.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 E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.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,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.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,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.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 E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.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 E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.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 E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.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 E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.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 E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.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 E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.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 E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.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,E=b*se,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.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*se,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var 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 E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.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 E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(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 E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),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 E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).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 E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),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 E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.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")},98598: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 Be={},Qe="5.0",ie={},ge=null,he=!1,je=!1,He=null,ue=!1,Oe=null,se=null,Te=0;Te4?parseFloat(be):5};Be.setHTML5Codebase=function(be,we){se=be,St(be,we)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(be,we){var Ne=parseFloat(be);if(Ne!==NaN&&Ne<5){console.log("The GeoGebra HTML5 codebase version "+Ne+" is deprecated. Using version latest instead.");return}Oe=be,at(be,we)},Be.getHTML5CodebaseVersion=function(){return ne},Be.getParameters=function(){return ie},Be.setFontsCSSURL=function(be){z=be},Be.setGiacJSURL=function(be){},Be.setJNLPFile=function(be){Ge=be},Be.setJNLPBaseDir=function(be){},Be.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var we="auto",Ne=ie.id,gt,Re=!1,rt=0;rt=5)return!0;var be=Be.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var be=Be.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},Be.stopAnimation=function(){var be=Be.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},Be.getAppletObject=function(){var be=ie.id!==void 0?ie.id:"ggbApplet";return window[be]},Be.resize=function(){};var Fe=function(be,we,Ne){var gt=document.createElement("param");gt.setAttribute("name",we),gt.setAttribute("value",Ne),be.appendChild(gt)},_e=function(be){return be&&be!=="false"},Ze=function(be,we,Ne){te(ne)<=4.2&&(Ne=!0);var gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Re=document.createElement("div");Re.classList.add("appletParameters","notranslate");var rt=we.width,de=we.height;if(we.disableAutoScale=we.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():we.disableAutoScale,we.width!==void 0)if(te(ne)<=4.4)_e(we.showToolBar)&&(we.height-=7),_e(we.showAlgebraInput)&&(we.height-=37),we.width<605&&_e(we.showToolBar)&&(we.width=605,rt=605);else{var Ke=100;(_e(we.showToolBar)||_e(we.showMenuBar))&&(we.hasOwnProperty("customToolBar")&&(we.customToolbar=we.customToolBar),Ke=_e(we.showMenuBar)?245:155),rt=5?(we.appletOnLoad=function(ot){var ct=be.querySelector(".ggb_preview");ct&&ct.parentNode.removeChild(ct),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(vt),window.GGBT_wsf_view&&$(window).trigger("resize"),wt(ot)},Ee||vt.appendChild(pe)):Re.appendChild(pe),vt.appendChild(Re),Ee||be.appendChild(vt),setTimeout(function(){Be.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(Re),be.appendChild(Se),we.appletOnLoad=function(ot){Be.resize(),wt(ot)}}function fe(ot,ct){ct&&typeof ct.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ot,ct.appletOnLoad):renderGGBElement(ot),Lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ct)}function $e(ot,ct){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ot,params:ct}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(pt){fe(pt.article,pt.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ot.className+=" geogebraweb")):fe(ot,ct)}if(gt){scriptLoadStarted=!0;for(var Je=0;Je0?(Pt.remove(),vt.attr("id","fullscreencontent").show(),jQuery(wt).append(vt),window.dispatchEvent(new Event("resize"))):Ze(Pt,we,!1),window.GGBT_wsf_view.launchFullScreen(wt)}else ye=gt,Ze(be,we,!1);if(!window.GGBT_wsf_view)for(de=0;debe/4*3&&(Pt=be/4*3),wt=Pt/5.8,Ke.setAttribute("src",b),Ke.setAttribute("width",Pt),Ke.setAttribute("height",wt);var vt=(be-Pt)/2,Ee=(we-wt)/2;Ke.style.left=vt+"px",Ke.style.top=Ee+"px",Re.appendChild(Ke)}}return Re.appendChild(de),Re},Me=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},ke=["web","webSimple","web3d","tablet","tablet3d","phone"],at=function(be,we){if(ne=be,we){St(ne,!0);return}var Ne=!he;if(Ne){var gt=te(ne);!isNaN(gt)&><4.4&&(Ne=!1)}var Re,rt;window.location.protocol.substr(0,4)==="http"?Re=window.location.protocol:Re="http:";var de=ne.indexOf("//");de>0?rt=ne:de===0?rt=Re+ne:rt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ke in ke)if(ne.slice(ke[Ke].length*-1)===ke[Ke]||ne.slice((ke[Ke].length+1)*-1)===ke[Ke]+"/"){St(rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ne&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!_e(ie.showToolBar)&&!_e(ie.showMenuBar)&&!_e(ie.showAlgebraInput)&&!_e(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?rt+="webSimple/":rt+="web3d/",St(rt,!1)},St=function(be,we){if(be.requirejs){Ue=be;return}be.slice(-1)!=="/"&&(be+="/"),Ue=be,we===null&&(we=be.indexOf("http")===-1),Ce=we,a="web.nocache.js",y=!1;var Ne=Ue.split("/");Ne.length>1&&(!we&&Ne[Ne.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ke.indexOf(Ne[Ne.length-2])>=0&&(a=Ne[Ne.length-2]+".nocache.js")),Ne=be.split("/"),ne=Ne[Ne.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 gt=parseFloat(ne);gt!==NaN&><5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+gt+" is deprecated. Using version latest instead."),at("5.0",we))},Lt=function(be,we){window.console&&window.console.log&&(!we||typeof we.showLogging=="undefined"||we.showLogging&&we.showLogging!=="false")&&console.log(be)};ie.material_id!==void 0?re(xt):xt();function xt(){var be=Qe;Oe!==null?be=Oe:parseFloat(be)<5&&(be="5.0"),at(be,!1),se!==null&&St(se,Ce),ue=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function Qe(ue,Oe){Oe!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Oe+","+Oe+")",ue.style.webkitTransform="scale("+Oe+","+Oe+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function ie(ue,Oe,se,Te,xe,Ge){var Ue=null;if(Ge!=null&&Ge!="")for(var Ce=ue.parentNode;Ce!=null;)if((" "+Ce.className+" ").indexOf(" "+Ge+" ")>-1){Ue=Ce;break}else Ce=Ce.parentNode;var ye=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ue)ye=Ue.offsetWidth,ne=Math.max(Te?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ye=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ye):(ye=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=ye&&(xe===void 0||!xe)&&(document.dir==="rtl"?(x=ye-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ue&&((se===void 0||!se)&&Oe>0&&Oe+y1&&(Ge=!0)),Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))xe=ge(ue,Oe,Ge,se,ue.scaleContainerClass);else return Te;return Ge&&(!ue.hasOwnProperty("scale")||Te===1)?xe:Math.min(Te,xe)}function je(ue){var Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=ue.getBoundingClientRect(),xe=(Oe-Te.width)/2,Ge=(se-Te.height)/2;Ge<0&&(Ge=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?ue.style.left="40px":ue.style.left=xe+"px",ue.style.top=Ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge<40?ue.style.top="40px":ue.style.top=Ge+"px",ue.style.left=xe+"px")}function He(ue,Oe){var se=ue.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Te=he(Oe,ue);Be()&&se.setAttribute("data-param-scale",Te);for(var xe=null,Ge=0;Ge=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(Be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Be){var Qe=c[Be];return Qe==null?null:Qe},r=d,webModule.__errFn=e}function B(){function Be(ue){var Oe=ue.lastIndexOf(rb);Oe==-1&&(Oe=ue.length);var se=ue.indexOf(sb);se==-1&&(se=ue.length);var Te=ue.lastIndexOf(tb,Math.min(se,Oe));return Te>=O?ue.substring(O,Te+P):W}function Qe(ue){if(!ue.match(/^\w+:\/\//)){var Oe=o.createElement(ub);Oe.src=ue+vb,ue=Be(Oe.src)}return ue}function ie(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ge(){for(var ue=o.getElementsByTagName(_),Oe=O;OeO?ue[ue.length-P].href:W}function je(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var He=ie();return He==W&&(He=ge()),He==W&&(He=he()),He==W&&je()&&(He=Be(o.location.href)),He=Qe(He),He}function C(Be){return Be.match(/^\//)||Be.match(/^[a-zA-Z]+:\/\//)?Be:webModule.__moduleBase+Be}function D(){var Be=[],Qe=O,ie=[],ge=[];function he(ue){var Oe=ge[ue](),se=ie[ue];if(Oe in se)return Oe;var Te=[];for(var xe in se)Te[se[xe]]=xe;throw r&&r(ue,Te,Oe),null}if(__gwt_isKnownPropertyValue=function(ue,Oe){return Oe in ie[ue]},webModule.__getPropMap=function(){var ue={};for(var Oe in ie)ie.hasOwnProperty(Oe)&&(ue[Oe]=he(Oe));return ue},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var je;try{je=Cb;var He=je.indexOf(Db);He!=-1&&(Qe=parseInt(je.substring(He+P),$),je=je.substring(O,He))}catch(ue){}return webModule.__softPermutationId=Qe,C(je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},58788:function(Be,Qe,ie){"use strict";ie.d(Qe,{Ax:function(){return He},Ds:function(){return ue},KI:function(){return se},SI:function(){return je},f1:function(){return he}});var ge=ie(10148);function he(Te){let xe=!0;if(Te.length>0){for(let Ge=0;Genew Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Ce,ye)).next())}),Ue=({data:Ce,className:ye,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ge.useRef)(null),ee=(0,ge.useRef)(null),te=(0,ge.useRef)(null),oe=(0,ge.useRef)(null),[ae,re]=(0,ge.useState)(!1),[le,me]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ce!=null&&Ce.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ce!=null&&Ce.src&&Fe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ce==null?void 0:Ce.visible]);const Fe=()=>xe(void 0,null,function*(){re(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const et=yield(0,Te.ZJ)(Ce==null?void 0:Ce.src);z.current.src="",z.current.src=et,z.current.onload=function(){Xe()},re(!1),me("")}),_e=et=>xe(void 0,null,function*(){re(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Le=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ce.title,file:et.dataUrl}});Le!=null&&Le.id&&!E?(yield(0,se.ZP)(`/api/attachments/${Ce.id}/add_subitem.json`,{method:"post",body:{subitem_id:Le==null?void 0:Le.id,settings:JSON.stringify(et.state)}})).status===0&&x():Le!=null&&Le.id&&x(Le),re(!1),me("")}),Ze=()=>{const et=document.querySelector('a[href="https://markerjs.com/"]');et&&et.parentNode&&(et.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(Ie=>{const We=document.querySelector(Ie.name);We&&We.setAttribute("title",Ie.title)})},Xe=()=>{ee.current=new Oe.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",_e),ee.current.addEventListener("beforeclose",y),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ce!=null&&Ce.snapshotData&&ee.current.restoreState(Ce.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ze()},300)};return ge.createElement(ge.Fragment,null,(Ce==null?void 0:Ce.visible)&&ge.createElement(ue.Z,{spinning:ae,tip:le,style:{position:"absolute"}},ge.createElement("div",{ref:oe,className:He()(he.imageDimensions,ye,ne?he.fullWidth:""),style:a},ge.createElement("img",{className:he.img,ref:z}))))}},75890:function(Be,Qe,ie){"use strict";var ge=ie(59301),he=ie(95237),je=ie(43604),He=ie(99313),ue=ie(3113),Oe=ie(25711),se=ie(93938),Te=ie(48136),xe=ie(59301);const Ge=(0,ge.forwardRef)(({callback:Ue,showSaveButton:Ce,value:ye=""},ne)=>{const a=(0,ge.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 +(self.webpackChunk=self.webpackChunk||[]).push([[5319],{33853:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Te}});var ge=ie(16378),fe=ie(59301),je={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"},He=je,ue=ie(7657),Oe=function(Ge,Ue){return fe.createElement(ue.Z,(0,ge.Z)({},Ge,{ref:Ue,icon:He}))},se=fe.forwardRef(Oe),Te=se},38819:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Te}});var ge=ie(16378),fe=ie(59301),je={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"},He=je,ue=ie(7657),Oe=function(Ge,Ue){return fe.createElement(ue.Z,(0,ge.Z)({},Ge,{ref:Ue,icon:He}))},se=fe.forwardRef(Oe),Te=se},93938:function(Be,Qe){"use strict";Qe.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},53502:function(Be,Qe){"use strict";Qe.Z={flex_box_center:"flex_box_center___oaxfO",flex_space_between:"flex_space_between___NQ5Gm",flex_box_vertical_center:"flex_box_vertical_center___UGzY9",flex_box_center_end:"flex_box_center_end___SnN1r",flex_box_column:"flex_box_column___c0981",right:"right___sOpmg",title:"title___Nmi5q",titles:"titles___PaouY",tips:"tips___h2FE4"}},37404:function(){"use strict";function Be(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(Be.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(Be.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(Be.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(Be.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 Be))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValuey.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var Qe=[];function ie(ne,a){var y=Qe.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ge(){var ne=Qe.pop();return ne===void 0?new go.Point:ne}function fe(ne){Qe.push(ne)}function je(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,ae=b-z,re=NaN,le=NaN;if(oe===0)if(ae===0)ne===y&&(re=ne,le=a);else{var me=(E-ee)/ae,Fe=E-me*b;re=ne,le=me*re+Fe}else if(ae===0){var _e=(a-x)/oe,Ze=a-_e*ne;re=b,le=_e*re+Ze}else{var _e=(a-x)/oe,me=(E-ee)/ae,Ze=a-_e*ne,Fe=E-me*b;re=(Fe-Ze)/(_e-me),le=_e*re+Ze}return te.x=re,te.y=le,te}function He(ne,a,y,x,b,E,z,ee,te,oe,ae,re,le,me){var Fe=1-te,_e=te,Ze=ne*Fe+y*_e,Xe=a*Fe+x*_e,et=y*Fe+b*_e,Le=x*Fe+E*_e,Ie=b*Fe+z*_e,We=E*Fe+ee*_e,Me=Ze*Fe+et*_e,ke=Xe*Fe+Le*_e,at=et*Fe+Ie*_e,St=Le*Fe+We*_e,Lt=Me*Fe+at*_e,xt=ke*Fe+St*_e;oe.x=Ze,oe.y=Xe,ae.x=Me,ae.y=ke,re.x=Lt,re.y=xt,le.x=at,le.y=St,me.x=Ie,me.y=We}var ue=new go.Spot(.156,.156),Oe=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Be("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*se,E=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&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),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=ue,b.spot2=Oe,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,se*a,0,a,(1-se)*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,se*y,(1-se)*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,se*y,se*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-se)*a,0,0,(1-se)*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 Be("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 E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),ba&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ue,E.spot2=Oe,E.defaultStretch=go.GraphObject.Uniform,E}),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 Be("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Be("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 E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=se/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Be("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,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Be("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,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Be("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 E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ae=new go.PathFigure(te,0,!0);return b.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ae.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ae.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ae.add(new go.PathSegment(go.PathSegment.Line,te,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Be("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,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Be("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,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Be("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,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.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,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*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 E=.2,z=.3,ee=0,te=E*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*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 E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*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)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).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=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=se*.4;var oe=ge(),ae=ge(),re=ge(),le=ge();He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ae,re,le,le);var me=ge(),Fe=ge(),_e=ge();He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,le,le,_e,me,Fe);var Ze=ge(),Xe=ge(),et=ge();He(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,Ze,Xe,et,le,le);var Le=ge(),Ie=ge(),We=ge();return He(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,le,le,We,Le,Ie),te.add(new go.PathSegment(go.PathSegment.Move,We.x*a,We.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,oe.x*a,oe.y*y,ae.x*a,ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,We.x*a,We.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,et.x*a,et.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,_e.x*a,_e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,Fe.x*a,Fe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,et.x*a,et.y*y,Ze.x*a,Ze.y*y,Xe.x*a,Xe.y*y).close()),fe(oe),fe(ae),fe(re),fe(le),fe(me),fe(Fe),fe(_e),fe(Ze),fe(Xe),fe(et),fe(Le),fe(Ie),fe(We),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 Be("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,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.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=se*.4,E=.4,z=.5,ee=.5,te=ge(),oe=ge(),ae=ge(),re=ge(),le=new go.PathFigure((z-E)*a,ee*y,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ae,re,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ae.x*a,ae.y*y,re.x*a,re.y*y));var me=ie(oe.x,oe.y);He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ae,re);var Fe=ie(oe.x,oe.y);le.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*a,(Fe.y*.1+.05*.9)*y)),le.add(new go.PathSegment(go.PathSegment.Line,Fe.x*a,Fe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ae.x*a,ae.y*y,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=se*.35;var _e=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),_e.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var Ze=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(Ze),fe(te),fe(oe),fe(ae),fe(re),fe(me),fe(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,E=0,z=-.125,ee=b*se,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*se;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),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 Be("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Be("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 E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ae=je(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(ae.x,ae.y),fe(ae),te}),go.Shape.setFigureParameter("Arrow2",0,new Be("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Be("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 E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ae=je(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(ae.x,ae.y),fe(ae),te}),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 Be("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,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=je(0,.5,.3,0,0,b/y,.1,b/y,ge());return z.spot1=new go.Spot(te.x,te.y),te=je(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Be("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Be("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 E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ae=new go.PathFigure(a,.5*y,!0);oe.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=je(0,.5,.3,ee/y,0,E/y,1,E/y,ge());return oe.spot1=new go.Spot(re.x,re.y),re=je(.7,te/y,1,.5,0,z/y,1,z/y,re),oe.spot2=new go.Spot(re.x,re.y),fe(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Be("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,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=je(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Be("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Be("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 E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,ae=new go.PathFigure(a,.5*y,!0);oe.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,te)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ae.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var re=je(.7,te/y,1,.5,0,z/y,1,z/y,ge());return oe.spot2=new go.Spot(re.x,re.y),fe(re),oe}),go.Shape.setFigureParameter("Pointer",0,new Be("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,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=je(.2,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Be("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,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.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 z=je(0,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Be("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,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=je(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Be("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,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=je(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Be("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,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.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=se*.5,E=se*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*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 E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.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 E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.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 E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.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,E=se*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-se*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-se*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-se*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,E=se*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-se*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-se*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-se*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,E=se*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+se*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+se*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,E=se*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-se*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-se*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 E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.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 E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.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 E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.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 E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.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,E=.1,z=se*b,ee=se*E,te=.5,oe=.1,ae=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var re=.05,le=se*re;te=.05,oe=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,oe*y,(te+le)*a,(oe-re)*y,(te+re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,le=se*re,te=.825,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-le)*y,(te+le)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-le)*a,(oe-re)*y,(te-re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,le=se*re,te=.5,oe=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-le)*y,(te+le)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-le)*a,(oe-re)*y,(te-re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,le=se*re,te=.175,oe=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-le)*y,(te+le)*a,(oe-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-le)*a,(oe-re)*y,(te-re)*a,(oe-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,le=se*re,te=.05,oe=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te-re)*a,(oe-le)*y,(te-le)*a,(oe-re)*y)),me.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 Be("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,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.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 E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.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 E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*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=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*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 E=se*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));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("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.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 E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),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 E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.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 E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.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 E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.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,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.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)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*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 E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.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=se*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),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 E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.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 E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.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 E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.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 E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.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 E=1-b,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,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.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=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.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,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);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,(1-E)*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}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.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 E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.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 E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.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 E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),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 E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.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=se*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.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=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.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=se*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-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=se*.5,E=se*.4,z=se*.1,ee=.1,te=.9,oe=.5,ae=new go.PathFigure(.8*a,.5*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,y)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var re=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*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,E=se*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*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,E=se*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.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,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*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,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.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=se*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*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,E=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,te=0,oe=.5,ae=(b-a)/2,re=(E-y)/2,le=new go.PathFigure(te*a+ae,(oe+ee)*y+re,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*y+re,(te-z)*a+ae,(oe+ee)*y+re,(te-ee)*a+ae,(oe+z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te-ee)*a+ae,(oe-z)*y+re,(te-z)*a+ae,(oe-ee)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ae,oe*y+re,te*a+ae,(oe-ee)*y+re,(te-ee+z*.5)*a+ae,(oe-z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te-ee+z*.5)*a+ae,(oe+z)*y+re,te*a+ae,(oe+ee)*y+re).close()),z=se*.4,ee=.4,te=.2,oe=.5;var me=new go.PathFigure(te*a+ae,(oe+ee)*y+re,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*y+re,(te-z)*a+ae,(oe+ee)*y+re,(te-ee)*a+ae,(oe+z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te-ee)*a+ae,(oe-z)*y+re,(te-z)*a+ae,(oe-ee)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ae,oe*y+re,te*a+ae,(oe-ee)*y+re,(te-ee+z*.5)*a+ae,(oe-z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te-ee+z*.5)*a+ae,(oe+z)*y+re,te*a+ae,(oe+ee)*y+re).close()),z=se*.2,ee=.2,te=.5,oe=.5;var Fe=new go.PathFigure((te-ee)*a+ae,oe*y+re,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te-ee)*a+ae,(oe-z)*y+re,(te-z)*a+ae,(oe-ee)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*y+re,(te+z)*a+ae,(oe-ee)*y+re,(te+ee)*a+ae,(oe-z)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te+ee)*a+ae,(oe+z)*y+re,(te+z)*a+ae,(oe+ee)*y+re)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ae,oe*y+re,(te-z)*a+ae,(oe+ee)*y+re,(te-ee)*a+ae,(oe+z)*y+re)),z=se*.4,ee=.4,te=.8,oe=.5;var _e=new go.PathFigure(te*a+ae,(oe-ee)*y+re,!0);x.add(_e),_e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*y+re,(te+z)*a+ae,(oe-ee)*y+re,(te+ee)*a+ae,(oe-z)*y+re)),_e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te+ee)*a+ae,(oe+z)*y+re,(te+z)*a+ae,(oe+ee)*y+re)),_e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ae,oe*y+re,te*a+ae,(oe+ee)*y+re,(te+ee-z*.5)*a+ae,(oe+z)*y+re)),_e.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te+ee-z*.5)*a+ae,(oe-z)*y+re,te*a+ae,(oe-ee)*y+re).close()),z=se*.8,ee=.8,te=1,oe=.5;var Ze=new go.PathFigure(te*a+ae,(oe-ee)*y+re,!0);return x.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ae,oe*y+re,(te+z)*a+ae,(oe-ee)*y+re,(te+ee)*a+ae,(oe-z)*y+re)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe+ee)*y+re,(te+ee)*a+ae,(oe+z)*y+re,(te+z)*a+ae,(oe+ee)*y+re)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ae,oe*y+re,te*a+ae,(oe+ee)*y+re,(te+ee-z*.5)*a+ae,(oe+z)*y+re)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ae,(oe-ee)*y+re,(te+ee-z*.5)*a+ae,(oe-z)*y+re,te*a+ae,(oe-ee)*y+re).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 E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.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 E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.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=se*.4,E=.4,z=.5,ee=.5,te=ge(),oe=ge(),ae=ge(),re=ge();He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ae,re);var le=ie(oe.x,oe.y),me=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ae.x*a,ae.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),He(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ae,re,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ae.x*a,ae.y*y,re.x*a,re.y*y)),b=se*.3,E=.3,He(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ae,re,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,re.x*a,re.y*y,ae.x*a,ae.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),He(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ae,re),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ae.x*a,ae.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),fe(oe),fe(ae),fe(re),fe(le),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 E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(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,E=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ae=1,re=.5,le=.5,me=0,Fe=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,re*y,ae*a,.7*y,ae*a,re*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*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 E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),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 E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.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 E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ae=4*(1-Math.cos(oe))/(3*Math.sin(oe)),re=ae*.5,le=z,me=z,Fe=ae*le,_e=ae*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-le)*a,te*y,(ee-(Fe+le)/2)*a,(te+(me+_e)/2)*y,(ee-le)*a,(te+_e)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-le)*a,(te-_e)*y,(ee-Fe)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+le)*a,te*y,(ee+Fe)*a,(te-me)*y,(ee+le)*a,(te-_e)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+le)*a,(te+_e)*y,(ee+(Fe+le)/2)*a,(te+(me+_e)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Ze=new go.PathFigure(.2*a,y,!1);x.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Xe=new go.PathFigure(.8*a,y,!1);return x.add(Xe),Xe.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 E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.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 E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),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 E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*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 E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.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 E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.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 E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*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).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 E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),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 E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.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 E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,te=.2,oe=.9,ae=new go.PathFigure((te-z)*a,oe*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,te=.8,oe=.9;var re=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*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 E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=se*.1,ae=.1,re=.9,le=new go.PathFigure((ae-te)*a,re*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-te)*y,(ae-te)*a,(re-oe)*y,(ae-oe)*a,(re-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,re*y,(ae+oe)*a,(re-te)*y,(ae+te)*a,(re-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+te)*y,(ae+te)*a,(re+oe)*y,(ae+oe)*a,(re+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,re*y,(ae-oe)*a,(re+te)*y,(ae-te)*a,(re+oe)*y)),te=.1,oe=se*.1,ae=.4,re=.9;var me=new go.PathFigure((ae-te)*a,re*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re-te)*y,(ae-te)*a,(re-oe)*y,(ae-oe)*a,(re-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ae+te)*a,re*y,(ae+oe)*a,(re-te)*y,(ae+te)*a,(re-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(re+te)*y,(ae+te)*a,(re+oe)*y,(ae+oe)*a,(re+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ae-te)*a,re*y,(ae-oe)*a,(re+te)*y,(ae-te)*a,(re+oe)*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 E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ae=.05,re=se*.05,le=.175,me=.95,ee=new go.PathFigure((le-ae)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y));var ae=.05,re=se*.05,le=.375,me=.95,te=new go.PathFigure((le-ae)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y));var ae=.05,re=se*.05,le=.625,me=.95,oe=new go.PathFigure((le-ae)*a,me*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y));var ae=.05,re=se*.05,le=.825,me=.95,Fe=new go.PathFigure((le-ae)*a,me*y,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-ae)*y,(le-ae)*a,(me-re)*y,(le-re)*a,(me-ae)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+ae)*a,me*y,(le+re)*a,(me-ae)*y,(le+ae)*a,(me-re)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+ae)*y,(le+ae)*a,(me+re)*y,(le+re)*a,(me+ae)*y)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le-ae)*a,me*y,(le-re)*a,(me+ae)*y,(le-ae)*a,(me+re)*y).close());var _e=new go.PathFigure(0,y,!1);return x.add(_e),_e.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 E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=se*.05,oe=.35,ae=.775,re=new go.PathFigure((oe-ee)*a,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae-ee)*y,(oe-ee)*a,(ae-te)*y,(oe-te)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ae*y,(oe+te)*a,(ae-ee)*y,(oe+ee)*a,(ae-te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ae+ee)*y,(oe+ee)*a,(ae+te)*y,(oe+te)*a,(ae+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ae*y,(oe-te)*a,(ae+ee)*y,(oe-ee)*a,(ae+te)*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,E=se*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.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 E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.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,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.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,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.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 E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.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 E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.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 E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.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 E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.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 E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.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 E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.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 E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.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,E=b*se,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.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*se,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var 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 E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.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 E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(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 E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),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 E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).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 E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),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 E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.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")},98598: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 Be={},Qe="5.0",ie={},ge=null,fe=!1,je=!1,He=null,ue=!1,Oe=null,se=null,Te=0;Te4?parseFloat(be):5};Be.setHTML5Codebase=function(be,we){se=be,St(be,we)},Be.setJavaCodebase=Be.setJavaCodebaseVersion=Be.isCompiledInstalled=Be.setPreCompiledScriptPath=Be.setPreCompiledResourcePath=function(){},Be.setHTML5CodebaseVersion=function(be,we){var Ne=parseFloat(be);if(Ne!==NaN&&Ne<5){console.log("The GeoGebra HTML5 codebase version "+Ne+" is deprecated. Using version latest instead.");return}Oe=be,at(be,we)},Be.getHTML5CodebaseVersion=function(){return ne},Be.getParameters=function(){return ie},Be.setFontsCSSURL=function(be){z=be},Be.setGiacJSURL=function(be){},Be.setJNLPFile=function(be){Ge=be},Be.setJNLPBaseDir=function(be){},Be.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var we="auto",Ne=ie.id,gt,Re=!1,rt=0;rt=5)return!0;var be=Be.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},Be.startAnimation=function(){var be=Be.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},Be.stopAnimation=function(){var be=Be.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},Be.getAppletObject=function(){var be=ie.id!==void 0?ie.id:"ggbApplet";return window[be]},Be.resize=function(){};var Fe=function(be,we,Ne){var gt=document.createElement("param");gt.setAttribute("name",we),gt.setAttribute("value",Ne),be.appendChild(gt)},_e=function(be){return be&&be!=="false"},Ze=function(be,we,Ne){te(ne)<=4.2&&(Ne=!0);var gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Re=document.createElement("div");Re.classList.add("appletParameters","notranslate");var rt=we.width,de=we.height;if(we.disableAutoScale=we.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():we.disableAutoScale,we.width!==void 0)if(te(ne)<=4.4)_e(we.showToolBar)&&(we.height-=7),_e(we.showAlgebraInput)&&(we.height-=37),we.width<605&&_e(we.showToolBar)&&(we.width=605,rt=605);else{var Ke=100;(_e(we.showToolBar)||_e(we.showMenuBar))&&(we.hasOwnProperty("customToolBar")&&(we.customToolbar=we.customToolBar),Ke=_e(we.showMenuBar)?245:155),rt=5?(we.appletOnLoad=function(ot){var ct=be.querySelector(".ggb_preview");ct&&ct.parentNode.removeChild(ct),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(vt),window.GGBT_wsf_view&&$(window).trigger("resize"),wt(ot)},Ee||vt.appendChild(ve)):Re.appendChild(ve),vt.appendChild(Re),Ee||be.appendChild(vt),setTimeout(function(){Be.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(Re),be.appendChild(Se),we.appletOnLoad=function(ot){Be.resize(),wt(ot)}}function he(ot,ct){ct&&typeof ct.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ot,ct.appletOnLoad):renderGGBElement(ot),Lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ct)}function $e(ot,ct){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ot,params:ct}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(pt){he(pt.article,pt.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ot.className+=" geogebraweb")):he(ot,ct)}if(gt){scriptLoadStarted=!0;for(var Je=0;Je0?(Pt.remove(),vt.attr("id","fullscreencontent").show(),jQuery(wt).append(vt),window.dispatchEvent(new Event("resize"))):Ze(Pt,we,!1),window.GGBT_wsf_view.launchFullScreen(wt)}else ye=gt,Ze(be,we,!1);if(!window.GGBT_wsf_view)for(de=0;debe/4*3&&(Pt=be/4*3),wt=Pt/5.8,Ke.setAttribute("src",b),Ke.setAttribute("width",Pt),Ke.setAttribute("height",wt);var vt=(be-Pt)/2,Ee=(we-wt)/2;Ke.style.left=vt+"px",Ke.style.top=Ee+"px",Re.appendChild(Ke)}}return Re.appendChild(de),Re},Me=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},ke=["web","webSimple","web3d","tablet","tablet3d","phone"],at=function(be,we){if(ne=be,we){St(ne,!0);return}var Ne=!fe;if(Ne){var gt=te(ne);!isNaN(gt)&><4.4&&(Ne=!1)}var Re,rt;window.location.protocol.substr(0,4)==="http"?Re=window.location.protocol:Re="http:";var de=ne.indexOf("//");de>0?rt=ne:de===0?rt=Re+ne:rt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ke in ke)if(ne.slice(ke[Ke].length*-1)===ke[Ke]||ne.slice((ke[Ke].length+1)*-1)===ke[Ke]+"/"){St(rt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ne&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!_e(ie.showToolBar)&&!_e(ie.showMenuBar)&&!_e(ie.showAlgebraInput)&&!_e(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?rt+="webSimple/":rt+="web3d/",St(rt,!1)},St=function(be,we){if(be.requirejs){Ue=be;return}be.slice(-1)!=="/"&&(be+="/"),Ue=be,we===null&&(we=be.indexOf("http")===-1),Ce=we,a="web.nocache.js",y=!1;var Ne=Ue.split("/");Ne.length>1&&(!we&&Ne[Ne.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ke.indexOf(Ne[Ne.length-2])>=0&&(a=Ne[Ne.length-2]+".nocache.js")),Ne=be.split("/"),ne=Ne[Ne.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 gt=parseFloat(ne);gt!==NaN&><5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+gt+" is deprecated. Using version latest instead."),at("5.0",we))},Lt=function(be,we){window.console&&window.console.log&&(!we||typeof we.showLogging=="undefined"||we.showLogging&&we.showLogging!=="false")&&console.log(be)};ie.material_id!==void 0?re(xt):xt();function xt(){var be=Qe;Oe!==null?be=Oe:parseFloat(be)<5&&(be="5.0"),at(be,!1),se!==null&&St(se,Ce),ue=!0}return Be},GGBAppletUtils=function(){"use strict";function Be(){return window.GGBT_wsf_edit!==void 0}function Qe(ue,Oe){Oe!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Oe+","+Oe+")",ue.style.webkitTransform="scale("+Oe+","+Oe+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function ie(ue,Oe,se,Te,xe,Ge){var Ue=null;if(Ge!=null&&Ge!="")for(var Ce=ue.parentNode;Ce!=null;)if((" "+Ce.className+" ").indexOf(" "+Ge+" ")>-1){Ue=Ce;break}else Ce=Ce.parentNode;var ye=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Ue)ye=Ue.offsetWidth,ne=Math.max(Te?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ye=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=ye):(ye=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=ye&&(xe===void 0||!xe)&&(document.dir==="rtl"?(x=ye-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ue&&((se===void 0||!se)&&Oe>0&&Oe+y1&&(Ge=!0)),Oe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ge=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))xe=ge(ue,Oe,Ge,se,ue.scaleContainerClass);else return Te;return Ge&&(!ue.hasOwnProperty("scale")||Te===1)?xe:Math.min(Te,xe)}function je(ue){var Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=ue.getBoundingClientRect(),xe=(Oe-Te.width)/2,Ge=(se-Te.height)/2;Ge<0&&(Ge=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?ue.style.left="40px":ue.style.left=xe+"px",ue.style.top=Ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge<40?ue.style.top="40px":ue.style.top=Ge+"px",ue.style.left=xe+"px")}function He(ue,Oe){var se=ue.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Oe.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Te=fe(Oe,ue);Be()&&se.setAttribute("data-param-scale",Te);for(var xe=null,Ge=0;Ge=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(Be){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Be){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Be){var Qe=c[Be];return Qe==null?null:Qe},r=d,webModule.__errFn=e}function B(){function Be(ue){var Oe=ue.lastIndexOf(rb);Oe==-1&&(Oe=ue.length);var se=ue.indexOf(sb);se==-1&&(se=ue.length);var Te=ue.lastIndexOf(tb,Math.min(se,Oe));return Te>=O?ue.substring(O,Te+P):W}function Qe(ue){if(!ue.match(/^\w+:\/\//)){var Oe=o.createElement(ub);Oe.src=ue+vb,ue=Be(Oe.src)}return ue}function ie(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ge(){for(var ue=o.getElementsByTagName(_),Oe=O;OeO?ue[ue.length-P].href:W}function je(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var He=ie();return He==W&&(He=ge()),He==W&&(He=fe()),He==W&&je()&&(He=Be(o.location.href)),He=Qe(He),He}function C(Be){return Be.match(/^\//)||Be.match(/^[a-zA-Z]+:\/\//)?Be:webModule.__moduleBase+Be}function D(){var Be=[],Qe=O,ie=[],ge=[];function fe(ue){var Oe=ge[ue](),se=ie[ue];if(Oe in se)return Oe;var Te=[];for(var xe in se)Te[se[xe]]=xe;throw r&&r(ue,Te,Oe),null}if(__gwt_isKnownPropertyValue=function(ue,Oe){return Oe in ie[ue]},webModule.__getPropMap=function(){var ue={};for(var Oe in ie)ie.hasOwnProperty(Oe)&&(ue[Oe]=fe(Oe));return ue},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var je;try{je=Cb;var He=je.indexOf(Db);He!=-1&&(Qe=parseInt(je.substring(He+P),$),je=je.substring(O,He))}catch(ue){}return webModule.__softPermutationId=Qe,C(je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},58788:function(Be,Qe,ie){"use strict";ie.d(Qe,{Ax:function(){return He},Ds:function(){return ue},KI:function(){return se},SI:function(){return je},f1:function(){return fe}});var ge=ie(10148);function fe(Te){let xe=!0;if(Te.length>0){for(let Ge=0;Genew Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Ce,ye)).next())}),Ue=({data:Ce,className:ye,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ge.useRef)(null),ee=(0,ge.useRef)(null),te=(0,ge.useRef)(null),oe=(0,ge.useRef)(null),[ae,re]=(0,ge.useState)(!1),[le,me]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ce!=null&&Ce.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ce!=null&&Ce.src&&Fe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ce==null?void 0:Ce.visible]);const Fe=()=>xe(void 0,null,function*(){re(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const et=yield(0,Te.ZJ)(Ce==null?void 0:Ce.src);z.current.src="",z.current.src=et,z.current.onload=function(){Xe()},re(!1),me("")}),_e=et=>xe(void 0,null,function*(){re(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Le=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ce.title,file:et.dataUrl}});Le!=null&&Le.id&&!E?(yield(0,se.ZP)(`/api/attachments/${Ce.id}/add_subitem.json`,{method:"post",body:{subitem_id:Le==null?void 0:Le.id,settings:JSON.stringify(et.state)}})).status===0&&x():Le!=null&&Le.id&&x(Le),re(!1),me("")}),Ze=()=>{const et=document.querySelector('a[href="https://markerjs.com/"]');et&&et.parentNode&&(et.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(Ie=>{const We=document.querySelector(Ie.name);We&&We.setAttribute("title",Ie.title)})},Xe=()=>{ee.current=new Oe.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",_e),ee.current.addEventListener("beforeclose",y),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Ce!=null&&Ce.snapshotData&&ee.current.restoreState(Ce.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ze()},300)};return ge.createElement(ge.Fragment,null,(Ce==null?void 0:Ce.visible)&&ge.createElement(ue.Z,{spinning:ae,tip:le,style:{position:"absolute"}},ge.createElement("div",{ref:oe,className:He()(fe.imageDimensions,ye,ne?fe.fullWidth:""),style:a},ge.createElement("img",{className:fe.img,ref:z}))))}},75890:function(Be,Qe,ie){"use strict";var ge=ie(59301),fe=ie(95237),je=ie(43604),He=ie(99313),ue=ie(3113),Oe=ie(25711),se=ie(93938),Te=ie(48136),xe=ie(59301);const Ge=(0,ge.forwardRef)(({callback:Ue,showSaveButton:Ce,value:ye=""},ne)=>{const a=(0,ge.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 @@ -66,7 +66,7 @@ \\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=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(he.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>xe.createElement(je.Z,{flex:"110px",className:se.Z.item},xe.createElement("div",null,xe.createElement(Oe.Z,{value:`$$${ee.value}$$`}),ee.name),xe.createElement("div",{className:se.Z.children},ee.children.map((oe,ae)=>xe.createElement("div",{key:ae},xe.createElement("h1",null,oe.name),xe.createElement(he.Z,{gutter:[10,10]},oe.data.map((re,le)=>xe.createElement(je.Z,{key:le,onClick:()=>b(re),className:se.Z.diamond},xe.createElement(Oe.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(he.Z,{className:se.Z.lists,gutter:[10,10]},x.map((ee,te)=>xe.createElement(je.Z,{flex:"110px",className:se.Z.item},xe.createElement("div",null,xe.createElement(Oe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),xe.createElement("div",{className:se.Z.children},ee.children.map((oe,ae)=>xe.createElement("div",{key:ae},oe.name&&xe.createElement("h1",null,oe.name),xe.createElement(he.Z,{gutter:[10,10]},oe.data.map((re,le)=>xe.createElement(je.Z,{key:le,onClick:()=>b(re),className:se.Z.diamond},xe.createElement(Oe.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ue&&Ue(te),te};return(0,ge.useImperativeHandle)(ne,()=>({getData:z})),xe.createElement("div",{className:se.Z.mathWrap},xe.createElement(He.default,{defaultActiveKey:"1",items:E}),xe.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},ye||""),Ce&&xe.createElement("div",{className:se.Z.button},xe.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Qe.Z=Ge},1568:function(Be,Qe,ie){"use strict";ie.d(Qe,{h:function(){return ee}});var ge=ie(59301),he=ie(57809),je=ie(78241),He=ie(3113),ue=ie(89780),Oe=ie.n(ue),se=ie(79906),Te=ie(44383),xe=Object.defineProperty,Ge=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ae)=>oe in te?xe(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):te[oe]=ae,y=(te,oe)=>{for(var ae in oe||(oe={}))ye.call(oe,ae)&&a(te,ae,oe[ae]);if(Ce)for(var ae of Ce(oe))ne.call(oe,ae)&&a(te,ae,oe[ae]);return te},x=(te,oe)=>Ge(te,Ue(oe));const b=he.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Qe.Z=({callback:te,onCancel:oe})=>{const[ae,re]=(0,ge.useState)("python");function le(Fe){re(z[Fe][1])}function me(Fe){te(Fe)}return ge.createElement(je.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),ge.createElement(je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(he.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:le},Object.keys(z).map(Fe=>ge.createElement(b,{key:Fe,value:Fe},z[Fe][0])))),ge.createElement(je.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(ee,{mode:ae})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(He.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ae,options:re={}}){const le=(0,ge.useRef)(),[me,Fe]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(me){let _e=function(Ze){const Xe=Ze.getValue();oe&&oe(Xe)};return me.on("change",_e),()=>{me.off("change",_e)}}},[me,oe]),(0,ge.useEffect)(()=>{me&&me.setOption("mode",ae)},[me,ae]),(0,ge.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,ge.useEffect)(()=>{if(le.current&&!me){const _e=Oe().fromTextArea(le.current,y({mode:ae,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Fe(_e)}},[le.current,me]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:le}))}},23469:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return la}});var ge=ie(59301),he=ie(89780),je=ie.n(he),He=ie(76374),ue=ie(79906),Oe=ie(6313),se=ie(25717),Te=ie(99498),xe=ie(25419),Ge=ie(67549),Ue=ie(25711),Ce=({value:ce="",className:ve,showTextOnly:Pe,showLines:Ve,style:st={}})=>{const mt=(0,ge.useMemo)(()=>"",[ce]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:mt}}))},ye=ie(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ce,ve,Pe)=>ve in ce?ne(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[ve]=Pe,ee=(ce,ve)=>{for(var Pe in ve||(ve={}))b.call(ve,Pe)&&z(ce,Pe,ve[Pe]);if(x)for(var Pe of x(ve))E.call(ve,Pe)&&z(ce,Pe,ve[Pe]);return ce},te=(ce,ve)=>a(ce,y(ve));let oe=[{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 ae({onActionCallback:ce,title:ve,icon:Pe,actionName:Ve,className:st="",children:mt}){function Gt(){ce(Ve)}return ye.createElement("a",{title:ve,className:st,onClick:Gt},ye.createElement("i",{className:`${Pe}`}),mt)}var re=({watch:ce,showNullButton:ve,showNullProgramButton:Pe,onActionCallback:Ve,fullScreen:st,insertTemp:mt,hidetoolBar:Gt,extraUse:bt})=>{const Ft=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ye.createElement("ul",{className:"markdown-toolbar-container"},!Gt&&Ft.map((Tt,rn)=>ye.createElement("li",{key:rn},Tt.actionName?ye.createElement(ae,te(ee({},Tt),{onActionCallback:Ve})):ye.createElement("span",{className:"v-line"}))),ve?ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?ye.createElement(ye.Fragment,null,ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,mt&&ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${mt}`,onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),bt&&ye.createElement("li",null,bt),ye.createElement("li",{className:"btn-full-screen"},ye.createElement(ae,{icon:`${st?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:st?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ve})))},le=ie(50474),me=ie(78241),Fe=ie(92832),_e=ie(3113),Ze=Object.defineProperty,Xe=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Me=(ce,ve,Pe)=>ve in ce?Ze(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[ve]=Pe,ke=(ce,ve)=>{for(var Pe in ve||(ve={}))Ie.call(ve,Pe)&&Me(ce,Pe,ve[Pe]);if(Le)for(var Pe of Le(ve))We.call(ve,Pe)&&Me(ce,Pe,ve[Pe]);return ce},at=(ce,ve)=>Xe(ce,et(ve));const St={labelCol:{span:4},wrapperCol:{span:20}};var Lt=({callback:ce,onCancel:ve})=>{function Pe(Ve){ce(Ve)}return ge.createElement(me.default,at(ke({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ge.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(Fe.default,null)),ge.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(Fe.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(_e.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},xt=ie(1568),be=ie(56701),we=ie(43418),Ne=ie(95237),gt=ie(12963),Re=ie(59301),rt=({callback:ce,onCancel:ve})=>{const Pe=document.createElement("canvas"),Ve=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,Ve.fillStyle="#ffffff",Ve.fillRect(0,0,Pe.width,Pe.height);const st=Pe.toDataURL("image/png");return Re.createElement(we.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Re.createElement(Ne.Z,{style:{height:"100vh"}},Re.createElement(gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:st,visible:!0,title:String(Date.now())},onOk:mt=>{ce({src:mt.url})},onClose:ve})))},de=ie(12378);function Ke(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ke,go.CommandHandler),Ke.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Ke.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var ve=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.x,ve))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve,Pe.position.y))}),ce.commitTransaction("aligning left")},Ke.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var ve=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ve=Pe.actualBounds.x+Pe.actualBounds.width;ve=Math.max(Ve,ve)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve-Pe.actualBounds.width,Pe.position.y))}),ce.commitTransaction("aligning right")},Ke.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var ve=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.y,ve))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ve))}),ce.commitTransaction("alignTop")},Ke.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var ve=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ve=Pe.actualBounds.y+Pe.actualBounds.height;ve=Math.max(Ve,ve)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ve-Pe.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Ke.prototype.alignCenterX=function(){var ce=this.diagram,ve=ce.selection.first();if(ve){ce.startTransaction("aligning Center X");var Pe=ve.actualBounds.x+ve.actualBounds.width/2;ce.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Pe-Ve.actualBounds.width/2,Ve.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Ke.prototype.alignCenterY=function(){var ce=this.diagram,ve=ce.selection.first();if(ve){ce.startTransaction("aligning Center Y");var Pe=ve.actualBounds.y+ve.actualBounds.height/2;ce.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Ve.actualBounds.x,Pe-Ve.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Ke.prototype.alignColumn=function(ce){var ve=this.diagram;ve.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=new Array;ve.selection.each(function(bt){bt instanceof go.Link||Pe.push(bt)});for(var Ve=0;Ve0){for(var bt=mt.elt(Gt-1);bt!==null&&bt.isTreeExpanded&&!bt.isTreeLeaf;){var Ft=this._sortTreeChildrenByY(bt);bt=Ft.last()}bt!==null&&ce.select(bt)}else ce.select(st)}}else if(Pe.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var Ve=this._sortTreeChildrenByY(ve).first();Ve!==null&&ce.select(Ve)}else for(;ve!==null;){var st=ve.findTreeParentNode();if(st===null)break;var mt=this._sortTreeChildrenByY(st),Gt=mt.indexOf(ve);if(Gtmt.y?1:st.xmt.x?1:0}),ve},Ke.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Ke.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Ke.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Ke.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var Pt=Ke,wt=ie(37404),vt=ie(43604),Ee=ie(70635),pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Se=ie(59301),fe=(ce,ve,Pe)=>new Promise((Ve,st)=>{var mt=Ft=>{try{bt(Pe.next(Ft))}catch(Tt){st(Tt)}},Gt=Ft=>{try{bt(Pe.throw(Ft))}catch(Tt){st(Tt)}},bt=Ft=>Ft.done?Ve(Ft.value):Promise.resolve(Ft.value).then(mt,Gt);bt((Pe=Pe.apply(ce,ve)).next())});function $e({onCancel:ce,callback:ve}){let Pe=(0,ge.useRef)(),Ve=(0,ge.useRef)(),st=(0,ge.useRef)(),mt=(0,ge.useRef)(!1);const Gt=(0,ge.useRef)(!1),[bt,Ft]=(0,ge.useState)(0);function Tt(){const De=de.bx.make,Et={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new de.S0(Ve.current,{padding:20,grid:De(de.s_,"Grid",De(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ae=>{var it=Ae.diagram.commandHandler.addTopLevelParts(Ae.diagram.selection,!0);it||Ae.diagram.currentTool.doCancel()},commandHandler:De(Pt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ae=>{var it=Ae.subject;it.location=it.location.copy().snapToGridPoint(Ae.diagram.grid.gridOrigin,Ae.diagram.grid.gridCellSize),setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ae=>{var it=Ae.subject;setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ae=>{var it=Ae.parameter.part;it.invalidateConnectedLinks();var yt=Ae.subject;Ae.diagram.toolManager.linkingTool.isForwards?yt.toNode.invalidateConnectedLinks():yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=De(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),De(de.bn,{name:"SHAPE",fill:Et.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),De(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),De(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=De("ToolTip",De(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},De(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),De(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function an(Ae,it){var yt=(dt,Mt)=>{dt.handled=!0,dt.diagram.model.commit(At=>{var Yt=Mt.part.adornedPart,qt=new de.E9().setRectSpot(Yt.actualBounds,Ae);qt.subtract(Yt.location),qt.scale(2,2),qt.x+=Math.sign(qt.x)*130,qt.y+=Math.sign(qt.y)*130,qt.add(Yt.location),qt.snapToGridPoint(dt.diagram.grid.gridOrigin,dt.diagram.grid.gridCellSize);var dn=At.copyNodeData(Yt.data);At.setGroupKeyForNodeData(dn,At.getGroupKeyForNodeData(Yt.data)),At.addNodeData(dn);var Jn={from:Yt.key,to:At.getKeyForNodeData(dn)};At.addLinkData(Jn);var Cn=dt.diagram.findNodeForData(dn);Cn.location=qt,dt.diagram.select(Cn),setTimeout(()=>{dt.diagram.commandHandler.editTextBlock()},20)})};return De(de.bn,{figure:it,alignment:Ae,alignmentFocus:Ae.opposite(),width:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?25:18,height:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Et.white,strokeWidth:4,mouseEnter:(dt,Mt)=>Mt.fill="dodgerblue",mouseLeave:(dt,Mt)=>Mt.fill="orange",isActionable:!0,click:yt,contextClick:yt})}function un(Ae){return De(de.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:(it,yt)=>yt.fill="dodgerblue",mouseLeave:(it,yt)=>yt.fill="orange",click:(it,yt)=>{it.diagram.commandHandler.showContextMenu(yt.part.adornedPart)}},Ae||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=De(de.uz,"Spot",De(de.Vm,{padding:10}),an(de.z6.Top,"TriangleUp"),an(de.z6.Left,"TriangleLeft"),an(de.z6.Right,"TriangleRight"),an(de.z6.Bottom,"TriangleDown"),un({alignment:new de.z6(.75,0)}));function Kt(Ae,it){return(yt,dt)=>{yt.handled=!0,yt.diagram.model.commit(Mt=>{Mt.set(dt.part.adornedPart.data,Ae,it)})}}function kt(Ae,it){return it||(it="color"),De(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.stroke="dodgerblue",mouseLeave:(yt,dt)=>dt.stroke="lightgray",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}function wn(){return[De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.white,"fill"),kt(Et.beige,"fill"),kt(Et.extralightblue,"fill"),kt(Et.extralightred,"fill"))),De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.lightgray,"fill"),kt(Et.lightgreen,"fill"),kt(Et.lightblue,"fill"),kt(Et.lightred,"fill")))]}function Bn(){return[De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.black),kt(Et.green),kt(Et.blue),kt(Et.red))),De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.white),kt(Et.magenta),kt(Et.purple),kt(Et.orange)))]}function Fn(Ae,it){return it||(it="thickness"),De(de.bn,"LineH",{width:16,height:16,strokeWidth:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}function On(Ae,it){return it||(it="dash"),De(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}function xn(){return[De("ContextMenuButton",De(de.s_,"Horizontal",Fn(1),Fn(2),Fn(3),Fn(4))),De("ContextMenuButton",De(de.s_,"Horizontal",On(null),On([2,4]),On([4,4])))]}function Qt(Ae,it){return it||(it="figure"),De(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.fill="dodgerblue",mouseLeave:(yt,dt)=>dt.fill="lightgray",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}Pe.current.nodeTemplate.contextMenu=De("ContextMenu",De("ContextMenuButton",De(de.s_,"Horizontal",Qt("Rectangle"),Qt("RoundedRectangle"),Qt("Ellipse"),Qt("Diamond"))),De("ContextMenuButton",De(de.s_,"Horizontal",Qt("Parallelogram2"),Qt("ManualOperation"),Qt("Procedure"),Qt("Cylinder1"))),De("ContextMenuButton",De(de.s_,"Horizontal",Qt("Terminator"),Qt("CreateRequest"),Qt("Document"),Qt("TriangleDown"))),wn(),Bn(),xn()),Pe.current.groupTemplate=De(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ae,it)=>{var yt=it.addMembers(it.diagram.selection,!0);yt||it.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),De(de.s_,"Auto",{name:"BODY"},De(de.bn,{parameter1:10,fill:Et.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),De(de.Vm,{background:"transparent",margin:20})),De(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=De(de.uz,"Spot",De(de.s_,"Auto",De(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),De(de.Vm,{margin:1.5})),un({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=De("ContextMenu",wn(),Bn(),xn()),Pe.current.linkTemplate=De(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("toShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("points").makeTwoWay(),De(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),De(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae===1)),De(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae>=1),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),De(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae===2),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),De(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=De(de.uz,De(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Nn(2)},new de.KX("pathPattern","thickness",Nn)),un({alignmentFocus:new de.z6(0,0,-6,-4)}));function Nn(Ae){return De(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ae+4).toString()+" H3"})}function Ln(Ae){var it="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ae===0?it="M0 0 M16 16 M0 8 L16 8":Ae===2&&(it="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),De(de.bn,{geometryString:it,margin:2,background:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:Kt("dir",Ae),contextClick:Kt("dir",Ae)})}function An(Ae){var it=(yt,dt)=>{yt.handled=!0,yt.diagram.model.commit(Mt=>{var At=dt.part.adornedPart;Mt.set(At.data,Ae?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ae?At.toNode:At.fromNode).invalidateConnectedLinks()})};return De(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:it,contextClick:it})}function ze(Ae,it){var yt=0,dt=de.z6.RightSide;Ae.equals(de.z6.Top)?(yt=270,dt=de.z6.TopSide):Ae.equals(de.z6.Left)?(yt=180,dt=de.z6.LeftSide):Ae.equals(de.z6.Bottom)&&(yt=90,dt=de.z6.BottomSide),it||(yt-=180);var Mt=(At,Yt)=>{At.handled=!0,At.diagram.model.commit(qt=>{var dn=Yt.part.adornedPart;qt.set(dn.data,it?"toSpot":"fromSpot",de.z6.stringify(dt)),(it?dn.toNode:dn.fromNode).invalidateConnectedLinks()})};return De(de.bn,{alignment:Ae,alignmentFocus:Ae.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yt,background:"transparent",mouseEnter:(At,Yt)=>Yt.background="dodgerblue",mouseLeave:(At,Yt)=>Yt.background="transparent",click:Mt,contextClick:Mt})}Pe.current.linkTemplate.contextMenu=De("ContextMenu",Bn(),xn(),De("ContextMenuButton",De(de.s_,"Horizontal",Ln(0),Ln(1),Ln(2))),De("ContextMenuButton",De(de.s_,"Horizontal",De(de.s_,"Spot",An(!1),ze(de.z6.Top,!1),ze(de.z6.Left,!1),ze(de.z6.Right,!1),ze(de.z6.Bottom,!1)),De(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},An(!0),ze(de.z6.Top,!0),ze(de.z6.Left,!0),ze(de.z6.Right,!0),ze(de.z6.Bottom,!0)))));const Yn=`{ "class": "GraphLinksModel", +\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>xe.createElement(je.Z,{flex:"110px",className:se.Z.item},xe.createElement("div",null,xe.createElement(Oe.Z,{value:`$$${ee.value}$$`}),ee.name),xe.createElement("div",{className:se.Z.children},ee.children.map((oe,ae)=>xe.createElement("div",{key:ae},xe.createElement("h1",null,oe.name),xe.createElement(fe.Z,{gutter:[10,10]},oe.data.map((re,le)=>xe.createElement(je.Z,{key:le,onClick:()=>b(re),className:se.Z.diamond},xe.createElement(Oe.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(fe.Z,{className:se.Z.lists,gutter:[10,10]},x.map((ee,te)=>xe.createElement(je.Z,{flex:"110px",className:se.Z.item},xe.createElement("div",null,xe.createElement(Oe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),xe.createElement("div",{className:se.Z.children},ee.children.map((oe,ae)=>xe.createElement("div",{key:ae},oe.name&&xe.createElement("h1",null,oe.name),xe.createElement(fe.Z,{gutter:[10,10]},oe.data.map((re,le)=>xe.createElement(je.Z,{key:le,onClick:()=>b(re),className:se.Z.diamond},xe.createElement(Oe.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ue&&Ue(te),te};return(0,ge.useImperativeHandle)(ne,()=>({getData:z})),xe.createElement("div",{className:se.Z.mathWrap},xe.createElement(He.default,{defaultActiveKey:"1",items:E}),xe.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},ye||""),Ce&&xe.createElement("div",{className:se.Z.button},xe.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Qe.Z=Ge},1568:function(Be,Qe,ie){"use strict";ie.d(Qe,{h:function(){return ee}});var ge=ie(59301),fe=ie(57809),je=ie(78241),He=ie(3113),ue=ie(89780),Oe=ie.n(ue),se=ie(79906),Te=ie(44383),xe=Object.defineProperty,Ge=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ae)=>oe in te?xe(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):te[oe]=ae,y=(te,oe)=>{for(var ae in oe||(oe={}))ye.call(oe,ae)&&a(te,ae,oe[ae]);if(Ce)for(var ae of Ce(oe))ne.call(oe,ae)&&a(te,ae,oe[ae]);return te},x=(te,oe)=>Ge(te,Ue(oe));const b=fe.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Qe.Z=({callback:te,onCancel:oe})=>{const[ae,re]=(0,ge.useState)("python");function le(Fe){re(z[Fe][1])}function me(Fe){te(Fe)}return ge.createElement(je.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),ge.createElement(je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(fe.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:le},Object.keys(z).map(Fe=>ge.createElement(b,{key:Fe,value:Fe},z[Fe][0])))),ge.createElement(je.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(ee,{mode:ae})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(He.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ae,options:re={}}){const le=(0,ge.useRef)(),[me,Fe]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(me){let _e=function(Ze){const Xe=Ze.getValue();oe&&oe(Xe)};return me.on("change",_e),()=>{me.off("change",_e)}}},[me,oe]),(0,ge.useEffect)(()=>{me&&me.setOption("mode",ae)},[me,ae]),(0,ge.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,ge.useEffect)(()=>{if(le.current&&!me){const _e=Oe().fromTextArea(le.current,y({mode:ae,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Fe(_e)}},[le.current,me]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:le}))}},23469:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return la}});var ge=ie(59301),fe=ie(89780),je=ie.n(fe),He=ie(76374),ue=ie(79906),Oe=ie(6313),se=ie(25717),Te=ie(99498),xe=ie(25419),Ge=ie(67549),Ue=ie(25711),Ce=({value:ce="",className:pe,showTextOnly:Pe,showLines:Ve,style:st={}})=>{const mt=(0,ge.useMemo)(()=>"",[ce]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:mt}}))},ye=ie(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ce,pe,Pe)=>pe in ce?ne(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,ee=(ce,pe)=>{for(var Pe in pe||(pe={}))b.call(pe,Pe)&&z(ce,Pe,pe[Pe]);if(x)for(var Pe of x(pe))E.call(pe,Pe)&&z(ce,Pe,pe[Pe]);return ce},te=(ce,pe)=>a(ce,y(pe));let oe=[{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 ae({onActionCallback:ce,title:pe,icon:Pe,actionName:Ve,className:st="",children:mt}){function Gt(){ce(Ve)}return ye.createElement("a",{title:pe,className:st,onClick:Gt},ye.createElement("i",{className:`${Pe}`}),mt)}var re=({watch:ce,showNullButton:pe,showNullProgramButton:Pe,onActionCallback:Ve,fullScreen:st,insertTemp:mt,hidetoolBar:Gt,extraUse:bt})=>{const Ft=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ye.createElement("ul",{className:"markdown-toolbar-container"},!Gt&&Ft.map((Tt,rn)=>ye.createElement("li",{key:rn},Tt.actionName?ye.createElement(ae,te(ee({},Tt),{onActionCallback:Ve})):ye.createElement("span",{className:"v-line"}))),pe?ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?ye.createElement(ye.Fragment,null,ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,mt&&ye.createElement("li",null,ye.createElement(ae,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${mt}`,onActionCallback:Ve},ye.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),bt&&ye.createElement("li",null,bt),ye.createElement("li",{className:"btn-full-screen"},ye.createElement(ae,{icon:`${st?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:st?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ve})))},le=ie(50474),me=ie(78241),Fe=ie(92832),_e=ie(3113),Ze=Object.defineProperty,Xe=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Me=(ce,pe,Pe)=>pe in ce?Ze(ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[pe]=Pe,ke=(ce,pe)=>{for(var Pe in pe||(pe={}))Ie.call(pe,Pe)&&Me(ce,Pe,pe[Pe]);if(Le)for(var Pe of Le(pe))We.call(pe,Pe)&&Me(ce,Pe,pe[Pe]);return ce},at=(ce,pe)=>Xe(ce,et(pe));const St={labelCol:{span:4},wrapperCol:{span:20}};var Lt=({callback:ce,onCancel:pe})=>{function Pe(Ve){ce(Ve)}return ge.createElement(me.default,at(ke({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ge.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(Fe.default,null)),ge.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(Fe.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(_e.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},xt=ie(1568),be=ie(56701),we=ie(43418),Ne=ie(95237),gt=ie(12963),Re=ie(59301),rt=({callback:ce,onCancel:pe})=>{const Pe=document.createElement("canvas"),Ve=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,Ve.fillStyle="#ffffff",Ve.fillRect(0,0,Pe.width,Pe.height);const st=Pe.toDataURL("image/png");return Re.createElement(we.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Re.createElement(Ne.Z,{style:{height:"100vh"}},Re.createElement(gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:st,visible:!0,title:String(Date.now())},onOk:mt=>{ce({src:mt.url})},onClose:pe})))},de=ie(12378);function Ke(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ke,go.CommandHandler),Ke.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Ke.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var pe=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.x,pe))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe,Pe.position.y))}),ce.commitTransaction("aligning left")},Ke.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var pe=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ve=Pe.actualBounds.x+Pe.actualBounds.width;pe=Math.max(Ve,pe)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(pe-Pe.actualBounds.width,Pe.position.y))}),ce.commitTransaction("aligning right")},Ke.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var pe=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(pe=Math.min(Pe.position.y,pe))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,pe))}),ce.commitTransaction("alignTop")},Ke.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var pe=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ve=Pe.actualBounds.y+Pe.actualBounds.height;pe=Math.max(Ve,pe)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,pe-Pe.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Ke.prototype.alignCenterX=function(){var ce=this.diagram,pe=ce.selection.first();if(pe){ce.startTransaction("aligning Center X");var Pe=pe.actualBounds.x+pe.actualBounds.width/2;ce.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Pe-Ve.actualBounds.width/2,Ve.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Ke.prototype.alignCenterY=function(){var ce=this.diagram,pe=ce.selection.first();if(pe){ce.startTransaction("aligning Center Y");var Pe=pe.actualBounds.y+pe.actualBounds.height/2;ce.selection.each(function(Ve){Ve instanceof go.Link||Ve.move(new go.Point(Ve.actualBounds.x,Pe-Ve.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Ke.prototype.alignColumn=function(ce){var pe=this.diagram;pe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=new Array;pe.selection.each(function(bt){bt instanceof go.Link||Pe.push(bt)});for(var Ve=0;Ve0){for(var bt=mt.elt(Gt-1);bt!==null&&bt.isTreeExpanded&&!bt.isTreeLeaf;){var Ft=this._sortTreeChildrenByY(bt);bt=Ft.last()}bt!==null&&ce.select(bt)}else ce.select(st)}}else if(Pe.key==="Down")if(pe.isTreeExpanded&&!pe.isTreeLeaf){var Ve=this._sortTreeChildrenByY(pe).first();Ve!==null&&ce.select(Ve)}else for(;pe!==null;){var st=pe.findTreeParentNode();if(st===null)break;var mt=this._sortTreeChildrenByY(st),Gt=mt.indexOf(pe);if(Gtmt.y?1:st.xmt.x?1:0}),pe},Ke.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Ke.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Ke.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Ke.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var Pt=Ke,wt=ie(37404),vt=ie(43604),Ee=ie(70635),ve={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Se=ie(59301),he=(ce,pe,Pe)=>new Promise((Ve,st)=>{var mt=Ft=>{try{bt(Pe.next(Ft))}catch(Tt){st(Tt)}},Gt=Ft=>{try{bt(Pe.throw(Ft))}catch(Tt){st(Tt)}},bt=Ft=>Ft.done?Ve(Ft.value):Promise.resolve(Ft.value).then(mt,Gt);bt((Pe=Pe.apply(ce,pe)).next())});function $e({onCancel:ce,callback:pe}){let Pe=(0,ge.useRef)(),Ve=(0,ge.useRef)(),st=(0,ge.useRef)(),mt=(0,ge.useRef)(!1);const Gt=(0,ge.useRef)(!1),[bt,Ft]=(0,ge.useState)(0);function Tt(){const De=de.bx.make,Et={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new de.S0(Ve.current,{padding:20,grid:De(de.s_,"Grid",De(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ae=>{var it=Ae.diagram.commandHandler.addTopLevelParts(Ae.diagram.selection,!0);it||Ae.diagram.currentTool.doCancel()},commandHandler:De(Pt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ae=>{var it=Ae.subject;it.location=it.location.copy().snapToGridPoint(Ae.diagram.grid.gridOrigin,Ae.diagram.grid.gridCellSize),setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ae=>{var it=Ae.subject;setTimeout(()=>{Ae.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ae=>{var it=Ae.parameter.part;it.invalidateConnectedLinks();var yt=Ae.subject;Ae.diagram.toolManager.linkingTool.isForwards?yt.toNode.invalidateConnectedLinks():yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=De(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),De(de.bn,{name:"SHAPE",fill:Et.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),De(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),De(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=De("ToolTip",De(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},De(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),De(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function an(Ae,it){var yt=(dt,Mt)=>{dt.handled=!0,dt.diagram.model.commit(At=>{var Yt=Mt.part.adornedPart,qt=new de.E9().setRectSpot(Yt.actualBounds,Ae);qt.subtract(Yt.location),qt.scale(2,2),qt.x+=Math.sign(qt.x)*130,qt.y+=Math.sign(qt.y)*130,qt.add(Yt.location),qt.snapToGridPoint(dt.diagram.grid.gridOrigin,dt.diagram.grid.gridCellSize);var dn=At.copyNodeData(Yt.data);At.setGroupKeyForNodeData(dn,At.getGroupKeyForNodeData(Yt.data)),At.addNodeData(dn);var Jn={from:Yt.key,to:At.getKeyForNodeData(dn)};At.addLinkData(Jn);var Cn=dt.diagram.findNodeForData(dn);Cn.location=qt,dt.diagram.select(Cn),setTimeout(()=>{dt.diagram.commandHandler.editTextBlock()},20)})};return De(de.bn,{figure:it,alignment:Ae,alignmentFocus:Ae.opposite(),width:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?25:18,height:Ae.equals(de.z6.Top)||Ae.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Et.white,strokeWidth:4,mouseEnter:(dt,Mt)=>Mt.fill="dodgerblue",mouseLeave:(dt,Mt)=>Mt.fill="orange",isActionable:!0,click:yt,contextClick:yt})}function un(Ae){return De(de.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:(it,yt)=>yt.fill="dodgerblue",mouseLeave:(it,yt)=>yt.fill="orange",click:(it,yt)=>{it.diagram.commandHandler.showContextMenu(yt.part.adornedPart)}},Ae||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=De(de.uz,"Spot",De(de.Vm,{padding:10}),an(de.z6.Top,"TriangleUp"),an(de.z6.Left,"TriangleLeft"),an(de.z6.Right,"TriangleRight"),an(de.z6.Bottom,"TriangleDown"),un({alignment:new de.z6(.75,0)}));function Kt(Ae,it){return(yt,dt)=>{yt.handled=!0,yt.diagram.model.commit(Mt=>{Mt.set(dt.part.adornedPart.data,Ae,it)})}}function kt(Ae,it){return it||(it="color"),De(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.stroke="dodgerblue",mouseLeave:(yt,dt)=>dt.stroke="lightgray",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}function wn(){return[De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.white,"fill"),kt(Et.beige,"fill"),kt(Et.extralightblue,"fill"),kt(Et.extralightred,"fill"))),De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.lightgray,"fill"),kt(Et.lightgreen,"fill"),kt(Et.lightblue,"fill"),kt(Et.lightred,"fill")))]}function Bn(){return[De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.black),kt(Et.green),kt(Et.blue),kt(Et.red))),De("ContextMenuButton",De(de.s_,"Horizontal",kt(Et.white),kt(Et.magenta),kt(Et.purple),kt(Et.orange)))]}function Fn(Ae,it){return it||(it="thickness"),De(de.bn,"LineH",{width:16,height:16,strokeWidth:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}function On(Ae,it){return it||(it="dash"),De(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}function xn(){return[De("ContextMenuButton",De(de.s_,"Horizontal",Fn(1),Fn(2),Fn(3),Fn(4))),De("ContextMenuButton",De(de.s_,"Horizontal",On(null),On([2,4]),On([4,4])))]}function Qt(Ae,it){return it||(it="figure"),De(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ae,margin:1,background:"transparent",mouseEnter:(yt,dt)=>dt.fill="dodgerblue",mouseLeave:(yt,dt)=>dt.fill="lightgray",click:Kt(it,Ae),contextClick:Kt(it,Ae)})}Pe.current.nodeTemplate.contextMenu=De("ContextMenu",De("ContextMenuButton",De(de.s_,"Horizontal",Qt("Rectangle"),Qt("RoundedRectangle"),Qt("Ellipse"),Qt("Diamond"))),De("ContextMenuButton",De(de.s_,"Horizontal",Qt("Parallelogram2"),Qt("ManualOperation"),Qt("Procedure"),Qt("Cylinder1"))),De("ContextMenuButton",De(de.s_,"Horizontal",Qt("Terminator"),Qt("CreateRequest"),Qt("Document"),Qt("TriangleDown"))),wn(),Bn(),xn()),Pe.current.groupTemplate=De(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ae,it)=>{var yt=it.addMembers(it.diagram.selection,!0);yt||it.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),De(de.s_,"Auto",{name:"BODY"},De(de.bn,{parameter1:10,fill:Et.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),De(de.Vm,{background:"transparent",margin:20})),De(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=De(de.uz,"Spot",De(de.s_,"Auto",De(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),De(de.Vm,{margin:1.5})),un({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=De("ContextMenu",wn(),Bn(),xn()),Pe.current.linkTemplate=De(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("toShortLength","dir",Ae=>Ae>=1?10:0),new de.KX("points").makeTwoWay(),De(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),De(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae===1)),De(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae>=1),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),De(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ae=>Ae===2),new de.KX("width","thickness",Ae=>7+3*Ae),new de.KX("height","thickness",Ae=>7+3*Ae),new de.KX("segmentOffset","thickness",Ae=>new de.E9(-15,4+1.5*Ae))),De(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=De(de.uz,De(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Nn(2)},new de.KX("pathPattern","thickness",Nn)),un({alignmentFocus:new de.z6(0,0,-6,-4)}));function Nn(Ae){return De(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ae+4).toString()+" H3"})}function Ln(Ae){var it="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ae===0?it="M0 0 M16 16 M0 8 L16 8":Ae===2&&(it="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),De(de.bn,{geometryString:it,margin:2,background:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:Kt("dir",Ae),contextClick:Kt("dir",Ae)})}function An(Ae){var it=(yt,dt)=>{yt.handled=!0,yt.diagram.model.commit(Mt=>{var At=dt.part.adornedPart;Mt.set(At.data,Ae?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ae?At.toNode:At.fromNode).invalidateConnectedLinks()})};return De(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(yt,dt)=>dt.background="dodgerblue",mouseLeave:(yt,dt)=>dt.background="transparent",click:it,contextClick:it})}function ze(Ae,it){var yt=0,dt=de.z6.RightSide;Ae.equals(de.z6.Top)?(yt=270,dt=de.z6.TopSide):Ae.equals(de.z6.Left)?(yt=180,dt=de.z6.LeftSide):Ae.equals(de.z6.Bottom)&&(yt=90,dt=de.z6.BottomSide),it||(yt-=180);var Mt=(At,Yt)=>{At.handled=!0,At.diagram.model.commit(qt=>{var dn=Yt.part.adornedPart;qt.set(dn.data,it?"toSpot":"fromSpot",de.z6.stringify(dt)),(it?dn.toNode:dn.fromNode).invalidateConnectedLinks()})};return De(de.bn,{alignment:Ae,alignmentFocus:Ae.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:yt,background:"transparent",mouseEnter:(At,Yt)=>Yt.background="dodgerblue",mouseLeave:(At,Yt)=>Yt.background="transparent",click:Mt,contextClick:Mt})}Pe.current.linkTemplate.contextMenu=De("ContextMenu",Bn(),xn(),De("ContextMenuButton",De(de.s_,"Horizontal",Ln(0),Ln(1),Ln(2))),De("ContextMenuButton",De(de.s_,"Horizontal",De(de.s_,"Spot",An(!1),ze(de.z6.Top,!1),ze(de.z6.Left,!1),ze(de.z6.Right,!1),ze(de.z6.Bottom,!1)),De(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},An(!0),ze(de.z6.Top,!0),ze(de.z6.Left,!0),ze(de.z6.Right,!0),ze(de.z6.Bottom,!0)))));const Yn=`{ "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"}, @@ -86,9 +86,9 @@ {"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 En=["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 Tn(Ae){return console.log("shapeName:",Ae),En.indexOf(Ae)>=0}var Sn=new de.YI(st.current,{maxSelectionCount:1,linkTemplate:De(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:De(de.uz,"Link",{locationSpot:de.z6.Center},De(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),De(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),De(de.bn,{isPanelMain:!0,strokeWidth:2}),De(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ae=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ae.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ae){var it;const yt=Ae.subject.part;var dt=(it=document.activeElement)==null?void 0:it.value;typeof dt=="string"&&dt.trim()===""&&Pe.current.model.commit(function(Mt){Mt.set(yt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Sn.nodeTemplate=De(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),De(de.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 de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),De(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=De(de.s_,"Grid",De(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const rn=()=>fe(this,null,function*(){var De=Pe.current.makeImage();const Et=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:De.src}});ve({src:Et.url})});return(0,ge.useEffect)(()=>(setTimeout(()=>{Tt()},500),Ft(bt+1),()=>{Pe.current=null}),[]),Se.createElement("div",{ref:Gt,className:mt.current?`${pe.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(we.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(Ne.Z,null,Se.createElement(vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(vt.Z,{onClick:()=>{var De,Et,an=Pe.current.selection.first();if(mt.current=!mt.current,document.activeElement&&an){let un=(Et=(De=document.activeElement)==null?void 0:De.value)==null?void 0:Et.trim();typeof un=="string"&&Pe.current.model.commit(function(Kt){Kt.set(an.data,"text",un||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Ft(bt+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:pe.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:pe.myPaletteDiv,ref:st})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:Ve,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(_e.ZP,{size:"large",onClick:rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Je=$e,lt=ie(5112),ut=ie(5871);const ht=lt.ZP.Group,ft={margin:"0 8px"};var ot=({callback:ce,onCancel:ve})=>{function Pe(Ve){ce(Ve)}return ge.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:ft},"\u884C\u6570"),ge.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(ut.Z,null)),ge.createElement("span",{style:ft},"\u5217\u6570"),ge.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(ut.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(me.default.Item,{name:"align"},ge.createElement(ht,null,ge.createElement(lt.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(lt.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(lt.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(lt.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(_e.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},ct=ie(78673),pt=ie(98598),zt=ie.n(pt),Bt=(0,ge.forwardRef)(({use3d:ce,width:ve,height:Pe,callback:Ve,showSaveButton:st},mt)=>{const Gt=(0,ge.useRef)(),bt=(0,ge.useRef)(),[Ft,Tt]=(0,ge.useState)(!1),rn=(0,ge.useRef)({id:Gt,appName:"graphing",width:ve||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{bt.current=new(zt())(rn.current,!0),window.onload=function(){bt.current.inject("applet_container")}},[]);const De=()=>{var Et=window.ggbApplet.getPNGBase64(1,!0,72);return Ve&&Ve(Et),Et};return(0,ge.useEffect)(()=>{rn.current.appName=Ft?"3D":"graphing",bt.current.inject("applet_container")},[Ft]),(0,ge.useEffect)(()=>{Tt(ce)},[ce]),(0,ge.useImperativeHandle)(mt,()=>({getImgData:De})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gt}),ge.createElement(Ne.Z,{align:"middle"},ge.createElement(vt.Z,{flex:1},ge.createElement(ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ft,onChange:Et=>Tt(Et)})),ge.createElement(vt.Z,null,ge.createElement(_e.ZP,{size:"large",onClick:De,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ot=ie(75890),Nt=ie(1012),It=ie(8591);const Rt="link",Wt="upload-image",Zt="add-flowchart",Ht="draw-image",nn="add-flowchart",_t="code-block",Xt="add-table",on="------------",sn={default:on,left:`:${on}`,center:`:${on}:`,right:`${on}:`};var zn=ie(91300),vn=(ce,ve,Pe)=>new Promise((Ve,st)=>{var mt=Ft=>{try{bt(Pe.next(Ft))}catch(Tt){st(Tt)}},Gt=Ft=>{try{bt(Pe.throw(Ft))}catch(Tt){st(Tt)}},bt=Ft=>Ft.done?Ve(Ft.value):Promise.resolve(Ft.value).then(mt,Gt);bt((Pe=Pe.apply(ce,ve)).next())});function bn(){}let Mn=0;const hn=1e4,$n="\u2581",gn="@\u2581\u2581@",_n="@\u2581@",Zn=` +]}`;var En=["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 Tn(Ae){return console.log("shapeName:",Ae),En.indexOf(Ae)>=0}var Sn=new de.YI(st.current,{maxSelectionCount:1,linkTemplate:De(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:De(de.uz,"Link",{locationSpot:de.z6.Center},De(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),De(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),De(de.bn,{isPanelMain:!0,strokeWidth:2}),De(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ae=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ae.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ae){var it;const yt=Ae.subject.part;var dt=(it=document.activeElement)==null?void 0:it.value;typeof dt=="string"&&dt.trim()===""&&Pe.current.model.commit(function(Mt){Mt.set(yt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),Sn.nodeTemplate=De(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),De(de.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 de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),De(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=De(de.s_,"Grid",De(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const rn=()=>he(this,null,function*(){var De=Pe.current.makeImage();const Et=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:De.src}});pe({src:Et.url})});return(0,ge.useEffect)(()=>(setTimeout(()=>{Tt()},500),Ft(bt+1),()=>{Pe.current=null}),[]),Se.createElement("div",{ref:Gt,className:mt.current?`${ve.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(we.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!bt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(Ne.Z,null,Se.createElement(vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(vt.Z,{onClick:()=>{var De,Et,an=Pe.current.selection.first();if(mt.current=!mt.current,document.activeElement&&an){let un=(Et=(De=document.activeElement)==null?void 0:De.value)==null?void 0:Et.trim();typeof un=="string"&&Pe.current.model.commit(function(Kt){Kt.set(an.data,"text",un||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Ft(bt+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ve.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:ve.myPaletteDiv,ref:st})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:Ve,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(_e.ZP,{size:"large",onClick:rn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Je=$e,lt=ie(5112),ut=ie(5871);const ht=lt.ZP.Group,ft={margin:"0 8px"};var ot=({callback:ce,onCancel:pe})=>{function Pe(Ve){ce(Ve)}return ge.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:ft},"\u884C\u6570"),ge.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(ut.Z,null)),ge.createElement("span",{style:ft},"\u5217\u6570"),ge.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(ut.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(me.default.Item,{name:"align"},ge.createElement(ht,null,ge.createElement(lt.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(lt.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(lt.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(lt.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(_e.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},ct=ie(78673),pt=ie(98598),zt=ie.n(pt),Bt=(0,ge.forwardRef)(({use3d:ce,width:pe,height:Pe,callback:Ve,showSaveButton:st},mt)=>{const Gt=(0,ge.useRef)(),bt=(0,ge.useRef)(),[Ft,Tt]=(0,ge.useState)(!1),rn=(0,ge.useRef)({id:Gt,appName:"graphing",width:pe||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{bt.current=new(zt())(rn.current,!0),window.onload=function(){bt.current.inject("applet_container")}},[]);const De=()=>{var Et=window.ggbApplet.getPNGBase64(1,!0,72);return Ve&&Ve(Et),Et};return(0,ge.useEffect)(()=>{rn.current.appName=Ft?"3D":"graphing",bt.current.inject("applet_container")},[Ft]),(0,ge.useEffect)(()=>{Tt(ce)},[ce]),(0,ge.useImperativeHandle)(mt,()=>({getImgData:De})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gt}),ge.createElement(Ne.Z,{align:"middle"},ge.createElement(vt.Z,{flex:1},ge.createElement(ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ft,onChange:Et=>Tt(Et)})),ge.createElement(vt.Z,null,ge.createElement(_e.ZP,{size:"large",onClick:De,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ot=ie(75890),Nt=ie(1012),It=ie(8591);const Rt="link",Wt="upload-image",Zt="add-flowchart",Ht="draw-image",nn="add-flowchart",_t="code-block",Xt="add-table",on="------------",sn={default:on,left:`:${on}`,center:`:${on}:`,right:`${on}:`};var zn=ie(91300),vn=(ce,pe,Pe)=>new Promise((Ve,st)=>{var mt=Ft=>{try{bt(Pe.next(Ft))}catch(Tt){st(Tt)}},Gt=Ft=>{try{bt(Pe.throw(Ft))}catch(Tt){st(Tt)}},bt=Ft=>Ft.done?Ve(Ft.value):Promise.resolve(Ft.value).then(mt,Gt);bt((Pe=Pe.apply(ce,pe)).next())});function bn(){}let Mn=0;const hn=1e4,$n="\u2581",gn="@\u2581\u2581@",_n="@\u2581@",Zn=` **\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`,Dn=["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 fn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ma={[mn+"-B"]:"bold",[mn+"-I"]:"italic"},Xn={[Rt]:"\u6DFB\u52A0\u94FE\u63A5",[_t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Wt]:"\u6DFB\u52A0\u56FE\u7247",[Ht]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var la=({defaultValue:ce="",onChange:ve,width:Pe="100%",height:Ve=400,miniToolbar:st=!1,isFocus:mt=!1,watch:Gt,insertTemp:bt,mode:Ft="markdown",id:Tt="markdown-editor-id",showResizeBar:rn=!1,noStorage:De=!1,showNullButton:Et=!1,showNullProgramButton:an=!1,hidetoolBar:un=!1,fullScreen:Kt=!1,onBlur:kt,onCMBeforeChange:wn,onFullScreen:Bn,className:Fn="",disablePaste:On=!1,disabled:xn=!1,disabledFill:Qt=!1,placeholder:Nn="",values:Ln="",extraUse:An})=>{const[ze,Yn]=(0,ge.useState)(null),[En,Tn]=(0,ge.useState)(ce),[Sn,Ae]=(0,ge.useState)(Gt),[it,yt]=(0,ge.useState)(Kt),[dt,Mt]=(0,ge.useState)(""),[At,Yt]=(0,ge.useState)(0),[qt,dn]=(0,ge.useState)(Ve),[Jn,Cn]=(0,ge.useState)(!1),sa=(0,ge.useRef)((0,Nt.Z)()),ua=(0,ge.useRef)(!1),Qn=(0,ge.useRef)(),[qn,ea]=(0,ge.useState)(0),[ta,na]=(0,ge.useState)(0),yn=(0,ge.useRef)(),In=(0,ge.useRef)(),kn=(0,ge.useRef)(),Rn=(0,ge.useRef)(),Sa=()=>vn(void 0,null,function*(){var nt;const Ye=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:sa.current}});(nt=Ye==null?void 0:Ye.attachments)!=null&&nt.length&&(console.log("cm:",ze,yn),Ye.attachments.map(qe=>{qe.content_type.indexOf("image")>-1?ze.replaceSelection(`![,](/api/attachments/${qe.id}?type=${qe.content_type})`):qe.content_type.indexOf("video")>-1?ze.replaceSelection(``):qe.content_type.indexOf("pdf")>-1?ze.replaceSelection(`${qe.name}`):ze.replaceSelection(`[${qe.name}](${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type})`)}))});(0,ge.useEffect)(()=>{const nt=window.scrollY||window.pageYOffset;Tn(Ln),ze==null||ze.setValue(Ln),window.scrollTo(0,nt)},[Ln]),(0,ge.useEffect)(()=>{Bn==null||Bn(it)},[it]),(0,ge.useEffect)(()=>{if(yn.current){let nt=function(qe,tt){var Ct;if(On){tt.preventDefault();return}const Dt=tt.clipboardData;if(Dt){const Jt=Dt.types.toString(),jt=Dt.items;if(Jt==="Files"||Dt.types.indexOf("Files")>-1){if(tt.preventDefault(),Ft=="stex")return;try{let Ut=jt[1];((Ct=jt[0])==null?void 0:Ct.kind)==="file"&&(Ut=jt[0]);const Vt=Ut.getAsFile(),Pn=Vt.name.split(".").pop();(0,be.I)(Vt,en=>{var jn,Hn,Wn;en.id?((jn=Vt==null?void 0:Vt.type)==null?void 0:jn.indexOf("image"))>-1?Ye.replaceSelection(`![,](/api/attachments/${en.id}?type=${en.content_type})`):((Hn=Vt==null?void 0:Vt.type)==null?void 0:Hn.indexOf("video"))>-1?Ye.replaceSelection(``):((Wn=Vt==null?void 0:Vt.type)==null?void 0:Wn.indexOf("pdf"))>-1?Ye.replaceSelection(`${Vt.name}`):Dn.includes(Pn)?Ye.replaceSelection(`${Vt.name}`):Ye.replaceSelection(`[${Vt.name}](/api/attachments/${en.id}?type=${en.content_type})`):(en==null?void 0:en.status)===401&&(It.ZP.warning((en==null?void 0:en.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ut){It.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ye=je().fromTextArea(yn.current,{mode:Ft,lineNumbers:!st,lineWrapping:!0,value:ce,autoCloseTags:!an,autoCloseBrackets:!0});return Ye.on("keyup",function(qe,tt){tt.keyCode===8&&(qe.getValue()==""?Ye.setOption("placeholder",Nn):Ye.setOption("placeholder",null))}),Ye.on("keydown",function(qe,tt){if(tt.keyCode===8){var Ct=ca(qe);Ct&&tt.preventDefault()}}),mt&&Ye.focus(),Ye.on("paste",nt),Ye.on("dragleave",function(qe,tt){In.current.classList.remove("mouse-hover-md")}),xn&&Ye.on("beforeChange",function(qe,tt){(tt.origin==="paste"||tt.origin==="+input")&&tt.cancel()}),Yn(Ye),()=>{Ye.off("paste",nt)}}},[]);const aa=(0,ge.useCallback)(()=>{if(In.current)try{}catch(nt){console.log(nt,"---- to set md editor body height")}},[qt,In,it]);(0,ge.useEffect)(()=>{function nt(){let Ye=new He.Z(qe=>{for(let tt of qe)(tt.target.offsetHeight>0||tt.target.offsetWidth>0)&&(aa(),ze.setSize("100%","100%"),ze.refresh())});return Ye.observe(yn.current.parentElement),Ye}if(ze){const Ye=nt();return()=>{var qe,tt;(qe=yn.current)!=null&&qe.parentElement&&Ye.unobserve((tt=yn.current)==null?void 0:tt.parentElement)}}},[ze,aa]),(0,ge.useEffect)(()=>{if(ze){let nt=[];for(const[Ye,qe]of Object.entries(ma)){let tt={[Ye]:()=>{oa(qe)}};nt.push(tt),ze.addKeyMap(tt)}return Qn.current=setInterval(()=>{ua.current&&Sa()},4e3),()=>{clearInterval(Qn.current);for(let Ye of nt)ze.removeKeyMap(Ye)}}},[ze]),(0,ge.useEffect)(()=>{Kt!==it&&yt(Kt)},[Kt]),(0,zn.Z)(()=>{if(!De&&At>0){let nt=new Date().getTime(),Ye=window.sessionStorage.getItem(Tt);nt>=At+hn&&(!Ye||Ye!==En)&&(window.sessionStorage.setItem(Tt,En),Cn(!0))}},hn),(0,ge.useEffect)(()=>{Ae(Gt)},[ze,Gt]),(0,ge.useEffect)(()=>{ze&&mt&&ze.focus()},[ze,mt]),(0,ge.useEffect)(()=>{if(Sn&&ze){let nt=function(qe){let tt=qe.target;if(Rn.current){let Ct=tt.scrollTop/tt.scrollHeight;Rn.current.scrollTop=Rn.current.scrollHeight*Ct}};const Ye=ze.getScrollerElement();return Ye.addEventListener("scroll",nt),()=>{Ye.removeEventListener("scroll",nt)}}},[ze,Sn]),(0,ge.useEffect)(()=>{if(ze&&wn){let nt=function(Ye,qe){wn(Ye,qe)};return ze.on("beforeChange",nt),()=>{ze.off("beforeChange",nt)}}},[ze,wn]),(0,ge.useEffect)(()=>{if(ze&&kt){let nt=function(){kt(ze.getValue())};return ze.on("blur",nt),()=>{ze.off("blur",nt)}}},[ze,kt]);function ca(nt,Ye){var qe=nt.getDoc(),tt=qe.getCursor(),Ct=qe.getLine(tt.line),Dt=Ct.charAt(tt.ch-1),Jt=Ct.lastIndexOf("@\u2581@",tt.ch),jt=Ct.lastIndexOf("@\u2581\u2581@",tt.ch),Ut=Jt>jt?Jt:jt,Vt=Jt>jt?3:4;if(gn.indexOf(Dt)===-1)return null;if(console.log("change1:",Ye,nt,Ct,tt,Ut,Jt,jt,Dt),Ut>=0&&tt.ch-Ut<5){var Pn=Ut+Vt;return qe.replaceRange("",{line:tt.line,ch:Ut},{line:tt.line,ch:Pn}),{line:tt.line,ch:Pn}}return null}(0,ge.useEffect)(()=>{if(ze){let nt=function(Ye,qe){const tt=Ye.getValue();Tn(tt),Yt(new Date().getTime()),Ye.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(an?ve(tt,va(tt)):ve(tt))};return ze.on("change",nt),()=>{ze.off("change",nt)}}},[ze,ve]),(0,ge.useEffect)(()=>{if(ze)if(ce==null)ze.setValue(""),Tn("");else{const nt=window.scrollY||window.pageYOffset;ce!==ze.getValue()&&(ze.setValue(ce),Tn(ce),ze.setCursor(xn?1:ze.lineCount(),0),window.scrollTo(0,nt))}},[ze,ce]);const oa=(0,ge.useCallback)(nt=>{const Ye=ze.getCursor(),qe=ze.getSelection();let tt=qe.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Dn=["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 fn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const mn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",ma={[mn+"-B"]:"bold",[mn+"-I"]:"italic"},Xn={[Rt]:"\u6DFB\u52A0\u94FE\u63A5",[_t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Wt]:"\u6DFB\u52A0\u56FE\u7247",[Ht]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var la=({defaultValue:ce="",onChange:pe,width:Pe="100%",height:Ve=400,miniToolbar:st=!1,isFocus:mt=!1,watch:Gt,insertTemp:bt,mode:Ft="markdown",id:Tt="markdown-editor-id",showResizeBar:rn=!1,noStorage:De=!1,showNullButton:Et=!1,showNullProgramButton:an=!1,hidetoolBar:un=!1,fullScreen:Kt=!1,onBlur:kt,onCMBeforeChange:wn,onFullScreen:Bn,className:Fn="",disablePaste:On=!1,disabled:xn=!1,disabledFill:Qt=!1,placeholder:Nn="",values:Ln="",extraUse:An})=>{const[ze,Yn]=(0,ge.useState)(null),[En,Tn]=(0,ge.useState)(ce),[Sn,Ae]=(0,ge.useState)(Gt),[it,yt]=(0,ge.useState)(Kt),[dt,Mt]=(0,ge.useState)(""),[At,Yt]=(0,ge.useState)(0),[qt,dn]=(0,ge.useState)(Ve),[Jn,Cn]=(0,ge.useState)(!1),sa=(0,ge.useRef)((0,Nt.Z)()),ua=(0,ge.useRef)(!1),Qn=(0,ge.useRef)(),[qn,ea]=(0,ge.useState)(0),[ta,na]=(0,ge.useState)(0),yn=(0,ge.useRef)(),In=(0,ge.useRef)(),kn=(0,ge.useRef)(),Rn=(0,ge.useRef)(),Sa=()=>vn(void 0,null,function*(){var nt;const Ye=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:sa.current}});(nt=Ye==null?void 0:Ye.attachments)!=null&&nt.length&&(console.log("cm:",ze,yn),Ye.attachments.map(qe=>{qe.content_type.indexOf("image")>-1?ze.replaceSelection(`![,](/api/attachments/${qe.id}?type=${qe.content_type})`):qe.content_type.indexOf("video")>-1?ze.replaceSelection(``):qe.content_type.indexOf("pdf")>-1?ze.replaceSelection(`${qe.name}`):ze.replaceSelection(`[${qe.name}](${ENV.API_SERVER}/api/attachments/${qe.id}?type=${qe.content_type})`)}))});(0,ge.useEffect)(()=>{const nt=window.scrollY||window.pageYOffset;Tn(Ln),ze==null||ze.setValue(Ln),window.scrollTo(0,nt)},[Ln]),(0,ge.useEffect)(()=>{Bn==null||Bn(it)},[it]),(0,ge.useEffect)(()=>{if(yn.current){let nt=function(qe,tt){var Ct;if(On){tt.preventDefault();return}const Dt=tt.clipboardData;if(Dt){const Jt=Dt.types.toString(),jt=Dt.items;if(Jt==="Files"||Dt.types.indexOf("Files")>-1){if(tt.preventDefault(),Ft=="stex")return;try{let Ut=jt[1];((Ct=jt[0])==null?void 0:Ct.kind)==="file"&&(Ut=jt[0]);const Vt=Ut.getAsFile(),Pn=Vt.name.split(".").pop();(0,be.I)(Vt,en=>{var jn,Hn,Wn;en.id?((jn=Vt==null?void 0:Vt.type)==null?void 0:jn.indexOf("image"))>-1?Ye.replaceSelection(`![,](/api/attachments/${en.id}?type=${en.content_type})`):((Hn=Vt==null?void 0:Vt.type)==null?void 0:Hn.indexOf("video"))>-1?Ye.replaceSelection(``):((Wn=Vt==null?void 0:Vt.type)==null?void 0:Wn.indexOf("pdf"))>-1?Ye.replaceSelection(`${Vt.name}`):Dn.includes(Pn)?Ye.replaceSelection(`${Vt.name}`):Ye.replaceSelection(`[${Vt.name}](/api/attachments/${en.id}?type=${en.content_type})`):(en==null?void 0:en.status)===401&&(It.ZP.warning((en==null?void 0:en.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ut){It.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ye=je().fromTextArea(yn.current,{mode:Ft,lineNumbers:!st,lineWrapping:!0,value:ce,autoCloseTags:!an,autoCloseBrackets:!0});return Ye.on("keyup",function(qe,tt){tt.keyCode===8&&(qe.getValue()==""?Ye.setOption("placeholder",Nn):Ye.setOption("placeholder",null))}),Ye.on("keydown",function(qe,tt){if(tt.keyCode===8){var Ct=ca(qe);Ct&&tt.preventDefault()}}),mt&&Ye.focus(),Ye.on("paste",nt),Ye.on("dragleave",function(qe,tt){In.current.classList.remove("mouse-hover-md")}),xn&&Ye.on("beforeChange",function(qe,tt){(tt.origin==="paste"||tt.origin==="+input")&&tt.cancel()}),Yn(Ye),()=>{Ye.off("paste",nt)}}},[]);const aa=(0,ge.useCallback)(()=>{if(In.current)try{}catch(nt){console.log(nt,"---- to set md editor body height")}},[qt,In,it]);(0,ge.useEffect)(()=>{function nt(){let Ye=new He.Z(qe=>{for(let tt of qe)(tt.target.offsetHeight>0||tt.target.offsetWidth>0)&&(aa(),ze.setSize("100%","100%"),ze.refresh())});return Ye.observe(yn.current.parentElement),Ye}if(ze){const Ye=nt();return()=>{var qe,tt;(qe=yn.current)!=null&&qe.parentElement&&Ye.unobserve((tt=yn.current)==null?void 0:tt.parentElement)}}},[ze,aa]),(0,ge.useEffect)(()=>{if(ze){let nt=[];for(const[Ye,qe]of Object.entries(ma)){let tt={[Ye]:()=>{oa(qe)}};nt.push(tt),ze.addKeyMap(tt)}return Qn.current=setInterval(()=>{ua.current&&Sa()},4e3),()=>{clearInterval(Qn.current);for(let Ye of nt)ze.removeKeyMap(Ye)}}},[ze]),(0,ge.useEffect)(()=>{Kt!==it&&yt(Kt)},[Kt]),(0,zn.Z)(()=>{if(!De&&At>0){let nt=new Date().getTime(),Ye=window.sessionStorage.getItem(Tt);nt>=At+hn&&(!Ye||Ye!==En)&&(window.sessionStorage.setItem(Tt,En),Cn(!0))}},hn),(0,ge.useEffect)(()=>{Ae(Gt)},[ze,Gt]),(0,ge.useEffect)(()=>{ze&&mt&&ze.focus()},[ze,mt]),(0,ge.useEffect)(()=>{if(Sn&&ze){let nt=function(qe){let tt=qe.target;if(Rn.current){let Ct=tt.scrollTop/tt.scrollHeight;Rn.current.scrollTop=Rn.current.scrollHeight*Ct}};const Ye=ze.getScrollerElement();return Ye.addEventListener("scroll",nt),()=>{Ye.removeEventListener("scroll",nt)}}},[ze,Sn]),(0,ge.useEffect)(()=>{if(ze&&wn){let nt=function(Ye,qe){wn(Ye,qe)};return ze.on("beforeChange",nt),()=>{ze.off("beforeChange",nt)}}},[ze,wn]),(0,ge.useEffect)(()=>{if(ze&&kt){let nt=function(){kt(ze.getValue())};return ze.on("blur",nt),()=>{ze.off("blur",nt)}}},[ze,kt]);function ca(nt,Ye){var qe=nt.getDoc(),tt=qe.getCursor(),Ct=qe.getLine(tt.line),Dt=Ct.charAt(tt.ch-1),Jt=Ct.lastIndexOf("@\u2581@",tt.ch),jt=Ct.lastIndexOf("@\u2581\u2581@",tt.ch),Ut=Jt>jt?Jt:jt,Vt=Jt>jt?3:4;if(gn.indexOf(Dt)===-1)return null;if(console.log("change1:",Ye,nt,Ct,tt,Ut,Jt,jt,Dt),Ut>=0&&tt.ch-Ut<5){var Pn=Ut+Vt;return qe.replaceRange("",{line:tt.line,ch:Ut},{line:tt.line,ch:Pn}),{line:tt.line,ch:Pn}}return null}(0,ge.useEffect)(()=>{if(ze){let nt=function(Ye,qe){const tt=Ye.getValue();Tn(tt),Yt(new Date().getTime()),Ye.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pe&&(an?pe(tt,va(tt)):pe(tt))};return ze.on("change",nt),()=>{ze.off("change",nt)}}},[ze,pe]),(0,ge.useEffect)(()=>{if(ze)if(ce==null)ze.setValue(""),Tn("");else{const nt=window.scrollY||window.pageYOffset;ce!==ze.getValue()&&(ze.setValue(ce),Tn(ce),ze.setCursor(xn?1:ze.lineCount(),0),window.scrollTo(0,nt))}},[ze,ce]);const oa=(0,ge.useCallback)(nt=>{const Ye=ze.getCursor(),qe=ze.getSelection();let tt=qe.split(` `);switch(nt){case"bold":return ze.replaceSelection("**"+qe+"**"),qe===""&&ze.setCursor(Ye.line,Ye.ch+2),ze.focus();case"italic":return ze.replaceSelection("*"+qe+"*"),qe===""&&ze.setCursor(Ye.line,Ye.ch+1),ze.focus();case"code":return ze.replaceSelection("`"+qe+"`"),qe===""&&ze.setCursor(Ye.line,Ye.ch+1),ze.focus();case"inline-latex":return Mt("inline-latex"),ze.focus();case"latex":return ze.replaceSelection("```latex\n"+qe+"\n```"),ze.setCursor(Ye.line+1,qe.length+1),ze.focus();case"line-break":return ze.replaceSelection(`
`),ze.focus();case"list-ul":return qe===""?ze.replaceSelection("- "+qe):ze.replaceSelection(tt.map(Ct=>Ct===""?"":`- ${Ct}`).join(` `)),ze.focus();case"list-ol":return qe===""?ze.replaceSelection("1. "+qe):ze.replaceSelection(tt.map((Ct,Dt)=>Ct===""?"":`${Dt+1}. ${Ct}`).join(` @@ -97,33 +97,33 @@ `;for(let ln=0;ln{switch(dt){case Rt:return ge.createElement(Lt,{callback:cn,onCancel:pn});case _t:return ge.createElement(xt.Z,{callback:cn,onCancel:pn});case Wt:return ge.createElement(be.Z,{callback:cn,onCancel:pn});case Zt:return ge.createElement(Je,{callback:cn,onCancel:pn});case Xt:return ge.createElement(ot,{callback:cn,onCancel:pn});case"maths-latex":return ge.createElement(Bt,{showSaveButton:!0,callback:cn});case"inline-latex":return ge.createElement(Ot.Z,{showSaveButton:!0,callback:cn});default:return null}},[dt]);function pn(){Mt("")}(0,ge.useEffect)(()=>{if(kn.current){let nt=function(Jt){Ct=!0,Dt=Jt.pageY},Ye=function(){Ct=!1},qe=function(Jt){if(Ct){let jt=Jt.pageY-Dt;jt<0&&(jt=0),jt>300&&(jt=300);let Ut=Ve+jt+"px";dn(Ut)}},tt=kn.current,Ct=!1,Dt=0;return tt.addEventListener("mousedown",nt),document.addEventListener("mousemove",qe),document.addEventListener("mouseup",Ye),()=>{tt.removeEventListener("mousedown",nt),document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",Ye)}}},[ze,kn]),(0,ge.useEffect)(()=>{dn(Ve)},[Ve]);const ha=fn(Pe),fa=fn(qt),pa={width:ha,height:fa},xa=(0,ge.useMemo)(()=>{if(At){let nt=new Date(At),Ye=nt.getHours(),qe=nt.getMinutes(),tt=nt.getSeconds();return Ye=Ye<10?"0"+Ye:Ye,qe=qe<10?"0"+qe:qe,tt=tt<10?"0"+tt:tt,`${Ye}:${qe}:${tt}`}return 0},[At]),va=nt=>{const Ye=[];if(an){let qe=-1;nt=nt.replace(/(@▁▁@|@▁@)/g,function(tt,Ct,Dt){Ye.push({multiLine:tt!==_n})})}return Ye};function Ea(){window.sessionStorage.removeItem(Tt),Cn(!1),Yt(0)}function Ca(){Cn(!1),Yt(0),ze.setValue(window.sessionStorage.getItem(Tt))}(0,ge.useEffect)(()=>{Xn[dt]&&dt!==Ht&&dt!==Zt&&setTimeout(()=>{const nt=document.getElementsByClassName("markdown-popup-form")[0],Ye=window.innerWidth/2-nt.offsetWidth/2,qe=window.innerHeight/2-nt.offsetHeight/2;ea(Ye),na(qe)},0)},[dt]);const La=nt=>{nt.preventDefault();const Ye=nt.clientX-qn,qe=nt.clientY-ta;document.body.onmousemove=tt=>{let Ct=tt.clientX-Ye,Dt=tt.clientY-qe;const Jt=document.getElementsByClassName("markdown-popup-form")[0],jt=window.innerWidth-Jt.offsetWidth,Ut=window.innerHeight-Jt.offsetHeight;Ct=Math.max(0,Math.min(Ct,jt)),Dt=Math.max(0,Math.min(Dt,Ut)),ya(tt.clientX,tt.clientY,Ye,qe)&&(ea(Ct),na(Dt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ya=(nt,Ye,qe,tt)=>{const Ct=document.body.clientHeight,Dt=document.body.clientWidth;return nt<20&&qe>nt||nt>Dt-20&&qeYe||Ye>Ct-20&&ttre in ae?xe(ae,re,{enumerable:!0,configurable:!0,writable:!0,value:le}):ae[re]=le,y=(ae,re)=>{for(var le in re||(re={}))ye.call(re,le)&&a(ae,le,re[le]);if(Ce)for(var le of Ce(re))ne.call(re,le)&&a(ae,le,re[le]);return ae},x=(ae,re)=>Ge(ae,Ue(re));const{useForm:b}=ge.default,E={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ae,onCancel:re})=>{const[le]=b();let me=(0,Oe.useRef)();function Fe(Xe){ae(Xe,me.current)}function _e(Xe,et){if(Xe.status===-1){he.ZP.error(Xe.message);return}le.setFieldsValue({src:`/api/attachments/${Xe.id}`,type:et.type})}function Ze(Xe){let et=Xe.target.files[0];me.current=et,oe(et,_e)}return Te.createElement(ge.default,x(y({form:le},z),{className:"upload-image-panel",onFinish:Fe,style:{width:470,overflow:"hidden"}}),Te.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(je.default,{style:E})),Te.createElement(te,{onFileChange:Ze}))),Te.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(je.default,{style:{width:264}})),Te.createElement(ge.default.Item,{style:{textAlign:"right"}},Te.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(He.ZP,{type:"default",onClick:re},"\u53D6\u6D88")))};function te({onFileChange:ae}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:ae}))}function oe(ae,re){if(!ae)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,se.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let le=new FormData;le.append("editormd-image-file",ae),le.append("file_param_name","editormd-image-file"),le.append("byxhr","true");var me=new window.XMLHttpRequest;me.withCredentials=!0,me.addEventListener("load",function(Fe){re(JSON.parse(Fe.target.responseText),ae)},!1),me.addEventListener("error",function(Fe){console.error(Fe)},!1),me.open("POST",`${ue.KI}/api/attachments.json`),me.send(le)}},50474:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return je}});var ge=ie(59301),he=ie(4676);class je extends ge.Component{constructor(ue){super(ue);const Oe=window.document;this.node=Oe.createElement("div"),Oe.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,he.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return he}});var ge=ie(59301);function he(je,He){const ue=(0,ge.useRef)();(0,ge.useEffect)(()=>{ue.current=je}),(0,ge.useEffect)(()=>{function Oe(){ue.current()}if(He!==null){let se=setInterval(Oe,He);return()=>clearInterval(se)}},[He])}},64885:function(Be,Qe,ie){"use strict";ie.r(Qe),ie.d(Qe,{default:function(){return _e}});var ge=ie(59301),he=ie(42203),je=ie(78241),He=ie(66104),ue=ie(3113),Oe=ie(43418),se=ie(8591),Te=ie(2119),xe=ie(70635),Ge=ie(10148),Ue=ie(23469),Ce=ie(25711),ye=ie(28103),ne=ie(53502),a=(Ze,Xe,et)=>new Promise((Le,Ie)=>{var We=at=>{try{ke(et.next(at))}catch(St){Ie(St)}},Me=at=>{try{ke(et.throw(at))}catch(St){Ie(St)}},ke=at=>at.done?Le(at.value):Promise.resolve(at.value).then(We,Me);ke((et=et.apply(Ze,Xe)).next())});const y=({user:Ze,item:Xe,getdata:et,params:Le})=>{var Ie,We,Me;const[ke,at]=(0,ge.useState)(!1),[St,Lt]=(0,ge.useState)(!1),[xt,be]=(0,ge.useState)("");return ge.createElement("div",{style:{marginTop:30,padding:"0px 20px"}},ge.createElement("div",{className:ne.Z.titles,style:{fontWeight:600,fontSize:18,color:"#000000"}},Xe.name),ge.createElement("div",{style:{display:"flex",marginTop:10}},ge.createElement("div",{style:{flex:1,display:"flex",color:"#5F6368",width:"100%"}},ge.createElement("div",{style:{display:"flex",width:"100%"}},ge.createElement("img",{style:{width:24,borderRadius:50,height:24},src:`${Ge.Z.IMG_SERVER}/images/${Xe.author.image_url}`}),ge.createElement("div",{style:{width:"100%"}},ge.createElement("div",{style:{display:"flex"}},ge.createElement("span",{style:{margin:"0px 12px 0px 8px"}},(Ie=Xe==null?void 0:Xe.author)==null?void 0:Ie.name),ge.createElement("span",null,Xe.time),ge.createElement("div",{style:{flex:1,textAlign:"right"}},ge.createElement("span",{style:{color:"#5F6368",cursor:"pointer"},onClick:()=>a(void 0,null,function*(){at(!0)})},"\u56DE\u590D ",(Xe==null?void 0:Xe.reply_count)||0),((0,Te.eB)()||Ze.userInfo.login===((We=Xe==null?void 0:Xe.author)==null?void 0:We.login))&&ge.createElement("a",{onClick:we=>a(void 0,null,function*(){we.stopPropagation(),Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u56DE\u590D",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>a(void 0,null,function*(){(yield(0,xe.ZP)(`/api/hack_messages/${Xe.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),et())})})}),style:{color:"#165DFF",cursor:"pointer",marginLeft:20}},"\u5220\u9664"))),ge.createElement("div",{style:{margin:"0px 12px 0px 8px",overflow:"hidden"}},ge.createElement(Ce.Z,{style:{color:"#434D6C",fontSize:14},value:Xe.content})),St&&((Me=Xe==null?void 0:Xe.replies)==null?void 0:Me.map(we=>{var Ne,gt;return ge.createElement("div",{style:{marginTop:30}},ge.createElement("div",{className:ne.Z.titles,style:{fontWeight:600,fontSize:18,color:"#000000"}},we.name),ge.createElement("div",{style:{display:"flex",marginTop:10}},ge.createElement("div",{style:{flex:1,display:"flex",color:"#5F6368",width:"100%"}},ge.createElement("div",{style:{display:"flex",width:"100%"}},ge.createElement("img",{style:{width:24,borderRadius:50,height:24},src:`${Ge.Z.IMG_SERVER}/images/${we.author.image_url}`}),ge.createElement("div",{style:{width:"100%"}},ge.createElement("div",{style:{display:"flex"}},ge.createElement("span",{style:{margin:"0px 12px 0px 8px"}},(Ne=we==null?void 0:we.author)==null?void 0:Ne.name),ge.createElement("span",null,we.time),ge.createElement("div",{style:{flex:1,textAlign:"right"}},((0,Te.eB)()||Ze.userInfo.login===((gt=we==null?void 0:we.author)==null?void 0:gt.login))&&ge.createElement("a",{onClick:Re=>a(void 0,null,function*(){Re.stopPropagation(),Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u56DE\u590D",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>a(void 0,null,function*(){(yield(0,xe.ZP)(`/api/hack_messages/${we.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),et())})})}),style:{color:"#165DFF",cursor:"pointer",marginLeft:20}},"\u5220\u9664"))),ge.createElement("div",{style:{margin:"0px 12px 0px 8px",overflow:"hidden"}},ge.createElement(Ce.Z,{style:{color:"#434D6C",fontSize:14},value:we.content})))))),ge.createElement(ye.Z,null))})),(Xe==null?void 0:Xe.reply_count)>0&&ge.createElement("p",{style:{margin:"0px 12px 0px 8px",color:"#165DFF",cursor:"pointer"},onClick:()=>{Lt(!St)}},St?"\u6536\u8D77":"\u5C55\u5F00\u66F4\u591A\u56DE\u590D",ge.createElement("i",{style:{marginLeft:"5px",fontSize:6},className:`iconfont ${St?"icon-shouqixiaojiantou":"icon-zhankaixiaojiantou"} mr3`})))))),ke&&ge.createElement("div",null,ge.createElement(Ue.Z,{values:xt,placeholder:"\u6211\u8981\u56DE\u590D\u3002\u3002\u3002",onBlur:we=>{be(we)}}),ge.createElement("div",{style:{width:"100%",textAlign:"end"}},ge.createElement(ue.ZP,{onClick:()=>{at(!1)},style:{width:82,height:32,marginRight:20}}," \u53D6\u6D88"),ge.createElement(ue.ZP,{onClick:()=>a(void 0,null,function*(){if(!xt){se.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,xe.ZP)(`/api/hack_messages/${Xe==null?void 0:Xe.id}/reply.json`,{method:"post",body:{content:xt}})).status===0&&(et(),be(""),at(!1))}),type:"primary",style:{width:82,height:32}},"\u53D1\u5E03"))),ge.createElement(ye.Z,null))};var x=(0,he.connect)(({user:Ze})=>({user:Ze}))(y),b=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=(Ze,Xe,et)=>Xe in Ze?b(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[Xe]=et,re=(Ze,Xe)=>{for(var et in Xe||(Xe={}))te.call(Xe,et)&&ae(Ze,et,Xe[et]);if(ee)for(var et of ee(Xe))oe.call(Xe,et)&&ae(Ze,et,Xe[et]);return Ze},le=(Ze,Xe)=>E(Ze,z(Xe)),me=(Ze,Xe,et)=>new Promise((Le,Ie)=>{var We=at=>{try{ke(et.next(at))}catch(St){Ie(St)}},Me=at=>{try{ke(et.throw(at))}catch(St){Ie(St)}},ke=at=>at.done?Le(at.value):Promise.resolve(at.value).then(We,Me);ke((et=et.apply(Ze,Xe)).next())});const Fe=({user:Ze})=>{var Xe,et,Le,Ie,We,Me,ke,at,St,Lt,xt,be,we,Ne,gt,Re,rt,de,Ke,Pt,wt,vt,Ee;let[pe,Se]=(0,ge.useState)(le(re({},(0,he.useParams)()),{page:1,per_page:1e4,type:1,sort_by:"",course_group:(0,Te.dE)()?[Ze.userInfo.course.course_group_id]:[]}));const[fe,$e]=(0,ge.useState)([]),[Je]=je.default.useForm(),[lt,ut]=(0,ge.useState)({}),ht=(0,he.useLocation)(),[ft,ot]=(0,ge.useState)("");(0,ge.useEffect)(()=>{ct()},[]);function ct(){return me(this,null,function*(){let pt=yield(0,xe.ZP)(`/api/hack_messages/${pe.answerid}.json`,{method:"get",params:le(re({},pe),{type:1})});$e(pt)})}return ge.createElement("div",{style:{width:1200,margin:"0px auto",marginBottom:"20px"}},ge.createElement(He.Z,{separator:">",style:{marginTop:20}},ge.createElement(He.Z.Item,null,ge.createElement(he.Link,{to:`/classrooms/${fe==null?void 0:fe.course_id}/program_homework`},fe==null?void 0:fe.course_name)),ge.createElement(He.Z.Item,null,ge.createElement(he.Link,{to:`/classrooms/${fe==null?void 0:fe.course_id}/program_homework/${fe==null?void 0:fe.homework_id}/detail`},fe==null?void 0:fe.homework_name)),ge.createElement(He.Z.Item,null,ge.createElement(he.Link,{to:`/classrooms/${fe==null?void 0:fe.course_id}/program_homework/${fe==null?void 0:fe.homework_id}/detail?tabs=6`},"\u9898\u89E3&\u95EE\u7B54")),ge.createElement(He.Z.Item,null,((Xe=fe==null?void 0:fe.data)==null?void 0:Xe.message_type)===1?"\u7591\u95EE":"\u5E7F\u64AD","\u8BE6\u60C5")),ge.createElement("div",{style:{marginTop:10,padding:"20px",background:"#fff"}},ge.createElement("p",{style:{fontSize:18,fontWeight:500}},(et=fe==null?void 0:fe.data)==null?void 0:et.name),ge.createElement("p",{style:{color:"#B1BACD",fontSize:14}},"\u53D1\u8868\u4E8E",(Le=fe==null?void 0:fe.data)==null?void 0:Le.created_at),ge.createElement("div",{style:{display:"flex"}},ge.createElement("div",{style:{flex:1}},ge.createElement("p",{style:{color:"#6B758B",fontSize:14,display:"flex",alignItems:"center"}},ge.createElement("img",{style:{width:24,borderRadius:50},src:`${Ge.Z.IMG_SERVER}/images/${(Ie=fe==null?void 0:fe.data)==null?void 0:Ie.author.image_url}`}),ge.createElement("span",{style:{marginLeft:10}},(Me=(We=fe==null?void 0:fe.data)==null?void 0:We.author)==null?void 0:Me.name)),(Ze.userInfo.login===((at=(ke=fe==null?void 0:fe.data)==null?void 0:ke.author)==null?void 0:at.login)||(0,Te.eB)())&&ge.createElement("a",{style:{display:"flex",alignItems:"center"},onClick:()=>me(void 0,null,function*(){var pt,zt,$t;let Bt=yield(0,xe.ZP)(`/api/problems/${(pt=fe==null?void 0:fe.data)==null?void 0:pt.hack_identifier}/start.json`,{method:"get",params:{hack_user_id:($t=(zt=fe==null?void 0:fe.data)==null?void 0:zt.author)==null?void 0:$t.id}});Bt&&(window.open(`/myproblems/${Bt==null?void 0:Bt.identifier}?type=1`),localStorage.setItem("program_homework",[pe.coursesId,pe.categoryId]))})},((St=fe==null?void 0:fe.data)==null?void 0:St.hack_name)&&ge.createElement("i",{style:{marginRight:"5px"},className:"iconfont icon-biaotimingcheng mr3 font16"}),(Lt=fe==null?void 0:fe.data)==null?void 0:Lt.hack_name),Ze.userInfo.login!=((be=(xt=fe==null?void 0:fe.data)==null?void 0:xt.author)==null?void 0:be.login)&&!(0,Te.eB)()&&ge.createElement("span",{style:{display:"flex",alignItems:"center",color:"#6B758B"}},((we=fe==null?void 0:fe.data)==null?void 0:we.hack_name)&&ge.createElement("i",{style:{marginRight:"5px"},className:"iconfont icon-biaotimingcheng mr3 font16"}),(Ne=fe==null?void 0:fe.data)==null?void 0:Ne.hack_name)),((gt=fe==null?void 0:fe.data)==null?void 0:gt.message_type)===1?ge.createElement("div",null,Ze.userInfo.login===((rt=(Re=fe==null?void 0:fe.data)==null?void 0:Re.author)==null?void 0:rt.login)&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",onClick:()=>{Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u7591\u95EE",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>me(void 0,null,function*(){var pt;(yield(0,xe.ZP)(`/api/hack_messages/${(pt=fe==null?void 0:fe.data)==null?void 0:pt.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),he.history.push(`/classrooms/${pe.coursesId}/program_homework/${pe.categoryId}/answer`))})})}},"\u5220\u9664"),Ze.userInfo.login===((Ke=(de=fe==null?void 0:fe.data)==null?void 0:de.author)==null?void 0:Ke.login)&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",style:{marginLeft:20,marginRight:(0,Te.eB)()?20:0},onClick:()=>{he.history.push(`/classrooms/${pe.coursesId}/program_homework/${pe.categoryId}/answer/${pe==null?void 0:pe.answerid}/edit`)}},"\u7F16\u8F91"),(0,Te.eB)()&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",onClick:()=>me(void 0,null,function*(){var pt;(yield(0,xe.ZP)(`/api/hack_messages/${(pt=fe==null?void 0:fe.data)==null?void 0:pt.id}/update_public`,{method:"post"})).status===0&&ct()})},fe!=null&&fe.data.is_public?"\u53D6\u6D88\u516C\u5F00":"\u516C\u5F00")):ge.createElement("div",null,(0,Te.eB)()&&ge.createElement(ue.ZP,{onClick:()=>{Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u5E7F\u64AD",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>me(void 0,null,function*(){var pt;(yield(0,xe.ZP)(`/api/hack_messages/${(pt=fe==null?void 0:fe.data)==null?void 0:pt.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),he.history.push(`/classrooms/${pe.coursesId}/program_homework/${pe.categoryId}/answer`))})})},ghost:!0,type:"primary"},"\u5220\u9664"),(0,Te.eB)()&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",style:{marginLeft:20},onClick:()=>{he.history.push(`/classrooms/${pe.coursesId}/program_homework/${pe.categoryId}/answer/${pe==null?void 0:pe.answerid}/edit`)}},"\u7F16\u8F91"))),ge.createElement(Ce.Z,{style:{marginTop:14,marginBottom:14},value:(Pt=fe==null?void 0:fe.data)==null?void 0:Pt.content}),ge.createElement(Ue.Z,{values:ft,placeholder:"\u6211\u8981\u56DE\u590D\u3002\u3002\u3002",onBlur:pt=>{ot(pt)}}),ge.createElement("div",{style:{width:"100%",textAlign:"end"}},ge.createElement(ue.ZP,{onClick:()=>me(void 0,null,function*(){var pt;if(!ft){se.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,xe.ZP)(`/api/hack_messages/${(pt=fe==null?void 0:fe.data)==null?void 0:pt.id}/reply`,{method:"post",body:{content:ft}})).status===0&&(ct(),ot(""))}),type:"primary",style:{width:82,height:32}},"\u53D1\u5E03")),ge.createElement("div",null,ge.createElement("p",{style:{fontSize:18,fontWeight:500}},((wt=fe==null?void 0:fe.data)==null?void 0:wt.descendants_count)||0,"\u6761\u8BC4\u8BBA"),(Ee=(vt=fe==null?void 0:fe.data)==null?void 0:vt.replies)==null?void 0:Ee.map(pt=>ge.createElement(x,{item:pt,getdata:ct,params:pe})))))};var _e=(0,he.connect)(({user:Ze})=>({user:Ze}))(Fe)},66104:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return et}});var ge=ie(92310),he=ie.n(ge),je=ie(11592),He=ie(26112),ue=ie(59301),Oe=ie(92343),se=ie(36355),Te=ie(84105),xe=ie(91857);const Ge=Le=>{let{children:Ie}=Le;const{getPrefixCls:We}=ue.useContext(se.E_),Me=We("breadcrumb");return ue.createElement("li",{className:`${Me}-separator`,"aria-hidden":"true"},Ie===""?Ie:Ie||"/")};Ge.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Ge,Ce=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);keIe[ke]||Me)}function ne(Le,Ie,We,Me){if(We==null)return null;const{className:ke,onClick:at}=Ie,St=Ce(Ie,["className","onClick"]),Lt=Object.assign(Object.assign({},(0,He.Z)(St,{data:!0,aria:!0})),{onClick:at});return Me!==void 0?ue.createElement("a",Object.assign({},Lt,{className:he()(`${Le}-link`,ke),href:Me}),We):ue.createElement("span",Object.assign({},Lt,{className:he()(`${Le}-link`,ke)}),We)}function a(Le,Ie){return(Me,ke,at,St,Lt)=>{if(Ie)return Ie(Me,ke,at,St);const xt=ye(Me,ke);return ne(Le,Me,xt,Lt)}}var y=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);ke{const{prefixCls:Ie,separator:We="/",children:Me,menu:ke,overlay:at,dropdownProps:St,href:Lt}=Le,be=(we=>{if(ke||at){const Ne=Object.assign({},St);if(ke){const gt=ke||{},{items:Re}=gt,rt=y(gt,["items"]);Ne.menu=Object.assign(Object.assign({},rt),{items:Re==null?void 0:Re.map((de,Ke)=>{var{key:Pt,title:wt,label:vt,path:Ee}=de,pe=y(de,["key","title","label","path"]);let Se=vt!=null?vt:wt;return Ee&&(Se=ue.createElement("a",{href:`${Lt}${Ee}`},Se)),Object.assign(Object.assign({},pe),{key:Pt!=null?Pt:Ke,label:Se})})})}else at&&(Ne.overlay=at);return ue.createElement(xe.Z,Object.assign({placement:"bottom"},Ne),ue.createElement("span",{className:`${Ie}-overlay-link`},we,ue.createElement(Te.Z,null)))}return we})(Me);return be!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,be),We&&ue.createElement(Ue,null,We)):null},b=Le=>{const{prefixCls:Ie,children:We,href:Me}=Le,ke=y(Le,["prefixCls","children","href"]),{getPrefixCls:at}=ue.useContext(se.E_),St=at("breadcrumb",Ie);return ue.createElement(x,Object.assign({},ke,{prefixCls:St}),ne(St,ke,We,Me))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ie(17313),ee=ie(83116),te=ie(37613);const oe=Le=>{const{componentCls:Ie,iconCls:We}=Le;return{[Ie]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[We]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ie}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ie}-link`]:{[` +`),ze.focus();default:throw new Error}},[ze,dt]),Pa=(0,ge.useMemo)(()=>{switch(dt){case Rt:return ge.createElement(Lt,{callback:cn,onCancel:pn});case _t:return ge.createElement(xt.Z,{callback:cn,onCancel:pn});case Wt:return ge.createElement(be.Z,{callback:cn,onCancel:pn});case Zt:return ge.createElement(Je,{callback:cn,onCancel:pn});case Xt:return ge.createElement(ot,{callback:cn,onCancel:pn});case"maths-latex":return ge.createElement(Bt,{showSaveButton:!0,callback:cn});case"inline-latex":return ge.createElement(Ot.Z,{showSaveButton:!0,callback:cn});default:return null}},[dt]);function pn(){Mt("")}(0,ge.useEffect)(()=>{if(kn.current){let nt=function(Jt){Ct=!0,Dt=Jt.pageY},Ye=function(){Ct=!1},qe=function(Jt){if(Ct){let jt=Jt.pageY-Dt;jt<0&&(jt=0),jt>300&&(jt=300);let Ut=Ve+jt+"px";dn(Ut)}},tt=kn.current,Ct=!1,Dt=0;return tt.addEventListener("mousedown",nt),document.addEventListener("mousemove",qe),document.addEventListener("mouseup",Ye),()=>{tt.removeEventListener("mousedown",nt),document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",Ye)}}},[ze,kn]),(0,ge.useEffect)(()=>{dn(Ve)},[Ve]);const ha=fn(Pe),fa=fn(qt),pa={width:ha,height:fa},xa=(0,ge.useMemo)(()=>{if(At){let nt=new Date(At),Ye=nt.getHours(),qe=nt.getMinutes(),tt=nt.getSeconds();return Ye=Ye<10?"0"+Ye:Ye,qe=qe<10?"0"+qe:qe,tt=tt<10?"0"+tt:tt,`${Ye}:${qe}:${tt}`}return 0},[At]),va=nt=>{const Ye=[];if(an){let qe=-1;nt=nt.replace(/(@▁▁@|@▁@)/g,function(tt,Ct,Dt){Ye.push({multiLine:tt!==_n})})}return Ye};function Ea(){window.sessionStorage.removeItem(Tt),Cn(!1),Yt(0)}function Ca(){Cn(!1),Yt(0),ze.setValue(window.sessionStorage.getItem(Tt))}(0,ge.useEffect)(()=>{Xn[dt]&&dt!==Ht&&dt!==Zt&&setTimeout(()=>{const nt=document.getElementsByClassName("markdown-popup-form")[0],Ye=window.innerWidth/2-nt.offsetWidth/2,qe=window.innerHeight/2-nt.offsetHeight/2;ea(Ye),na(qe)},0)},[dt]);const La=nt=>{nt.preventDefault();const Ye=nt.clientX-qn,qe=nt.clientY-ta;document.body.onmousemove=tt=>{let Ct=tt.clientX-Ye,Dt=tt.clientY-qe;const Jt=document.getElementsByClassName("markdown-popup-form")[0],jt=window.innerWidth-Jt.offsetWidth,Ut=window.innerHeight-Jt.offsetHeight;Ct=Math.max(0,Math.min(Ct,jt)),Dt=Math.max(0,Math.min(Dt,Ut)),ya(tt.clientX,tt.clientY,Ye,qe)&&(ea(Ct),na(Dt))},document.body.onmouseup=function(){document.body.onmousemove=null}},ya=(nt,Ye,qe,tt)=>{const Ct=document.body.clientHeight,Dt=document.body.clientWidth;return nt<20&&qe>nt||nt>Dt-20&&qeYe||Ye>Ct-20&&ttre in ae?xe(ae,re,{enumerable:!0,configurable:!0,writable:!0,value:le}):ae[re]=le,y=(ae,re)=>{for(var le in re||(re={}))ye.call(re,le)&&a(ae,le,re[le]);if(Ce)for(var le of Ce(re))ne.call(re,le)&&a(ae,le,re[le]);return ae},x=(ae,re)=>Ge(ae,Ue(re));const{useForm:b}=ge.default,E={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ae,onCancel:re})=>{const[le]=b();let me=(0,Oe.useRef)();function Fe(Xe){ae(Xe,me.current)}function _e(Xe,et){if(Xe.status===-1){fe.ZP.error(Xe.message);return}le.setFieldsValue({src:`/api/attachments/${Xe.id}`,type:et.type})}function Ze(Xe){let et=Xe.target.files[0];me.current=et,oe(et,_e)}return Te.createElement(ge.default,x(y({form:le},z),{className:"upload-image-panel",onFinish:Fe,style:{width:470,overflow:"hidden"}}),Te.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(je.default,{style:E})),Te.createElement(te,{onFileChange:Ze}))),Te.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(je.default,{style:{width:264}})),Te.createElement(ge.default.Item,{style:{textAlign:"right"}},Te.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(He.ZP,{type:"default",onClick:re},"\u53D6\u6D88")))};function te({onFileChange:ae}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:ae}))}function oe(ae,re){if(!ae)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,se.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let le=new FormData;le.append("editormd-image-file",ae),le.append("file_param_name","editormd-image-file"),le.append("byxhr","true");var me=new window.XMLHttpRequest;me.withCredentials=!0,me.addEventListener("load",function(Fe){re(JSON.parse(Fe.target.responseText),ae)},!1),me.addEventListener("error",function(Fe){console.error(Fe)},!1),me.open("POST",`${ue.KI}/api/attachments.json`),me.send(le)}},50474:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return je}});var ge=ie(59301),fe=ie(4676);class je extends ge.Component{constructor(ue){super(ue);const Oe=window.document;this.node=Oe.createElement("div"),Oe.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,fe.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return fe}});var ge=ie(59301);function fe(je,He){const ue=(0,ge.useRef)();(0,ge.useEffect)(()=>{ue.current=je}),(0,ge.useEffect)(()=>{function Oe(){ue.current()}if(He!==null){let se=setInterval(Oe,He);return()=>clearInterval(se)}},[He])}},64885:function(Be,Qe,ie){"use strict";ie.r(Qe),ie.d(Qe,{default:function(){return _e}});var ge=ie(59301),fe=ie(42203),je=ie(78241),He=ie(66104),ue=ie(3113),Oe=ie(43418),se=ie(8591),Te=ie(2119),xe=ie(70635),Ge=ie(10148),Ue=ie(23469),Ce=ie(25711),ye=ie(28103),ne=ie(53502),a=(Ze,Xe,et)=>new Promise((Le,Ie)=>{var We=at=>{try{ke(et.next(at))}catch(St){Ie(St)}},Me=at=>{try{ke(et.throw(at))}catch(St){Ie(St)}},ke=at=>at.done?Le(at.value):Promise.resolve(at.value).then(We,Me);ke((et=et.apply(Ze,Xe)).next())});const y=({user:Ze,item:Xe,getdata:et,params:Le})=>{var Ie,We,Me;const[ke,at]=(0,ge.useState)(!1),[St,Lt]=(0,ge.useState)(!1),[xt,be]=(0,ge.useState)("");return ge.createElement("div",{style:{marginTop:30,padding:"0px 20px"}},ge.createElement("div",{className:ne.Z.titles,style:{fontWeight:600,fontSize:18,color:"#000000"}},Xe.name),ge.createElement("div",{style:{display:"flex",marginTop:10}},ge.createElement("div",{style:{flex:1,display:"flex",color:"#5F6368",width:"100%"}},ge.createElement("div",{style:{display:"flex",width:"100%"}},ge.createElement("img",{style:{width:24,borderRadius:50,height:24},src:`${Ge.Z.IMG_SERVER}/images/${Xe.author.image_url}`}),ge.createElement("div",{style:{width:"100%"}},ge.createElement("div",{style:{display:"flex"}},ge.createElement("span",{style:{margin:"0px 12px 0px 8px"}},(Ie=Xe==null?void 0:Xe.author)==null?void 0:Ie.name),ge.createElement("span",null,Xe.time),ge.createElement("div",{style:{flex:1,textAlign:"right"}},ge.createElement("span",{style:{color:"#5F6368",cursor:"pointer"},onClick:()=>a(void 0,null,function*(){at(!0)})},"\u56DE\u590D ",(Xe==null?void 0:Xe.reply_count)||0),((0,Te.eB)()||Ze.userInfo.login===((We=Xe==null?void 0:Xe.author)==null?void 0:We.login))&&ge.createElement("a",{onClick:we=>a(void 0,null,function*(){we.stopPropagation(),Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u56DE\u590D",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>a(void 0,null,function*(){(yield(0,xe.ZP)(`/api/hack_messages/${Xe.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),et())})})}),style:{color:"#165DFF",cursor:"pointer",marginLeft:20}},"\u5220\u9664"))),ge.createElement("div",{style:{margin:"0px 12px 0px 8px",overflow:"hidden"}},ge.createElement(Ce.Z,{style:{color:"#434D6C",fontSize:14},value:Xe.content})),St&&((Me=Xe==null?void 0:Xe.replies)==null?void 0:Me.map(we=>{var Ne,gt;return ge.createElement("div",{style:{marginTop:30}},ge.createElement("div",{className:ne.Z.titles,style:{fontWeight:600,fontSize:18,color:"#000000"}},we.name),ge.createElement("div",{style:{display:"flex",marginTop:10}},ge.createElement("div",{style:{flex:1,display:"flex",color:"#5F6368",width:"100%"}},ge.createElement("div",{style:{display:"flex",width:"100%"}},ge.createElement("img",{style:{width:24,borderRadius:50,height:24},src:`${Ge.Z.IMG_SERVER}/images/${we.author.image_url}`}),ge.createElement("div",{style:{width:"100%"}},ge.createElement("div",{style:{display:"flex"}},ge.createElement("span",{style:{margin:"0px 12px 0px 8px"}},(Ne=we==null?void 0:we.author)==null?void 0:Ne.name),ge.createElement("span",null,we.time),ge.createElement("div",{style:{flex:1,textAlign:"right"}},((0,Te.eB)()||Ze.userInfo.login===((gt=we==null?void 0:we.author)==null?void 0:gt.login))&&ge.createElement("a",{onClick:Re=>a(void 0,null,function*(){Re.stopPropagation(),Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u56DE\u590D",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>a(void 0,null,function*(){(yield(0,xe.ZP)(`/api/hack_messages/${we.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),et())})})}),style:{color:"#165DFF",cursor:"pointer",marginLeft:20}},"\u5220\u9664"))),ge.createElement("div",{style:{margin:"0px 12px 0px 8px",overflow:"hidden"}},ge.createElement(Ce.Z,{style:{color:"#434D6C",fontSize:14},value:we.content})))))),ge.createElement(ye.Z,null))})),(Xe==null?void 0:Xe.reply_count)>0&&ge.createElement("p",{style:{margin:"0px 12px 0px 8px",color:"#165DFF",cursor:"pointer"},onClick:()=>{Lt(!St)}},St?"\u6536\u8D77":"\u5C55\u5F00\u66F4\u591A\u56DE\u590D",ge.createElement("i",{style:{marginLeft:"5px",fontSize:6},className:`iconfont ${St?"icon-shouqixiaojiantou":"icon-zhankaixiaojiantou"} mr3`})))))),ke&&ge.createElement("div",null,ge.createElement(Ue.Z,{values:xt,placeholder:"\u6211\u8981\u56DE\u590D\u3002\u3002\u3002",onBlur:we=>{be(we)}}),ge.createElement("div",{style:{width:"100%",textAlign:"end"}},ge.createElement(ue.ZP,{onClick:()=>{at(!1)},style:{width:82,height:32,marginRight:20}}," \u53D6\u6D88"),ge.createElement(ue.ZP,{onClick:()=>a(void 0,null,function*(){if(!xt){se.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,xe.ZP)(`/api/hack_messages/${Xe==null?void 0:Xe.id}/reply.json`,{method:"post",body:{content:xt}})).status===0&&(et(),be(""),at(!1))}),type:"primary",style:{width:82,height:32}},"\u53D1\u5E03"))),ge.createElement(ye.Z,null))};var x=(0,fe.connect)(({user:Ze})=>({user:Ze}))(y),b=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ae=(Ze,Xe,et)=>Xe in Ze?b(Ze,Xe,{enumerable:!0,configurable:!0,writable:!0,value:et}):Ze[Xe]=et,re=(Ze,Xe)=>{for(var et in Xe||(Xe={}))te.call(Xe,et)&&ae(Ze,et,Xe[et]);if(ee)for(var et of ee(Xe))oe.call(Xe,et)&&ae(Ze,et,Xe[et]);return Ze},le=(Ze,Xe)=>E(Ze,z(Xe)),me=(Ze,Xe,et)=>new Promise((Le,Ie)=>{var We=at=>{try{ke(et.next(at))}catch(St){Ie(St)}},Me=at=>{try{ke(et.throw(at))}catch(St){Ie(St)}},ke=at=>at.done?Le(at.value):Promise.resolve(at.value).then(We,Me);ke((et=et.apply(Ze,Xe)).next())});const Fe=({user:Ze})=>{var Xe,et,Le,Ie,We,Me,ke,at,St,Lt,xt,be,we,Ne,gt,Re,rt,de,Ke,Pt,wt,vt,Ee;let[ve,Se]=(0,ge.useState)(le(re({},(0,fe.useParams)()),{page:1,per_page:1e4,type:1,sort_by:"",course_group:(0,Te.dE)()?[Ze.userInfo.course.course_group_id]:[]}));const[he,$e]=(0,ge.useState)([]),[Je]=je.default.useForm(),[lt,ut]=(0,ge.useState)({}),ht=(0,fe.useLocation)(),[ft,ot]=(0,ge.useState)("");(0,ge.useEffect)(()=>{ct()},[]);function ct(){return me(this,null,function*(){let pt=yield(0,xe.ZP)(`/api/hack_messages/${ve.answerid}.json`,{method:"get",params:le(re({},ve),{type:1})});$e(pt)})}return ge.createElement("div",{style:{width:1200,margin:"0px auto",marginBottom:"20px"}},ge.createElement(He.Z,{separator:">",style:{marginTop:20}},ge.createElement(He.Z.Item,null,ge.createElement(fe.Link,{to:`/classrooms/${he==null?void 0:he.course_id}/program_homework`},he==null?void 0:he.course_name)),ge.createElement(He.Z.Item,null,ge.createElement(fe.Link,{to:`/classrooms/${he==null?void 0:he.course_id}/program_homework/${he==null?void 0:he.homework_id}/detail`},he==null?void 0:he.homework_name)),ge.createElement(He.Z.Item,null,ge.createElement(fe.Link,{to:`/classrooms/${he==null?void 0:he.course_id}/program_homework/${he==null?void 0:he.homework_id}/detail?tabs=6`},"\u9898\u89E3&\u95EE\u7B54")),ge.createElement(He.Z.Item,null,((Xe=he==null?void 0:he.data)==null?void 0:Xe.message_type)===1?"\u7591\u95EE":"\u5E7F\u64AD","\u8BE6\u60C5")),ge.createElement("div",{style:{marginTop:10,padding:"20px",background:"#fff"}},ge.createElement("p",{style:{fontSize:18,fontWeight:500}},(et=he==null?void 0:he.data)==null?void 0:et.name),ge.createElement("p",{style:{color:"#B1BACD",fontSize:14}},"\u53D1\u8868\u4E8E",(Le=he==null?void 0:he.data)==null?void 0:Le.created_at),ge.createElement("div",{style:{display:"flex"}},ge.createElement("div",{style:{flex:1}},ge.createElement("p",{style:{color:"#6B758B",fontSize:14,display:"flex",alignItems:"center"}},ge.createElement("img",{style:{width:24,borderRadius:50},src:`${Ge.Z.IMG_SERVER}/images/${(Ie=he==null?void 0:he.data)==null?void 0:Ie.author.image_url}`}),ge.createElement("span",{style:{marginLeft:10}},(Me=(We=he==null?void 0:he.data)==null?void 0:We.author)==null?void 0:Me.name)),(Ze.userInfo.login===((at=(ke=he==null?void 0:he.data)==null?void 0:ke.author)==null?void 0:at.login)||(0,Te.eB)())&&ge.createElement("a",{style:{display:"flex",alignItems:"center"},onClick:()=>me(void 0,null,function*(){var pt,zt,$t;let Bt=yield(0,xe.ZP)(`/api/problems/${(pt=he==null?void 0:he.data)==null?void 0:pt.hack_identifier}/start.json`,{method:"get",params:{hack_user_id:($t=(zt=he==null?void 0:he.data)==null?void 0:zt.author)==null?void 0:$t.id}});Bt&&(window.open(`/myproblems/${Bt==null?void 0:Bt.identifier}?type=1`),localStorage.setItem("program_homework",[ve.coursesId,ve.categoryId]))})},((St=he==null?void 0:he.data)==null?void 0:St.hack_name)&&ge.createElement("i",{style:{marginRight:"5px"},className:"iconfont icon-biaotimingcheng mr3 font16"}),(Lt=he==null?void 0:he.data)==null?void 0:Lt.hack_name),Ze.userInfo.login!=((be=(xt=he==null?void 0:he.data)==null?void 0:xt.author)==null?void 0:be.login)&&!(0,Te.eB)()&&ge.createElement("span",{style:{display:"flex",alignItems:"center",color:"#6B758B"}},((we=he==null?void 0:he.data)==null?void 0:we.hack_name)&&ge.createElement("i",{style:{marginRight:"5px"},className:"iconfont icon-biaotimingcheng mr3 font16"}),(Ne=he==null?void 0:he.data)==null?void 0:Ne.hack_name)),((gt=he==null?void 0:he.data)==null?void 0:gt.message_type)===1?ge.createElement("div",null,Ze.userInfo.login===((rt=(Re=he==null?void 0:he.data)==null?void 0:Re.author)==null?void 0:rt.login)&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",onClick:()=>{Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u7591\u95EE",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>me(void 0,null,function*(){var pt;(yield(0,xe.ZP)(`/api/hack_messages/${(pt=he==null?void 0:he.data)==null?void 0:pt.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),fe.history.push(`/classrooms/${he==null?void 0:he.course_id}/program_homework/${he==null?void 0:he.homework_id}/detail?tabs=6`))})})}},"\u5220\u9664"),Ze.userInfo.login===((Ke=(de=he==null?void 0:he.data)==null?void 0:de.author)==null?void 0:Ke.login)&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",style:{marginLeft:20,marginRight:(0,Te.eB)()?20:0},onClick:()=>{fe.history.push(`/classrooms/${ve.coursesId}/program_homework/${ve.categoryId}/answer/${ve==null?void 0:ve.answerid}/edit`)}},"\u7F16\u8F91"),(0,Te.eB)()&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",onClick:()=>me(void 0,null,function*(){var pt;(yield(0,xe.ZP)(`/api/hack_messages/${(pt=he==null?void 0:he.data)==null?void 0:pt.id}/update_public`,{method:"post"})).status===0&&ct()})},he!=null&&he.data.is_public?"\u53D6\u6D88\u516C\u5F00":"\u516C\u5F00")):ge.createElement("div",null,(0,Te.eB)()&&ge.createElement(ue.ZP,{onClick:()=>{Oe.default.confirm({title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\u8BE5\u5E7F\u64AD",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>me(void 0,null,function*(){var pt;(yield(0,xe.ZP)(`/api/hack_messages/${(pt=he==null?void 0:he.data)==null?void 0:pt.id}.json`,{method:"DELETE"})).status===0&&(se.ZP.info("\u5220\u9664\u6210\u529F"),fe.history.push(`/classrooms/${ve.coursesId}/program_homework/${ve.categoryId}/answer`))})})},ghost:!0,type:"primary"},"\u5220\u9664"),(0,Te.eB)()&&ge.createElement(ue.ZP,{ghost:!0,type:"primary",style:{marginLeft:20},onClick:()=>{fe.history.push(`/classrooms/${ve.coursesId}/program_homework/${ve.categoryId}/answer/${ve==null?void 0:ve.answerid}/edit`)}},"\u7F16\u8F91"))),ge.createElement(Ce.Z,{style:{marginTop:14,marginBottom:14},value:(Pt=he==null?void 0:he.data)==null?void 0:Pt.content}),ge.createElement(Ue.Z,{values:ft,placeholder:"\u6211\u8981\u56DE\u590D\u3002\u3002\u3002",onBlur:pt=>{ot(pt)}}),ge.createElement("div",{style:{width:"100%",textAlign:"end"}},ge.createElement(ue.ZP,{onClick:()=>me(void 0,null,function*(){var pt;if(!ft){se.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,xe.ZP)(`/api/hack_messages/${(pt=he==null?void 0:he.data)==null?void 0:pt.id}/reply`,{method:"post",body:{content:ft}})).status===0&&(ct(),ot(""))}),type:"primary",style:{width:82,height:32}},"\u53D1\u5E03")),ge.createElement("div",null,ge.createElement("p",{style:{fontSize:18,fontWeight:500}},((wt=he==null?void 0:he.data)==null?void 0:wt.descendants_count)||0,"\u6761\u8BC4\u8BBA"),(Ee=(vt=he==null?void 0:he.data)==null?void 0:vt.replies)==null?void 0:Ee.map(pt=>ge.createElement(x,{item:pt,getdata:ct,params:ve})))))};var _e=(0,fe.connect)(({user:Ze})=>({user:Ze}))(Fe)},66104:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return et}});var ge=ie(92310),fe=ie.n(ge),je=ie(11592),He=ie(26112),ue=ie(59301),Oe=ie(92343),se=ie(36355),Te=ie(84105),xe=ie(91857);const Ge=Le=>{let{children:Ie}=Le;const{getPrefixCls:We}=ue.useContext(se.E_),Me=We("breadcrumb");return ue.createElement("li",{className:`${Me}-separator`,"aria-hidden":"true"},Ie===""?Ie:Ie||"/")};Ge.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Ge,Ce=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);keIe[ke]||Me)}function ne(Le,Ie,We,Me){if(We==null)return null;const{className:ke,onClick:at}=Ie,St=Ce(Ie,["className","onClick"]),Lt=Object.assign(Object.assign({},(0,He.Z)(St,{data:!0,aria:!0})),{onClick:at});return Me!==void 0?ue.createElement("a",Object.assign({},Lt,{className:fe()(`${Le}-link`,ke),href:Me}),We):ue.createElement("span",Object.assign({},Lt,{className:fe()(`${Le}-link`,ke)}),We)}function a(Le,Ie){return(Me,ke,at,St,Lt)=>{if(Ie)return Ie(Me,ke,at,St);const xt=ye(Me,ke);return ne(Le,Me,xt,Lt)}}var y=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);ke{const{prefixCls:Ie,separator:We="/",children:Me,menu:ke,overlay:at,dropdownProps:St,href:Lt}=Le,be=(we=>{if(ke||at){const Ne=Object.assign({},St);if(ke){const gt=ke||{},{items:Re}=gt,rt=y(gt,["items"]);Ne.menu=Object.assign(Object.assign({},rt),{items:Re==null?void 0:Re.map((de,Ke)=>{var{key:Pt,title:wt,label:vt,path:Ee}=de,ve=y(de,["key","title","label","path"]);let Se=vt!=null?vt:wt;return Ee&&(Se=ue.createElement("a",{href:`${Lt}${Ee}`},Se)),Object.assign(Object.assign({},ve),{key:Pt!=null?Pt:Ke,label:Se})})})}else at&&(Ne.overlay=at);return ue.createElement(xe.Z,Object.assign({placement:"bottom"},Ne),ue.createElement("span",{className:`${Ie}-overlay-link`},we,ue.createElement(Te.Z,null)))}return we})(Me);return be!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,be),We&&ue.createElement(Ue,null,We)):null},b=Le=>{const{prefixCls:Ie,children:We,href:Me}=Le,ke=y(Le,["prefixCls","children","href"]),{getPrefixCls:at}=ue.useContext(se.E_),St=at("breadcrumb",Ie);return ue.createElement(x,Object.assign({},ke,{prefixCls:St}),ne(St,ke,We,Me))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ie(17313),ee=ie(83116),te=ie(37613);const oe=Le=>{const{componentCls:Ie,iconCls:We}=Le;return{[Ie]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[We]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ie}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ie}-link`]:{[` > ${We} + span, > ${We} + a - `]:{marginInlineStart:Le.marginXXS}},[`${Ie}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${We}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var ae=(0,ee.Z)("Breadcrumb",Le=>{const Ie=(0,te.TS)(Le,{});return[oe(Ie)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),re=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);ke{var{breadcrumbName:St}=at,Lt=re(at,["breadcrumbName"]);return Object.assign(Object.assign({},Lt),{title:St})})}),ke}function me(Le,Ie){return(0,ue.useMemo)(()=>Le||(Ie?Ie.map(le):null),[Le,Ie])}var Fe=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);ke{if(Ie===void 0)return Ie;let We=(Ie||"").replace(/^\//,"");return Object.keys(Le).forEach(Me=>{We=We.replace(`:${Me}`,Le[Me])}),We},Ze=Le=>{const{prefixCls:Ie,separator:We="/",style:Me,className:ke,rootClassName:at,routes:St,items:Lt,children:xt,itemRender:be,params:we={}}=Le,Ne=Fe(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:gt,direction:Re,breadcrumb:rt}=ue.useContext(se.E_);let de;const Ke=gt("breadcrumb",Ie),[Pt,wt]=ae(Ke),vt=me(Lt,St),Ee=a(Ke,be);if(vt&&vt.length>0){const fe=[],$e=Lt||St;de=vt.map((Je,lt)=>{const{path:ut,key:ht,type:ft,menu:ot,overlay:ct,onClick:pt,className:zt,separator:$t,dropdownProps:Bt}=Je,Ot=_e(we,ut);Ot!==void 0&&fe.push(Ot);const Nt=ht!=null?ht:lt;if(ft==="separator")return ue.createElement(Ue,{key:Nt},$t);const It={},Rt=lt===vt.length-1;ot?It.menu=ot:ct&&(It.overlay=ct);let{href:Wt}=Je;return fe.length&&Ot!==void 0&&(Wt=`#/${fe.join("/")}`),ue.createElement(x,Object.assign({key:Nt},It,(0,He.Z)(Je,{data:!0,aria:!0}),{className:zt,dropdownProps:Bt,href:Wt,separator:Rt?"":We,onClick:pt,prefixCls:Ke}),Ee(Je,we,$e,fe,Wt))})}else if(xt){const fe=(0,je.Z)(xt).length;de=(0,je.Z)(xt).map(($e,Je)=>{if(!$e)return $e;const lt=Je===fe-1;return(0,Oe.Tm)($e,{separator:lt?"":We,key:Je})})}const pe=he()(Ke,rt==null?void 0:rt.className,{[`${Ke}-rtl`]:Re==="rtl"},ke,at,wt),Se=Object.assign(Object.assign({},rt==null?void 0:rt.style),Me);return Pt(ue.createElement("nav",Object.assign({className:pe,style:Se},Ne),ue.createElement("ol",null,de)))};Ze.Item=E,Ze.Separator=Ue;var Xe=Ze,et=Xe},28103:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Ce}});var ge=ie(92310),he=ie.n(ge),je=ie(59301),He=ie(36355),ue=ie(17313),Oe=ie(83116),se=ie(37613);const Te=ye=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:x,textPaddingInline:b,orientationMargin:E,verticalMarginInline:z}=ye;return{[ne]:Object.assign(Object.assign({},(0,ue.Wf)(ye)),{borderBlockStart:`${x}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ye.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${ye.dividerHorizontalWithTextGutterMargin}px 0`,color:ye.colorTextHeading,fontWeight:500,fontSize:ye.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${E*100}%`},"&::after":{width:`${100-E*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-E*100}%`},"&::after":{width:`${E*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:ye.colorText,fontWeight:"normal",fontSize:ye.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:a}}})}};var xe=(0,Oe.Z)("Divider",ye=>{const ne=(0,se.TS)(ye,{dividerHorizontalWithTextGutterMargin:ye.margin,dividerHorizontalGutterMargin:ye.marginLG,sizePaddingEdgeHorizontal:0});return[Te(ne)]},ye=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ye.marginXS})),Ge=function(ye,ne){var a={};for(var y in ye)Object.prototype.hasOwnProperty.call(ye,y)&&ne.indexOf(y)<0&&(a[y]=ye[y]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(ye);x{const{getPrefixCls:ne,direction:a,divider:y}=je.useContext(He.E_),{prefixCls:x,type:b="horizontal",orientation:E="center",orientationMargin:z,className:ee,rootClassName:te,children:oe,dashed:ae,plain:re,style:le}=ye,me=Ge(ye,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Fe=ne("divider",x),[_e,Ze]=xe(Fe),Xe=E.length>0?`-${E}`:E,et=!!oe,Le=E==="left"&&z!=null,Ie=E==="right"&&z!=null,We=he()(Fe,y==null?void 0:y.className,Ze,`${Fe}-${b}`,{[`${Fe}-with-text`]:et,[`${Fe}-with-text${Xe}`]:et,[`${Fe}-dashed`]:!!ae,[`${Fe}-plain`]:!!re,[`${Fe}-rtl`]:a==="rtl",[`${Fe}-no-default-orientation-margin-left`]:Le,[`${Fe}-no-default-orientation-margin-right`]:Ie},ee,te),Me=je.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),ke=Object.assign(Object.assign({},Le&&{marginLeft:Me}),Ie&&{marginRight:Me});return _e(je.createElement("div",Object.assign({className:We,style:Object.assign(Object.assign({},y==null?void 0:y.style),le)},me,{role:"separator"}),oe&&b!=="vertical"&&je.createElement("span",{className:`${Fe}-inner-text`,style:ke},oe)))}},91857:function(Be,Qe,ie){"use strict";var ge=ie(59301),he=ie(38819),je=ie(92310),He=ie.n(je),ue=ie(31561),Oe=ie(70425),se=ie(18929),Te=ie(2738),xe=ie(79676),Ge=ie(53487),Ue=ie(92343),Ce=ie(36355),ye=ie(20834),ne=ie(40875),a=ie(88088),y=ie(47211);const x=null,b=te=>{const{menu:oe,arrow:ae,prefixCls:re,children:le,trigger:me,disabled:Fe,dropdownRender:_e,getPopupContainer:Ze,overlayClassName:Xe,rootClassName:et,open:Le,onOpenChange:Ie,visible:We,onVisibleChange:Me,mouseEnterDelay:ke=.15,mouseLeaveDelay:at=.1,autoAdjustOverflow:St=!0,placement:Lt="",overlay:xt,transitionName:be}=te,{getPopupContainer:we,getPrefixCls:Ne,direction:gt}=ge.useContext(Ce.E_),Re=ge.useMemo(()=>{const ot=Ne();return be!==void 0?be:Lt.includes("top")?`${ot}-slide-down`:`${ot}-slide-up`},[Ne,Lt,be]),rt=ge.useMemo(()=>Lt?Lt.includes("Center")?Lt.slice(0,Lt.indexOf("Center")):Lt:gt==="rtl"?"bottomRight":"bottomLeft",[Lt,gt]),de=Ne("dropdown",re),[Ke,Pt]=(0,y.Z)(de),[,wt]=(0,a.Z)(),vt=ge.Children.only(le),Ee=(0,Ue.Tm)(vt,{className:He()(`${de}-trigger`,{[`${de}-rtl`]:gt==="rtl"},vt.props.className),disabled:Fe}),pe=Fe?[]:me;let Se;pe&&pe.includes("contextMenu")&&(Se=!0);const[fe,$e]=(0,se.Z)(!1,{value:Le!=null?Le:We}),Je=(0,Oe.useEvent)(ot=>{Ie==null||Ie(ot),Me==null||Me(ot),$e(ot)}),lt=He()(Xe,et,Pt,{[`${de}-rtl`]:gt==="rtl"}),ut=(0,xe.Z)({arrowPointAtCenter:typeof ae=="object"&&ae.pointAtCenter,autoAdjustOverflow:St,offset:wt.marginXXS,arrowWidth:ae?wt.sizePopupArrow:0,borderRadius:wt.borderRadius}),ht=ge.useCallback(()=>{$e(!1)},[]),ft=()=>{let ot;return oe!=null&&oe.items?ot=ge.createElement(ye.default,Object.assign({},oe)):typeof xt=="function"?ot=xt():ot=xt,_e&&(ot=_e(ot)),ot=ge.Children.only(typeof ot=="string"?ge.createElement("span",null,ot):ot),ge.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ge.createElement("span",{className:`${de}-menu-submenu-arrow`},ge.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ht,validator:ct=>{let{mode:pt}=ct}},ot)};return Ke(ge.createElement(ue.Z,Object.assign({alignPoint:Se},(0,Te.Z)(te,["rootClassName"]),{mouseEnterDelay:ke,mouseLeaveDelay:at,visible:fe,builtinPlacements:ut,arrow:!!ae,overlayClassName:lt,prefixCls:de,getPopupContainer:Ze||we,transitionName:Re,trigger:pe,overlay:ft,placement:rt,onVisibleChange:Je}),Ee))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ge.Z)(b,"dropdown",te=>te,E),ee=te=>ge.createElement(z,Object.assign({},te),ge.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,Qe.Z=b},47211:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Ue}});var ge=ie(17313),he=ie(13826),je=ie(92899),He=ie(29878),ue=ie(19447),Oe=ie(83116),se=ie(37613),xe=Ce=>{const{componentCls:ye,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ce,x=`${ne}-item`;return{[`${ye}, ${ye}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ge=Ce=>{const{componentCls:ye,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ae,fontSizeIcon:re,controlPaddingHorizontal:le,colorBgElevated:me}=Ce;return[{[ye]:Object.assign(Object.assign({},(0,ge.Wf)(Ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:re}},[`${ye}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:re},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${ye}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${ye}-placement-bottomLeft, + `]:{marginInlineStart:Le.marginXXS}},[`${Ie}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${We}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var ae=(0,ee.Z)("Breadcrumb",Le=>{const Ie=(0,te.TS)(Le,{});return[oe(Ie)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),re=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);ke{var{breadcrumbName:St}=at,Lt=re(at,["breadcrumbName"]);return Object.assign(Object.assign({},Lt),{title:St})})}),ke}function me(Le,Ie){return(0,ue.useMemo)(()=>Le||(Ie?Ie.map(le):null),[Le,Ie])}var Fe=function(Le,Ie){var We={};for(var Me in Le)Object.prototype.hasOwnProperty.call(Le,Me)&&Ie.indexOf(Me)<0&&(We[Me]=Le[Me]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Me=Object.getOwnPropertySymbols(Le);ke{if(Ie===void 0)return Ie;let We=(Ie||"").replace(/^\//,"");return Object.keys(Le).forEach(Me=>{We=We.replace(`:${Me}`,Le[Me])}),We},Ze=Le=>{const{prefixCls:Ie,separator:We="/",style:Me,className:ke,rootClassName:at,routes:St,items:Lt,children:xt,itemRender:be,params:we={}}=Le,Ne=Fe(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:gt,direction:Re,breadcrumb:rt}=ue.useContext(se.E_);let de;const Ke=gt("breadcrumb",Ie),[Pt,wt]=ae(Ke),vt=me(Lt,St),Ee=a(Ke,be);if(vt&&vt.length>0){const he=[],$e=Lt||St;de=vt.map((Je,lt)=>{const{path:ut,key:ht,type:ft,menu:ot,overlay:ct,onClick:pt,className:zt,separator:$t,dropdownProps:Bt}=Je,Ot=_e(we,ut);Ot!==void 0&&he.push(Ot);const Nt=ht!=null?ht:lt;if(ft==="separator")return ue.createElement(Ue,{key:Nt},$t);const It={},Rt=lt===vt.length-1;ot?It.menu=ot:ct&&(It.overlay=ct);let{href:Wt}=Je;return he.length&&Ot!==void 0&&(Wt=`#/${he.join("/")}`),ue.createElement(x,Object.assign({key:Nt},It,(0,He.Z)(Je,{data:!0,aria:!0}),{className:zt,dropdownProps:Bt,href:Wt,separator:Rt?"":We,onClick:pt,prefixCls:Ke}),Ee(Je,we,$e,he,Wt))})}else if(xt){const he=(0,je.Z)(xt).length;de=(0,je.Z)(xt).map(($e,Je)=>{if(!$e)return $e;const lt=Je===he-1;return(0,Oe.Tm)($e,{separator:lt?"":We,key:Je})})}const ve=fe()(Ke,rt==null?void 0:rt.className,{[`${Ke}-rtl`]:Re==="rtl"},ke,at,wt),Se=Object.assign(Object.assign({},rt==null?void 0:rt.style),Me);return Pt(ue.createElement("nav",Object.assign({className:ve,style:Se},Ne),ue.createElement("ol",null,de)))};Ze.Item=E,Ze.Separator=Ue;var Xe=Ze,et=Xe},28103:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Ce}});var ge=ie(92310),fe=ie.n(ge),je=ie(59301),He=ie(36355),ue=ie(17313),Oe=ie(83116),se=ie(37613);const Te=ye=>{const{componentCls:ne,sizePaddingEdgeHorizontal:a,colorSplit:y,lineWidth:x,textPaddingInline:b,orientationMargin:E,verticalMarginInline:z}=ye;return{[ne]:Object.assign(Object.assign({},(0,ue.Wf)(ye)),{borderBlockStart:`${x}px solid ${y}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${y}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ye.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${ye.dividerHorizontalWithTextGutterMargin}px 0`,color:ye.colorTextHeading,fontWeight:500,fontSize:ye.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${y}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${E*100}%`},"&::after":{width:`${100-E*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-E*100}%`},"&::after":{width:`${E*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:y,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:ye.colorText,fontWeight:"normal",fontSize:ye.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:a}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:a}}})}};var xe=(0,Oe.Z)("Divider",ye=>{const ne=(0,se.TS)(ye,{dividerHorizontalWithTextGutterMargin:ye.margin,dividerHorizontalGutterMargin:ye.marginLG,sizePaddingEdgeHorizontal:0});return[Te(ne)]},ye=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:ye.marginXS})),Ge=function(ye,ne){var a={};for(var y in ye)Object.prototype.hasOwnProperty.call(ye,y)&&ne.indexOf(y)<0&&(a[y]=ye[y]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,y=Object.getOwnPropertySymbols(ye);x{const{getPrefixCls:ne,direction:a,divider:y}=je.useContext(He.E_),{prefixCls:x,type:b="horizontal",orientation:E="center",orientationMargin:z,className:ee,rootClassName:te,children:oe,dashed:ae,plain:re,style:le}=ye,me=Ge(ye,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Fe=ne("divider",x),[_e,Ze]=xe(Fe),Xe=E.length>0?`-${E}`:E,et=!!oe,Le=E==="left"&&z!=null,Ie=E==="right"&&z!=null,We=fe()(Fe,y==null?void 0:y.className,Ze,`${Fe}-${b}`,{[`${Fe}-with-text`]:et,[`${Fe}-with-text${Xe}`]:et,[`${Fe}-dashed`]:!!ae,[`${Fe}-plain`]:!!re,[`${Fe}-rtl`]:a==="rtl",[`${Fe}-no-default-orientation-margin-left`]:Le,[`${Fe}-no-default-orientation-margin-right`]:Ie},ee,te),Me=je.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),ke=Object.assign(Object.assign({},Le&&{marginLeft:Me}),Ie&&{marginRight:Me});return _e(je.createElement("div",Object.assign({className:We,style:Object.assign(Object.assign({},y==null?void 0:y.style),le)},me,{role:"separator"}),oe&&b!=="vertical"&&je.createElement("span",{className:`${Fe}-inner-text`,style:ke},oe)))}},91857:function(Be,Qe,ie){"use strict";var ge=ie(59301),fe=ie(38819),je=ie(92310),He=ie.n(je),ue=ie(31561),Oe=ie(70425),se=ie(18929),Te=ie(2738),xe=ie(79676),Ge=ie(53487),Ue=ie(92343),Ce=ie(36355),ye=ie(20834),ne=ie(40875),a=ie(88088),y=ie(47211);const x=null,b=te=>{const{menu:oe,arrow:ae,prefixCls:re,children:le,trigger:me,disabled:Fe,dropdownRender:_e,getPopupContainer:Ze,overlayClassName:Xe,rootClassName:et,open:Le,onOpenChange:Ie,visible:We,onVisibleChange:Me,mouseEnterDelay:ke=.15,mouseLeaveDelay:at=.1,autoAdjustOverflow:St=!0,placement:Lt="",overlay:xt,transitionName:be}=te,{getPopupContainer:we,getPrefixCls:Ne,direction:gt}=ge.useContext(Ce.E_),Re=ge.useMemo(()=>{const ot=Ne();return be!==void 0?be:Lt.includes("top")?`${ot}-slide-down`:`${ot}-slide-up`},[Ne,Lt,be]),rt=ge.useMemo(()=>Lt?Lt.includes("Center")?Lt.slice(0,Lt.indexOf("Center")):Lt:gt==="rtl"?"bottomRight":"bottomLeft",[Lt,gt]),de=Ne("dropdown",re),[Ke,Pt]=(0,y.Z)(de),[,wt]=(0,a.Z)(),vt=ge.Children.only(le),Ee=(0,Ue.Tm)(vt,{className:He()(`${de}-trigger`,{[`${de}-rtl`]:gt==="rtl"},vt.props.className),disabled:Fe}),ve=Fe?[]:me;let Se;ve&&ve.includes("contextMenu")&&(Se=!0);const[he,$e]=(0,se.Z)(!1,{value:Le!=null?Le:We}),Je=(0,Oe.useEvent)(ot=>{Ie==null||Ie(ot),Me==null||Me(ot),$e(ot)}),lt=He()(Xe,et,Pt,{[`${de}-rtl`]:gt==="rtl"}),ut=(0,xe.Z)({arrowPointAtCenter:typeof ae=="object"&&ae.pointAtCenter,autoAdjustOverflow:St,offset:wt.marginXXS,arrowWidth:ae?wt.sizePopupArrow:0,borderRadius:wt.borderRadius}),ht=ge.useCallback(()=>{$e(!1)},[]),ft=()=>{let ot;return oe!=null&&oe.items?ot=ge.createElement(ye.default,Object.assign({},oe)):typeof xt=="function"?ot=xt():ot=xt,_e&&(ot=_e(ot)),ot=ge.Children.only(typeof ot=="string"?ge.createElement("span",null,ot):ot),ge.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ge.createElement("span",{className:`${de}-menu-submenu-arrow`},ge.createElement(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ht,validator:ct=>{let{mode:pt}=ct}},ot)};return Ke(ge.createElement(ue.Z,Object.assign({alignPoint:Se},(0,Te.Z)(te,["rootClassName"]),{mouseEnterDelay:ke,mouseLeaveDelay:at,visible:he,builtinPlacements:ut,arrow:!!ae,overlayClassName:lt,prefixCls:de,getPopupContainer:Ze||we,transitionName:Re,trigger:ve,overlay:ft,placement:rt,onVisibleChange:Je}),Ee))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ge.Z)(b,"dropdown",te=>te,E),ee=te=>ge.createElement(z,Object.assign({},te),ge.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,Qe.Z=b},47211:function(Be,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Ue}});var ge=ie(17313),fe=ie(13826),je=ie(92899),He=ie(29878),ue=ie(19447),Oe=ie(83116),se=ie(37613),xe=Ce=>{const{componentCls:ye,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ce,x=`${ne}-item`;return{[`${ye}, ${ye}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ge=Ce=>{const{componentCls:ye,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ae,fontSizeIcon:re,controlPaddingHorizontal:le,colorBgElevated:me}=Ce;return[{[ye]:Object.assign(Object.assign({},(0,ge.Wf)(Ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:re}},[`${ye}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:re},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${ye}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${ye}-placement-bottomLeft, &${b}-slide-down-appear${b}-slide-down-appear-active${ye}-placement-bottomLeft, &${b}-slide-down-enter${b}-slide-down-enter-active${ye}-placement-bottom, &${b}-slide-down-appear${b}-slide-down-appear-active${ye}-placement-bottom, &${b}-slide-down-enter${b}-slide-down-enter-active${ye}-placement-bottomRight, - &${b}-slide-down-appear${b}-slide-down-appear-active${ye}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${ye}-placement-topLeft, + &${b}-slide-down-appear${b}-slide-down-appear-active${ye}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${ye}-placement-topLeft, &${b}-slide-up-appear${b}-slide-up-appear-active${ye}-placement-topLeft, &${b}-slide-up-enter${b}-slide-up-enter-active${ye}-placement-top, &${b}-slide-up-appear${b}-slide-up-appear-active${ye}-placement-top, &${b}-slide-up-enter${b}-slide-up-enter-active${ye}-placement-topRight, - &${b}-slide-up-appear${b}-slide-up-appear-active${ye}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${ye}-placement-bottomLeft, + &${b}-slide-up-appear${b}-slide-up-appear-active${ye}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${ye}-placement-bottomLeft, &${b}-slide-down-leave${b}-slide-down-leave-active${ye}-placement-bottom, - &${b}-slide-down-leave${b}-slide-down-leave-active${ye}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${ye}-placement-topLeft, + &${b}-slide-down-leave${b}-slide-down-leave-active${ye}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${ye}-placement-topLeft, &${b}-slide-up-leave${b}-slide-up-leave-active${ye}-placement-top, - &${b}-slide-up-leave${b}-slide-up-leave-active${ye}-placement-topRight`]:{animationName:he.ly}})},(0,ue.ZP)(Ce,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ye} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ye}, ${ye}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary},(0,ge.Qy)(Ce)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${le}px`,color:Ce.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ce.marginXS,fontSize:Ce.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${le}px`,color:Ce.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ce.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ce.controlItemBgHover}},(0,ge.Qy)(Ce)),{"&-selected":{color:Ce.colorPrimary,backgroundColor:Ce.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ce.controlItemBgActiveHover}},"&-disabled":{color:ae,cursor:"not-allowed","&:hover":{color:ae,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ce.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ce.colorSplit},[`${ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,[`${ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ce.colorTextDescription,fontSize:re,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ce.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:le+Ce.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${ye}-menu-submenu-title`]:{[`&, ${ye}-menu-submenu-arrow-icon`]:{color:ae,backgroundColor:me,cursor:"not-allowed"}},[`${ne}-submenu-selected ${ye}-menu-submenu-title`]:{color:Ce.colorPrimary}})}},[(0,he.oN)(Ce,"slide-up"),(0,he.oN)(Ce,"slide-down"),(0,je.Fm)(Ce,"move-up"),(0,je.Fm)(Ce,"move-down"),(0,He._y)(Ce,"zoom-big")]]};var Ue=(0,Oe.Z)("Dropdown",(Ce,ye)=>{let{rootPrefixCls:ne}=ye;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ce,oe=(x-b*E)/2,{dropdownArrowOffset:ae}=(0,ue.fS)({contentRadius:te}),re=(0,se.TS)(Ce,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ae,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ge(re),xe(re)]},Ce=>({zIndexPopup:Ce.zIndexPopupBase+50}))},45818:function(Be,Qe,ie){"use strict";ie.d(Qe,{D:function(){return z},Z:function(){return oe}});var ge=ie(16378),he=ie(59301),je={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"},He=je,ue=ie(7657),Oe=function(re,le){return he.createElement(ue.Z,(0,ge.Z)({},re,{ref:le,icon:He}))},se=he.forwardRef(Oe),Te=se,xe=ie(33853),Ge=ie(38819),Ue=ie(92310),Ce=ie.n(Ue),ye=ie(2738),a=ae=>!isNaN(parseFloat(ae))&&isFinite(ae),y=ie(36355),x=ie(84966),b=function(ae,re){var le={};for(var me in ae)Object.prototype.hasOwnProperty.call(ae,me)&&re.indexOf(me)<0&&(le[me]=ae[me]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(ae);Fe{let ae=0;return function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ae+=1,`${re}${ae}`}})();var oe=he.forwardRef((ae,re)=>{const{prefixCls:le,className:me,trigger:Fe,children:_e,defaultCollapsed:Ze=!1,theme:Xe="dark",style:et={},collapsible:Le=!1,reverseArrow:Ie=!1,width:We=200,collapsedWidth:Me=80,zeroWidthTriggerStyle:ke,breakpoint:at,onCollapse:St,onBreakpoint:Lt}=ae,xt=b(ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:be}=(0,he.useContext)(x.Gs),[we,Ne]=(0,he.useState)("collapsed"in ae?ae.collapsed:Ze),[gt,Re]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in ae&&Ne(ae.collapsed)},[ae.collapsed]);const rt=(Ee,pe)=>{"collapsed"in ae||Ne(Ee),St==null||St(Ee,pe)},de=(0,he.useRef)();de.current=Ee=>{Re(Ee.matches),Lt==null||Lt(Ee.matches),we!==Ee.matches&&rt(Ee.matches,"responsive")},(0,he.useEffect)(()=>{function Ee(Se){return de.current(Se)}let pe;if(typeof window!="undefined"){const{matchMedia:Se}=window;if(Se&&at&&at in E){pe=Se(`(max-width: ${E[at]})`);try{pe.addEventListener("change",Ee)}catch(fe){pe.addListener(Ee)}Ee(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",Ee)}catch(Se){pe==null||pe.removeListener(Ee)}}},[at]),(0,he.useEffect)(()=>{const Ee=ee("ant-sider-");return be.addSider(Ee),()=>be.removeSider(Ee)},[]);const Ke=()=>{rt(!we,"clickTrigger")},{getPrefixCls:Pt}=(0,he.useContext)(y.E_),wt=()=>{const Ee=Pt("layout-sider",le),pe=(0,ye.Z)(xt,["collapsed"]),Se=we?Me:We,fe=a(Se)?`${Se}px`:String(Se),$e=parseFloat(String(Me||0))===0?he.createElement("span",{onClick:Ke,className:Ce()(`${Ee}-zero-width-trigger`,`${Ee}-zero-width-trigger-${Ie?"right":"left"}`),style:ke},Fe||he.createElement(Te,null)):null,ut={expanded:Ie?he.createElement(Ge.Z,null):he.createElement(xe.Z,null),collapsed:Ie?he.createElement(xe.Z,null):he.createElement(Ge.Z,null)}[we?"collapsed":"expanded"],ht=Fe!==null?$e||he.createElement("div",{className:`${Ee}-trigger`,onClick:Ke,style:{width:fe}},Fe||ut):null,ft=Object.assign(Object.assign({},et),{flex:`0 0 ${fe}`,maxWidth:fe,minWidth:fe,width:fe}),ot=Ce()(Ee,`${Ee}-${Xe}`,{[`${Ee}-collapsed`]:!!we,[`${Ee}-has-trigger`]:Le&&Fe!==null&&!$e,[`${Ee}-below`]:!!gt,[`${Ee}-zero-width`]:parseFloat(fe)===0},me);return he.createElement("aside",Object.assign({className:ot},pe,{style:ft,ref:re}),he.createElement("div",{className:`${Ee}-children`},_e),Le||gt&&$e?ht:null)},vt=he.useMemo(()=>({siderCollapsed:we}),[we]);return he.createElement(z.Provider,{value:vt},wt())})},84966:function(Be,Qe,ie){"use strict";ie.d(Qe,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return ye},ZP:function(){return ee}});var ge=ie(65093),he=ie(92310),je=ie.n(he),He=ie(2738),ue=ie(59301),Oe=ie(36355),se=ie(83116),xe=te=>{const{componentCls:oe,bodyBg:ae,lightSiderBg:re,lightTriggerBg:le,lightTriggerColor:me}=te;return{[`${oe}-sider-light`]:{background:re,[`${oe}-sider-trigger`]:{color:me,background:le},[`${oe}-sider-zero-width-trigger`]:{color:me,background:le,border:`1px solid ${ae}`,borderInlineStart:0}}}};const Ge=te=>{const{antCls:oe,componentCls:ae,colorText:re,triggerColor:le,footerBg:me,triggerBg:Fe,headerHeight:_e,headerPadding:Ze,headerColor:Xe,footerPadding:et,triggerHeight:Le,zeroTriggerHeight:Ie,zeroTriggerWidth:We,motionDurationMid:Me,motionDurationSlow:ke,fontSize:at,borderRadius:St,bodyBg:Lt,headerBg:xt,siderBg:be}=te;return{[ae]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Lt,"&, *":{boxSizing:"border-box"},[`&${ae}-has-sider`]:{flexDirection:"row",[`> ${ae}, > ${ae}-content`]:{width:0}},[`${ae}-header, &${ae}-footer`]:{flex:"0 0 auto"},[`${ae}-sider`]:{position:"relative",minWidth:0,background:be,transition:`all ${Me}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:le,lineHeight:`${Le}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Me}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:_e,insetInlineEnd:-We,zIndex:1,width:We,height:Ie,color:le,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:be,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:St,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:St}}}}},xe(te)),{"&-rtl":{direction:"rtl"}}),[`${ae}-header`]:{height:_e,padding:Ze,color:Xe,lineHeight:`${_e}px`,background:xt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ae}-footer`]:{padding:et,color:re,fontSize:at,background:me},[`${ae}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,se.Z)("Layout",te=>[Ge(te)],te=>{const{colorBgLayout:oe,controlHeight:ae,controlHeightLG:re,colorText:le,controlHeightSM:me,marginXXS:Fe,colorTextLightSolid:_e,colorBgContainer:Ze}=te,Xe=re*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ae*2,headerPadding:`0 ${Xe}px`,headerColor:le,footerPadding:`${me}px ${Xe}px`,footerBg:oe,siderBg:"#001529",triggerHeight:re+Fe*2,triggerBg:"#002140",triggerColor:_e,zeroTriggerWidth:re,zeroTriggerHeight:re,lightSiderBg:Ze,lightTriggerBg:Ze,lightTriggerColor:le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ce=function(te,oe){var ae={};for(var re in te)Object.prototype.hasOwnProperty.call(te,re)&&oe.indexOf(re)<0&&(ae[re]=te[re]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,re=Object.getOwnPropertySymbols(te);lenull,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ae,displayName:re}=te;return le=>ue.forwardRef((Fe,_e)=>ue.createElement(le,Object.assign({ref:_e,suffixCls:oe,tagName:ae},Fe)))}const a=ue.forwardRef((te,oe)=>{const{prefixCls:ae,suffixCls:re,className:le,tagName:me}=te,Fe=Ce(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:_e}=ue.useContext(Oe.E_),Ze=_e("layout",ae),[Xe,et]=Ue(Ze),Le=re?`${Ze}-${re}`:Ze;return Xe(ue.createElement(me,Object.assign({className:je()(ae||Le,le,et),ref:oe},Fe)))}),y=ue.forwardRef((te,oe)=>{const{direction:ae}=ue.useContext(Oe.E_),[re,le]=ue.useState([]),{prefixCls:me,className:Fe,rootClassName:_e,children:Ze,hasSider:Xe,tagName:et,style:Le}=te,Ie=Ce(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,He.Z)(Ie,["suffixCls"]),{getPrefixCls:Me,layout:ke}=ue.useContext(Oe.E_),at=Me("layout",me),[St,Lt]=Ue(at),xt=je()(at,{[`${at}-has-sider`]:typeof Xe=="boolean"?Xe:re.length>0,[`${at}-rtl`]:ae==="rtl"},ke==null?void 0:ke.className,Fe,_e,Lt),be=ue.useMemo(()=>({siderHook:{addSider:we=>{le(Ne=>[].concat((0,ge.Z)(Ne),[we]))},removeSider:we=>{le(Ne=>Ne.filter(gt=>gt!==we))}}}),[]);return St(ue.createElement(ye.Provider,{value:be},ue.createElement(et,Object.assign({ref:oe,className:xt,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Le)},We),Ze)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Be,Qe,ie){"use strict";ie.d(Qe,{J:function(){return Oe}});var ge=ie(59301),he=ie(33234),je=ie(70425),He=function(se,Te){var xe={};for(var Ge in se)Object.prototype.hasOwnProperty.call(se,Ge)&&Te.indexOf(Ge)<0&&(xe[Ge]=se[Ge]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ge=Object.getOwnPropertySymbols(se);Ue{const{children:xe}=se,Ge=He(se,["children"]),Ue=ge.useContext(ue),Ce=ge.useMemo(()=>Object.assign(Object.assign({},Ue),Ge),[Ue,Ge.prefixCls,Ge.mode,Ge.selectable]);return ge.createElement(ue.Provider,{value:Ce},ge.createElement(he.BR,null,(0,je.supportNodeRef)(xe)?ge.cloneElement(xe,{ref:Te}):xe))});Qe.Z=ue},20834:function(Be,Qe,ie){"use strict";ie.d(Qe,{default:function(){return vt}});var ge=ie(15285),he=ie(59301),je=ie(45818),He=ie(92310),ue=ie.n(He),Oe=ie(36355),se=function(Ee,pe){var Se={};for(var fe in Ee)Object.prototype.hasOwnProperty.call(Ee,fe)&&pe.indexOf(fe)<0&&(Se[fe]=Ee[fe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,fe=Object.getOwnPropertySymbols(Ee);$e{const{prefixCls:pe,className:Se,dashed:fe}=Ee,$e=se(Ee,["prefixCls","className","dashed"]),{getPrefixCls:Je}=he.useContext(Oe.E_),lt=Je("menu",pe),ut=ue()({[`${lt}-item-divider-dashed`]:!!fe},Se);return he.createElement(ge.iz,Object.assign({className:ut},$e))},Ge=ie(11592),Ue=ie(2738),Ce=ie(6848),ye=ie(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ee=>{var pe;const{className:Se,children:fe,icon:$e,title:Je,danger:lt}=Ee,{prefixCls:ut,firstLevel:ht,direction:ft,disableMenuItemTitleTooltip:ot,inlineCollapsed:ct}=he.useContext(a),pt=It=>{const Rt=he.createElement("span",{className:`${ut}-title-content`},fe);return(!$e||(0,ye.l$)(fe)&&fe.type==="span")&&fe&&It&&ht&&typeof fe=="string"?he.createElement("div",{className:`${ut}-inline-collapsed-noicon`},fe.charAt(0)):Rt},{siderCollapsed:zt}=he.useContext(je.D);let $t=Je;typeof Je=="undefined"?$t=ht?fe:"":Je===!1&&($t="");const Bt={title:$t};!zt&&!ct&&(Bt.title=null,Bt.open=!1);const Ot=(0,Ge.Z)(fe).length;let Nt=he.createElement(ge.ck,Object.assign({},(0,Ue.Z)(Ee,["title","icon","danger"]),{className:ue()({[`${ut}-item-danger`]:lt,[`${ut}-item-only-child`]:($e?Ot+1:Ot)===1},Se),title:typeof Je=="string"?Je:void 0}),(0,ye.Tm)($e,{className:ue()((0,ye.l$)($e)?(pe=$e.props)===null||pe===void 0?void 0:pe.className:"",`${ut}-item-icon`)}),pt(ct));return ot||(Nt=he.createElement(Ce.Z,Object.assign({},Bt,{placement:ft==="rtl"?"left":"right",overlayClassName:`${ut}-inline-collapsed-tooltip`}),Nt)),Nt},E=Ee=>{var pe;const{popupClassName:Se,icon:fe,title:$e,theme:Je}=Ee,lt=he.useContext(a),{prefixCls:ut,inlineCollapsed:ht,theme:ft}=lt,ot=(0,ge.Xl)();let ct;if(!fe)ct=ht&&!ot.length&&$e&&typeof $e=="string"?he.createElement("div",{className:`${ut}-inline-collapsed-noicon`},$e.charAt(0)):he.createElement("span",{className:`${ut}-title-content`},$e);else{const zt=(0,ye.l$)($e)&&$e.type==="span";ct=he.createElement(he.Fragment,null,(0,ye.Tm)(fe,{className:ue()((0,ye.l$)(fe)?(pe=fe.props)===null||pe===void 0?void 0:pe.className:"",`${ut}-item-icon`)}),zt?$e:he.createElement("span",{className:`${ut}-title-content`},$e))}const pt=he.useMemo(()=>Object.assign(Object.assign({},lt),{firstLevel:!1}),[lt]);return he.createElement(a.Provider,{value:pt},he.createElement(ge.Wd,Object.assign({},(0,Ue.Z)(Ee,["icon"]),{title:ct,popupClassName:ue()(ut,Se,`${ut}-${Je||ft}`)})))},z=ie(18785),ee=ie(70425),te=ie(62892),oe=ie(40875),ae=function(Ee,pe){var Se={};for(var fe in Ee)Object.prototype.hasOwnProperty.call(Ee,fe)&&pe.indexOf(fe)<0&&(Se[fe]=Ee[fe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,fe=Object.getOwnPropertySymbols(Ee);$e{if(pe&&typeof pe=="object"){const fe=pe,{label:$e,children:Je,key:lt,type:ut}=fe,ht=ae(fe,["label","children","key","type"]),ft=lt!=null?lt:`tmp-${Se}`;return Je||ut==="group"?ut==="group"?he.createElement(ge.BW,Object.assign({key:ft},ht,{title:$e}),re(Je)):he.createElement(E,Object.assign({key:ft},ht,{title:$e}),re(Je)):ut==="divider"?he.createElement(xe,Object.assign({key:ft},ht)):he.createElement(x,Object.assign({key:ft},ht),$e)}return null}).filter(pe=>pe)}function le(Ee){return he.useMemo(()=>Ee&&re(Ee),[Ee])}var me=ie(64993),Fe=ie(17313),_e=ie(8378),Ze=ie(13826),Xe=ie(29878),et=ie(83116),Le=ie(37613),We=Ee=>{const{componentCls:pe,motionDurationSlow:Se,horizontalLineHeight:fe,colorSplit:$e,lineWidth:Je,lineType:lt,itemPaddingInline:ut}=Ee;return{[`${pe}-horizontal`]:{lineHeight:fe,border:0,borderBottom:`${Je}px ${lt} ${$e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${pe}-item:hover, - > ${pe}-item-active, - > ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},ke=Ee=>{let{componentCls:pe,menuArrowOffset:Se}=Ee;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical, - ${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Se})`},"&::after":{transform:`rotate(45deg) translateY(${Se})`}}}}};const at=Ee=>Object.assign({},(0,Fe.oN)(Ee));var Lt=(Ee,pe)=>{const{componentCls:Se,itemColor:fe,itemSelectedColor:$e,groupTitleColor:Je,itemBg:lt,subMenuItemBg:ut,itemSelectedBg:ht,activeBarHeight:ft,activeBarWidth:ot,activeBarBorderWidth:ct,motionDurationSlow:pt,motionEaseInOut:zt,motionEaseOut:$t,itemPaddingInline:Bt,motionDurationMid:Ot,itemHoverColor:Nt,lineType:It,colorSplit:Rt,itemDisabledColor:Wt,dangerItemColor:Zt,dangerItemHoverColor:Ht,dangerItemSelectedColor:nn,dangerItemActiveBg:_t,dangerItemSelectedBg:Xt,itemHoverBg:on,itemActiveBg:sn,menuSubMenuBg:zn,horizontalItemSelectedColor:vn,horizontalItemSelectedBg:bn,horizontalItemBorderRadius:Mn,horizontalItemHoverBg:hn,popupBg:$n}=Ee;return{[`${Se}-${pe}, ${Se}-${pe} > ${Se}`]:{color:fe,background:lt,[`&${Se}-root:focus-visible`]:Object.assign({},at(Ee)),[`${Se}-item-group-title`]:{color:Je},[`${Se}-submenu-selected`]:{[`> ${Se}-submenu-title`]:{color:$e}},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${Wt} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:Nt}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:sn}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:sn}}},[`${Se}-item-danger`]:{color:Zt,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:Ht}},[`&${Se}-item:active`]:{background:_t}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:$e,[`&${Se}-item-danger`]:{color:nn},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:ht,[`&${Se}-item-danger`]:{backgroundColor:Xt}},[`${Se}-item, ${Se}-submenu-title`]:{[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},at(Ee))},[`&${Se}-submenu > ${Se}`]:{backgroundColor:zn},[`&${Se}-popup > ${Se}`]:{backgroundColor:$n},[`&${Se}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:ct,marginTop:-ct,marginBottom:0,borderRadius:Mn,"&::after":{position:"absolute",insetInline:Bt,bottom:0,borderBottom:`${ft}px solid transparent`,transition:`border-color ${pt} ${zt}`,content:'""'},"&:hover, &-active, &-open":{background:hn,"&::after":{borderBottomWidth:ft,borderBottomColor:vn}},"&-selected":{color:vn,backgroundColor:bn,"&:hover":{backgroundColor:bn},"&::after":{borderBottomWidth:ft,borderBottomColor:vn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${ct}px ${It} ${Rt}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:ut},[`${Se}-item, ${Se}-submenu-title`]:ct&&ot?{width:`calc(100% + ${ct}px)`}:{},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ot}px solid ${$e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ot} ${$t}`,`opacity ${Ot} ${$t}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:nn}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ot} ${zt}`,`opacity ${Ot} ${zt}`].join(",")}}}}}};const xt=Ee=>{const{componentCls:pe,itemHeight:Se,itemMarginInline:fe,padding:$e,menuArrowSize:Je,marginXS:lt,itemMarginBlock:ut}=Ee,ht=$e+Je+lt;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:Se,lineHeight:`${Se}px`,paddingInline:$e,overflow:"hidden",textOverflow:"ellipsis",marginInline:fe,marginBlock:ut,width:`calc(100% - ${fe*2}px)`},[`> ${pe}-item, - > ${pe}-submenu > ${pe}-submenu-title`]:{height:Se,lineHeight:`${Se}px`},[`${pe}-item-group-list ${pe}-submenu-title, - ${pe}-submenu-title`]:{paddingInlineEnd:ht}}};var we=Ee=>{const{componentCls:pe,iconCls:Se,itemHeight:fe,colorTextLightSolid:$e,dropdownWidth:Je,controlHeightLG:lt,motionDurationMid:ut,motionEaseOut:ht,paddingXL:ft,itemMarginInline:ot,fontSizeLG:ct,motionDurationSlow:pt,paddingXS:zt,boxShadowSecondary:$t,collapsedWidth:Bt,collapsedIconSize:Ot}=Ee,Nt={height:fe,lineHeight:`${fe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},xt(Ee))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},xt(Ee)),{boxShadow:$t})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:Je,maxHeight:`calc(100vh - ${lt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${pt}`,`background ${pt}`,`padding ${ut} ${ht}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:Nt,[`& ${pe}-item-group-title`]:{paddingInlineStart:ft}},[`${pe}-item`]:Nt}},{[`${pe}-inline-collapsed`]:{width:Bt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:ct,textAlign:"center"}}},[`> ${pe}-item, - > ${pe}-item-group > ${pe}-item-group-list > ${pe}-item, - > ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title, - > ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ct/2}px - ${ot}px)`,textOverflow:"clip",[` - ${pe}-submenu-arrow, - ${pe}-submenu-expand-icon - `]:{opacity:0},[`${pe}-item-icon, ${Se}`]:{margin:0,fontSize:Ot,lineHeight:`${fe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:$e}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:zt})}}]};const Ne=Ee=>{const{componentCls:pe,motionDurationSlow:Se,motionDurationMid:fe,motionEaseInOut:$e,motionEaseOut:Je,iconCls:lt,iconSize:ut,iconMarginInlineEnd:ht}=Ee;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Se} ${$e}`].join(","),[`${pe}-item-icon, ${lt}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${fe} ${Je}`,`margin ${Se} ${$e}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:ht,opacity:1,transition:[`opacity ${Se} ${$e}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${pe}-item-only-child`]:{[`> ${lt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gt=Ee=>{const{componentCls:pe,motionDurationSlow:Se,motionEaseInOut:fe,borderRadius:$e,menuArrowSize:Je,menuArrowOffset:lt}=Ee;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ee.margin,width:Je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${fe}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Je*.6,height:Je*.15,backgroundColor:"currentcolor",borderRadius:$e,transition:[`background ${Se} ${fe}`,`transform ${Se} ${fe}`,`top ${Se} ${fe}`,`color ${Se} ${fe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${lt})`},"&::after":{transform:`rotate(-45deg) translateY(${lt})`}}}}},Re=Ee=>{const{antCls:pe,componentCls:Se,fontSize:fe,motionDurationSlow:$e,motionDurationMid:Je,motionEaseInOut:lt,paddingXS:ut,padding:ht,colorSplit:ft,lineWidth:ot,zIndexPopup:ct,borderRadiusLG:pt,subMenuItemBorderRadius:zt,menuArrowSize:$t,menuArrowOffset:Bt,lineType:Ot,menuPanelMaskInset:Nt,groupTitleLineHeight:It,groupTitleFontSize:Rt}=Ee;return[{"":{[`${Se}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(Ee)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:fe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:Ee.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${ut}px ${ht}px`,fontSize:Rt,lineHeight:It,transition:`all ${$e}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${$e} ${lt}`,`background ${$e} ${lt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${$e} ${lt}`,`background ${$e} ${lt}`,`padding ${Je} ${lt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${$e} ${lt}`,`padding ${$e} ${lt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${$e}`},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ft,borderStyle:Ot,borderWidth:0,borderTopWidth:ot,marginBlock:ot,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ne(Ee)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${fe*2}px ${ht}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ct,borderRadius:pt,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Nt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Nt},"\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:Ee.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ee.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ee.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ee.paddingXS},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:pt},Ne(Ee)),gt(Ee)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:zt},[`${Se}-submenu-title::after`]:{transition:`transform ${$e} ${lt}`}})}}),gt(Ee)),{[`&-inline-collapsed ${Se}-submenu-arrow, - &-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bt})`},"&::after":{transform:`rotate(45deg) translateX(-${Bt})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(-${$t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bt})`},"&::before":{transform:`rotate(45deg) translateX(${Bt})`}}})},{[`${pe}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]};var rt=(Ee,pe)=>(0,et.Z)("Menu",fe=>{if(pe===!1)return[];const{colorBgElevated:$e,colorPrimary:Je,colorTextLightSolid:lt,controlHeightLG:ut,fontSize:ht,darkItemColor:ft,darkDangerItemColor:ot,darkItemBg:ct,darkSubMenuItemBg:pt,darkItemSelectedColor:zt,darkItemSelectedBg:$t,darkDangerItemSelectedBg:Bt,darkItemHoverBg:Ot,darkGroupTitleColor:Nt,darkItemHoverColor:It,darkItemDisabledColor:Rt,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:Ht}=fe,nn=ht/7*5,_t=(0,Le.TS)(fe,{menuArrowSize:nn,menuHorizontalHeight:ut*1.15,menuArrowOffset:`${nn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:$e}),Xt=(0,Le.TS)(_t,{itemColor:ft,itemHoverColor:It,groupTitleColor:Nt,itemSelectedColor:zt,itemBg:ct,popupBg:ct,subMenuItemBg:pt,itemActiveBg:"transparent",itemSelectedBg:$t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ot,itemDisabledColor:Rt,dangerItemColor:ot,dangerItemHoverColor:Wt,dangerItemSelectedColor:Zt,dangerItemActiveBg:Ht,dangerItemSelectedBg:Bt,menuSubMenuBg:pt,horizontalItemSelectedColor:lt,horizontalItemSelectedBg:Je});return[Re(_t),We(_t),we(_t),Lt(_t,"light"),Lt(Xt,"dark"),ke(_t),(0,_e.Z)(_t),(0,Ze.oN)(_t,"slide-up"),(0,Ze.oN)(_t,"slide-down"),(0,Xe._y)(_t,"zoom-big")]},fe=>{const{colorPrimary:$e,colorError:Je,colorTextDisabled:lt,colorErrorBg:ut,colorText:ht,colorTextDescription:ft,colorBgContainer:ot,colorFillAlter:ct,colorFillContent:pt,lineWidth:zt,lineWidthBold:$t,controlItemBgActive:Bt,colorBgTextHover:Ot,controlHeightLG:Nt,lineHeight:It,colorBgElevated:Rt,marginXXS:Wt,padding:Zt,fontSize:Ht,controlHeightSM:nn,fontSizeLG:_t,colorTextLightSolid:Xt,colorErrorHover:on}=fe,sn=new me.C(Xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:fe.zIndexPopupBase+50,radiusItem:fe.borderRadiusLG,itemBorderRadius:fe.borderRadiusLG,radiusSubMenuItem:fe.borderRadiusSM,subMenuItemBorderRadius:fe.borderRadiusSM,colorItemText:ht,itemColor:ht,colorItemTextHover:ht,itemHoverColor:ht,colorItemTextHoverHorizontal:$e,horizontalItemHoverColor:$e,colorGroupTitle:ft,groupTitleColor:ft,colorItemTextSelected:$e,itemSelectedColor:$e,colorItemTextSelectedHorizontal:$e,horizontalItemSelectedColor:$e,colorItemBg:ot,itemBg:ot,colorItemBgHover:Ot,itemHoverBg:Ot,colorItemBgActive:pt,itemActiveBg:Bt,colorSubItemBg:ct,subMenuItemBg:ct,colorItemBgSelected:Bt,itemSelectedBg:Bt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:$t,activeBarHeight:$t,colorActiveBarBorderSize:zt,activeBarBorderWidth:zt,colorItemTextDisabled:lt,itemDisabledColor:lt,colorDangerItemText:Je,dangerItemColor:Je,colorDangerItemTextHover:Je,dangerItemHoverColor:Je,colorDangerItemTextSelected:Je,dangerItemSelectedColor:Je,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:fe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nt,groupTitleLineHeight:It,collapsedWidth:Nt*2,popupBg:Rt,itemMarginBlock:Wt,itemPaddingInline:Zt,horizontalLineHeight:`${Nt*1.15}px`,iconSize:Ht,iconMarginInlineEnd:nn-Ht,collapsedIconSize:_t,groupTitleFontSize:Ht,darkItemDisabledColor:new me.C(Xt).setAlpha(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:Je,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xt,darkItemSelectedBg:$e,darkDangerItemSelectedBg:Je,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Xt,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:Je}},{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"]]})(Ee),de=function(Ee,pe){var Se={};for(var fe in Ee)Object.prototype.hasOwnProperty.call(Ee,fe)&&pe.indexOf(fe)<0&&(Se[fe]=Ee[fe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,fe=Object.getOwnPropertySymbols(Ee);$e{var Se,fe;const $e=he.useContext(oe.Z),Je=$e||{},{getPrefixCls:lt,getPopupContainer:ut,direction:ht,menu:ft}=he.useContext(Oe.E_),ot=lt(),{prefixCls:ct,className:pt,style:zt,theme:$t="light",expandIcon:Bt,_internalDisableMenuItemTitleTooltip:Ot,inlineCollapsed:Nt,siderCollapsed:It,items:Rt,children:Wt,rootClassName:Zt,mode:Ht,selectable:nn,onClick:_t,overflowedIndicatorPopupClassName:Xt}=Ee,on=de(Ee,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),sn=(0,Ue.Z)(on,["collapsedWidth"]),zn=le(Rt)||Wt;(Se=Je.validator)===null||Se===void 0||Se.call(Je,{mode:Ht});const vn=(0,ee.useEvent)(function(){var mn;_t==null||_t.apply(void 0,arguments),(mn=Je.onClick)===null||mn===void 0||mn.call(Je)}),bn=Je.mode||Ht,Mn=nn!=null?nn:Je.selectable,hn=he.useMemo(()=>It!==void 0?It:Nt,[Nt,It]),$n={horizontal:{motionName:`${ot}-slide-up`},inline:(0,te.Z)(ot),other:{motionName:`${ot}-zoom-big`}},gn=lt("menu",ct||Je.prefixCls),[_n,Zn]=rt(gn,!$e),Dn=ue()(`${gn}-${$t}`,ft==null?void 0:ft.className,pt);let fn;if(typeof Bt=="function")fn=Bt;else if(Bt===null||Bt===!1)fn=null;else if(Je.expandIcon===null||Je.expandIcon===!1)fn=null;else{const mn=Bt!=null?Bt:Je.expandIcon;fn=(0,ye.Tm)(mn,{className:ue()(`${gn}-submenu-expand-icon`,(0,ye.l$)(mn)?(fe=mn.props)===null||fe===void 0?void 0:fe.className:"")})}const Vn=he.useMemo(()=>({prefixCls:gn,inlineCollapsed:hn||!1,direction:ht,firstLevel:!0,theme:$t,mode:bn,disableMenuItemTitleTooltip:Ot}),[gn,hn,ht,Ot,$t]);return _n(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:Vn},he.createElement(ge.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(gn,`${gn}-${$t}`,Xt),mode:bn,selectable:Mn,onClick:vn},sn,{inlineCollapsed:hn,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),zt),className:Dn,prefixCls:gn,direction:ht,defaultMotions:$n,expandIcon:fn,ref:pe,rootClassName:ue()(Zt,Zn)}),zn))))});const wt=(0,he.forwardRef)((Ee,pe)=>{const Se=(0,he.useRef)(null),fe=he.useContext(je.D);return(0,he.useImperativeHandle)(pe,()=>({menu:Se.current,focus:$e=>{var Je;(Je=Se.current)===null||Je===void 0||Je.focus($e)}})),he.createElement(Pt,Object.assign({ref:Se},Ee,fe))});wt.Item=x,wt.SubMenu=E,wt.Divider=xe,wt.ItemGroup=ge.BW;var vt=wt}}]); + &${b}-slide-up-leave${b}-slide-up-leave-active${ye}-placement-topRight`]:{animationName:fe.ly}})},(0,ue.ZP)(Ce,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${ye} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ye}, ${ye}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary},(0,ge.Qy)(Ce)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${le}px`,color:Ce.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ce.marginXS,fontSize:Ce.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${le}px`,color:Ce.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ce.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ce.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ce.controlItemBgHover}},(0,ge.Qy)(Ce)),{"&-selected":{color:Ce.colorPrimary,backgroundColor:Ce.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ce.controlItemBgActiveHover}},"&-disabled":{color:ae,cursor:"not-allowed","&:hover":{color:ae,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ce.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ce.colorSplit},[`${ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,[`${ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ce.colorTextDescription,fontSize:re,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ce.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:le+Ce.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${ye}-menu-submenu-title`]:{[`&, ${ye}-menu-submenu-arrow-icon`]:{color:ae,backgroundColor:me,cursor:"not-allowed"}},[`${ne}-submenu-selected ${ye}-menu-submenu-title`]:{color:Ce.colorPrimary}})}},[(0,fe.oN)(Ce,"slide-up"),(0,fe.oN)(Ce,"slide-down"),(0,je.Fm)(Ce,"move-up"),(0,je.Fm)(Ce,"move-down"),(0,He._y)(Ce,"zoom-big")]]};var Ue=(0,Oe.Z)("Dropdown",(Ce,ye)=>{let{rootPrefixCls:ne}=ye;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ce,oe=(x-b*E)/2,{dropdownArrowOffset:ae}=(0,ue.fS)({contentRadius:te}),re=(0,se.TS)(Ce,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ae,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ge(re),xe(re)]},Ce=>({zIndexPopup:Ce.zIndexPopupBase+50}))},45818:function(Be,Qe,ie){"use strict";ie.d(Qe,{D:function(){return z},Z:function(){return oe}});var ge=ie(16378),fe=ie(59301),je={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"},He=je,ue=ie(7657),Oe=function(re,le){return fe.createElement(ue.Z,(0,ge.Z)({},re,{ref:le,icon:He}))},se=fe.forwardRef(Oe),Te=se,xe=ie(33853),Ge=ie(38819),Ue=ie(92310),Ce=ie.n(Ue),ye=ie(2738),a=ae=>!isNaN(parseFloat(ae))&&isFinite(ae),y=ie(36355),x=ie(84966),b=function(ae,re){var le={};for(var me in ae)Object.prototype.hasOwnProperty.call(ae,me)&&re.indexOf(me)<0&&(le[me]=ae[me]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,me=Object.getOwnPropertySymbols(ae);Fe{let ae=0;return function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ae+=1,`${re}${ae}`}})();var oe=fe.forwardRef((ae,re)=>{const{prefixCls:le,className:me,trigger:Fe,children:_e,defaultCollapsed:Ze=!1,theme:Xe="dark",style:et={},collapsible:Le=!1,reverseArrow:Ie=!1,width:We=200,collapsedWidth:Me=80,zeroWidthTriggerStyle:ke,breakpoint:at,onCollapse:St,onBreakpoint:Lt}=ae,xt=b(ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:be}=(0,fe.useContext)(x.Gs),[we,Ne]=(0,fe.useState)("collapsed"in ae?ae.collapsed:Ze),[gt,Re]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ae&&Ne(ae.collapsed)},[ae.collapsed]);const rt=(Ee,ve)=>{"collapsed"in ae||Ne(Ee),St==null||St(Ee,ve)},de=(0,fe.useRef)();de.current=Ee=>{Re(Ee.matches),Lt==null||Lt(Ee.matches),we!==Ee.matches&&rt(Ee.matches,"responsive")},(0,fe.useEffect)(()=>{function Ee(Se){return de.current(Se)}let ve;if(typeof window!="undefined"){const{matchMedia:Se}=window;if(Se&&at&&at in E){ve=Se(`(max-width: ${E[at]})`);try{ve.addEventListener("change",Ee)}catch(he){ve.addListener(Ee)}Ee(ve)}}return()=>{try{ve==null||ve.removeEventListener("change",Ee)}catch(Se){ve==null||ve.removeListener(Ee)}}},[at]),(0,fe.useEffect)(()=>{const Ee=ee("ant-sider-");return be.addSider(Ee),()=>be.removeSider(Ee)},[]);const Ke=()=>{rt(!we,"clickTrigger")},{getPrefixCls:Pt}=(0,fe.useContext)(y.E_),wt=()=>{const Ee=Pt("layout-sider",le),ve=(0,ye.Z)(xt,["collapsed"]),Se=we?Me:We,he=a(Se)?`${Se}px`:String(Se),$e=parseFloat(String(Me||0))===0?fe.createElement("span",{onClick:Ke,className:Ce()(`${Ee}-zero-width-trigger`,`${Ee}-zero-width-trigger-${Ie?"right":"left"}`),style:ke},Fe||fe.createElement(Te,null)):null,ut={expanded:Ie?fe.createElement(Ge.Z,null):fe.createElement(xe.Z,null),collapsed:Ie?fe.createElement(xe.Z,null):fe.createElement(Ge.Z,null)}[we?"collapsed":"expanded"],ht=Fe!==null?$e||fe.createElement("div",{className:`${Ee}-trigger`,onClick:Ke,style:{width:he}},Fe||ut):null,ft=Object.assign(Object.assign({},et),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),ot=Ce()(Ee,`${Ee}-${Xe}`,{[`${Ee}-collapsed`]:!!we,[`${Ee}-has-trigger`]:Le&&Fe!==null&&!$e,[`${Ee}-below`]:!!gt,[`${Ee}-zero-width`]:parseFloat(he)===0},me);return fe.createElement("aside",Object.assign({className:ot},ve,{style:ft,ref:re}),fe.createElement("div",{className:`${Ee}-children`},_e),Le||gt&&$e?ht:null)},vt=fe.useMemo(()=>({siderCollapsed:we}),[we]);return fe.createElement(z.Provider,{value:vt},wt())})},84966:function(Be,Qe,ie){"use strict";ie.d(Qe,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return ye},ZP:function(){return ee}});var ge=ie(65093),fe=ie(92310),je=ie.n(fe),He=ie(2738),ue=ie(59301),Oe=ie(36355),se=ie(83116),xe=te=>{const{componentCls:oe,bodyBg:ae,lightSiderBg:re,lightTriggerBg:le,lightTriggerColor:me}=te;return{[`${oe}-sider-light`]:{background:re,[`${oe}-sider-trigger`]:{color:me,background:le},[`${oe}-sider-zero-width-trigger`]:{color:me,background:le,border:`1px solid ${ae}`,borderInlineStart:0}}}};const Ge=te=>{const{antCls:oe,componentCls:ae,colorText:re,triggerColor:le,footerBg:me,triggerBg:Fe,headerHeight:_e,headerPadding:Ze,headerColor:Xe,footerPadding:et,triggerHeight:Le,zeroTriggerHeight:Ie,zeroTriggerWidth:We,motionDurationMid:Me,motionDurationSlow:ke,fontSize:at,borderRadius:St,bodyBg:Lt,headerBg:xt,siderBg:be}=te;return{[ae]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Lt,"&, *":{boxSizing:"border-box"},[`&${ae}-has-sider`]:{flexDirection:"row",[`> ${ae}, > ${ae}-content`]:{width:0}},[`${ae}-header, &${ae}-footer`]:{flex:"0 0 auto"},[`${ae}-sider`]:{position:"relative",minWidth:0,background:be,transition:`all ${Me}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:le,lineHeight:`${Le}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Me}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:_e,insetInlineEnd:-We,zIndex:1,width:We,height:Ie,color:le,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:be,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-We,borderStartStartRadius:St,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:St}}}}},xe(te)),{"&-rtl":{direction:"rtl"}}),[`${ae}-header`]:{height:_e,padding:Ze,color:Xe,lineHeight:`${_e}px`,background:xt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ae}-footer`]:{padding:et,color:re,fontSize:at,background:me},[`${ae}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,se.Z)("Layout",te=>[Ge(te)],te=>{const{colorBgLayout:oe,controlHeight:ae,controlHeightLG:re,colorText:le,controlHeightSM:me,marginXXS:Fe,colorTextLightSolid:_e,colorBgContainer:Ze}=te,Xe=re*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ae*2,headerPadding:`0 ${Xe}px`,headerColor:le,footerPadding:`${me}px ${Xe}px`,footerBg:oe,siderBg:"#001529",triggerHeight:re+Fe*2,triggerBg:"#002140",triggerColor:_e,zeroTriggerWidth:re,zeroTriggerHeight:re,lightSiderBg:Ze,lightTriggerBg:Ze,lightTriggerColor:le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ce=function(te,oe){var ae={};for(var re in te)Object.prototype.hasOwnProperty.call(te,re)&&oe.indexOf(re)<0&&(ae[re]=te[re]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,re=Object.getOwnPropertySymbols(te);lenull,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ae,displayName:re}=te;return le=>ue.forwardRef((Fe,_e)=>ue.createElement(le,Object.assign({ref:_e,suffixCls:oe,tagName:ae},Fe)))}const a=ue.forwardRef((te,oe)=>{const{prefixCls:ae,suffixCls:re,className:le,tagName:me}=te,Fe=Ce(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:_e}=ue.useContext(Oe.E_),Ze=_e("layout",ae),[Xe,et]=Ue(Ze),Le=re?`${Ze}-${re}`:Ze;return Xe(ue.createElement(me,Object.assign({className:je()(ae||Le,le,et),ref:oe},Fe)))}),y=ue.forwardRef((te,oe)=>{const{direction:ae}=ue.useContext(Oe.E_),[re,le]=ue.useState([]),{prefixCls:me,className:Fe,rootClassName:_e,children:Ze,hasSider:Xe,tagName:et,style:Le}=te,Ie=Ce(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),We=(0,He.Z)(Ie,["suffixCls"]),{getPrefixCls:Me,layout:ke}=ue.useContext(Oe.E_),at=Me("layout",me),[St,Lt]=Ue(at),xt=je()(at,{[`${at}-has-sider`]:typeof Xe=="boolean"?Xe:re.length>0,[`${at}-rtl`]:ae==="rtl"},ke==null?void 0:ke.className,Fe,_e,Lt),be=ue.useMemo(()=>({siderHook:{addSider:we=>{le(Ne=>[].concat((0,ge.Z)(Ne),[we]))},removeSider:we=>{le(Ne=>Ne.filter(gt=>gt!==we))}}}),[]);return St(ue.createElement(ye.Provider,{value:be},ue.createElement(et,Object.assign({ref:oe,className:xt,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Le)},We),Ze)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Be,Qe,ie){"use strict";ie.d(Qe,{J:function(){return Oe}});var ge=ie(59301),fe=ie(33234),je=ie(70425),He=function(se,Te){var xe={};for(var Ge in se)Object.prototype.hasOwnProperty.call(se,Ge)&&Te.indexOf(Ge)<0&&(xe[Ge]=se[Ge]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ge=Object.getOwnPropertySymbols(se);Ue{const{children:xe}=se,Ge=He(se,["children"]),Ue=ge.useContext(ue),Ce=ge.useMemo(()=>Object.assign(Object.assign({},Ue),Ge),[Ue,Ge.prefixCls,Ge.mode,Ge.selectable]);return ge.createElement(ue.Provider,{value:Ce},ge.createElement(fe.BR,null,(0,je.supportNodeRef)(xe)?ge.cloneElement(xe,{ref:Te}):xe))});Qe.Z=ue},20834:function(Be,Qe,ie){"use strict";ie.d(Qe,{default:function(){return vt}});var ge=ie(15285),fe=ie(59301),je=ie(45818),He=ie(92310),ue=ie.n(He),Oe=ie(36355),se=function(Ee,ve){var Se={};for(var he in Ee)Object.prototype.hasOwnProperty.call(Ee,he)&&ve.indexOf(he)<0&&(Se[he]=Ee[he]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,he=Object.getOwnPropertySymbols(Ee);$e{const{prefixCls:ve,className:Se,dashed:he}=Ee,$e=se(Ee,["prefixCls","className","dashed"]),{getPrefixCls:Je}=fe.useContext(Oe.E_),lt=Je("menu",ve),ut=ue()({[`${lt}-item-divider-dashed`]:!!he},Se);return fe.createElement(ge.iz,Object.assign({className:ut},$e))},Ge=ie(11592),Ue=ie(2738),Ce=ie(6848),ye=ie(92343),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ee=>{var ve;const{className:Se,children:he,icon:$e,title:Je,danger:lt}=Ee,{prefixCls:ut,firstLevel:ht,direction:ft,disableMenuItemTitleTooltip:ot,inlineCollapsed:ct}=fe.useContext(a),pt=It=>{const Rt=fe.createElement("span",{className:`${ut}-title-content`},he);return(!$e||(0,ye.l$)(he)&&he.type==="span")&&he&&It&&ht&&typeof he=="string"?fe.createElement("div",{className:`${ut}-inline-collapsed-noicon`},he.charAt(0)):Rt},{siderCollapsed:zt}=fe.useContext(je.D);let $t=Je;typeof Je=="undefined"?$t=ht?he:"":Je===!1&&($t="");const Bt={title:$t};!zt&&!ct&&(Bt.title=null,Bt.open=!1);const Ot=(0,Ge.Z)(he).length;let Nt=fe.createElement(ge.ck,Object.assign({},(0,Ue.Z)(Ee,["title","icon","danger"]),{className:ue()({[`${ut}-item-danger`]:lt,[`${ut}-item-only-child`]:($e?Ot+1:Ot)===1},Se),title:typeof Je=="string"?Je:void 0}),(0,ye.Tm)($e,{className:ue()((0,ye.l$)($e)?(ve=$e.props)===null||ve===void 0?void 0:ve.className:"",`${ut}-item-icon`)}),pt(ct));return ot||(Nt=fe.createElement(Ce.Z,Object.assign({},Bt,{placement:ft==="rtl"?"left":"right",overlayClassName:`${ut}-inline-collapsed-tooltip`}),Nt)),Nt},E=Ee=>{var ve;const{popupClassName:Se,icon:he,title:$e,theme:Je}=Ee,lt=fe.useContext(a),{prefixCls:ut,inlineCollapsed:ht,theme:ft}=lt,ot=(0,ge.Xl)();let ct;if(!he)ct=ht&&!ot.length&&$e&&typeof $e=="string"?fe.createElement("div",{className:`${ut}-inline-collapsed-noicon`},$e.charAt(0)):fe.createElement("span",{className:`${ut}-title-content`},$e);else{const zt=(0,ye.l$)($e)&&$e.type==="span";ct=fe.createElement(fe.Fragment,null,(0,ye.Tm)(he,{className:ue()((0,ye.l$)(he)?(ve=he.props)===null||ve===void 0?void 0:ve.className:"",`${ut}-item-icon`)}),zt?$e:fe.createElement("span",{className:`${ut}-title-content`},$e))}const pt=fe.useMemo(()=>Object.assign(Object.assign({},lt),{firstLevel:!1}),[lt]);return fe.createElement(a.Provider,{value:pt},fe.createElement(ge.Wd,Object.assign({},(0,Ue.Z)(Ee,["icon"]),{title:ct,popupClassName:ue()(ut,Se,`${ut}-${Je||ft}`)})))},z=ie(18785),ee=ie(70425),te=ie(62892),oe=ie(40875),ae=function(Ee,ve){var Se={};for(var he in Ee)Object.prototype.hasOwnProperty.call(Ee,he)&&ve.indexOf(he)<0&&(Se[he]=Ee[he]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,he=Object.getOwnPropertySymbols(Ee);$e{if(ve&&typeof ve=="object"){const he=ve,{label:$e,children:Je,key:lt,type:ut}=he,ht=ae(he,["label","children","key","type"]),ft=lt!=null?lt:`tmp-${Se}`;return Je||ut==="group"?ut==="group"?fe.createElement(ge.BW,Object.assign({key:ft},ht,{title:$e}),re(Je)):fe.createElement(E,Object.assign({key:ft},ht,{title:$e}),re(Je)):ut==="divider"?fe.createElement(xe,Object.assign({key:ft},ht)):fe.createElement(x,Object.assign({key:ft},ht),$e)}return null}).filter(ve=>ve)}function le(Ee){return fe.useMemo(()=>Ee&&re(Ee),[Ee])}var me=ie(64993),Fe=ie(17313),_e=ie(8378),Ze=ie(13826),Xe=ie(29878),et=ie(83116),Le=ie(37613),We=Ee=>{const{componentCls:ve,motionDurationSlow:Se,horizontalLineHeight:he,colorSplit:$e,lineWidth:Je,lineType:lt,itemPaddingInline:ut}=Ee;return{[`${ve}-horizontal`]:{lineHeight:he,border:0,borderBottom:`${Je}px ${lt} ${$e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${ve}-item:hover, + > ${ve}-item-active, + > ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},ke=Ee=>{let{componentCls:ve,menuArrowOffset:Se}=Ee;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical, + ${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Se})`},"&::after":{transform:`rotate(45deg) translateY(${Se})`}}}}};const at=Ee=>Object.assign({},(0,Fe.oN)(Ee));var Lt=(Ee,ve)=>{const{componentCls:Se,itemColor:he,itemSelectedColor:$e,groupTitleColor:Je,itemBg:lt,subMenuItemBg:ut,itemSelectedBg:ht,activeBarHeight:ft,activeBarWidth:ot,activeBarBorderWidth:ct,motionDurationSlow:pt,motionEaseInOut:zt,motionEaseOut:$t,itemPaddingInline:Bt,motionDurationMid:Ot,itemHoverColor:Nt,lineType:It,colorSplit:Rt,itemDisabledColor:Wt,dangerItemColor:Zt,dangerItemHoverColor:Ht,dangerItemSelectedColor:nn,dangerItemActiveBg:_t,dangerItemSelectedBg:Xt,itemHoverBg:on,itemActiveBg:sn,menuSubMenuBg:zn,horizontalItemSelectedColor:vn,horizontalItemSelectedBg:bn,horizontalItemBorderRadius:Mn,horizontalItemHoverBg:hn,popupBg:$n}=Ee;return{[`${Se}-${ve}, ${Se}-${ve} > ${Se}`]:{color:he,background:lt,[`&${Se}-root:focus-visible`]:Object.assign({},at(Ee)),[`${Se}-item-group-title`]:{color:Je},[`${Se}-submenu-selected`]:{[`> ${Se}-submenu-title`]:{color:$e}},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${Wt} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:Nt}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:sn}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:on},"&:active":{backgroundColor:sn}}},[`${Se}-item-danger`]:{color:Zt,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:Ht}},[`&${Se}-item:active`]:{background:_t}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:$e,[`&${Se}-item-danger`]:{color:nn},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:ht,[`&${Se}-item-danger`]:{backgroundColor:Xt}},[`${Se}-item, ${Se}-submenu-title`]:{[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},at(Ee))},[`&${Se}-submenu > ${Se}`]:{backgroundColor:zn},[`&${Se}-popup > ${Se}`]:{backgroundColor:$n},[`&${Se}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:ct,marginTop:-ct,marginBottom:0,borderRadius:Mn,"&::after":{position:"absolute",insetInline:Bt,bottom:0,borderBottom:`${ft}px solid transparent`,transition:`border-color ${pt} ${zt}`,content:'""'},"&:hover, &-active, &-open":{background:hn,"&::after":{borderBottomWidth:ft,borderBottomColor:vn}},"&-selected":{color:vn,backgroundColor:bn,"&:hover":{backgroundColor:bn},"&::after":{borderBottomWidth:ft,borderBottomColor:vn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${ct}px ${It} ${Rt}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:ut},[`${Se}-item, ${Se}-submenu-title`]:ct&&ot?{width:`calc(100% + ${ct}px)`}:{},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ot}px solid ${$e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ot} ${$t}`,`opacity ${Ot} ${$t}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:nn}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ot} ${zt}`,`opacity ${Ot} ${zt}`].join(",")}}}}}};const xt=Ee=>{const{componentCls:ve,itemHeight:Se,itemMarginInline:he,padding:$e,menuArrowSize:Je,marginXS:lt,itemMarginBlock:ut}=Ee,ht=$e+Je+lt;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:Se,lineHeight:`${Se}px`,paddingInline:$e,overflow:"hidden",textOverflow:"ellipsis",marginInline:he,marginBlock:ut,width:`calc(100% - ${he*2}px)`},[`> ${ve}-item, + > ${ve}-submenu > ${ve}-submenu-title`]:{height:Se,lineHeight:`${Se}px`},[`${ve}-item-group-list ${ve}-submenu-title, + ${ve}-submenu-title`]:{paddingInlineEnd:ht}}};var we=Ee=>{const{componentCls:ve,iconCls:Se,itemHeight:he,colorTextLightSolid:$e,dropdownWidth:Je,controlHeightLG:lt,motionDurationMid:ut,motionEaseOut:ht,paddingXL:ft,itemMarginInline:ot,fontSizeLG:ct,motionDurationSlow:pt,paddingXS:zt,boxShadowSecondary:$t,collapsedWidth:Bt,collapsedIconSize:Ot}=Ee,Nt={height:he,lineHeight:`${he}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},xt(Ee))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},xt(Ee)),{boxShadow:$t})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Je,maxHeight:`calc(100vh - ${lt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${pt}`,`background ${pt}`,`padding ${ut} ${ht}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:Nt,[`& ${ve}-item-group-title`]:{paddingInlineStart:ft}},[`${ve}-item`]:Nt}},{[`${ve}-inline-collapsed`]:{width:Bt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:ct,textAlign:"center"}}},[`> ${ve}-item, + > ${ve}-item-group > ${ve}-item-group-list > ${ve}-item, + > ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title, + > ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ct/2}px - ${ot}px)`,textOverflow:"clip",[` + ${ve}-submenu-arrow, + ${ve}-submenu-expand-icon + `]:{opacity:0},[`${ve}-item-icon, ${Se}`]:{margin:0,fontSize:Ot,lineHeight:`${he}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:$e}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:zt})}}]};const Ne=Ee=>{const{componentCls:ve,motionDurationSlow:Se,motionDurationMid:he,motionEaseInOut:$e,motionEaseOut:Je,iconCls:lt,iconSize:ut,iconMarginInlineEnd:ht}=Ee;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Se} ${$e}`].join(","),[`${ve}-item-icon, ${lt}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${he} ${Je}`,`margin ${Se} ${$e}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:ht,opacity:1,transition:[`opacity ${Se} ${$e}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${ve}-item-only-child`]:{[`> ${lt}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},gt=Ee=>{const{componentCls:ve,motionDurationSlow:Se,motionEaseInOut:he,borderRadius:$e,menuArrowSize:Je,menuArrowOffset:lt}=Ee;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ee.margin,width:Je,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${he}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Je*.6,height:Je*.15,backgroundColor:"currentcolor",borderRadius:$e,transition:[`background ${Se} ${he}`,`transform ${Se} ${he}`,`top ${Se} ${he}`,`color ${Se} ${he}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${lt})`},"&::after":{transform:`rotate(-45deg) translateY(${lt})`}}}}},Re=Ee=>{const{antCls:ve,componentCls:Se,fontSize:he,motionDurationSlow:$e,motionDurationMid:Je,motionEaseInOut:lt,paddingXS:ut,padding:ht,colorSplit:ft,lineWidth:ot,zIndexPopup:ct,borderRadiusLG:pt,subMenuItemBorderRadius:zt,menuArrowSize:$t,menuArrowOffset:Bt,lineType:Ot,menuPanelMaskInset:Nt,groupTitleLineHeight:It,groupTitleFontSize:Rt}=Ee;return[{"":{[`${Se}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(Ee)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:he,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${$e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:Ee.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${ut}px ${ht}px`,fontSize:Rt,lineHeight:It,transition:`all ${$e}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${$e} ${lt}`,`background ${$e} ${lt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${$e} ${lt}`,`background ${$e} ${lt}`,`padding ${Je} ${lt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${$e} ${lt}`,`padding ${$e} ${lt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${$e}`},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ft,borderStyle:Ot,borderWidth:0,borderTopWidth:ot,marginBlock:ot,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ne(Ee)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${he*2}px ${ht}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ct,borderRadius:pt,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Nt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Nt},"\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:Ee.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ee.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ee.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ee.paddingXS},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:pt},Ne(Ee)),gt(Ee)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:zt},[`${Se}-submenu-title::after`]:{transition:`transform ${$e} ${lt}`}})}}),gt(Ee)),{[`&-inline-collapsed ${Se}-submenu-arrow, + &-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bt})`},"&::after":{transform:`rotate(45deg) translateX(-${Bt})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(-${$t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bt})`},"&::before":{transform:`rotate(45deg) translateX(${Bt})`}}})},{[`${ve}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]};var rt=(Ee,ve)=>(0,et.Z)("Menu",he=>{if(ve===!1)return[];const{colorBgElevated:$e,colorPrimary:Je,colorTextLightSolid:lt,controlHeightLG:ut,fontSize:ht,darkItemColor:ft,darkDangerItemColor:ot,darkItemBg:ct,darkSubMenuItemBg:pt,darkItemSelectedColor:zt,darkItemSelectedBg:$t,darkDangerItemSelectedBg:Bt,darkItemHoverBg:Ot,darkGroupTitleColor:Nt,darkItemHoverColor:It,darkItemDisabledColor:Rt,darkDangerItemHoverColor:Wt,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:Ht}=he,nn=ht/7*5,_t=(0,Le.TS)(he,{menuArrowSize:nn,menuHorizontalHeight:ut*1.15,menuArrowOffset:`${nn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:$e}),Xt=(0,Le.TS)(_t,{itemColor:ft,itemHoverColor:It,groupTitleColor:Nt,itemSelectedColor:zt,itemBg:ct,popupBg:ct,subMenuItemBg:pt,itemActiveBg:"transparent",itemSelectedBg:$t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ot,itemDisabledColor:Rt,dangerItemColor:ot,dangerItemHoverColor:Wt,dangerItemSelectedColor:Zt,dangerItemActiveBg:Ht,dangerItemSelectedBg:Bt,menuSubMenuBg:pt,horizontalItemSelectedColor:lt,horizontalItemSelectedBg:Je});return[Re(_t),We(_t),we(_t),Lt(_t,"light"),Lt(Xt,"dark"),ke(_t),(0,_e.Z)(_t),(0,Ze.oN)(_t,"slide-up"),(0,Ze.oN)(_t,"slide-down"),(0,Xe._y)(_t,"zoom-big")]},he=>{const{colorPrimary:$e,colorError:Je,colorTextDisabled:lt,colorErrorBg:ut,colorText:ht,colorTextDescription:ft,colorBgContainer:ot,colorFillAlter:ct,colorFillContent:pt,lineWidth:zt,lineWidthBold:$t,controlItemBgActive:Bt,colorBgTextHover:Ot,controlHeightLG:Nt,lineHeight:It,colorBgElevated:Rt,marginXXS:Wt,padding:Zt,fontSize:Ht,controlHeightSM:nn,fontSizeLG:_t,colorTextLightSolid:Xt,colorErrorHover:on}=he,sn=new me.C(Xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:he.zIndexPopupBase+50,radiusItem:he.borderRadiusLG,itemBorderRadius:he.borderRadiusLG,radiusSubMenuItem:he.borderRadiusSM,subMenuItemBorderRadius:he.borderRadiusSM,colorItemText:ht,itemColor:ht,colorItemTextHover:ht,itemHoverColor:ht,colorItemTextHoverHorizontal:$e,horizontalItemHoverColor:$e,colorGroupTitle:ft,groupTitleColor:ft,colorItemTextSelected:$e,itemSelectedColor:$e,colorItemTextSelectedHorizontal:$e,horizontalItemSelectedColor:$e,colorItemBg:ot,itemBg:ot,colorItemBgHover:Ot,itemHoverBg:Ot,colorItemBgActive:pt,itemActiveBg:Bt,colorSubItemBg:ct,subMenuItemBg:ct,colorItemBgSelected:Bt,itemSelectedBg:Bt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:$t,activeBarHeight:$t,colorActiveBarBorderSize:zt,activeBarBorderWidth:zt,colorItemTextDisabled:lt,itemDisabledColor:lt,colorDangerItemText:Je,dangerItemColor:Je,colorDangerItemTextHover:Je,dangerItemHoverColor:Je,colorDangerItemTextSelected:Je,dangerItemSelectedColor:Je,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:he.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Nt,groupTitleLineHeight:It,collapsedWidth:Nt*2,popupBg:Rt,itemMarginBlock:Wt,itemPaddingInline:Zt,horizontalLineHeight:`${Nt*1.15}px`,iconSize:Ht,iconMarginInlineEnd:nn-Ht,collapsedIconSize:_t,groupTitleFontSize:Ht,darkItemDisabledColor:new me.C(Xt).setAlpha(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:Je,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xt,darkItemSelectedBg:$e,darkDangerItemSelectedBg:Je,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Xt,darkDangerItemHoverColor:on,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:Je}},{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"]]})(Ee),de=function(Ee,ve){var Se={};for(var he in Ee)Object.prototype.hasOwnProperty.call(Ee,he)&&ve.indexOf(he)<0&&(Se[he]=Ee[he]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,he=Object.getOwnPropertySymbols(Ee);$e{var Se,he;const $e=fe.useContext(oe.Z),Je=$e||{},{getPrefixCls:lt,getPopupContainer:ut,direction:ht,menu:ft}=fe.useContext(Oe.E_),ot=lt(),{prefixCls:ct,className:pt,style:zt,theme:$t="light",expandIcon:Bt,_internalDisableMenuItemTitleTooltip:Ot,inlineCollapsed:Nt,siderCollapsed:It,items:Rt,children:Wt,rootClassName:Zt,mode:Ht,selectable:nn,onClick:_t,overflowedIndicatorPopupClassName:Xt}=Ee,on=de(Ee,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),sn=(0,Ue.Z)(on,["collapsedWidth"]),zn=le(Rt)||Wt;(Se=Je.validator)===null||Se===void 0||Se.call(Je,{mode:Ht});const vn=(0,ee.useEvent)(function(){var mn;_t==null||_t.apply(void 0,arguments),(mn=Je.onClick)===null||mn===void 0||mn.call(Je)}),bn=Je.mode||Ht,Mn=nn!=null?nn:Je.selectable,hn=fe.useMemo(()=>It!==void 0?It:Nt,[Nt,It]),$n={horizontal:{motionName:`${ot}-slide-up`},inline:(0,te.Z)(ot),other:{motionName:`${ot}-zoom-big`}},gn=lt("menu",ct||Je.prefixCls),[_n,Zn]=rt(gn,!$e),Dn=ue()(`${gn}-${$t}`,ft==null?void 0:ft.className,pt);let fn;if(typeof Bt=="function")fn=Bt;else if(Bt===null||Bt===!1)fn=null;else if(Je.expandIcon===null||Je.expandIcon===!1)fn=null;else{const mn=Bt!=null?Bt:Je.expandIcon;fn=(0,ye.Tm)(mn,{className:ue()(`${gn}-submenu-expand-icon`,(0,ye.l$)(mn)?(he=mn.props)===null||he===void 0?void 0:he.className:"")})}const Vn=fe.useMemo(()=>({prefixCls:gn,inlineCollapsed:hn||!1,direction:ht,firstLevel:!0,theme:$t,mode:bn,disableMenuItemTitleTooltip:Ot}),[gn,hn,ht,Ot,$t]);return _n(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Vn},fe.createElement(ge.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(gn,`${gn}-${$t}`,Xt),mode:bn,selectable:Mn,onClick:vn},sn,{inlineCollapsed:hn,style:Object.assign(Object.assign({},ft==null?void 0:ft.style),zt),className:Dn,prefixCls:gn,direction:ht,defaultMotions:$n,expandIcon:fn,ref:ve,rootClassName:ue()(Zt,Zn)}),zn))))});const wt=(0,fe.forwardRef)((Ee,ve)=>{const Se=(0,fe.useRef)(null),he=fe.useContext(je.D);return(0,fe.useImperativeHandle)(ve,()=>({menu:Se.current,focus:$e=>{var Je;(Je=Se.current)===null||Je===void 0||Je.focus($e)}})),fe.createElement(Pt,Object.assign({ref:Se},Ee,he))});wt.Item=x,wt.SubMenu=E,wt.Divider=xe,wt.ItemGroup=ge.BW;var vt=wt}}]); diff --git a/umi.e39d6348.js b/umi.662f4883.js similarity index 99% rename from umi.e39d6348.js rename to umi.662f4883.js index 8b40138f17..1da8ea18fa 100644 --- a/umi.e39d6348.js +++ b/umi.662f4883.js @@ -1466,6 +1466,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `),he=[],be=r?Ln(r.baseTime,r.timescale):0;let Se="00:00.000",De=0,He=0,Xe,lt=!0;H.oncue=function(vt){const Qt=a[_];let yr=a.ccOffset;const Tr=(De-be)/9e4;if(Qt!=null&&Qt.new&&(He!==void 0?yr=a.ccOffset=Qt.start:lc(a,_,Tr)),Tr){if(!r){Xe=new Error("Missing initPTS for VTT MPEGTS");return}yr=Tr-a.presentationOffset}const Wr=vt.endTime-vt.startTime,Br=Eo((vt.startTime+yr-He)*9e4,E*9e4)/9e4;vt.startTime=Math.max(Br,0),vt.endTime=Math.max(Br+Wr,0);const Cn=vt.text.trim();vt.text=decodeURIComponent(encodeURIComponent(Cn)),vt.id||(vt.id=ju(vt.startTime,vt.endTime,Cn)),vt.endTime>0&&he.push(vt)},H.onparsingerror=function(vt){Xe=vt},H.onflush=function(){if(Xe){N(Xe);return}I(he)},oe.forEach(vt=>{if(lt)if(Gl(vt,"X-TIMESTAMP-MAP=")){lt=!1,vt.slice(16).split(",").forEach(Qt=>{Gl(Qt,"LOCAL:")?Se=Qt.slice(6):Gl(Qt,"MPEGTS:")&&(De=parseInt(Qt.slice(7)))});try{He=wc(Se)/1e3}catch(Qt){Xe=Qt}return}else vt===""&&(lt=!1);H.parse(vt+` `)}),H.flush()}const au="stpp.ttml.im1t",el=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Gs=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,No={left:"start",center:"center",right:"end",start:"start",end:"end"};function $o(j,r,a,_){const E=ct(new Uint8Array(j),["mdat"]);if(E.length===0){_(new Error("Could not parse IMSC1 mdat"));return}const I=E.map(H=>qe(H)),N=$i(r.baseTime,1,r.timescale);try{I.forEach(H=>a(Kl(H,N)))}catch(H){_(H)}}function Kl(j,r){const E=new DOMParser().parseFromString(j,"text/xml").getElementsByTagName("tt")[0];if(!E)throw new Error("Invalid ttml");const I={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},N=Object.keys(I).reduce((Se,De)=>(Se[De]=E.getAttribute(`ttp:${De}`)||I[De],Se),{}),H=E.getAttribute("xml:space")!=="preserve",oe=su(Vu(E,"styling","style")),he=su(Vu(E,"layout","region")),be=Vu(E,"body","[begin]");return[].map.call(be,Se=>{const De=Vl(Se,H);if(!De||!Se.hasAttribute("begin"))return null;const He=du(Se.getAttribute("begin"),N),Xe=du(Se.getAttribute("dur"),N);let lt=du(Se.getAttribute("end"),N);if(He===null)throw tl(Se);if(lt===null){if(Xe===null)throw tl(Se);lt=He+Xe}const vt=new qu(He-r,lt-r,De);vt.id=ju(vt.startTime,vt.endTime,vt.text);const Qt=he[Se.getAttribute("region")],yr=oe[Se.getAttribute("style")],Tr=cc(Qt,yr,oe),{textAlign:Wr}=Tr;if(Wr){const Br=No[Wr];Br&&(vt.lineAlign=Br),vt.align=Wr}return i(vt,Tr),vt}).filter(Se=>Se!==null)}function Vu(j,r,a){const _=j.getElementsByTagName(r)[0];return _?[].slice.call(_.querySelectorAll(a)):[]}function su(j){return j.reduce((r,a)=>{const _=a.getAttribute("xml:id");return _&&(r[_]=a),r},{})}function Vl(j,r){return[].slice.call(j.childNodes).reduce((a,_,E)=>{var I;return _.nodeName==="br"&&E?a+` `:(I=_.childNodes)!=null&&I.length?Vl(_,r):r?a+_.textContent.trim().replace(/\s+/g," "):a+_.textContent},"")}function cc(j,r,a){const _="http://www.w3.org/ns/ttml#styling";let E=null;const I=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],N=j!=null&&j.hasAttribute("style")?j.getAttribute("style"):null;return N&&a.hasOwnProperty(N)&&(E=a[N]),I.reduce((H,oe)=>{const he=Qo(r,_,oe)||Qo(j,_,oe)||Qo(E,_,oe);return he&&(H[oe]=he),H},{})}function Qo(j,r,a){return j&&j.hasAttributeNS(r,a)?j.getAttributeNS(r,a):null}function tl(j){return new Error(`Could not parse ttml timestamp ${j}`)}function du(j,r){if(!j)return null;let a=Zl(j);return a===null&&(el.test(j)?a=Yl(j,r):Gs.test(j)&&(a=rl(j,r))),a}function Yl(j,r){const a=el.exec(j),_=(a[4]|0)+(a[5]|0)/r.subFrameRate;return(a[1]|0)*3600+(a[2]|0)*60+(a[3]|0)+_/r.frameRate}function rl(j,r){const a=Gs.exec(j),_=Number(a[1]);switch(a[2]){case"h":return _*3600;case"m":return _*60;case"ms":return _*1e3;case"f":return _/r.frameRate;case"t":return _/r.tickRate}return _}class Ma{constructor(r){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Xl(),this.captionsProperties=void 0,this.hls=r,this.config=r.config,this.Cues=r.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},r.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(l.MEDIA_DETACHING,this.onMediaDetaching,this),r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),r.on(l.FRAG_LOADING,this.onFragLoading,this),r.on(l.FRAG_LOADED,this.onFragLoaded,this),r.on(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),r.on(l.FRAG_DECRYPTED,this.onFragDecrypted,this),r.on(l.INIT_PTS_FOUND,this.onInitPtsFound,this),r.on(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),r.on(l.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:r}=this;r.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(l.MEDIA_DETACHING,this.onMediaDetaching,this),r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),r.off(l.FRAG_LOADING,this.onFragLoading,this),r.off(l.FRAG_LOADED,this.onFragLoaded,this),r.off(l.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),r.off(l.FRAG_DECRYPTED,this.onFragDecrypted,this),r.off(l.INIT_PTS_FOUND,this.onInitPtsFound,this),r.off(l.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),r.off(l.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){const r=new vl(this,"textTrack1"),a=new vl(this,"textTrack2"),_=new vl(this,"textTrack3"),E=new vl(this,"textTrack4");this.cea608Parser1=new Xo(1,r,a),this.cea608Parser2=new Xo(3,_,E)}}addCues(r,a,_,E,I){let N=!1;for(let H=I.length;H--;){const oe=I[H],he=Uu(oe[0],oe[1],a,_);if(he>=0&&(oe[0]=Math.min(oe[0],a),oe[1]=Math.max(oe[1],_),N=!0,he/(_-a)>.5))return}if(N||I.push([a,_]),this.config.renderTextTracksNatively){const H=this.captionsTracks[r];this.Cues.newCue(H,a,_,E)}else{const H=this.Cues.newCue(null,a,_,E);this.hls.trigger(l.CUES_PARSED,{type:"captions",cues:H,track:r})}}onInitPtsFound(r,{frag:a,id:_,initPTS:E,timescale:I}){const{unparsedVttFrags:N}=this;_==="main"&&(this.initPTS[a.cc]={baseTime:E,timescale:I}),N.length&&(this.unparsedVttFrags=[],N.forEach(H=>{this.onFragLoaded(l.FRAG_LOADED,H)}))}getExistingTrack(r,a){const{media:_}=this;if(_)for(let E=0;E<_.textTracks.length;E++){const I=_.textTracks[E];if(fc(I,{name:r,lang:a,attrs:{}}))return I}return null}createCaptionsTrack(r){this.config.renderTextTracksNatively?this.createNativeTrack(r):this.createNonNativeTrack(r)}createNativeTrack(r){if(this.captionsTracks[r])return;const{captionsProperties:a,captionsTracks:_,media:E}=this,{label:I,languageCode:N}=a[r],H=this.getExistingTrack(I,N);if(H)_[r]=H,yn(_[r]),Ir(_[r],E);else{const oe=this.createTextTrack("captions",I,N);oe&&(oe[r]=!0,_[r]=oe)}}createNonNativeTrack(r){if(this.nonNativeCaptionsTracks[r])return;const a=this.captionsProperties[r];if(!a)return;const _=a.label,E={_id:r,label:_,kind:"captions",default:a.media?!!a.media.default:!1,closedCaptions:a.media};this.nonNativeCaptionsTracks[r]=E,this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[E]})}createTextTrack(r,a,_){const E=this.media;if(E)return E.addTextTrack(r,a,_)}onMediaAttaching(r,a){this.media=a.media,this._cleanTracks()}onMediaDetaching(){const{captionsTracks:r}=this;Object.keys(r).forEach(a=>{yn(r[a]),delete r[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Xl(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:r}=this;if(!r)return;const a=r.textTracks;if(a)for(let _=0;_I.textCodec===au);if(this.config.enableWebVTT||E&&this.config.enableIMSC1){if(aa(this.tracks,_)){this.tracks=_;return}if(this.textTracks=[],this.tracks=_,this.config.renderTextTracksNatively){const N=this.media,H=N?on(N.textTracks):null;if(this.tracks.forEach((oe,he)=>{let be;if(H){let Se=null;for(let De=0;Dehe!==null).map(he=>he.label);oe.length&&R.warn(`Media element contains unused subtitle tracks: ${oe.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const N=this.tracks.map(H=>({label:H.name,kind:H.type.toLowerCase(),default:H.default,subtitleTrack:H}));this.hls.trigger(l.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:N})}}}onManifestLoaded(r,a){this.config.enableCEA708Captions&&a.captions&&a.captions.forEach(_=>{const E=/(?:CC|SERVICE)([1-4])/.exec(_.instreamId);if(!E)return;const I=`textTrack${E[1]}`,N=this.captionsProperties[I];N&&(N.label=_.name,_.lang&&(N.languageCode=_.lang),N.media=_)})}closedCaptionsForLevel(r){const a=this.hls.levels[r.level];return a==null?void 0:a.attrs["CLOSED-CAPTIONS"]}onFragLoading(r,a){if(this.enabled&&a.frag.type===Ye.MAIN){var _,E;const{cea608Parser1:I,cea608Parser2:N,lastSn:H}=this,{cc:oe,sn:he}=a.frag,be=(_=(E=a.part)==null?void 0:E.index)!=null?_:-1;I&&N&&(he!==H+1||he===H&&be!==this.lastPartIndex+1||oe!==this.lastCc)&&(I.reset(),N.reset()),this.lastCc=oe,this.lastSn=he,this.lastPartIndex=be}}onFragLoaded(r,a){const{frag:_,payload:E}=a;if(_.type===Ye.SUBTITLE)if(E.byteLength){const I=_.decryptdata,N="stats"in a;if(I==null||!I.encrypted||N){const H=this.tracks[_.level],oe=this.vttCCs;oe[_.cc]||(oe[_.cc]={start:_.start,prevCC:this.prevCC,new:!0},this.prevCC=_.cc),H&&H.textCodec===au?this._parseIMSC1(_,E):this._parseVTTs(a)}}else this.hls.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:_,error:new Error("Empty subtitle payload")})}_parseIMSC1(r,a){const _=this.hls;$o(a,this.initPTS[r.cc],E=>{this._appendCues(E,r.level),_.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},E=>{R.log(`Failed to parse IMSC1: ${E}`),_.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:E})})}_parseVTTs(r){var a;const{frag:_,payload:E}=r,{initPTS:I,unparsedVttFrags:N}=this,H=I.length-1;if(!I[_.cc]&&H===-1){N.push(r);return}const oe=this.hls,he=(a=_.initSegment)!=null&&a.data?dr(_.initSegment.data,new Uint8Array(E)):E;gl(he,this.initPTS[_.cc],this.vttCCs,_.cc,_.start,be=>{this._appendCues(be,_.level),oe.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:_})},be=>{const Se=be.message==="Missing initPTS for VTT MPEGTS";Se?N.push(r):this._fallbackToIMSC1(_,E),R.log(`Failed to parse VTT cue: ${be}`),!(Se&&H>_.cc)&&oe.trigger(l.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:_,error:be})})}_fallbackToIMSC1(r,a){const _=this.tracks[r.level];_.textCodec||$o(a,this.initPTS[r.cc],()=>{_.textCodec=au,this._parseIMSC1(r,a)},()=>{_.textCodec="wvtt"})}_appendCues(r,a){const _=this.hls;if(this.config.renderTextTracksNatively){const E=this.textTracks[a];if(!E||E.mode==="disabled")return;r.forEach(I=>Hr(E,I))}else{const E=this.tracks[a];if(!E)return;const I=E.default?"default":"subtitles"+a;_.trigger(l.CUES_PARSED,{type:"subtitles",cues:r,track:I})}}onFragDecrypted(r,a){const{frag:_}=a;_.type===Ye.SUBTITLE&&this.onFragLoaded(l.FRAG_LOADED,a)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(r,a){this.initCea608Parsers();const{cea608Parser1:_,cea608Parser2:E}=this;if(!this.enabled||!_||!E)return;const{frag:I,samples:N}=a;if(!(I.type===Ye.MAIN&&this.closedCaptionsForLevel(I)==="NONE"))for(let H=0;HAr(H[oe],a,_))}if(this.config.renderTextTracksNatively&&a===0&&E!==void 0){const{textTracks:H}=this;Object.keys(H).forEach(oe=>Ar(H[oe],a,E))}}}extractCea608Data(r){const a=[[],[]],_=r[0]&31;let E=2;for(let I=0;I<_;I++){const N=r[E++],H=127&r[E++],oe=127&r[E++];if(H===0&&oe===0)continue;if((4&N)!==0){const be=3&N;(be===0||be===1)&&(a[be].push(H),a[be].push(oe))}}return a}}function Ec(j){return j.characteristics&&/transcribes-spoken-dialog/gi.test(j.characteristics)&&/describes-music-and-sound/gi.test(j.characteristics)?"captions":"subtitles"}function fc(j,r){return!!j&&j.kind===Ec(r)&&is(r,j)}function Uu(j,r,a,_){return Math.min(r,_)-Math.max(j,a)}function Xl(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}class dc{constructor(r){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=r,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(r){this.streamController=r}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:r}=this;r.on(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.on(l.MANIFEST_PARSED,this.onManifestParsed,this),r.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.on(l.BUFFER_CODECS,this.onBufferCodecs,this),r.on(l.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:r}=this;r.off(l.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),r.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this),r.off(l.MANIFEST_PARSED,this.onManifestParsed,this),r.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.off(l.BUFFER_CODECS,this.onBufferCodecs,this),r.off(l.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(r,a){const _=this.hls.levels[a.droppedLevel];this.isLevelAllowed(_)&&this.restrictedLevels.push({bitrate:_.bitrate,height:_.height,width:_.width})}onMediaAttaching(r,a){this.media=a.media instanceof HTMLVideoElement?a.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(r,a){const _=this.hls;this.restrictedLevels=[],this.firstLevel=a.firstLevel,_.config.capLevelToPlayerSize&&a.video&&this.startCapping()}onLevelsUpdated(r,a){this.timer&&y(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(r,a){this.hls.config.capLevelToPlayerSize&&a.video&&this.startCapping()}onMediaDetaching(){this.stopCapping()}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const r=this.hls.levels;if(r.length){const a=this.hls,_=this.getMaxLevel(r.length-1);_!==this.autoLevelCapping&&R.log(`Setting autoLevelCapping to ${_}: ${r[_].height}p@${r[_].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),a.autoLevelCapping=_,a.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=a.autoLevelCapping}}}getMaxLevel(r){const a=this.hls.levels;if(!a.length)return-1;const _=a.filter((E,I)=>this.isLevelAllowed(E)&&I<=r);return this.clientRect=null,dc.getMaxLevelByMediaSize(_,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const r=this.media,a={width:0,height:0};if(r){const _=r.getBoundingClientRect();a.width=_.width,a.height=_.height,!a.width&&!a.height&&(a.width=_.right-_.left||r.width||0,a.height=_.bottom-_.top||r.height||0)}return this.clientRect=a,a}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let r=1;if(!this.hls.config.ignoreDevicePixelRatio)try{r=self.devicePixelRatio}catch(a){}return r}isLevelAllowed(r){return!this.restrictedLevels.some(_=>r.bitrate===_.bitrate&&r.width===_.width&&r.height===_.height)}static getMaxLevelByMediaSize(r,a,_){if(!(r!=null&&r.length))return-1;const E=(H,oe)=>oe?H.width!==oe.width||H.height!==oe.height:!0;let I=r.length-1;const N=Math.max(a,_);for(let H=0;H=N||oe.height>=N)&&E(oe,r[H+1])){I=H;break}}return I}}class Ql{constructor(r){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=r,this.registerListeners()}setStreamController(r){this.streamController=r}registerListeners(){this.hls.on(l.MEDIA_ATTACHING,this.onMediaAttaching,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHING,this.onMediaAttaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(r,a){const _=this.hls.config;if(_.capLevelOnFPSDrop){const E=a.media instanceof self.HTMLVideoElement?a.media:null;this.media=E,E&&typeof E.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),_.fpsDroppedMonitoringPeriod)}}checkFPS(r,a,_){const E=performance.now();if(a){if(this.lastTime){const I=E-this.lastTime,N=_-this.lastDroppedFrames,H=a-this.lastDecodedFrames,oe=1e3*N/I,he=this.hls;if(he.trigger(l.FPS_DROP,{currentDropped:N,currentDecoded:H,totalDroppedFrames:_}),oe>0&&N>he.config.fpsDroppedMonitoringThreshold*H){let be=he.currentLevel;R.warn("drop FPS ratio greater than max allowed value for currentLevel: "+be),be>0&&(he.autoLevelCapping===-1||he.autoLevelCapping>=be)&&(be=be-1,he.trigger(l.FPS_DROP_LEVEL_CAPPING,{level:be,droppedLevel:he.currentLevel}),he.autoLevelCapping=be,this.streamController.nextLevelSwitch())}}this.lastTime=E,this.lastDroppedFrames=_,this.lastDecodedFrames=a}}checkFPSInterval(){const r=this.media;if(r)if(this.isVideoPlaybackQualityAvailable){const a=r.getVideoPlaybackQuality();this.checkFPS(r,a.totalVideoFrames,a.droppedVideoFrames)}else this.checkFPS(r,r.webkitDecodedFrameCount,r.webkitDroppedFrameCount)}}const Go="[eme]";class nl{constructor(r){this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=nl.CDMCleanupPromise?[nl.CDMCleanupPromise]:[],this.debug=R.debug.bind(R,Go),this.log=R.log.bind(R,Go),this.warn=R.warn.bind(R,Go),this.error=R.error.bind(R,Go),this.onMediaEncrypted=a=>{const{initDataType:_,initData:E}=a,I=`"${a.type}" event: init data type: "${_}"`;if(this.debug(I),E!==null){if(!this.keyFormatPromise){let N=Object.keys(this.keySystemAccessPromises);N.length||(N=qt(this.config));const H=N.map(tr).filter(oe=>!!oe);this.keyFormatPromise=this.getKeyFormatPromise(H)}this.keyFormatPromise.then(N=>{const H=Ft(N);let oe,he;if(_==="sinf"){if(H!==Me.FAIRPLAY){this.warn(`Ignoring unexpected "${a.type}" event with init data type: "${_}" for selected key-system ${H}`);return}const Xe=ze(new Uint8Array(E));try{const lt=M(JSON.parse(Xe).sinf),vt=Dr(lt);if(!vt)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");oe=vt.subarray(8,24),he=Me.FAIRPLAY}catch(lt){this.warn(`${I} Failed to parse sinf: ${lt}`);return}}else{if(H!==Me.WIDEVINE&&H!==Me.PLAYREADY){this.warn(`Ignoring unexpected "${a.type}" event with init data type: "${_}" for selected key-system ${H}`);return}const Xe=Sr(E),lt=Xe.filter(Qt=>!!Qt.systemId&&At(Qt.systemId)===H);lt.length>1&&this.warn(`${I} Using first of ${lt.length} pssh found for selected key-system ${H}`);const vt=lt[0];if(!vt){Xe.length===0||Xe.some(Qt=>!Qt.systemId)?this.warn(`${I} contains incomplete or invalid pssh data`):this.log(`ignoring ${I} for ${Xe.map(Qt=>At(Qt.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(he=At(vt.systemId),vt.version===0&&vt.data)if(he===Me.WIDEVINE){const Qt=vt.data.length-22;oe=vt.data.subarray(Qt,Qt+16)}else he===Me.PLAYREADY&&(oe=zt(vt.data))}if(!he||!oe){this.log(`Unable to handle ${I} with key-system ${H}`);return}const be=Nt.hexDump(oe),{keyIdToKeySessionPromise:Se,mediaKeySessions:De}=this;let He=Se[be];for(let Xe=0;Xethis.generateRequestWithPreferredKeySession(lt,_,E,"encrypted-event-key-match")),He.catch(yr=>this.handleError(yr));break}}if(!He){if(he!==H){this.log(`Ignoring "${I}" with ${he} init data for selected key-system ${H}`);return}He=Se[be]=this.getKeySystemSelectionPromise([he]).then(({keySystem:Xe,mediaKeys:lt})=>{var vt;this.throwIfDestroyed();const Qt=new Mr("ISO-23001-7",be,(vt=tr(Xe))!=null?vt:"");return Qt.pssh=new Uint8Array(E),Qt.keyId=oe,this.attemptSetMediaKeys(Xe,lt).then(()=>{this.throwIfDestroyed();const yr=this.createMediaKeySessionContext({decryptdata:Qt,keySystem:Xe,mediaKeys:lt});return this.generateRequestWithPreferredKeySession(yr,_,E,"encrypted-event-no-match")})}),He.catch(Xe=>this.handleError(Xe))}})}},this.onWaitingForKey=a=>{this.log(`"${a.type}" event`)},this.hls=r,this.config=r.config,this.registerListeners()}destroy(){this.unregisterListeners(),this.onMediaDetached();const r=this.config;r.requestMediaKeySystemAccessFunc=null,r.licenseXhrSetup=r.licenseResponseCallback=void 0,r.drmSystems=r.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(l.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(l.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(l.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(l.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(r){const{drmSystems:a,widevineLicenseUrl:_}=this.config,E=a[r];if(E)return E.licenseUrl;if(r===Me.WIDEVINE&&_)return _}getLicenseServerUrlOrThrow(r){const a=this.getLicenseServerUrl(r);if(a===void 0)throw new Error(`no license server URL configured for key-system "${r}"`);return a}getServerCertificateUrl(r){const{drmSystems:a}=this.config,_=a[r];if(_)return _.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${r}"]`)}attemptKeySystemAccess(r){const a=this.hls.levels,_=(N,H,oe)=>!!N&&oe.indexOf(N)===H,E=a.map(N=>N.audioCodec).filter(_),I=a.map(N=>N.videoCodec).filter(_);return E.length+I.length===0&&I.push("avc1.42e01e"),new Promise((N,H)=>{const oe=he=>{const be=he.shift();this.getMediaKeysPromise(be,E,I).then(Se=>N({keySystem:be,mediaKeys:Se})).catch(Se=>{he.length?oe(he):Se instanceof Jo?H(Se):H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_ACCESS,error:Se,fatal:!0},Se.message))})};oe(r)})}requestMediaKeySystemAccess(r,a){const{requestMediaKeySystemAccessFunc:_}=this.config;if(typeof _!="function"){let E=`Configured requestMediaKeySystemAccess is not a function ${_}`;return cr===null&&self.location.protocol==="http:"&&(E=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(E))}return _(r,a)}getMediaKeysPromise(r,a,_){const E=Qe(r,a,_,this.config.drmSystemOptions),I=this.keySystemAccessPromises[r];let N=I==null?void 0:I.keySystemAccess;if(!N){this.log(`Requesting encrypted media "${r}" key-system access with config: ${JSON.stringify(E)}`),N=this.requestMediaKeySystemAccess(r,E);const H=this.keySystemAccessPromises[r]={keySystemAccess:N};return N.catch(oe=>{this.log(`Failed to obtain access to key-system "${r}": ${oe}`)}),N.then(oe=>{this.log(`Access for key-system "${oe.keySystem}" obtained`);const he=this.fetchServerCertificate(r);return this.log(`Create media-keys for "${r}"`),H.mediaKeys=oe.createMediaKeys().then(be=>(this.log(`Media-keys created for "${r}"`),he.then(Se=>Se?this.setMediaKeysServerCertificate(be,r,Se):be))),H.mediaKeys.catch(be=>{this.error(`Failed to create media-keys for "${r}"}: ${be}`)}),H.mediaKeys})}return N.then(()=>I.mediaKeys)}createMediaKeySessionContext({decryptdata:r,keySystem:a,mediaKeys:_}){this.log(`Creating key-system session "${a}" keyId: ${Nt.hexDump(r.keyId||[])}`);const E=_.createSession(),I={decryptdata:r,keySystem:a,mediaKeys:_,mediaKeysSession:E,keyStatus:"status-pending"};return this.mediaKeySessions.push(I),I}renewKeySession(r){const a=r.decryptdata;if(a.pssh){const _=this.createMediaKeySessionContext(r),E=this.getKeyIdString(a),I="cenc";this.keyIdToKeySessionPromise[E]=this.generateRequestWithPreferredKeySession(_,I,a.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(r)}getKeyIdString(r){if(!r)throw new Error("Could not read keyId of undefined decryptdata");if(r.keyId===null)throw new Error("keyId is null");return Nt.hexDump(r.keyId)}updateKeySession(r,a){var _;const E=r.mediaKeysSession;return this.log(`Updating key-session "${E.sessionId}" for keyID ${Nt.hexDump(((_=r.decryptdata)==null?void 0:_.keyId)||[])} - } (data length: ${a&&a.byteLength})`),E.update(a)}selectKeySystemFormat(r){const a=Object.keys(r.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${r.sn} ${r.type}: ${r.level}) key formats ${a.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(a)),this.keyFormatPromise}getKeyFormatPromise(r){return new Promise((a,_)=>{const E=qt(this.config),I=r.map(Ft).filter(N=>!!N&&E.indexOf(N)!==-1);return this.getKeySystemSelectionPromise(I).then(({keySystem:N})=>{const H=tr(N);H?a(H):_(new Error(`Unable to find format for key-system "${N}"`))}).catch(_)})}loadKey(r){const a=r.keyInfo.decryptdata,_=this.getKeyIdString(a),E=`(keyId: ${_} format: "${a.keyFormat}" method: ${a.method} uri: ${a.uri})`;this.log(`Starting session for key ${E}`);let I=this.keyIdToKeySessionPromise[_];return I||(I=this.keyIdToKeySessionPromise[_]=this.getKeySystemForKeyPromise(a).then(({keySystem:N,mediaKeys:H})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${r.frag.sn} ${r.frag.type}: ${r.frag.level} using key ${E}`),this.attemptSetMediaKeys(N,H).then(()=>{this.throwIfDestroyed();const oe=this.createMediaKeySessionContext({keySystem:N,mediaKeys:H,decryptdata:a});return this.generateRequestWithPreferredKeySession(oe,"cenc",a.pssh,"playlist-key")}))),I.catch(N=>this.handleError(N))),I}throwIfDestroyed(r="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(r){this.hls&&(this.error(r.message),r instanceof Jo?this.hls.trigger(l.ERROR,r.data):this.hls.trigger(l.ERROR,{type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_KEYS,error:r,fatal:!0}))}getKeySystemForKeyPromise(r){const a=this.getKeyIdString(r),_=this.keyIdToKeySessionPromise[a];if(!_){const E=Ft(r.keyFormat),I=E?[E]:qt(this.config);return this.attemptKeySystemAccess(I)}return _}getKeySystemSelectionPromise(r){if(r.length||(r=qt(this.config)),r.length===0)throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(r)}attemptSetMediaKeys(r,a){const _=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${r}"`);const E=Promise.all(_).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(a)});return this.setMediaKeysQueue.push(E),E.then(()=>{this.log(`Media-keys set for "${r}"`),_.push(E),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(I=>_.indexOf(I)===-1)})}generateRequestWithPreferredKeySession(r,a,_,E){var I,N;const H=(I=this.config.drmSystems)==null||(N=I[r.keySystem])==null?void 0:N.generateRequest;if(H)try{const Xe=H.call(this.hls,a,_,r);if(!Xe)throw new Error("Invalid response from configured generateRequest filter");a=Xe.initDataType,_=r.decryptdata.pssh=Xe.initData?new Uint8Array(Xe.initData):null}catch(Xe){var oe;if(this.warn(Xe.message),(oe=this.hls)!=null&&oe.config.debug)throw Xe}if(_===null)return this.log(`Skipping key-session request for "${E}" (no initData)`),Promise.resolve(r);const he=this.getKeyIdString(r.decryptdata);this.log(`Generating key-session request for "${E}": ${he} (init data type: ${a} length: ${_?_.byteLength:null})`);const be=new Zn,Se=r._onmessage=Xe=>{const lt=r.mediaKeysSession;if(!lt){be.emit("error",new Error("invalid state"));return}const{messageType:vt,message:Qt}=Xe;this.log(`"${vt}" message event for session "${lt.sessionId}" message size: ${Qt.byteLength}`),vt==="license-request"||vt==="license-renewal"?this.renewLicense(r,Qt).catch(yr=>{this.handleError(yr),be.emit("error",yr)}):vt==="license-release"?r.keySystem===Me.FAIRPLAY&&(this.updateKeySession(r,xe("acknowledged")),this.removeSession(r)):this.warn(`unhandled media key message type "${vt}"`)},De=r._onkeystatuseschange=Xe=>{if(!r.mediaKeysSession){be.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(r);const vt=r.keyStatus;be.emit("keyStatus",vt),vt==="expired"&&(this.warn(`${r.keySystem} expired for key ${he}`),this.renewKeySession(r))};r.mediaKeysSession.addEventListener("message",Se),r.mediaKeysSession.addEventListener("keystatuseschange",De);const He=new Promise((Xe,lt)=>{be.on("error",lt),be.on("keyStatus",vt=>{vt.startsWith("usable")?Xe():vt==="output-restricted"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):vt==="internal-error"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${vt}"`)):vt==="expired"?lt(new Error("key expired while generating request")):this.warn(`unhandled key status change "${vt}"`)})});return r.mediaKeysSession.generateRequest(a,_).then(()=>{var Xe;this.log(`Request generated for key-session "${(Xe=r.mediaKeysSession)==null?void 0:Xe.sessionId}" keyId: ${he}`)}).catch(Xe=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_SESSION,error:Xe,fatal:!1},`Error generating key-session request: ${Xe}`)}).then(()=>He).catch(Xe=>{throw be.removeAllListeners(),this.removeSession(r),Xe}).then(()=>(be.removeAllListeners(),r))}onKeyStatusChange(r){r.mediaKeysSession.keyStatuses.forEach((a,_)=>{this.log(`key status change "${a}" for keyStatuses keyId: ${Nt.hexDump("buffer"in _?new Uint8Array(_.buffer,_.byteOffset,_.byteLength):new Uint8Array(_))} session keyId: ${Nt.hexDump(new Uint8Array(r.decryptdata.keyId||[]))} uri: ${r.decryptdata.uri}`),r.keyStatus=a})}fetchServerCertificate(r){const a=this.config,_=a.loader,E=new _(a),I=this.getServerCertificateUrl(r);return I?(this.log(`Fetching server certificate for "${r}"`),new Promise((N,H)=>{const oe={responseType:"arraybuffer",url:I},he=a.certLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{N(De.data)},onError:(De,He,Xe,lt)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:f({url:oe.url,data:void 0},De)},`"${r}" certificate request failed (${I}). Status: ${De.code} (${De.text})`))},onTimeout:(De,He,Xe)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:{url:oe.url,data:void 0}},`"${r}" certificate request timed out (${I})`))},onAbort:(De,He,Xe)=>{H(new Error("aborted"))}};E.load(oe,be,Se)})):Promise.resolve()}setMediaKeysServerCertificate(r,a,_){return new Promise((E,I)=>{r.setServerCertificate(_).then(N=>{this.log(`setServerCertificate ${N?"success":"not supported by CDM"} (${_==null?void 0:_.byteLength}) on "${a}"`),E(r)}).catch(N=>{I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:N,fatal:!0},N.message))})})}renewLicense(r,a){return this.requestLicense(r,new Uint8Array(a)).then(_=>this.updateKeySession(r,new Uint8Array(_)).catch(E=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:E,fatal:!0},E.message)}))}unpackPlayReadyKeyMessage(r,a){const _=String.fromCharCode.apply(null,new Uint16Array(a.buffer));if(!_.includes("PlayReadyKeyMessage"))return r.setRequestHeader("Content-Type","text/xml; charset=utf-8"),a;const E=new DOMParser().parseFromString(_,"application/xml"),I=E.querySelectorAll("HttpHeader");if(I.length>0){let be;for(let Se=0,De=I.length;Se in key message");return xe(atob(he))}setupLicenseXHR(r,a,_,E){const I=this.config.licenseXhrSetup;return I?Promise.resolve().then(()=>{if(!_.decryptdata)throw new Error("Key removed");return I.call(this.hls,r,a,_,E)}).catch(N=>{if(!_.decryptdata)throw N;return r.open("POST",a,!0),I.call(this.hls,r,a,_,E)}).then(N=>(r.readyState||r.open("POST",a,!0),{xhr:r,licenseChallenge:N||E})):(r.open("POST",a,!0),Promise.resolve({xhr:r,licenseChallenge:E}))}requestLicense(r,a){const _=this.config.keyLoadPolicy.default;return new Promise((E,I)=>{const N=this.getLicenseServerUrlOrThrow(r.keySystem);this.log(`Sending license request to URL: ${N}`);const H=new XMLHttpRequest;H.responseType="arraybuffer",H.onreadystatechange=()=>{if(!this.hls||!r.mediaKeysSession)return I(new Error("invalid state"));if(H.readyState===4)if(H.status===200){this._requestLicenseFailureCount=0;let oe=H.response;this.log(`License received ${oe instanceof ArrayBuffer?oe.byteLength:oe}`);const he=this.config.licenseResponseCallback;if(he)try{oe=he.call(this.hls,H,N,r)}catch(be){this.error(be)}E(oe)}else{const oe=_.errorRetry,he=oe?oe.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>he||H.status>=400&&H.status<500)I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:H,response:{url:N,data:void 0,code:H.status,text:H.statusText}},`License Request XHR failed (${N}). Status: ${H.status} (${H.statusText})`));else{const be=he-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${be} attempts left`),this.requestLicense(r,a).then(E,I)}}},r.licenseXhr&&r.licenseXhr.readyState!==XMLHttpRequest.DONE&&r.licenseXhr.abort(),r.licenseXhr=H,this.setupLicenseXHR(H,N,r,a).then(({xhr:oe,licenseChallenge:he})=>{r.keySystem==Me.PLAYREADY&&(he=this.unpackPlayReadyKeyMessage(oe,he)),oe.send(he)})})}onMediaAttached(r,a){if(!this.config.emeEnabled)return;const _=a.media;this.media=_,_.removeEventListener("encrypted",this.onMediaEncrypted),_.removeEventListener("waitingforkey",this.onWaitingForKey),_.addEventListener("encrypted",this.onMediaEncrypted),_.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const r=this.media,a=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Mr.clearKeyUriToKeyIdMap();const _=a.length;nl.CDMCleanupPromise=Promise.all(a.map(E=>this.removeSession(E)).concat(r==null?void 0:r.setMediaKeys(null).catch(E=>{this.log(`Could not clear media keys: ${E}`)}))).then(()=>{_&&(this.log("finished closing key sessions and clearing media keys"),a.length=0)}).catch(E=>{this.log(`Could not close sessions and clear media keys: ${E}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(r,{sessionKeys:a}){if(!(!a||!this.config.emeEnabled)&&!this.keyFormatPromise){const _=a.reduce((E,I)=>(E.indexOf(I.keyFormat)===-1&&E.push(I.keyFormat),E),[]);this.log(`Selecting key-system from session-keys ${_.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(_)}}removeSession(r){const{mediaKeysSession:a,licenseXhr:_}=r;if(a){this.log(`Remove licenses and keys and close session ${a.sessionId}`),r._onmessage&&(a.removeEventListener("message",r._onmessage),r._onmessage=void 0),r._onkeystatuseschange&&(a.removeEventListener("keystatuseschange",r._onkeystatuseschange),r._onkeystatuseschange=void 0),_&&_.readyState!==XMLHttpRequest.DONE&&_.abort(),r.mediaKeysSession=r.decryptdata=r.licenseXhr=void 0;const E=this.mediaKeySessions.indexOf(r);return E>-1&&this.mediaKeySessions.splice(E,1),a.remove().catch(I=>{this.log(`Could not remove session: ${I}`)}).then(()=>a.close()).catch(I=>{this.log(`Could not close session: ${I}`)})}}}nl.CDMCleanupPromise=void 0;class Jo extends Error{constructor(r,a){super(a),this.data=void 0,r.error||(r.error=new Error(a)),this.data=r,r.err=r.error}}var go;(function(j){j.MANIFEST="m",j.AUDIO="a",j.VIDEO="v",j.MUXED="av",j.INIT="i",j.CAPTION="c",j.TIMED_TEXT="tt",j.KEY="k",j.OTHER="o"})(go||(go={}));var Jl;(function(j){j.DASH="d",j.HLS="h",j.SMOOTH="s",j.OTHER="o"})(Jl||(Jl={}));var zu;(function(j){j.OBJECT="CMCD-Object",j.REQUEST="CMCD-Request",j.SESSION="CMCD-Session",j.STATUS="CMCD-Status"})(zu||(zu={}));const hu={[zu.OBJECT]:["br","d","ot","tb"],[zu.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[zu.SESSION]:["cid","pr","sf","sid","st","v"],[zu.STATUS]:["bs","rtp"]};class ou{constructor(r,a){this.value=void 0,this.params=void 0,Array.isArray(r)&&(r=r.map(_=>_ instanceof ou?_:new ou(_))),this.value=r,this.params=a}}class Dl{constructor(r){this.description=void 0,this.description=r}}const Zu="Dict";function hc(j){return Array.isArray(j)?JSON.stringify(j):j instanceof Map?"Map{}":j instanceof Set?"Set{}":typeof j=="object"?JSON.stringify(j):String(j)}function Sc(j,r,a,_){return new Error(`failed to ${j} "${hc(r)}" as ${a}`,{cause:_})}const yl="Bare Item",uo="Boolean",Cc="Byte Sequence",pc="Decimal",il="Integer";function ku(j){return j<-999999999999999||99999999999999912)throw gu(j,pc);const a=r.toString();return a.includes(".")?a:`${a}.0`}const Ol="String";function Ko(j){if(lo.test(j))throw gu(j,Ol);return`"${j.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Eu(j){return j.description||j.toString().slice(7,-1)}function kl(j){const r=Eu(j);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r)===!1)throw gu(r,al);return r}function ul(j){switch(typeof j){case"number":if(!y(j))throw gu(j,yl);return Number.isInteger(j)?ol(j):uu(j);case"string":return Ko(j);case"symbol":return kl(j);case"boolean":return Ac(j);case"object":if(j instanceof Date)return je(j);if(j instanceof Uint8Array)return jo(j);if(j instanceof Dl)return kl(j);default:throw gu(j,yl)}}function Hu(j){if(/^[a-z*][a-z0-9\-_.*]*$/.test(j)===!1)throw gu(j,Dc);return j}function Ru(j){return j==null?"":Object.entries(j).map(([r,a])=>a===!0?`;${Hu(r)}`:`;${Hu(r)}=${ul(a)}`).join("")}function Su(j){return j instanceof ou?`${ul(j.value)}${Ru(j.params)}`:ul(j)}function _c(j){return`(${j.value.map(Su).join(" ")})${Ru(j.params)}`}function Rl(j,r={whitespace:!0}){if(typeof j!="object")throw gu(j,Zu);const a=j instanceof Map?j.entries():Object.entries(j),_=r!=null&&r.whitespace?" ":"";return Array.from(a).map(([E,I])=>{I instanceof ou||(I=new ou(I));let N=Hu(E);return I.value===!0?N+=Ru(I.params):(N+="=",Array.isArray(I.value)?N+=_c(I):N+=Su(I)),N}).join(`,${_}`)}function pu(j,r){return Rl(j,r)}const Yu=j=>j==="ot"||j==="sf"||j==="st",Cu=j=>typeof j=="number"?y(j):j!=null&&j!==""&&j!==!1;function Bc(j,r){const a=new URL(j),_=new URL(r);if(a.origin!==_.origin)return j;const E=a.pathname.split("/").slice(1),I=_.pathname.split("/").slice(1,-1);for(;E[0]===I[0];)E.shift(),I.shift();for(;I.length;)I.shift(),E.unshift("..");return E.join("/")}function Tc(){try{return crypto.randomUUID()}catch(j){try{const r=URL.createObjectURL(new Blob),a=r.toString();return URL.revokeObjectURL(r),a.slice(a.lastIndexOf("/")+1)}catch(r){let a=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,E=>{const I=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(E=="x"?I:I&3|8).toString(16)})}}}const Ao=j=>Math.round(j),ll=(j,r)=>(r!=null&&r.baseUrl&&(j=Bc(j,r.baseUrl)),encodeURIComponent(j)),bl=j=>Ao(j/100)*100,Ll={br:Ao,d:Ao,bl,dl:bl,mtp:bl,nor:ll,rtp:bl,tb:Ao};function Ml(j,r){const a={};if(j==null||typeof j!="object")return a;const _=Object.keys(j).sort(),E=i({},Ll,r==null?void 0:r.formatters),I=r==null?void 0:r.filter;return _.forEach(N=>{if(I!=null&&I(N))return;let H=j[N];const oe=E[N];oe&&(H=oe(H,r)),!(N==="v"&&H===1)&&(N=="pr"&&H===1||Cu(H)&&(Yu(N)&&typeof H=="string"&&(H=new Dl(H)),a[N]=H))}),a}function xl(j,r={}){return j?pu(Ml(j,r),i({whitespace:!1},r)):""}function Fl(j,r={}){if(!j)return{};const a=Object.entries(j),_=Object.entries(hu).concat(Object.entries((r==null?void 0:r.customHeaderMap)||{})),E=a.reduce((I,N)=>{var H,oe;const[he,be]=N,Se=((H=_.find(De=>De[1].includes(he)))==null?void 0:H[0])||zu.REQUEST;return(oe=I[Se])!=null||(I[Se]={}),I[Se][he]=be,I},{});return Object.entries(E).reduce((I,[N,H])=>(I[N]=xl(H,r),I),{})}function Oc(j,r,a){return i(j,Fl(r,a))}const ql="CMCD";function Bl(j,r={}){if(!j)return"";const a=xl(j,r);return`${ql}=${encodeURIComponent(a)}`}const cl=/CMCD=[^&#]+/;function Pc(j,r,a){const _=Bl(r,a);if(!_)return j;if(cl.test(j))return j.replace(cl,_);const E=j.includes("?")?"&":"?";return`${j}${E}${_}`}class mc{constructor(r){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=E=>{try{this.apply(E,{ot:go.MANIFEST,su:!this.initialized})}catch(I){R.warn("Could not generate manifest CMCD data.",I)}},this.applyFragmentData=E=>{try{const I=E.frag,N=this.hls.levels[I.level],H=this.getObjectType(I),oe={d:I.duration*1e3,ot:H};(H===go.VIDEO||H===go.AUDIO||H==go.MUXED)&&(oe.br=N.bitrate/1e3,oe.tb=this.getTopBandwidth(H)/1e3,oe.bl=this.getBufferLength(H)),this.apply(E,oe)}catch(I){R.warn("Could not generate segment CMCD data.",I)}},this.hls=r;const a=this.config=r.config,{cmcd:_}=a;_!=null&&(a.pLoader=this.createPlaylistLoader(),a.fLoader=this.createFragmentLoader(),this.sid=_.sessionId||Tc(),this.cid=_.contentId,this.useHeaders=_.useHeaders===!0,this.includeKeys=_.includeKeys,this.registerListeners())}registerListeners(){const r=this.hls;r.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(l.MEDIA_DETACHED,this.onMediaDetached,this),r.on(l.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const r=this.hls;r.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(l.MEDIA_DETACHED,this.onMediaDetached,this),r.off(l.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(r,a){this.media=a.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(r,a){var _,E;this.audioBuffer=(_=a.tracks.audio)==null?void 0:_.buffer,this.videoBuffer=(E=a.tracks.video)==null?void 0:E.buffer}createData(){var r;return{v:1,sf:Jl.HLS,sid:this.sid,cid:this.cid,pr:(r=this.media)==null?void 0:r.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(r,a={}){i(a,this.createData());const _=a.ot===go.INIT||a.ot===go.VIDEO||a.ot===go.MUXED;this.starved&&_&&(a.bs=!0,a.su=!0,this.starved=!1),a.su==null&&(a.su=this.buffering);const{includeKeys:E}=this;E&&(a=Object.keys(a).reduce((I,N)=>(E.includes(N)&&(I[N]=a[N]),I),{})),this.useHeaders?(r.headers||(r.headers={}),Oc(r.headers,a)):r.url=Pc(r.url,a)}getObjectType(r){const{type:a}=r;if(a==="subtitle")return go.TIMED_TEXT;if(r.sn==="initSegment")return go.INIT;if(a==="audio")return go.AUDIO;if(a==="main")return this.hls.audioTracks.length?go.VIDEO:go.MUXED}getTopBandwidth(r){let a=0,_;const E=this.hls;if(r===go.AUDIO)_=E.audioTracks;else{const I=E.maxAutoLevel,N=I>-1?I+1:E.levels.length;_=E.levels.slice(0,N)}for(const I of _)I.bitrate>a&&(a=I.bitrate);return a>0?a:NaN}getBufferLength(r){const a=this.hls.media,_=r===go.AUDIO?this.audioBuffer:this.videoBuffer;return!_||!a?NaN:hr.bufferInfo(_,a.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:r}=this.config,a=this.applyPlaylistData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}createFragmentLoader(){const{fLoader:r}=this.config,a=this.applyFragmentData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}}const Lu=3e5;class Nl{constructor(r){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=r,this.log=R.log.bind(R,"[content-steering]:"),this.registerListeners()}registerListeners(){const r=this.hls;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.MANIFEST_PARSED,this.onManifestParsed,this),r.on(l.ERROR,this.onError,this)}unregisterListeners(){const r=this.hls;r&&(r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.MANIFEST_PARSED,this.onManifestParsed,this),r.off(l.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const r=this.timeToLoad*1e3-(performance.now()-this.updated);if(r>0){this.scheduleRefresh(this.uri,r);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(r){const a=this.levels;a&&(this.levels=a.filter(_=>_!==r))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(r,a){const{contentSteering:_}=a;_!==null&&(this.pathwayId=_.pathwayId,this.uri=_.uri,this.started&&this.startLoad())}onManifestParsed(r,a){this.audioTracks=a.audioTracks,this.subtitleTracks=a.subtitleTracks}onError(r,a){const{errorAction:_}=a;if((_==null?void 0:_.action)===Yn.SendAlternateToPenaltyBox&&_.flags===va.MoveAllAlternatesMatchingHost){const E=this.levels;let I=this.pathwayPriority,N=this.pathwayId;if(a.context){const{groupId:H,pathwayId:oe,type:he}=a.context;H&&E?N=this.getPathwayForGroupId(H,he,N):oe&&(N=oe)}N in this.penalizedPathways||(this.penalizedPathways[N]=performance.now()),!I&&E&&(I=E.reduce((H,oe)=>(H.indexOf(oe.pathwayId)===-1&&H.push(oe.pathwayId),H),[])),I&&I.length>1&&(this.updatePathwayPriority(I),_.resolved=this.pathwayId!==N),_.resolved||R.warn(`Could not resolve ${a.details} ("${a.error.message}") with content-steering for Pathway: ${N} levels: ${E&&E.length} priorities: ${JSON.stringify(I)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(r){this.levels=r;let a=this.getLevelsForPathway(this.pathwayId);if(a.length===0){const _=r[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${_}"`),a=this.getLevelsForPathway(_),this.pathwayId=_}return a.length!==r.length&&this.log(`Found ${a.length}/${r.length} levels in Pathway "${this.pathwayId}"`),a}getLevelsForPathway(r){return this.levels===null?[]:this.levels.filter(a=>r===a.pathwayId)}updatePathwayPriority(r){this.pathwayPriority=r;let a;const _=this.penalizedPathways,E=performance.now();Object.keys(_).forEach(I=>{E-_[I]>Lu&&delete _[I]});for(let I=0;I0){this.log(`Setting Pathway to "${N}"`),this.pathwayId=N,za(a),this.hls.trigger(l.LEVELS_UPDATED,{levels:a});const he=this.hls.levels[H];oe&&he&&this.levels&&(he.attrs["STABLE-VARIANT-ID"]!==oe.attrs["STABLE-VARIANT-ID"]&&he.bitrate!==oe.bitrate&&this.log(`Unstable Pathways change from bitrate ${oe.bitrate} to ${he.bitrate}`),this.hls.nextLoadLevel=H);break}}}getPathwayForGroupId(r,a,_){const E=this.getLevelsForPathway(_).concat(this.levels||[]);for(let I=0;I{const{ID:N,"BASE-ID":H,"URI-REPLACEMENT":oe}=I;if(a.some(be=>be.pathwayId===N))return;const he=this.getLevelsForPathway(H).map(be=>{const Se=new Z(be.attrs);Se["PATHWAY-ID"]=N;const De=Se.AUDIO&&`${Se.AUDIO}_clone_${N}`,He=Se.SUBTITLES&&`${Se.SUBTITLES}_clone_${N}`;De&&(_[Se.AUDIO]=De,Se.AUDIO=De),He&&(E[Se.SUBTITLES]=He,Se.SUBTITLES=He);const Xe=ec(be.uri,Se["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",oe),lt=new Fa({attrs:Se,audioCodec:be.audioCodec,bitrate:be.bitrate,height:be.height,name:be.name,url:Xe,videoCodec:be.videoCodec,width:be.width});if(be.audioGroups)for(let vt=1;vt{this.log(`Loaded steering manifest: "${E}"`);const Xe=be.data;if(Xe.VERSION!==1){this.log(`Steering VERSION ${Xe.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=Xe.TTL;const{"RELOAD-URI":lt,"PATHWAY-CLONES":vt,"PATHWAY-PRIORITY":Qt}=Xe;if(lt)try{this.uri=new self.URL(lt,E).href}catch(Tr){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${lt}`);return}this.scheduleRefresh(this.uri||De.url),vt&&this.clonePathways(vt);const yr={steeringManifest:Xe,url:E.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,yr),Qt&&this.updatePathwayPriority(Qt)},onError:(be,Se,De,He)=>{if(this.log(`Error loading steering manifest: ${be.code} ${be.text} (${Se.url})`),this.stopLoad(),be.code===410){this.enabled=!1,this.log(`Steering manifest ${Se.url} no longer available`);return}let Xe=this.timeToLoad*1e3;if(be.code===429){const lt=this.loader;if(typeof(lt==null?void 0:lt.getResponseHeader)=="function"){const vt=lt.getResponseHeader("Retry-After");vt&&(Xe=parseFloat(vt)*1e3)}this.log(`Steering manifest ${Se.url} rate limited`);return}this.scheduleRefresh(this.uri||Se.url,Xe)},onTimeout:(be,Se,De)=>{this.log(`Timeout loading steering manifest (${Se.url})`),this.scheduleRefresh(this.uri||Se.url)}};this.log(`Requesting steering manifest: ${E}`),this.loader.load(I,oe,he)}scheduleRefresh(r,a=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var _;const E=(_=this.hls)==null?void 0:_.media;if(E&&!E.ended){this.loadSteeringManifest(r);return}this.scheduleRefresh(r,this.timeToLoad*1e3)},a)}}function wl(j,r,a,_){j&&Object.keys(r).forEach(E=>{const I=j.filter(N=>N.groupId===E).map(N=>{const H=i({},N);return H.details=void 0,H.attrs=new Z(H.attrs),H.url=H.attrs.URI=ec(N.url,N.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",a),H.groupId=H.attrs["GROUP-ID"]=r[E],H.attrs["PATHWAY-ID"]=_,H});j.push(...I)})}function ec(j,r,a,_){const{HOST:E,PARAMS:I,[a]:N}=_;let H;r&&(H=N==null?void 0:N[r],H&&(j=H));const oe=new self.URL(j);return E&&!H&&(oe.host=E),I&&Object.keys(I).sort().forEach(he=>{he&&oe.searchParams.set(he,I[he])}),oe.href}const tc=/^age:\s*[\d.]+\s*$/im;class vc{constructor(r){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=r&&r.xhrSetup||null,this.stats=new Q,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(r,a,_){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=a,this.callbacks=_,this.loadInternal()}loadInternal(){const{config:r,context:a}=this;if(!r||!a)return;const _=this.loader=new self.XMLHttpRequest,E=this.stats;E.loading.first=0,E.loaded=0,E.aborted=!1;const I=this.xhrSetup;I?Promise.resolve().then(()=>{if(!(this.loader!==_||this.stats.aborted))return I(_,a.url)}).catch(N=>{if(!(this.loader!==_||this.stats.aborted))return _.open("GET",a.url,!0),I(_,a.url)}).then(()=>{this.loader!==_||this.stats.aborted||this.openAndSendXhr(_,a,r)}).catch(N=>{this.callbacks.onError({code:_.status,text:N.message},a,_,E)}):this.openAndSendXhr(_,a,r)}openAndSendXhr(r,a,_){r.readyState||r.open("GET",a.url,!0);const E=a.headers,{maxTimeToFirstByteMs:I,maxLoadTimeMs:N}=_.loadPolicy;if(E)for(const H in E)r.setRequestHeader(H,E[H]);a.rangeEnd&&r.setRequestHeader("Range","bytes="+a.rangeStart+"-"+(a.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=a.responseType,self.clearTimeout(this.requestTimeout),_.timeout=I&&y(I)?I:N,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),_.timeout),r.send()}readystatechange(){const{context:r,loader:a,stats:_}=this;if(!r||!a)return;const E=a.readyState,I=this.config;if(!_.aborted&&E>=2&&(_.loading.first===0&&(_.loading.first=Math.max(self.performance.now(),_.loading.start),I.timeout!==I.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),I.timeout=I.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),I.loadPolicy.maxLoadTimeMs-(_.loading.first-_.loading.start)))),E===4)){self.clearTimeout(this.requestTimeout),a.onreadystatechange=null,a.onprogress=null;const N=a.status,H=a.responseType==="text"?a.responseText:null;if(N>=200&&N<300){const Se=H!=null?H:a.response;if(Se!=null){_.loading.end=Math.max(self.performance.now(),_.loading.first);const De=a.responseType==="arraybuffer"?Se.byteLength:Se.length;if(_.loaded=_.total=De,_.bwEstimate=_.total*8e3/(_.loading.end-_.loading.first),!this.callbacks)return;const He=this.callbacks.onProgress;if(He&&He(_,r,Se,a),!this.callbacks)return;const Xe={url:a.responseURL,data:Se,code:N};this.callbacks.onSuccess(Xe,_,r,a);return}}const oe=I.loadPolicy.errorRetry,he=_.retry,be={url:r.url,data:void 0,code:N};fo(oe,he,!1,be)?this.retry(oe):(R.error(`${N} while loading ${r.url}`),this.callbacks.onError({code:N,text:a.statusText},r,a,_))}}loadtimeout(){if(!this.config)return;const r=this.config.loadPolicy.timeoutRetry,a=this.stats.retry;if(fo(r,a,!0))this.retry(r);else{var _;R.warn(`timeout while loading ${(_=this.context)==null?void 0:_.url}`);const E=this.callbacks;E&&(this.abortInternal(),E.onTimeout(this.stats,this.context,this.loader))}}retry(r){const{context:a,stats:_}=this;this.retryDelay=Ks(r,_.retry),_.retry++,R.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${a==null?void 0:a.url}, retrying ${_.retry}/${r.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(r){const a=this.stats;a.loaded=r.loaded,r.lengthComputable&&(a.total=r.total)}getCacheAge(){let r=null;if(this.loader&&tc.test(this.loader.getAllResponseHeaders())){const a=this.loader.getResponseHeader("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.loader&&new RegExp(`^${r}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(r):null}}function A(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(j){}return!1}const P=/(\d+)-(\d+)\/(\d+)/;class D{constructor(r){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=r.fetchSetup||zn,this.controller=new self.AbortController,this.stats=new Q}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(r,a,_){const E=this.stats;if(E.loading.start)throw new Error("Loader can only be used once.");E.loading.start=self.performance.now();const I=pe(r,this.controller.signal),N=_.onProgress,H=r.responseType==="arraybuffer",oe=H?"byteLength":"length",{maxTimeToFirstByteMs:he,maxLoadTimeMs:be}=a.loadPolicy;this.context=r,this.config=a,this.callbacks=_,this.request=this.fetchSetup(r,I),self.clearTimeout(this.requestTimeout),a.timeout=he&&y(he)?he:be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},a.timeout),self.fetch(this.request).then(Se=>{this.response=this.loader=Se;const De=Math.max(self.performance.now(),E.loading.start);if(self.clearTimeout(this.requestTimeout),a.timeout=be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},be-(De-E.loading.start)),!Se.ok){const{status:He,statusText:Xe}=Se;throw new dn(Xe||"fetch, bad network response",He,Se)}return E.loading.first=De,E.total=an(Se.headers)||E.total,N&&y(a.highWaterMark)?this.loadProgressively(Se,E,r,a.highWaterMark,N):H?Se.arrayBuffer():r.responseType==="json"?Se.json():Se.text()}).then(Se=>{const De=this.response;if(!De)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),E.loading.end=Math.max(self.performance.now(),E.loading.first);const He=Se[oe];He&&(E.loaded=E.total=He);const Xe={url:De.url,data:Se,code:De.status};N&&!y(a.highWaterMark)&&N(E,r,Se,De),_.onSuccess(Xe,E,r,De)}).catch(Se=>{if(self.clearTimeout(this.requestTimeout),E.aborted)return;const De=Se&&Se.code||0,He=Se?Se.message:null;_.onError({code:De,text:He},r,Se?Se.details:null,E)})}getCacheAge(){let r=null;if(this.response){const a=this.response.headers.get("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.response?this.response.headers.get(r):null}loadProgressively(r,a,_,E=0,I){const N=new Bs,H=r.body.getReader(),oe=()=>H.read().then(he=>{if(he.done)return N.dataLength&&I(a,_,N.flush(),r),Promise.resolve(new ArrayBuffer(0));const be=he.value,Se=be.length;return a.loaded+=Se,Se=E&&I(a,_,N.flush(),r)):I(a,_,be,r),oe()}).catch(()=>Promise.reject());return oe()}}function pe(j,r){const a={method:"GET",mode:"cors",credentials:"same-origin",signal:r,headers:new self.Headers(i({},j.headers))};return j.rangeEnd&&a.headers.set("Range","bytes="+j.rangeStart+"-"+String(j.rangeEnd-1)),a}function Oe(j){const r=P.exec(j);if(r)return parseInt(r[2])-parseInt(r[1])+1}function an(j){const r=j.get("Content-Range");if(r){const _=Oe(r);if(y(_))return _}const a=j.get("Content-Length");if(a)return parseInt(a)}function zn(j,r){return new self.Request(j.url,r)}class dn extends Error{constructor(r,a,_){super(r),this.code=void 0,this.details=void 0,this.code=a,this.details=_}}const Mi=/\s/,Qa={newCue(j,r,a,_){const E=[];let I,N,H,oe,he;const be=self.VTTCue||self.TextTrackCue;for(let De=0;De<_.rows.length;De++)if(I=_.rows[De],H=!0,oe=0,he="",!I.isEmpty()){var Se;for(let lt=0;lt=16?oe--:oe++;const He=Wl(he.trim()),Xe=ju(r,a,He);j!=null&&(Se=j.cues)!=null&&Se.getCueById(Xe)||(N=new be(r,a,He),N.id=Xe,N.line=De+1,N.align="left",N.position=10+Math.min(80,Math.floor(oe*8/32)*10),E.push(N))}return j&&E.length&&(E.sort((De,He)=>De.line==="auto"||He.line==="auto"?0:De.line>8&&He.line>8?He.line-De.line:De.line-He.line),E.forEach(De=>Hr(j,De))),E}},Oa={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},To=f(f({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:vc,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Bo,bufferController:mo,capLevelController:dc,errorController:ts,fpsController:Ql,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:cr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:Oa},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},ds()),{},{subtitleStreamController:cs,subtitleTrackController:Hs,timelineController:Ma,audioStreamController:ha,audioTrackController:gs,emeController:nl,cmcdController:mc,contentSteeringController:Nl});function ds(){return{cueHandler:Qa,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function yo(j,r){if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(r.liveMaxLatencyDurationCount!==void 0&&(r.liveSyncDurationCount===void 0||r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(r.liveMaxLatencyDuration!==void 0&&(r.liveSyncDuration===void 0||r.liveMaxLatencyDuration<=r.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const a=ys(j),_=["manifest","level","frag"],E=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return _.forEach(I=>{const N=`${I==="level"?"playlist":I}LoadPolicy`,H=r[N]===void 0,oe=[];E.forEach(he=>{const be=`${I}Loading${he}`,Se=r[be];if(Se!==void 0&&H){oe.push(be);const De=a[N].default;switch(r[N]={default:De},he){case"TimeOut":De.maxLoadTimeMs=Se,De.maxTimeToFirstByteMs=Se;break;case"MaxRetry":De.errorRetry.maxNumRetry=Se,De.timeoutRetry.maxNumRetry=Se;break;case"RetryDelay":De.errorRetry.retryDelayMs=Se,De.timeoutRetry.retryDelayMs=Se;break;case"MaxRetryTimeout":De.errorRetry.maxRetryDelayMs=Se,De.timeoutRetry.maxRetryDelayMs=Se;break}}}),oe.length&&R.warn(`hls.js config: "${oe.join('", "')}" setting(s) are deprecated, use "${N}": ${JSON.stringify(r[N])}`)}),f(f({},a),r)}function ys(j){return j&&typeof j=="object"?Array.isArray(j)?j.map(ys):Object.keys(j).reduce((r,a)=>(r[a]=ys(j[a]),r),{}):j}function gc(j){const r=j.loader;r!==D&&r!==vc?(R.log("[config]: Custom loader detected, cannot enable progressive streaming"),j.progressive=!1):A()&&(j.loader=D,j.progressive=!0,j.enableSoftwareAES=!0,R.log("[config]: Progressive streaming enabled, using FetchLoader"))}let $l;class rc extends Ka{constructor(r,a){super(r,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=a,this._registerListeners()}_registerListeners(){const{hls:r}=this;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.LEVEL_LOADED,this.onLevelLoaded,this),r.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.on(l.FRAG_BUFFERED,this.onFragBuffered,this),r.on(l.ERROR,this.onError,this)}_unregisterListeners(){const{hls:r}=this;r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.LEVEL_LOADED,this.onLevelLoaded,this),r.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.off(l.FRAG_BUFFERED,this.onFragBuffered,this),r.off(l.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(a=>{a.loadError=0,a.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(r,a){this.resetLevels()}onManifestLoaded(r,a){const _=this.hls.config.preferManagedMediaSource,E=[],I={},N={};let H=!1,oe=!1,he=!1;a.levels.forEach(be=>{var Se,De;const He=be.attrs;let{audioCodec:Xe,videoCodec:lt}=be;((Se=Xe)==null?void 0:Se.indexOf("mp4a.40.34"))!==-1&&($l||($l=/chrome|firefox/i.test(navigator.userAgent)),$l&&(be.audioCodec=Xe=void 0)),Xe&&(be.audioCodec=Xe=wi(Xe,_)),((De=lt)==null?void 0:De.indexOf("avc1"))===0&&(lt=be.videoCodec=Ji(lt));const{width:vt,height:Qt,unknownCodecs:yr}=be;if(H||(H=!!(vt&&Qt)),oe||(oe=!!lt),he||(he=!!Xe),yr!=null&&yr.length||Xe&&!yi(Xe,"audio",_)||lt&&!yi(lt,"video",_))return;const{CODECS:Tr,"FRAME-RATE":Wr,"HDCP-LEVEL":Br,"PATHWAY-ID":Cn,RESOLUTION:un,"VIDEO-RANGE":Hn}=He,En=`${`${Cn||"."}-`}${be.bitrate}-${un}-${Wr}-${Tr}-${Hn}-${Br}`;if(I[En])if(I[En].uri!==be.url&&!be.attrs["PATHWAY-ID"]){const qn=N[En]+=1;be.attrs["PATHWAY-ID"]=new Array(qn+1).join(".");const Ta=new Fa(be);I[En]=Ta,E.push(Ta)}else I[En].addGroupId("audio",He.AUDIO),I[En].addGroupId("text",He.SUBTITLES);else{const qn=new Fa(be);I[En]=qn,N[En]=1,E.push(qn)}}),this.filterAndSortMediaOptions(E,a,H,oe,he)}filterAndSortMediaOptions(r,a,_,E,I){let N=[],H=[],oe=r;if((_||E)&&I&&(oe=oe.filter(({videoCodec:Xe,videoRange:lt,width:vt,height:Qt})=>(!!Xe||!!(vt&&Qt))&&es(lt))),oe.length===0){Promise.resolve().then(()=>{if(this.hls){a.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(a.levels[0].attrs)}`);const Xe=new Error("no level with compatible codecs found in manifest");this.hls.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:a.url,error:Xe,reason:Xe.message})}});return}if(a.audioTracks){const{preferManagedMediaSource:Xe}=this.hls.config;N=a.audioTracks.filter(lt=>!lt.audioCodec||yi(lt.audioCodec,"audio",Xe)),nc(N)}a.subtitles&&(H=a.subtitles,nc(H));const he=oe.slice(0);oe.sort((Xe,lt)=>{if(Xe.attrs["HDCP-LEVEL"]!==lt.attrs["HDCP-LEVEL"])return(Xe.attrs["HDCP-LEVEL"]||"")>(lt.attrs["HDCP-LEVEL"]||"")?1:-1;if(_&&Xe.height!==lt.height)return Xe.height-lt.height;if(Xe.frameRate!==lt.frameRate)return Xe.frameRate-lt.frameRate;if(Xe.videoRange!==lt.videoRange)return Ds.indexOf(Xe.videoRange)-Ds.indexOf(lt.videoRange);if(Xe.videoCodec!==lt.videoCodec){const vt=oi(Xe.videoCodec),Qt=oi(lt.videoCodec);if(vt!==Qt)return Qt-vt}if(Xe.uri===lt.uri&&Xe.codecSet!==lt.codecSet){const vt=Wi(Xe.codecSet),Qt=Wi(lt.codecSet);if(vt!==Qt)return Qt-vt}return Xe.averageBitrate!==lt.averageBitrate?Xe.averageBitrate-lt.averageBitrate:0});let be=he[0];if(this.steering&&(oe=this.steering.filterParsedLevels(oe),oe.length!==he.length)){for(let Xe=0;Xevt&&vt===To.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Qt)}break}const De=I&&!E,He={levels:oe,audioTracks:N,subtitleTracks:H,sessionData:a.sessionData,sessionKeys:a.sessionKeys,firstLevel:this._firstLevel,stats:a.stats,audio:I,video:E,altAudio:!De&&N.some(Xe=>!!Xe.url)};this.hls.trigger(l.MANIFEST_PARSED,He),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(r){const a=this._levels;if(a.length===0)return;if(r<0||r>=a.length){const be=new Error("invalid level idx"),Se=r<0;if(this.hls.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.LEVEL_SWITCH_ERROR,level:r,fatal:Se,error:be,reason:be.message}),Se)return;r=Math.min(r,a.length-1)}const _=this.currentLevelIndex,E=this.currentLevel,I=E?E.attrs["PATHWAY-ID"]:void 0,N=a[r],H=N.attrs["PATHWAY-ID"];if(this.currentLevelIndex=r,this.currentLevel=N,_===r&&N.details&&E&&I===H)return;this.log(`Switching to level ${r} (${N.height?N.height+"p ":""}${N.videoRange?N.videoRange+" ":""}${N.codecSet?N.codecSet+" ":""}@${N.bitrate})${H?" with Pathway "+H:""} from level ${_}${I?" with Pathway "+I:""}`);const oe={level:r,attrs:N.attrs,details:N.details,bitrate:N.bitrate,averageBitrate:N.averageBitrate,maxBitrate:N.maxBitrate,realBitrate:N.realBitrate,width:N.width,height:N.height,codecSet:N.codecSet,audioCodec:N.audioCodec,videoCodec:N.videoCodec,audioGroups:N.audioGroups,subtitleGroups:N.subtitleGroups,loaded:N.loaded,loadError:N.loadError,fragmentError:N.fragmentError,name:N.name,id:N.id,uri:N.uri,url:N.url,urlId:0,audioGroupIds:N.audioGroupIds,textGroupIds:N.textGroupIds};this.hls.trigger(l.LEVEL_SWITCHING,oe);const he=N.details;if(!he||he.live){const be=this.switchParams(N.uri,E==null?void 0:E.details,he);this.loadPlaylist(be)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(r){this.manualLevelIndex=r,this._startLevel===void 0&&(this._startLevel=r),r!==-1&&(this.level=r)}get firstLevel(){return this._firstLevel}set firstLevel(r){this._firstLevel=r}get startLevel(){if(this._startLevel===void 0){const r=this.hls.config.startLevel;return r!==void 0?r:this.hls.firstAutoLevel}return this._startLevel}set startLevel(r){this._startLevel=r}onError(r,a){a.fatal||!a.context||a.context.type===ye.LEVEL&&a.context.level===this.level&&this.checkRetry(a)}onFragBuffered(r,{frag:a}){if(a!==void 0&&a.type===Ye.MAIN){const _=a.elementaryStreams;if(!Object.keys(_).some(I=>!!_[I]))return;const E=this._levels[a.level];E!=null&&E.loadError&&(this.log(`Resetting level error count of ${E.loadError} on frag buffered`),E.loadError=0)}}onLevelLoaded(r,a){var _;const{level:E,details:I}=a,N=this._levels[E];if(!N){var H;this.warn(`Invalid level index ${E}`),(H=a.deliveryDirectives)!=null&&H.skip&&(I.deltaUpdateFailed=!0);return}E===this.currentLevelIndex?(N.fragmentError===0&&(N.loadError=0),this.playlistLoaded(E,a,N.details)):(_=a.deliveryDirectives)!=null&&_.skip&&(I.deltaUpdateFailed=!0)}loadPlaylist(r){super.loadPlaylist();const a=this.currentLevelIndex,_=this.currentLevel;if(_&&this.shouldLoadPlaylist(_)){let E=_.uri;if(r)try{E=r.addDirectives(E)}catch(N){this.warn(`Could not construct new URL with HLS Delivery Directives: ${N}`)}const I=_.attrs["PATHWAY-ID"];this.log(`Loading level index ${a}${(r==null?void 0:r.msn)!==void 0?" at sn "+r.msn+" part "+r.part:""} with${I?" Pathway "+I:""} ${E}`),this.clearTimer(),this.hls.trigger(l.LEVEL_LOADING,{url:E,level:a,pathwayId:_.attrs["PATHWAY-ID"],id:0,deliveryDirectives:r||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(r){this.level=r,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=r)}removeLevel(r){var a;const _=this._levels.filter((E,I)=>I!==r?!0:(this.steering&&this.steering.removeLevel(E),E===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,E.details&&E.details.fragments.forEach(N=>N.level=-1)),!1));za(_),this._levels=_,this.currentLevelIndex>-1&&(a=this.currentLevel)!=null&&a.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(l.LEVELS_UPDATED,{levels:_})}onLevelsUpdated(r,{levels:a}){this._levels=a}checkMaxAutoUpdated(){const{autoLevelCapping:r,maxAutoLevel:a,maxHdcpLevel:_}=this.hls;this._maxAutoLevel!==a&&(this._maxAutoLevel=a,this.hls.trigger(l.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:r,levels:this.levels,maxAutoLevel:a,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:_}))}}function nc(j){const r={};j.forEach(a=>{const _=a.groupId||"";a.id=r[_]=r[_]||0,r[_]++})}class fl{constructor(r){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=r}abort(r){for(const _ in this.keyUriToKeyInfo){const E=this.keyUriToKeyInfo[_].loader;if(E){var a;if(r&&r!==((a=E.context)==null?void 0:a.frag.type))return;E.abort()}}}detach(){for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r];(a.mediaKeySessionContext||a.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[r]}}destroy(){this.detach();for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r].loader;a&&a.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(r,a=x.KEY_LOAD_ERROR,_,E,I){return new Ni({type:b.NETWORK_ERROR,details:a,fatal:!1,frag:r,response:I,error:_,networkDetails:E})}loadClear(r,a){if(this.emeController&&this.config.emeEnabled){const{sn:_,cc:E}=r;for(let I=0;I{N.setKeyFormat(H)});break}}}}load(r){return!r.decryptdata&&r.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(r).then(a=>this.loadInternal(r,a)):this.loadInternal(r)}loadInternal(r,a){var _,E;a&&r.setKeyFormat(a);const I=r.decryptdata;if(!I){const he=new Error(a?`Expected frag.decryptdata to be defined after setting format ${a}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,he))}const N=I.uri;if(!N)return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${N}"`)));let H=this.keyUriToKeyInfo[N];if((_=H)!=null&&_.decryptdata.key)return I.key=H.decryptdata.key,Promise.resolve({frag:r,keyInfo:H});if((E=H)!=null&&E.keyLoadPromise){var oe;switch((oe=H.mediaKeySessionContext)==null?void 0:oe.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return H.keyLoadPromise.then(he=>(I.key=he.keyInfo.decryptdata.key,{frag:r,keyInfo:H}))}}switch(H=this.keyUriToKeyInfo[N]={decryptdata:I,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},I.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return I.keyFormat==="identity"?this.loadKeyHTTP(H,r):this.loadKeyEME(H,r);case"AES-128":return this.loadKeyHTTP(H,r);default:return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${I.method}"`)))}}loadKeyEME(r,a){const _={frag:a,keyInfo:r};if(this.emeController&&this.config.emeEnabled){const E=this.emeController.loadKey(_);if(E)return(r.keyLoadPromise=E.then(I=>(r.mediaKeySessionContext=I,_))).catch(I=>{throw r.keyLoadPromise=null,I})}return Promise.resolve(_)}loadKeyHTTP(r,a){const _=this.config,E=_.loader,I=new E(_);return a.keyLoader=r.loader=I,r.keyLoadPromise=new Promise((N,H)=>{const oe={keyInfo:r,frag:a,responseType:"arraybuffer",url:r.decryptdata.uri},he=_.keyLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{const{frag:vt,keyInfo:Qt,url:yr}=Xe;if(!vt.decryptdata||Qt!==this.keyUriToKeyInfo[yr])return H(this.createKeyLoadError(vt,x.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),lt));Qt.decryptdata.key=vt.decryptdata.key=new Uint8Array(De.data),vt.keyLoader=null,Qt.loader=null,N({frag:vt,keyInfo:Qt})},onError:(De,He,Xe,lt)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_ERROR,new Error(`HTTP Error ${De.code} loading key ${De.text}`),Xe,f({url:oe.url,data:void 0},De)))},onTimeout:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Xe))},onAbort:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.INTERNAL_ABORTED,new Error("key loading aborted"),Xe))}};I.load(oe,be,Se)})}resetLoader(r){const{frag:a,keyInfo:_,url:E}=r,I=_.loader;a.keyLoader===I&&(a.keyLoader=null,_.loader=null),delete this.keyUriToKeyInfo[E],I&&I.destroy()}}function ki(){return self.SourceBuffer||self.WebKitSourceBuffer}function El(){if(!si())return!1;const r=ki();return!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function"}function ic(){if(!El())return!1;const j=si();return typeof(j==null?void 0:j.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(r=>j.isTypeSupported(la(r,"video")))||["mp4a.40.2","fLaC"].some(r=>j.isTypeSupported(la(r,"audio"))))}function Uo(){var j;const r=ki();return typeof(r==null||(j=r.prototype)==null?void 0:j.changeType)=="function"}const no=250,Wa=2,dl=.1,Sl=.05;class ac{constructor(r,a,_,E){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=r,this.media=a,this.fragmentTracker=_,this.hls=E}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(r,a){const{config:_,media:E,stalled:I}=this;if(E===null)return;const{currentTime:N,seeking:H}=E,oe=this.seeking&&!H,he=!this.seeking&&H;if(this.seeking=H,N!==r){if(this.moved=!0,H||(this.nudgeRetry=0),I!==null){if(this.stallReported){const vt=self.performance.now()-I;R.warn(`playback not stuck anymore @${N}, after ${Math.round(vt)}ms`),this.stallReported=!1}this.stalled=null}return}if(he||oe){this.stalled=null;return}if(E.paused&&!H||E.ended||E.playbackRate===0||!hr.getBuffered(E).length){this.nudgeRetry=0;return}const be=hr.bufferInfo(E,N,0),Se=be.nextStart||0;if(H){const vt=be.len>Wa,Qt=!Se||a&&a.start<=N||Se-N>Wa&&!this.fragmentTracker.getPartialFragment(N);if(vt||Qt)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var De;if(!(be.len>0)&&!Se)return;const Qt=Math.max(Se,be.start||0)-N,yr=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Wr=(yr==null||(De=yr.details)==null?void 0:De.live)?yr.details.targetduration*2:Wa,Br=this.fragmentTracker.getPartialFragment(N);if(Qt>0&&(Qt<=Wr||Br)){E.paused||this._trySkipBufferHole(Br);return}}const He=self.performance.now();if(I===null){this.stalled=He;return}const Xe=He-I;if(!H&&Xe>=no&&(this._reportStall(be),!this.media))return;const lt=hr.bufferInfo(E,N,_.maxBufferHole);this._tryFixBufferStall(lt,Xe)}_tryFixBufferStall(r,a){const{config:_,fragmentTracker:E,media:I}=this;if(I===null)return;const N=I.currentTime,H=E.getPartialFragment(N);H&&(this._trySkipBufferHole(H)||!this.media)||(r.len>_.maxBufferHole||r.nextStart&&r.nextStart-N<_.maxBufferHole)&&a>_.highBufferWatchdogPeriod*1e3&&(R.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(r){const{hls:a,media:_,stallReported:E}=this;if(!E&&_){this.stallReported=!0;const I=new Error(`Playback stalling at @${_.currentTime} due to low buffer (${JSON.stringify(r)})`);R.warn(I.message),a.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.BUFFER_STALLED_ERROR,fatal:!1,error:I,buffer:r.len})}}_trySkipBufferHole(r){const{config:a,hls:_,media:E}=this;if(E===null)return 0;const I=E.currentTime,N=hr.bufferInfo(E,I,0),H=I0&&N.len<1&&E.readyState<3,be=H-I;if(be>0&&(oe||he)){if(be>a.maxBufferHole){const{fragmentTracker:De}=this;let He=!1;if(I===0){const Xe=De.getAppendedFrag(0,Ye.MAIN);Xe&&H1?(E=0,this.bitrateTest=!0):E=_.firstAutoLevel),_.nextLoadLevel=E,this.level=_.loadLevel,this.loadedmetadata=!1}a>0&&r===-1&&(this.log(`Override startPosition with lastCurrentTime @${a.toFixed(3)}`),r=a),this.state=pn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=r,this.tick()}else this._forceStartLoad=!0,this.state=pn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case pn.WAITING_LEVEL:{const{levels:a,level:_}=this,E=a==null?void 0:a[_],I=E==null?void 0:E.details;if(I&&(!I.live||this.levelLastLoaded===E)){if(this.waitForCdnTuneIn(I))break;this.state=pn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=pn.IDLE;break}break}case pn.FRAG_LOADING_WAITING_RETRY:{var r;const a=self.performance.now(),_=this.retryDate;if(!_||a>=_||(r=this.media)!=null&&r.seeking){const{levels:E,level:I}=this,N=E==null?void 0:E[I];this.resetStartWhenNotLoaded(N||null),this.state=pn.IDLE}}break}this.state===pn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:r,levelLastLoaded:a,levels:_,media:E}=this;if(a===null||!E&&(this.startFragRequested||!r.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const I=this.buffering?r.nextLoadLevel:r.loadLevel;if(!(_!=null&&_[I]))return;const N=_[I],H=this.getMainFwdBufferInfo();if(H===null)return;const oe=this.getLevelDetails();if(oe&&this._streamEnded(H,oe)){const lt={};this.altAudio&&(lt.type="video"),this.hls.trigger(l.BUFFER_EOS,lt),this.state=pn.ENDED;return}if(!this.buffering)return;r.loadLevel!==I&&r.manualLevel===-1&&this.log(`Adapting to level ${I} from level ${this.level}`),this.level=r.nextLoadLevel=I;const he=N.details;if(!he||this.state===pn.WAITING_LEVEL||he.live&&this.levelLastLoaded!==N){this.level=I,this.state=pn.WAITING_LEVEL;return}const be=H.len,Se=this.getMaxBufferLength(N.maxBitrate);if(be>=Se)return;this.backtrackFragment&&this.backtrackFragment.start>H.end&&(this.backtrackFragment=null);const De=this.backtrackFragment?this.backtrackFragment.start:H.end;let He=this.getNextFragment(De,he);if(this.couldBacktrack&&!this.fragPrevious&&He&&He.sn!=="initSegment"&&this.fragmentTracker.getState(He)!==Zs.OK){var Xe;const vt=((Xe=this.backtrackFragment)!=null?Xe:He).sn-he.startSN,Qt=he.fragments[vt-1];Qt&&He.cc===Qt.cc&&(He=Qt,this.fragmentTracker.removeFragment(Qt))}else this.backtrackFragment&&H.len&&(this.backtrackFragment=null);if(He&&this.isLoopLoading(He,De)){if(!He.gap){const vt=this.audioOnly&&!this.altAudio?Y.AUDIO:Y.VIDEO,Qt=(vt===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Qt&&this.afterBufferFlushed(Qt,vt,Ye.MAIN)}He=this.getNextFragmentLoopLoading(He,he,H,Ye.MAIN,Se)}He&&(He.initSegment&&!He.initSegment.data&&!this.bitrateTest&&(He=He.initSegment),this.loadFragment(He,N,De))}loadFragment(r,a,_){const E=this.fragmentTracker.getState(r);this.fragCurrent=r,E===Zs.NOT_LOADED||E===Zs.PARTIAL?r.sn==="initSegment"?this._loadInitSegment(r,a):this.bitrateTest?(this.log(`Fragment ${r.sn} of level ${r.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(r,a)):(this.startFragRequested=!0,super.loadFragment(r,a,_)):this.clearTrackerIfNeeded(r)}getBufferedFrag(r){return this.fragmentTracker.getBufferedFrag(r,Ye.MAIN)}followingBufferedFrag(r){return r?this.getBufferedFrag(r.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:r,media:a}=this;if(a!=null&&a.readyState){let _;const E=this.getAppendedFrag(a.currentTime);E&&E.start>1&&this.flushMainBuffer(0,E.start-1);const I=this.getLevelDetails();if(I!=null&&I.live){const H=this.getMainFwdBufferInfo();if(!H||H.len{const N=I.audioCodec;N&&(_=_||N.indexOf("mp4a.40.2")!==-1,E=E||N.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=_&&E&&!Uo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=a.levels,this.startFragRequested=!1}onLevelLoading(r,a){const{levels:_}=this;if(!_||this.state!==pn.IDLE)return;const E=_[a.level];(!E.details||E.details.live&&this.levelLastLoaded!==E||this.waitForCdnTuneIn(E.details))&&(this.state=pn.WAITING_LEVEL)}onLevelLoaded(r,a){var _;const{levels:E}=this,I=a.level,N=a.details,H=N.totalduration;if(!E){this.warn(`Levels were reset while loading level ${I}`);return}this.log(`Level ${I} loaded [${N.startSN},${N.endSN}]${N.lastPartSn?`[part-${N.lastPartSn}-${N.lastPartIndex}]`:""}, cc [${N.startCC}, ${N.endCC}] duration:${H}`);const oe=E[I],he=this.fragCurrent;he&&(this.state===pn.FRAG_LOADING||this.state===pn.FRAG_LOADING_WAITING_RETRY)&&he.level!==a.level&&he.loader&&this.abortCurrentFrag();let be=0;if(N.live||(_=oe.details)!=null&&_.live){var Se;if(this.checkLiveUpdate(N),N.deltaUpdateFailed)return;be=this.alignPlaylists(N,oe.details,(Se=this.levelLastLoaded)==null?void 0:Se.details)}if(oe.details=N,this.levelLastLoaded=oe,this.hls.trigger(l.LEVEL_UPDATED,{details:N,level:I}),this.state===pn.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=pn.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,be),this.tick()}_handleFragmentLoadProgress(r){var a;const{frag:_,part:E,payload:I}=r,{levels:N}=this;if(!N){this.warn(`Levels were reset while fragment load was in progress. Fragment ${_.sn} of level ${_.level} will not be buffered`);return}const H=N[_.level],oe=H.details;if(!oe){this.warn(`Dropping fragment ${_.sn} of level ${_.level} after level details were reset`),this.fragmentTracker.removeFragment(_);return}const he=H.videoCodec,be=oe.PTSKnown||!oe.live,Se=(a=_.initSegment)==null?void 0:a.data,De=this._getAudioCodec(H),He=this.transmuxer=this.transmuxer||new Xn(this.hls,Ye.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Xe=E?E.index:-1,lt=Xe!==-1,vt=new mn(_.level,_.sn,_.stats.chunkCount,I.byteLength,Xe,lt),Qt=this.initPTS[_.cc];He.push(I,Se,De,he,_,E,oe.totalduration,be,vt,Qt)}onAudioTrackSwitching(r,a){const _=this.altAudio;if(!!!a.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const N=this.fragCurrent;N&&(this.log("Switching to main audio track, cancel main fragment load"),N.abortRequests(),this.fragmentTracker.removeFragment(N)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const I=this.hls;_&&(I.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),I.trigger(l.AUDIO_TRACK_SWITCHED,a)}}onAudioTrackSwitched(r,a){const _=a.id,E=!!this.hls.audioTracks[_].url;if(E){const I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=E,this.tick()}onBufferCreated(r,a){const _=a.tracks;let E,I,N=!1;for(const H in _){const oe=_[H];if(oe.id==="main"){if(I=H,E=oe,H==="video"){const he=_[H];he&&(this.videoBuffer=he.buffer)}}else N=!0}N&&E?(this.log(`Alternate track found, use ${I}.buffered to schedule main fragment loading`),this.mediaBuffer=E.buffer):this.mediaBuffer=this.media}onFragBuffered(r,a){const{frag:_,part:E}=a;if(_&&_.type!==Ye.MAIN)return;if(this.fragContextChanged(_)){this.warn(`Fragment ${_.sn}${E?" p: "+E.index:""} of level ${_.level} finished buffering, but was aborted. state: ${this.state}`),this.state===pn.PARSED&&(this.state=pn.IDLE);return}const I=E?E.stats:_.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),_.sn!=="initSegment"&&(this.fragPrevious=_),this.fragBufferedComplete(_,E)}onError(r,a){var _;if(a.fatal){this.state=pn.ERROR;return}switch(a.details){case x.FRAG_GAP:case x.FRAG_PARSING_ERROR:case x.FRAG_DECRYPT_ERROR:case x.FRAG_LOAD_ERROR:case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_ERROR:case x.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ye.MAIN,a);break;case x.LEVEL_LOAD_ERROR:case x.LEVEL_LOAD_TIMEOUT:case x.LEVEL_PARSING_ERROR:!a.levelRetry&&this.state===pn.WAITING_LEVEL&&((_=a.context)==null?void 0:_.type)===ye.LEVEL&&(this.state=pn.IDLE);break;case x.BUFFER_APPEND_ERROR:case x.BUFFER_FULL_ERROR:if(!a.parent||a.parent!=="main")return;if(a.details===x.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(a)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case x.INTERNAL_EXCEPTION:this.recoverWorkerError(a);break}}checkBuffer(){const{media:r,gapController:a}=this;if(!(!r||!a||!r.readyState)){if(this.loadedmetadata||!hr.getBuffered(r).length){const _=this.state!==pn.IDLE?this.fragCurrent:null;a.poll(this.lastCurrentTime,_)}this.lastCurrentTime=r.currentTime}}onFragLoadEmergencyAborted(){this.state=pn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(r,{type:a}){if(a!==Y.AUDIO||this.audioOnly&&!this.altAudio){const _=(a===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(_,a,Ye.MAIN),this.tick()}}onLevelsUpdated(r,a){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=a.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:r}=this;if(!r)return;const a=r.currentTime;let _=this.startPosition;if(_>=0&&a<_){if(r.seeking){this.log(`could not seek to ${_}, already seeking at ${a}`);return}const E=hr.getBuffered(r),N=(E.length?E.start(0):0)-_;N>0&&(N{const{hls:E}=this;if(!_||this.fragContextChanged(r))return;a.fragmentError=0,this.state=pn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const I=r.stats;I.parsing.start=I.parsing.end=I.buffering.start=I.buffering.end=self.performance.now(),E.trigger(l.FRAG_LOADED,_),r.bitrateTest=!1})}_handleTransmuxComplete(r){var a;const _="main",{hls:E}=this,{remuxResult:I,chunkMeta:N}=r,H=this.getCurrentContext(N);if(!H){this.resetWhenMissingContext(N);return}const{frag:oe,part:he,level:be}=H,{video:Se,text:De,id3:He,initSegment:Xe}=I,{details:lt}=be,vt=this.altAudio?void 0:I.audio;if(this.fragContextChanged(oe)){this.fragmentTracker.removeFragment(oe);return}if(this.state=pn.PARSING,Xe){if(Xe!=null&&Xe.tracks){const Tr=oe.initSegment||oe;this._bufferInitSegment(be,Xe.tracks,Tr,N),E.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:Tr,id:_,tracks:Xe.tracks})}const Qt=Xe.initPTS,yr=Xe.timescale;y(Qt)&&(this.initPTS[oe.cc]={baseTime:Qt,timescale:yr},E.trigger(l.INIT_PTS_FOUND,{frag:oe,id:_,initPTS:Qt,timescale:yr}))}if(Se&<&&oe.sn!=="initSegment"){const Qt=lt.fragments[oe.sn-1-lt.startSN],yr=oe.sn===lt.startSN,Tr=!Qt||oe.cc>Qt.cc;if(I.independent!==!1){const{startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un}=Se;if(he)he.elementaryStreams[Se.type]={startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un};else if(Se.firstKeyFrame&&Se.independent&&N.id===1&&!Tr&&(this.couldBacktrack=!0),Se.dropped&&Se.independent){const Hn=this.getMainFwdBufferInfo(),li=(Hn?Hn.end:this.getLoadPosition())+this.config.maxBufferHole,En=Se.firstKeyFramePTS?Se.firstKeyFramePTS:Wr;if(!yr&&liWa&&(oe.gap=!0);oe.setElementaryStreamInfo(Se.type,Wr,Br,Cn,un),this.backtrackFragment&&(this.backtrackFragment=oe),this.bufferFragmentData(Se,oe,he,N,yr||Tr)}else if(yr||Tr)oe.gap=!0;else{this.backtrack(oe);return}}if(vt){const{startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}=vt;he&&(he.elementaryStreams[Y.AUDIO]={startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}),oe.setElementaryStreamInfo(Y.AUDIO,Qt,yr,Tr,Wr),this.bufferFragmentData(vt,oe,he,N)}if(lt&&He!=null&&(a=He.samples)!=null&&a.length){const Qt={id:_,frag:oe,details:lt,samples:He.samples};E.trigger(l.FRAG_PARSING_METADATA,Qt)}if(lt&&De){const Qt={id:_,frag:oe,details:lt,samples:De.samples};E.trigger(l.FRAG_PARSING_USERDATA,Qt)}}_bufferInitSegment(r,a,_,E){if(this.state!==pn.PARSING)return;this.audioOnly=!!a.audio&&!a.video,this.altAudio&&!this.audioOnly&&delete a.audio;const{audio:I,video:N,audiovideo:H}=a;if(I){let oe=r.audioCodec;const he=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){oe&&(oe.indexOf("mp4a.40.5")!==-1?oe="mp4a.40.2":oe="mp4a.40.5");const be=I.metadata;be&&"channelCount"in be&&(be.channelCount||1)!==1&&he.indexOf("firefox")===-1&&(oe="mp4a.40.5")}oe&&oe.indexOf("mp4a.40.5")!==-1&&he.indexOf("android")!==-1&&I.container!=="audio/mpeg"&&(oe="mp4a.40.2",this.log(`Android: force audio codec to ${oe}`)),r.audioCodec&&r.audioCodec!==oe&&this.log(`Swapping manifest audio codec "${r.audioCodec}" for "${oe}"`),I.levelCodec=oe,I.id="main",this.log(`Init audio buffer, container:${I.container}, codecs[selected/level/parsed]=[${oe||""}/${r.audioCodec||""}/${I.codec}]`)}N&&(N.levelCodec=r.videoCodec,N.id="main",this.log(`Init video buffer, container:${N.container}, codecs[level/parsed]=[${r.videoCodec||""}/${N.codec}]`)),H&&this.log(`Init audiovideo buffer, container:${H.container}, codecs[level/parsed]=[${r.codecs}/${H.codec}]`),this.hls.trigger(l.BUFFER_CODECS,a),Object.keys(a).forEach(oe=>{const be=a[oe].initSegment;be!=null&&be.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:oe,data:be,frag:_,part:null,chunkMeta:E,parent:_.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ye.MAIN)}backtrack(r){this.couldBacktrack=!0,this.backtrackFragment=r,this.resetTransmuxer(),this.flushBufferGap(r),this.fragmentTracker.removeFragment(r),this.fragPrevious=null,this.nextLoadPosition=r.start,this.state=pn.IDLE}checkFragmentChanged(){const r=this.media;let a=null;if(r&&r.readyState>1&&r.seeking===!1){const _=r.currentTime;if(hr.isBuffered(r,_)?a=this.getAppendedFrag(_):hr.isBuffered(r,_+.1)&&(a=this.getAppendedFrag(_+.1)),a){this.backtrackFragment=null;const E=this.fragPlaying,I=a.level;(!E||a.sn!==E.sn||E.level!==I)&&(this.fragPlaying=a,this.hls.trigger(l.FRAG_CHANGED,{frag:a}),(!E||E.level!==I)&&this.hls.trigger(l.LEVEL_SWITCHED,{level:I}))}}}get nextLevel(){const r=this.nextBufferedFrag;return r?r.level:-1}get currentFrag(){const r=this.media;return r?this.fragPlaying||this.getAppendedFrag(r.currentTime):null}get currentProgramDateTime(){const r=this.media;if(r){const a=r.currentTime,_=this.currentFrag;if(_&&y(a)&&y(_.programDateTime)){const E=_.programDateTime+(a-_.start)*1e3;return new Date(E)}}return null}get currentLevel(){const r=this.currentFrag;return r?r.level:-1}get nextBufferedFrag(){const r=this.currentFrag;return r?this.followingBufferedFrag(r):null}get forceStartLoad(){return this._forceStartLoad}}class Xu{static get version(){return"1.5.20"}static isMSESupported(){return El()}static isSupported(){return ic()}static getMediaSource(){return si()}static get Events(){return l}static get ErrorTypes(){return b}static get ErrorDetails(){return x}static get DefaultConfig(){return Xu.defaultConfig?Xu.defaultConfig:To}static set DefaultConfig(r){Xu.defaultConfig=r}constructor(r={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Zn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,$(r.debug||!1,"Hls instance");const a=this.config=yo(Xu.DefaultConfig,r);this.userConfig=r,a.progressive&&gc(a);const{abrController:_,bufferController:E,capLevelController:I,errorController:N,fpsController:H}=a,oe=new N(this),he=this.abrController=new _(this),be=this.bufferController=new E(this),Se=this.capLevelController=new I(this),De=new H(this),He=new Or(this),Xe=new fa(this),lt=a.contentSteeringController,vt=lt?new lt(this):null,Qt=this.levelController=new rc(this,vt),yr=new Jt(this),Tr=new fl(this.config),Wr=this.streamController=new pl(this,yr,Tr);Se.setStreamController(Wr),De.setStreamController(Wr);const Br=[He,Qt,Wr];vt&&Br.splice(1,0,vt),this.networkControllers=Br;const Cn=[he,be,Se,De,Xe,yr];this.audioTrackController=this.createController(a.audioTrackController,Br);const un=a.audioStreamController;un&&Br.push(new un(this,yr,Tr)),this.subtitleTrackController=this.createController(a.subtitleTrackController,Br);const Hn=a.subtitleStreamController;Hn&&Br.push(new Hn(this,yr,Tr)),this.createController(a.timelineController,Cn),Tr.emeController=this.emeController=this.createController(a.emeController,Cn),this.cmcdController=this.createController(a.cmcdController,Cn),this.latencyController=this.createController(Ls,Cn),this.coreComponents=Cn,Br.push(oe);const li=oe.onErrorOut;typeof li=="function"&&this.on(l.ERROR,li,oe)}createController(r,a){if(r){const _=new r(this);return a&&a.push(_),_}return null}on(r,a,_=this){this._emitter.on(r,a,_)}once(r,a,_=this){this._emitter.once(r,a,_)}removeAllListeners(r){this._emitter.removeAllListeners(r)}off(r,a,_=this,E){this._emitter.off(r,a,_,E)}listeners(r){return this._emitter.listeners(r)}emit(r,a,_){return this._emitter.emit(r,a,_)}trigger(r,a){if(this.config.debug)return this.emit(r,r,a);try{return this.emit(r,r,a)}catch(_){if(R.error("An internal error happened while handling event "+r+'. Error message: "'+_.message+'". Here is a stacktrace:',_),!this.triggeringException){this.triggeringException=!0;const E=r===l.ERROR;this.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.INTERNAL_EXCEPTION,fatal:E,event:r,error:_}),this.triggeringException=!1}}return!1}listenerCount(r){return this._emitter.listenerCount(r)}destroy(){R.log("destroy"),this.trigger(l.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(a=>a.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(a=>a.destroy()),this.coreComponents.length=0;const r=this.config;r.xhrSetup=r.fetchSetup=void 0,this.userConfig=null}attachMedia(r){R.log("attachMedia"),this._media=r,this.trigger(l.MEDIA_ATTACHING,{media:r})}detachMedia(){R.log("detachMedia"),this.trigger(l.MEDIA_DETACHING,void 0),this._media=null}loadSource(r){this.stopLoad();const a=this.media,_=this.url,E=this.url=s.buildAbsoluteURL(self.location.href,r,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,R.log(`loadSource:${E}`),a&&_&&(_!==E||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(a)),this.trigger(l.MANIFEST_LOADING,{url:r})}startLoad(r=-1){R.log(`startLoad(${r})`),this.started=!0,this.resumeBuffering();for(let a=0;a{r.resumeBuffering&&r.resumeBuffering()})}pauseBuffering(){R.log("pause buffering"),this.networkControllers.forEach(r=>{r.pauseBuffering&&r.pauseBuffering()})}swapAudioCodec(){R.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){R.log("recoverMediaError");const r=this._media;this.detachMedia(),r&&this.attachMedia(r)}removeLevel(r){this.levelController.removeLevel(r)}get levels(){const r=this.levelController.levels;return r||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(r){R.log(`set currentLevel:${r}`),this.levelController.manualLevel=r,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(r){R.log(`set nextLevel:${r}`),this.levelController.manualLevel=r,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(r){R.log(`set loadLevel:${r}`),this.levelController.manualLevel=r}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(r){this.levelController.nextLoadLevel=r}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(r){R.log(`set firstLevel:${r}`),this.levelController.firstLevel=r}get startLevel(){const r=this.levelController.startLevel;return r===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:r}set startLevel(r){R.log(`set startLevel:${r}`),r!==-1&&(r=Math.max(r,this.minAutoLevel)),this.levelController.startLevel=r}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(r){const a=!!r;a!==this.config.capLevelToPlayerSize&&(a?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=a)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimate():NaN}set bandwidthEstimate(r){this.abrController.resetEstimator(r)}get ttfbEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimateTTFB():NaN}set autoLevelCapping(r){this._autoLevelCapping!==r&&(R.log(`set autoLevelCapping:${r}`),this._autoLevelCapping=r,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(r){Is(r)&&this._maxHdcpLevel!==r&&(this._maxHdcpLevel=r,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:r,config:{minAutoBitrate:a}}=this;if(!r)return 0;const _=r.length;for(let E=0;E<_;E++)if(r[E].maxBitrate>=a)return E;return 0}get maxAutoLevel(){const{levels:r,autoLevelCapping:a,maxHdcpLevel:_}=this;let E;if(a===-1&&r!=null&&r.length?E=r.length-1:E=a,_)for(let I=E;I--;){const N=r[I].attrs["HDCP-LEVEL"];if(N&&N<=_)return I}return E}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(r){this.abrController.nextAutoLevel=r}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(r){var a;return(a=this.audioTrackController)==null?void 0:a.setAudioOption(r)}setSubtitleOption(r){var a;return(a=this.subtitleTrackController)==null||a.setSubtitleOption(r),null}get allAudioTracks(){const r=this.audioTrackController;return r?r.allAudioTracks:[]}get audioTracks(){const r=this.audioTrackController;return r?r.audioTracks:[]}get audioTrack(){const r=this.audioTrackController;return r?r.audioTrack:-1}set audioTrack(r){const a=this.audioTrackController;a&&(a.audioTrack=r)}get allSubtitleTracks(){const r=this.subtitleTrackController;return r?r.allSubtitleTracks:[]}get subtitleTracks(){const r=this.subtitleTrackController;return r?r.subtitleTracks:[]}get subtitleTrack(){const r=this.subtitleTrackController;return r?r.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(r){const a=this.subtitleTrackController;a&&(a.subtitleTrack=r)}get subtitleDisplay(){const r=this.subtitleTrackController;return r?r.subtitleDisplay:!1}set subtitleDisplay(r){const a=this.subtitleTrackController;a&&(a.subtitleDisplay=r)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(r){this.config.lowLatencyMode=r}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Xu.defaultConfig=void 0},53280:function(d,v,e){"use strict";e.d(v,{D:function(){return n}});function t(s,u,f){var c=f||{},h=c.noTrailing,o=h===void 0?!1:h,i=c.noLeading,y=i===void 0?!1:i,p=c.debounceMode,g=p===void 0?void 0:p,l,b=!1,x=0;function O(){l&&clearTimeout(l)}function k(T){var F=T||{},$=F.upcomingOnly,R=$===void 0?!1:$;O(),b=!R}function C(){for(var T=arguments.length,F=new Array(T),$=0;$s?y?(x=Date.now(),o||(l=setTimeout(g?Z:W,s))):W():o!==!0&&(l=setTimeout(g?Z:W,g===void 0?s-K:s))}return C.cancel=k,C}function n(s,u,f){var c=f||{},h=c.atBegin,o=h===void 0?!1:h;return t(s,u,{debounceMode:o!==!1})}}},__webpack_module_cache__={};function __webpack_require__(d){var v=__webpack_module_cache__[d];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[d]={id:d,loaded:!1,exports:{}};return __webpack_modules__[d].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(d){var v=d&&d.__esModule?function(){return d.default}:function(){return d};return __webpack_require__.d(v,{a:v}),v}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var n=Object.create(null);__webpack_require__.r(n);var s={};v=v||[null,d({}),d([]),d(d)];for(var u=t&2&&e;typeof u=="object"&&!~v.indexOf(u);u=d(u))Object.getOwnPropertyNames(u).forEach(function(f){s[f]=function(){return e[f]}});return s.default=function(){return e},__webpack_require__.d(n,s),n}}(),function(){__webpack_require__.d=function(d,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(d){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](d,v),v},[]))}}(),function(){__webpack_require__.u=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",570:"p__Home__Detail__OnlineNum__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",672:"p__Home__Detail__ShixunContext__Detail__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8365:"p__Home__Detail__ShixunContext__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"9ac508ea",67:"1b03fe25",109:"23b414f9",129:"7c107158",195:"ff3754fd",264:"c38192df",265:"edaf4987",292:"443bec8c",310:"7ae51cab",316:"1f60ada6",337:"c5e9c609",342:"b0e1f94c",354:"d4d139cf",479:"9ea93239",485:"04973f6c",508:"35199f0d",532:"9b2862bf",533:"fab912ee",547:"e2501473",556:"1bfc920d",559:"20d87e10",570:"46fb4a67",576:"6fb71e35",629:"44a1d9a5",643:"ea10c4e3",671:"4a609b8d",672:"6fe31085",680:"b3e3b88f",700:"2d37b76c",737:"b82f98c3",741:"ac5fd360",799:"cf84c2b6",869:"bd8b60a0",895:"3de27cee",921:"c00eda41",928:"43ef0607",981:"24da50c7",1006:"14b4fe97",1043:"734ab6b5",1045:"2f8e859a",1048:"32d3135e",1070:"7d8b9bee",1144:"c90eccaf",1148:"2b8b425e",1154:"8cb80842",1211:"bdd96f1a",1253:"9866613d",1257:"a4ad3423",1265:"d66454fb",1274:"5f6ea65a",1276:"c0280778",1343:"d552f9e1",1416:"01cd13f5",1423:"84a49c92",1427:"b6d95f20",1450:"80028a47",1461:"98eccc6e",1462:"fcf08abc",1470:"a17a6b1a",1475:"cb4b2a16",1482:"151ba2e9",1512:"1c085b86",1520:"659feacb",1531:"5dd24ec2",1545:"3ba5d8a6",1578:"b2e43839",1581:"63af3f9e",1582:"915a58e3",1646:"e6e27b60",1657:"ca141d10",1660:"76bc70ce",1674:"22dfee6c",1702:"4c6e98c0",1713:"af1e7834",1717:"31989bc4",1727:"cdcff911",1783:"fb7f634f",1799:"5ae9afa7",1810:"bd7bcaf7",1831:"c95840bf",1836:"ba892db7",1855:"b9008312",1880:"240b7cfc",1939:"90e4aae3",1953:"41f253c0",1962:"035c7b2e",2011:"59d51f98",2045:"7744bebe",2076:"e8fd98b8",2102:"5e265def",2141:"7cad8736",2216:"e401f0e5",2240:"a6bcb853",2245:"4c051301",2249:"f4830452",2254:"5767ca2a",2300:"bc020f4e",2303:"ea60e774",2307:"b1570e49",2338:"001fe20f",2339:"96015530",2386:"192e235c",2396:"133c621f",2404:"760d076d",2412:"ebd8acc2",2425:"a585e39e",2443:"5d5c2c0a",2476:"746ff3fb",2494:"68080a87",2501:"3421c5a3",2529:"922e34cf",2538:"de4a3723",2539:"53a86b90",2548:"0b85ce47",2570:"5c3cf4c1",2594:"e87d3761",2603:"d25ee242",2659:"17df4e97",2707:"557891ae",2806:"6f510fd6",2819:"0eda6838",2823:"4e52f1d5",2826:"ec49f5dc",2829:"22300e28",2837:"54a82605",2865:"ba754a64",2875:"d8d4ea8b",2884:"759b26c5",2969:"ab3357d7",2983:"cf277769",3006:"1018d70d",3133:"9bf3f89c",3141:"f83a07d0",3157:"95e29ab0",3183:"f73c574d",3198:"8e655451",3212:"c36da84a",3220:"1c51e01d",3247:"70bb53ae",3260:"e2b1e30f",3276:"2d03a6b2",3282:"93dc2500",3317:"f490a8bd",3332:"de5fd255",3355:"64861e9f",3356:"9f6626e9",3391:"56cfa576",3433:"84229bfc",3442:"2579c500",3447:"2dcdbd80",3451:"d670911f",3496:"be8a8ab5",3509:"ff053313",3550:"3dc83156",3581:"b210cd71",3585:"48f0e96e",3665:"c9c1b80d",3668:"e507d4b1",3697:"481a10d9",3747:"db96de33",3777:"d5b0f2f1",3784:"43096805",3805:"9dbcb95e",3862:"67698974",3873:"3c923d12",3885:"f87f7f15",3910:"a493ef38",3935:"e6712421",3951:"c269f59c",3985:"344a3358",3987:"5cecd51b",4014:"27a8e97c",4017:"27999042",4030:"98386769",4056:"4e2d6a20",4058:"733be6bb",4078:"2f2bd21e",4088:"236723f3",4093:"3d49e4d3",4105:"33d2fb15",4144:"346ee736",4164:"7fe0d579",4216:"121e47cd",4217:"27457f8a",4227:"89813cd9",4259:"bb097cc9",4264:"735355f2",4347:"08ede17f",4354:"140899b7",4360:"cf5efa52",4449:"e25d1468",4492:"22bee88f",4496:"7d65f4e3",4498:"e0fe8700",4504:"df6e7341",4514:"85bdfa82",4520:"2c66721b",4546:"3002feb8",4565:"7fc1f44d",4572:"5a20aab4",4599:"61def4cb",4601:"dbf04368",4610:"85d72c01",4621:"7c943553",4628:"ece2c60c",4662:"573e389f",4685:"c33f1528",4715:"8b0e824d",4736:"7bcd9282",4741:"9894aecc",4757:"093ffb1c",4766:"02d2a4bb",4770:"ab782b26",4790:"619413e4",4795:"71134cdd",4797:"a24e92db",4800:"78e41603",4849:"021f3509",4850:"1edda4b7",4862:"56f5d557",4884:"1bfc8e94",4889:"5ecaf2f9",4900:"c2fa0b2f",4928:"227748ad",4973:"77e402c6",4994:"e7e39679",5022:"a5b53c62",5043:"4edab20d",5048:"ddacfba7",5060:"85dafcc6",5096:"e3e63460",5111:"e39ac596",5125:"acbd9ee7",5148:"ac491994",5176:"a790896e",5179:"3df72677",5186:"69a582a1",5191:"56492f84",5238:"5e83b6b6",5290:"5dabcdc2",5297:"01e5cf8e",5319:"c175de8f",5321:"1163c84e",5335:"69e514be",5354:"7ae70604",5357:"a3975490",5359:"f48142d8",5382:"19ba1755",5402:"b2b43a8f",5416:"454536b7",5434:"38b302a6",5470:"7ba15cd7",5494:"d89549c4",5518:"084658a4",5549:"191e2bdd",5572:"4a5cf530",5573:"b212b8fc",5599:"7838f994",5624:"8171e0ad",5631:"e00d3d36",5650:"ba1da951",5679:"4a090bef",5705:"b3825926",5729:"9adaabc9",5757:"2843b608",5764:"e0d7e586",5775:"af94f477",5786:"ad639f51",5798:"0f3b4e72",5816:"e5c76197",5825:"5b09c2f0",5876:"5eded409",5888:"2c4a7d21",5891:"2f93a0e0",5895:"c50382fc",5902:"936d3fb0",5915:"4d0533cf",5972:"629273e1",5992:"e6d5abcd",6029:"2baf21d5",6034:"1f3482f6",6045:"d268f87f",6047:"3ce45acd",6052:"a79da40f",6063:"92b0e253",6069:"c65393c8",6126:"99519171",6127:"01711ee9",6170:"ba8df8d7",6265:"da67525e",6270:"6ad7eee0",6277:"b087d596",6312:"87886f73",6328:"40c542bf",6366:"2abd7b37",6378:"7f3a946a",6411:"8c37c144",6434:"02822e0b",6444:"e95f4bcd",6452:"e7375ea9",6531:"bde1c8f7",6541:"e931a4f6",6583:"d7b48c64",6587:"cd25c8fd",6634:"5bce8e25",6651:"7b40db2e",6685:"daa8e12d",6729:"052f470f",6741:"4f3739f8",6758:"0ab6597f",6774:"59d4d618",6784:"23863b47",6788:"60b56538",6796:"038925da",6805:"2b9be050",6820:"460f9f28",6845:"df3b3798",6882:"e2cc0627",6883:"6cb80143",6904:"e05e0e05",6913:"4f9e45e7",6949:"04b3b3a0",6963:"2c915c8f",6982:"3201a542",7008:"6c9735e2",7043:"77ac705f",7045:"02381632",7046:"2ef819a1",7058:"9c217ae2",7062:"8908a67a",7084:"46ccce72",7156:"e7466006",7178:"45d02e76",7182:"1bb7addb",7242:"a3c62e97",7260:"3262bb7d",7331:"2e27a23b",7333:"b7f12ce6",7365:"1005464f",7374:"b2456c08",7395:"bef0fbea",7460:"a15b8245",7477:"dab0e013",7482:"2b1ff0ba",7527:"4cc018f9",7545:"c5114a0d",7560:"0d7214ac",7589:"6a05399d",7591:"c8233ce9",7614:"6afc9f7f",7622:"4ee5b394",7686:"4fcec9f9",7706:"c2a79e40",7806:"5f66ffb2",7852:"2b9824d7",7855:"91bc853e",7857:"ada9e40a",7878:"4d62eb43",7884:"6b238432",7922:"b3598405",7948:"7deb7765",7964:"29aed9a1",8014:"c86d8b0b",8062:"bc5d75b5",8072:"ef31263e",8077:"0d509b4e",8085:"3b02355b",8089:"d536b13a",8143:"272c6259",8155:"8de8547a",8161:"83c5fa9a",8237:"bb41ce1e",8241:"37533b90",8302:"81bee336",8307:"39b7a18c",8340:"abddc432",8350:"07df8a75",8365:"fe36cabc",8398:"da4d9438",8431:"225d8800",8435:"5c70cbb5",8447:"47aafa2b",8517:"f8ed41de",8561:"333e8ec9",8563:"d2893bd3",8634:"eb0aff70",8639:"d77439de",8665:"4bf36fa7",8688:"bc5b75f1",8689:"aa82d7a4",8723:"eed3bf93",8737:"ce7dad23",8776:"0ad26240",8782:"21c3c877",8787:"3edcf911",8797:"38e94dd2",8823:"4750ef8d",8827:"4964829f",8842:"9f25a3e2",8866:"41d4573d",8882:"16f53671",8885:"358e2d0f",8898:"d002bcd8",8909:"1e29403e",8920:"7f82440c",8963:"790aecdd",8982:"74d73bf1",8999:"73348dc2",9076:"f5a17106",9104:"bbcb2345",9133:"0abb8821",9186:"4559c3b0",9205:"110ee97a",9215:"21ebbcbd",9252:"0d791a59",9260:"cf5f8140",9332:"7ab4403d",9360:"edc9b326",9366:"b8d2b577",9391:"68a85af0",9404:"9fcc3d3e",9408:"dd5ae7b5",9416:"bf5770f9",9487:"043b2ef8",9489:"01da7cf5",9507:"c5204a25",9519:"7bbb0e22",9532:"859e05a2",9554:"ed358e7b",9559:"f794af19",9590:"827b71ea",9647:"cbd4e1e3",9649:"92cccb86",9674:"40d102bc",9677:"4bc5636d",9695:"763acec3",9715:"e467a322",9716:"b929ed6f",9785:"1224ce29",9788:"04775768",9883:"2e3b3113",9890:"be84cd24",9891:"2e66be10",9895:"b8e31ff2",9921:"cdf9721a",9922:"6dd34c9c",9928:"5989f5e0",9944:"ac8120d6",9950:"74f6dfb2",9968:"17466785"}[d]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"91ed81ab",67:"1ad7d0db",109:"1a7fc455",195:"65632591",264:"5fd9b3fc",265:"d92c6f86",292:"9a0e8f6b",310:"06815302",337:"ee05039e",342:"ab091f90",479:"bba9e475",485:"d63578fe",508:"82593858",532:"c829a014",533:"5fee20bc",547:"5581debc",556:"892f4292",559:"c49aa5ba",576:"eb3ce426",643:"22ded693",680:"e67e9e01",700:"4c1ff0fa",737:"98eb2f74",799:"b3487c4b",869:"6740e24b",895:"ad846737",921:"30cc7e9b",928:"0277270a",1006:"2263131d",1043:"e8c0878b",1045:"0eeb3595",1048:"dafc3f4f",1070:"e67e9e01",1148:"754fff63",1211:"bdb8faab",1253:"46aca33c",1257:"156e8f74",1265:"d902bdae",1276:"bbc6eeec",1343:"b7f33c89",1416:"735363dc",1423:"5c4a76fc",1427:"f91322f7",1450:"1edcc2ed",1461:"917cbb16",1470:"183c9793",1475:"d22fbaa0",1482:"d159af07",1512:"f3653a35",1520:"f7300d0e",1545:"04d6c7d3",1578:"efcb0bdc",1581:"efffd7c0",1582:"8e45b6ff",1657:"ddd6a700",1674:"fdbc1e05",1702:"fca45632",1713:"5ed278a4",1717:"08a9e890",1727:"de83767d",1783:"47d0320e",1810:"03cdfb68",1831:"8d05bf11",1836:"5f0d3f7f",1855:"b92cccb4",1880:"f67d7892",1939:"48e30d48",1953:"23cbc47f",1962:"84e145fa",2045:"dcfad42d",2076:"09b07fa0",2102:"ec61f9f0",2141:"5eb2f330",2216:"e3ba73cf",2240:"e7cce869",2254:"ccda836f",2303:"87592c17",2307:"b2c54321",2338:"43e9ff08",2339:"d90c9bd2",2396:"e70f11d6",2404:"08d36549",2412:"6b6ca0ef",2425:"47b23ee4",2443:"78513f2d",2476:"cf85a190",2501:"2441982c",2529:"9d9944da",2539:"43d36117",2548:"75182034",2570:"3dbc6300",2603:"0277270a",2659:"f6071a36",2707:"cabcb16e",2806:"2c7248b3",2819:"9455b08a",2823:"a13b21fb",2826:"0b6be43b",2829:"a5909474",2865:"6ef3cf6b",2875:"d6c8355d",2884:"904823c3",2983:"c8c482f7",3006:"7fce4e74",3141:"72791f8b",3157:"2038b5dc",3183:"b2253f40",3212:"ad1521c1",3220:"a5be3990",3247:"50105eb7",3260:"49ca09b2",3276:"7bbb651d",3282:"2dff97e8",3317:"137440b7",3332:"15432cd5",3355:"39e3d07c",3356:"c6a4098f",3391:"f0e498fe",3433:"e6919a98",3442:"bdf7849c",3447:"1653d818",3451:"e3a31387",3496:"44bf4044",3509:"70043ca5",3581:"43d907cb",3585:"5f288e7b",3665:"99f7daed",3668:"86f20630",3747:"e06419ae",3784:"c81d4a51",3873:"bbd9808d",3910:"658d457f",3935:"cd50aa32",3951:"4a9249b1",4030:"f308ee3a",4056:"10eacfff",4078:"aa54548e",4093:"c1f29d01",4105:"e39011c7",4144:"f10aa199",4164:"9f30fd4a",4216:"0277270a",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"36917df0",4449:"e68d8d58",4492:"cdc29460",4496:"77babddd",4498:"b05686dd",4504:"466a61af",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"aca6ff45",4601:"3c8ac557",4610:"687005a6",4621:"ead619d7",4662:"4e7b8c12",4715:"45efe14a",4736:"2968553b",4741:"afeb6eca",4757:"73b754d2",4766:"b5df5a8e",4770:"674b2d2a",4795:"939f9f81",4800:"f50302a4",4849:"2a1dc219",4862:"e8eacc3e",4884:"bd293d3b",4889:"db5cf2c9",4928:"a4b1a237",4973:"129c56e8",4994:"50caae56",5022:"81b1b86b",5043:"247e6954",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5125:"57501e4a",5148:"572faeac",5176:"9c49e7fa",5179:"21f01751",5186:"aeb0dc56",5191:"0af389b2",5238:"3d814a61",5297:"5426028f",5319:"34217c3f",5335:"fec6fd9f",5357:"1fbb7d24",5359:"b254a598",5382:"0c911991",5402:"60617d0d",5470:"b25021a2",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5599:"2ae54005",5624:"0208754c",5650:"f8f63f4b",5705:"df6bf207",5729:"46f9b5d4",5775:"8945cad2",5786:"37a81eaa",5798:"ce1cf7da",5816:"d749b200",5825:"73177a8c",5888:"193a7f8f",5891:"3b7a128f",5895:"9ddd624a",5915:"bc9c3e69",5972:"c7a91e8e",5992:"419f5d2f",6029:"2ded5a5a",6052:"59cb6398",6063:"a5f0409a",6069:"b4a6d2ab",6127:"f31505a8",6265:"9459eb93",6270:"cc24b0fc",6277:"12e50919",6328:"de2b9d62",6366:"079fc2d8",6434:"0112f8db",6444:"fd46d237",6452:"50a6d310",6541:"d1c967cd",6583:"7d33505d",6587:"9c49e7fa",6634:"df151169",6651:"b07fe216",6685:"f5f5b969",6729:"aea3b7f5",6741:"b838eb14",6758:"558cc090",6784:"1affe817",6788:"9cd39ff5",6796:"89c76e37",6805:"5b253c81",6820:"cebdf1cf",6845:"b7aabf70",6882:"c2d2eada",6883:"7740a702",6904:"44afaa9b",6913:"739202fe",6963:"84e145fa",6982:"3043a9c3",7008:"fe74a83d",7043:"25478869",7045:"48f6fc4c",7046:"c7301ded",7058:"984a456a",7062:"fe78dd10",7178:"6e47d75d",7182:"183c9793",7242:"4f353f61",7260:"ae741547",7395:"5c10e8d8",7460:"dedd2038",7477:"832457fc",7482:"c37a3f01",7527:"6b64ff47",7545:"1f6a7624",7560:"d82e43ca",7589:"2a3e68f3",7614:"de9ee12f",7622:"ca0e645a",7806:"80b7b1d6",7852:"fce1e197",7855:"3970a709",7857:"13a29416",7878:"8dfa25f5",7884:"1ca6cde0",7922:"c1d9e2f3",7948:"bed733e5",8014:"9ef39203",8062:"8e384b9f",8072:"540f746b",8077:"0b2c51d9",8085:"0b7f10a8",8143:"b6ca83ad",8155:"d345abd7",8237:"44654223",8241:"02a0cb2f",8302:"b4649ac5",8307:"02e15761",8398:"cf8eb735",8431:"60a111b6",8435:"21d4dff0",8447:"0875c082",8517:"cccfddad",8563:"3a763677",8634:"317d0a2b",8665:"c52575bc",8688:"c044db56",8689:"459af240",8723:"5166ac36",8782:"918afc23",8787:"121de108",8797:"13e5189e",8823:"9e7a9852",8827:"fcd50af0",8866:"664121ad",8882:"f3e42f72",8885:"de905169",8982:"6e2e337e",8999:"448aa22f",9076:"6a501148",9133:"ab171f08",9205:"49a3e67d",9215:"f737e7e7",9332:"a627cf98",9360:"27c7d4f7",9366:"4f511490",9391:"c11edda0",9404:"d8cf04f7",9408:"d3565b1a",9416:"6ead6660",9487:"a73f5679",9489:"ee2bb5b7",9507:"396e34cd",9519:"88d248ee",9590:"29583579",9647:"452de157",9649:"00fb4211",9674:"d0f91ed7",9677:"26548cb7",9695:"bb84056a",9715:"b6c6645f",9716:"a5750e0d",9785:"08d36549",9788:"54a86ef9",9890:"9ebce4ba",9891:"512a9301",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[d]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(d){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){__webpack_require__.o=function(d,v){return Object.prototype.hasOwnProperty.call(d,v)}}(),function(){var d={};__webpack_require__.l=function(v,e,t,n){if(d[v]){d[v].push(e);return}var s,u;if(t!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c{const E=qt(this.config),I=r.map(Ft).filter(N=>!!N&&E.indexOf(N)!==-1);return this.getKeySystemSelectionPromise(I).then(({keySystem:N})=>{const H=tr(N);H?a(H):_(new Error(`Unable to find format for key-system "${N}"`))}).catch(_)})}loadKey(r){const a=r.keyInfo.decryptdata,_=this.getKeyIdString(a),E=`(keyId: ${_} format: "${a.keyFormat}" method: ${a.method} uri: ${a.uri})`;this.log(`Starting session for key ${E}`);let I=this.keyIdToKeySessionPromise[_];return I||(I=this.keyIdToKeySessionPromise[_]=this.getKeySystemForKeyPromise(a).then(({keySystem:N,mediaKeys:H})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${r.frag.sn} ${r.frag.type}: ${r.frag.level} using key ${E}`),this.attemptSetMediaKeys(N,H).then(()=>{this.throwIfDestroyed();const oe=this.createMediaKeySessionContext({keySystem:N,mediaKeys:H,decryptdata:a});return this.generateRequestWithPreferredKeySession(oe,"cenc",a.pssh,"playlist-key")}))),I.catch(N=>this.handleError(N))),I}throwIfDestroyed(r="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(r){this.hls&&(this.error(r.message),r instanceof Jo?this.hls.trigger(l.ERROR,r.data):this.hls.trigger(l.ERROR,{type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_KEYS,error:r,fatal:!0}))}getKeySystemForKeyPromise(r){const a=this.getKeyIdString(r),_=this.keyIdToKeySessionPromise[a];if(!_){const E=Ft(r.keyFormat),I=E?[E]:qt(this.config);return this.attemptKeySystemAccess(I)}return _}getKeySystemSelectionPromise(r){if(r.length||(r=qt(this.config)),r.length===0)throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${JSON.stringify({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(r)}attemptSetMediaKeys(r,a){const _=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${r}"`);const E=Promise.all(_).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(a)});return this.setMediaKeysQueue.push(E),E.then(()=>{this.log(`Media-keys set for "${r}"`),_.push(E),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(I=>_.indexOf(I)===-1)})}generateRequestWithPreferredKeySession(r,a,_,E){var I,N;const H=(I=this.config.drmSystems)==null||(N=I[r.keySystem])==null?void 0:N.generateRequest;if(H)try{const Xe=H.call(this.hls,a,_,r);if(!Xe)throw new Error("Invalid response from configured generateRequest filter");a=Xe.initDataType,_=r.decryptdata.pssh=Xe.initData?new Uint8Array(Xe.initData):null}catch(Xe){var oe;if(this.warn(Xe.message),(oe=this.hls)!=null&&oe.config.debug)throw Xe}if(_===null)return this.log(`Skipping key-session request for "${E}" (no initData)`),Promise.resolve(r);const he=this.getKeyIdString(r.decryptdata);this.log(`Generating key-session request for "${E}": ${he} (init data type: ${a} length: ${_?_.byteLength:null})`);const be=new Zn,Se=r._onmessage=Xe=>{const lt=r.mediaKeysSession;if(!lt){be.emit("error",new Error("invalid state"));return}const{messageType:vt,message:Qt}=Xe;this.log(`"${vt}" message event for session "${lt.sessionId}" message size: ${Qt.byteLength}`),vt==="license-request"||vt==="license-renewal"?this.renewLicense(r,Qt).catch(yr=>{this.handleError(yr),be.emit("error",yr)}):vt==="license-release"?r.keySystem===Me.FAIRPLAY&&(this.updateKeySession(r,xe("acknowledged")),this.removeSession(r)):this.warn(`unhandled media key message type "${vt}"`)},De=r._onkeystatuseschange=Xe=>{if(!r.mediaKeysSession){be.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(r);const vt=r.keyStatus;be.emit("keyStatus",vt),vt==="expired"&&(this.warn(`${r.keySystem} expired for key ${he}`),this.renewKeySession(r))};r.mediaKeysSession.addEventListener("message",Se),r.mediaKeysSession.addEventListener("keystatuseschange",De);const He=new Promise((Xe,lt)=>{be.on("error",lt),be.on("keyStatus",vt=>{vt.startsWith("usable")?Xe():vt==="output-restricted"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):vt==="internal-error"?lt(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${vt}"`)):vt==="expired"?lt(new Error("key expired while generating request")):this.warn(`unhandled key status change "${vt}"`)})});return r.mediaKeysSession.generateRequest(a,_).then(()=>{var Xe;this.log(`Request generated for key-session "${(Xe=r.mediaKeysSession)==null?void 0:Xe.sessionId}" keyId: ${he}`)}).catch(Xe=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_NO_SESSION,error:Xe,fatal:!1},`Error generating key-session request: ${Xe}`)}).then(()=>He).catch(Xe=>{throw be.removeAllListeners(),this.removeSession(r),Xe}).then(()=>(be.removeAllListeners(),r))}onKeyStatusChange(r){r.mediaKeysSession.keyStatuses.forEach((a,_)=>{this.log(`key status change "${a}" for keyStatuses keyId: ${Nt.hexDump("buffer"in _?new Uint8Array(_.buffer,_.byteOffset,_.byteLength):new Uint8Array(_))} session keyId: ${Nt.hexDump(new Uint8Array(r.decryptdata.keyId||[]))} uri: ${r.decryptdata.uri}`),r.keyStatus=a})}fetchServerCertificate(r){const a=this.config,_=a.loader,E=new _(a),I=this.getServerCertificateUrl(r);return I?(this.log(`Fetching server certificate for "${r}"`),new Promise((N,H)=>{const oe={responseType:"arraybuffer",url:I},he=a.certLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{N(De.data)},onError:(De,He,Xe,lt)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:f({url:oe.url,data:void 0},De)},`"${r}" certificate request failed (${I}). Status: ${De.code} (${De.text})`))},onTimeout:(De,He,Xe)=>{H(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:{url:oe.url,data:void 0}},`"${r}" certificate request timed out (${I})`))},onAbort:(De,He,Xe)=>{H(new Error("aborted"))}};E.load(oe,be,Se)})):Promise.resolve()}setMediaKeysServerCertificate(r,a,_){return new Promise((E,I)=>{r.setServerCertificate(_).then(N=>{this.log(`setServerCertificate ${N?"success":"not supported by CDM"} (${_==null?void 0:_.byteLength}) on "${a}"`),E(r)}).catch(N=>{I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:N,fatal:!0},N.message))})})}renewLicense(r,a){return this.requestLicense(r,new Uint8Array(a)).then(_=>this.updateKeySession(r,new Uint8Array(_)).catch(E=>{throw new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:E,fatal:!0},E.message)}))}unpackPlayReadyKeyMessage(r,a){const _=String.fromCharCode.apply(null,new Uint16Array(a.buffer));if(!_.includes("PlayReadyKeyMessage"))return r.setRequestHeader("Content-Type","text/xml; charset=utf-8"),a;const E=new DOMParser().parseFromString(_,"application/xml"),I=E.querySelectorAll("HttpHeader");if(I.length>0){let be;for(let Se=0,De=I.length;Se in key message");return xe(atob(he))}setupLicenseXHR(r,a,_,E){const I=this.config.licenseXhrSetup;return I?Promise.resolve().then(()=>{if(!_.decryptdata)throw new Error("Key removed");return I.call(this.hls,r,a,_,E)}).catch(N=>{if(!_.decryptdata)throw N;return r.open("POST",a,!0),I.call(this.hls,r,a,_,E)}).then(N=>(r.readyState||r.open("POST",a,!0),{xhr:r,licenseChallenge:N||E})):(r.open("POST",a,!0),Promise.resolve({xhr:r,licenseChallenge:E}))}requestLicense(r,a){const _=this.config.keyLoadPolicy.default;return new Promise((E,I)=>{const N=this.getLicenseServerUrlOrThrow(r.keySystem);this.log(`Sending license request to URL: ${N}`);const H=new XMLHttpRequest;H.responseType="arraybuffer",H.onreadystatechange=()=>{if(!this.hls||!r.mediaKeysSession)return I(new Error("invalid state"));if(H.readyState===4)if(H.status===200){this._requestLicenseFailureCount=0;let oe=H.response;this.log(`License received ${oe instanceof ArrayBuffer?oe.byteLength:oe}`);const he=this.config.licenseResponseCallback;if(he)try{oe=he.call(this.hls,H,N,r)}catch(be){this.error(be)}E(oe)}else{const oe=_.errorRetry,he=oe?oe.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>he||H.status>=400&&H.status<500)I(new Jo({type:b.KEY_SYSTEM_ERROR,details:x.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:H,response:{url:N,data:void 0,code:H.status,text:H.statusText}},`License Request XHR failed (${N}). Status: ${H.status} (${H.statusText})`));else{const be=he-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${be} attempts left`),this.requestLicense(r,a).then(E,I)}}},r.licenseXhr&&r.licenseXhr.readyState!==XMLHttpRequest.DONE&&r.licenseXhr.abort(),r.licenseXhr=H,this.setupLicenseXHR(H,N,r,a).then(({xhr:oe,licenseChallenge:he})=>{r.keySystem==Me.PLAYREADY&&(he=this.unpackPlayReadyKeyMessage(oe,he)),oe.send(he)})})}onMediaAttached(r,a){if(!this.config.emeEnabled)return;const _=a.media;this.media=_,_.removeEventListener("encrypted",this.onMediaEncrypted),_.removeEventListener("waitingforkey",this.onWaitingForKey),_.addEventListener("encrypted",this.onMediaEncrypted),_.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const r=this.media,a=this.mediaKeySessions;r&&(r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Mr.clearKeyUriToKeyIdMap();const _=a.length;nl.CDMCleanupPromise=Promise.all(a.map(E=>this.removeSession(E)).concat(r==null?void 0:r.setMediaKeys(null).catch(E=>{this.log(`Could not clear media keys: ${E}`)}))).then(()=>{_&&(this.log("finished closing key sessions and clearing media keys"),a.length=0)}).catch(E=>{this.log(`Could not close sessions and clear media keys: ${E}`)})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(r,{sessionKeys:a}){if(!(!a||!this.config.emeEnabled)&&!this.keyFormatPromise){const _=a.reduce((E,I)=>(E.indexOf(I.keyFormat)===-1&&E.push(I.keyFormat),E),[]);this.log(`Selecting key-system from session-keys ${_.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(_)}}removeSession(r){const{mediaKeysSession:a,licenseXhr:_}=r;if(a){this.log(`Remove licenses and keys and close session ${a.sessionId}`),r._onmessage&&(a.removeEventListener("message",r._onmessage),r._onmessage=void 0),r._onkeystatuseschange&&(a.removeEventListener("keystatuseschange",r._onkeystatuseschange),r._onkeystatuseschange=void 0),_&&_.readyState!==XMLHttpRequest.DONE&&_.abort(),r.mediaKeysSession=r.decryptdata=r.licenseXhr=void 0;const E=this.mediaKeySessions.indexOf(r);return E>-1&&this.mediaKeySessions.splice(E,1),a.remove().catch(I=>{this.log(`Could not remove session: ${I}`)}).then(()=>a.close()).catch(I=>{this.log(`Could not close session: ${I}`)})}}}nl.CDMCleanupPromise=void 0;class Jo extends Error{constructor(r,a){super(a),this.data=void 0,r.error||(r.error=new Error(a)),this.data=r,r.err=r.error}}var go;(function(j){j.MANIFEST="m",j.AUDIO="a",j.VIDEO="v",j.MUXED="av",j.INIT="i",j.CAPTION="c",j.TIMED_TEXT="tt",j.KEY="k",j.OTHER="o"})(go||(go={}));var Jl;(function(j){j.DASH="d",j.HLS="h",j.SMOOTH="s",j.OTHER="o"})(Jl||(Jl={}));var zu;(function(j){j.OBJECT="CMCD-Object",j.REQUEST="CMCD-Request",j.SESSION="CMCD-Session",j.STATUS="CMCD-Status"})(zu||(zu={}));const hu={[zu.OBJECT]:["br","d","ot","tb"],[zu.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[zu.SESSION]:["cid","pr","sf","sid","st","v"],[zu.STATUS]:["bs","rtp"]};class ou{constructor(r,a){this.value=void 0,this.params=void 0,Array.isArray(r)&&(r=r.map(_=>_ instanceof ou?_:new ou(_))),this.value=r,this.params=a}}class Dl{constructor(r){this.description=void 0,this.description=r}}const Zu="Dict";function hc(j){return Array.isArray(j)?JSON.stringify(j):j instanceof Map?"Map{}":j instanceof Set?"Set{}":typeof j=="object"?JSON.stringify(j):String(j)}function Sc(j,r,a,_){return new Error(`failed to ${j} "${hc(r)}" as ${a}`,{cause:_})}const yl="Bare Item",uo="Boolean",Cc="Byte Sequence",pc="Decimal",il="Integer";function ku(j){return j<-999999999999999||99999999999999912)throw gu(j,pc);const a=r.toString();return a.includes(".")?a:`${a}.0`}const Ol="String";function Ko(j){if(lo.test(j))throw gu(j,Ol);return`"${j.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Eu(j){return j.description||j.toString().slice(7,-1)}function kl(j){const r=Eu(j);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(r)===!1)throw gu(r,al);return r}function ul(j){switch(typeof j){case"number":if(!y(j))throw gu(j,yl);return Number.isInteger(j)?ol(j):uu(j);case"string":return Ko(j);case"symbol":return kl(j);case"boolean":return Ac(j);case"object":if(j instanceof Date)return je(j);if(j instanceof Uint8Array)return jo(j);if(j instanceof Dl)return kl(j);default:throw gu(j,yl)}}function Hu(j){if(/^[a-z*][a-z0-9\-_.*]*$/.test(j)===!1)throw gu(j,Dc);return j}function Ru(j){return j==null?"":Object.entries(j).map(([r,a])=>a===!0?`;${Hu(r)}`:`;${Hu(r)}=${ul(a)}`).join("")}function Su(j){return j instanceof ou?`${ul(j.value)}${Ru(j.params)}`:ul(j)}function _c(j){return`(${j.value.map(Su).join(" ")})${Ru(j.params)}`}function Rl(j,r={whitespace:!0}){if(typeof j!="object")throw gu(j,Zu);const a=j instanceof Map?j.entries():Object.entries(j),_=r!=null&&r.whitespace?" ":"";return Array.from(a).map(([E,I])=>{I instanceof ou||(I=new ou(I));let N=Hu(E);return I.value===!0?N+=Ru(I.params):(N+="=",Array.isArray(I.value)?N+=_c(I):N+=Su(I)),N}).join(`,${_}`)}function pu(j,r){return Rl(j,r)}const Yu=j=>j==="ot"||j==="sf"||j==="st",Cu=j=>typeof j=="number"?y(j):j!=null&&j!==""&&j!==!1;function Bc(j,r){const a=new URL(j),_=new URL(r);if(a.origin!==_.origin)return j;const E=a.pathname.split("/").slice(1),I=_.pathname.split("/").slice(1,-1);for(;E[0]===I[0];)E.shift(),I.shift();for(;I.length;)I.shift(),E.unshift("..");return E.join("/")}function Tc(){try{return crypto.randomUUID()}catch(j){try{const r=URL.createObjectURL(new Blob),a=r.toString();return URL.revokeObjectURL(r),a.slice(a.lastIndexOf("/")+1)}catch(r){let a=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,E=>{const I=(a+Math.random()*16)%16|0;return a=Math.floor(a/16),(E=="x"?I:I&3|8).toString(16)})}}}const Ao=j=>Math.round(j),ll=(j,r)=>(r!=null&&r.baseUrl&&(j=Bc(j,r.baseUrl)),encodeURIComponent(j)),bl=j=>Ao(j/100)*100,Ll={br:Ao,d:Ao,bl,dl:bl,mtp:bl,nor:ll,rtp:bl,tb:Ao};function Ml(j,r){const a={};if(j==null||typeof j!="object")return a;const _=Object.keys(j).sort(),E=i({},Ll,r==null?void 0:r.formatters),I=r==null?void 0:r.filter;return _.forEach(N=>{if(I!=null&&I(N))return;let H=j[N];const oe=E[N];oe&&(H=oe(H,r)),!(N==="v"&&H===1)&&(N=="pr"&&H===1||Cu(H)&&(Yu(N)&&typeof H=="string"&&(H=new Dl(H)),a[N]=H))}),a}function xl(j,r={}){return j?pu(Ml(j,r),i({whitespace:!1},r)):""}function Fl(j,r={}){if(!j)return{};const a=Object.entries(j),_=Object.entries(hu).concat(Object.entries((r==null?void 0:r.customHeaderMap)||{})),E=a.reduce((I,N)=>{var H,oe;const[he,be]=N,Se=((H=_.find(De=>De[1].includes(he)))==null?void 0:H[0])||zu.REQUEST;return(oe=I[Se])!=null||(I[Se]={}),I[Se][he]=be,I},{});return Object.entries(E).reduce((I,[N,H])=>(I[N]=xl(H,r),I),{})}function Oc(j,r,a){return i(j,Fl(r,a))}const ql="CMCD";function Bl(j,r={}){if(!j)return"";const a=xl(j,r);return`${ql}=${encodeURIComponent(a)}`}const cl=/CMCD=[^&#]+/;function Pc(j,r,a){const _=Bl(r,a);if(!_)return j;if(cl.test(j))return j.replace(cl,_);const E=j.includes("?")?"&":"?";return`${j}${E}${_}`}class mc{constructor(r){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=E=>{try{this.apply(E,{ot:go.MANIFEST,su:!this.initialized})}catch(I){R.warn("Could not generate manifest CMCD data.",I)}},this.applyFragmentData=E=>{try{const I=E.frag,N=this.hls.levels[I.level],H=this.getObjectType(I),oe={d:I.duration*1e3,ot:H};(H===go.VIDEO||H===go.AUDIO||H==go.MUXED)&&(oe.br=N.bitrate/1e3,oe.tb=this.getTopBandwidth(H)/1e3,oe.bl=this.getBufferLength(H)),this.apply(E,oe)}catch(I){R.warn("Could not generate segment CMCD data.",I)}},this.hls=r;const a=this.config=r.config,{cmcd:_}=a;_!=null&&(a.pLoader=this.createPlaylistLoader(),a.fLoader=this.createFragmentLoader(),this.sid=_.sessionId||Tc(),this.cid=_.contentId,this.useHeaders=_.useHeaders===!0,this.includeKeys=_.includeKeys,this.registerListeners())}registerListeners(){const r=this.hls;r.on(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.on(l.MEDIA_DETACHED,this.onMediaDetached,this),r.on(l.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const r=this.hls;r.off(l.MEDIA_ATTACHED,this.onMediaAttached,this),r.off(l.MEDIA_DETACHED,this.onMediaDetached,this),r.off(l.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}onMediaAttached(r,a){this.media=a.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(r,a){var _,E;this.audioBuffer=(_=a.tracks.audio)==null?void 0:_.buffer,this.videoBuffer=(E=a.tracks.video)==null?void 0:E.buffer}createData(){var r;return{v:1,sf:Jl.HLS,sid:this.sid,cid:this.cid,pr:(r=this.media)==null?void 0:r.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(r,a={}){i(a,this.createData());const _=a.ot===go.INIT||a.ot===go.VIDEO||a.ot===go.MUXED;this.starved&&_&&(a.bs=!0,a.su=!0,this.starved=!1),a.su==null&&(a.su=this.buffering);const{includeKeys:E}=this;E&&(a=Object.keys(a).reduce((I,N)=>(E.includes(N)&&(I[N]=a[N]),I),{})),this.useHeaders?(r.headers||(r.headers={}),Oc(r.headers,a)):r.url=Pc(r.url,a)}getObjectType(r){const{type:a}=r;if(a==="subtitle")return go.TIMED_TEXT;if(r.sn==="initSegment")return go.INIT;if(a==="audio")return go.AUDIO;if(a==="main")return this.hls.audioTracks.length?go.VIDEO:go.MUXED}getTopBandwidth(r){let a=0,_;const E=this.hls;if(r===go.AUDIO)_=E.audioTracks;else{const I=E.maxAutoLevel,N=I>-1?I+1:E.levels.length;_=E.levels.slice(0,N)}for(const I of _)I.bitrate>a&&(a=I.bitrate);return a>0?a:NaN}getBufferLength(r){const a=this.hls.media,_=r===go.AUDIO?this.audioBuffer:this.videoBuffer;return!_||!a?NaN:hr.bufferInfo(_,a.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:r}=this.config,a=this.applyPlaylistData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}createFragmentLoader(){const{fLoader:r}=this.config,a=this.applyFragmentData,_=r||this.config.loader;return class{constructor(I){this.loader=void 0,this.loader=new _(I)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(I,N,H){a(I),this.loader.load(I,N,H)}}}}const Lu=3e5;class Nl{constructor(r){this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=r,this.log=R.log.bind(R,"[content-steering]:"),this.registerListeners()}registerListeners(){const r=this.hls;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.MANIFEST_PARSED,this.onManifestParsed,this),r.on(l.ERROR,this.onError,this)}unregisterListeners(){const r=this.hls;r&&(r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.MANIFEST_PARSED,this.onManifestParsed,this),r.off(l.ERROR,this.onError,this))}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const r=this.timeToLoad*1e3-(performance.now()-this.updated);if(r>0){this.scheduleRefresh(this.uri,r);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(r){const a=this.levels;a&&(this.levels=a.filter(_=>_!==r))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(r,a){const{contentSteering:_}=a;_!==null&&(this.pathwayId=_.pathwayId,this.uri=_.uri,this.started&&this.startLoad())}onManifestParsed(r,a){this.audioTracks=a.audioTracks,this.subtitleTracks=a.subtitleTracks}onError(r,a){const{errorAction:_}=a;if((_==null?void 0:_.action)===Yn.SendAlternateToPenaltyBox&&_.flags===va.MoveAllAlternatesMatchingHost){const E=this.levels;let I=this.pathwayPriority,N=this.pathwayId;if(a.context){const{groupId:H,pathwayId:oe,type:he}=a.context;H&&E?N=this.getPathwayForGroupId(H,he,N):oe&&(N=oe)}N in this.penalizedPathways||(this.penalizedPathways[N]=performance.now()),!I&&E&&(I=E.reduce((H,oe)=>(H.indexOf(oe.pathwayId)===-1&&H.push(oe.pathwayId),H),[])),I&&I.length>1&&(this.updatePathwayPriority(I),_.resolved=this.pathwayId!==N),_.resolved||R.warn(`Could not resolve ${a.details} ("${a.error.message}") with content-steering for Pathway: ${N} levels: ${E&&E.length} priorities: ${JSON.stringify(I)} penalized: ${JSON.stringify(this.penalizedPathways)}`)}}filterParsedLevels(r){this.levels=r;let a=this.getLevelsForPathway(this.pathwayId);if(a.length===0){const _=r[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${_}"`),a=this.getLevelsForPathway(_),this.pathwayId=_}return a.length!==r.length&&this.log(`Found ${a.length}/${r.length} levels in Pathway "${this.pathwayId}"`),a}getLevelsForPathway(r){return this.levels===null?[]:this.levels.filter(a=>r===a.pathwayId)}updatePathwayPriority(r){this.pathwayPriority=r;let a;const _=this.penalizedPathways,E=performance.now();Object.keys(_).forEach(I=>{E-_[I]>Lu&&delete _[I]});for(let I=0;I0){this.log(`Setting Pathway to "${N}"`),this.pathwayId=N,za(a),this.hls.trigger(l.LEVELS_UPDATED,{levels:a});const he=this.hls.levels[H];oe&&he&&this.levels&&(he.attrs["STABLE-VARIANT-ID"]!==oe.attrs["STABLE-VARIANT-ID"]&&he.bitrate!==oe.bitrate&&this.log(`Unstable Pathways change from bitrate ${oe.bitrate} to ${he.bitrate}`),this.hls.nextLoadLevel=H);break}}}getPathwayForGroupId(r,a,_){const E=this.getLevelsForPathway(_).concat(this.levels||[]);for(let I=0;I{const{ID:N,"BASE-ID":H,"URI-REPLACEMENT":oe}=I;if(a.some(be=>be.pathwayId===N))return;const he=this.getLevelsForPathway(H).map(be=>{const Se=new Z(be.attrs);Se["PATHWAY-ID"]=N;const De=Se.AUDIO&&`${Se.AUDIO}_clone_${N}`,He=Se.SUBTITLES&&`${Se.SUBTITLES}_clone_${N}`;De&&(_[Se.AUDIO]=De,Se.AUDIO=De),He&&(E[Se.SUBTITLES]=He,Se.SUBTITLES=He);const Xe=ec(be.uri,Se["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",oe),lt=new Fa({attrs:Se,audioCodec:be.audioCodec,bitrate:be.bitrate,height:be.height,name:be.name,url:Xe,videoCodec:be.videoCodec,width:be.width});if(be.audioGroups)for(let vt=1;vt{this.log(`Loaded steering manifest: "${E}"`);const Xe=be.data;if(Xe.VERSION!==1){this.log(`Steering VERSION ${Xe.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=Xe.TTL;const{"RELOAD-URI":lt,"PATHWAY-CLONES":vt,"PATHWAY-PRIORITY":Qt}=Xe;if(lt)try{this.uri=new self.URL(lt,E).href}catch(Tr){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${lt}`);return}this.scheduleRefresh(this.uri||De.url),vt&&this.clonePathways(vt);const yr={steeringManifest:Xe,url:E.toString()};this.hls.trigger(l.STEERING_MANIFEST_LOADED,yr),Qt&&this.updatePathwayPriority(Qt)},onError:(be,Se,De,He)=>{if(this.log(`Error loading steering manifest: ${be.code} ${be.text} (${Se.url})`),this.stopLoad(),be.code===410){this.enabled=!1,this.log(`Steering manifest ${Se.url} no longer available`);return}let Xe=this.timeToLoad*1e3;if(be.code===429){const lt=this.loader;if(typeof(lt==null?void 0:lt.getResponseHeader)=="function"){const vt=lt.getResponseHeader("Retry-After");vt&&(Xe=parseFloat(vt)*1e3)}this.log(`Steering manifest ${Se.url} rate limited`);return}this.scheduleRefresh(this.uri||Se.url,Xe)},onTimeout:(be,Se,De)=>{this.log(`Timeout loading steering manifest (${Se.url})`),this.scheduleRefresh(this.uri||Se.url)}};this.log(`Requesting steering manifest: ${E}`),this.loader.load(I,oe,he)}scheduleRefresh(r,a=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var _;const E=(_=this.hls)==null?void 0:_.media;if(E&&!E.ended){this.loadSteeringManifest(r);return}this.scheduleRefresh(r,this.timeToLoad*1e3)},a)}}function wl(j,r,a,_){j&&Object.keys(r).forEach(E=>{const I=j.filter(N=>N.groupId===E).map(N=>{const H=i({},N);return H.details=void 0,H.attrs=new Z(H.attrs),H.url=H.attrs.URI=ec(N.url,N.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",a),H.groupId=H.attrs["GROUP-ID"]=r[E],H.attrs["PATHWAY-ID"]=_,H});j.push(...I)})}function ec(j,r,a,_){const{HOST:E,PARAMS:I,[a]:N}=_;let H;r&&(H=N==null?void 0:N[r],H&&(j=H));const oe=new self.URL(j);return E&&!H&&(oe.host=E),I&&Object.keys(I).sort().forEach(he=>{he&&oe.searchParams.set(he,I[he])}),oe.href}const tc=/^age:\s*[\d.]+\s*$/im;class vc{constructor(r){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=r&&r.xhrSetup||null,this.stats=new Q,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const r=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),r&&(r.onreadystatechange=null,r.onprogress=null,r.readyState!==4&&(this.stats.aborted=!0,r.abort()))}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(r,a,_){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=r,this.config=a,this.callbacks=_,this.loadInternal()}loadInternal(){const{config:r,context:a}=this;if(!r||!a)return;const _=this.loader=new self.XMLHttpRequest,E=this.stats;E.loading.first=0,E.loaded=0,E.aborted=!1;const I=this.xhrSetup;I?Promise.resolve().then(()=>{if(!(this.loader!==_||this.stats.aborted))return I(_,a.url)}).catch(N=>{if(!(this.loader!==_||this.stats.aborted))return _.open("GET",a.url,!0),I(_,a.url)}).then(()=>{this.loader!==_||this.stats.aborted||this.openAndSendXhr(_,a,r)}).catch(N=>{this.callbacks.onError({code:_.status,text:N.message},a,_,E)}):this.openAndSendXhr(_,a,r)}openAndSendXhr(r,a,_){r.readyState||r.open("GET",a.url,!0);const E=a.headers,{maxTimeToFirstByteMs:I,maxLoadTimeMs:N}=_.loadPolicy;if(E)for(const H in E)r.setRequestHeader(H,E[H]);a.rangeEnd&&r.setRequestHeader("Range","bytes="+a.rangeStart+"-"+(a.rangeEnd-1)),r.onreadystatechange=this.readystatechange.bind(this),r.onprogress=this.loadprogress.bind(this),r.responseType=a.responseType,self.clearTimeout(this.requestTimeout),_.timeout=I&&y(I)?I:N,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),_.timeout),r.send()}readystatechange(){const{context:r,loader:a,stats:_}=this;if(!r||!a)return;const E=a.readyState,I=this.config;if(!_.aborted&&E>=2&&(_.loading.first===0&&(_.loading.first=Math.max(self.performance.now(),_.loading.start),I.timeout!==I.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),I.timeout=I.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),I.loadPolicy.maxLoadTimeMs-(_.loading.first-_.loading.start)))),E===4)){self.clearTimeout(this.requestTimeout),a.onreadystatechange=null,a.onprogress=null;const N=a.status,H=a.responseType==="text"?a.responseText:null;if(N>=200&&N<300){const Se=H!=null?H:a.response;if(Se!=null){_.loading.end=Math.max(self.performance.now(),_.loading.first);const De=a.responseType==="arraybuffer"?Se.byteLength:Se.length;if(_.loaded=_.total=De,_.bwEstimate=_.total*8e3/(_.loading.end-_.loading.first),!this.callbacks)return;const He=this.callbacks.onProgress;if(He&&He(_,r,Se,a),!this.callbacks)return;const Xe={url:a.responseURL,data:Se,code:N};this.callbacks.onSuccess(Xe,_,r,a);return}}const oe=I.loadPolicy.errorRetry,he=_.retry,be={url:r.url,data:void 0,code:N};fo(oe,he,!1,be)?this.retry(oe):(R.error(`${N} while loading ${r.url}`),this.callbacks.onError({code:N,text:a.statusText},r,a,_))}}loadtimeout(){if(!this.config)return;const r=this.config.loadPolicy.timeoutRetry,a=this.stats.retry;if(fo(r,a,!0))this.retry(r);else{var _;R.warn(`timeout while loading ${(_=this.context)==null?void 0:_.url}`);const E=this.callbacks;E&&(this.abortInternal(),E.onTimeout(this.stats,this.context,this.loader))}}retry(r){const{context:a,stats:_}=this;this.retryDelay=Ks(r,_.retry),_.retry++,R.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${a==null?void 0:a.url}, retrying ${_.retry}/${r.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(r){const a=this.stats;a.loaded=r.loaded,r.lengthComputable&&(a.total=r.total)}getCacheAge(){let r=null;if(this.loader&&tc.test(this.loader.getAllResponseHeaders())){const a=this.loader.getResponseHeader("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.loader&&new RegExp(`^${r}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(r):null}}function A(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(j){}return!1}const P=/(\d+)-(\d+)\/(\d+)/;class D{constructor(r){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=r.fetchSetup||zn,this.controller=new self.AbortController,this.stats=new Q}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var r;this.abortInternal(),(r=this.callbacks)!=null&&r.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(r,a,_){const E=this.stats;if(E.loading.start)throw new Error("Loader can only be used once.");E.loading.start=self.performance.now();const I=pe(r,this.controller.signal),N=_.onProgress,H=r.responseType==="arraybuffer",oe=H?"byteLength":"length",{maxTimeToFirstByteMs:he,maxLoadTimeMs:be}=a.loadPolicy;this.context=r,this.config=a,this.callbacks=_,this.request=this.fetchSetup(r,I),self.clearTimeout(this.requestTimeout),a.timeout=he&&y(he)?he:be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},a.timeout),self.fetch(this.request).then(Se=>{this.response=this.loader=Se;const De=Math.max(self.performance.now(),E.loading.start);if(self.clearTimeout(this.requestTimeout),a.timeout=be,this.requestTimeout=self.setTimeout(()=>{this.abortInternal(),_.onTimeout(E,r,this.response)},be-(De-E.loading.start)),!Se.ok){const{status:He,statusText:Xe}=Se;throw new dn(Xe||"fetch, bad network response",He,Se)}return E.loading.first=De,E.total=an(Se.headers)||E.total,N&&y(a.highWaterMark)?this.loadProgressively(Se,E,r,a.highWaterMark,N):H?Se.arrayBuffer():r.responseType==="json"?Se.json():Se.text()}).then(Se=>{const De=this.response;if(!De)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),E.loading.end=Math.max(self.performance.now(),E.loading.first);const He=Se[oe];He&&(E.loaded=E.total=He);const Xe={url:De.url,data:Se,code:De.status};N&&!y(a.highWaterMark)&&N(E,r,Se,De),_.onSuccess(Xe,E,r,De)}).catch(Se=>{if(self.clearTimeout(this.requestTimeout),E.aborted)return;const De=Se&&Se.code||0,He=Se?Se.message:null;_.onError({code:De,text:He},r,Se?Se.details:null,E)})}getCacheAge(){let r=null;if(this.response){const a=this.response.headers.get("age");r=a?parseFloat(a):null}return r}getResponseHeader(r){return this.response?this.response.headers.get(r):null}loadProgressively(r,a,_,E=0,I){const N=new Bs,H=r.body.getReader(),oe=()=>H.read().then(he=>{if(he.done)return N.dataLength&&I(a,_,N.flush(),r),Promise.resolve(new ArrayBuffer(0));const be=he.value,Se=be.length;return a.loaded+=Se,Se=E&&I(a,_,N.flush(),r)):I(a,_,be,r),oe()}).catch(()=>Promise.reject());return oe()}}function pe(j,r){const a={method:"GET",mode:"cors",credentials:"same-origin",signal:r,headers:new self.Headers(i({},j.headers))};return j.rangeEnd&&a.headers.set("Range","bytes="+j.rangeStart+"-"+String(j.rangeEnd-1)),a}function Oe(j){const r=P.exec(j);if(r)return parseInt(r[2])-parseInt(r[1])+1}function an(j){const r=j.get("Content-Range");if(r){const _=Oe(r);if(y(_))return _}const a=j.get("Content-Length");if(a)return parseInt(a)}function zn(j,r){return new self.Request(j.url,r)}class dn extends Error{constructor(r,a,_){super(r),this.code=void 0,this.details=void 0,this.code=a,this.details=_}}const Mi=/\s/,Qa={newCue(j,r,a,_){const E=[];let I,N,H,oe,he;const be=self.VTTCue||self.TextTrackCue;for(let De=0;De<_.rows.length;De++)if(I=_.rows[De],H=!0,oe=0,he="",!I.isEmpty()){var Se;for(let lt=0;lt=16?oe--:oe++;const He=Wl(he.trim()),Xe=ju(r,a,He);j!=null&&(Se=j.cues)!=null&&Se.getCueById(Xe)||(N=new be(r,a,He),N.id=Xe,N.line=De+1,N.align="left",N.position=10+Math.min(80,Math.floor(oe*8/32)*10),E.push(N))}return j&&E.length&&(E.sort((De,He)=>De.line==="auto"||He.line==="auto"?0:De.line>8&&He.line>8?He.line-De.line:De.line-He.line),E.forEach(De=>Hr(j,De))),E}},Oa={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},To=f(f({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:60*1e3*1e3,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:vc,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Bo,bufferController:mo,capLevelController:dc,errorController:ts,fpsController:Ql,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:cr,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:Oa},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},ds()),{},{subtitleStreamController:cs,subtitleTrackController:Hs,timelineController:Ma,audioStreamController:ha,audioTrackController:gs,emeController:nl,cmcdController:mc,contentSteeringController:Nl});function ds(){return{cueHandler:Qa,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function yo(j,r){if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(r.liveMaxLatencyDurationCount!==void 0&&(r.liveSyncDurationCount===void 0||r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(r.liveMaxLatencyDuration!==void 0&&(r.liveSyncDuration===void 0||r.liveMaxLatencyDuration<=r.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const a=ys(j),_=["manifest","level","frag"],E=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return _.forEach(I=>{const N=`${I==="level"?"playlist":I}LoadPolicy`,H=r[N]===void 0,oe=[];E.forEach(he=>{const be=`${I}Loading${he}`,Se=r[be];if(Se!==void 0&&H){oe.push(be);const De=a[N].default;switch(r[N]={default:De},he){case"TimeOut":De.maxLoadTimeMs=Se,De.maxTimeToFirstByteMs=Se;break;case"MaxRetry":De.errorRetry.maxNumRetry=Se,De.timeoutRetry.maxNumRetry=Se;break;case"RetryDelay":De.errorRetry.retryDelayMs=Se,De.timeoutRetry.retryDelayMs=Se;break;case"MaxRetryTimeout":De.errorRetry.maxRetryDelayMs=Se,De.timeoutRetry.maxRetryDelayMs=Se;break}}}),oe.length&&R.warn(`hls.js config: "${oe.join('", "')}" setting(s) are deprecated, use "${N}": ${JSON.stringify(r[N])}`)}),f(f({},a),r)}function ys(j){return j&&typeof j=="object"?Array.isArray(j)?j.map(ys):Object.keys(j).reduce((r,a)=>(r[a]=ys(j[a]),r),{}):j}function gc(j){const r=j.loader;r!==D&&r!==vc?(R.log("[config]: Custom loader detected, cannot enable progressive streaming"),j.progressive=!1):A()&&(j.loader=D,j.progressive=!0,j.enableSoftwareAES=!0,R.log("[config]: Progressive streaming enabled, using FetchLoader"))}let $l;class rc extends Ka{constructor(r,a){super(r,"[level-controller]"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=a,this._registerListeners()}_registerListeners(){const{hls:r}=this;r.on(l.MANIFEST_LOADING,this.onManifestLoading,this),r.on(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.on(l.LEVEL_LOADED,this.onLevelLoaded,this),r.on(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.on(l.FRAG_BUFFERED,this.onFragBuffered,this),r.on(l.ERROR,this.onError,this)}_unregisterListeners(){const{hls:r}=this;r.off(l.MANIFEST_LOADING,this.onManifestLoading,this),r.off(l.MANIFEST_LOADED,this.onManifestLoaded,this),r.off(l.LEVEL_LOADED,this.onLevelLoaded,this),r.off(l.LEVELS_UPDATED,this.onLevelsUpdated,this),r.off(l.FRAG_BUFFERED,this.onFragBuffered,this),r.off(l.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(a=>{a.loadError=0,a.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(r,a){this.resetLevels()}onManifestLoaded(r,a){const _=this.hls.config.preferManagedMediaSource,E=[],I={},N={};let H=!1,oe=!1,he=!1;a.levels.forEach(be=>{var Se,De;const He=be.attrs;let{audioCodec:Xe,videoCodec:lt}=be;((Se=Xe)==null?void 0:Se.indexOf("mp4a.40.34"))!==-1&&($l||($l=/chrome|firefox/i.test(navigator.userAgent)),$l&&(be.audioCodec=Xe=void 0)),Xe&&(be.audioCodec=Xe=wi(Xe,_)),((De=lt)==null?void 0:De.indexOf("avc1"))===0&&(lt=be.videoCodec=Ji(lt));const{width:vt,height:Qt,unknownCodecs:yr}=be;if(H||(H=!!(vt&&Qt)),oe||(oe=!!lt),he||(he=!!Xe),yr!=null&&yr.length||Xe&&!yi(Xe,"audio",_)||lt&&!yi(lt,"video",_))return;const{CODECS:Tr,"FRAME-RATE":Wr,"HDCP-LEVEL":Br,"PATHWAY-ID":Cn,RESOLUTION:un,"VIDEO-RANGE":Hn}=He,En=`${`${Cn||"."}-`}${be.bitrate}-${un}-${Wr}-${Tr}-${Hn}-${Br}`;if(I[En])if(I[En].uri!==be.url&&!be.attrs["PATHWAY-ID"]){const qn=N[En]+=1;be.attrs["PATHWAY-ID"]=new Array(qn+1).join(".");const Ta=new Fa(be);I[En]=Ta,E.push(Ta)}else I[En].addGroupId("audio",He.AUDIO),I[En].addGroupId("text",He.SUBTITLES);else{const qn=new Fa(be);I[En]=qn,N[En]=1,E.push(qn)}}),this.filterAndSortMediaOptions(E,a,H,oe,he)}filterAndSortMediaOptions(r,a,_,E,I){let N=[],H=[],oe=r;if((_||E)&&I&&(oe=oe.filter(({videoCodec:Xe,videoRange:lt,width:vt,height:Qt})=>(!!Xe||!!(vt&&Qt))&&es(lt))),oe.length===0){Promise.resolve().then(()=>{if(this.hls){a.levels.length&&this.warn(`One or more CODECS in variant not supported: ${JSON.stringify(a.levels[0].attrs)}`);const Xe=new Error("no level with compatible codecs found in manifest");this.hls.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:a.url,error:Xe,reason:Xe.message})}});return}if(a.audioTracks){const{preferManagedMediaSource:Xe}=this.hls.config;N=a.audioTracks.filter(lt=>!lt.audioCodec||yi(lt.audioCodec,"audio",Xe)),nc(N)}a.subtitles&&(H=a.subtitles,nc(H));const he=oe.slice(0);oe.sort((Xe,lt)=>{if(Xe.attrs["HDCP-LEVEL"]!==lt.attrs["HDCP-LEVEL"])return(Xe.attrs["HDCP-LEVEL"]||"")>(lt.attrs["HDCP-LEVEL"]||"")?1:-1;if(_&&Xe.height!==lt.height)return Xe.height-lt.height;if(Xe.frameRate!==lt.frameRate)return Xe.frameRate-lt.frameRate;if(Xe.videoRange!==lt.videoRange)return Ds.indexOf(Xe.videoRange)-Ds.indexOf(lt.videoRange);if(Xe.videoCodec!==lt.videoCodec){const vt=oi(Xe.videoCodec),Qt=oi(lt.videoCodec);if(vt!==Qt)return Qt-vt}if(Xe.uri===lt.uri&&Xe.codecSet!==lt.codecSet){const vt=Wi(Xe.codecSet),Qt=Wi(lt.codecSet);if(vt!==Qt)return Qt-vt}return Xe.averageBitrate!==lt.averageBitrate?Xe.averageBitrate-lt.averageBitrate:0});let be=he[0];if(this.steering&&(oe=this.steering.filterParsedLevels(oe),oe.length!==he.length)){for(let Xe=0;Xevt&&vt===To.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Qt)}break}const De=I&&!E,He={levels:oe,audioTracks:N,subtitleTracks:H,sessionData:a.sessionData,sessionKeys:a.sessionKeys,firstLevel:this._firstLevel,stats:a.stats,audio:I,video:E,altAudio:!De&&N.some(Xe=>!!Xe.url)};this.hls.trigger(l.MANIFEST_PARSED,He),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}get levels(){return this._levels.length===0?null:this._levels}get level(){return this.currentLevelIndex}set level(r){const a=this._levels;if(a.length===0)return;if(r<0||r>=a.length){const be=new Error("invalid level idx"),Se=r<0;if(this.hls.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.LEVEL_SWITCH_ERROR,level:r,fatal:Se,error:be,reason:be.message}),Se)return;r=Math.min(r,a.length-1)}const _=this.currentLevelIndex,E=this.currentLevel,I=E?E.attrs["PATHWAY-ID"]:void 0,N=a[r],H=N.attrs["PATHWAY-ID"];if(this.currentLevelIndex=r,this.currentLevel=N,_===r&&N.details&&E&&I===H)return;this.log(`Switching to level ${r} (${N.height?N.height+"p ":""}${N.videoRange?N.videoRange+" ":""}${N.codecSet?N.codecSet+" ":""}@${N.bitrate})${H?" with Pathway "+H:""} from level ${_}${I?" with Pathway "+I:""}`);const oe={level:r,attrs:N.attrs,details:N.details,bitrate:N.bitrate,averageBitrate:N.averageBitrate,maxBitrate:N.maxBitrate,realBitrate:N.realBitrate,width:N.width,height:N.height,codecSet:N.codecSet,audioCodec:N.audioCodec,videoCodec:N.videoCodec,audioGroups:N.audioGroups,subtitleGroups:N.subtitleGroups,loaded:N.loaded,loadError:N.loadError,fragmentError:N.fragmentError,name:N.name,id:N.id,uri:N.uri,url:N.url,urlId:0,audioGroupIds:N.audioGroupIds,textGroupIds:N.textGroupIds};this.hls.trigger(l.LEVEL_SWITCHING,oe);const he=N.details;if(!he||he.live){const be=this.switchParams(N.uri,E==null?void 0:E.details,he);this.loadPlaylist(be)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(r){this.manualLevelIndex=r,this._startLevel===void 0&&(this._startLevel=r),r!==-1&&(this.level=r)}get firstLevel(){return this._firstLevel}set firstLevel(r){this._firstLevel=r}get startLevel(){if(this._startLevel===void 0){const r=this.hls.config.startLevel;return r!==void 0?r:this.hls.firstAutoLevel}return this._startLevel}set startLevel(r){this._startLevel=r}onError(r,a){a.fatal||!a.context||a.context.type===ye.LEVEL&&a.context.level===this.level&&this.checkRetry(a)}onFragBuffered(r,{frag:a}){if(a!==void 0&&a.type===Ye.MAIN){const _=a.elementaryStreams;if(!Object.keys(_).some(I=>!!_[I]))return;const E=this._levels[a.level];E!=null&&E.loadError&&(this.log(`Resetting level error count of ${E.loadError} on frag buffered`),E.loadError=0)}}onLevelLoaded(r,a){var _;const{level:E,details:I}=a,N=this._levels[E];if(!N){var H;this.warn(`Invalid level index ${E}`),(H=a.deliveryDirectives)!=null&&H.skip&&(I.deltaUpdateFailed=!0);return}E===this.currentLevelIndex?(N.fragmentError===0&&(N.loadError=0),this.playlistLoaded(E,a,N.details)):(_=a.deliveryDirectives)!=null&&_.skip&&(I.deltaUpdateFailed=!0)}loadPlaylist(r){super.loadPlaylist();const a=this.currentLevelIndex,_=this.currentLevel;if(_&&this.shouldLoadPlaylist(_)){let E=_.uri;if(r)try{E=r.addDirectives(E)}catch(N){this.warn(`Could not construct new URL with HLS Delivery Directives: ${N}`)}const I=_.attrs["PATHWAY-ID"];this.log(`Loading level index ${a}${(r==null?void 0:r.msn)!==void 0?" at sn "+r.msn+" part "+r.part:""} with${I?" Pathway "+I:""} ${E}`),this.clearTimer(),this.hls.trigger(l.LEVEL_LOADING,{url:E,level:a,pathwayId:_.attrs["PATHWAY-ID"],id:0,deliveryDirectives:r||null})}}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(r){this.level=r,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=r)}removeLevel(r){var a;const _=this._levels.filter((E,I)=>I!==r?!0:(this.steering&&this.steering.removeLevel(E),E===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,E.details&&E.details.fragments.forEach(N=>N.level=-1)),!1));za(_),this._levels=_,this.currentLevelIndex>-1&&(a=this.currentLevel)!=null&&a.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(l.LEVELS_UPDATED,{levels:_})}onLevelsUpdated(r,{levels:a}){this._levels=a}checkMaxAutoUpdated(){const{autoLevelCapping:r,maxAutoLevel:a,maxHdcpLevel:_}=this.hls;this._maxAutoLevel!==a&&(this._maxAutoLevel=a,this.hls.trigger(l.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:r,levels:this.levels,maxAutoLevel:a,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:_}))}}function nc(j){const r={};j.forEach(a=>{const _=a.groupId||"";a.id=r[_]=r[_]||0,r[_]++})}class fl{constructor(r){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=r}abort(r){for(const _ in this.keyUriToKeyInfo){const E=this.keyUriToKeyInfo[_].loader;if(E){var a;if(r&&r!==((a=E.context)==null?void 0:a.frag.type))return;E.abort()}}}detach(){for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r];(a.mediaKeySessionContext||a.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[r]}}destroy(){this.detach();for(const r in this.keyUriToKeyInfo){const a=this.keyUriToKeyInfo[r].loader;a&&a.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(r,a=x.KEY_LOAD_ERROR,_,E,I){return new Ni({type:b.NETWORK_ERROR,details:a,fatal:!1,frag:r,response:I,error:_,networkDetails:E})}loadClear(r,a){if(this.emeController&&this.config.emeEnabled){const{sn:_,cc:E}=r;for(let I=0;I{N.setKeyFormat(H)});break}}}}load(r){return!r.decryptdata&&r.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(r).then(a=>this.loadInternal(r,a)):this.loadInternal(r)}loadInternal(r,a){var _,E;a&&r.setKeyFormat(a);const I=r.decryptdata;if(!I){const he=new Error(a?`Expected frag.decryptdata to be defined after setting format ${a}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,he))}const N=I.uri;if(!N)return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${N}"`)));let H=this.keyUriToKeyInfo[N];if((_=H)!=null&&_.decryptdata.key)return I.key=H.decryptdata.key,Promise.resolve({frag:r,keyInfo:H});if((E=H)!=null&&E.keyLoadPromise){var oe;switch((oe=H.mediaKeySessionContext)==null?void 0:oe.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return H.keyLoadPromise.then(he=>(I.key=he.keyInfo.decryptdata.key,{frag:r,keyInfo:H}))}}switch(H=this.keyUriToKeyInfo[N]={decryptdata:I,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},I.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return I.keyFormat==="identity"?this.loadKeyHTTP(H,r):this.loadKeyEME(H,r);case"AES-128":return this.loadKeyHTTP(H,r);default:return Promise.reject(this.createKeyLoadError(r,x.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${I.method}"`)))}}loadKeyEME(r,a){const _={frag:a,keyInfo:r};if(this.emeController&&this.config.emeEnabled){const E=this.emeController.loadKey(_);if(E)return(r.keyLoadPromise=E.then(I=>(r.mediaKeySessionContext=I,_))).catch(I=>{throw r.keyLoadPromise=null,I})}return Promise.resolve(_)}loadKeyHTTP(r,a){const _=this.config,E=_.loader,I=new E(_);return a.keyLoader=r.loader=I,r.keyLoadPromise=new Promise((N,H)=>{const oe={keyInfo:r,frag:a,responseType:"arraybuffer",url:r.decryptdata.uri},he=_.keyLoadPolicy.default,be={loadPolicy:he,timeout:he.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Se={onSuccess:(De,He,Xe,lt)=>{const{frag:vt,keyInfo:Qt,url:yr}=Xe;if(!vt.decryptdata||Qt!==this.keyUriToKeyInfo[yr])return H(this.createKeyLoadError(vt,x.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),lt));Qt.decryptdata.key=vt.decryptdata.key=new Uint8Array(De.data),vt.keyLoader=null,Qt.loader=null,N({frag:vt,keyInfo:Qt})},onError:(De,He,Xe,lt)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_ERROR,new Error(`HTTP Error ${De.code} loading key ${De.text}`),Xe,f({url:oe.url,data:void 0},De)))},onTimeout:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Xe))},onAbort:(De,He,Xe)=>{this.resetLoader(He),H(this.createKeyLoadError(a,x.INTERNAL_ABORTED,new Error("key loading aborted"),Xe))}};I.load(oe,be,Se)})}resetLoader(r){const{frag:a,keyInfo:_,url:E}=r,I=_.loader;a.keyLoader===I&&(a.keyLoader=null,_.loader=null),delete this.keyUriToKeyInfo[E],I&&I.destroy()}}function ki(){return self.SourceBuffer||self.WebKitSourceBuffer}function El(){if(!si())return!1;const r=ki();return!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function"}function ic(){if(!El())return!1;const j=si();return typeof(j==null?void 0:j.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(r=>j.isTypeSupported(la(r,"video")))||["mp4a.40.2","fLaC"].some(r=>j.isTypeSupported(la(r,"audio"))))}function Uo(){var j;const r=ki();return typeof(r==null||(j=r.prototype)==null?void 0:j.changeType)=="function"}const no=250,Wa=2,dl=.1,Sl=.05;class ac{constructor(r,a,_,E){this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=r,this.media=a,this.fragmentTracker=_,this.hls=E}destroy(){this.media=null,this.hls=this.fragmentTracker=null}poll(r,a){const{config:_,media:E,stalled:I}=this;if(E===null)return;const{currentTime:N,seeking:H}=E,oe=this.seeking&&!H,he=!this.seeking&&H;if(this.seeking=H,N!==r){if(this.moved=!0,H||(this.nudgeRetry=0),I!==null){if(this.stallReported){const vt=self.performance.now()-I;R.warn(`playback not stuck anymore @${N}, after ${Math.round(vt)}ms`),this.stallReported=!1}this.stalled=null}return}if(he||oe){this.stalled=null;return}if(E.paused&&!H||E.ended||E.playbackRate===0||!hr.getBuffered(E).length){this.nudgeRetry=0;return}const be=hr.bufferInfo(E,N,0),Se=be.nextStart||0;if(H){const vt=be.len>Wa,Qt=!Se||a&&a.start<=N||Se-N>Wa&&!this.fragmentTracker.getPartialFragment(N);if(vt||Qt)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var De;if(!(be.len>0)&&!Se)return;const Qt=Math.max(Se,be.start||0)-N,yr=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,Wr=(yr==null||(De=yr.details)==null?void 0:De.live)?yr.details.targetduration*2:Wa,Br=this.fragmentTracker.getPartialFragment(N);if(Qt>0&&(Qt<=Wr||Br)){E.paused||this._trySkipBufferHole(Br);return}}const He=self.performance.now();if(I===null){this.stalled=He;return}const Xe=He-I;if(!H&&Xe>=no&&(this._reportStall(be),!this.media))return;const lt=hr.bufferInfo(E,N,_.maxBufferHole);this._tryFixBufferStall(lt,Xe)}_tryFixBufferStall(r,a){const{config:_,fragmentTracker:E,media:I}=this;if(I===null)return;const N=I.currentTime,H=E.getPartialFragment(N);H&&(this._trySkipBufferHole(H)||!this.media)||(r.len>_.maxBufferHole||r.nextStart&&r.nextStart-N<_.maxBufferHole)&&a>_.highBufferWatchdogPeriod*1e3&&(R.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}_reportStall(r){const{hls:a,media:_,stallReported:E}=this;if(!E&&_){this.stallReported=!0;const I=new Error(`Playback stalling at @${_.currentTime} due to low buffer (${JSON.stringify(r)})`);R.warn(I.message),a.trigger(l.ERROR,{type:b.MEDIA_ERROR,details:x.BUFFER_STALLED_ERROR,fatal:!1,error:I,buffer:r.len})}}_trySkipBufferHole(r){const{config:a,hls:_,media:E}=this;if(E===null)return 0;const I=E.currentTime,N=hr.bufferInfo(E,I,0),H=I0&&N.len<1&&E.readyState<3,be=H-I;if(be>0&&(oe||he)){if(be>a.maxBufferHole){const{fragmentTracker:De}=this;let He=!1;if(I===0){const Xe=De.getAppendedFrag(0,Ye.MAIN);Xe&&H1?(E=0,this.bitrateTest=!0):E=_.firstAutoLevel),_.nextLoadLevel=E,this.level=_.loadLevel,this.loadedmetadata=!1}a>0&&r===-1&&(this.log(`Override startPosition with lastCurrentTime @${a.toFixed(3)}`),r=a),this.state=pn.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=r,this.tick()}else this._forceStartLoad=!0,this.state=pn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case pn.WAITING_LEVEL:{const{levels:a,level:_}=this,E=a==null?void 0:a[_],I=E==null?void 0:E.details;if(I&&(!I.live||this.levelLastLoaded===E)){if(this.waitForCdnTuneIn(I))break;this.state=pn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=pn.IDLE;break}break}case pn.FRAG_LOADING_WAITING_RETRY:{var r;const a=self.performance.now(),_=this.retryDate;if(!_||a>=_||(r=this.media)!=null&&r.seeking){const{levels:E,level:I}=this,N=E==null?void 0:E[I];this.resetStartWhenNotLoaded(N||null),this.state=pn.IDLE}}break}this.state===pn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){super.onTickEnd(),this.checkBuffer(),this.checkFragmentChanged()}doTickIdle(){const{hls:r,levelLastLoaded:a,levels:_,media:E}=this;if(a===null||!E&&(this.startFragRequested||!r.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const I=this.buffering?r.nextLoadLevel:r.loadLevel;if(!(_!=null&&_[I]))return;const N=_[I],H=this.getMainFwdBufferInfo();if(H===null)return;const oe=this.getLevelDetails();if(oe&&this._streamEnded(H,oe)){const lt={};this.altAudio&&(lt.type="video"),this.hls.trigger(l.BUFFER_EOS,lt),this.state=pn.ENDED;return}if(!this.buffering)return;r.loadLevel!==I&&r.manualLevel===-1&&this.log(`Adapting to level ${I} from level ${this.level}`),this.level=r.nextLoadLevel=I;const he=N.details;if(!he||this.state===pn.WAITING_LEVEL||he.live&&this.levelLastLoaded!==N){this.level=I,this.state=pn.WAITING_LEVEL;return}const be=H.len,Se=this.getMaxBufferLength(N.maxBitrate);if(be>=Se)return;this.backtrackFragment&&this.backtrackFragment.start>H.end&&(this.backtrackFragment=null);const De=this.backtrackFragment?this.backtrackFragment.start:H.end;let He=this.getNextFragment(De,he);if(this.couldBacktrack&&!this.fragPrevious&&He&&He.sn!=="initSegment"&&this.fragmentTracker.getState(He)!==Zs.OK){var Xe;const vt=((Xe=this.backtrackFragment)!=null?Xe:He).sn-he.startSN,Qt=he.fragments[vt-1];Qt&&He.cc===Qt.cc&&(He=Qt,this.fragmentTracker.removeFragment(Qt))}else this.backtrackFragment&&H.len&&(this.backtrackFragment=null);if(He&&this.isLoopLoading(He,De)){if(!He.gap){const vt=this.audioOnly&&!this.altAudio?Y.AUDIO:Y.VIDEO,Qt=(vt===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Qt&&this.afterBufferFlushed(Qt,vt,Ye.MAIN)}He=this.getNextFragmentLoopLoading(He,he,H,Ye.MAIN,Se)}He&&(He.initSegment&&!He.initSegment.data&&!this.bitrateTest&&(He=He.initSegment),this.loadFragment(He,N,De))}loadFragment(r,a,_){const E=this.fragmentTracker.getState(r);this.fragCurrent=r,E===Zs.NOT_LOADED||E===Zs.PARTIAL?r.sn==="initSegment"?this._loadInitSegment(r,a):this.bitrateTest?(this.log(`Fragment ${r.sn} of level ${r.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(r,a)):(this.startFragRequested=!0,super.loadFragment(r,a,_)):this.clearTrackerIfNeeded(r)}getBufferedFrag(r){return this.fragmentTracker.getBufferedFrag(r,Ye.MAIN)}followingBufferedFrag(r){return r?this.getBufferedFrag(r.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:r,media:a}=this;if(a!=null&&a.readyState){let _;const E=this.getAppendedFrag(a.currentTime);E&&E.start>1&&this.flushMainBuffer(0,E.start-1);const I=this.getLevelDetails();if(I!=null&&I.live){const H=this.getMainFwdBufferInfo();if(!H||H.len{const N=I.audioCodec;N&&(_=_||N.indexOf("mp4a.40.2")!==-1,E=E||N.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=_&&E&&!Uo(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=a.levels,this.startFragRequested=!1}onLevelLoading(r,a){const{levels:_}=this;if(!_||this.state!==pn.IDLE)return;const E=_[a.level];(!E.details||E.details.live&&this.levelLastLoaded!==E||this.waitForCdnTuneIn(E.details))&&(this.state=pn.WAITING_LEVEL)}onLevelLoaded(r,a){var _;const{levels:E}=this,I=a.level,N=a.details,H=N.totalduration;if(!E){this.warn(`Levels were reset while loading level ${I}`);return}this.log(`Level ${I} loaded [${N.startSN},${N.endSN}]${N.lastPartSn?`[part-${N.lastPartSn}-${N.lastPartIndex}]`:""}, cc [${N.startCC}, ${N.endCC}] duration:${H}`);const oe=E[I],he=this.fragCurrent;he&&(this.state===pn.FRAG_LOADING||this.state===pn.FRAG_LOADING_WAITING_RETRY)&&he.level!==a.level&&he.loader&&this.abortCurrentFrag();let be=0;if(N.live||(_=oe.details)!=null&&_.live){var Se;if(this.checkLiveUpdate(N),N.deltaUpdateFailed)return;be=this.alignPlaylists(N,oe.details,(Se=this.levelLastLoaded)==null?void 0:Se.details)}if(oe.details=N,this.levelLastLoaded=oe,this.hls.trigger(l.LEVEL_UPDATED,{details:N,level:I}),this.state===pn.WAITING_LEVEL){if(this.waitForCdnTuneIn(N))return;this.state=pn.IDLE}this.startFragRequested?N.live&&this.synchronizeToLiveEdge(N):this.setStartPosition(N,be),this.tick()}_handleFragmentLoadProgress(r){var a;const{frag:_,part:E,payload:I}=r,{levels:N}=this;if(!N){this.warn(`Levels were reset while fragment load was in progress. Fragment ${_.sn} of level ${_.level} will not be buffered`);return}const H=N[_.level],oe=H.details;if(!oe){this.warn(`Dropping fragment ${_.sn} of level ${_.level} after level details were reset`),this.fragmentTracker.removeFragment(_);return}const he=H.videoCodec,be=oe.PTSKnown||!oe.live,Se=(a=_.initSegment)==null?void 0:a.data,De=this._getAudioCodec(H),He=this.transmuxer=this.transmuxer||new Xn(this.hls,Ye.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Xe=E?E.index:-1,lt=Xe!==-1,vt=new mn(_.level,_.sn,_.stats.chunkCount,I.byteLength,Xe,lt),Qt=this.initPTS[_.cc];He.push(I,Se,De,he,_,E,oe.totalduration,be,vt,Qt)}onAudioTrackSwitching(r,a){const _=this.altAudio;if(!!!a.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const N=this.fragCurrent;N&&(this.log("Switching to main audio track, cancel main fragment load"),N.abortRequests(),this.fragmentTracker.removeFragment(N)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();const I=this.hls;_&&(I.trigger(l.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),I.trigger(l.AUDIO_TRACK_SWITCHED,a)}}onAudioTrackSwitched(r,a){const _=a.id,E=!!this.hls.audioTracks[_].url;if(E){const I=this.videoBuffer;I&&this.mediaBuffer!==I&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=I)}this.altAudio=E,this.tick()}onBufferCreated(r,a){const _=a.tracks;let E,I,N=!1;for(const H in _){const oe=_[H];if(oe.id==="main"){if(I=H,E=oe,H==="video"){const he=_[H];he&&(this.videoBuffer=he.buffer)}}else N=!0}N&&E?(this.log(`Alternate track found, use ${I}.buffered to schedule main fragment loading`),this.mediaBuffer=E.buffer):this.mediaBuffer=this.media}onFragBuffered(r,a){const{frag:_,part:E}=a;if(_&&_.type!==Ye.MAIN)return;if(this.fragContextChanged(_)){this.warn(`Fragment ${_.sn}${E?" p: "+E.index:""} of level ${_.level} finished buffering, but was aborted. state: ${this.state}`),this.state===pn.PARSED&&(this.state=pn.IDLE);return}const I=E?E.stats:_.stats;this.fragLastKbps=Math.round(8*I.total/(I.buffering.end-I.loading.first)),_.sn!=="initSegment"&&(this.fragPrevious=_),this.fragBufferedComplete(_,E)}onError(r,a){var _;if(a.fatal){this.state=pn.ERROR;return}switch(a.details){case x.FRAG_GAP:case x.FRAG_PARSING_ERROR:case x.FRAG_DECRYPT_ERROR:case x.FRAG_LOAD_ERROR:case x.FRAG_LOAD_TIMEOUT:case x.KEY_LOAD_ERROR:case x.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Ye.MAIN,a);break;case x.LEVEL_LOAD_ERROR:case x.LEVEL_LOAD_TIMEOUT:case x.LEVEL_PARSING_ERROR:!a.levelRetry&&this.state===pn.WAITING_LEVEL&&((_=a.context)==null?void 0:_.type)===ye.LEVEL&&(this.state=pn.IDLE);break;case x.BUFFER_APPEND_ERROR:case x.BUFFER_FULL_ERROR:if(!a.parent||a.parent!=="main")return;if(a.details===x.BUFFER_APPEND_ERROR){this.resetLoadingState();return}this.reduceLengthAndFlushBuffer(a)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case x.INTERNAL_EXCEPTION:this.recoverWorkerError(a);break}}checkBuffer(){const{media:r,gapController:a}=this;if(!(!r||!a||!r.readyState)){if(this.loadedmetadata||!hr.getBuffered(r).length){const _=this.state!==pn.IDLE?this.fragCurrent:null;a.poll(this.lastCurrentTime,_)}this.lastCurrentTime=r.currentTime}}onFragLoadEmergencyAborted(){this.state=pn.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}onBufferFlushed(r,{type:a}){if(a!==Y.AUDIO||this.audioOnly&&!this.altAudio){const _=(a===Y.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(_,a,Ye.MAIN),this.tick()}}onLevelsUpdated(r,a){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=a.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:r}=this;if(!r)return;const a=r.currentTime;let _=this.startPosition;if(_>=0&&a<_){if(r.seeking){this.log(`could not seek to ${_}, already seeking at ${a}`);return}const E=hr.getBuffered(r),N=(E.length?E.start(0):0)-_;N>0&&(N{const{hls:E}=this;if(!_||this.fragContextChanged(r))return;a.fragmentError=0,this.state=pn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const I=r.stats;I.parsing.start=I.parsing.end=I.buffering.start=I.buffering.end=self.performance.now(),E.trigger(l.FRAG_LOADED,_),r.bitrateTest=!1})}_handleTransmuxComplete(r){var a;const _="main",{hls:E}=this,{remuxResult:I,chunkMeta:N}=r,H=this.getCurrentContext(N);if(!H){this.resetWhenMissingContext(N);return}const{frag:oe,part:he,level:be}=H,{video:Se,text:De,id3:He,initSegment:Xe}=I,{details:lt}=be,vt=this.altAudio?void 0:I.audio;if(this.fragContextChanged(oe)){this.fragmentTracker.removeFragment(oe);return}if(this.state=pn.PARSING,Xe){if(Xe!=null&&Xe.tracks){const Tr=oe.initSegment||oe;this._bufferInitSegment(be,Xe.tracks,Tr,N),E.trigger(l.FRAG_PARSING_INIT_SEGMENT,{frag:Tr,id:_,tracks:Xe.tracks})}const Qt=Xe.initPTS,yr=Xe.timescale;y(Qt)&&(this.initPTS[oe.cc]={baseTime:Qt,timescale:yr},E.trigger(l.INIT_PTS_FOUND,{frag:oe,id:_,initPTS:Qt,timescale:yr}))}if(Se&<&&oe.sn!=="initSegment"){const Qt=lt.fragments[oe.sn-1-lt.startSN],yr=oe.sn===lt.startSN,Tr=!Qt||oe.cc>Qt.cc;if(I.independent!==!1){const{startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un}=Se;if(he)he.elementaryStreams[Se.type]={startPTS:Wr,endPTS:Br,startDTS:Cn,endDTS:un};else if(Se.firstKeyFrame&&Se.independent&&N.id===1&&!Tr&&(this.couldBacktrack=!0),Se.dropped&&Se.independent){const Hn=this.getMainFwdBufferInfo(),li=(Hn?Hn.end:this.getLoadPosition())+this.config.maxBufferHole,En=Se.firstKeyFramePTS?Se.firstKeyFramePTS:Wr;if(!yr&&liWa&&(oe.gap=!0);oe.setElementaryStreamInfo(Se.type,Wr,Br,Cn,un),this.backtrackFragment&&(this.backtrackFragment=oe),this.bufferFragmentData(Se,oe,he,N,yr||Tr)}else if(yr||Tr)oe.gap=!0;else{this.backtrack(oe);return}}if(vt){const{startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}=vt;he&&(he.elementaryStreams[Y.AUDIO]={startPTS:Qt,endPTS:yr,startDTS:Tr,endDTS:Wr}),oe.setElementaryStreamInfo(Y.AUDIO,Qt,yr,Tr,Wr),this.bufferFragmentData(vt,oe,he,N)}if(lt&&He!=null&&(a=He.samples)!=null&&a.length){const Qt={id:_,frag:oe,details:lt,samples:He.samples};E.trigger(l.FRAG_PARSING_METADATA,Qt)}if(lt&&De){const Qt={id:_,frag:oe,details:lt,samples:De.samples};E.trigger(l.FRAG_PARSING_USERDATA,Qt)}}_bufferInitSegment(r,a,_,E){if(this.state!==pn.PARSING)return;this.audioOnly=!!a.audio&&!a.video,this.altAudio&&!this.audioOnly&&delete a.audio;const{audio:I,video:N,audiovideo:H}=a;if(I){let oe=r.audioCodec;const he=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){oe&&(oe.indexOf("mp4a.40.5")!==-1?oe="mp4a.40.2":oe="mp4a.40.5");const be=I.metadata;be&&"channelCount"in be&&(be.channelCount||1)!==1&&he.indexOf("firefox")===-1&&(oe="mp4a.40.5")}oe&&oe.indexOf("mp4a.40.5")!==-1&&he.indexOf("android")!==-1&&I.container!=="audio/mpeg"&&(oe="mp4a.40.2",this.log(`Android: force audio codec to ${oe}`)),r.audioCodec&&r.audioCodec!==oe&&this.log(`Swapping manifest audio codec "${r.audioCodec}" for "${oe}"`),I.levelCodec=oe,I.id="main",this.log(`Init audio buffer, container:${I.container}, codecs[selected/level/parsed]=[${oe||""}/${r.audioCodec||""}/${I.codec}]`)}N&&(N.levelCodec=r.videoCodec,N.id="main",this.log(`Init video buffer, container:${N.container}, codecs[level/parsed]=[${r.videoCodec||""}/${N.codec}]`)),H&&this.log(`Init audiovideo buffer, container:${H.container}, codecs[level/parsed]=[${r.codecs}/${H.codec}]`),this.hls.trigger(l.BUFFER_CODECS,a),Object.keys(a).forEach(oe=>{const be=a[oe].initSegment;be!=null&&be.byteLength&&this.hls.trigger(l.BUFFER_APPENDING,{type:oe,data:be,frag:_,part:null,chunkMeta:E,parent:_.type})}),this.tickImmediate()}getMainFwdBufferInfo(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Ye.MAIN)}backtrack(r){this.couldBacktrack=!0,this.backtrackFragment=r,this.resetTransmuxer(),this.flushBufferGap(r),this.fragmentTracker.removeFragment(r),this.fragPrevious=null,this.nextLoadPosition=r.start,this.state=pn.IDLE}checkFragmentChanged(){const r=this.media;let a=null;if(r&&r.readyState>1&&r.seeking===!1){const _=r.currentTime;if(hr.isBuffered(r,_)?a=this.getAppendedFrag(_):hr.isBuffered(r,_+.1)&&(a=this.getAppendedFrag(_+.1)),a){this.backtrackFragment=null;const E=this.fragPlaying,I=a.level;(!E||a.sn!==E.sn||E.level!==I)&&(this.fragPlaying=a,this.hls.trigger(l.FRAG_CHANGED,{frag:a}),(!E||E.level!==I)&&this.hls.trigger(l.LEVEL_SWITCHED,{level:I}))}}}get nextLevel(){const r=this.nextBufferedFrag;return r?r.level:-1}get currentFrag(){const r=this.media;return r?this.fragPlaying||this.getAppendedFrag(r.currentTime):null}get currentProgramDateTime(){const r=this.media;if(r){const a=r.currentTime,_=this.currentFrag;if(_&&y(a)&&y(_.programDateTime)){const E=_.programDateTime+(a-_.start)*1e3;return new Date(E)}}return null}get currentLevel(){const r=this.currentFrag;return r?r.level:-1}get nextBufferedFrag(){const r=this.currentFrag;return r?this.followingBufferedFrag(r):null}get forceStartLoad(){return this._forceStartLoad}}class Xu{static get version(){return"1.5.20"}static isMSESupported(){return El()}static isSupported(){return ic()}static getMediaSource(){return si()}static get Events(){return l}static get ErrorTypes(){return b}static get ErrorDetails(){return x}static get DefaultConfig(){return Xu.defaultConfig?Xu.defaultConfig:To}static set DefaultConfig(r){Xu.defaultConfig=r}constructor(r={}){this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new Zn,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,$(r.debug||!1,"Hls instance");const a=this.config=yo(Xu.DefaultConfig,r);this.userConfig=r,a.progressive&&gc(a);const{abrController:_,bufferController:E,capLevelController:I,errorController:N,fpsController:H}=a,oe=new N(this),he=this.abrController=new _(this),be=this.bufferController=new E(this),Se=this.capLevelController=new I(this),De=new H(this),He=new Or(this),Xe=new fa(this),lt=a.contentSteeringController,vt=lt?new lt(this):null,Qt=this.levelController=new rc(this,vt),yr=new Jt(this),Tr=new fl(this.config),Wr=this.streamController=new pl(this,yr,Tr);Se.setStreamController(Wr),De.setStreamController(Wr);const Br=[He,Qt,Wr];vt&&Br.splice(1,0,vt),this.networkControllers=Br;const Cn=[he,be,Se,De,Xe,yr];this.audioTrackController=this.createController(a.audioTrackController,Br);const un=a.audioStreamController;un&&Br.push(new un(this,yr,Tr)),this.subtitleTrackController=this.createController(a.subtitleTrackController,Br);const Hn=a.subtitleStreamController;Hn&&Br.push(new Hn(this,yr,Tr)),this.createController(a.timelineController,Cn),Tr.emeController=this.emeController=this.createController(a.emeController,Cn),this.cmcdController=this.createController(a.cmcdController,Cn),this.latencyController=this.createController(Ls,Cn),this.coreComponents=Cn,Br.push(oe);const li=oe.onErrorOut;typeof li=="function"&&this.on(l.ERROR,li,oe)}createController(r,a){if(r){const _=new r(this);return a&&a.push(_),_}return null}on(r,a,_=this){this._emitter.on(r,a,_)}once(r,a,_=this){this._emitter.once(r,a,_)}removeAllListeners(r){this._emitter.removeAllListeners(r)}off(r,a,_=this,E){this._emitter.off(r,a,_,E)}listeners(r){return this._emitter.listeners(r)}emit(r,a,_){return this._emitter.emit(r,a,_)}trigger(r,a){if(this.config.debug)return this.emit(r,r,a);try{return this.emit(r,r,a)}catch(_){if(R.error("An internal error happened while handling event "+r+'. Error message: "'+_.message+'". Here is a stacktrace:',_),!this.triggeringException){this.triggeringException=!0;const E=r===l.ERROR;this.trigger(l.ERROR,{type:b.OTHER_ERROR,details:x.INTERNAL_EXCEPTION,fatal:E,event:r,error:_}),this.triggeringException=!1}}return!1}listenerCount(r){return this._emitter.listenerCount(r)}destroy(){R.log("destroy"),this.trigger(l.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(a=>a.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(a=>a.destroy()),this.coreComponents.length=0;const r=this.config;r.xhrSetup=r.fetchSetup=void 0,this.userConfig=null}attachMedia(r){R.log("attachMedia"),this._media=r,this.trigger(l.MEDIA_ATTACHING,{media:r})}detachMedia(){R.log("detachMedia"),this.trigger(l.MEDIA_DETACHING,void 0),this._media=null}loadSource(r){this.stopLoad();const a=this.media,_=this.url,E=this.url=s.buildAbsoluteURL(self.location.href,r,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,R.log(`loadSource:${E}`),a&&_&&(_!==E||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(a)),this.trigger(l.MANIFEST_LOADING,{url:r})}startLoad(r=-1){R.log(`startLoad(${r})`),this.started=!0,this.resumeBuffering();for(let a=0;a{r.resumeBuffering&&r.resumeBuffering()})}pauseBuffering(){R.log("pause buffering"),this.networkControllers.forEach(r=>{r.pauseBuffering&&r.pauseBuffering()})}swapAudioCodec(){R.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){R.log("recoverMediaError");const r=this._media;this.detachMedia(),r&&this.attachMedia(r)}removeLevel(r){this.levelController.removeLevel(r)}get levels(){const r=this.levelController.levels;return r||[]}get currentLevel(){return this.streamController.currentLevel}set currentLevel(r){R.log(`set currentLevel:${r}`),this.levelController.manualLevel=r,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(r){R.log(`set nextLevel:${r}`),this.levelController.manualLevel=r,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(r){R.log(`set loadLevel:${r}`),this.levelController.manualLevel=r}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(r){this.levelController.nextLoadLevel=r}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(r){R.log(`set firstLevel:${r}`),this.levelController.firstLevel=r}get startLevel(){const r=this.levelController.startLevel;return r===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:r}set startLevel(r){R.log(`set startLevel:${r}`),r!==-1&&(r=Math.max(r,this.minAutoLevel)),this.levelController.startLevel=r}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(r){const a=!!r;a!==this.config.capLevelToPlayerSize&&(a?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=a)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimate():NaN}set bandwidthEstimate(r){this.abrController.resetEstimator(r)}get ttfbEstimate(){const{bwEstimator:r}=this.abrController;return r?r.getEstimateTTFB():NaN}set autoLevelCapping(r){this._autoLevelCapping!==r&&(R.log(`set autoLevelCapping:${r}`),this._autoLevelCapping=r,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(r){Is(r)&&this._maxHdcpLevel!==r&&(this._maxHdcpLevel=r,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:r,config:{minAutoBitrate:a}}=this;if(!r)return 0;const _=r.length;for(let E=0;E<_;E++)if(r[E].maxBitrate>=a)return E;return 0}get maxAutoLevel(){const{levels:r,autoLevelCapping:a,maxHdcpLevel:_}=this;let E;if(a===-1&&r!=null&&r.length?E=r.length-1:E=a,_)for(let I=E;I--;){const N=r[I].attrs["HDCP-LEVEL"];if(N&&N<=_)return I}return E}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(r){this.abrController.nextAutoLevel=r}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}setAudioOption(r){var a;return(a=this.audioTrackController)==null?void 0:a.setAudioOption(r)}setSubtitleOption(r){var a;return(a=this.subtitleTrackController)==null||a.setSubtitleOption(r),null}get allAudioTracks(){const r=this.audioTrackController;return r?r.allAudioTracks:[]}get audioTracks(){const r=this.audioTrackController;return r?r.audioTracks:[]}get audioTrack(){const r=this.audioTrackController;return r?r.audioTrack:-1}set audioTrack(r){const a=this.audioTrackController;a&&(a.audioTrack=r)}get allSubtitleTracks(){const r=this.subtitleTrackController;return r?r.allSubtitleTracks:[]}get subtitleTracks(){const r=this.subtitleTrackController;return r?r.subtitleTracks:[]}get subtitleTrack(){const r=this.subtitleTrackController;return r?r.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(r){const a=this.subtitleTrackController;a&&(a.subtitleTrack=r)}get subtitleDisplay(){const r=this.subtitleTrackController;return r?r.subtitleDisplay:!1}set subtitleDisplay(r){const a=this.subtitleTrackController;a&&(a.subtitleDisplay=r)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(r){this.config.lowLatencyMode=r}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}}Xu.defaultConfig=void 0},53280:function(d,v,e){"use strict";e.d(v,{D:function(){return n}});function t(s,u,f){var c=f||{},h=c.noTrailing,o=h===void 0?!1:h,i=c.noLeading,y=i===void 0?!1:i,p=c.debounceMode,g=p===void 0?void 0:p,l,b=!1,x=0;function O(){l&&clearTimeout(l)}function k(T){var F=T||{},$=F.upcomingOnly,R=$===void 0?!1:$;O(),b=!R}function C(){for(var T=arguments.length,F=new Array(T),$=0;$s?y?(x=Date.now(),o||(l=setTimeout(g?Z:W,s))):W():o!==!0&&(l=setTimeout(g?Z:W,g===void 0?s-K:s))}return C.cancel=k,C}function n(s,u,f){var c=f||{},h=c.atBegin,o=h===void 0?!1:h;return t(s,u,{debounceMode:o!==!1})}}},__webpack_module_cache__={};function __webpack_require__(d){var v=__webpack_module_cache__[d];if(v!==void 0)return v.exports;var e=__webpack_module_cache__[d]={id:d,loaded:!1,exports:{}};return __webpack_modules__[d].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(d){var v=d&&d.__esModule?function(){return d.default}:function(){return d};return __webpack_require__.d(v,{a:v}),v}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},v;__webpack_require__.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var n=Object.create(null);__webpack_require__.r(n);var s={};v=v||[null,d({}),d([]),d(d)];for(var u=t&2&&e;typeof u=="object"&&!~v.indexOf(u);u=d(u))Object.getOwnPropertyNames(u).forEach(function(f){s[f]=function(){return e[f]}});return s.default=function(){return e},__webpack_require__.d(n,s),n}}(),function(){__webpack_require__.d=function(d,v){for(var e in v)__webpack_require__.o(v,e)&&!__webpack_require__.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:v[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(d){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(v,e){return __webpack_require__.f[e](d,v),v},[]))}}(),function(){__webpack_require__.u=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",570:"p__Home__Detail__OnlineNum__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",672:"p__Home__Detail__ShixunContext__Detail__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8365:"p__Home__Detail__ShixunContext__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"9ac508ea",67:"1b03fe25",109:"23b414f9",129:"7c107158",195:"ff3754fd",264:"c38192df",265:"edaf4987",292:"443bec8c",310:"7ae51cab",316:"1f60ada6",337:"c5e9c609",342:"b0e1f94c",354:"d4d139cf",479:"9ea93239",485:"04973f6c",508:"35199f0d",532:"9b2862bf",533:"fab912ee",547:"e2501473",556:"1bfc920d",559:"20d87e10",570:"46fb4a67",576:"6fb71e35",629:"44a1d9a5",643:"ea10c4e3",671:"4a609b8d",672:"6fe31085",680:"b3e3b88f",700:"2d37b76c",737:"b82f98c3",741:"ac5fd360",799:"cf84c2b6",869:"bd8b60a0",895:"3de27cee",921:"c00eda41",928:"43ef0607",981:"24da50c7",1006:"14b4fe97",1043:"734ab6b5",1045:"2f8e859a",1048:"32d3135e",1070:"7d8b9bee",1144:"c90eccaf",1148:"2b8b425e",1154:"8cb80842",1211:"bdd96f1a",1253:"9866613d",1257:"a4ad3423",1265:"d66454fb",1274:"5f6ea65a",1276:"c0280778",1343:"d552f9e1",1416:"01cd13f5",1423:"84a49c92",1427:"b6d95f20",1450:"80028a47",1461:"98eccc6e",1462:"fcf08abc",1470:"a17a6b1a",1475:"cb4b2a16",1482:"151ba2e9",1512:"1c085b86",1520:"659feacb",1531:"5dd24ec2",1545:"3ba5d8a6",1578:"b2e43839",1581:"63af3f9e",1582:"915a58e3",1646:"e6e27b60",1657:"ca141d10",1660:"76bc70ce",1674:"22dfee6c",1702:"4c6e98c0",1713:"af1e7834",1717:"31989bc4",1727:"cdcff911",1783:"fb7f634f",1799:"5ae9afa7",1810:"bd7bcaf7",1831:"c95840bf",1836:"ba892db7",1855:"b9008312",1880:"240b7cfc",1939:"90e4aae3",1953:"41f253c0",1962:"035c7b2e",2011:"59d51f98",2045:"7744bebe",2076:"e8fd98b8",2102:"5e265def",2141:"7cad8736",2216:"e401f0e5",2240:"a6bcb853",2245:"4c051301",2249:"f4830452",2254:"5767ca2a",2300:"bc020f4e",2303:"ea60e774",2307:"b1570e49",2338:"001fe20f",2339:"96015530",2386:"192e235c",2396:"133c621f",2404:"760d076d",2412:"ebd8acc2",2425:"a585e39e",2443:"5d5c2c0a",2476:"746ff3fb",2494:"68080a87",2501:"3421c5a3",2529:"922e34cf",2538:"de4a3723",2539:"53a86b90",2548:"0b85ce47",2570:"5c3cf4c1",2594:"e87d3761",2603:"d25ee242",2659:"17df4e97",2707:"557891ae",2806:"6f510fd6",2819:"0eda6838",2823:"4e52f1d5",2826:"ec49f5dc",2829:"22300e28",2837:"54a82605",2865:"ba754a64",2875:"d8d4ea8b",2884:"759b26c5",2969:"ab3357d7",2983:"cf277769",3006:"1018d70d",3133:"9bf3f89c",3141:"f83a07d0",3157:"95e29ab0",3183:"f73c574d",3198:"8e655451",3212:"c36da84a",3220:"1c51e01d",3247:"70bb53ae",3260:"e2b1e30f",3276:"2d03a6b2",3282:"93dc2500",3317:"f490a8bd",3332:"de5fd255",3355:"64861e9f",3356:"9f6626e9",3391:"56cfa576",3433:"84229bfc",3442:"2579c500",3447:"2dcdbd80",3451:"d670911f",3496:"be8a8ab5",3509:"ff053313",3550:"3dc83156",3581:"b210cd71",3585:"48f0e96e",3665:"c9c1b80d",3668:"e507d4b1",3697:"481a10d9",3747:"db96de33",3777:"d5b0f2f1",3784:"43096805",3805:"9dbcb95e",3862:"67698974",3873:"3c923d12",3885:"f87f7f15",3910:"a493ef38",3935:"e6712421",3951:"c269f59c",3985:"344a3358",3987:"5cecd51b",4014:"27a8e97c",4017:"27999042",4030:"98386769",4056:"4e2d6a20",4058:"733be6bb",4078:"2f2bd21e",4088:"236723f3",4093:"3d49e4d3",4105:"33d2fb15",4144:"346ee736",4164:"7fe0d579",4216:"121e47cd",4217:"27457f8a",4227:"89813cd9",4259:"bb097cc9",4264:"735355f2",4347:"08ede17f",4354:"140899b7",4360:"cf5efa52",4449:"e25d1468",4492:"22bee88f",4496:"7d65f4e3",4498:"e0fe8700",4504:"df6e7341",4514:"85bdfa82",4520:"2c66721b",4546:"3002feb8",4565:"7fc1f44d",4572:"5a20aab4",4599:"61def4cb",4601:"dbf04368",4610:"85d72c01",4621:"7c943553",4628:"ece2c60c",4662:"573e389f",4685:"c33f1528",4715:"8b0e824d",4736:"7bcd9282",4741:"9894aecc",4757:"093ffb1c",4766:"02d2a4bb",4770:"ab782b26",4790:"619413e4",4795:"71134cdd",4797:"a24e92db",4800:"78e41603",4849:"021f3509",4850:"1edda4b7",4862:"56f5d557",4884:"1bfc8e94",4889:"5ecaf2f9",4900:"c2fa0b2f",4928:"227748ad",4973:"77e402c6",4994:"e7e39679",5022:"a5b53c62",5043:"4edab20d",5048:"ddacfba7",5060:"85dafcc6",5096:"e3e63460",5111:"e39ac596",5125:"acbd9ee7",5148:"ac491994",5176:"a790896e",5179:"3df72677",5186:"69a582a1",5191:"56492f84",5238:"5e83b6b6",5290:"5dabcdc2",5297:"01e5cf8e",5319:"39b4d846",5321:"1163c84e",5335:"69e514be",5354:"7ae70604",5357:"a3975490",5359:"f48142d8",5382:"19ba1755",5402:"b2b43a8f",5416:"454536b7",5434:"38b302a6",5470:"7ba15cd7",5494:"d89549c4",5518:"084658a4",5549:"191e2bdd",5572:"4a5cf530",5573:"b212b8fc",5599:"7838f994",5624:"8171e0ad",5631:"e00d3d36",5650:"ba1da951",5679:"4a090bef",5705:"b3825926",5729:"9adaabc9",5757:"2843b608",5764:"e0d7e586",5775:"af94f477",5786:"ad639f51",5798:"0f3b4e72",5816:"e5c76197",5825:"5b09c2f0",5876:"5eded409",5888:"2c4a7d21",5891:"2f93a0e0",5895:"c50382fc",5902:"936d3fb0",5915:"4d0533cf",5972:"629273e1",5992:"e6d5abcd",6029:"2baf21d5",6034:"1f3482f6",6045:"d268f87f",6047:"3ce45acd",6052:"a79da40f",6063:"92b0e253",6069:"c65393c8",6126:"99519171",6127:"01711ee9",6170:"ba8df8d7",6265:"da67525e",6270:"6ad7eee0",6277:"b087d596",6312:"87886f73",6328:"40c542bf",6366:"2abd7b37",6378:"7f3a946a",6411:"8c37c144",6434:"02822e0b",6444:"e95f4bcd",6452:"e7375ea9",6531:"bde1c8f7",6541:"e931a4f6",6583:"d7b48c64",6587:"cd25c8fd",6634:"5bce8e25",6651:"7b40db2e",6685:"daa8e12d",6729:"052f470f",6741:"4f3739f8",6758:"0ab6597f",6774:"59d4d618",6784:"23863b47",6788:"60b56538",6796:"038925da",6805:"2b9be050",6820:"460f9f28",6845:"df3b3798",6882:"e2cc0627",6883:"6cb80143",6904:"e05e0e05",6913:"4f9e45e7",6949:"04b3b3a0",6963:"2c915c8f",6982:"3201a542",7008:"6c9735e2",7043:"77ac705f",7045:"02381632",7046:"2ef819a1",7058:"9c217ae2",7062:"8908a67a",7084:"46ccce72",7156:"e7466006",7178:"45d02e76",7182:"1bb7addb",7242:"a3c62e97",7260:"3262bb7d",7331:"2e27a23b",7333:"b7f12ce6",7365:"1005464f",7374:"b2456c08",7395:"bef0fbea",7460:"a15b8245",7477:"dab0e013",7482:"2b1ff0ba",7527:"4cc018f9",7545:"c5114a0d",7560:"0d7214ac",7589:"6a05399d",7591:"c8233ce9",7614:"6afc9f7f",7622:"4ee5b394",7686:"4fcec9f9",7706:"c2a79e40",7806:"5f66ffb2",7852:"2b9824d7",7855:"91bc853e",7857:"ada9e40a",7878:"4d62eb43",7884:"6b238432",7922:"b3598405",7948:"7deb7765",7964:"29aed9a1",8014:"c86d8b0b",8062:"bc5d75b5",8072:"ef31263e",8077:"0d509b4e",8085:"3b02355b",8089:"d536b13a",8143:"272c6259",8155:"8de8547a",8161:"83c5fa9a",8237:"bb41ce1e",8241:"37533b90",8302:"81bee336",8307:"39b7a18c",8340:"abddc432",8350:"07df8a75",8365:"fe36cabc",8398:"da4d9438",8431:"225d8800",8435:"5c70cbb5",8447:"47aafa2b",8517:"f8ed41de",8561:"333e8ec9",8563:"d2893bd3",8634:"eb0aff70",8639:"d77439de",8665:"4bf36fa7",8688:"bc5b75f1",8689:"aa82d7a4",8723:"eed3bf93",8737:"ce7dad23",8776:"0ad26240",8782:"21c3c877",8787:"3edcf911",8797:"38e94dd2",8823:"4750ef8d",8827:"4964829f",8842:"9f25a3e2",8866:"41d4573d",8882:"16f53671",8885:"358e2d0f",8898:"d002bcd8",8909:"1e29403e",8920:"7f82440c",8963:"790aecdd",8982:"74d73bf1",8999:"73348dc2",9076:"f5a17106",9104:"bbcb2345",9133:"0abb8821",9186:"4559c3b0",9205:"110ee97a",9215:"21ebbcbd",9252:"0d791a59",9260:"cf5f8140",9332:"7ab4403d",9360:"edc9b326",9366:"b8d2b577",9391:"68a85af0",9404:"9fcc3d3e",9408:"dd5ae7b5",9416:"bf5770f9",9487:"043b2ef8",9489:"01da7cf5",9507:"c5204a25",9519:"7bbb0e22",9532:"859e05a2",9554:"ed358e7b",9559:"f794af19",9590:"827b71ea",9647:"cbd4e1e3",9649:"92cccb86",9674:"40d102bc",9677:"4bc5636d",9695:"763acec3",9715:"e467a322",9716:"b929ed6f",9785:"1224ce29",9788:"04775768",9883:"2e3b3113",9890:"be84cd24",9891:"2e66be10",9895:"b8e31ff2",9921:"cdf9721a",9922:"6dd34c9c",9928:"5989f5e0",9944:"ac8120d6",9950:"74f6dfb2",9968:"17466785"}[d]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",195:"p__Classrooms__Lists__GroupHomework__Detail__index",264:"p__User__Detail__Order__pages__orderPay__index",265:"p__User__Detail__Topics__index",292:"p__Classrooms__Lists__Exercise__Add__index",310:"p__User__Detail__ExperImentImg__Detail__index",337:"p__Paperlibrary__Random__PreviewEdit__index",342:"p__Classrooms__Lists__ShixunHomeworks__Comment__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",869:"p__Guidance__index",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1148:"p__Shixuns__Detail__Repository__UploadFile__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1265:"p__Classrooms__Lists__Announcement__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1416:"p__User__Detail__AccountInfo__CareerCertification__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1702:"p__Classrooms__New__index",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1783:"p__virtualSpaces__Lists__Experiment__index",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",2045:"p__Engineering__Lists__TeacherList__index",2076:"p__User__Detail__Competitions__index",2102:"p__Classrooms__Lists__Board__Edit__index",2141:"p__Shixuns__Detail__Split__index",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2254:"p__Shixuns__Detail__Discuss__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2529:"p__User__Detail__id",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2826:"p__User__Detail__DataSet__index",2829:"p__Messages__Private__index",2865:"p__Innovation__MyMirror__index",2875:"p__Shixuns__Detail__id",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",2983:"p__Forums__Index__index",3006:"p__Engineering__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3282:"layouts__ShixunDetail__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3332:"p__Paths__Detail__id",3355:"p__Classrooms__Lists__Polls__index",3356:"p__Classrooms__Lists__Assistant__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3496:"p__User__Detail__OtherResources__index",3509:"p__HttpStatus__SixActivities",3581:"p__Classrooms__Lists__ShixunHomeworks__Detail__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3665:"p__tasks__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3935:"p__Classrooms__Lists__GroupHomework__index",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4056:"p__IntrainCourse__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4601:"p__Paths__Detail__Statistics__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4849:"p__User__Detail__ExperImentImg__index",4862:"p__Paperlibrary__index",4884:"p__Shixuns__Detail__Repository__Commit__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5176:"p__User__Detail__Videos__Protocol__index",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5191:"p__User__Detail__Certificate__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5470:"p__Shixuns__Detail__Collaborators__index",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5599:"p__User__Detail__Paths__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5816:"p__Paperlibrary__Random__Edit__index",5825:"p__Classrooms__Lists__Exercise__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5895:"p__User__Detail__AccountInfo__Profile__Edit__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6052:"p__Paths__Index__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6277:"p__Shixuns__Edit__index",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6452:"p__Innovation__PublicDataSet__index",6541:"p__Shixuns__Detail__Dataset__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6651:"p__Engineering__Evaluate__Detail__index",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6758:"p__Classrooms__Lists__Attachment__index",6784:"p__Innovation__Edit__index",6788:"p__Classrooms__Lists__ProgramHomework__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6805:"p__User__Detail__AccountInfo__RealNameCertification__index",6820:"p__User__Detail__Topics__Normal__index",6845:"p__Shixuns__Detail__Settings__index",6882:"p__Classrooms__New__StartClass__index",6883:"p__Competitions__Index__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",6982:"p__User__Detail__AccountInfo__Profile__index",7008:"p__Shixuns__New__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7046:"p__Shixuns__Detail__Repository__AddFile__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7852:"p__Classrooms__Lists__ShixunHomeworks__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7878:"p__Classrooms__Lists__LiveVideo__index",7884:"p__Shixuns__Exports__index",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",7948:"p__User__Detail__ClassManagement__index",8014:"p__Classrooms__Lists__Teachers__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8077:"p__Classrooms__Lists__Students__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8143:"layouts__GraduationsDetail__index",8155:"p__Shixuns__Overview__index",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8302:"p__Classrooms__Lists__Board__index",8307:"p__User__Detail__Shixuns__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8517:"p__User__Detail__Topics__Group__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8634:"p__Classrooms__Lists__CourseGroup__List__index",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8782:"p__Shixuns__Index__index",8787:"p__Competitions__Entered__index",8797:"p__Competitions__Edit__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8982:"p__Paths__New__index",8999:"p__Three__index",9076:"p__Account__Binding__index",9133:"p__Shixuns__Detail__Challenges__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9215:"p__Shixuns__Detail__ForkList__index",9332:"p__Classrooms__Lists__Video__index",9360:"p__User__Detail__virtualSpaces__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9408:"p__Shixuns__Detail__RankingList__index",9416:"p__Graduations__Lists__Tasks__index",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9519:"p__User__Detail__ClassManagement__Item__index",9590:"p__User__Detail__TeachGroup__index",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9890:"p__Classrooms__Lists__CommonHomework__index",9891:"p__User__Detail__Videos__Success__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"91ed81ab",67:"1ad7d0db",109:"1a7fc455",195:"65632591",264:"5fd9b3fc",265:"d92c6f86",292:"9a0e8f6b",310:"06815302",337:"ee05039e",342:"ab091f90",479:"bba9e475",485:"d63578fe",508:"82593858",532:"c829a014",533:"5fee20bc",547:"5581debc",556:"892f4292",559:"c49aa5ba",576:"eb3ce426",643:"22ded693",680:"e67e9e01",700:"4c1ff0fa",737:"98eb2f74",799:"b3487c4b",869:"6740e24b",895:"ad846737",921:"30cc7e9b",928:"0277270a",1006:"2263131d",1043:"e8c0878b",1045:"0eeb3595",1048:"dafc3f4f",1070:"e67e9e01",1148:"754fff63",1211:"bdb8faab",1253:"46aca33c",1257:"156e8f74",1265:"d902bdae",1276:"bbc6eeec",1343:"b7f33c89",1416:"735363dc",1423:"5c4a76fc",1427:"f91322f7",1450:"1edcc2ed",1461:"917cbb16",1470:"183c9793",1475:"d22fbaa0",1482:"d159af07",1512:"f3653a35",1520:"f7300d0e",1545:"04d6c7d3",1578:"efcb0bdc",1581:"efffd7c0",1582:"8e45b6ff",1657:"ddd6a700",1674:"fdbc1e05",1702:"fca45632",1713:"5ed278a4",1717:"08a9e890",1727:"de83767d",1783:"47d0320e",1810:"03cdfb68",1831:"8d05bf11",1836:"5f0d3f7f",1855:"b92cccb4",1880:"f67d7892",1939:"48e30d48",1953:"23cbc47f",1962:"84e145fa",2045:"dcfad42d",2076:"09b07fa0",2102:"ec61f9f0",2141:"5eb2f330",2216:"e3ba73cf",2240:"e7cce869",2254:"ccda836f",2303:"87592c17",2307:"b2c54321",2338:"43e9ff08",2339:"d90c9bd2",2396:"e70f11d6",2404:"08d36549",2412:"6b6ca0ef",2425:"47b23ee4",2443:"78513f2d",2476:"cf85a190",2501:"2441982c",2529:"9d9944da",2539:"43d36117",2548:"75182034",2570:"3dbc6300",2603:"0277270a",2659:"f6071a36",2707:"cabcb16e",2806:"2c7248b3",2819:"9455b08a",2823:"a13b21fb",2826:"0b6be43b",2829:"a5909474",2865:"6ef3cf6b",2875:"d6c8355d",2884:"904823c3",2983:"c8c482f7",3006:"7fce4e74",3141:"72791f8b",3157:"2038b5dc",3183:"b2253f40",3212:"ad1521c1",3220:"a5be3990",3247:"50105eb7",3260:"49ca09b2",3276:"7bbb651d",3282:"2dff97e8",3317:"137440b7",3332:"15432cd5",3355:"39e3d07c",3356:"c6a4098f",3391:"f0e498fe",3433:"e6919a98",3442:"bdf7849c",3447:"1653d818",3451:"e3a31387",3496:"44bf4044",3509:"70043ca5",3581:"43d907cb",3585:"5f288e7b",3665:"99f7daed",3668:"86f20630",3747:"e06419ae",3784:"c81d4a51",3873:"bbd9808d",3910:"658d457f",3935:"cd50aa32",3951:"4a9249b1",4030:"f308ee3a",4056:"10eacfff",4078:"aa54548e",4093:"c1f29d01",4105:"e39011c7",4144:"f10aa199",4164:"9f30fd4a",4216:"0277270a",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"36917df0",4449:"e68d8d58",4492:"cdc29460",4496:"77babddd",4498:"b05686dd",4504:"466a61af",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"aca6ff45",4601:"3c8ac557",4610:"687005a6",4621:"ead619d7",4662:"4e7b8c12",4715:"45efe14a",4736:"2968553b",4741:"afeb6eca",4757:"73b754d2",4766:"b5df5a8e",4770:"674b2d2a",4795:"939f9f81",4800:"f50302a4",4849:"2a1dc219",4862:"e8eacc3e",4884:"bd293d3b",4889:"db5cf2c9",4928:"a4b1a237",4973:"129c56e8",4994:"50caae56",5022:"81b1b86b",5043:"247e6954",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5125:"57501e4a",5148:"572faeac",5176:"9c49e7fa",5179:"21f01751",5186:"aeb0dc56",5191:"0af389b2",5238:"3d814a61",5297:"5426028f",5319:"34217c3f",5335:"fec6fd9f",5357:"1fbb7d24",5359:"b254a598",5382:"0c911991",5402:"60617d0d",5470:"b25021a2",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5599:"2ae54005",5624:"0208754c",5650:"f8f63f4b",5705:"df6bf207",5729:"46f9b5d4",5775:"8945cad2",5786:"37a81eaa",5798:"ce1cf7da",5816:"d749b200",5825:"73177a8c",5888:"193a7f8f",5891:"3b7a128f",5895:"9ddd624a",5915:"bc9c3e69",5972:"c7a91e8e",5992:"419f5d2f",6029:"2ded5a5a",6052:"59cb6398",6063:"a5f0409a",6069:"b4a6d2ab",6127:"f31505a8",6265:"9459eb93",6270:"cc24b0fc",6277:"12e50919",6328:"de2b9d62",6366:"079fc2d8",6434:"0112f8db",6444:"fd46d237",6452:"50a6d310",6541:"d1c967cd",6583:"7d33505d",6587:"9c49e7fa",6634:"df151169",6651:"b07fe216",6685:"f5f5b969",6729:"aea3b7f5",6741:"b838eb14",6758:"558cc090",6784:"1affe817",6788:"9cd39ff5",6796:"89c76e37",6805:"5b253c81",6820:"cebdf1cf",6845:"b7aabf70",6882:"c2d2eada",6883:"7740a702",6904:"44afaa9b",6913:"739202fe",6963:"84e145fa",6982:"3043a9c3",7008:"fe74a83d",7043:"25478869",7045:"48f6fc4c",7046:"c7301ded",7058:"984a456a",7062:"fe78dd10",7178:"6e47d75d",7182:"183c9793",7242:"4f353f61",7260:"ae741547",7395:"5c10e8d8",7460:"dedd2038",7477:"832457fc",7482:"c37a3f01",7527:"6b64ff47",7545:"1f6a7624",7560:"d82e43ca",7589:"2a3e68f3",7614:"de9ee12f",7622:"ca0e645a",7806:"80b7b1d6",7852:"fce1e197",7855:"3970a709",7857:"13a29416",7878:"8dfa25f5",7884:"1ca6cde0",7922:"c1d9e2f3",7948:"bed733e5",8014:"9ef39203",8062:"8e384b9f",8072:"540f746b",8077:"0b2c51d9",8085:"0b7f10a8",8143:"b6ca83ad",8155:"d345abd7",8237:"44654223",8241:"02a0cb2f",8302:"b4649ac5",8307:"02e15761",8398:"cf8eb735",8431:"60a111b6",8435:"21d4dff0",8447:"0875c082",8517:"cccfddad",8563:"3a763677",8634:"317d0a2b",8665:"c52575bc",8688:"c044db56",8689:"459af240",8723:"5166ac36",8782:"918afc23",8787:"121de108",8797:"13e5189e",8823:"9e7a9852",8827:"fcd50af0",8866:"664121ad",8882:"f3e42f72",8885:"de905169",8982:"6e2e337e",8999:"448aa22f",9076:"6a501148",9133:"ab171f08",9205:"49a3e67d",9215:"f737e7e7",9332:"a627cf98",9360:"27c7d4f7",9366:"4f511490",9391:"c11edda0",9404:"d8cf04f7",9408:"d3565b1a",9416:"6ead6660",9487:"a73f5679",9489:"ee2bb5b7",9507:"396e34cd",9519:"88d248ee",9590:"29583579",9647:"452de157",9649:"00fb4211",9674:"d0f91ed7",9677:"26548cb7",9695:"bb84056a",9715:"b6c6645f",9716:"a5750e0d",9785:"08d36549",9788:"54a86ef9",9890:"9ebce4ba",9891:"512a9301",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[d]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(d){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){__webpack_require__.o=function(d,v){return Object.prototype.hasOwnProperty.call(d,v)}}(),function(){var d={};__webpack_require__.l=function(v,e,t,n){if(d[v]){d[v].push(e);return}var s,u;if(t!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0&&arguments[0]!==void 0?arguments[0]:"";return De.endsWith("/")?De:"".concat(De,"/")}var kl=__webpack_require__(38127),ul=__webpack_require__(38329),Hu=__webpack_require__(8616),Ru=["content"],Su=["content"],_c=/^(http:|https:)?\/\//;function Rl(De){return _c.test(De)||De.startsWith("/")&&!De.startsWith("/*")||De.startsWith("./")||De.startsWith("../")}var pu=function(){return je.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},Yu=function(He){var Xe,lt=He.loaderData,vt=He.htmlPageOpts,Qt=He.manifest,yr=(Qt==null||(Xe=Qt.assets)===null||Xe===void 0?void 0:Xe["umi.css"])||"";return je.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(lt||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(vt||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(yr,"'")}})};function Cu(De){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof De=="string")return Rl(De)?(0,jo.Z)({src:De},He):{content:De};if((0,Hu.Z)(De)==="object")return(0,jo.Z)((0,jo.Z)({},De),He);throw new Error("Invalid script type: ".concat((0,Hu.Z)(De)))}function Bc(De){return Rl(De)?{type:"link",href:De}:{type:"style",content:De}}var Tc=function(He){var Xe,lt,vt,Qt,yr,Tr,Wr=He.htmlPageOpts;return je.createElement(je.Fragment,null,(Wr==null?void 0:Wr.title)&&je.createElement("title",null,Wr.title),Wr==null||(Xe=Wr.favicons)===null||Xe===void 0?void 0:Xe.map(function(Br,Cn){return je.createElement("link",{key:Cn,rel:"shortcut icon",href:Br})}),(Wr==null?void 0:Wr.description)&&je.createElement("meta",{name:"description",content:Wr.description}),(Wr==null||(lt=Wr.keywords)===null||lt===void 0?void 0:lt.length)&&je.createElement("meta",{name:"keywords",content:Wr.keywords.join(",")}),Wr==null||(vt=Wr.metas)===null||vt===void 0?void 0:vt.map(function(Br){return je.createElement("meta",{key:Br.name,name:Br.name,content:Br.content})}),Wr==null||(Qt=Wr.links)===null||Qt===void 0?void 0:Qt.map(function(Br,Cn){return je.createElement("link",(0,ul.Z)({key:Cn},Br))}),Wr==null||(yr=Wr.styles)===null||yr===void 0?void 0:yr.map(function(Br,Cn){var un=Bc(Br),Hn=un.type,li=un.href,En=un.content;if(Hn==="link")return je.createElement("link",{key:Cn,rel:"stylesheet",href:li});if(Hn==="style")return je.createElement("style",{key:Cn},En)}),Wr==null||(Tr=Wr.headScripts)===null||Tr===void 0?void 0:Tr.map(function(Br,Cn){var un=Cu(Br),Hn=un.content,li=(0,kl.Z)(un,Ru);return je.createElement("script",(0,ul.Z)({dangerouslySetInnerHTML:{__html:Hn},key:Cn},li))}))};function Ao(De){var He,Xe=De.children,lt=De.loaderData,vt=De.manifest,Qt=De.htmlPageOpts,yr=De.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Tr=De.mountElementId;if(yr!=null&&yr.pureHtml)return je.createElement("html",null,je.createElement("head",null),je.createElement("body",null,je.createElement(pu,null),je.createElement("div",{id:Tr},Xe),je.createElement(Yu,{manifest:vt,loaderData:lt,htmlPageOpts:Qt})));if(yr!=null&&yr.pureApp)return je.createElement(je.Fragment,null,Xe);var Wr=typeof window=="undefined"?vt==null?void 0:vt.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return je.createElement("html",{suppressHydrationWarning:!0,lang:(Qt==null?void 0:Qt.lang)||"en"},je.createElement("head",null,je.createElement("meta",{charSet:"utf-8"}),je.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),Wr&&je.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:Wr}),je.createElement(Tc,{htmlPageOpts:Qt})),je.createElement("body",null,je.createElement(pu,null),je.createElement("div",{id:Tr},Xe),je.createElement(Yu,{manifest:vt,loaderData:lt,htmlPageOpts:Qt}),Qt==null||(He=Qt.scripts)===null||He===void 0?void 0:He.map(function(Br,Cn){var un=Cu(Br),Hn=un.content,li=(0,kl.Z)(un,Su);return je.createElement("script",(0,ul.Z)({dangerouslySetInnerHTML:{__html:Hn},key:Cn},li))})))}var ll=je.createContext(void 0);function bl(){return je.useContext(ll)}var Ll=["redirect"];function Ml(De){var He=De.routesById,Xe=De.parentId,lt=De.routeComponents,vt=De.useStream,Qt=vt===void 0?!0:vt;return Object.keys(He).filter(function(yr){return He[yr].parentId===Xe}).map(function(yr){var Tr=Fl((0,jo.Z)((0,jo.Z)({route:He[yr],routeComponent:lt[yr],loadingComponent:De.loadingComponent,reactRouter5Compat:De.reactRouter5Compat},De.reactRouter5Compat&&{hasChildren:Object.keys(He).filter(function(Br){return He[Br].parentId===yr}).length>0}),{},{useStream:Qt})),Wr=Ml({routesById:He,routeComponents:lt,parentId:Tr.id,loadingComponent:De.loadingComponent,reactRouter5Compat:De.reactRouter5Compat,useStream:Qt});return Wr.length>0&&(Tr.children=Wr,Tr.routes=Wr),Tr})}function xl(De){var He=(0,uu.UO)(),Xe=(0,uu.Gn)(De.to,He),lt=(0,Ol.T$)(),vt=(0,uu.TH)();if(lt!=null&<.keepQuery){var Qt=vt.search+vt.hash;Xe+=Qt}var yr=(0,jo.Z)((0,jo.Z)({},De),{},{to:Xe});return je.createElement(uu.Fg,(0,ul.Z)({replace:!0},yr))}function Fl(De){var He=De.route,Xe=De.useStream,lt=Xe===void 0?!0:Xe,vt=He.redirect,Qt=(0,kl.Z)(He,Ll),yr=De.reactRouter5Compat?ql:Bl;return(0,jo.Z)({element:vt?je.createElement(xl,{to:vt}):je.createElement(ll.Provider,{value:{route:De.route}},je.createElement(yr,{loader:je.memo(De.routeComponent),loadingComponent:De.loadingComponent||Oc,hasChildren:De.hasChildren,useStream:lt}))},Qt)}function Oc(){return je.createElement("div",null)}function ql(De){var He=bl(),Xe=He.route,lt=(0,Ol.Ov)(),vt=lt.history,Qt=lt.clientRoutes,yr=(0,uu.UO)(),Tr={params:yr,isExact:!0,path:Xe.path,url:vt.location.pathname},Wr=De.loader,Br={location:vt.location,match:Tr,history:vt,params:yr,route:Xe,routes:Qt};return De.useStream?je.createElement(je.Suspense,{fallback:je.createElement(De.loadingComponent,null)},je.createElement(Wr,Br,De.hasChildren&&je.createElement(uu.j3,null))):je.createElement(Wr,Br,De.hasChildren&&je.createElement(uu.j3,null))}function Bl(De){var He=De.loader;return De.useStream?je.createElement(je.Suspense,{fallback:je.createElement(De.loadingComponent,null)},je.createElement(He,null)):je.createElement(He,null)}var cl=null;function Pc(){return cl}function mc(De){var He=De.history,Xe=je.useState({action:He.action,location:He.location}),lt=(0,ol.Z)(Xe,2),vt=lt[0],Qt=lt[1];return(0,je.useLayoutEffect)(function(){return He.listen(Qt)},[He]),(0,je.useLayoutEffect)(function(){function yr(Tr){De.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:De.routes,clientRoutes:De.clientRoutes,location:Tr.location,action:Tr.action,basename:De.basename,isFirst:!!Tr.isFirst}})}return yr({location:vt.location,action:vt.action,isFirst:!0}),He.listen(yr)},[He,De.routes,De.clientRoutes]),je.createElement(uu.F0,{navigator:He,location:vt.location,basename:De.basename},De.children)}function Lu(){var De=(0,Ol.Ov)(),He=De.clientRoutes;return(0,uu.V$)(He)}var Nl=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],wl=function(He,Xe){var lt=He.basename||"/",vt=Ml({routesById:He.routes,routeComponents:He.routeComponents,loadingComponent:He.loadingComponent,reactRouter5Compat:He.reactRouter5Compat,useStream:He.useStream});He.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:vt}});for(var Qt=je.createElement(mc,{basename:lt,pluginManager:He.pluginManager,routes:He.routes,clientRoutes:vt,history:He.history},Xe),yr=0,Tr=Nl;yrnew Promise((lt,vt)=>{var Qt=Wr=>{try{Tr(Xe.next(Wr))}catch(Br){vt(Br)}},yr=Wr=>{try{Tr(Xe.throw(Wr))}catch(Br){vt(Br)}},Tr=Wr=>Wr.done?lt(Wr.value):Promise.resolve(Wr.value).then(Qt,yr);Tr((Xe=Xe.apply(De,He)).next())});function vc(){return tc(this,null,function*(){return{routes:{1:{path:"/",parentId:"@@/global-layout",id:"1"},2:{path:"/paperlibrary",parentId:"1",id:"2"},3:{path:"/paperlibrary",parentId:"2",id:"3"},4:{path:"/paperlibrary/add",parentId:"2",id:"4"},5:{path:"/paperlibrary/add/:id",parentId:"2",id:"5"},6:{path:"/paperlibrary/see/:id",parentId:"2",id:"6"},7:{path:"/paperlibrary/edit_select/:id",parentId:"2",id:"7"},8:{path:"/paperlibrary/exchangequestion",parentId:"2",id:"8"},9:{path:"/paths",parentId:"1",id:"9"},10:{path:"/paths",parentId:"9",id:"10"},11:{path:"/paths/higherVocationalEducation",parentId:"9",id:"11"},12:{path:"/paths/new",parentId:"9",id:"12"},13:{path:"/paths/guidance",exact:!0,parentId:"9",id:"13"},14:{path:"/paths/:pathId",parentId:"9",id:"14"},15:{path:"/paths/:pathId/statistics",parentId:"9",id:"15"},16:{path:"/paths/:pathId/edit",parentId:"9",id:"16"},17:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/add",parentId:"9",id:"17"},18:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/edit",parentId:"9",id:"18"},19:{path:"/classrooms",parentId:"1",id:"19"},20:{path:"/classrooms",parentId:"19",id:"20"},21:{path:"/classrooms/examList",parentId:"19",id:"21"},22:{path:"/classrooms/classicCases",parentId:"19",id:"22"},23:{path:"/classrooms/index",parentId:"19",id:"23"},24:{path:"/classrooms/new",parentId:"19",id:"24"},25:{path:"/classrooms/:coursesId/edit",parentId:"19",id:"25"},26:{path:"/classrooms/news/:subjectid/newgold/:id",parentId:"19",id:"26"},27:{path:"/classrooms/:coursesId/newgolds/settings",parentId:"19",id:"27"},28:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",parentId:"19",id:"28"},29:{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",parentId:"19",id:"29"},30:{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",parentId:"19",id:"30"},31:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",parentId:"19",id:"31"},32:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"32"},33:{path:"/classrooms/:coursesId/common_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"33"},34:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",parentId:"19",id:"34"},35:{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",parentId:"19",id:"35"},36:{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",parentId:"19",id:"36"},37:{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",parentId:"19",id:"37"},38:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",parentId:"19",id:"38"},39:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",parentId:"19",id:"39"},40:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"40"},41:{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",parentId:"19",id:"41"},42:{path:"/classrooms/:coursesId/exercise/:categoryId/detail",parentId:"19",id:"42"},43:{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",parentId:"19",id:"43"},44:{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",parentId:"19",id:"44"},45:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",parentId:"19",id:"45"},46:{path:"/classrooms/:coursesId/exercisenotice/:categoryId/users/:login",parentId:"19",id:"46"},47:{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",parentId:"19",id:"47"},48:{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",parentId:"19",id:"48"},49:{path:"/classrooms/:coursesId/exercise/add",parentId:"19",id:"49"},50:{path:"/classrooms/:coursesId/exercise/add/:exerciseId",parentId:"19",id:"50"},51:{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",parentId:"19",id:"51"},52:{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",parentId:"19",id:"52"},53:{path:"/classrooms/:coursesId/exercise/:exerciseId/centralizeReview/:userId",parentId:"19",id:"53"},54:{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",parentId:"19",id:"54"},55:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup",parentId:"19",id:"55"},56:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup/edit",parentId:"19",id:"56"},57:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",parentId:"19",id:"57"},58:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",parentId:"19",id:"58"},59:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",parentId:"19",id:"59"},60:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",parentId:"19",id:"60"},61:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",parentId:"19",id:"61"},62:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",parentId:"19",id:"62"},63:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",parentId:"19",id:"63"},64:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",parentId:"19",id:"64"},65:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",parentId:"19",id:"65"},66:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",parentId:"19",id:"66"},67:{path:"/classrooms/:coursesId/common_homework/:categoryId/add",parentId:"19",id:"67"},68:{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",parentId:"19",id:"68"},69:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",parentId:"19",id:"69"},70:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"70"},71:{path:"/classrooms/:coursesId/group_homework/:categoryId/add",parentId:"19",id:"71"},72:{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",parentId:"19",id:"72"},73:{path:"/classrooms/:coursesId/poll/:categoryId/add",parentId:"19",id:"73"},74:{path:"/classrooms/:coursesId/poll/:categoryId/edit",parentId:"19",id:"74"},75:{path:"/classrooms/:coursesId/poll/:categoryId/detail",parentId:"19",id:"75"},76:{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",parentId:"19",id:"76"},77:{path:"/classrooms/:coursesId/poll/:categoryId/questionnaireInfo/:login",parentId:"19",id:"77"},78:{path:"/classrooms/:coursesId/board/:categoryId/Add",parentId:"19",id:"78"},79:{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",parentId:"19",id:"79"},80:{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",parentId:"19",id:"80"},81:{path:"/classrooms/:courseId/template/:templateId",parentId:"19",id:"81"},82:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",parentId:"19",id:"82"},83:{path:"/classrooms/guidance",parentId:"19",id:"83"},84:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",parentId:"19",id:"84"},85:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",parentId:"19",id:"85"},86:{path:"/classrooms/:coursesId/Studentdetail/:login",parentId:"19",id:"86"},87:{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",parentId:"19",id:"87"},88:{path:"/classrooms/:coursesId/engineering/datail",parentId:"19",id:"88"},89:{path:"/classrooms/:coursesId/program_homework/:categoryId/add",parentId:"19",id:"89"},90:{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",parentId:"19",id:"90"},91:{path:"/classrooms/:coursesId/program_homework/ranking",parentId:"19",id:"91"},92:{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",parentId:"19",id:"92"},93:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",parentId:"19",id:"93"},94:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",parentId:"19",id:"94"},95:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",parentId:"19",id:"95"},96:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",parentId:"19",id:"96"},97:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",parentId:"19",id:"97"},98:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",parentId:"19",id:"98"},99:{path:"/classrooms/:videoId/video_info",parentId:"19",id:"99"},100:{path:"/classrooms/",parentId:"19",id:"100"},101:{path:"/classrooms/:coursesId/shixun_homework/:categoryId",parentId:"100",id:"101"},102:{path:"/classrooms/:coursesId/shixun_homework",parentId:"100",id:"102"},103:{path:"/classrooms/:coursesId/graduation_topics/:categoryId",parentId:"100",id:"103"},104:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"104"},105:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"100",id:"105"},106:{path:"/classrooms/:coursesId/exercise/:categoryId",parentId:"100",id:"106"},107:{path:"/classrooms/:coursesId/exercise",parentId:"100",id:"107"},108:{path:"/classrooms/:coursesId/poll/:categoryId",parentId:"100",id:"108"},109:{path:"/classrooms/:coursesId/poll",parentId:"100",id:"109"},110:{path:"/classrooms/:coursesId/common_homework/:categoryId",parentId:"100",id:"110"},111:{path:"/classrooms/:coursesId/common_homework",parentId:"100",id:"111"},112:{path:"/classrooms/:coursesId/group_homework/:categoryId",parentId:"100",id:"112"},113:{path:"/classrooms/:coursesId/group_homework",parentId:"100",id:"113"},114:{path:"/classrooms/:coursesId/teachers",parentId:"100",id:"114"},115:{path:"/classrooms/:coursesId/students",parentId:"100",id:"115"},116:{path:"/classrooms/:coursesId/assistant",parentId:"100",id:"116"},117:{path:"/classrooms/:coursesId/program_homework",parentId:"100",id:"117"},118:{path:"/classrooms/:coursesId/program_homework/:categoryId",parentId:"100",id:"118"},119:{path:"/classrooms/:coursesId/engineering",parentId:"100",id:"119"},120:{path:"/classrooms/:coursesId/learning_path",parentId:"100",id:"120"},121:{path:"/classrooms/:coursesId/resource_recommend",parentId:"100",id:"121"},122:{path:"/classrooms/:coursesId/attendance",parentId:"100",id:"122"},123:{path:"/classrooms/:coursesId/attendance/StudetnSign",parentId:"100",id:"123"},124:{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",parentId:"100",id:"124"},125:{path:"/classrooms/:coursesId/announcement",parentId:"100",id:"125"},126:{path:"/classrooms/:coursesId/announcement/:categoryId",parentId:"100",id:"126"},127:{path:"/classrooms/:coursesId/online_learning",parentId:"100",id:"127"},128:{path:"/classrooms/:coursesId/online_learning/:categoryId",parentId:"100",id:"128"},129:{path:"/classrooms/:coursesId/attachment/:categoryId",parentId:"100",id:"129"},130:{path:"/classrooms/:coursesId/attachment",parentId:"100",id:"130"},131:{path:"/classrooms/:coursesId/video",parentId:"100",id:"131"},132:{path:"/classrooms/:coursesId/video/:categoryId",parentId:"100",id:"132"},133:{path:"/classrooms/:coursesId/video/:categoryId/statistics",parentId:"100",id:"133"},134:{path:"/classrooms/:coursesId/video/:username/upload",parentId:"100",id:"134"},135:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",parentId:"100",id:"135"},136:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId/:userId",parentId:"100",id:"136"},137:{path:"/classrooms/:coursesId/live_video/:categoryId",parentId:"100",id:"137"},138:{path:"/classrooms/:coursesId/live_video",parentId:"100",id:"138"},139:{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",parentId:"100",id:"139"},140:{path:"/classrooms/:coursesId/board/:categoryId",parentId:"100",id:"140"},141:{path:"/classrooms/:coursesId/board",parentId:"100",id:"141"},142:{path:"/classrooms/:coursesId/course_group",parentId:"100",id:"142"},143:{path:"/classrooms/:coursesId/course_group/:categoryId",parentId:"100",id:"143"},144:{path:"/classrooms/:coursesId/course_group/:categoryId/detail",parentId:"100",id:"144"},145:{path:"/classrooms/:coursesId/not_course_group/:categoryId",parentId:"100",id:"145"},146:{path:"/classrooms/:coursesId/not_course_group",parentId:"100",id:"146"},147:{path:"/classrooms/:coursesId/statistics/",parentId:"100",id:"147"},148:{path:"/classrooms/:coursesId/statistics/:categoryId",parentId:"100",id:"148"},149:{path:"/classrooms/:coursesId/statistics_video/:categoryId",parentId:"100",id:"149"},150:{path:"/classrooms/:coursesId/statistics_quality/:categoryId",parentId:"100",id:"150"},151:{path:"/classrooms/:coursesId/statistics_user_portrait/:categoryId",parentId:"100",id:"151"},152:{path:"/classrooms/:coursesId/student_statistics/:categoryId",parentId:"100",id:"152"},153:{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",parentId:"100",id:"153"},154:{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",parentId:"100",id:"154"},155:{path:"/classrooms/:coursesId/exportlist/:type",parentId:"100",id:"155"},156:{path:"/classrooms/:coursesId",parentId:"100",id:"156"},157:{path:"/classrooms/:coursesId/template",parentId:"100",id:"157"},158:{path:"/competitions",parentId:"1",id:"158"},159:{path:"/competitions/index",parentId:"158",id:"159"},160:{path:"/competitions/:identifier/list",parentId:"158",id:"160"},161:{path:"/competitions/exports",parentId:"158",id:"161"},162:{path:"/competitions",parentId:"158",id:"162"},163:{path:"/competitions/:identifier",parentId:"158",id:"163"},164:{path:"/competitions/index/:identifier",parentId:"158",id:"164"},165:{path:"/competitions/:identifier/detail/enroll",parentId:"158",id:"165"},166:{path:"/competitions/:identifier/detail/UpdateTeanname/:Teannameid",parentId:"158",id:"166"},167:{path:"/competitions/:identifier/detail/teamDetail/:Teamid",parentId:"158",id:"167"},168:{path:"/competitions/detail/:identifier",parentId:"158",id:"168"},169:{path:"/forums",parentId:"1",id:"169"},170:{path:"/forums",parentId:"169",id:"170"},171:{path:"/forums/categories/:memoType",parentId:"169",id:"171"},172:{path:"/forums/new",parentId:"169",id:"172"},173:{path:"/forums/:memoId/edit",parentId:"169",id:"173"},174:{path:"/forums/:memoId",parentId:"169",id:"174"},175:{path:"/problemset",parentId:"1",id:"175"},176:{path:"/problemset",parentId:"175",id:"176"},177:{path:"/problemset/newitem",parentId:"175",id:"177"},178:{path:"/problemset/:type/:id",parentId:"175",id:"178"},179:{path:"/problemset/preview",parentId:"175",id:"179"},180:{path:"/problemset/preview_new",parentId:"175",id:"180"},181:{path:"/problemset/preview_select",parentId:"175",id:"181"},182:{path:"/shixuns",parentId:"1",id:"182"},183:{path:"/shixuns",parentId:"182",id:"183"},184:{path:"/shixuns/exports",parentId:"182",id:"184"},185:{path:"/shixuns/new",parentId:"182",id:"185"},186:{path:"/shixuns/new/CreateImg",parentId:"182",id:"186"},187:{path:"/shixuns/new/:id/imagepreview",parentId:"182",id:"187"},188:{path:"/shixuns/:id/Merge",parentId:"182",id:"188"},189:{path:"/shixuns/:id/Split",parentId:"182",id:"189"},190:{path:"/shixuns/:id/edit",parentId:"182",id:"190"},191:{path:"shixuns/:id/edit/warehouse",parentId:"190",id:"191"},192:{path:"/shixuns/:id/edit/newquestion",parentId:"190",id:"192"},193:{path:"/shixuns/:id/edit/:challengesId/editquestion",parentId:"190",id:"193"},194:{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",parentId:"190",id:"194"},195:{path:"/shixuns/:id/edit/new",parentId:"190",id:"195"},196:{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",parentId:"190",id:"196"},197:{path:"/shixuns/:id/edit/:challengesId/tab=2",parentId:"190",id:"197"},198:{path:"/shixuns/:id/edit/:challengesId/tab=3",parentId:"190",id:"198"},199:{path:"/shixuns/:id/edit/:challengesId/tab=4",parentId:"190",id:"199"},200:{path:"/shixuns/:id",parentId:"182",id:"200"},201:{path:"/shixuns/:id/challenges",parentId:"200",id:"201"},202:{path:"/shixuns/:id/repository",parentId:"200",id:"202"},203:{path:"/shixuns/:id/secret_repository",parentId:"200",id:"203"},204:{path:"/shixuns/:id/collaborators",parentId:"200",id:"204"},205:{path:"/shixuns/:id/dataset",parentId:"200",id:"205"},206:{path:"/shixuns/:id/dataset/jupyterEdit",parentId:"200",id:"206"},207:{path:"/shixuns/:id/shixun_discuss",parentId:"200",id:"207"},208:{path:"/shixuns/:id/ranking_list",parentId:"200",id:"208"},209:{path:"/shixuns/:id/settings",parentId:"200",id:"209"},210:{path:"/shixuns/:id/repository/:repoId/commits",parentId:"200",id:"210"},211:{path:"/shixuns/:id/secret_repository/:repoId/commits",parentId:"200",id:"211"},212:{path:"/shixuns/:id/repository/upload_file",parentId:"200",id:"212"},213:{path:"/shixuns/:id/secret_repository/upload_file",parentId:"200",id:"213"},214:{path:"/shixuns/:id/repository/add_file",parentId:"200",id:"214"},215:{path:"/shixuns/:id/secret_repository/add_file",parentId:"200",id:"215"},216:{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,parentId:"200",id:"216"},217:{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,parentId:"200",id:"217"},218:{path:"/shixuns/:id/audit_situation",parentId:"200",id:"218"},219:{path:"/shixuns/:id/fork_list",parentId:"200",id:"219"},220:{path:"/users",parentId:"1",id:"220"},221:{path:"/users/:username/videos/protocol",parentId:"220",id:"221"},222:{path:"/users/:username/videos/resourceProtocol",parentId:"220",id:"222"},223:{path:"/users/:username/videos/success",parentId:"220",id:"223"},224:{path:"/users/:username/topicbank/:topicstype",parentId:"220",id:"224"},225:{path:"/users/:username/topics/:topicId/:topictype/normal/detail",parentId:"220",id:"225"},226:{path:"/users/:username/topics/:topicId/:topictype/group/detail",parentId:"220",id:"226"},227:{path:"/users/:username/topics/:topicId/:topictype/normal/edit",parentId:"220",id:"227"},228:{path:"/users/:username/topics/:topicId/:topictype/group/edit",parentId:"220",id:"228"},229:{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",parentId:"220",id:"229"},230:{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",parentId:"220",id:"230"},231:{path:"/users/:username/topics/:topicId/:topictype/poll/edit",parentId:"220",id:"231"},232:{path:"/users/:username/topics/:topicId/:topictype/poll/detail",parentId:"220",id:"232"},233:{path:"/users/:username/experiment-img/add",parentId:"220",id:"233"},234:{path:"/users/:username",parentId:"220",id:"234"},235:{path:"/users/:username",parentId:"234",id:"235"},236:{path:"/users/:username/baseInfo/edit",parentId:"234",id:"236"},237:{path:"/users/:username/baseInfo",parentId:"234",id:"237"},238:{path:"/users/:username/realNameCertification",parentId:"234",id:"238"},239:{path:"/users/:username/careerCertification",parentId:"234",id:"239"},240:{path:"/users/:username/classrooms",parentId:"234",id:"240"},241:{path:"/users/:username/shixuns",parentId:"234",id:"241"},242:{path:"/users/:username/dataSet",parentId:"234",id:"242"},243:{path:"/users/:username/userPortrait",parentId:"234",id:"243"},244:{path:"/users/:username/learningPath",parentId:"234",id:"244"},245:{path:"/users/:username/teach-group",parentId:"234",id:"245"},246:{path:"/users/:username/competitions",parentId:"234",id:"246"},247:{path:"/users/:username/experiment-img",parentId:"234",id:"247"},248:{path:"/users/:username/experiment-img/:experid/detail",parentId:"234",id:"248"},249:{path:"/users/:username/certificate",parentId:"234",id:"249"},250:{path:"/users/:username/otherResources",parentId:"234",id:"250"},251:{path:"/users/:username/classmanagement",parentId:"234",id:"251"},252:{path:"/users/:username/classmanagement/:couserid",parentId:"234",id:"252"},253:{path:"/users/:username/paths",parentId:"234",id:"253"},254:{path:"/users/:username/projects",parentId:"234",id:"254"},255:{path:"/users/:username/videos",parentId:"234",id:"255"},256:{path:"/users/:username/videos/upload",parentId:"234",id:"256"},257:{path:"/users/:username/topics/:topicstype",parentId:"234",id:"257"},258:{path:"/users/:username/vspaces",parentId:"234",id:"258"},259:{path:"/users/:username/resourcesCenter",parentId:"234",id:"259"},260:{path:"/users/:username/resourcesCenter/:id/detail",parentId:"234",id:"260"},261:{path:"/users/:username/resourceGuarantee",parentId:"234",id:"261"},262:{path:"/users/:username/resourceAllocation",parentId:"234",id:"262"},263:{parentId:"1",id:"263"},264:{path:"/problems",parentId:"263",id:"264"},265:{path:"/problems",parentId:"264",id:"265"},266:{path:"/problems/batchAdd",parentId:"264",id:"266"},267:{path:"/problems/newcreate",parentId:"263",id:"267"},268:{path:"/problems/newedit/:id",exact:!0,parentId:"263",id:"268"},269:{path:"/problems/:id/edit",exact:!0,parentId:"263",id:"269"},270:{path:"/problems/new",exact:!0,parentId:"263",id:"270"},271:{path:"/problems/:id/oj/:save_identifier",parentId:"263",id:"271"},272:{path:"/problems/:id/record-detail/:submitId",parentId:"263",id:"272"},273:{path:"/problems/add",parentId:"263",id:"273"},274:{path:"/problems/:id/ojedit",parentId:"263",id:"274"},275:{path:"/engineering",parentId:"1",id:"275"},276:{path:"/engineering",parentId:"275",id:"276"},277:{path:"/engineering/teacherList",parentId:"276",id:"277"},278:{path:"/engineering/studentList",parentId:"276",id:"278"},279:{path:"/engineering/training/program",parentId:"276",id:"279"},280:{path:"/engineering/training/program/add",parentId:"276",id:"280"},281:{path:"/engineering/training/program/edit",parentId:"276",id:"281"},282:{path:"/engineering/training/objectives",parentId:"276",id:"282"},283:{path:"/engineering/graduated/index",parentId:"276",id:"283"},284:{path:"/engineering/graduated/matrix",parentId:"276",id:"284"},285:{path:"/engineering/course/list",parentId:"276",id:"285"},286:{path:"/engineering/course/setting",parentId:"276",id:"286"},287:{path:"/engineering/course/matrix",parentId:"276",id:"287"},288:{path:"/engineering/navigation",parentId:"276",id:"288"},289:{path:"/engineering/evaluate/course",parentId:"276",id:"289"},290:{path:"/engineering/evaluate/course/:ec_year_id/:id",parentId:"276",id:"290"},291:{path:"/engineering/evaluate/norm",parentId:"276",id:"291"},292:{path:"/engineering/evaluate/document",parentId:"276",id:"292"},293:{path:"/engineering/evaluate/norm/:ec_year_id/:id",parentId:"276",id:"293"},294:{path:"/engineering/*",redirect:"/404",parentId:"276",id:"294"},295:{path:"/innovation",parentId:"1",id:"295"},296:{path:"/innovation/tasks/:taskId",parentId:"295",id:"296"},297:{path:"/innovation",parentId:"295",id:"297"},298:{path:"/innovation/project",parentId:"297",id:"298"},299:{path:"/innovation/dataset",parentId:"297",id:"299"},300:{path:"/innovation/mirror",parentId:"297",id:"300"},301:{path:"/innovation/my-project",parentId:"297",id:"301"},302:{path:"/innovation/my-dataset",parentId:"297",id:"302"},303:{path:"/innovation/my-mirror",parentId:"297",id:"303"},304:{path:"/innovation/project/create",parentId:"297",id:"304"},305:{path:"/innovation/project/edit/:id",parentId:"297",id:"305"},306:{path:"/innovation/project/detail/:taskId",parentId:"297",id:"306"},307:{path:"/tasks",parentId:"1",id:"307"},308:{path:"/tasks/:taskId",exact:!0,parentId:"307",id:"308"},309:{path:"/tasks/:identifier/jupyter/",exact:!0,parentId:"307",id:"309"},310:{path:"/tasks/:courseId/:homeworkId/:taskId",exact:!0,parentId:"307",id:"310"},311:{path:"/tasks/jupyter/:courseId/:homeworkId/:identifier",exact:!0,parentId:"307",id:"311"},312:{path:"/tasks/:courseId/:exerciseId/:taskId/exercise",exact:!0,parentId:"307",id:"312"},313:{path:"/myproblems",parentId:"1",id:"313"},314:{path:"/myproblems/:id/record-detail/:submitId",exact:!0,parentId:"313",id:"314"},315:{path:"/myproblems/:id",exact:!0,parentId:"313",id:"315"},316:{path:"/account",parentId:"1",id:"316"},317:{path:"/account",parentId:"316",id:"317"},318:{path:"/account/profile",parentId:"317",id:"318"},319:{path:"/account/profile/edit",parentId:"317",id:"319"},320:{path:"/account/certification",parentId:"317",id:"320"},321:{path:"/account/secure",parentId:"317",id:"321"},322:{path:"/account/binding",parentId:"317",id:"322"},323:{path:"/account/Results",parentId:"317",id:"323"},324:{path:"/ch",parentId:"1",id:"324"},325:{path:"/ch/rest/edit/:categoryId/:id",exact:!0,parentId:"324",id:"325"},326:{path:"/ch/rest/",exact:!0,parentId:"324",id:"326"},327:{path:"/ch/rest/:id",exact:!0,parentId:"324",id:"327"},328:{path:"/order",parentId:"1",id:"328"},329:{path:"/order",parentId:"328",id:"329"},330:{path:"/order/invoice",parentId:"328",id:"330"},331:{path:"/order/records",parentId:"328",id:"331"},332:{path:"/order/apply",parentId:"328",id:"332"},333:{path:"/order/view",parentId:"328",id:"333"},334:{path:"/order/:courseId/information",parentId:"328",id:"334"},335:{path:"/order/:courseId/pay",parentId:"328",id:"335"},336:{path:"/order/:orderNum/result",parentId:"328",id:"336"},337:{path:"/messages",parentId:"1",id:"337"},338:{path:"/messages/:userId/user_tidings",parentId:"337",id:"338"},339:{path:"/messages/:userId/private_messages",parentId:"337",id:"339"},340:{path:"/messages/:userId/message_detail",parentId:"337",id:"340"},341:{path:"/vtrs",parentId:"1",id:"341"},342:{path:"/vtrs/:virtual_spacesId",parentId:"341",id:"342"},343:{path:"/vtrs/:virtual_spacesId",exact:!0,parentId:"342",id:"343"},344:{path:"/vtrs/:virtual_spacesId/workplace",exact:!0,parentId:"342",id:"344"},345:{path:"/vtrs/:virtual_spacesId/experiment",parentId:"342",id:"345"},346:{path:"/vtrs/:virtual_spacesId/announcement",parentId:"342",id:"346"},347:{path:"/vtrs/:virtual_spacesId/announcement/add",parentId:"342",id:"347"},348:{path:"/vtrs/:virtual_spacesId/announcement/:id/edit",parentId:"342",id:"348"},349:{path:"/vtrs/:virtual_spacesId/announcement/:id/detail",parentId:"342",id:"349"},350:{path:"/vtrs/:virtual_spacesId/survey",parentId:"342",id:"350"},351:{path:"/vtrs/:virtual_spacesId/survey/:id/detail",parentId:"342",id:"351"},352:{path:"/vtrs/:virtual_spacesId/knowledge",parentId:"342",id:"352"},353:{path:"/vtrs/:virtual_spacesId/knowledge/add",parentId:"342",id:"353"},354:{path:"/vtrs/:virtual_spacesId/knowledge/:id/edit",parentId:"342",id:"354"},355:{path:"/vtrs/:virtual_spacesId/material",parentId:"342",id:"355"},356:{path:"/vtrs/:virtual_spacesId/material/:id/detail",parentId:"342",id:"356"},357:{path:"/vtrs/:virtual_spacesId/lesson",parentId:"342",id:"357"},358:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail",parentId:"342",id:"358"},359:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"342",id:"359"},360:{path:"/vtrs/:virtual_spacesId/discussion",parentId:"342",id:"360"},361:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail",parentId:"342",id:"361"},362:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"342",id:"362"},363:{path:"/vtrs/:virtual_spacesId/settings",parentId:"342",id:"363"},364:{path:"/vtrs/:virtual_spacesId/resources",parentId:"342",id:"364"},365:{path:"/vtrs/:virtual_spacesId/resources/:id/detail",parentId:"342",id:"365"},366:{path:"/vtrs/:virtual_spacesId/Plan",parentId:"342",id:"366"},367:{path:"/vtrs/:virtual_spacesId/plan/:id/detail",parentId:"342",id:"367"},368:{path:"/vtrs/:virtual_spacesId/digtal",parentId:"342",id:"368"},369:{path:"/vtrs/:virtual_spacesId/homepage",parentId:"342",id:"369"},370:{path:"/vtrs/:virtual_spacesId/*",parentId:"342",id:"370"},371:{path:"/101",parentId:"1",id:"371"},372:{path:"/101/:virtual_spacesId",parentId:"371",id:"372"},373:{path:"/101/:virtual_spacesId",exact:!0,parentId:"372",id:"373"},374:{path:"/101/:virtual_spacesId/workplace",exact:!0,parentId:"372",id:"374"},375:{path:"/101/:virtual_spacesId/experiment",parentId:"372",id:"375"},376:{path:"/101/:virtual_spacesId/announcement",parentId:"372",id:"376"},377:{path:"/101/:virtual_spacesId/announcement/add",parentId:"372",id:"377"},378:{path:"/101/:virtual_spacesId/announcement/:id/edit",parentId:"372",id:"378"},379:{path:"/101/:virtual_spacesId/announcement/:id/detail",parentId:"372",id:"379"},380:{path:"/101/:virtual_spacesId/survey",parentId:"372",id:"380"},381:{path:"/101/:virtual_spacesId/survey/:id/detail",parentId:"372",id:"381"},382:{path:"/101/:virtual_spacesId/knowledge",parentId:"372",id:"382"},383:{path:"/101/:virtual_spacesId/knowledge/add",parentId:"372",id:"383"},384:{path:"/101/:virtual_spacesId/knowledge/:id/edit",parentId:"372",id:"384"},385:{path:"/101/:virtual_spacesId/material",parentId:"372",id:"385"},386:{path:"/101/:virtual_spacesId/material/:id/detail",parentId:"372",id:"386"},387:{path:"/101/:virtual_spacesId/lesson",parentId:"372",id:"387"},388:{path:"/101/:virtual_spacesId/lesson/:id/detail",parentId:"372",id:"388"},389:{path:"/101/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"372",id:"389"},390:{path:"/101/:virtual_spacesId/discussion",parentId:"372",id:"390"},391:{path:"/101/:virtual_spacesId/discussion/:id/detail",parentId:"372",id:"391"},392:{path:"/101/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"372",id:"392"},393:{path:"/101/:virtual_spacesId/settings",parentId:"372",id:"393"},394:{path:"/101/:virtual_spacesId/resources",parentId:"372",id:"394"},395:{path:"/101/:virtual_spacesId/resources/:id/detail",parentId:"372",id:"395"},396:{path:"/101/:virtual_spacesId/Plan",parentId:"372",id:"396"},397:{path:"/101/:virtual_spacesId/plan/:id/detail",parentId:"372",id:"397"},398:{path:"/101/:virtual_spacesId/digtal",parentId:"372",id:"398"},399:{path:"/101/:virtual_spacesId/homepage",parentId:"372",id:"399"},400:{path:"/101/:virtual_spacesId/*",parentId:"372",id:"400"},401:{path:"/administration",parentId:"1",id:"401"},402:{path:"/administration",parentId:"401",id:"402"},403:{path:"/administration/college",parentId:"402",id:"403"},404:{path:"/administration/student",parentId:"402",id:"404"},405:{path:"/administration/student/:studentId/edit",parentId:"402",id:"405"},406:{path:"/administration/profession",parentId:"402",id:"406"},407:{path:"/graduations",parentId:"1",id:"407"},408:{path:"/graduations",exact:!0,parentId:"407",id:"408"},409:{path:"/graduations/:id/:moduleKey/:moduleId/review/:itemId",exact:!0,parentId:"407",id:"409"},410:{path:"/graduations/:id",parentId:"407",id:"410"},411:{path:"/graduations/:id/index",parentId:"410",id:"411"},412:{path:"/graduations/:id/topics",parentId:"410",id:"412"},413:{path:"/graduations/:id/student_selection",parentId:"410",id:"413"},414:{path:"/graduations/:id/tasks",parentId:"410",id:"414"},415:{path:"/graduations/:id/opening_report",parentId:"410",id:"415"},416:{path:"/graduations/:id/midterm_report",parentId:"410",id:"416"},417:{path:"/graduations/:id/thesis",parentId:"410",id:"417"},418:{path:"/graduations/:id/final_defense",parentId:"410",id:"418"},419:{path:"/graduations/:id/final_thesis",parentId:"410",id:"419"},420:{path:"/graduations/:id/settings",parentId:"410",id:"420"},421:{path:"/graduations/:id/teachers",parentId:"410",id:"421"},422:{path:"/graduations/:id/students",parentId:"410",id:"422"},423:{path:"/graduations/:id/archives",parentId:"410",id:"423"},424:{path:"/graduations/:id/grading_summary",parentId:"410",id:"424"},425:{path:"/dataset",parentId:"1",id:"425"},426:{path:"/dataset",exact:!0,parentId:"425",id:"426"},427:{path:"/dataset/:id/detail",exact:!0,parentId:"425",id:"427"},428:{path:"/knowledgegraph",parentId:"1",id:"428"},429:{path:"/knowledgegraph/:pathId",parentId:"428",id:"429"},430:{path:"/knowledgegraph/:pathId/statistics",parentId:"428",id:"430"},431:{path:"/onlinenum",parentId:"1",id:"431"},432:{path:"/onlinenum",parentId:"431",id:"432"},433:{path:"/shixuncontext",parentId:"1",id:"433"},434:{path:"/shixuncontext",parentId:"433",id:"434"},435:{path:"/shixuncontext/:Id/detail",parentId:"433",id:"435"},436:{path:"/educoder-demo",exact:!0,parentId:"1",id:"436"},437:{path:"/training",parentId:"1",id:"437"},438:{name:"\u7CBE\u57F9\u8BFE\u7A0B",path:"/training",parentId:"437",id:"438"},439:{path:"/largeScreen",exact:!0,parentId:"1",id:"439"},440:{path:"/quality",parentId:"1",id:"440"},441:{name:"\u7CBE\u54C1\u8BFE\u7A0B",path:"/quality",parentId:"440",id:"441"},442:{path:"/otherlogin",exact:!0,parentId:"1",id:"442"},443:{path:"/otherloginqq",exact:!0,parentId:"1",id:"443"},444:{path:"/otherloginstart",exact:!0,parentId:"1",id:"444"},445:{path:"/pathsoverview",exact:!0,parentId:"1",id:"445"},446:{path:"/shixunsoverview",exact:!0,parentId:"1",id:"446"},447:{path:"/classroomsoverview",exact:!0,parentId:"1",id:"447"},448:{path:"/login",parentId:"1",id:"448"},449:{path:"/login",parentId:"448",id:"449"},450:{path:"/user",parentId:"1",id:"450"},451:{path:"/user/login",parentId:"450",id:"451"},452:{path:"/user/register",parentId:"450",id:"452"},453:{path:"/user/reset-password",parentId:"450",id:"453"},454:{path:"/colleges",parentId:"1",id:"454"},455:{path:"/colleges/:id/statistics",parentId:"454",id:"455"},456:{path:"/help",parentId:"1",id:"456"},457:{path:"/help/:id",parentId:"456",id:"457"},458:{path:"/video",parentId:"1",id:"458"},459:{path:"/video/:videoId",parentId:"458",id:"459"},460:{path:"/terminal",parentId:"1",id:"460"},461:{path:"/report/:taskId/:game_report_id",parentId:"1",id:"461"},462:{path:"/",parentId:"1",id:"462"},463:{path:"/",exact:!0,parentId:"462",id:"463"},464:{path:"/api/*",exact:!0,parentId:"462",id:"464"},465:{path:"/search",exact:!0,parentId:"462",id:"465"},466:{path:"/moop_cases",exact:!0,parentId:"462",id:"466"},467:{path:"/moop_cases/new",exact:!0,parentId:"462",id:"467"},468:{path:"/moop_cases/:caseId",exact:!0,parentId:"462",id:"468"},469:{path:"/moop_cases/:caseId/edit",exact:!0,parentId:"462",id:"469"},470:{path:"/moop_cases/:caseId/publish-success",exact:!0,parentId:"462",id:"470"},471:{path:"/randompaper",exact:!0,parentId:"462",id:"471"},472:{path:"/randompaper/edit/:id",exact:!0,parentId:"462",id:"472"},473:{path:"/randompaper/detail/:id",exact:!0,parentId:"462",id:"473"},474:{path:"/403",parentId:"462",id:"474"},475:{path:"/500",parentId:"462",id:"475"},476:{path:"/404",parentId:"462",id:"476"},477:{path:"/download",parentId:"462",id:"477"},478:{path:"/iwce",parentId:"462",id:"478"},479:{path:"/classrooms/:coursesId/attendance/TeacherSign",parentId:"462",id:"479"},480:{path:"/classrooms/:coursesId/attendance/:categoryId",parentId:"462",id:"480"},481:{path:"/Activities",parentId:"462",id:"481"},482:{path:"/iwce/:itemname",parentId:"462",id:"482"},483:{path:"/hpc-course",parentId:"462",id:"483"},484:{path:"/user_agents",parentId:"462",id:"484"},485:{path:"/three",parentId:"462",id:"485"},486:{path:"/introduction",parentId:"462",id:"486"},487:{path:"/chatgpt",parentId:"462",id:"487"},488:{path:"/*",parentId:"462",id:"488"},"@@/global-layout":{id:"@@/global-layout",path:"/",isLayout:!0}},routeComponents:{1:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),2:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),3:je.lazy(()=>__webpack_require__.e(4862).then(__webpack_require__.bind(__webpack_require__,72919))),4:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,9177))),5:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,9177))),6:je.lazy(()=>__webpack_require__.e(3247).then(__webpack_require__.bind(__webpack_require__,26443))),7:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),8:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,48635))),9:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),10:je.lazy(()=>__webpack_require__.e(6052).then(__webpack_require__.bind(__webpack_require__,27792))),11:je.lazy(()=>__webpack_require__.e(5572).then(__webpack_require__.bind(__webpack_require__,45220))),12:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,14688))),13:je.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,81490))),14:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(3332)]).then(__webpack_require__.bind(__webpack_require__,97237))),15:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4601)]).then(__webpack_require__.bind(__webpack_require__,63401))),16:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8982)]).then(__webpack_require__.bind(__webpack_require__,14688))),17:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),18:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),19:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),20:je.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,65925))),21:je.lazy(()=>__webpack_require__.e(9921).then(__webpack_require__.bind(__webpack_require__,42409))),22:je.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,59714))),23:je.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,65925))),24:je.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,76216))),25:je.lazy(()=>__webpack_require__.e(1702).then(__webpack_require__.bind(__webpack_require__,76216))),26:je.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,55460))),27:je.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,55460))),28:je.lazy(()=>__webpack_require__.e(109).then(__webpack_require__.bind(__webpack_require__,48399))),29:je.lazy(()=>__webpack_require__.e(737).then(__webpack_require__.bind(__webpack_require__,88166))),30:je.lazy(()=>__webpack_require__.e(3391).then(__webpack_require__.bind(__webpack_require__,28113))),31:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,94465))),32:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(342)]).then(__webpack_require__.bind(__webpack_require__,76518))),33:je.lazy(()=>__webpack_require__.e(2303).then(__webpack_require__.bind(__webpack_require__,15398))),34:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,81045))),35:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,74371))),36:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,30181))),37:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,28716))),38:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,96324))),39:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,26301))),40:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,94870))),41:je.lazy(()=>__webpack_require__.e(5297).then(__webpack_require__.bind(__webpack_require__,97666))),42:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,68474))),43:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),44:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,66378))),45:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,47651))),46:je.lazy(()=>__webpack_require__.e(7482).then(__webpack_require__.bind(__webpack_require__,47993))),47:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,4926))),48:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,80440))),49:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,83418))),50:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,83418))),51:je.lazy(()=>__webpack_require__.e(5992).then(__webpack_require__.bind(__webpack_require__,73896))),52:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,43871))),53:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,43871))),54:je.lazy(()=>__webpack_require__.e(8431).then(__webpack_require__.bind(__webpack_require__,29170))),55:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,39088))),56:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,9111))),57:je.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,67440))),58:je.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,67440))),59:je.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,94357))),60:je.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,94357))),61:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,26972))),62:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,87640))),63:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,38185))),64:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,84139))),65:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,68601))),66:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,79557))),67:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,11621))),68:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,27626))),69:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,33898))),70:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,34546))),71:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,53332))),72:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,64459))),73:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,97316))),74:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,86219))),75:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,47126))),76:je.lazy(()=>__webpack_require__.e(5148).then(__webpack_require__.bind(__webpack_require__,92781))),77:je.lazy(()=>__webpack_require__.e(643).then(__webpack_require__.bind(__webpack_require__,42268))),78:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,34578))),79:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,8571))),80:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,91917))),81:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,69375))),82:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,30815))),83:je.lazy(()=>__webpack_require__.e(869).then(__webpack_require__.bind(__webpack_require__,81490))),84:je.lazy(()=>__webpack_require__.e(2819).then(__webpack_require__.bind(__webpack_require__,60158))),85:je.lazy(()=>__webpack_require__.e(1512).then(__webpack_require__.bind(__webpack_require__,87654))),86:je.lazy(()=>__webpack_require__.e(7395).then(__webpack_require__.bind(__webpack_require__,76969))),87:je.lazy(()=>__webpack_require__.e(3585).then(__webpack_require__.bind(__webpack_require__,2935))),88:je.lazy(()=>__webpack_require__.e(6963).then(__webpack_require__.bind(__webpack_require__,19114))),89:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,41997))),90:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,41997))),91:je.lazy(()=>__webpack_require__.e(6127).then(__webpack_require__.bind(__webpack_require__,55775))),92:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,60008))),93:je.lazy(()=>__webpack_require__.e(1048).then(__webpack_require__.bind(__webpack_require__,49))),94:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,89166))),95:je.lazy(()=>__webpack_require__.e(4770).then(__webpack_require__.bind(__webpack_require__,5583))),96:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,4949))),97:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,73573))),98:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,64885))),99:je.lazy(()=>__webpack_require__.e(895).then(__webpack_require__.bind(__webpack_require__,25466))),100:je.lazy(()=>__webpack_require__.e(3282).then(__webpack_require__.bind(__webpack_require__,28008))),101:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,12763))),102:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7852)]).then(__webpack_require__.bind(__webpack_require__,12763))),103:je.lazy(()=>__webpack_require__.e(5048).then(__webpack_require__.bind(__webpack_require__,10634))),104:je.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,32288))),105:je.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,32288))),106:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,9477))),107:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5825)]).then(__webpack_require__.bind(__webpack_require__,9477))),108:je.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,48935))),109:je.lazy(()=>__webpack_require__.e(3355).then(__webpack_require__.bind(__webpack_require__,48935))),110:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,31817))),111:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(9890)]).then(__webpack_require__.bind(__webpack_require__,31817))),112:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,54516))),113:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9186),__webpack_require__.e(3935)]).then(__webpack_require__.bind(__webpack_require__,54516))),114:je.lazy(()=>__webpack_require__.e(8014).then(__webpack_require__.bind(__webpack_require__,30309))),115:je.lazy(()=>__webpack_require__.e(8077).then(__webpack_require__.bind(__webpack_require__,47869))),116:je.lazy(()=>__webpack_require__.e(3356).then(__webpack_require__.bind(__webpack_require__,8943))),117:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,97537))),118:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6788)]).then(__webpack_require__.bind(__webpack_require__,97537))),119:je.lazy(()=>__webpack_require__.e(1962).then(__webpack_require__.bind(__webpack_require__,76207))),120:je.lazy(()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,14129))),121:je.lazy(()=>__webpack_require__.e(1257).then(__webpack_require__.bind(__webpack_require__,3701))),122:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,38316))),123:je.lazy(()=>__webpack_require__.e(8340).then(__webpack_require__.bind(__webpack_require__,75604))),124:je.lazy(()=>__webpack_require__.e(4093).then(__webpack_require__.bind(__webpack_require__,3256))),125:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,51287))),126:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1265)]).then(__webpack_require__.bind(__webpack_require__,51287))),127:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,34937))),128:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,34937))),129:je.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,22943))),130:je.lazy(()=>__webpack_require__.e(6758).then(__webpack_require__.bind(__webpack_require__,22943))),131:je.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,96030))),132:je.lazy(()=>__webpack_require__.e(9332).then(__webpack_require__.bind(__webpack_require__,96030))),133:je.lazy(()=>__webpack_require__.e(4217).then(__webpack_require__.bind(__webpack_require__,74084))),134:je.lazy(()=>__webpack_require__.e(3220).then(__webpack_require__.bind(__webpack_require__,14481))),135:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,70396))),136:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,81031))),137:je.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,43597))),138:je.lazy(()=>__webpack_require__.e(7878).then(__webpack_require__.bind(__webpack_require__,43597))),139:je.lazy(()=>__webpack_require__.e(9944).then(__webpack_require__.bind(__webpack_require__,78352))),140:je.lazy(()=>__webpack_require__.e(8302).then(__webpack_require__.bind(__webpack_require__,23486))),141:je.lazy(()=>__webpack_require__.e(8302).then(__webpack_require__.bind(__webpack_require__,23486))),142:je.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,42185))),143:je.lazy(()=>__webpack_require__.e(8634).then(__webpack_require__.bind(__webpack_require__,42185))),144:je.lazy(()=>__webpack_require__.e(7922).then(__webpack_require__.bind(__webpack_require__,85923))),145:je.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,92641))),146:je.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,92641))),147:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,57815))),148:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,57815))),149:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,34267))),150:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,81924))),151:je.lazy(()=>__webpack_require__.e(3276).then(__webpack_require__.bind(__webpack_require__,6457))),152:je.lazy(()=>__webpack_require__.e(8885).then(__webpack_require__.bind(__webpack_require__,37845))),153:je.lazy(()=>__webpack_require__.e(3451).then(__webpack_require__.bind(__webpack_require__,58692))),154:je.lazy(()=>__webpack_require__.e(9922).then(__webpack_require__.bind(__webpack_require__,41778))),155:je.lazy(()=>__webpack_require__.e(4572).then(__webpack_require__.bind(__webpack_require__,65936))),156:je.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,19260))),157:je.lazy(()=>__webpack_require__.e(5518).then(__webpack_require__.bind(__webpack_require__,5859))),158:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),159:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,23052))),160:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,23052))),161:je.lazy(()=>__webpack_require__.e(4449).then(__webpack_require__.bind(__webpack_require__,69603))),162:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(6883)]).then(__webpack_require__.bind(__webpack_require__,23052))),163:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9532),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,72699))),164:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9532),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,72699))),165:je.lazy(()=>__webpack_require__.e(8787).then(__webpack_require__.bind(__webpack_require__,76095))),166:je.lazy(()=>__webpack_require__.e(5650).then(__webpack_require__.bind(__webpack_require__,66450))),167:je.lazy(()=>__webpack_require__.e(1799).then(__webpack_require__.bind(__webpack_require__,70375))),168:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9532),__webpack_require__.e(8797)]).then(__webpack_require__.bind(__webpack_require__,76083))),169:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),170:je.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,48114))),171:je.lazy(()=>__webpack_require__.e(2983).then(__webpack_require__.bind(__webpack_require__,75332))),172:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,20281))),173:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,20281))),174:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,25334))),175:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),176:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),177:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,57789))),178:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,57789))),179:je.lazy(()=>__webpack_require__.e(1581).then(__webpack_require__.bind(__webpack_require__,65669))),180:je.lazy(()=>__webpack_require__.e(4144).then(__webpack_require__.bind(__webpack_require__,66866))),181:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(129),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43794))),182:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),183:je.lazy(()=>__webpack_require__.e(8782).then(__webpack_require__.bind(__webpack_require__,20123))),184:je.lazy(()=>__webpack_require__.e(7884).then(__webpack_require__.bind(__webpack_require__,45771))),185:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7008)]).then(__webpack_require__.bind(__webpack_require__,4560))),186:je.lazy(()=>__webpack_require__.e(5549).then(__webpack_require__.bind(__webpack_require__,6734))),187:je.lazy(()=>__webpack_require__.e(9674).then(__webpack_require__.bind(__webpack_require__,42463))),188:je.lazy(()=>__webpack_require__.e(5573).then(__webpack_require__.bind(__webpack_require__,749))),189:je.lazy(()=>__webpack_require__.e(2141).then(__webpack_require__.bind(__webpack_require__,51114))),190:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(2245),__webpack_require__.e(6277)]).then(__webpack_require__.bind(__webpack_require__,2785))),191:je.lazy(()=>__webpack_require__.e(6328).then(__webpack_require__.bind(__webpack_require__,67669))),192:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,37445))),193:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,47662))),194:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,47662))),195:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,90596))),196:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,90596))),197:je.lazy(()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,3561))),198:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,93709))),199:je.lazy(()=>__webpack_require__.e(7614).then(__webpack_require__.bind(__webpack_require__,55955))),200:je.lazy(()=>__webpack_require__.e(2875).then(__webpack_require__.bind(__webpack_require__,5297))),201:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9133)]).then(__webpack_require__.bind(__webpack_require__,41922))),202:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),203:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),204:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5470)]).then(__webpack_require__.bind(__webpack_require__,83337))),205:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6541)]).then(__webpack_require__.bind(__webpack_require__,53266))),206:je.lazy(()=>Promise.all([__webpack_require__.e(2245),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,32410))),207:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(2254)]).then(__webpack_require__.bind(__webpack_require__,79490))),208:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9408)]).then(__webpack_require__.bind(__webpack_require__,73474))),209:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6845)]).then(__webpack_require__.bind(__webpack_require__,55264))),210:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,11805))),211:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4884)]).then(__webpack_require__.bind(__webpack_require__,11805))),212:je.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,12305))),213:je.lazy(()=>__webpack_require__.e(1148).then(__webpack_require__.bind(__webpack_require__,12305))),214:je.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,83540))),215:je.lazy(()=>__webpack_require__.e(7046).then(__webpack_require__.bind(__webpack_require__,83540))),216:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),217:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,69444))),218:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,6615))),219:je.lazy(()=>__webpack_require__.e(9215).then(__webpack_require__.bind(__webpack_require__,23155))),220:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),221:je.lazy(()=>__webpack_require__.e(5176).then(__webpack_require__.bind(__webpack_require__,81681))),222:je.lazy(()=>__webpack_require__.e(6587).then(__webpack_require__.bind(__webpack_require__,60007))),223:je.lazy(()=>__webpack_require__.e(9891).then(__webpack_require__.bind(__webpack_require__,37665))),224:je.lazy(()=>__webpack_require__.e(8062).then(__webpack_require__.bind(__webpack_require__,7387))),225:je.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,68661))),226:je.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,68661))),227:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,96836))),228:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,4498))),229:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,58367))),230:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,35051))),231:je.lazy(()=>__webpack_require__.e(5043).then(__webpack_require__.bind(__webpack_require__,77008))),232:je.lazy(()=>__webpack_require__.e(799).then(__webpack_require__.bind(__webpack_require__,59102))),233:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,28306))),234:je.lazy(()=>__webpack_require__.e(2529).then(__webpack_require__.bind(__webpack_require__,69182))),235:je.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,27738))),236:je.lazy(()=>__webpack_require__.e(5895).then(__webpack_require__.bind(__webpack_require__,44227))),237:je.lazy(()=>__webpack_require__.e(6982).then(__webpack_require__.bind(__webpack_require__,3887))),238:je.lazy(()=>__webpack_require__.e(6805).then(__webpack_require__.bind(__webpack_require__,94666))),239:je.lazy(()=>__webpack_require__.e(1416).then(__webpack_require__.bind(__webpack_require__,94281))),240:je.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,27738))),241:je.lazy(()=>__webpack_require__.e(8307).then(__webpack_require__.bind(__webpack_require__,69880))),242:je.lazy(()=>__webpack_require__.e(2826).then(__webpack_require__.bind(__webpack_require__,50985))),243:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,52983))),244:je.lazy(()=>__webpack_require__.e(4610).then(__webpack_require__.bind(__webpack_require__,866))),245:je.lazy(()=>__webpack_require__.e(9590).then(__webpack_require__.bind(__webpack_require__,19149))),246:je.lazy(()=>__webpack_require__.e(2076).then(__webpack_require__.bind(__webpack_require__,17796))),247:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4849)]).then(__webpack_require__.bind(__webpack_require__,94891))),248:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(310)]).then(__webpack_require__.bind(__webpack_require__,23396))),249:je.lazy(()=>__webpack_require__.e(5191).then(__webpack_require__.bind(__webpack_require__,28546))),250:je.lazy(()=>__webpack_require__.e(3496).then(__webpack_require__.bind(__webpack_require__,85503))),251:je.lazy(()=>__webpack_require__.e(7948).then(__webpack_require__.bind(__webpack_require__,72256))),252:je.lazy(()=>__webpack_require__.e(9519).then(__webpack_require__.bind(__webpack_require__,16046))),253:je.lazy(()=>__webpack_require__.e(5599).then(__webpack_require__.bind(__webpack_require__,11779))),254:je.lazy(()=>__webpack_require__.e(4736).then(__webpack_require__.bind(__webpack_require__,73525))),255:je.lazy(()=>__webpack_require__.e(2412).then(__webpack_require__.bind(__webpack_require__,97625))),256:je.lazy(()=>__webpack_require__.e(2240).then(__webpack_require__.bind(__webpack_require__,30105))),257:je.lazy(()=>__webpack_require__.e(265).then(__webpack_require__.bind(__webpack_require__,41847))),258:je.lazy(()=>__webpack_require__.e(9360).then(__webpack_require__.bind(__webpack_require__,43328))),259:je.lazy(()=>__webpack_require__.e(2396).then(__webpack_require__.bind(__webpack_require__,39638))),260:je.lazy(()=>__webpack_require__.e(7855).then(__webpack_require__.bind(__webpack_require__,83219))),261:je.lazy(()=>__webpack_require__.e(9507).then(__webpack_require__.bind(__webpack_require__,60119))),262:je.lazy(()=>__webpack_require__.e(1343).then(__webpack_require__.bind(__webpack_require__,26662))),263:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),264:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),265:je.lazy(()=>__webpack_require__.e(9647).then(__webpack_require__.bind(__webpack_require__,55396))),266:je.lazy(()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,5479))),267:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,1096))),268:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,1096))),269:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,66880))),270:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,66880))),271:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,80677))),272:je.lazy(()=>__webpack_require__.e(9716).then(__webpack_require__.bind(__webpack_require__,61834))),273:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,36667))),274:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,36667))),275:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),276:je.lazy(()=>__webpack_require__.e(3006).then(__webpack_require__.bind(__webpack_require__,18087))),277:je.lazy(()=>__webpack_require__.e(2045).then(__webpack_require__.bind(__webpack_require__,82101))),278:je.lazy(()=>__webpack_require__.e(1520).then(__webpack_require__.bind(__webpack_require__,27098))),279:je.lazy(()=>__webpack_require__.e(9649).then(__webpack_require__.bind(__webpack_require__,12449))),280:je.lazy(()=>__webpack_require__.e(4546).then(__webpack_require__.bind(__webpack_require__,18955))),281:je.lazy(()=>__webpack_require__.e(5357).then(__webpack_require__.bind(__webpack_require__,51612))),282:je.lazy(()=>__webpack_require__.e(8665).then(__webpack_require__.bind(__webpack_require__,56192))),283:je.lazy(()=>__webpack_require__.e(3183).then(__webpack_require__.bind(__webpack_require__,76584))),284:je.lazy(()=>__webpack_require__.e(4800).then(__webpack_require__.bind(__webpack_require__,68173))),285:je.lazy(()=>__webpack_require__.e(9489).then(__webpack_require__.bind(__webpack_require__,4962))),286:je.lazy(()=>__webpack_require__.e(9391).then(__webpack_require__.bind(__webpack_require__,92100))),287:je.lazy(()=>__webpack_require__.e(5335).then(__webpack_require__.bind(__webpack_require__,51389))),288:je.lazy(()=>__webpack_require__.e(2823).then(__webpack_require__.bind(__webpack_require__,16559))),289:je.lazy(()=>__webpack_require__.e(4973).then(__webpack_require__.bind(__webpack_require__,53318))),290:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,30759))),291:je.lazy(()=>__webpack_require__.e(6741).then(__webpack_require__.bind(__webpack_require__,85722))),292:je.lazy(()=>__webpack_require__.e(5775).then(__webpack_require__.bind(__webpack_require__,89651))),293:je.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,89243))),294:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),295:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),296:je.lazy(()=>__webpack_require__.e(6634).then(__webpack_require__.bind(__webpack_require__,19689))),297:je.lazy(()=>__webpack_require__.e(680).then(__webpack_require__.bind(__webpack_require__,3074))),298:je.lazy(()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,43026))),299:je.lazy(()=>__webpack_require__.e(6452).then(__webpack_require__.bind(__webpack_require__,61382))),300:je.lazy(()=>__webpack_require__.e(1070).then(__webpack_require__.bind(__webpack_require__,41319))),301:je.lazy(()=>__webpack_require__.e(7242).then(__webpack_require__.bind(__webpack_require__,13232))),302:je.lazy(()=>__webpack_require__.e(2707).then(__webpack_require__.bind(__webpack_require__,57732))),303:je.lazy(()=>__webpack_require__.e(2865).then(__webpack_require__.bind(__webpack_require__,1741))),304:je.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,75848))),305:je.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,75848))),306:je.lazy(()=>__webpack_require__.e(3141).then(__webpack_require__.bind(__webpack_require__,78946))),307:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),308:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,28281))),309:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,80126))),310:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,28281))),311:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,80126))),312:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(6312),__webpack_require__.e(3665)]).then(__webpack_require__.bind(__webpack_require__,28281))),313:je.lazy(()=>__webpack_require__.e(9883).then(__webpack_require__.bind(__webpack_require__,29883))),314:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,86145))),315:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6312),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,97655))),316:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),317:je.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,15679))),318:je.lazy(()=>__webpack_require__.e(9788).then(__webpack_require__.bind(__webpack_require__,39752))),319:je.lazy(()=>__webpack_require__.e(576).then(__webpack_require__.bind(__webpack_require__,24059))),320:je.lazy(()=>__webpack_require__.e(7260).then(__webpack_require__.bind(__webpack_require__,10769))),321:je.lazy(()=>__webpack_require__.e(4520).then(__webpack_require__.bind(__webpack_require__,20118))),322:je.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,43751))),323:je.lazy(()=>__webpack_require__.e(4514).then(__webpack_require__.bind(__webpack_require__,35941))),324:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),325:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,81152))),326:je.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,28287))),327:je.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,28287))),328:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),329:je.lazy(()=>__webpack_require__.e(1939).then(__webpack_require__.bind(__webpack_require__,4034))),330:je.lazy(()=>__webpack_require__.e(556).then(__webpack_require__.bind(__webpack_require__,71333))),331:je.lazy(()=>__webpack_require__.e(6434).then(__webpack_require__.bind(__webpack_require__,56856))),332:je.lazy(()=>__webpack_require__.e(1880).then(__webpack_require__.bind(__webpack_require__,70263))),333:je.lazy(()=>__webpack_require__.e(8237).then(__webpack_require__.bind(__webpack_require__,79178))),334:je.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,40059))),335:je.lazy(()=>__webpack_require__.e(264).then(__webpack_require__.bind(__webpack_require__,49877))),336:je.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,95758))),337:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),338:je.lazy(()=>__webpack_require__.e(4078).then(__webpack_require__.bind(__webpack_require__,69453))),339:je.lazy(()=>__webpack_require__.e(2829).then(__webpack_require__.bind(__webpack_require__,38756))),340:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,49248))),341:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),342:je.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,463))),343:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),344:je.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,96482))),345:je.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,16653))),346:je.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,5339))),347:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),348:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),349:je.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89038))),350:je.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61782))),351:je.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,8513))),352:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,14569))),353:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),354:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),355:je.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,339))),356:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,53470))),357:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,43524))),358:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),359:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),360:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,2682))),361:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),362:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),363:je.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,77458))),364:je.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,91541))),365:je.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,98563))),366:je.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,62041))),367:je.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,34891))),368:je.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,68365))),369:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),370:je.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,16733))),371:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),372:je.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,463))),373:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),374:je.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,96482))),375:je.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,16653))),376:je.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,5339))),377:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),378:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,20988))),379:je.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89038))),380:je.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,61782))),381:je.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,8513))),382:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,14569))),383:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),384:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,21405))),385:je.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,339))),386:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,53470))),387:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,43524))),388:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),389:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,93691))),390:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,2682))),391:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),392:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,26193))),393:je.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,77458))),394:je.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,91541))),395:je.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,98563))),396:je.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,62041))),397:je.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,34891))),398:je.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,68365))),399:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,49530))),400:je.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,16733))),401:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),402:je.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,23810))),403:je.lazy(()=>__webpack_require__.e(7560).then(__webpack_require__.bind(__webpack_require__,6202))),404:je.lazy(()=>__webpack_require__.e(6029).then(__webpack_require__.bind(__webpack_require__,36605))),405:je.lazy(()=>__webpack_require__.e(5179).then(__webpack_require__.bind(__webpack_require__,31386))),406:je.lazy(()=>__webpack_require__.e(4621).then(__webpack_require__.bind(__webpack_require__,69446))),407:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),408:je.lazy(()=>__webpack_require__.e(1831).then(__webpack_require__.bind(__webpack_require__,46544))),409:je.lazy(()=>__webpack_require__.e(2539).then(__webpack_require__.bind(__webpack_require__,98851))),410:je.lazy(()=>__webpack_require__.e(8143).then(__webpack_require__.bind(__webpack_require__,82676))),411:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,69395))),412:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,70330))),413:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,39850))),414:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,99002))),415:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),416:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),417:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),418:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),419:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,3125))),420:je.lazy(()=>__webpack_require__.e(5022).then(__webpack_require__.bind(__webpack_require__,50587))),421:je.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,23025))),422:je.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,23025))),423:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,50964))),424:je.lazy(()=>__webpack_require__.e(1253).then(__webpack_require__.bind(__webpack_require__,87549))),425:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),426:je.lazy(()=>__webpack_require__.e(2216).then(__webpack_require__.bind(__webpack_require__,8497))),427:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,59230))),428:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),429:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6411),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,72186))),430:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,15370))),431:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),432:je.lazy(()=>__webpack_require__.e(570).then(__webpack_require__.bind(__webpack_require__,47712))),433:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),434:je.lazy(()=>__webpack_require__.e(8365).then(__webpack_require__.bind(__webpack_require__,39389))),435:je.lazy(()=>__webpack_require__.e(672).then(__webpack_require__.bind(__webpack_require__,27590))),436:je.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,34615))),437:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),438:je.lazy(()=>__webpack_require__.e(4056).then(__webpack_require__.bind(__webpack_require__,56140))),439:je.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,33202))),440:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),441:je.lazy(()=>__webpack_require__.e(532).then(__webpack_require__.bind(__webpack_require__,51443))),442:je.lazy(()=>__webpack_require__.e(7178).then(__webpack_require__.bind(__webpack_require__,26671))),443:je.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,19039))),444:je.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,5670))),445:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,45914))),446:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,82740))),447:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,35868))),448:je.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,428))),449:je.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,87877))),450:je.lazy(()=>__webpack_require__.e(5972).then(__webpack_require__.bind(__webpack_require__,50446))),451:je.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,87877))),452:je.lazy(()=>__webpack_require__.e(1470).then(__webpack_require__.bind(__webpack_require__,5881))),453:je.lazy(()=>__webpack_require__.e(7182).then(__webpack_require__.bind(__webpack_require__,18097))),454:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),455:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,76339))),456:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),457:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,14462))),458:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),459:je.lazy(()=>__webpack_require__.e(6444).then(__webpack_require__.bind(__webpack_require__,76428))),460:je.lazy(()=>__webpack_require__.e(5111).then(__webpack_require__.bind(__webpack_require__,76546))),461:je.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,62642))),462:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(7062)]).then(__webpack_require__.bind(__webpack_require__,1458))),463:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1531),__webpack_require__.e(8866)]).then(__webpack_require__.bind(__webpack_require__,2689))),464:je.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,85367))),465:je.lazy(()=>__webpack_require__.e(2501).then(__webpack_require__.bind(__webpack_require__,67488))),466:je.lazy(()=>__webpack_require__.e(3212).then(__webpack_require__.bind(__webpack_require__,60161))),467:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,84592))),468:je.lazy(()=>__webpack_require__.e(1855).then(__webpack_require__.bind(__webpack_require__,83916))),469:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,84592))),470:je.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,73827))),471:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,4926))),472:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,4926))),473:je.lazy(()=>__webpack_require__.e(3784).then(__webpack_require__.bind(__webpack_require__,61889))),474:je.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,13153))),475:je.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,74039))),476:je.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,65095))),477:je.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,6281))),478:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,4883))),479:je.lazy(()=>__webpack_require__.e(1836).then(__webpack_require__.bind(__webpack_require__,65773))),480:je.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,38316))),481:je.lazy(()=>__webpack_require__.e(3509).then(__webpack_require__.bind(__webpack_require__,87554))),482:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,4883))),483:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,4883))),484:je.lazy(()=>__webpack_require__.e(6034).then(__webpack_require__.bind(__webpack_require__,65216))),485:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,74347))),486:je.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,39945))),487:je.lazy(()=>Promise.all([__webpack_require__.e(5757),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,75326))),488:je.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,65095))),"@@/global-layout":je.lazy(()=>__webpack_require__.e(1717).then(__webpack_require__.bind(__webpack_require__,36359)))}}})}var A=__webpack_require__(90),P=__webpack_require__(6307),D=__webpack_require__(71418),pe=__webpack_require__(13631),Oe=()=>je.createElement(D.Z,{size:"middle",className:pe.Z.loading}),an=__webpack_require__(42203),zn=__webpack_require__(61186),dn=__webpack_require__.n(zn),Mi=__webpack_require__(91392),Qa=__webpack_require__.n(Mi),Oa=__webpack_require__(34749),To=__webpack_require__.n(Oa),ds=__webpack_require__(19277),yo=__webpack_require__.n(ds),ys=__webpack_require__(10238),gc=__webpack_require__.n(ys),$l=__webpack_require__(33656),rc=__webpack_require__.n($l),nc=__webpack_require__(90111),fl=__webpack_require__.n(nc),ki=__webpack_require__(74959),El=__webpack_require__.n(ki),ic=__webpack_require__(23250),Uo=__webpack_require__.n(ic),no=__webpack_require__(58862),Wa=__webpack_require__.n(no),dl=__webpack_require__(58319),Sl=__webpack_require__.n(dl),ac=__webpack_require__(62053),hl=__webpack_require__.n(ac),pl=__webpack_require__(47477),Xu=__webpack_require__.n(pl),j=__webpack_require__(59717),r=__webpack_require__.n(j);dn().extend(To()),dn().extend(yo()),dn().extend(gc()),dn().extend(rc()),dn().extend(fl()),dn().extend(El()),dn().extend(Uo()),dn().extend(Wa()),dn().extend(Sl()),dn().extend(hl()),dn().extend(Xu()),dn().extend(r()),dn().extend(Qa());var a=Object.defineProperty,_=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,N=(De,He,Xe)=>He in De?a(De,He,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):De[He]=Xe,H=(De,He)=>{for(var Xe in He||(He={}))E.call(He,Xe)&&N(De,Xe,He[Xe]);if(_)for(var Xe of _(He))I.call(He,Xe)&&N(De,Xe,He[Xe]);return De},oe=(De,He,Xe)=>new Promise((lt,vt)=>{var Qt=Wr=>{try{Tr(Xe.next(Wr))}catch(Br){vt(Br)}},yr=Wr=>{try{Tr(Xe.throw(Wr))}catch(Br){vt(Br)}},Tr=Wr=>Wr.done?lt(Wr.value):Promise.resolve(Wr.value).then(Qt,yr);Tr((Xe=Xe.apply(De,He)).next())});const he="/react/build/",be=!1;function Se(){return oe(this,null,function*(){const De=(0,A.gD)(),{routes:He,routeComponents:Xe}=yield vc(De);yield De.applyPlugins({key:"patchRoutes",type:an.ApplyPluginsType.event,args:{routes:He,routeComponents:Xe}});const lt=De.applyPlugins({key:"modifyContextOpts",type:an.ApplyPluginsType.modify,initialValue:{}}),vt=lt.basename||"/",Qt=lt.historyType||"browser",yr=(0,P.fi)(H({type:Qt,basename:vt},lt.historyOpts));return De.applyPlugins({key:"render",type:an.ApplyPluginsType.compose,initialValue(){const Tr={useStream:!0,routes:He,routeComponents:Xe,pluginManager:De,mountElementId:"root",rootElement:lt.rootElement||document.getElementById("root"),loadingComponent:Oe,publicPath:he,runtimePublicPath:be,history:yr,historyType:Qt,basename:vt,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:lt.callback},Wr=De.applyPlugins({key:"modifyClientRenderOpts",type:an.ApplyPluginsType.modify,initialValue:Tr});return ec(Wr)}})()})}Se(),typeof window!="undefined"&&(window.g_umi={version:"4.4.4"})})()})();