|
|
(self.webpackChunk=self.webpackChunk||[]).push([[40901,4977],{15378:function(){"use strict";function e(e,t,n,a){void 0===n&&(n=0),void 0===a&&(a=1/0),this._name=e,this._defaultValue=t,this._minimum=n,this._maximum=a}Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){if("string"!=typeof e||""===e)throw new Error("Shape name must be a valid string.");this._name=e}}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("The default value must be a real number, not: "+e);this._defaultValue=e}}),Object.defineProperty(e.prototype,"minimum",{get:function(){return this._minimum},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("Minimum must be a real number, not: "+e);this._minimum=e}}),Object.defineProperty(e.prototype,"maximum",{get:function(){return this._maximum},set:function(e){if("number"!=typeof e||isNaN(e))throw new Error("Maximum must be a real number, not: "+e);this._maximum=e}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(e,t){var n=go.Shape._FigureParameters[e];return n?n[t]:null},go.Shape.setFigureParameter=function(t,n,a){if(!(a instanceof e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var o=go.Shape._FigureParameters[t];o||(o=[],go.Shape._FigureParameters[t]=o),o[n]=a};var t=[];function n(e,n){var a=t.pop();return void 0===a?new go.Point(e,n):(a.x=e,a.y=n,a)}function a(){var e=t.pop();return void 0===e?new go.Point:e}function o(e){t.push(e)}function g(e,t,n,a,o,g,i,r,d){d||(d=new go.Point);var h,s,m,c=e-n,l=o-i,u=NaN,S=NaN;0===c?0===l?e===n&&(u=e,S=t):S=(s=(g-r)/l)*(u=e)+(g-s*o):S=0===l?(h=(t-a)/c)*(u=o)+(m=t-h*e):(h=(t-a)/c)*(u=(g-(s=(g-r)/l)*o-(m=t-h*e))/(h-s))+m;return d.x=u,d.y=S,d}function i(e,t,n,a,o,g,i,r,d,h,s,m,c,l){var u=1-d,S=e*u+n*d,P=t*u+a*d,w=n*u+o*d,p=a*u+g*d,f=o*u+i*d,v=g*u+r*d,L=S*u+w*d,x=P*u+p*d,y=w*u+f*d,b=p*u+v*d,j=L*u+y*d,B=x*u+b*d;h.x=S,h.y=P,s.x=L,s.y=x,m.x=j,m.y=B,c.x=y,c.y=b,l.x=f,l.y=v}var r=new go.Spot(.156,.156),d=new go.Spot(.844,.844),h=(Math.sqrt(2)-1)/3*4;go.Shape.setFigureParameter("RoundedRectangle",0,new e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=5),a=Math.min(a,t/3);var o=(a=Math.min(a,n/3))*h,g=(new go.Geometry).add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,t-a,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,a,t-o,0,t,o)).add(new go.PathSegment(go.PathSegment.Line,t,n-a)).add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,n-o,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,a,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,o,n,0,n-o)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,o,o,0).close()));return o>1&&(g.spot1=new go.Spot(0,0,o,o),g.spot2=new go.Spot(1,1,-o,-o)),g})),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.25,.5,.75)})),go.Shape.defineFigureGenerator("TriangleDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close())).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("TriangleLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,0).close())).setSpots(.5,.25,1,.75)})),go.Shape.defineFigureGenerator("TriangleUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,n).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close())).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close())).setSpots(.25,.25,.75,.75)})),go.Shape.defineFigureGenerator("LineH",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=0,a.startY=n/2,a.endX=t,a.endY=n/2,a})),go.Shape.defineFigureGenerator("LineV",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=t/2,a.startY=0,a.endX=t/2,a.endY=n,a})),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n/2,!1).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("XLine",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LineRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.25*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)))})),go.Shape.defineFigureGenerator("LineDown",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.25*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Line,t,.25*n)))})),go.Shape.defineFigureGenerator("LineLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.75*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,n)))})),go.Shape.defineFigureGenerator("LineUp",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.75*n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,t,.75*n)))})),go.Shape.defineFigureGenerator("AsteriskLine",(function(e,t,n){var a=.2/Math.SQRT2;return(new go.Geometry).add(new go.PathFigure(a*t,(1-a)*n,!1).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,a*n)).add(new go.PathSegment(go.PathSegment.Move,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Move,0,n/2)).add(new go.PathSegment(go.PathSegment.Line,t,n/2)).add(new go.PathSegment(go.PathSegment.Move,t/2,0)).add(new go.PathSegment(go.PathSegment.Line,t/2,n)))})),go.Shape.defineFigureGenerator("CircleLine",(function(e,t,n){var a=t/2,o=(new go.Geometry).add(new go.PathFigure(t,t/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,a,a,a,a).close()));return o.spot1=r,o.spot2=d,o.defaultStretch=go.GraphObject.Uniform,o})),go.Shape.defineFigureGenerator("Line1",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=0,a.startY=0,a.endX=t,a.endY=n,a})),go.Shape.defineFigureGenerator("Line2",(function(e,t,n){var a=new go.Geometry(go.Geometry.Line);return a.startX=t,a.startY=0,a.endX=0,a.endY=n,a})),go.Shape.defineFigureGenerator("Curve1",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,h*t,0,t,(1-h)*n)))})),go.Shape.defineFigureGenerator("Curve2",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,t,n,0,h*n,(1-h)*t,n)))})),go.Shape.defineFigureGenerator("Curve3",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,h*n,h*t,n)))})),go.Shape.defineFigureGenerator("Curve4",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,n,(1-h)*t,0,0,(1-h)*n)))})),go.Shape.defineFigureGenerator("TriangleDownLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,.5,.5,1)})),go.Shape.defineFigureGenerator("TriangleDownRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(t,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(.5,.5,1,1)})),go.Shape.defineFigureGenerator("TriangleUpLeft",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())).setSpots(0,0,.5,.5)})),go.Shape.defineFigureGenerator("TriangleUpRight",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n).close())).setSpots(.5,0,1,.5)})),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=.1:a<-1?a=-1:a>1&&(a=1);var o=Math.abs(a)*t;if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=10:a<-t?a=-t:a>t&&(a=t);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.setFigureParameter("Trapezoid1",0,new e("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=.2:a<.5?a=-.5:a>.5&&(a=.5);var o=Math.abs(a)*t;if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new e("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=20:a<-t?a=-t/2:a>t&&(a=t/2);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())):g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g})),go.Shape.setFigureParameter("ManualOperation",0,new e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)?a=10:a<-t?a=-t/2:a>t&&(a=t/2);var o=Math.abs(a);if(0===a)return(g=new go.Geometry(go.Geometry.Rectangle)).startX=0,g.startY=0,g.endX=t,g.endY=n,g;var g=new go.Geometry;return a>0?g.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t-o,n)).add(new go.PathSegment(go.PathSegment.Line,o,n).close())):g.add(new go.PathFigure(o,0).add(new go.PathSegment(go.PathSegment.Line,t-o,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close())),o<t/2&&g.setSpots(o/t,0,(t-o)/t,1),g}));var s=[];function m(){var e=s.pop();return void 0===e?[]:e}function c(e){e.length=0,s.push(e)}function l(e){for(var t=m(),n=1.5*Math.PI,a=0,o=0;o<e;o++)a=2*Math.PI/e*o+n,t[o]=new go.Point(.5+.5*Math.cos(a),.5+.5*Math.sin(a));return t.push(t[0]),t}function u(e){var t=S(e),n=m();n[0]=t[0];for(var a=1,o=1;a<t.length;a+=2,o+=3)n[o]=t[a],n[o+1]=t[a],n[o+2]=t[a+1];return c(t),n}function S(e){for(var t=l(e),n=m(),a=Math.floor(t.length/2),o=t.length-1,i=e%2==0?2:1,r=0;r<o;r++){var d=t[r],h=t[r+1],s=t[(a+r-1)%o],u=t[(a+r+i)%o];n[2*r]=d,n[2*r+1]=g(d.x,d.y,s.x,s.y,h.x,h.y,u.x,u.y,new go.Point)}return n[n.length]=n[0],c(t),n}go.Shape.defineFigureGenerator("Pentagon",(function(e,t,n){var a=l(5),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<5;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.2,.22),o.spot2=new go.Spot(.8,.9),o})),go.Shape.defineFigureGenerator("Hexagon",(function(e,t,n){var a=l(6),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<6;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.07,.25),o.spot2=new go.Spot(.93,.75),o})),go.Shape.defineFigureGenerator("Heptagon",(function(e,t,n){var a=l(7),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<7;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.2,.15),o.spot2=new go.Spot(.8,.85),o})),go.Shape.defineFigureGenerator("Octagon",(function(e,t,n){var a=l(8),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<8;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.15,.15),o.spot2=new go.Spot(.85,.85),o})),go.Shape.defineFigureGenerator("Nonagon",(function(e,t,n){var a=l(9),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<9;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.17,.13),o.spot2=new go.Spot(.82,.82),o})),go.Shape.defineFigureGenerator("Decagon",(function(e,t,n){var a=l(10),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<10;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.16,.16),o.spot2=new go.Spot(.84,.84),o})),go.Shape.defineFigureGenerator("Dodecagon",(function(e,t,n){var a=l(12),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<12;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.16,.16),o.spot2=new go.Spot(.84,.84),o})),go.Shape.defineFigureGenerator("FivePointedStar",(function(e,t,n){var a=S(5),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<10;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.266,.333),o.spot2=new go.Spot(.733,.733),o})),go.Shape.defineFigureGenerator("SixPointedStar",(function(e,t,n){var a=S(6),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<12;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.17,.25),o.spot2=new go.Spot(.83,.75),o})),go.Shape.defineFigureGenerator("SevenPointedStar",(function(e,t,n){var a=S(7),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<14;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.222,.277),o.spot2=new go.Spot(.777,.666),o})),go.Shape.defineFigureGenerator("EightPointedStar",(function(e,t,n){var a=S(8),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<16;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.25,.25),o.spot2=new go.Spot(.75,.75),o})),go.Shape.defineFigureGenerator("NinePointedStar",(function(e,t,n){var a=S(9),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<18;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.222,.277),o.spot2=new go.Spot(.777,.666),o})),go.Shape.defineFigureGenerator("TenPointedStar",(function(e,t,n){var a=S(10),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<20;i++)g.add(new go.PathSegment(go.PathSegment.Line,a[i].x*t,a[i].y*n));return g.add(new go.PathSegment(go.PathSegment.Line,a[0].x*t,a[0].y*n).close()),c(a),o.spot1=new go.Spot(.281,.261),o.spot2=new go.Spot(.723,.748),o})),go.Shape.defineFigureGenerator("FivePointedBurst",(function(e,t,n){var a=u(5),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<a.length;i+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[i+2].x*t,a[i+2].y*n,a[i].x*t,a[i].y*n,a[i+1].x*t,a[i+1].y*n));return g.segments.last().close(),c(a),o.spot1=new go.Spot(.222,.277),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("SixPointedBurst",(function(e,t,n){var a=u(6),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<a.length;i+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[i+2].x*t,a[i+2].y*n,a[i].x*t,a[i].y*n,a[i+1].x*t,a[i+1].y*n));return g.segments.last().close(),c(a),o.spot1=new go.Spot(.17,.222),o.spot2=new go.Spot(.833,.777),o})),go.Shape.defineFigureGenerator("SevenPointedBurst",(function(e,t,n){var a=u(7),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<a.length;i+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[i+2].x*t,a[i+2].y*n,a[i].x*t,a[i].y*n,a[i+1].x*t,a[i+1].y*n));return g.segments.last().close(),c(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("EightPointedBurst",(function(e,t,n){var a=u(8),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<a.length;i+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[i+2].x*t,a[i+2].y*n,a[i].x*t,a[i].y*n,a[i+1].x*t,a[i+1].y*n));return g.segments.last().close(),c(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("NinePointedBurst",(function(e,t,n){var a=u(9),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<a.length;i+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[i+2].x*t,a[i+2].y*n,a[i].x*t,a[i].y*n,a[i+1].x*t,a[i+1].y*n));return g.segments.last().close(),c(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.defineFigureGenerator("TenPointedBurst",(function(e,t,n){var a=u(10),o=new go.Geometry,g=new go.PathFigure(a[0].x*t,a[0].y*n,!0);o.add(g);for(var i=1;i<a.length;i+=3)g.add(new go.PathSegment(go.PathSegment.Bezier,a[i+2].x*t,a[i+2].y*n,a[i].x*t,a[i].y*n,a[i+1].x*t,a[i+1].y*n));return g.segments.last().close(),c(a),o.spot1=new go.Spot(.222,.222),o.spot2=new go.Spot(.777,.777),o})),go.Shape.setFigureParameter("FramedRectangle",0,new e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new e("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",(function(e,t,n){var a=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(a)&&(a=8),isNaN(o)&&(o=8);var g=new go.Geometry,i=new go.PathFigure(0,0,!0);return g.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,0)),i.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a<t/2&&o<n/2&&(i.add(new go.PathSegment(go.PathSegment.Move,a,o)),i.add(new go.PathSegment(go.PathSegment.Line,a,n-o)),i.add(new go.PathSegment(go.PathSegment.Line,t-a,n-o)),i.add(new go.PathSegment(go.PathSegment.Line,t-a,o).close())),g.setSpots(0,0,1,1,a,o,-a,-o),g})),go.Shape.setFigureParameter("Ring",0,new e("Thickness",8)),go.Shape.defineFigureGenerator("Ring",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=8);var o=t/2,g=new go.Geometry,i=new go.PathFigure(t,t/2,!0);g.add(i),i.add(new go.PathSegment(go.PathSegment.Arc,0,360,o,o,o,o).close());var h=Math.max(o-a,0);return h>0&&(i.add(new go.PathSegment(go.PathSegment.Move,t/2+h,t/2)),i.add(new go.PathSegment(go.PathSegment.Arc,0,-360,o,o,h,h).close())),g.spot1=r,g.spot2=d,g.defaultStretch=go.GraphObject.Uniform,g})),go.Shape.defineFigureGenerator("Cloud",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.08034461*t,.1944299*n,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*t,.05349299*n,-.09239631*t,.07836421*n,.1406031*t,-.0542823*n)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*t,.074219*n,.2450511*t,-.00697547*n,.3776197*t,-.01112067*n)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*t,.07004196*n,.4539471*t,0,.6066018*t,-.02526587*n)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*t,.08370865*n,.6914277*t,-.01904177*n,.8921095*t,-.01220843*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*t,.3194596*n,1.036446*t,.04105738*n,1.020377*t,.3022052*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*t,.562044*n,1.04448*t,.360238*n,.992256*t,.5219009*n)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*t,.8217117*n,1.032337*t,.5771781*n,1.018411*t,.8120651*n)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*t,.9156953*n,1.028411*t,.9571472*n,.8556702*t,1.052487*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*t,.9310455*n,.7431877*t,1.009325*n,.5624123*t,1.021761*n)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*t,.9344623*n,.4820677*t,1.031761*n,.3030112*t,1.002796*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.870098*n,.2329994*t,1.01518*n,.03213784*t,1.01518*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*t,.6545475*n,-.02812061*t,.9032597*n,-.01205169*t,.6835638*n)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*t,.4265613*n,-.01812061*t,.6089503*n,-.00606892*t,.4555777*n)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*t,.1944299*n,-.01606892*t,.3892545*n,-.01205169*t,.1944299*n))).setSpots(.1,.1,.9,.9)})),go.Shape.defineFigureGenerator("StopSign",(function(e,t,n){var a=1/(Math.SQRT2+2);return(new go.Geometry).add(new go.PathFigure(a*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,a*n)).add(new go.PathSegment(go.PathSegment.Line,t,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Line,a*t,n)).add(new go.PathSegment(go.PathSegment.Line,0,(1-a)*n)).add(new go.PathSegment(go.PathSegment.Line,0,a*n).close())).setSpots(a/2,a/2,1-a/2,1-a/2)})),go.Shape.setFigureParameter("Pie",0,new e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",(function(e,t,n){var a=e?e.parameter1:NaN,o=e?e.parameter2:NaN;isNaN(a)&&(a=0),isNaN(o)&&(o=315);var g=a%360;g<0&&(g+=360);var i=o%360,r=Math.min(t,n)/2;return(new go.Geometry).add(new go.PathFigure(r,r).add(new go.PathSegment(go.PathSegment.Arc,g,i,r,r,r,r).close()))})),go.Shape.defineFigureGenerator("PiePiece",(function(e,t,n){var a=h/Math.SQRT2*.5,o=Math.SQRT2/2,g=1-Math.SQRT2/2;return(new go.Geometry).add(new go.PathFigure(t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,o*t,g*n,t,(1-a)*n,(o+a)*t,(g+a)*n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()))})),go.Shape.setFigureParameter("ThickCross",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=30);var o=Math.min(a,t)/2,g=t/2,i=n/2;return(new go.Geometry).add(new go.PathFigure(g-o,0,!0).add(new go.PathSegment(go.PathSegment.Line,g+o,0)).add(new go.PathSegment(go.PathSegment.Line,g+o,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i-o)).add(new go.PathSegment(go.PathSegment.Line,g-o,i-o).close()))})),go.Shape.setFigureParameter("ThinCross",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=10);var o=Math.min(a,t)/2,g=t/2,i=n/2;return(new go.Geometry).add(new go.PathFigure(g-o,0,!0).add(new go.PathSegment(go.PathSegment.Line,g+o,0)).add(new go.PathSegment(go.PathSegment.Line,g+o,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i-o)).add(new go.PathSegment(go.PathSegment.Line,t,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,i+o)).add(new go.PathSegment(go.PathSegment.Line,g+o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,n)).add(new go.PathSegment(go.PathSegment.Line,g-o,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i+o)).add(new go.PathSegment(go.PathSegment.Line,0,i-o)).add(new go.PathSegment(go.PathSegment.Line,g-o,i-o).close()))})),go.Shape.setFigureParameter("ThickX",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",(function(e,t,n){var a=e?e.parameter1:NaN;if((isNaN(a)||a<0)&&(a=30),0===t||0===n)return(h=new go.Geometry(go.Geometry.Rectangle)).startX=0,h.startY=0,h.endX=t,h.endY=n,h;var o=t/2,g=n/2,i=Math.atan2(n,t),r=a-Math.min(Math.cos(i)*a/2,o),d=a-Math.min(Math.sin(i)*a/2,g),h=new go.Geometry,s=new go.PathFigure(r,0,!0);return h.add(s),s.add(new go.PathSegment(go.PathSegment.Line,o,.2*n)),s.add(new go.PathSegment(go.PathSegment.Line,t-r,0)),s.add(new go.PathSegment(go.PathSegment.Line,t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.8*t,g)),s.add(new go.PathSegment(go.PathSegment.Line,t,n-d)),s.add(new go.PathSegment(go.PathSegment.Line,t-r,n)),s.add(new go.PathSegment(go.PathSegment.Line,o,.8*n)),s.add(new go.PathSegment(go.PathSegment.Line,r,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,n-d)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,g)),s.add(new go.PathSegment(go.PathSegment.Line,0,d).close()),h})),go.Shape.setFigureParameter("ThinX",0,new e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=10);var o=new go.Geometry,g=new go.PathFigure(.1*t,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.1*n).close()),o})),go.Shape.setFigureParameter("SquareIBeam",0,new e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.2);var o=new go.Geometry,g=new go.PathFigure(0,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5+a/2)*t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5+a/2)*t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5-a/2)*t,(1-a)*n)),g.add(new go.PathSegment(go.PathSegment.Line,(.5-a/2)*t,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,a*n).close()),o})),go.Shape.setFigureParameter("RoundedIBeam",0,new e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.5);var o=new go.Geometry,g=new go.PathFigure(0,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,n,Math.abs(1-a)*t,.25*n,Math.abs(1-a)*t,.75*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,0,a*t,.75*n,a*t,.25*n).close()),o})),go.Shape.defineFigureGenerator("HalfEllipse",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,h*t,0,t,(.5-h/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,(.5+h/2)*n,h*t,n).close())).setSpots(0,.156,.844,.844)})),go.Shape.defineFigureGenerator("Crescent",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,0,t,n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*t,.75*n,.5*t,.25*n).close())).setSpots(.311,.266,.744,.744)})),go.Shape.defineFigureGenerator("Heart",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,.1*t,.8*n,0,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,0,0,.45*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.55*t,0,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.5*n,.9*t,.8*n).close())).setSpots(.14,.29,.86,.78)})),go.Shape.defineFigureGenerator("Spade",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*t,.01*n)).add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.6*t,.2*n,t,.25*n)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.7*n,t,.8*n,.6*t,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,.5*t,.75*n,.55*t,.95*n)).add(new go.PathSegment(go.PathSegment.Line,.25*t,n)).add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.7*n,.45*t,.95*n,.5*t,.75*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.4*t,.8*n,0,.8*n)).add(new go.PathSegment(go.PathSegment.Bezier,.49*t,.01*n,0,.25*n,.4*t,.2*n).close())).setSpots(.14,.26,.86,.78)})),go.Shape.defineFigureGenerator("Club",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.4*t,.6*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.15*t,n,.5*t,.75*n,.45*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.6*n,.55*t,.95*n,.5*t,.75*n));var g=.2,i=.3,r=0,d=g*h;return o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5+g+r)*n,(.5-g+i)*t,(.5+d+r)*n,(.5-d+i)*t,(.5+g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g+i)*t,(.5+r)*n,(.5+d+i)*t,(.5+g+r)*n,(.5+g+i)*t,(.5+d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5-g+r)*n,(.5+g+i)*t,(.5-d+r)*n,(.5+d+i)*t,(.5-g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.65*t,.36771243*n,(.5-d+i)*t,(.5-g+r)*n,(.5-g+i+.05)*t,(.5-d+r-.02)*n)),i=0,r=-.3,d=(g=.2)*h,o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g+i)*t,(.5+r)*n,(.5+d+i)*t,(.5+g+r)*n,(.5+g+i)*t,(.5+d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5-g+r)*n,(.5+g+i)*t,(.5-d+r)*n,(.5+d+i)*t,(.5-g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-g+i)*t,(.5+r)*n,(.5-d+i)*t,(.5-g+r)*n,(.5-g+i)*t,(.5-d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-d+i)*t,(.5+g+r)*n,(.5-g+i)*t,(.5+d+r)*n,(.5-d+i)*t,(.5+g+r)*n)),i=-.3,r=0,d=(g=.2)*h,o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5-g+r)*n,(.5+g+i-.05)*t,(.5-d+r-.02)*n,(.5+d+i)*t,(.5-g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5-g+i)*t,(.5+r)*n,(.5-d+i)*t,(.5-g+r)*n,(.5-g+i)*t,(.5-d+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,(.5+i)*t,(.5+g+r)*n,(.5-g+i)*t,(.5+d+r)*n,(.5-d+i)*t,(.5+g+r)*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.6*n,(.5+d+i)*t,(.5+g+r)*n,(.5+g+i)*t,(.5+d+r)*n).close()),a.setSpots(.06,.33,.93,.68),a})),go.Shape.defineFigureGenerator("YinYang",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.5*t,.5*t,.5*t,.5*t)),o.add(new go.PathSegment(go.PathSegment.Arc,90,-180,.5*t,.75*t,.25*t,.25*t)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.5*t,.25*t,.25*t,.25*t));var g=.1,i=.5,r=.25;return o.add(new go.PathSegment(go.PathSegment.Move,.6*t,r*n)),o.add(new go.PathSegment(go.PathSegment.Arc,0,-360,t*i,n*r,g*t,g*t).close()),o=new go.PathFigure(.5*t,0,!1),a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,-180,.5*t,.5*t,.5*t,.5*t)),r=.75,o=new go.PathFigure(.6*t,r*n,!0),a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,0,360,t*i,n*r,g*t,g*t).close()),a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("Peace",(function(e,t,n){var a=.8535533905932737,o=.5*t,g=.5*n;return(new go.Geometry).add(new go.PathFigure(o,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,o,g,o,g)).add(new go.PathSegment(go.PathSegment.Line,o,n)).add(new go.PathSegment(go.PathSegment.Move,o,g)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,a*n)).add(new go.PathSegment(go.PathSegment.Move,o,g)).add(new go.PathSegment(go.PathSegment.Line,a*t,a*n)))})),go.Shape.defineFigureGenerator("NotAllowed",(function(e,t,n){var g=new go.Geometry,r=.5*h,d=.5,s=.5,m=.5,c=new go.PathFigure(s*t,(m-d)*n);g.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,(s-d)*t,m*n,(s-r)*t,(m-d)*n,(s-d)*t,(m-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m+d)*n,(s-d)*t,(m+r)*n,(s-r)*t,(m+d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(s+d)*t,m*n,(s+r)*t,(m+d)*n,(s+d)*t,(m+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m-d)*n,(s+d)*t,(m-r)*n,(s+r)*t,(m-d)*n)),d=.4,r=.4*h;var l=a(),u=a(),S=a(),P=a();i(s,m-d,s+r,m-d,s+d,m-r,s+d,m,.42,l,u,S,P,P);var w=a(),p=a(),f=a();i(s,m-d,s+r,m-d,s+d,m-r,s+d,m,.58,P,P,f,w,p);var v=a(),L=a(),x=a();i(s,m+d,s-r,m+d,s-d,m+r,s-d,m,.42,v,L,x,P,P);var y=a(),b=a(),j=a();return i(s,m+d,s-r,m+d,s-d,m+r,s-d,m,.58,P,P,j,y,b),c.add(new go.PathSegment(go.PathSegment.Move,j.x*t,j.y*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(s-d)*t,m*n,y.x*t,y.y*n,b.x*t,b.y*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m-d)*n,(s-d)*t,(m-r)*n,(s-r)*t,(m-d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,S.x*t,S.y*n,l.x*t,l.y*n,u.x*t,u.y*n)),c.add(new go.PathSegment(go.PathSegment.Line,j.x*t,j.y*n).close()),c.add(new go.PathSegment(go.PathSegment.Move,x.x*t,x.y*n)),c.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(s+d)*t,m*n,w.x*t,w.y*n,p.x*t,p.y*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m+d)*n,(s+d)*t,(m+r)*n,(s+r)*t,(m+d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,x.x*t,x.y*n,v.x*t,v.y*n,L.x*t,L.y*n).close()),o(l),o(u),o(S),o(P),o(w),o(p),o(f),o(v),o(L),o(x),o(y),o(b),o(j),g.defaultStretch=go.GraphObject.Uniform,g})),go.Shape.defineFigureGenerator("Fragile",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*t,0)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.29*t,.33*n)).add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.15*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.5*n,t,.25*n,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,n)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.5*n,0,.25*n).close()))})),go.Shape.setFigureParameter("HourGlass",0,new e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=30),a>t&&(a=t);var o=(t-a)/2,g=o+a;return(new go.Geometry).add(new go.PathFigure(g,.5*n).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)).add(new go.PathSegment(go.PathSegment.Line,o,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,t,0).close()))})),go.Shape.defineFigureGenerator("Lightning",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,.55*n).add(new go.PathSegment(go.PathSegment.Line,.6*t,0)).add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,t,.45*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n).close()))})),go.Shape.defineFigureGenerator("GenderMale",(function(e,t,g){var r=new go.Geometry,d=.4*h,s=.4,m=.5,c=.5,l=a(),u=a(),S=a(),P=a(),w=new go.PathFigure((m-s)*t,c*g,!1);r.add(w),w.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c-s)*g,(m-s)*t,(c-d)*g,(m-d)*t,(c-s)*g)),i(m,c-s,m+d,c-s,m+s,c-d,m+s,c,.44,S,P,u,l,l),w.add(new go.PathSegment(go.PathSegment.Bezier,u.x*t,u.y*g,S.x*t,S.y*g,P.x*t,P.y*g));var p=n(u.x,u.y);i(m,c-s,m+d,c-s,m+s,c-d,m+s,c,.56,l,l,u,S,P);var f=n(u.x,u.y);w.add(new go.PathSegment(go.PathSegment.Line,(.1*p.x+.855)*t,.1*p.y*g)),w.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*p.y*g)),w.add(new go.PathSegment(go.PathSegment.Line,.85*t,0)),w.add(new go.PathSegment(go.PathSegment.Line,t,0)),w.add(new go.PathSegment(go.PathSegment.Line,t,.15*g)),w.add(new go.PathSegment(go.PathSegment.Line,(.1*f.x+.9)*t,.15*g)),w.add(new go.PathSegment(go.PathSegment.Line,(.1*f.x+.9)*t,(.1*f.y+.05*.9)*g)),w.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(m+s)*t,c*g,S.x*t,S.y*g,P.x*t,P.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c+s)*g,(m+s)*t,(c+d)*g,(m+d)*t,(c+s)*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(m-s)*t,c*g,(m-d)*t,(c+s)*g,(m-s)*t,(c+d)*g)),s=.35,d=.35*h;var v=new go.PathFigure(m*t,(c-s)*g,!1);r.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,(m-s)*t,c*g,(m-d)*t,(c-s)*g,(m-s)*t,(c-d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c+s)*g,(m-s)*t,(c+d)*g,(m-d)*t,(c+s)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,(m+s)*t,c*g,(m+d)*t,(c+s)*g,(m+s)*t,(c+d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c-s)*g,(m+s)*t,(c-d)*g,(m+d)*t,(c-s)*g));var L=new go.PathFigure((m-s)*t,c*g,!1);return r.add(L),o(l),o(u),o(S),o(P),o(p),o(f),r.spot1=new go.Spot(.202,.257),r.spot2=new go.Spot(.792,.739),r.defaultStretch=go.GraphObject.Uniform,r})),go.Shape.defineFigureGenerator("GenderFemale",(function(e,t,n){var a=new go.Geometry,o=.375,g=0,i=-.125,r=o*h,d=new go.PathFigure((.525+g)*t,(.5+o+i)*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+g)*t,(.5+i)*n,(.5+r+g)*t,(.5+o+i)*n,(.5+o+g)*t,(.5+r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5-o+i)*n,(.5+o+g)*t,(.5-r+i)*n,(.5+r+g)*t,(.5-o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+g)*t,(.5+i)*n,(.5-r+g)*t,(.5-o+i)*n,(.5-o+g)*t,(.5-r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.475+g)*t,(.5+o+i)*n,(.5-o+g)*t,(.5+r+i)*n,(.5-r+g)*t,(.5+o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.425*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.425*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.475*t,n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.575*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.575*t,.85*n)),d.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n).close()),g=0,i=-.125,r=(o=.325)*h;d=new go.PathFigure((.5+o+g)*t,(.5+i)*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5+o+i)*n,(.5+o+g)*t,(.5+r+i)*n,(.5+r+g)*t,(.5+o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5-o+g)*t,(.5+i)*n,(.5-r+g)*t,(.5+o+i)*n,(.5-o+g)*t,(.5+r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+g)*t,(.5-o+i)*n,(.5-o+g)*t,(.5-r+i)*n,(.5-r+g)*t,(.5-o+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(.5+o+g)*t,(.5+i)*n,(.5+r+g)*t,(.5-o+i)*n,(.5+o+g)*t,(.5-r+i)*n));d=new go.PathFigure((.525+g)*t,(.5+o+i)*n,!1);return a.add(d),a.spot1=new go.Spot(.232,.136),a.spot2=new go.Spot(.682,.611),a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("LogicImplies",(function(e,t,n){var a=e?e.parameter1:NaN;return isNaN(a)&&(a=.2),(new go.Geometry).add(new go.PathFigure((1-a)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n))).setSpots(0,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicIff",(function(e,t,n){var a=e?e.parameter1:NaN;return isNaN(a)&&(a=.2),(new go.Geometry).add(new go.PathFigure((1-a)*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,(1-a)*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,a*t,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,a*t,n))).setSpots(.2,0,.8,.5)})),go.Shape.defineFigureGenerator("LogicNot",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)))})),go.Shape.defineFigureGenerator("LogicAnd",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.25,.5,.75,1)})),go.Shape.defineFigureGenerator("LogicOr",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0))).setSpots(.219,0,.78,.409)})),go.Shape.defineFigureGenerator("LogicXor",(function(e,t,n){var a=(new go.Geometry).add(new go.PathFigure(.5*t,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*t,.5*n,.5*t,.5*n)));return a.defaultStretch=go.GraphObject.Uniform,a})),go.Shape.defineFigureGenerator("LogicTruth",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.5*t,0)).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)))})),go.Shape.defineFigureGenerator("LogicFalsity",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Move,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,0)))})),go.Shape.defineFigureGenerator("LogicThereExists",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,0,.5*n)).add(new go.PathSegment(go.PathSegment.Move,t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n)))})),go.Shape.defineFigureGenerator("LogicForAll",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*t,n)).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n))).setSpots(.25,0,.75,.5)})),go.Shape.defineFigureGenerator("LogicIsDefinedAs",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*n)).add(new go.PathSegment(go.PathSegment.Line,t,.5*n)).add(new go.PathSegment(go.PathSegment.Move,0,n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(.01,.01,.99,.49)})),go.Shape.defineFigureGenerator("LogicIntersect",(function(e,t,n){var a=.5;return(new go.Geometry).add(new go.PathFigure(0,n,!1).add(new go.PathSegment(go.PathSegment.Line,0,a*n)).add(new go.PathSegment(go.PathSegment.Arc,180,180,a*t,a*n,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,t,n))).setSpots(0,.5,1,1)})),go.Shape.defineFigureGenerator("LogicUnion",(function(e,t,n){var a=.5;return(new go.Geometry).add(new go.PathFigure(t,0,!1).add(new go.PathSegment(go.PathSegment.Line,t,a*n)).add(new go.PathSegment(go.PathSegment.Arc,0,180,a*t,a*n,a*t,a*n)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)})),go.Shape.setFigureParameter("Arrow",0,new e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=e?e.parameter2:NaN;isNaN(r)&&(r=.3);var d=(1-i)*t,h=(.5-r/2)*n,s=(.5+r/2)*n,m=new go.Geometry,c=new go.PathFigure(0,h,!0);m.add(c),c.add(new go.PathSegment(go.PathSegment.Line,d,h)),c.add(new go.PathSegment(go.PathSegment.Line,d,0)),c.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,d,n)),c.add(new go.PathSegment(go.PathSegment.Line,d,s)),c.add(new go.PathSegment(go.PathSegment.Line,0,s).close()),m.spot1=new go.Spot(0,h/n);var l=g(0,s/n,1,s/n,d/t,1,1,.5,a());return m.spot2=new go.Spot(l.x,l.y),o(l),m})),go.Shape.setFigureParameter("Arrow2",0,new e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=30),i>t&&(i=t);var r=e?e.parameter2:NaN;isNaN(r)&&(r=30);var d=t-i,h=(n-(r=Math.min(r,n/2)))/2,s=h+r,m=new go.Geometry,c=new go.PathFigure(0,h,!0);m.add(c),c.add(new go.PathSegment(go.PathSegment.Line,d,h)),c.add(new go.PathSegment(go.PathSegment.Line,d,0)),c.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),c.add(new go.PathSegment(go.PathSegment.Line,d,n)),c.add(new go.PathSegment(go.PathSegment.Line,d,s)),c.add(new go.PathSegment(go.PathSegment.Line,0,s).close()),m.spot1=new go.Spot(0,h/n);var l=g(0,s/n,1,s/n,d/t,1,1,.5,a());return m.spot2=new go.Spot(l.x,l.y),o(l),m})),go.Shape.defineFigureGenerator("Chevron",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("DoubleArrow",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.214*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.786*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n).close()),a})),go.Shape.setFigureParameter("DoubleEndArrow",0,new e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=(.5-i/2)*n,d=(.5+i/2)*n,h=new go.Geometry,s=new go.PathFigure(t,.5*n,!0);h.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),s.add(new go.PathSegment(go.PathSegment.Line,.3*t,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close());var m=g(0,.5,.3,0,0,r/n,.1,r/n,a());return h.spot1=new go.Spot(m.x,m.y),m=g(.7,1,1,.5,0,d/n,1,d/n,m),h.spot2=new go.Spot(m.x,m.y),o(m),h})),go.Shape.setFigureParameter("DoubleEndArrow2",0,new e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=40);var r=e?e.parameter2:NaN;isNaN(r)&&(r=100);var d=(n-i)/2,h=d+i,s=(n-r)/2,m=s+r;(i>n||r>n)&&(r>i?(h=(d=(n-(i=i*n/r))/2)+i,s=0,m=n):(d=0,h=n,s=0,m=n));var c=new go.Geometry,l=new go.PathFigure(t,.5*n,!0);c.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,m)),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),l.add(new go.PathSegment(go.PathSegment.Line,.3*t,h)),l.add(new go.PathSegment(go.PathSegment.Line,.3*t,m)),l.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,.3*t,s)),l.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,s).close());var u=g(0,.5,.3,s/n,0,d/n,1,d/n,a());return c.spot1=new go.Spot(u.x,u.y),u=g(.7,m/n,1,.5,0,h/n,1,h/n,u),c.spot2=new go.Spot(u.x,u.y),o(u),c})),go.Shape.setFigureParameter("IBeamArrow",0,new e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=(.5-i/2)*n,d=(.5+i/2)*n,h=new go.Geometry,s=new go.PathFigure(t,.5*n,!0);h.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,0)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(0,r/n);var m=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(m.x,m.y),o(m),h})),go.Shape.setFigureParameter("IBeamArrow2",0,new e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=40);var r=e?e.parameter2:NaN;isNaN(r)&&(r=100);var d=(n-i)/2,h=d+i,s=(n-r)/2,m=s+r;(i>n||r>n)&&(r>i?(h=(d=(n-(i=i*n/r))/2)+i,s=0,m=n):(d=0,h=n,s=0,m=n));var c=new go.Geometry,l=new go.PathFigure(t,.5*n,!0);c.add(l),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,m)),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,h)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,h)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,m)),l.add(new go.PathSegment(go.PathSegment.Line,0,m)),l.add(new go.PathSegment(go.PathSegment.Line,0,s)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,s)),l.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),l.add(new go.PathSegment(go.PathSegment.Line,.7*t,s).close()),c.spot1=new go.Spot(0,d/n);var u=g(.7,m/n,1,.5,0,h/n,1,h/n,a());return c.spot2=new go.Spot(u.x,u.y),o(u),c})),go.Shape.setFigureParameter("Pointer",0,new e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.1);var r=new go.Geometry,d=new go.PathFigure(t,.5*n,!0);r.add(d),d.add(new go.PathSegment(go.PathSegment.Line,0,n)),d.add(new go.PathSegment(go.PathSegment.Line,i*t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),r.spot1=new go.Spot(i,.35);var h=g(.2,.65,1,.65,0,1,1,.5,a());return r.spot2=new go.Spot(h.x,h.y),o(h),r})),go.Shape.setFigureParameter("RoundedPointer",0,new e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.3);var r=new go.Geometry,d=new go.PathFigure(t,.5*n,!0);r.add(d),d.add(new go.PathSegment(go.PathSegment.Line,0,n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,0,i*t,.75*n,i*t,.25*n).close()),r.spot1=new go.Spot(i,.35);var h=g(0,.65,1,.65,0,1,1,.5,a());return r.spot2=new go.Spot(h.x,h.y),o(h),r})),go.Shape.setFigureParameter("SplitEndArrow",0,new e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=.4);var r=(.5-i/2)*n,d=(.5+i/2)*n,h=new go.Geometry,s=new go.PathFigure(t,.5*n,!0);h.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,0,d)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,0,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(.2,.3);var m=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(m.x,m.y),o(m),h})),go.Shape.setFigureParameter("SplitEndArrow2",0,new e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",(function(e,t,n){var i=e?e.parameter1:NaN;isNaN(i)&&(i=50);var r=(n-i)/2,d=r+i;i>n&&(r=0,d=n);var h=new go.Geometry,s=new go.PathFigure(t,.5*n,!0);h.add(s),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),s.add(new go.PathSegment(go.PathSegment.Line,0,d)),s.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Line,0,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),s.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),h.spot1=new go.Spot(.2,r/n);var m=g(.7,1,1,.5,0,d/n,1,d/n,a());return h.spot2=new go.Spot(m.x,m.y),o(m),h})),go.Shape.setFigureParameter("SquareArrow",0,new e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.7);var o=new go.Geometry,g=new go.PathFigure(t,.5*n,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,a*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,0)),g.add(new go.PathSegment(go.PathSegment.Line,a*t,0).close()),o.spot1=go.Spot.TopLeft,o.spot2=new go.Spot(a,1),o})),go.Shape.defineFigureGenerator("Cone1",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,i=new go.PathFigure(0,.9*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n).close()),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.97),a})),go.Shape.defineFigureGenerator("Cone2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.9*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,n,.85/.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.9*n).close());var g=new go.PathFigure(0,.9*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.9*n,(1-.85/.9)*t,.8*n,.85/.9*t,.8*n)),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.82),a})),go.Shape.defineFigureGenerator("Cube1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var g=new go.PathFigure(.5*t,n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.15*n)),g.add(new go.PathSegment(go.PathSegment.Move,.5*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(.5,.85),a})),go.Shape.defineFigureGenerator("Cube2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.3*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var g=new go.PathFigure(0,.3*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Move,.7*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(.7,1),a})),go.Shape.defineFigureGenerator("Cylinder1",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,n/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(0,a,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,h*a,(.5-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a,(.5+g)*t,0,1*t,h*a)),i.add(new go.PathSegment(go.PathSegment.Line,t,n-a)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,1*n,1*t,n-h*a,(.5+g)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,1*n,0,n-h*a)),i.add(new go.PathSegment(go.PathSegment.Line,0,a));var r=new go.PathFigure(t,a,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,2*a,1*t,2*a-h*a,(.5+g)*t,2*a)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,a,(.5-g)*t,2*a,0,2*a-h*a)),o.spot1=new go.Spot(0,0,0,2*a),o.spot2=new go.Spot(1,1),o})),go.Shape.defineFigureGenerator("Cylinder2",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,n/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(0,n-a,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Line,0,a)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,h*a,(.5-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,a,(.5+g)*t,0,t,h*a)),i.add(new go.PathSegment(go.PathSegment.Line,t,n-a)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,n-h*a,(.5+g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,n,0,n-h*a));var r=new go.PathFigure(0,n-a,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n-2*a,0,n-a-h*a,(.5-g)*t,n-2*a)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,n-a,(.5+g)*t,n-2*a,t,n-a-h*a)),o.spot1=new go.Spot(0,0),o.spot2=new go.Spot(1,1,0,-2*a),o})),go.Shape.defineFigureGenerator("Cylinder3",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,t/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(a,0,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t-a,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-h*a,0,t,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-h*a,n)),i.add(new go.PathSegment(go.PathSegment.Line,a,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,h*a,n,0,(.5+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,h*a,0));var r=new go.PathFigure(a,0,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,2*a,.5*n,a+h*a,0,2*a,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,n,2*a,(.5+g)*n,a+h*a,n)),o.spot1=new go.Spot(0,0,2*a,0),o.spot2=new go.Spot(1,1),o})),go.Shape.defineFigureGenerator("Cylinder4",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=5),a=Math.min(a,t/3);var o=new go.Geometry,g=.5*h,i=new go.PathFigure(t-a,0,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-h*a,0,t,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-h*a,n)),i.add(new go.PathSegment(go.PathSegment.Line,a,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,h*a,n,0,(.5+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,h*a,0)),i.add(new go.PathSegment(go.PathSegment.Line,t-a,0));var r=new go.PathFigure(t-a,0,!1);return o.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t-2*a,.5*n,t-a-h*a,0,t-2*a,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t-2*a,(.5+g)*n,t-a-h*a,n)),o.spot1=new go.Spot(0,0),o.spot2=new go.Spot(1,1,-2*a,0),o})),go.Shape.defineFigureGenerator("Prism1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,.25*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(.25*t,.25*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.408,.172),a.spot2=new go.Spot(.833,.662),a})),go.Shape.defineFigureGenerator("Prism2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.25*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(0,n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,.25*t,.5*n)),a.spot1=new go.Spot(.25,.5),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("Pyramid1",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n).close());var g=new go.PathFigure(.5*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.25,.367),a.spot2=new go.Spot(.75,.875),a})),go.Shape.defineFigureGenerator("Pyramid2",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n).close());var g=new go.PathFigure(.5*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),g.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),a.spot1=new go.Spot(.25,.367),a.spot2=new go.Spot(.75,.875),a})),go.Shape.defineFigureGenerator("Actor",(function(e,t,n){var a=new go.Geometry,o=.2,g=.1,i=h*o,r=h*g,d=.5,s=.1,m=new go.PathFigure(d*t,(s+g)*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,(d-o)*t,s*n,(d-i)*t,(s+g)*n,(d-o)*t,(s+r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s-g)*n,(d-o)*t,(s-r)*n,(d-i)*t,(s-g)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(d+o)*t,s*n,(d+i)*t,(s-g)*n,(d+o)*t,(s-r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s+g)*n,(d+o)*t,(s+r)*n,(d+i)*t,(s+g)*n));var c=.05,l=h*c;d=.05,s=.25;var u=new go.PathFigure(.5*t,.2*n,!0);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Line,.95*t,.2*n)),d=.95,s=.25,u.add(new go.PathSegment(go.PathSegment.Bezier,(d+c)*t,s*n,(d+l)*t,(s-c)*n,(d+c)*t,(s-l)*n)),u.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,.85*t,.35*n)),l=h*(c=.025),d=.825,s=.35,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s-c)*n,(d+c)*t,(s-l)*n,(d+l)*t,(s-c)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-c)*t,s*n,(d-l)*t,(s-c)*n,(d-c)*t,(s-l)*n)),u.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.55*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n)),l=h*(c=.05),d=.5,s=.7,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s-c)*n,(d+c)*t,(s-l)*n,(d+l)*t,(s-c)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-c)*t,s*n,(d-l)*t,(s-c)*n,(d-c)*t,(s-l)*n)),u.add(new go.PathSegment(go.PathSegment.Line,.45*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),u.add(new go.PathSegment(go.PathSegment.Line,.2*t,.35*n)),l=h*(c=.025),d=.175,s=.35,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s-c)*n,(d+c)*t,(s-l)*n,(d+l)*t,(s-c)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-c)*t,s*n,(d-l)*t,(s-c)*n,(d-c)*t,(s-l)*n)),u.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),u.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),l=h*(c=.05),d=.05,s=.25,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s-c)*n,(d-c)*t,(s-l)*n,(d-l)*t,(s-c)*n)),u.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),a.spot1=new go.Spot(.2,.2),a.spot2=new go.Spot(.8,.65),a})),go.Shape.setFigureParameter("Card",0,new e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",(function(e,t,n){var a=e?e.parameter1:NaN;isNaN(a)&&(a=.2);var o=new go.Geometry,g=new go.PathFigure(t,0,!0);return o.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,a*n)),g.add(new go.PathSegment(go.PathSegment.Line,a*t,0).close()),o.spot1=new go.Spot(0,a),o.spot2=go.Spot.BottomRight,o})),go.Shape.defineFigureGenerator("Collate",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n));var g=new go.PathFigure(.5*t,.5*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),a.spot1=new go.Spot(.25,0),a.spot2=new go.Spot(.75,.25),a})),go.Shape.defineFigureGenerator("CreateRequest",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(0,o*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),i.add(new go.PathSegment(go.PathSegment.Move,0,(1-o)*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,(1-o)*n)),a})),go.Shape.defineFigureGenerator("Database",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,i=new go.PathFigure(t,.1*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-g)*n,(.5-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+o)*t,0,t,(.1-g)*n));var r=new go.PathFigure(t,.1*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+g)*n,(.5+o)*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-o)*t,.2*n,0,(.1+g)*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+g)*n,(.5+o)*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-o)*t,.3*n,0,(.2+g)*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.4*n,t,(.3+g)*n,(.5+o)*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*n,(.5-o)*t,.4*n,0,(.3+g)*n)),a.spot1=new go.Spot(0,.4),a.spot2=new go.Spot(1,.9),a})),go.Shape.defineFigureGenerator("DataStorage",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.9*n,.25*t,.1*n).close()),a.spot1=new go.Spot(.226,0),a.spot2=new go.Spot(.81,1),a})),go.Shape.defineFigureGenerator("DiskStorage",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.1*h,i=new go.PathFigure(t,.1*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.9+g)*n,(.5+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,(.5-o)*t,n,0,(.9+g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,(.1-g)*n,(.5-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,(.5+o)*t,0,t,(.1-g)*n));var r=new go.PathFigure(t,.1*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,t,(.1+g)*n,(.5+o)*t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*n,(.5-o)*t,.2*n,0,(.1+g)*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,.2*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.3*n,t,(.2+g)*n,(.5+o)*t,.3*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*n,(.5-o)*t,.3*n,0,(.2+g)*n)),a.spot1=new go.Spot(0,.3),a.spot2=new go.Spot(1,.9),a})),go.Shape.defineFigureGenerator("Display",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,n,t,0,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close()),a.spot1=new go.Spot(.25,0),a.spot2=new go.Spot(.75,1),a})),go.Shape.defineFigureGenerator("DividedEvent",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)?o=.2:o<.15&&(o=.15);var g=.2*h,i=new go.PathFigure(0,.2*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,0,(.2-g)*n,(.2-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.2*n,(.8+g)*t,0,t,(.2-g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,n,t,(.8+g)*n,(.8+g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*n,(.2-g)*t,n,0,(.8+g)*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.2*n));var r=new go.PathFigure(0,o*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),a})),go.Shape.defineFigureGenerator("DividedProcess",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;(isNaN(o)||o<.1)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(0,o*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,o*n)),a})),go.Shape.defineFigureGenerator("Document",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(1,.6),a})),go.Shape.defineFigureGenerator("ExternalOrganization",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;(isNaN(o)||o<.2)&&(o=.2);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,0,o*n)),i.add(new go.PathSegment(go.PathSegment.Move,t,o*n)),i.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Move,0,(1-o)*n)),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),i.add(new go.PathSegment(go.PathSegment.Move,(1-o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,t,(1-o)*n)),a})),go.Shape.defineFigureGenerator("ExternalProcess",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var g=new go.PathFigure(.1*t,.4*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Move,.9*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Move,.6*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Move,.4*t,.9*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),a.spot1=new go.Spot(.25,.25),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("File",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(.75*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("Interrupt",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n));var g=new go.PathFigure(t,.5*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n));var i=new go.PathFigure(t,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,0)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("InternalStorage",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.1);var i=new go.PathFigure(0,0,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,0)),i.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var r=new go.PathFigure(o*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),r.add(new go.PathSegment(go.PathSegment.Move,0,g*n)),r.add(new go.PathSegment(go.PathSegment.Line,t,g*n)),a})),go.Shape.defineFigureGenerator("Junction",(function(e,t,n){var a=new go.Geometry,o=1/Math.SQRT2,g=(1-1/Math.SQRT2)/2,i=.5*h,r=.5,d=new go.PathFigure(t,r*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,n,t,(r+i)*n,(r+i)*t,n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,r*n,(r-i)*t,n,0,(r+i)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,r*t,0,0,(r-i)*n,(r-i)*t,0)),d.add(new go.PathSegment(go.PathSegment.Bezier,t,r*n,(r+i)*t,0,t,(r-i)*n));var s=new go.PathFigure((g+o)*t,(g+o)*n,!1);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Line,g*t,g*n)),s.add(new go.PathSegment(go.PathSegment.Move,g*t,(g+o)*n)),s.add(new go.PathSegment(go.PathSegment.Line,(g+o)*t,g*n)),a})),go.Shape.defineFigureGenerator("LinedDocument",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close());var g=new go.PathFigure(.1*t,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.75*n)),a.spot1=new go.Spot(.1,0),a.spot2=new go.Spot(1,.6),a})),go.Shape.defineFigureGenerator("LoopLimit",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("MagneticTape",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(.5*t,n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.9*n,t,(g+o)*n,(g+o)*t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),a.spot1=new go.Spot(.15,.15),a.spot2=new go.Spot(.85,.8),a})),go.Shape.defineFigureGenerator("ManualInput",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n).close()),a.spot1=new go.Spot(0,.25),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("MessageFromUser",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.7);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,o*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a})),go.Shape.defineFigureGenerator("MicroformProcessing",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.25);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,o*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,(1-o)*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("MicroformRecording",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(1,.75),a})),go.Shape.defineFigureGenerator("MultiDocument",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.44*n,.96*t,.47*n,.93*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.54*n,.86*t,.57*n,.83*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.4*t,.4*n,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,0).close());var g=new go.PathFigure(.1*t,.2*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.44*n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.8,.77),a})),go.Shape.defineFigureGenerator("MultiProcess",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,.1*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close());var g=new go.PathFigure(.2*t,.1*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Move,.1*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.9*n)),a.spot1=new go.Spot(0,.2),a.spot2=new go.Spot(.8,1),a})),go.Shape.defineFigureGenerator("OfflineStorage",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close());var i=new go.PathFigure(.5*o*t,o*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,(1-.5*o)*t,o*n)),a})),go.Shape.defineFigureGenerator("OffPageConnector",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(.75,1),a})),go.Shape.defineFigureGenerator("Or",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(t,g*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,n,t,(g+o)*n,(g+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n));var r=new go.PathFigure(t,.5*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),a})),go.Shape.defineFigureGenerator("PaperTape",(function(e,t,n){var a=new go.Geometry;n/=.8;var o=new go.PathFigure(0,.7*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.3*n,.5*t,.6*n,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*n,.5*t,.4*n,.5*t,n).close()),a.spot1=new go.Spot(0,.49),a.spot2=new go.Spot(1,.75),a})),go.Shape.defineFigureGenerator("PrimitiveFromCall",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.3);var i=new go.PathFigure(0,0,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,0)),i.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("PrimitiveToCall",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN,g=e?e.parameter2:NaN;isNaN(o)&&(o=.1),isNaN(g)&&(g=.3);var i=new go.PathFigure(0,0,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,(1-g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("Procedure",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure((1-o)*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Move,o*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),a})),go.Shape.defineFigureGenerator("Process",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),a.spot2=go.Spot.BottomRight,a})),go.Shape.defineFigureGenerator("Sort",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n).close());var g=new go.PathFigure(0,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),a.spot1=new go.Spot(.25,.25),a.spot2=new go.Spot(.75,.5),a})),go.Shape.defineFigureGenerator("Start",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.25);var g=new go.PathFigure(o*t,0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n));var i=new go.PathFigure(o*t,0,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,o*t,n)),i.add(new go.PathSegment(go.PathSegment.Move,(1-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,(1-o)*t,n)),a.spot1=new go.Spot(o,0),a.spot2=new go.Spot(1-o,1),a})),go.Shape.defineFigureGenerator("Terminator",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.25*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*t,.5*n,.25*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*t,.5*n,.25*t,.5*n)),a.spot1=new go.Spot(.23,0),a.spot2=new go.Spot(.77,1),a})),go.Shape.defineFigureGenerator("TransmittalTape",(function(e,t,n){var a=new go.Geometry,o=e?e.parameter1:NaN;isNaN(o)&&(o=.1);var g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,(1-o)*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,(1-o)*n).close()),a.spot1=go.Spot.TopLeft,a})),go.Shape.defineFigureGenerator("AndGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=new go.PathFigure(0,0,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.5+o)*t,0,t,(.5-o)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,(.5+o)*n,(.5+o)*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=go.Spot.TopLeft,a.spot2=new go.Spot(.55,1),a})),go.Shape.defineFigureGenerator("Buffer",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("Clock",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(t,g*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,n,t,(g+o)*n,(g+o)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,g*n,(g-o)*t,n,0,(g+o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0,0,(g-o)*n,(g-o)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,g*n,(g+o)*t,0,t,(g-o)*n));var r=new go.PathFigure(t,g*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,g*n));var d=new go.PathFigure(.8*t,.75*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.8*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.6*t,.75*n)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.75*n)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.75*n)),a})),go.Shape.defineFigureGenerator("Ground",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Move,.3*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),a})),go.Shape.defineFigureGenerator("Inverter",(function(e,t,n){var a=new go.Geometry,o=.1*h,g=.9,i=.5,r=new go.PathFigure(.8*t,.5*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,0,n)),r.add(new go.PathSegment(go.PathSegment.Line,0,0)),r.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n));var d=new go.PathFigure(1*t,i*n,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,g*t,.6*n,1*t,(i+o)*n,(g+o)*t,.6*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,i*n,(g-o)*t,.6*n,.8*t,(i+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,g*t,.4*n,.8*t,(i-o)*n,(g-o)*t,.4*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i*n,(g+o)*t,.4*n,1*t,(i-o)*n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.4,.75),a})),go.Shape.defineFigureGenerator("NandGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.4*h,i=.1*h,r=.9,d=.5,s=new go.PathFigure(.8*t,.5*n,!0);a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,.8*t,(.5+g)*n,(.4+o)*t,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,n)),s.add(new go.PathSegment(go.PathSegment.Line,0,0)),s.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),s.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(.4+o)*t,0,.8*t,(.5-g)*n));var m=new go.PathFigure(1*t,d*n,!0);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t,.6*n,1*t,(d+i)*n,(r+i)*t,.6*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,d*n,(r-i)*t,.6*n,.8*t,(d+i)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,r*t,.4*n,.8*t,(d-i)*n,(r-i)*t,.4*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,1*t,d*n,(r+i)*t,.4*n,1*t,(d-i)*n)),a.spot1=new go.Spot(0,.05),a.spot2=new go.Spot(.55,.95),a})),go.Shape.defineFigureGenerator("NorGate",(function(e,t,n){var a=new go.Geometry,o=.5,g=h*o,i=0,r=.5,d=new go.PathFigure(.8*t,.5*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.7*t,(r+g)*n,(i+g)*t,(r+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(i+g)*t,(r-o)*n,.7*t,(r-g)*n)),o=.1,g=.1*h,i=.9,r=.5;var s=new go.PathFigure((i-o)*t,r*n,!0);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n)),a.spot1=new go.Spot(.2,.25),a.spot2=new go.Spot(.6,.75),a})),go.Shape.defineFigureGenerator("OrGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(0,0,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(0+o+o)*t,0*n,.8*t,(g-o)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.8*t,(g+o)*n,(0+o+o)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*t,.75*n,.25*t,.25*n).close()),a.spot1=new go.Spot(.2,.25),a.spot2=new go.Spot(.75,.75),a})),go.Shape.defineFigureGenerator("XnorGate",(function(e,t,n){var a=new go.Geometry,o=.5,g=h*o,i=.2,r=.5,d=new go.PathFigure(.1*t,0,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var s=new go.PathFigure(.8*t,.5*n,!0);a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.7*t,(r+g)*n,(i+g)*t,(r+o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(i+g)*t,(r-o)*n,.7*t,(r-g)*n)),o=.1,g=.1*h,i=.9,r=.5;var m=new go.PathFigure((i-o)*t,r*n,!0);return a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n)),a.spot1=new go.Spot(.4,.25),a.spot2=new go.Spot(.65,.75),a})),go.Shape.defineFigureGenerator("XorGate",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=new go.PathFigure(.1*t,0,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,n,.35*t,.25*n,.35*t,.75*n));var r=new go.PathFigure(.2*t,0,!0);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,(.2+o)*t,0*n,.9*t,(g-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.9*t,(g+o)*n,(.2+o)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n).close()),a.spot1=new go.Spot(.4,.25),a.spot2=new go.Spot(.8,.75),a})),go.Shape.defineFigureGenerator("Capacitor",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("Resistor",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),a})),go.Shape.defineFigureGenerator("Inductor",(function(e,t,n){var a=new go.Geometry,o=.1*h,g=.1,i=.1,r=new go.PathFigure((i-.5*o)*t,n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.3,r.add(new go.PathSegment(go.PathSegment.Bezier,i*t,n,(i+g)*t,0,(i+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.5,r.add(new go.PathSegment(go.PathSegment.Bezier,i*t,n,(i+g)*t,0,(i+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.7,r.add(new go.PathSegment(go.PathSegment.Bezier,i*t,n,(i+g)*t,0,(i+o)*t,n)),r.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t,0,(i-o)*t,n,(i-g)*t,0)),i=.9,r.add(new go.PathSegment(go.PathSegment.Bezier,(i+.5*o)*t,n,(i+g)*t,0,(i+o)*t,n)),a})),go.Shape.defineFigureGenerator("ACvoltageSource",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=.5,r=new go.PathFigure(0*t,i*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0*n,0*t,(i-o)*n,(g-o)*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i*n,(g+o)*t,0*n,1*t,(i-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,1*n,1*t,(i+o)*n,(g+o)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0*t,i*n,(g-o)*t,1*n,0*t,(i+o)*n)),r.add(new go.PathSegment(go.PathSegment.Move,.1*t,i*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,i*n,g*t,0*n,g*t,1*n)),a})),go.Shape.defineFigureGenerator("DCvoltageSource",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.75*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("Diode",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a.spot1=new go.Spot(0,.25),a.spot2=new go.Spot(.5,.75),a})),go.Shape.defineFigureGenerator("Wifi",(function(e,t,n){var a=new go.Geometry,o=.8*h,g=.8,i=0,r=.5,d=(t-(t*=.38))/2,s=(n-(n*=.6))/2,m=new go.PathFigure(i*t+d,(r+g)*n+s,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+s,(i-o)*t+d,(r+g)*n+s,(i-g)*t+d,(r+o)*n+s)),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+s,(i-g)*t+d,(r-o)*n+s,(i-o)*t+d,(r-g)*n+s)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i-g+.5*o)*t+d,r*n+s,i*t+d,(r-g)*n+s,(i-g+.5*o)*t+d,(r-o)*n+s)),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+s,(i-g+.5*o)*t+d,(r+o)*n+s,i*t+d,(r+g)*n+s).close()),o=.4*h,g=.4,i=.2,r=.5;var c=new go.PathFigure(i*t+d,(r+g)*n+s,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+s,(i-o)*t+d,(r+g)*n+s,(i-g)*t+d,(r+o)*n+s)),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+s,(i-g)*t+d,(r-o)*n+s,(i-o)*t+d,(r-g)*n+s)),c.add(new go.PathSegment(go.PathSegment.Bezier,(i-g+.5*o)*t+d,r*n+s,i*t+d,(r-g)*n+s,(i-g+.5*o)*t+d,(r-o)*n+s)),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+s,(i-g+.5*o)*t+d,(r+o)*n+s,i*t+d,(r+g)*n+s).close()),o=.2*h,g=.2,i=.5,r=.5;var l=new go.PathFigure((i-g)*t+d,r*n+s,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+s,(i-g)*t+d,(r-o)*n+s,(i-o)*t+d,(r-g)*n+s)),l.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+s,(i+o)*t+d,(r-g)*n+s,(i+g)*t+d,(r-o)*n+s)),l.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+s,(i+g)*t+d,(r+o)*n+s,(i+o)*t+d,(r+g)*n+s)),l.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+s,(i-o)*t+d,(r+g)*n+s,(i-g)*t+d,(r+o)*n+s)),o=.4*h,g=.4,i=.8,r=.5;var u=new go.PathFigure(i*t+d,(r-g)*n+s,!0);a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+s,(i+o)*t+d,(r-g)*n+s,(i+g)*t+d,(r-o)*n+s)),u.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+s,(i+g)*t+d,(r+o)*n+s,(i+o)*t+d,(r+g)*n+s)),u.add(new go.PathSegment(go.PathSegment.Bezier,(i+g-.5*o)*t+d,r*n+s,i*t+d,(r+g)*n+s,(i+g-.5*o)*t+d,(r+o)*n+s)),u.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+s,(i+g-.5*o)*t+d,(r-o)*n+s,i*t+d,(r-g)*n+s).close()),o=.8*h,g=.8,i=1,r=.5;var S=new go.PathFigure(i*t+d,(r-g)*n+s,!0);return a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+s,(i+o)*t+d,(r-g)*n+s,(i+g)*t+d,(r-o)*n+s)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+s,(i+g)*t+d,(r+o)*n+s,(i+o)*t+d,(r+g)*n+s)),S.add(new go.PathSegment(go.PathSegment.Bezier,(i+g-.5*o)*t+d,r*n+s,i*t+d,(r+g)*n+s,(i+g-.5*o)*t+d,(r+o)*n+s)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+s,(i+g-.5*o)*t+d,(r-o)*n+s,i*t+d,(r-g)*n+s).close()),a})),go.Shape.defineFigureGenerator("Email",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,0,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,0)),g.add(new go.PathSegment(go.PathSegment.Move,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Move,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.55*t,.54*n)),a})),go.Shape.defineFigureGenerator("Ethernet",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.35*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,0).close());var g=new go.PathFigure(.1*t,n,!0,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var i=new go.PathFigure(.6*t,n,!0,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,n).close());var r=new go.PathFigure(0,.5*n,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),r.add(new go.PathSegment(go.PathSegment.Move,.75*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.75*t,.6*n)),r.add(new go.PathSegment(go.PathSegment.Move,.25*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.25*t,.6*n)),a})),go.Shape.defineFigureGenerator("Power",(function(e,t,g){var r=new go.Geometry,d=.4*h,s=.4,m=.5,c=.5,l=a(),u=a(),S=a(),P=a();i(m,c-s,m+d,c-s,m+s,c-d,m+s,c,.5,l,l,u,S,P);var w=n(u.x,u.y),p=new go.PathFigure(u.x*t,u.y*g,!0);r.add(p),p.add(new go.PathSegment(go.PathSegment.Bezier,(m+s)*t,c*g,S.x*t,S.y*g,P.x*t,P.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c+s)*g,(m+s)*t,(c+d)*g,(m+d)*t,(c+s)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(m-s)*t,c*g,(m-d)*t,(c+s)*g,(m-s)*t,(c+d)*g)),i(m-s,c,m-s,c-d,m-d,c-s,m,c-s,.5,S,P,u,l,l),p.add(new go.PathSegment(go.PathSegment.Bezier,u.x*t,u.y*g,S.x*t,S.y*g,P.x*t,P.y*g)),i(m-(s=.3),c,m-s,c-(d=.3*h),m-d,c-s,m,c-s,.5,S,P,u,l,l),p.add(new go.PathSegment(go.PathSegment.Line,u.x*t,u.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(m-s)*t,c*g,P.x*t,P.y*g,S.x*t,S.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c+s)*g,(m-s)*t,(c+d)*g,(m-d)*t,(c+s)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(m+s)*t,c*g,(m+d)*t,(c+s)*g,(m+s)*t,(c+d)*g)),i(m,c-s,m+d,c-s,m+s,c-d,m+s,c,.5,l,l,u,S,P),p.add(new go.PathSegment(go.PathSegment.Bezier,u.x*t,u.y*g,P.x*t,P.y*g,S.x*t,S.y*g).close());p=new go.PathFigure(.45*t,0,!0);return r.add(p),p.add(new go.PathSegment(go.PathSegment.Line,.45*t,.5*g)),p.add(new go.PathSegment(go.PathSegment.Line,.55*t,.5*g)),p.add(new go.PathSegment(go.PathSegment.Line,.55*t,0).close()),o(l),o(u),o(S),o(P),o(w),r.spot1=new go.Spot(.25,.45),r.spot2=new go.Spot(.75,.8),r})),go.Shape.defineFigureGenerator("Fallout",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n/2,!0);function g(e,a,o){e.add(new go.PathSegment(go.PathSegment.Move,(.3+a)*t,(.8+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.5+a)*t,(.5+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.1+a)*t,(.5+o)*n)),e.add(new go.PathSegment(go.PathSegment.Line,(.3+a)*t,(.8+o)*n).close())}return a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,180,360,t/2,n/2,t/2,n/2)),g(o,0,0),g(o,.4,0),g(o,.2,-.3),a})),go.Shape.defineFigureGenerator("IrritationHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.2*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close()),a.spot1=new go.Spot(.3,.3),a.spot2=new go.Spot(.7,.7),a})),go.Shape.defineFigureGenerator("ElectricalHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.37*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.11*n)),o.add(new go.PathSegment(go.PathSegment.Line,.77*t,.04*n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.49*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.37*n)),o.add(new go.PathSegment(go.PathSegment.Line,.63*t,.86*n)),o.add(new go.PathSegment(go.PathSegment.Line,.77*t,.91*n)),o.add(new go.PathSegment(go.PathSegment.Line,.34*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.34*t,.78*n)),o.add(new go.PathSegment(go.PathSegment.Line,.44*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.56*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.68*n).close()),a})),go.Shape.defineFigureGenerator("FireHazard",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.29*t,0,-.25*t,.63*n,.45*t,.44*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.51*t,.42*n,.48*t,.17*n,.54*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.59*t,.18*n,.59*t,.29*n,.58*t,.28*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.75*t,.6*n,.8*t,.34*n,.88*t,.43*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.88*t,.31*n,.87*t,.48*n,.88*t,.43*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,1.17*t,.76*n,.82*t,.8*n).close()),a.spot1=new go.Spot(.07,.445),a.spot2=new go.Spot(.884,.958),a})),go.Shape.defineFigureGenerator("BpmnActivityLoop",(function(e,t,n){var a=new go.Geometry,o=.5,g=o*h,i=.4*Math.SQRT2/2+.5,r=.5-.5*Math.SQRT2/2,d=new go.PathFigure(i*t,(1-r)*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,1*t,.5*n,1*t,.7*n,1*t,.5*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0*n,1*t,(.5-g+0)*n,(.5+g+0)*t,0*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,0*t,.5*n,(.5-g+0)*t,0*n,0*t,(.5-g+0)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.9*n,0*t,(.5+g+0)*n,(.5-g+0)*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Move,.25*t,.8*n)),d.add(new go.PathSegment(go.PathSegment.Line,.35*t,.9*n)),d.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),a})),go.Shape.defineFigureGenerator("BpmnActivityParallel",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("BpmnActivitySequential",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),a})),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(t,n,!1);a.add(g);var i=new go.PathFigure(0,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.2*t,.35*n,.3*t,.35*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.7*t,.65*n,.8*t,.65*n)),a})),go.Shape.defineFigureGenerator("BpmnActivityCompensation",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n).close()),a})),go.Shape.defineFigureGenerator("BpmnTaskMessage",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.2*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n).close());o=new go.PathFigure(0,.2*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),a})),go.Shape.defineFigureGenerator("BpmnTaskScript",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.7*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,0,.6*t,.5*n,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,n,.4*t,.5*n,t,.5*n).close());var g=new go.PathFigure(.45*t,.73*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.73*n)),g.add(new go.PathSegment(go.PathSegment.Move,.38*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.63*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Move,.31*t,.27*n)),g.add(new go.PathSegment(go.PathSegment.Line,.56*t,.27*n)),a})),go.Shape.defineFigureGenerator("BpmnTaskUser",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(.335*t,(1-.555)*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,t,.68*n,.88*t,.46*n,.98*t,.54*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.68*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.335*t,(1-.555)*n,.02*t,.54*n,.12*t,.46*n)),g.add(new go.PathSegment(go.PathSegment.Line,.365*t,.405*n));var i=.5-.285,r=.5,d=i,h=Math.PI/4,s=4*(1-Math.cos(h))/(3*Math.sin(h)),m=i,c=i,l=s*m,u=s*c;g.add(new go.PathSegment(go.PathSegment.Bezier,.285*t,d*n,(r-(l+m)/2)*t,(d+(c+u)/2)*n,.285*t,(d+u)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,r*t,0*n,.285*t,(d-u)*n,(r-l)*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(r+m)*t,d*n,(r+l)*t,0*n,(r+m)*t,(d-u)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.635*t,.405*n,(r+m)*t,(d+u)*n,(r+(l+m)/2)*t,(d+(c+u)/2)*n)),g.add(new go.PathSegment(go.PathSegment.Line,.635*t,.405*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,(1-.555)*n)),g.add(new go.PathSegment(go.PathSegment.Line,.665*t,.595*n)),g.add(new go.PathSegment(go.PathSegment.Line,.335*t,.595*n));var S=new go.PathFigure(.2*t,n,!1);a.add(S),S.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n));var P=new go.PathFigure(.8*t,n,!1);return a.add(P),P.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),a})),go.Shape.defineFigureGenerator("BpmnEventConditional",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,n).close());var g=new go.PathFigure(.2*t,.2*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.8*n)),a})),go.Shape.defineFigureGenerator("BpmnEventError",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("BpmnEventEscalation",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o);var g=new go.PathFigure(t,n,!1);a.add(g);var i=new go.PathFigure(.1*t,n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n).close()),a})),go.Shape.defineFigureGenerator("Caution",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.05*t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.8*n,0,n,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.55*t,.1*n,.5*t,0,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.95*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,n,t,n,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,n));var g=.05;return o.add(new go.PathSegment(go.PathSegment.Move,.45*t,.875*n)),o.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*t,.875*n,g*t,g*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.325*n,.575*t,.725*n,.625*t,.375*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.75*n,.375*t,.375*n,.425*t,.725*n)),a})),go.Shape.defineFigureGenerator("Recycle",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.45*t,.95*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.185*t,.85*n,.17*t,.95*n,.15*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.235*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.625*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.275*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.05*t,.575*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.1875*t,.95*n,0,.675*n,0,.7*n)),o.add(new go.PathSegment(go.PathSegment.Move,.45*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.775*n)),o.add(new go.PathSegment(go.PathSegment.Line,.22*t,.775*n));var g=new go.PathFigure(.475*t,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.225*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.175*n)),g.add(new go.PathSegment(go.PathSegment.Line,.325*t,.05*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,.05*n,.35*t,0,.375*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.575*t,.375*n)),g.add(new go.PathSegment(go.PathSegment.Line,.525*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,.475*n)),g.add(new go.PathSegment(go.PathSegment.Line,.85*t,.315*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.65*t,.05*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,0,.65*t,.05*n,.625*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.0105*n));var i=new go.PathFigure(.675*t,.575*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.875*t,.525*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,.85*t,.95*n,t,.8*n,t,.85*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,.95*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.85*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,.725*n)),i.add(new go.PathSegment(go.PathSegment.Line,.65*t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Line,.7*t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Line,t,.775*n)),i.add(new go.PathSegment(go.PathSegment.Move,.675*t,.575*n)),i.add(new go.PathSegment(go.PathSegment.Line,.775*t,.775*n)),a})),go.Shape.defineFigureGenerator("BpmnEventTimer",(function(e,t,n){var a=new go.Geometry,o=.5,g=.5*h,i=new go.PathFigure(t,o*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,o*t,n,t,(o+g)*n,(o+g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,o*n,(o-g)*t,n,0,(o+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,o*t,0,0,(o-g)*n,(o-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,o*n,(o+g)*t,0,t,(o-g)*n));var r=new go.PathFigure(o*t,0,!1);return a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,o*t,.15*n)),r.add(new go.PathSegment(go.PathSegment.Move,o*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,o*t,.85*n)),r.add(new go.PathSegment(go.PathSegment.Move,0,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.15*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,t,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.85*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Move,o*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.58*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Move,o*t,o*n)),r.add(new go.PathSegment(go.PathSegment.Line,.78*t,.54*n)),a})),go.Shape.defineFigureGenerator("Package",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.15*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close());var g=new go.PathFigure(0,.15*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,0,0)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.65*t,.15*n).close()),a.spot1=new go.Spot(0,.1),a.spot2=new go.Spot(1,1),a})),go.Shape.defineFigureGenerator("Class",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var i=new go.PathFigure(0,.5*n,!1);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,t,.5*n).close()),a})),go.Shape.defineFigureGenerator("Component",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close());var g=new go.PathFigure(0,.2*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.2*n)),g.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.2*n).close());var i=new go.PathFigure(0,.6*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.6*n)),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,0,.6*n).close()),a})),go.Shape.defineFigureGenerator("Boat Shipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,.6*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.6*n));var g=new go.PathFigure(.15*t,.6*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.85*t,.6*n)),a})),go.Shape.defineFigureGenerator("Customer/Supplier",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,.33*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a})),go.Shape.defineFigureGenerator("Workcell",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),a})),go.Shape.defineFigureGenerator("Supermarket",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.33*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,.33*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.66*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.66*n)),o.add(new go.PathSegment(go.PathSegment.Move,t,.66*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),a})),go.Shape.defineFigureGenerator("TruckShipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(t,.8*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,.6*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.8*n).close());var i=.1,r=.1*h,d=.2,s=.9,m=new go.PathFigure((d-i)*t,s*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s-i)*n,(d-i)*t,(s-r)*n,(d-r)*t,(s-i)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(d+i)*t,s*n,(d+r)*t,(s-i)*n,(d+i)*t,(s-r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s+i)*n,(d+i)*t,(s+r)*n,(d+r)*t,(s+i)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(d-i)*t,s*n,(d-r)*t,(s+i)*n,(d-i)*t,(s+r)*n).close()),i=.1,r=.1*h,d=.8,s=.9;var c=new go.PathFigure((d-i)*t,s*n,!0);return a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s-i)*n,(d-i)*t,(s-r)*n,(d-r)*t,(s-i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(d+i)*t,s*n,(d+r)*t,(s-i)*n,(d+i)*t,(s-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(s+i)*n,(d+i)*t,(s+r)*n,(d+r)*t,(s+i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(d-i)*t,s*n,(d-r)*t,(s+i)*n,(d-i)*t,(s+r)*n).close()),a})),go.Shape.defineFigureGenerator("KanbanPost",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.2*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,n)),a})),go.Shape.defineFigureGenerator("Forklift",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0));var g=new go.PathFigure(0,.5*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var i=new go.PathFigure(.5*t,.8*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.8*n));var r=new go.PathFigure(.5*t,.7*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t,.7*n));var d=.1,s=.1*h,m=.1,c=.9,l=new go.PathFigure((m-d)*t,c*n,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c-d)*n,(m-d)*t,(c-s)*n,(m-s)*t,(c-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,c*n,(m+s)*t,(c-d)*n,(m+d)*t,(c-s)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c+d)*n,(m+d)*t,(c+s)*n,(m+s)*t,(c+d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,c*n,(m-s)*t,(c+d)*n,(m-d)*t,(c+s)*n)),d=.1,s=.1*h,m=.4,c=.9;var u=new go.PathFigure((m-d)*t,c*n,!0);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c-d)*n,(m-d)*t,(c-s)*n,(m-s)*t,(c-d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(m+d)*t,c*n,(m+s)*t,(c-d)*n,(m+d)*t,(c-s)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,m*t,(c+d)*n,(m+d)*t,(c+s)*n,(m+s)*t,(c+d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(m-d)*t,c*n,(m-s)*t,(c+d)*n,(m-d)*t,(c+s)*n)),a})),go.Shape.defineFigureGenerator("RailShipment",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.1*t,.4*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.4*n).close());var g=new go.PathFigure(.45*t,.7*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.55*t,.7*n));var i=new go.PathFigure(.55*t,.4*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),i.add(new go.PathSegment(go.PathSegment.Line,.9*t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.9*n)),i.add(new go.PathSegment(go.PathSegment.Line,.55*t,.4*n).close());var r=.05,d=.05*h,s=.175,m=.95,c=new go.PathFigure((s-r)*t,m*n,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m-r)*n,(s-r)*t,(m-d)*n,(s-d)*t,(m-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(s+r)*t,m*n,(s+d)*t,(m-r)*n,(s+r)*t,(m-d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m+r)*n,(s+r)*t,(m+d)*n,(s+d)*t,(m+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(s-r)*t,m*n,(s-d)*t,(m+r)*n,(s-r)*t,(m+d)*n));r=.05,d=.05*h,s=.375,m=.95;var l=new go.PathFigure((s-r)*t,m*n,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m-r)*n,(s-r)*t,(m-d)*n,(s-d)*t,(m-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(s+r)*t,m*n,(s+d)*t,(m-r)*n,(s+r)*t,(m-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m+r)*n,(s+r)*t,(m+d)*n,(s+d)*t,(m+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(s-r)*t,m*n,(s-d)*t,(m+r)*n,(s-r)*t,(m+d)*n));r=.05,d=.05*h,s=.625,m=.95;var u=new go.PathFigure((s-r)*t,m*n,!0);a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m-r)*n,(s-r)*t,(m-d)*n,(s-d)*t,(m-r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(s+r)*t,m*n,(s+d)*t,(m-r)*n,(s+r)*t,(m-d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m+r)*n,(s+r)*t,(m+d)*n,(s+d)*t,(m+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(s-r)*t,m*n,(s-d)*t,(m+r)*n,(s-r)*t,(m+d)*n));r=.05,d=.05*h,s=.825,m=.95;var S=new go.PathFigure((s-r)*t,m*n,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m-r)*n,(s-r)*t,(m-d)*n,(s-d)*t,(m-r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(s+r)*t,m*n,(s+d)*t,(m-r)*n,(s+r)*t,(m-d)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m+r)*n,(s+r)*t,(m+d)*n,(s+d)*t,(m+r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(s-r)*t,m*n,(s-d)*t,(m+r)*n,(s-r)*t,(m+d)*n).close());var P=new go.PathFigure(0,n,!1);return a.add(P),P.add(new go.PathSegment(go.PathSegment.Line,t,n).close()),a})),go.Shape.defineFigureGenerator("Warehouse",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var g=new go.PathFigure(0,.2*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.2*n).close());var i=new go.PathFigure(.15*t,n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.15*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.5*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,n)),i.add(new go.PathSegment(go.PathSegment.Line,.15*t,n).close());var r=.05,d=.05*h,s=.35,m=.775,c=new go.PathFigure(.3*t,m*n,!0);return a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,.725*n,.3*t,(m-d)*n,(s-d)*t,.725*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(s+r)*t,m*n,(s+d)*t,.725*n,(s+r)*t,(m-d)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,s*t,(m+r)*n,(s+r)*t,(m+d)*n,(s+d)*t,(m+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,m*n,(s-d)*t,(m+r)*n,.3*t,(m+d)*n).close()),a})),go.Shape.defineFigureGenerator("ControlCenter",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n).close()),a})),go.Shape.defineFigureGenerator("Bluetooth",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.75*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.25*n)),a})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),a})),go.Shape.defineFigureGenerator("Bookmark",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),o.add(new go.PathSegment(go.PathSegment.Line,0,0)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Move,.2*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),a})),go.Shape.defineFigureGenerator("Globe",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,.75*t,0,t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,t,.75*n,.75*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.25*t,n,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,.25*n,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,n,.15*t,.25*n,.15*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.85*t,.75*n,.85*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.15*n,.35*t,.3*n,.65*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Move,.1675*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8325*t,.85*n,.35*t,.7*n,.65*t,.7*n)),a})),go.Shape.defineFigureGenerator("Wave",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.25*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.25*n,.1*t,0,.2*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.25*n,.425*t,.5*n,.575*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.25*n,.8*t,0,.9*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.75*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.75*n,.1*t,.5*n,.2*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.7*t,.75*n,.425*t,n,.575*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.75*n,.8*t,.5*n,.9*t,.5*n)),a})),go.Shape.defineFigureGenerator("Operator",(function(e,t,n){var a=new go.Geometry,o=.3,g=.3*h,i=.5,r=.7,d=new go.PathFigure(.2*t,r*n,!0);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,.2*t,(r-g)*n,(i-g)*t,(r-o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,r*n,(i+g)*t,(r-o)*n,.8*t,(r-g)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,1*n,.8*t,(r+g)*n,(i+g)*t,1*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,r*n,(i-g)*t,1*n,.2*t,(r+g)*n));var s=new go.PathFigure(0,.7*n,!1);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,t,.7*n,0,0,t,0)),a})),go.Shape.defineFigureGenerator("TripleFanBlades",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.65*t,.3*n,.65*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.35*t,.5*n,.35*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,n,.3*t,.6*n,.1*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.2*t,n,.35*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,n,.7*t,.6*n,.9*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.65*n,.8*t,n,.65*t,.95*n)),a})),go.Shape.defineFigureGenerator("CentrifugalPump",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(t,0,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,0,.075*n,0,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,0,n,.4*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.4*n,.8*t,n,.85*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,0)),a})),go.Shape.defineFigureGenerator("Battery",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,.4*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.1*n));var g=new go.PathFigure(0,.6*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,0,.4*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,.4*n)),a})),go.Shape.defineFigureGenerator("Delete",(function(e,t,n){var a=new go.Geometry,o=.5*h,g=.5,i=.5,r=new go.PathFigure(0*t,i*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,0*n,0*t,(i-o)*n,(g-o)*t,0*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,1*t,i*n,(g+o)*t,0*n,1*t,(i-o)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,g*t,1*n,1*t,(i+o)*n,(g+o)*t,1*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,0*t,i*n,(g-o)*t,1*n,0*t,(i+o)*n));var d=new go.PathFigure(.15*t,.5*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.85*t,.5*n)),a})),go.Shape.defineFigureGenerator("Flag",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.1*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Move,0,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.1*n,.15*t,0,.35*t,0)),o.add(new go.PathSegment(go.PathSegment.Bezier,t,.1*n,.65*t,.2*n,.85*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.5*n,.85*t,.6*n,.65*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,.35*t,.4*n,.15*t,.4*n).close()),a})),go.Shape.defineFigureGenerator("Help",(function(e,t,n){var a=new go.Geometry,o=.5,g=.5*h,i=.5,r=.5,d=new go.PathFigure((i-o)*t,r*n,!1);a.add(d),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),d.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n).close()),o=.05,g=.05*h,i=.5,r=.8;var s=new go.PathFigure((i-o)*t,r*n,!1);return a.add(s),s.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,(i-o)*t,r*n,(i-g)*t,(r+o)*n,(i-o)*t,(r+g)*n).close()),s.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),s.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,.75*t,.475*n,.75*t,.225*n)),s.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.35*n,.4*t,.2*n,.3*t,.25*n)),a})),go.Shape.defineFigureGenerator("Location",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.5*t,n,!0).add(new go.PathSegment(go.PathSegment.Line,.75*t,.5*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,.975*t,.025*n,.5*t,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*t,.5*n,.5*t,0,.025*t,.025*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*t,.3*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Lock",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var g=new go.PathFigure(.2*t,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.3*n)),a})),go.Shape.defineFigureGenerator("Unlocked",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.5*n));var g=new go.PathFigure(.2*t,.5*n,!1);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Move,.2*t,.5*n)),g.add(new go.PathSegment(go.PathSegment.Line,.2*t,.3*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.3*n,.25*t,0,.75*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.35*n)),a})),go.Shape.defineFigureGenerator("Gear",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(.9375*t,.56246875*n,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.80621875*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.763*t,.3316875*n,.79840625*t,.39915625*n,.7834375*t,.3635*n)).add(new go.PathSegment(go.PathSegment.Line,.8566875*t,.23796875*n)).add(new go.PathSegment(go.PathSegment.Line,.76825*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.67596875*t,.24184375*n)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*t,.19378125*n,.64228125*t,.2188125*n,.603875*t,.2021875*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.0625*n)).add(new go.PathSegment(go.PathSegment.Line,.4375*t,.19378125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*t,.239375*n,.39759375*t,.20190625*n,.36053125*t,.2176875*n)).add(new go.PathSegment(go.PathSegment.Line,.2379375*t,.14959375*n)).add(new go.PathSegment(go.PathSegment.Line,.14953125*t,.2379375*n)).add(new go.PathSegment(go.PathSegment.Line,.23934375*t,.3278125*n)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*t,.4375*n,.21765625*t,.36059375*n,.201875*t,.397625*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.4375*n)).add(new go.PathSegment(go.PathSegment.Line,.0625*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Line,.1938125*t,.5625*n)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*t,.67596875*n,.20221875*t,.603875*n,.21884375*t,.64228125*n)).add(new go.PathSegment(go.PathSegment.Line,.1495625*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.238*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.3316875*t,.76296875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*t,.80621875*n,.36353125*t,.78340625*n,.3991875*t,.79840625*n)).add(new go.PathSegment(go.PathSegment.Line,.43753125*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.9375*n)).add(new go.PathSegment(go.PathSegment.Line,.5625*t,.80621875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*t,.760625*n,.602375*t,.79809375*n,.63946875*t,.78234375*n)).add(new go.PathSegment(go.PathSegment.Line,.76828125*t,.8566875*n)).add(new go.PathSegment(go.PathSegment.Line,.85671875*t,.76825*n)).add(new go.PathSegment(go.PathSegment.Line,.76065625*t,.67221875*n)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*t,.56246875*n,.78234375*t,.63940625*n,.798125*t,.602375*n)).add(new go.PathSegment(go.PathSegment.Line,.9375*t,.56246875*n).close()).add(new go.PathSegment(go.PathSegment.Move,.5*t,.6*n)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*t,.5*n,.1*t,.1*n).close()))})),go.Shape.defineFigureGenerator("Hand",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Bezier,.1*t,.3*n,0,.375*n,.05*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.45*t,.075*n,.3*t,.225*n,.4*t,.175*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.525*t,.075*n,.46*t,.05*n,.525*t,.05*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,.4*n,.525*t,.275*n,.475*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.55*n,t,.4*n,t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.425*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.6*t,.7*n,.675*t,.55*n,.675*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.575*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.575*t,.85*n,.65*t,.7*n,.65*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.525*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.535*t,n,.61*t,.85*n,.61*t,n)),o.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*n,.435*t,n,0,n).close()),a})),go.Shape.defineFigureGenerator("Map",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,.2*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,n).close()),o.add(new go.PathSegment(go.PathSegment.Move,.25*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Move,.5*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,n)),o.add(new go.PathSegment(go.PathSegment.Move,.75*t,0)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.8*n)),a})),go.Shape.defineFigureGenerator("Eject",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,t,n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.7*n).close());var g=new go.PathFigure(0,.6*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,.6*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,0).close()),a})),go.Shape.defineFigureGenerator("Pencil",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.2*n).close()))})),go.Shape.defineFigureGenerator("Building",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(1*t,1*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.046*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.3*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.954*t,.85*n)),o.add(new go.PathSegment(go.PathSegment.Line,t,.85*n).close());var g=new go.PathFigure(.126*t,.85*n,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.126*t,.45*n)),g.add(new go.PathSegment(go.PathSegment.Line,.322*t,.45*n)),g.add(new go.PathSegment(go.PathSegment.Line,.322*t,.85*n).close());var i=new go.PathFigure(.402*t,.85*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.402*t,.45*n)),i.add(new go.PathSegment(go.PathSegment.Line,.598*t,.45*n)),i.add(new go.PathSegment(go.PathSegment.Line,.598*t,.85*n).close());var r=new go.PathFigure(.678*t,.85*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.678*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.874*t,.45*n)),r.add(new go.PathSegment(go.PathSegment.Line,.874*t,.85*n).close());var d=new go.PathFigure(.5*t,.1*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.196*t,.3*n)),d.add(new go.PathSegment(go.PathSegment.Line,.804*t,.3*n).close()),a})),go.Shape.defineFigureGenerator("Staircase",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,1*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.15*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.95*n).close()),a})),go.Shape.defineFigureGenerator("5Bars",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,1*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.184*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.184*t,n*(1-.184)).close());var g=new go.PathFigure(.204*t,n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.204*t,n*(1-.184))),g.add(new go.PathSegment(go.PathSegment.Line,.388*t,.632*n)),g.add(new go.PathSegment(go.PathSegment.Line,.388*t,1*n).close());var i=new go.PathFigure(.408*t,n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.408*t,.632*n)),i.add(new go.PathSegment(go.PathSegment.Line,.592*t,n*(1-.552))),i.add(new go.PathSegment(go.PathSegment.Line,.592*t,1*n).close());var r=new go.PathFigure(.612*t,n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.612*t,n*(1-.552))),r.add(new go.PathSegment(go.PathSegment.Line,.796*t,.264*n)),r.add(new go.PathSegment(go.PathSegment.Line,.796*t,1*n).close());var d=new go.PathFigure(.816*t,n,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.816*t,.264*n)),d.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-.184*5))),d.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n).close()),a})),go.Shape.defineFigureGenerator("PC",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,0).close());var g=new go.PathFigure(.055*t,.07*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.245*t,.07*n)),g.add(new go.PathSegment(go.PathSegment.Line,.245*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.055*t,.1*n).close());var i=new go.PathFigure(.055*t,.13*n,!0);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.245*t,.13*n)),i.add(new go.PathSegment(go.PathSegment.Line,.245*t,.16*n)),i.add(new go.PathSegment(go.PathSegment.Line,.055*t,.16*n).close());var r=new go.PathFigure(.055*t,.18*n,!0);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.18*n)),r.add(new go.PathSegment(go.PathSegment.Line,.245*t,.21*n)),r.add(new go.PathSegment(go.PathSegment.Line,.055*t,.21*n).close());var d=new go.PathFigure(1*t,0,!0);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),d.add(new go.PathSegment(go.PathSegment.Line,.4*t,.65*n)),d.add(new go.PathSegment(go.PathSegment.Line,1*t,.65*n).close()),a})),go.Shape.defineFigureGenerator("Plane",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.55*t,n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.7*n)),o.add(new go.PathSegment(go.PathSegment.Line,.1*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.35*t,.525*n,0,.4*n,.225*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.4*t,.475*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.325*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Bezier,.9*t,.2*n,.975*t,0,t,.08*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,n).close()),a})),go.Shape.defineFigureGenerator("Key",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(1*t,.5*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.4*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.2*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,0,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.15*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.8*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,.6*n)),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,.575*n)),o.add(new go.PathSegment(go.PathSegment.Line,.9*t,.6*n).close()),o.add(new go.PathSegment(go.PathSegment.Move,.17*t,.425*n)),o.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*t,.5*n,.075*t,.075*n).close()),a})),go.Shape.defineFigureGenerator("FilmTape",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0,0,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Arc,270,180,0*t,.3*t,.055*t)),o.add(new go.PathSegment(go.PathSegment.Line,0,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.08*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.08*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.136*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.136*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.192*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.192*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.248*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.248*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.304*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.304*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.28),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.336),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.392),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.528*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.528*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.584*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.584*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.696*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,.696*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.752*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.752*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.728),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.864*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.864*t,.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),.95*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(.08+.84),1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var g=new go.PathFigure(0,0,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,1*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Arc,270,-180,1*t,.3*t,.055*t)),g.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n));var i=new go.PathFigure(.11*t,.1*n,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.1*n)),i.add(new go.PathSegment(go.PathSegment.Line,.35133333*t,.8*n)),i.add(new go.PathSegment(go.PathSegment.Line,.11*t,.8*n).close());var r=new go.PathFigure(.37933333*t,.1*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.1*n)),r.add(new go.PathSegment(go.PathSegment.Line,.62066666*t,.8*n)),r.add(new go.PathSegment(go.PathSegment.Line,.37933333*t,.8*n).close());var d=new go.PathFigure(t*(.59266666+.056),.1*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.1*n)),d.add(new go.PathSegment(go.PathSegment.Line,t*(.83399999+.056),.8*n)),d.add(new go.PathSegment(go.PathSegment.Line,t*(.59266666+.056),.8*n).close()),a})),go.Shape.defineFigureGenerator("FloppyDisk",(function(e,t,n){var a=new go.Geometry,o=8*h,g=new go.PathFigure(8,0,!1);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.86*t,0)),g.add(new go.PathSegment(go.PathSegment.Line,1*t,.14*n)),g.add(new go.PathSegment(go.PathSegment.Line,t,n-8)),g.add(new go.PathSegment(go.PathSegment.Bezier,t-8,n,t,n-o,t-o,n)),g.add(new go.PathSegment(go.PathSegment.Line,8,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,n-8,o,n,0,n-o)),g.add(new go.PathSegment(go.PathSegment.Line,0,8)),g.add(new go.PathSegment(go.PathSegment.Bezier,8,0,0,o,o,0).close());var i=new go.PathFigure(.83*t,0,!1);a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.83*t,.3*n)),i.add(new go.PathSegment(go.PathSegment.Line,.17*t,.3*n)),i.add(new go.PathSegment(go.PathSegment.Line,.17*t,0*n).close());var r=new go.PathFigure(.83*t,1*n,!1);a.add(r),r.add(new go.PathSegment(go.PathSegment.Line,.83*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.17*t,.5*n)),r.add(new go.PathSegment(go.PathSegment.Line,.17*t,1*n).close());var d=new go.PathFigure(.78*t,.05*n,!1);return a.add(d),d.add(new go.PathSegment(go.PathSegment.Line,.66*t,.05*n)),d.add(new go.PathSegment(go.PathSegment.Line,.66*t,.25*n)),d.add(new go.PathSegment(go.PathSegment.Line,.78*t,.25*n).close()),a})),go.Shape.defineFigureGenerator("SpeechBubble",(function(e,t,n){var a=e?e.parameter1:NaN;(isNaN(a)||a<0)&&(a=15),a=Math.min(a,t/3);var o=(a=Math.min(a,n/3))*h,g=.8*n,i=new go.Geometry,r=new go.PathFigure(a,0,!0);return i.add(r),r.add(new go.PathSegment(go.PathSegment.Line,t-a,0)),r.add(new go.PathSegment(go.PathSegment.Bezier,t,a,t-o,0,t,o)),r.add(new go.PathSegment(go.PathSegment.Line,t,g-a)),r.add(new go.PathSegment(go.PathSegment.Bezier,t-a,g,t,g-o,t-o,g)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,g)),r.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),r.add(new go.PathSegment(go.PathSegment.Line,.55*t,g)),r.add(new go.PathSegment(go.PathSegment.Line,a,g)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,g-a,o,g,0,g-o)),r.add(new go.PathSegment(go.PathSegment.Line,0,a)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,o,o,0).close()),o>1?(i.spot1=new go.Spot(0,0,o,o),i.spot2=new go.Spot(1,.8,-o,-o)):(i.spot1=go.Spot.TopLeft,i.spot2=new go.Spot(1,.8)),i})),go.Shape.defineFigureGenerator("Repeat",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,.45*n,!0);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.6*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.2*t,.45*n).close());var g=new go.PathFigure(1*t,.55*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.75*t,1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.5*t,.55*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.55*n)),g.add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.4*t,.1*n)),g.add(new go.PathSegment(go.PathSegment.Line,.35*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.8*t,.55*n).close()),a})),go.Shape.defineFigureGenerator("Windows",(function(e,t,n){return(new go.Geometry).add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,t,0)).add(new go.PathSegment(go.PathSegment.Line,t,n)).add(new go.PathSegment(go.PathSegment.Line,0,n).close()).add(new go.PathSegment(go.PathSegment.Move,.4*t,.4*n)).add(new go.PathSegment(go.PathSegment.Line,.4*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.8*n)).add(new go.PathSegment(go.PathSegment.Line,.9*t,.4*n).close()).add(new go.PathSegment(go.PathSegment.Move,.2*t,.1*n)).add(new go.PathSegment(go.PathSegment.Line,.2*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.7*t,.1*n).close()).add(new go.PathSegment(go.PathSegment.Move,.1*t,.6*n)).add(new go.PathSegment(go.PathSegment.Line,.1*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.9*n)).add(new go.PathSegment(go.PathSegment.Line,.5*t,.6*n).close()))})),go.Shape.defineFigureGenerator("Terminal",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,.1*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.9*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,.9*n).close());var g=new go.PathFigure(.1*t,.2*n,!0);a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.25*n)),g.add(new go.PathSegment(go.PathSegment.Line,.22*t,.285*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.1*t,.37*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.32*n)),g.add(new go.PathSegment(go.PathSegment.Line,.275*t,.25*n).close());var i=new go.PathFigure(.28*t,.37*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.37*n)),i.add(new go.PathSegment(go.PathSegment.Line,.45*t,.41*n)),i.add(new go.PathSegment(go.PathSegment.Line,.28*t,.41*n).close()),a})),go.Shape.defineFigureGenerator("Beaker",(function(e,t,n){var a=new go.Geometry,o=15*h,g=new go.PathFigure(.62*t,.475*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,t,n-15)),g.add(new go.PathSegment(go.PathSegment.Bezier,t-15,n,t,n-o,t-o,n)),g.add(new go.PathSegment(go.PathSegment.Line,15,n)),g.add(new go.PathSegment(go.PathSegment.Bezier,0,n-15,o,n,0,n-o)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.475*n)),g.add(new go.PathSegment(go.PathSegment.Line,.38*t,.03*n)),g.add(new go.PathSegment(go.PathSegment.Line,.36*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.64*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Line,.62*t,.03*n).close()),o>1?(a.spot1=new go.Spot(0,0,o,o),a.spot2=new go.Spot(1,1,-o,-o)):(a.spot1=go.Spot.TopLeft,a.spot2=go.Spot.BottomRight),a})),go.Shape.defineFigureGenerator("Download",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close());var i=new go.PathFigure(.4*t,0*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.26*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.5*t,.66*n)),i.add(new go.PathSegment(go.PathSegment.Line,.74*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.44*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,0*n).close()),a})),go.Shape.defineFigureGenerator("Bin",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;return o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close()),a})),go.Shape.defineFigureGenerator("Upload",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(0*t,1*n,!0);a.add(o);var g=.1/.3;o.add(new go.PathSegment(go.PathSegment.Line,1*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.8*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.66*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.755*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,.93*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.64*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.61*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.39*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.36*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.07*t,n*(1-g))),o.add(new go.PathSegment(go.PathSegment.Line,.245*t,.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),.055*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.66),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,t*(1-.8),0*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,n*(1-g)).close());var i=new go.PathFigure(.5*t,0*n,!0);return a.add(i),i.add(new go.PathSegment(go.PathSegment.Line,.26*t,.25*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.25*n)),i.add(new go.PathSegment(go.PathSegment.Line,.4*t,.63*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.63*n)),i.add(new go.PathSegment(go.PathSegment.Line,.6*t,.25*n)),i.add(new go.PathSegment(go.PathSegment.Line,.74*t,.25*n).close()),a})),go.Shape.defineFigureGenerator("EmptyDrink",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,0*n,!1);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close()),a})),go.Shape.defineFigureGenerator("Drink",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.15*t,0*n,!1);a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.85*t,0*n)),o.add(new go.PathSegment(go.PathSegment.Line,.7*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.3*t,1*n).close());var g=new go.PathFigure(.235*t,.28*n,!0);return a.add(g),g.add(new go.PathSegment(go.PathSegment.Line,.765*t,.28*n)),g.add(new go.PathSegment(go.PathSegment.Line,.655*t,.97*n)),g.add(new go.PathSegment(go.PathSegment.Line,.345*t,.97*n).close()),a})),go.Shape.defineFigureGenerator("4Arrows",(function(e,t,n){var a=new go.Geometry,o=new go.PathFigure(.5*t,0*n,!0);return a.add(o),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,1*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,.75*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.55*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.65*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.5*t,1*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.75*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.55*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.65*n)),o.add(new go.PathSegment(go.PathSegment.Line,0*t,.5*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.35*n)),o.add(new go.PathSegment(go.PathSegment.Line,.25*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.45*n)),o.add(new go.PathSegment(go.PathSegment.Line,.45*t,.25*n)),o.add(new go.PathSegment(go.PathSegment.Line,.35*t,.25*n).close()),a})),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")},47503:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,_typeof=__webpack_require__(31468).default;(function(){if("function"!=typeof window.GGBApplet){var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var e={},t="5.0",n={},a=null,o=!1,g=!1,i=null,r=!1,d=null,h=null,s=0;s<arguments.length;s++){var m=arguments[s];if(null!==m)switch(_typeof(m)){case"number":t=m.toFixed(1);break;case"string":m.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=m:i=m;break;case"object":void 0!==m.is3D?a=m:n=m;break;case"boolean":o=m,g=!0}}null===a&&(a={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},void 0===n.material_id||g||(o=!0)),null!==i&&void 0===n.id&&(n.id=i);var c="",l=!1,u=null,S=null,P=null,w=!1,p=null,f=null,v=null;void 0!==n.height&&(n.height=Math.round(n.height)),void 0!==n.width&&(n.width=Math.round(n.width));var L=function(e){return parseFloat(e)>4?parseFloat(e):5};function x(){try{return window.self!==window.top}catch(e){return!0}}function y(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){h=e,I(e,t)},e.setJavaCodebase=e.setJavaCodebaseVersion=e.isCompiledInstalled=e.setPreCompiledScriptPath=e.setPreCompiledResourcePath=function(){},e.setHTML5CodebaseVersion=function(e,t){var n=parseFloat(e);NaN!==n&&n<5?console.log("The GeoGebra HTML5 codebase version "+n+" is deprecated. Using version latest instead."):(d=e,E(e,t))},e.getHTML5CodebaseVersion=function(){return S},e.getParameters=function(){return n},e.setFontsCSSURL=function(e){v=e},e.setGiacJSURL=function(e){},e.setJNLPFile=function(e){e},e.setJNLPBaseDir=function(e){},e.inject=function(){function t(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var a,o="auto",g=n.id,i=!1,d=0;d<arguments.length;d++){var h=arguments[d];"string"==typeof h?(h=h.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?o=h:g=arguments[d]:"boolean"==typeof h?i=h:h instanceof HTMLElement&&(a=h)}function s(){if(r){o=T(o);var d=a||document.getElementById(g);if(d)if(e.removeExistingApplet(d,!1),void 0===n.width&&d.clientWidth&&(n.width=d.clientWidth),void 0===n.height&&d.clientHeight&&(n.height=d.clientHeight),n.width&&n.height||"html5"!==o||(delete n.width,delete n.height),u=o,"screenshot"===o)G(d,n);else{var h=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?h=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(h=(!x()||t())&&y()),h?(u="screenshot",z(d,n,i,o)):N(d,n,i)}else console.log("possibly bug on ajax loading? ")}else setTimeout(s,200)}s()},e.getViews=function(){return a},e.isJavaInstalled=function(){return!1};var b=function(t){var o=function(){n.onError&&n.onError(),D("Error: Fetching material (id "+n.material_id+") failed.",n)},g=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",i="/materials/"+n.material_id+"?scope=basic";B("https://"+g+"/api/proxy.php?path="+encodeURIComponent(i),(function(g){var i=JSON.parse(g),r=i.elements?i.elements.filter((function(e){return"G"==e.type||"E"==e.type}))[0]:i;if(r&&r.url){n.fileName=r.url,j(r.settings||{}),a.is3D=!0;var d="https://www.geogebra.org/images/";e.setPreviewImage(p||r.previewUrl,d+"GeoGebra_loading.png",d+"applet_play.png"),t()}else o()}),o)};function j(e){["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach((function(t){e[t]=!!e[t]})),["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"].forEach((function(t){void 0===n[t]&&void 0!==e[t]&&(n[t]=e[t])})),void 0===n.showToolBarHelp&&(n.showToolBarHelp=n.showToolBar)}function B(e,t,n){var a=new XMLHttpRequest;a.open("GET",e),a.onload=function(){t(a.responseText)},a.onerror=n,a.send()}e.isHTML5Installed=function(){return!0},e.getLoadedAppletType=function(){return u},e.setPreviewImage=function(e,t,n){p=e,f=t,n},e.removeExistingApplet=function(e,t){var a;"string"==typeof e&&(e=document.getElementById(e)),u=null;var o=null;for(a=0;a<e.childNodes.length;a++){var g=e.childNodes[a],i=g.className;"applet_screenshot"===i?t?(g.style.display="block",u="screenshot"):g.style.display="none":"applet_scaler prerender"!==i&&(e.removeChild(g),o=i&&-1!=i.indexOf("appletParameters")?g.id:null,a--)}var r=void 0!==n.id?n.id:o,d=window[r];d&&"function"==typeof d.getBase64&&(d.remove(),window[r]=null)},e.refreshHitPoints=function(){if(L(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var t=e.getAppletObject();return!(!t||"function"!=typeof t.recalculateEnvironments)&&(t.recalculateEnvironments(),!0)},e.startAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.startAnimation)&&(t.startAnimation(),!0)},e.stopAnimation=function(){var t=e.getAppletObject();return!(!t||"function"!=typeof t.stopAnimation)&&(t.stopAnimation(),!0)},e.getAppletObject=function(){var e=void 0!==n.id?n.id:"ggbApplet";return window[e]},e.resize=function(){};var F=function(e){return e&&"false"!==e},N=function(t,n,a){L(S)<=4.2&&(a=!0);var o=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==S||ggbHTML5LoadedCodebaseIsWebSimple&&!w)&&(o=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var g=document.createElement("div");g.classList.add("appletParameters","notranslate");var i=n.width,r=n.height;if(n.disableAutoScale=void 0===n.disableAutoScale?GGBAppletUtils.isFlexibleWorksheetEditor():n.disableAutoScale,void 0!==n.width)if(L(S)<=4.4)F(n.showToolBar)&&(n.height-=7),F(n.showAlgebraInput)&&(n.height-=37),n.width<605&&F(n.showToolBar)&&(n.width=605,i=605);else{var s=100;(F(n.showToolBar)||F(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),s=F(n.showMenuBar)?245:155),i<s&&(n.width=s,i=s)}for(var m in g.style.border="none",g.style.display="inline-block",n)n.hasOwnProperty(m)&&"appletOnLoad"!==m&&g.setAttribute("data-param-"+m,n[m]);v&&g.setAttribute("data-param-fontscssurl",v),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var l="function"==typeof n.appletOnLoad?n.appletOnLoad:function(){};if(a||void 0===n.width){var u=document.createElement("div");u.className="applet_scaler",u.style.position="relative",u.style.display="block",u.appendChild(g),t.appendChild(u),n.appletOnLoad=function(t){e.resize(),l(t)}}else{n.hasOwnProperty("showSplash")||g.setAttribute("data-param-showSplash","false");var p=t.querySelector(".applet_scaler.prerender"),f=null!==p;if(f)x=p.querySelector(".ggb_preview");else{var x=A(i,r,n.borderColor,!1);(p=document.createElement("div")).className="applet_scaler",p.style.position="relative",p.style.display="block",p.style.width=i+"px",p.style.height=r+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(p,"66%"),L(S)>=5?(n.appletOnLoad=function(e){var n=t.querySelector(".ggb_preview");n&&n.parentNode.removeChild(n),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(p),window.GGBT_wsf_view&&$(window).trigger("resize"),l(e)},f||p.appendChild(x)):g.appendChild(x),p.appendChild(g),f||t.appendChild(p),setTimeout((function(){e.resize()}),1)}function y(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),D("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function b(e,t){"undefined"==typeof renderGGBElement?(null===html5AppletsToProcess&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:e,params:t}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,null!==html5AppletsToProcess&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach((function(e){y(e.article,e.params)})),html5AppletsToProcess=null)},L(S)<5&&(e.className+=" geogebraweb")):y(e,t)}if(o){scriptLoadStarted=!0;for(var j=0;j<g.childNodes.length;j++){"TABLE"===g.childNodes[j].tagName&&(g.removeChild(g.childNodes[j]),j--)}if(null!==ggbHTML5LoadedScript){var B=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=B&&B.parentNode.removeChild(B)}var N=document.createElement("script"),G=function(){b(g,n)};N.src=c+P,ggbHTML5LoadedCodebaseIsWebSimple=w,ggbHTML5LoadedCodebaseVersion=S,ggbHTML5LoadedScript=N.src,D("GeoGebra HTML5 codebase loaded: '"+c+"'.",n),h||d&&"5.0"!=d?c.requirejs?__webpack_require__.e(32721).then(function(){var e=[__webpack_require__(32721)];G.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(N.onload=G,t.appendChild(N)):(w?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),G())}else b(g,n);n.height=r,n.width=i},G=function(t,n,a){var o=A(n.width,n.height,n.borderColor,a),g=document.createElement("div");g.style.position="relative",g.style.display="block",g.style.width=n.width+"px",g.style.height=n.height+"px",g.className="applet_screenshot applet_scaler"+(a?" applet_screenshot_play":""),g.appendChild(o);var i=GGBAppletUtils.getScale(n,t,a);a?(t.appendChild(k()),window.GGBT_wsf_view||(t.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(g,"66%"),t.appendChild(g),1===i||isNaN(i)||(GGBAppletUtils.scaleElement(g,i),g.style.width=n.width+"px",g.style.height=n.height+"px",g.parentNode.style.width=n.width*i+"px",g.parentNode.style.height=n.height*i+"px"),e.resize=function(){C(t,o,g,a)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function C(e,t,a,o){if(e.contains(t)){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if("fullscreencontent"!==e.id)return;window.GGBT_wsf_view.setCloseBtnPosition(e)}var g=GGBAppletUtils.getScale(n,e,o);null!==a.parentNode&&(isNaN(g)||1===g?(GGBAppletUtils.scaleElement(a,1),a.parentNode.style.width=n.width+"px",a.parentNode.style.height=n.height+"px"):(GGBAppletUtils.scaleElement(a,g),a.parentNode.style.width=n.width*g+"px",a.parentNode.style.height=n.height*g+"px")),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(e),"object"===_typeof(window.GGBT_ws_header_footer)&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}e.onExitFullscreen=function(e,t){t.appendChild(e)};var z=function(e,t,n,a){G(e,t,!0);for(var o=function(){var n=[];for(i=0;i<e.childNodes.length;i++)n.push(e.childNodes[i]);if(window.GGBT_wsf_view){var o=window.GGBT_wsf_view.renderFullScreen(e,t.id),g=document.getElementById("fullscreencontainer"),r=jQuery(e).find(".fullscreencontent");r.length>0?(o.remove(),r.attr("id","fullscreencontent").show(),jQuery(g).append(r),window.dispatchEvent(new Event("resize"))):N(o,t,!1),window.GGBT_wsf_view.launchFullScreen(g)}else u=a,N(e,t,!1);if(!window.GGBT_wsf_view)for(i=0;i<n.length;i++)e.removeChild(n[i])},g=e.getElementsByClassName("ggb_preview_play"),i=0;i<g.length;i++)g[i].addEventListener("click",o,!1),g[i].addEventListener("ontouchstart",o,!1);"function"==typeof window.ggbAppletPlayerOnload&&window.ggbAppletPlayerOnload(e),y()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},k=function(){var e=document.createElement("div");if(e.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var t='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',n=document.createElement("style");n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(n)}return e},A=function(e,t,n,a){var o=document.createElement("div");o.className="ggb_preview",o.style.position="absolute",o.style.zIndex="90",o.style.width=e-2+"px",o.style.height=t-2+"px",o.style.top="0px",o.style.left="0px",o.style.overflow="hidden",o.style.backgroundColor="white";var g="lightgrey";void 0!==n&&(g="none"===n?"transparent":n),o.style.border="1px solid "+g;var i,r,d,h=document.createElement("img");if((h.style.position="relative",h.style.zIndex="1000",h.style.top="-1px",h.style.left="-1px",null!==p&&h.setAttribute("src",p),h.style.opacity=.7,null!==f)&&!a){(i=document.createElement("img")).style.position="absolute",i.style.zIndex="1001",i.style.opacity=1,h.style.opacity=.3,(r=360)>e/4*3&&(r=e/4*3),d=r/5.8,i.setAttribute("src",f),i.setAttribute("width",r),i.setAttribute("height",d);var s=(e-r)/2,m=(t-d)/2;i.style.left=s+"px",i.style.top=m+"px",o.appendChild(i)}return o.appendChild(h),o},T=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},M=["web","webSimple","web3d","tablet","tablet3d","phone"],E=function(e,t){if(S=e,t)I(S,!0);else{var g,i,r=!o;if(r){var d=L(S);!isNaN(d)&&d<4.4&&(r=!1)}g="http"===window.location.protocol.substr(0,4)?window.location.protocol:"http:";var h=S.indexOf("//");for(var s in i=h>0?S:0===h?g+S:"https://www.geogebra.org/apps/5.2.814.0/",M)if(S.slice(-1*M[s].length)===M[s]||S.slice(-1*(M[s].length+1))===M[s]+"/")return void I(i,!1);GGBAppletUtils.isFlexibleWorksheetEditor()||!r||a.is3D||a.AV||a.SV||a.CV||a.EV2||a.CP||a.PC||a.DA||a.FI||a.PV||F(n.showToolBar)||F(n.showMenuBar)||F(n.showAlgebraInput)||F(n.enableRightClick)||n.appName&&"classic"!=n.appName?i+="web3d/":i+="webSimple/",I(i,!1)}},I=function(e,t){if(e.requirejs)c=e;else{"/"!==e.slice(-1)&&(e+="/"),c=e,null===t&&(t=-1===e.indexOf("http")),l=t,P="web.nocache.js",w=!1;var n=c.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?M.indexOf(n[n.length-2])>=0&&(P=n[n.length-2]+".nocache.js"):(P="webSimple.nocache.js",w=!0)),n=e.split("/"),"test"===(S=n[n.length-3]).substr(0,4)?S=S.substr(4,1)+"."+S.substr(5,1):"war"!==S.substr(0,3)&&"beta"!==S.substr(0,4)||(S="5.0");var a=parseFloat(S);NaN!==a&&a<5&&e.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+a+" is deprecated. Using version latest instead."),E("5.0",t))}},D=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function R(){var e=t;null!==d?e=d:parseFloat(e)<5&&(e="5.0"),E(e,!1),null!==h&&I(h,l),r=!0}return void 0!==n.material_id?b(R):R(),e},GGBAppletUtils=function(){"use strict";function e(){return void 0!==window.GGBT_wsf_edit}function t(e,t){1!=t?(e.style.transformOrigin="0% 0% 0px",e.style.webkitTransformOrigin="0% 0% 0px",e.style.transform="scale("+t+","+t+")",e.style.webkitTransform="scale("+t+","+t+")",e.style.maxWidth="initial",null!==e.querySelector(".ggb_preview")&&(e.querySelector(".ggb_preview").style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[0]&&(e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),void 0!==e.querySelectorAll(".ggb_preview img")[1]&&(e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(e.style.transform="none",e.style.webkitTransform="none")}function n(e,t,n,a,o){if(e.isScreenshoGenerator)return 1;var g,i=void 0!==a&&a,r=null!=e.noScaleMargin&&e.noScaleMargin,d=(g=e.autoHeight)&&"false"!==g,h=function(e,t,n,a,o,g){var i=null;if(null!=g&&""!=g)for(var r=e.parentNode;null!=r;){if((" "+r.className+" ").indexOf(" "+g+" ")>-1){i=r;break}r=r.parentNode}var d=0,h=0,s=0,m=0,c=0,l=0,u=0;if(i)d=i.offsetWidth,h=Math.max(a?i.offsetWidth:0,i.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(d=Math.min(window.innerWidth,document.documentElement.clientWidth),h=Math.min(window.innerHeight,document.documentElement.clientHeight),s=d):(d=window.innerWidth,h=window.innerHeight,s=window.innerWidth),e){var S=e.getBoundingClientRect();S.left>0&&S.left<=d&&(void 0===o||!o)&&("rtl"===document.dir?(c=d-S.width-S.left,l=s<=480?10:30):(l=S.left,c=s<=480?10:30),m=l+c)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(m=40,u=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(m=0,u=40))}return e&&((void 0===n||!n)&&t>0&&t+m<d?d=t:d-=m,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(h-=u)),{width:d,height:h}}(t,e.width,n,d,i&&window.GGBT_wsf_view||r,o),s=parseInt(h.width),m=e.width,c=e.height;if(void 0===m){var l=t.querySelector(".appletParameters");l&&(m=l.offsetWidth,c=l.offsetHeight)}var u=s/m,S=i?1:h.height/c;return void 0===n||n||(u=Math.min(1,u),S=Math.min(1,S)),Math.min(u,S)}function a(e,t,a){var o,g=1,i=!1;return e.hasOwnProperty("allowUpscale")&&(i=e.allowUpscale),e.hasOwnProperty("scale")&&(g=parseFloat(e.scale),(isNaN(g)||null===g||0===g)&&(g=1),g>1&&(i=!0)),t&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(i=!0),e.hasOwnProperty("disableAutoScale")&&e.disableAutoScale?g:(o=n(e,t,i,a,e.scaleContainerClass),!i||e.hasOwnProperty("scale")&&1!==g?Math.min(g,o):o)}function o(e){var t=Math.min(window.innerWidth,document.documentElement.clientWidth),n=Math.min(window.innerHeight,document.documentElement.clientHeight),a=e.getBoundingClientRect(),o=(t-a.width)/2,g=(n-a.height)/2;g<0&&(g=0),e.style.position="relative","closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(e.style.left=o<40?"40px":o+"px",e.style.top=g+"px"):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(e.style.top=g<40?"40px":g+"px",e.style.left=o+"px")}return{responsiveResize:function(n,g){var i=n.querySelector(".appletParameters");if(i){if("object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()){if(g.id!==i.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(n)}if(i.parentElement&&/fullscreen/.test(i.parentElement.className))return;var r=a(g,n);e()&&i.setAttribute("data-param-scale",r);for(var d=null,h=0;h<n.childNodes.length;h++)if(void 0!==n.childNodes[h].className&&n.childNodes[h].className.match(/^applet_scaler/)){d=n.childNodes[h];break}if(null!==d&&null!==d.querySelector(".noscale"))return;var s=void 0!==g.id?g.id:"ggbApplet",m=window[s];null!=m&&m.recalculateEnvironments||null===d||d.className.match(/fullscreen/)||(d.parentNode.style.transform="",isNaN(r)||1===r?(t(d,1),d.parentNode.style.width=g.width+"px",d.parentNode.style.height=g.height+"px"):(d.parentNode.style.width=g.width*r+"px",d.parentNode.style.height=g.height*r+"px",t(d,r))),"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&o(n),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(i).parents(".content-added-content"))}},isFlexibleWorksheetEditor:e,positionCenter:o,getScale:a,scaleElement:t}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var e=n.location.search;return-1!=e.indexOf(J)||-1!=e.indexOf(K)}function q(e,t){}q(H,I),webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{},t;function u(){return v(),t}function v(){if(!t){var e=o.createElement(Q);if(e.id=L,e.style.cssText=R+S,e.tabIndex=-1,o.body.appendChild(e),t=e.contentWindow.document,-1==navigator.userAgent.indexOf(T)){t.open();var n=document.compatMode==U?V:W;t.write(n+X),t.close()}}}function w(e){q(cb,eb),function(e){function t(){return _typeof(o.readyState)==Y?_typeof(o.body)!=Y&&null!=o.body:/loaded|complete/.test(o.readyState)}var n=t();if(n)e();else{o.addEventListener&&o.addEventListener(Z,g,!1);var a=setInterval((function(){g()}),$)}function g(){if(!n){if(!t())return;n=!0,e(),o.removeEventListener&&o.removeEventListener(Z,g,!1),a&&clearInterval(a)}}}((function(){var t,n,a,o;t=e,n=u(),a=n.body,(o=n.createElement(_)).language=ab,o.crossOrigin=W,o.src=t,webModule.__errFn&&(o.onerror=function(){webModule.__errFn(L,new Error(bb+t))}),a.appendChild(o),q(cb,db)}))}function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(e){var t=c[e];return null==t?null:t},r=d,webModule.__errFn=e}function B(){function e(e){var t=e.lastIndexOf(rb);-1==t&&(t=e.length);var n=e.indexOf(sb);-1==n&&(n=e.length);var a=e.lastIndexOf(tb,Math.min(n,t));return a>=O?e.substring(O,a+P):W}var t,n=null!=(t=__gwt_getMetaProperty(wb))?t:W;return n==W&&(n=function(){for(var t=o.getElementsByTagName(_),n=O;n<t.length;++n)if(-1!=t[n].src.indexOf(xb))return e(t[n].src);return W}()),n==W&&(n=function(){var e=o.getElementsByTagName(yb);return e.length>O?e[e.length-P].href:W}()),n==W&&function(){var e=o.location;return e.href==e.protocol+zb+e.host+e.pathname+e.search+e.hash}()&&(n=e(o.location.href)),n=function(t){if(t.match(/^\w+:\/\//));else{var n=o.createElement(ub);n.src=t+vb,t=e(n.src)}return t}(n),n}function C(e){return e.match(/^\//)||e.match(/^[a-zA-Z]+:\/\//)?e:webModule.__moduleBase+e}function D(){var e,t=O,a=[],o=[];function g(e){var t=o[e](),n=a[e];if(t in n)return t;var g=[];for(var i in n)g[n[i]]=i;throw r&&r(e,g,t),null}if(__gwt_isKnownPropertyValue=function(e,t){return t in a[e]},webModule.__getPropMap=function(){var e={};for(var t in a)a.hasOwnProperty(t)&&(e[t]=g(t));return e},webModule.__computePropValue=g,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);try{var i=(e=Cb).indexOf(Db);-1!=i&&(t=parseInt(e.substring(i+P),$),e=e.substring(O,i))}catch(e){}return webModule.__softPermutationId=t,C(e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}s[L]={moduleName:L},webModule.__moduleStartupDone=function(e){var t=s[L].bindings;s[L].bindings=function(){for(var n=t?t():{},a=e[webModule.__softPermutationId],o=O;o<a.length;o++){var g=a[o];n[g[O]]=g[P]}return n}},webModule.__startLoadingFragment=function(e){return C(e)},webModule.__installRunAsyncCode=function(e){var t=u(),n=t.body,a=t.createElement(_);a.language=ab,a.text=e,n.appendChild(a),n.removeChild(a)},A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},"function"!=typeof window.web3d&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),"function"!=typeof window.webSimple&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet}else console.warn("deployggb.js was loaded twice")})()},37318:function(e,t,n){"use strict";function a(e){var t=!0;if(e.length>0){for(var n=0;n<e.length;n++)if(0==e[n].compile_success||!e[n].compile_success){t=!1;break}}else t=!1;return t}function o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],a=0;a<e.length;a++){var o=e[a],g=t?"".concat(t,"/").concat(o.name):"".concat(o.name);n.push({title:o.name,type:o.type,isLeaf:"tree"!==o.type,key:g})}return n}function g(e,t,n){for(var a=0;a<e.length;a++){var o=e[a];if(o.key===t){o.children=n;break}o.children&&g(o.children,t,n)}return e}function i(e,t,n){var a;return function(){var o=this,g=arguments,i=function(){a=null,n||e.apply(o,g)},r=n&&!a;clearTimeout(a),a=setTimeout(i,t),r&&e.apply(o,g)}}n.d(t,{Ax:function(){return g},Ds:function(){return i},KI:function(){return r},SI:function(){return o},f1:function(){return a}});var r=n(69423).Z.API_SERVER},27235:function(e,t,n){"use strict";n.d(t,{X:function(){return d},y:function(){return r}});var a=n(79800),o=n.n(a),g=n(59301),i=n(8591),r=function(e){(0,g.useEffect)((function(){if(e){var t=function(e){"F12"===e.key&&(e.preventDefault(),console.log("F12被禁用"))},n=function(e){e.preventDefault()};return document.addEventListener("keydown",t),document.addEventListener("contextmenu",n),function(){document.removeEventListener("keydown",t),document.removeEventListener("contextmenu",n)}}}),[e])},d=function(){var e=(0,g.useState)(!1),t=o()(e,2),n=t[0],a=t[1],r=function(e){var t=e.keyCode,n=e.ctrlKey,a=e.metaKey;"paste"!==e.type&&(67!==t&&86!==t||!a&&!n)||(i.ZP.warning("老师已设置答题时不允许进行复制粘贴"),e.preventDefault(),e.stopPropagation())};return(0,g.useEffect)((function(){return n&&(window.addEventListener("keydown",r,!0),window.addEventListener("paste",r,!0)),function(){window.removeEventListener("keydown",r,!0),window.removeEventListener("paste",r,!0)}}),[n]),{setOpenDisableCopyAndPaste:a,disableCopyAndPaste:n}}},12840:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var a=n(7557),o=n.n(a),g=n(41498),i=n.n(g),r=n(79800),d=n.n(r),h=n(59301),s="imageDimensions___a7crR",m="img___Kroat",c="fullWidth___c492T",l=n(92310),u=n.n(l),S=n(71418),P=n(2859),w=n(82710),p=n(95972),f=n(37712),v=function(e){var t=e.data,n=e.className,a=e.fullWidth,g=e.style,r=void 0===g?{}:g,l=e.onClose,v=e.onOk,L=e.showFullTools,x=e.noAssociationId,y=(0,h.useRef)(null),b=(0,h.useRef)(null),j=(0,h.useRef)(null),B=(0,h.useRef)(null),F=(0,h.useState)(!1),N=d()(F,2),G=N[0],C=N[1],z=(0,h.useState)("正在加载中"),k=d()(z,2),A=k[0],T=k[1];(0,h.useEffect)((function(){j.current||(j.current=document.createElement("style"),document.head.appendChild(j.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),j.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&M()):(document.body.removeAttribute("data-custom"),j.current&&(document.head.removeChild(j.current),j.current=null))}),[null==t?void 0:t.visible]);var M=function(){var e=i()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),T("正在加载中"),e.next=4,(0,p.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,y.current.src="",y.current.src=n,y.current.onload=function(){I()},C(!1),T("");case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=i()(o()().mark((function e(n){var a;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),T("正在保存中"),e.next=4,(0,w.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:t.title,file:n.dataUrl}});case 4:if(null==(a=e.sent)||!a.id||x){e.next=12;break}return e.next=8,(0,w.ZP)("/api/attachments/".concat(t.id,"/add_subitem.json"),{method:"post",body:{subitem_id:null==a?void 0:a.id,settings:JSON.stringify(n.state)}});case 8:0===e.sent.status&&v(),e.next=13;break;case 12:null!=a&&a.id&&v(a);case 13:C(!1),T("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),I=function(){b.current=new P.hP(y.current),b.current.targetRoot=B.current,b.current.addEventListener("render",E),b.current.addEventListener("beforeclose",l),L&&(b.current.availableMarkerTypes=b.current.ALL_MARKER_TYPES,b.current.uiStyleSettings.redoButtonVisible=!0,b.current.uiStyleSettings.notesButtonVisible=!0,b.current.uiStyleSettings.zoomButtonVisible=!0,b.current.uiStyleSettings.zoomOutButtonVisible=!0,b.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=b.current.uiStyleSettings,b.current.show(),null!=t&&t.snapshotData&&b.current.restoreState(t.snapshotData),setTimeout((function(){var e;window.scrollTo(0,0),(e=document.querySelector('a[href="https://markerjs.com/"]'))&&e.parentNode&&(e.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"选择"},{name:'[data-action="delete"]',title:"删除元素"},{name:'[data-action="undo"]',title:"撤销"},{name:'[data-type-name="FrameMarker"]',title:"矩形"},{name:'[data-type-name="FreehandMarker"]',title:"画线"},{name:'[data-type-name="ArrowMarker"]',title:"箭头"},{name:'[data-type-name="TextMarker"]',title:"文本"},{name:'[data-type-name="EllipseMarker"]',title:"椭圆"},{name:'[data-type-name="HighlightMarker"]',title:"方块"},{name:'[data-type-name="CalloutMarker"]',title:"注释"},{name:'[data-action="render"]',title:"保存"},{name:'[data-action="close"]',title:"退出"}].forEach((function(e){var t=document.querySelector(e.name);t&&t.setAttribute("title",e.title)}))}),300)};return(0,f.jsx)(h.Fragment,{children:(null==t?void 0:t.visible)&&(0,f.jsx)(S.Z,{spinning:G,tip:A,style:{position:"absolute"},children:(0,f.jsx)("div",{ref:B,className:u()(s,n,a?c:""),style:r,children:(0,f.jsx)("img",{className:m,ref:y})})})})}},9266:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(79800),o=n.n(a),g=n(59301),i=n(34837),r=n(37712),d=function(e){var t=e.defaultX,n=void 0===t?"40%":t,a=e.leftChild,d=e.rightChild,h=e.className,s=e.hideResize,m=void 0!==s&&s,c=(0,g.useState)(n),l=o()(c,2),u=l[0],S=l[1],P=(0,g.useRef)();(0,g.useEffect)((function(){function e(e){P.current&&(i.Z.publish("resize-move-bar",e),S(e.pageX))}function t(){P.current=!1}return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),function(){window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}),[]);var w="number"==typeof u&&.01!==u?"".concat(u,"px"):n,p="calc(100% - ".concat(m?"0px":"4px"," - ").concat(w,")");return(0,r.jsxs)("div",{className:"split-panel-container ".concat(h),children:[(0,r.jsx)("section",{style:{width:w,display:.01===u?"none":""},children:a}),(0,r.jsx)("section",{className:"resize-x-bar",onMouseDown:function(){P.current=!0},children:(0,r.jsx)("a",{className:"btn-resize",children:(0,r.jsx)("svg",{width:"16",height:"13",viewBox:"0 0 16 13",children:(0,r.jsx)("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})})})}),(0,r.jsx)("section",{style:{width:p},children:d})]})}},51336:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});n(59301);var a="result___gu5zt",o="title___xrnx2",g="left___IAxp9",i="leftNode___HL8fG",r="right___ZXYmw",d="rightNode___jYL5_",h=n(92310),s=n.n(h),m=n(37712),c=function(e){var t=e.className,n=e.style,h=void 0===n?{}:n,c=e.leftNode,l=e.leftTitle,u=void 0===l?"自测输入":l,S=e.rightNode,P=e.rightTitle,w=void 0===P?"运行结果":P;return(0,m.jsxs)("div",{className:s()(a,t),style:h,children:[(0,m.jsxs)("div",{className:g,children:[(0,m.jsxs)("div",{className:o,children:[(0,m.jsx)("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,m.jsx)("span",{children:u})]}),(0,m.jsx)("div",{className:i,children:c})]}),(0,m.jsxs)("div",{className:r,children:[(0,m.jsxs)("div",{className:o,children:[(0,m.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),(0,m.jsx)("span",{children:w})]}),(0,m.jsx)("div",{className:d,children:S})]})]})}},8175:function(e,t,n){"use strict";var a=n(79800),o=n.n(a),g=n(59301),i=n(37712),r=function(e){return 1===String(e).length?"0".concat(e):e};t.Z=function(e){var t=e.className,n=void 0===t?"":t,a=e.onChange,d=e.defaultValue,h=void 0===d?0:d,s=(0,g.useState)(h),m=o()(s,2),c=m[0],l=m[1];(0,g.useEffect)((function(){var e=setTimeout((function(){l(c+1e3)}),1e3);return a(c+1e3),function(){clearInterval(e)}}),[c]);var u=parseInt(c/36e5)||"00",S=parseInt(c%36e5/6e4)||"00",P=parseInt(c%6e4/1e3)||"00";return(0,i.jsxs)("div",{className:n,children:[r(u),":",r(S),":",r(P)]})}},43851:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var a=n(79800),o=n.n(a),g=n(59301),i=n(34837),r=n(54139),d=n(37712),h=function(){var e=(0,g.useState)(""),t=o()(e,2),n=t[0],a=t[1],h=(0,g.useState)(0),s=o()(h,2),m=(s[0],s[1]),c=(0,g.useState)(),l=o()(c,2),u=(l[0],l[1]),S=(0,g.useState)(),P=o()(S,2),w=(P[0],P[1]),p=(0,g.useState)(!1),f=o()(p,2),v=(f[0],f[1],(0,g.useRef)(""));function L(e){27==e.keyCode&&v.current&&x()}function x(){document.body.style.overflow="auto",u(void 0),w(void 0),m(0),a("")}(0,g.useEffect)((function(){return i.Z.subscribe("preview-image",(function(e){a(e),console.log(b.current),document.body.style.overflow="hidden"}))}),[]),(0,g.useEffect)((function(){return document.addEventListener("keydown",L),function(){document.removeEventListener("keydown",L)}}),[]),(0,g.useEffect)((function(){v.current=n}),[n]);(0,g.useRef)();var y=(0,g.useRef)(),b=(0,g.useRef)();return(0,d.jsx)(g.Fragment,{children:n?(0,d.jsx)("div",{children:(0,d.jsx)("div",{className:"preview-wrp-group",ref:y,children:(0,d.jsx)(r.Z,{className:"image-preview",src:n,style:{display:"none"},preview:{visible:!0,src:n,movable:!1,onVisibleChange:function(e){a("")}},alt:"预览大图"})})}):null})}},18890:function(e,t,n){"use strict";n.d(t,{h:function(){return w}});var a=n(82242),o=n.n(a),g=n(79800),i=n.n(g),r=n(59301),d=n(57809),h=n(78241),s=n(3113),m=n(89780),c=n.n(m),l=(n(79906),n(44383),n(37712)),u=d.default.Option,S={labelCol:{span:4},wrapperCol:{span:20}},P={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"]};function w(e){var t=e.value,n=e.onChange,a=e.mode,g=e.options,d=void 0===g?{}:g,h=(0,r.useRef)(),s=(0,r.useState)(),m=i()(s,2),u=m[0],S=m[1];return(0,r.useEffect)((function(){if(u){var e=function(e){var t=e.getValue();n&&n(t)};return u.on("change",e),function(){u.off("change",e)}}}),[u,n]),(0,r.useEffect)((function(){u&&u.setOption("mode",a)}),[u,a]),(0,r.useEffect)((function(){u&&(t===u.getValue()&&""!==t||setTimeout((function(){u.setValue(t||"")}),300))}),[u,t]),(0,r.useEffect)((function(){if(h.current&&!u){var e=c().fromTextArea(h.current,o()({mode:a,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},d));S(e)}}),[h.current,u]),(0,l.jsx)("div",{className:"my-codemirror-container",children:(0,l.jsx)("textarea",{ref:h})})}t.Z=function(e){var t=e.callback,n=e.onCancel,a=(0,r.useState)("python"),g=i()(a,2),m=g[0],c=g[1];return(0,l.jsxs)(h.Z,o()(o()({},S),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,l.jsx)(h.Z.Item,{label:"代码语言",name:"language",children:(0,l.jsx)(d.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){c(P[e][1])},children:Object.keys(P).map((function(e){return(0,l.jsx)(u,{value:e,children:P[e][0]},e)}))})}),(0,l.jsx)(h.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,l.jsx)(w,{mode:m})}),(0,l.jsxs)("div",{className:"flex-container flex-end",children:[(0,l.jsx)(s.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,l.jsx)(s.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))}},85654:function(e,t,n){"use strict";n.d(t,{Z:function(){return ve}});var a=n(91232),o=n.n(a),g=n(79800),i=n.n(g),r=n(85573),d=n.n(r),h=n(59301),s=n(89780),m=n.n(s),c=n(76374),l=(n(79906),n(6313),n(25717),n(99498),n(25419),n(67549),n(501)),u=n(37712),S=function(e){var t=e.value,n=void 0===t?"":t,a=(e.className,e.showTextOnly,e.showLines,e.style,(0,h.useMemo)((function(){return""}),[n]));return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})})},P=n(82242),w=n.n(P),p=[{title:"粗体",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"斜体",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"无序列表",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"有序列表",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"行内代码",icon:"md-iconfont icon-code",actionName:"code"},{title:"代码块(多语言风格)",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"链接",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"行内公式",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"数学图像",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"多行公式",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"添加图片",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"插入画图",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"插入流程图",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"表格",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"换行",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"清空",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function f(e){var t=e.onActionCallback,n=e.title,a=e.icon,o=e.actionName,g=e.className,i=void 0===g?"":g,r=e.children;return(0,u.jsxs)("a",{title:n,className:i,onClick:function(){t(o)},children:[(0,u.jsx)("i",{className:"".concat(a)}),r]})}var v=function(e){var t=e.watch,n=e.showNullButton,a=e.showNullProgramButton,o=e.onActionCallback,g=e.fullScreen,i=e.insertTemp,r=e.hidetoolBar,d=e.extraUse,h=[].concat(p,[{title:"".concat(t?"关闭实时预览":"开启实时预览"),icon:"".concat(t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"),actionName:"trigger-watch"}]);return(0,u.jsxs)("ul",{className:"markdown-toolbar-container",children:[!r&&h.map((function(e,t){return(0,u.jsx)("li",{children:e.actionName?(0,u.jsx)(f,w()(w()({},e),{},{onActionCallback:o})):(0,u.jsx)("span",{className:"v-line"})},t)})),n?(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-null-ch",onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"点击插入\b填空项"})})}):null,a?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"增加填空",actionName:"add-signal",onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"+单行填空项"})})}),(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"增加填空",actionName:"add-multiple",onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"+多行填空项"})})})]}):null,i&&(0,u.jsx)("li",{children:(0,u.jsx)(f,{icon:"md-iconfont icon-edit",className:"btn-null",title:"插入模板",actionName:"inster-template-".concat(i),onActionCallback:o,children:(0,u.jsx)("span",{className:"fill-tip",children:"插入模板"})})}),d&&(0,u.jsx)("li",{children:d}),(0,u.jsx)("li",{className:"btn-full-screen",children:(0,u.jsx)(f,{icon:"".concat(g?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"),title:g?"关闭全屏":"开启全屏",actionName:"trigger-full-screen",onActionCallback:o})})]})},L=n(32552),x=n(78241),y=n(92832),b=n(3113),j={labelCol:{span:4},wrapperCol:{span:20}},B=function(e){var t=e.callback,n=e.onCancel;return(0,u.jsxs)(x.Z,w()(w()({},j),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,u.jsx)(x.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,u.jsx)(y.Z,{})}),(0,u.jsx)(x.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,u.jsx)(y.Z,{})}),(0,u.jsxs)("div",{className:"flex-container flex-end",children:[(0,u.jsx)(b.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,u.jsx)(b.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},F=n(18890),N=n(48347),G=n(43418),C=n(95237),z=n(12840),k=function(e){var t=e.callback,n=e.onCancel,a=document.createElement("canvas"),o=a.getContext("2d");a.width=1e3,a.height=800,o.fillStyle="#ffffff",o.fillRect(0,0,a.width,a.height);var g=a.toDataURL("image/png");return(0,u.jsx)(G.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,u.jsx)(C.Z,{style:{height:"100vh"},children:(0,u.jsx)(z.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:g,visible:!0,title:String(Date.now())},onOk:function(e){t({src:e.url})},onClose:n})})})},A=n(7557),T=n.n(A),M=n(41498),E=n.n(M),I=n(37205),D=n.n(I),R=n(12378);function Z(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Z,go.CommandHandler),Z.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},Z.prototype.alignLeft=function(){var e=this.diagram;e.startTransaction("aligning left");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.x,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t,e.position.y))})),e.commitTransaction("aligning left")},Z.prototype.alignRight=function(){var e=this.diagram;e.startTransaction("aligning right");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.x+e.actualBounds.width;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(t-e.actualBounds.width,e.position.y))})),e.commitTransaction("aligning right")},Z.prototype.alignTop=function(){var e=this.diagram;e.startTransaction("alignTop");var t=1/0;e.selection.each((function(e){e instanceof go.Link||(t=Math.min(e.position.y,t))})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.position.x,t))})),e.commitTransaction("alignTop")},Z.prototype.alignBottom=function(){var e=this.diagram;e.startTransaction("aligning bottom");var t=-1/0;e.selection.each((function(e){if(!(e instanceof go.Link)){var n=e.actualBounds.y+e.actualBounds.height;t=Math.max(n,t)}})),e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,t-e.actualBounds.height))})),e.commitTransaction("aligning bottom")},Z.prototype.alignCenterX=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center X");var n=t.actualBounds.x+t.actualBounds.width/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(n-e.actualBounds.width/2,e.actualBounds.y))})),e.commitTransaction("aligning Center X")}},Z.prototype.alignCenterY=function(){var e=this.diagram,t=e.selection.first();if(t){e.startTransaction("aligning Center Y");var n=t.actualBounds.y+t.actualBounds.height/2;e.selection.each((function(e){e instanceof go.Link||e.move(new go.Point(e.actualBounds.x,n-e.actualBounds.height/2))})),e.commitTransaction("aligning Center Y")}},Z.prototype.alignColumn=function(e){var t=this.diagram;t.startTransaction("align Column"),void 0===e&&(e=0),e=parseFloat(e);var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var a=0;a<n.length-1;a++){var o=n[a],g=o.actualBounds.y+o.actualBounds.height+e;n[a+1].move(new go.Point(o.actualBounds.x,g))}t.commitTransaction("align Column")},Z.prototype.alignRow=function(e){void 0===e&&(e=0),e=parseFloat(e);var t=this.diagram;t.startTransaction("align Row");var n=new Array;t.selection.each((function(e){e instanceof go.Link||n.push(e)}));for(var a=0;a<n.length-1;a++){var o=n[a],g=o.actualBounds.x+o.actualBounds.width+e;n[a+1].move(new go.Point(g,o.actualBounds.y))}t.commitTransaction("align Row")},Z.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},Z.prototype.rotate=function(e){var t;void 0===e&&(e=90),(t=this.diagram).startTransaction("rotate "+e.toString()),(t=this.diagram).selection.each((function(t){t instanceof go.Link||t instanceof go.Group||(t.angle+=e)})),t.commitTransaction("rotate "+e.toString())},Z.prototype.pullToFront=function(){var e=this.diagram;e.startTransaction("pullToFront");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.max(n,t)}})),t.set(e,n)})),e.selection.each((function(e){Z._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},Z.prototype.pushToBack=function(){var e=this.diagram;e.startTransaction("pushToBack");var t=new go.Map;e.selection.each((function(e){t.set(e.layer,0)})),t.iteratorKeys.each((function(e){var n=0;e.parts.each((function(e){if(!e.isSelected){var t=e.zOrder;isNaN(t)?e.zOrder=0:n=Math.min(n,t)}})),t.set(e,n)})),e.selection.each((function(e){Z._assignZOrder(e,t.get(e.layer)-1-Z._findGroupDepth(e))})),e.commitTransaction("pushToBack")},Z._assignZOrder=function(e,t,n){void 0===n&&(n=e),e.layer===n.layer&&(e.zOrder=t),e instanceof go.Group&&e.memberParts.each((function(e){Z._assignZOrder(e,t+1,n)}))},Z._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,Z._findGroupDepth(e))})),t+1}return 0},Z.prototype.doKeyDown=function(){var e=this.diagram;if(null!==e){var t=e.lastInput;if("Up"===t.key||"Down"===t.key||"Left"===t.key||"Right"===t.key){var n=this.arrowKeyBehavior;if("none"===n)return;if("select"===n)return void this._arrowKeySelect();if("move"===n)return void this._arrowKeyMove();if("tree"===n)return void this._arrowKeyTree()}go.CommandHandler.prototype.doKeyDown.call(this)}},Z.prototype._getAllParts=function(){var e=new Array;return this.diagram.nodes.each((function(t){e.push(t)})),this.diagram.parts.each((function(t){e.push(t)})),e},Z.prototype._arrowKeyMove=function(){var e=this.diagram,t=e.lastInput,n=0,a=0;if(t.control||t.meta)n=1,a=1;else if(null!==e.grid){var o=e.grid.gridCellSize;a=o.width,n=o.height}e.startTransaction("arrowKeyMove"),e.selection.each((function(e){"Up"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y-n)):"Down"===t.key?e.move(new go.Point(e.actualBounds.x,e.actualBounds.y+n)):"Left"===t.key?e.move(new go.Point(e.actualBounds.x-a,e.actualBounds.y)):"Right"===t.key&&e.move(new go.Point(e.actualBounds.x+a,e.actualBounds.y))})),e.commitTransaction("arrowKeyMove")},Z.prototype._arrowKeySelect=function(){var e=this.diagram,t=e.lastInput,n=null;"Up"===t.key?n=this._findNearestPartTowards(270):"Down"===t.key?n=this._findNearestPartTowards(90):"Left"===t.key?n=this._findNearestPartTowards(180):"Right"===t.key&&(n=this._findNearestPartTowards(0)),null!==n&&(t.shift?n.isSelected=!0:t.control||t.meta?n.isSelected=!n.isSelected:e.select(n))},Z.prototype._findNearestPartTowards=function(e){var t=this.diagram.selection.first();if(null===t)return null;for(var n=t.actualBounds.center,a=this._getAllParts(),o=1/0,g=t,i=0;i<a.length;i++){var r=a[i];if(r!==t&&r.canSelect()){var d=r.actualBounds.center,h=n.directionPoint(d),s=this._angleCloseness(h,e);if(s<=45){var m=n.distanceSquaredPoint(d);(m*=1+Math.sin(s*Math.PI/180))<o&&(o=m,g=r)}}}return g},Z.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},Z.prototype._arrowKeyTree=function(){var e=this.diagram,t=e.selection.first();if(t instanceof go.Node){var n=e.lastInput;if("Right"===n.key)if(t.isTreeLeaf);else if(t.isTreeExpanded){null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o)}else e.commandHandler.canExpandTree(t)&&e.commandHandler.expandTree(t);else if("Left"===n.key){if(!t.isTreeLeaf&&t.isTreeExpanded)e.commandHandler.canCollapseTree(t)&&e.commandHandler.collapseTree(t);else null!==(g=t.findTreeParentNode())&&e.select(g)}else if("Up"===n.key){if(null!==(g=t.findTreeParentNode()))if((r=(i=this._sortTreeChildrenByY(g)).indexOf(t))>0){for(var a=i.elt(r-1);null!==a&&a.isTreeExpanded&&!a.isTreeLeaf;){a=this._sortTreeChildrenByY(a).last()}null!==a&&e.select(a)}else e.select(g)}else if("Down"===n.key){var o;if(t.isTreeExpanded&&!t.isTreeLeaf)null!==(o=this._sortTreeChildrenByY(t).first())&&e.select(o);else for(;null!==t;){var g,i,r;if(null===(g=t.findTreeParentNode()))break;if((r=(i=this._sortTreeChildrenByY(g)).indexOf(t))<i.length-1){e.select(i.elt(r+1));break}t=g}}var d=e.selection.first();null!==d&&e.scrollToRect(d.actualBounds)}},Z.prototype._sortTreeChildrenByY=function(e){var t=(new go.List).addAll(e.findTreeChildrenNodes());return t.sort((function(e,t){var n=e.location,a=t.location;return n.y<a.y?-1:n.y>a.y?1:n.x<a.x?-1:n.x>a.x?1:0})),t},Z.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},Z.prototype.pasteFromClipboard=function(){var e=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(e,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),e},Object.defineProperty(Z.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(e){if("move"!==e&&"select"!==e&&"scroll"!==e&&"tree"!==e&&"none"!==e)throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+e);this._arrowKeyBehavior=e}}),Object.defineProperty(Z.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(e){if(!(e instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+e);this._pasteOffset.set(e)}});var O=Z,U=(n(15378),n(43604)),_=n(82710),H="myPaletteDiv___Xjz2I",Y="flowChartWrp____f45r",K="maxH60___Pd4Re";var W=function(e){var t=e.onCancel,n=e.callback,a=(0,h.useRef)(),o=(0,h.useRef)(),g=(0,h.useRef)(),r=(0,h.useRef)(!1),d=(0,h.useRef)(!1),s=(0,h.useState)(0),m=i()(s,2),c=m[0],l=m[1],S=function(){var e=E()(T()().mark((function e(){var t,o;return T()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.current.makeImage(),e.next=3,(0,_.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:t.src}});case 3:o=e.sent,n({src:o.url});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,h.useEffect)((function(){return setTimeout((function(){!function(){var e=R.bx.make,t="#ff3333",n="#3358ff",i="#25ad23",r="#d533ff",d="#7d33ff",h="#ff6233",s="#ffffff",m="#000000",c="#fffcd5",l="#d5ebff",u="#f2dfe0",S="#a5d2fa",P="#cccccc",w="#b3e6b3",p="#fcbbbd";function f(t,n){var a=function(e,n){e.handled=!0,e.diagram.model.commit((function(a){var o=n.part.adornedPart,g=(new R.E9).setRectSpot(o.actualBounds,t);g.subtract(o.location),g.scale(2,2),g.x+=130*Math.sign(g.x),g.y+=130*Math.sign(g.y),g.add(o.location),g.snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize);var i=a.copyNodeData(o.data);a.setGroupKeyForNodeData(i,a.getGroupKeyForNodeData(o.data)),a.addNodeData(i);var r={from:o.key,to:a.getKeyForNodeData(i)};a.addLinkData(r);var d=e.diagram.findNodeForData(i);d.location=g,e.diagram.select(d),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)}))};return e(R.bn,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(R.z6.Top)||t.equals(R.z6.Bottom)?25:18,height:t.equals(R.z6.Top)||t.equals(R.z6.Bottom)?18:25,fill:"orange",stroke:s,strokeWidth:4,mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},isActionable:!0,click:a,contextClick:a})}function v(t){return e(R.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:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="orange"},click:function(e,t){e.diagram.commandHandler.showContextMenu(t.part.adornedPart)}},t||{})}function L(e,t){return function(n,a){n.handled=!0,n.diagram.model.commit((function(n){n.set(a.part.adornedPart.data,e,t)}))}}function x(t,n){return n||(n="color"),e(R.bn,{width:16,height:16,stroke:"lightgray",fill:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.stroke="dodgerblue"},mouseLeave:function(e,t){return t.stroke="lightgray"},click:L(n,t),contextClick:L(n,t)})}function y(){return[e("ContextMenuButton",e(R.s_,"Horizontal",x(s,"fill"),x(c,"fill"),x(l,"fill"),x(u,"fill"))),e("ContextMenuButton",e(R.s_,"Horizontal",x(P,"fill"),x(w,"fill"),x(S,"fill"),x(p,"fill")))]}function b(){return[e("ContextMenuButton",e(R.s_,"Horizontal",x(m),x(i),x(n),x(t))),e("ContextMenuButton",e(R.s_,"Horizontal",x(s),x(r),x(d),x(h)))]}function j(t,n){return n||(n="thickness"),e(R.bn,"LineH",{width:16,height:16,strokeWidth:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:L(n,t),contextClick:L(n,t)})}function B(t,n){return n||(n="dash"),e(R.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:L(n,t),contextClick:L(n,t)})}function F(){return[e("ContextMenuButton",e(R.s_,"Horizontal",j(1),j(2),j(3),j(4))),e("ContextMenuButton",e(R.s_,"Horizontal",B(null),B([2,4]),B([4,4])))]}function N(t,n){return n||(n="figure"),e(R.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:t,margin:1,background:"transparent",mouseEnter:function(e,t){return t.fill="dodgerblue"},mouseLeave:function(e,t){return t.fill="lightgray"},click:L(n,t),contextClick:L(n,t)})}function G(t){return e(R.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function C(t){var n="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return 0===t?n="M0 0 M16 16 M0 8 L16 8":2===t&&(n="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),e(R.bn,{geometryString:n,margin:2,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:L("dir",t),contextClick:L("dir",t)})}function z(t){var n=function(e,n){e.handled=!0,e.diagram.model.commit((function(e){var a=n.part.adornedPart;e.set(a.data,t?"toSpot":"fromSpot",R.z6.stringify(R.z6.AllSides)),(t?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(R.bn,{width:12,height:12,fill:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:n,contextClick:n})}function k(t,n){var a=0,o=R.z6.RightSide;t.equals(R.z6.Top)?(a=270,o=R.z6.TopSide):t.equals(R.z6.Left)?(a=180,o=R.z6.LeftSide):t.equals(R.z6.Bottom)&&(a=90,o=R.z6.BottomSide),n||(a-=180);var g=function(e,t){e.handled=!0,e.diagram.model.commit((function(e){var a=t.part.adornedPart;e.set(a.data,n?"toSpot":"fromSpot",R.z6.stringify(o)),(n?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(R.bn,{alignment:t,alignmentFocus:t.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:a,background:"transparent",mouseEnter:function(e,t){return t.background="dodgerblue"},mouseLeave:function(e,t){return t.background="transparent"},click:g,contextClick:g})}a.current=new R.S0(o.current,{padding:20,grid:e(R.s_,"Grid",e(R.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:function(e){e.diagram.commandHandler.addTopLevelParts(e.diagram.selection,!0)||e.diagram.currentTool.doCancel()},commandHandler:e(O),"clickCreatingTool.archetypeNodeData":{text:"未命名",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:function(e){var t=e.subject;t.location=t.location.copy().snapToGridPoint(e.diagram.grid.gridOrigin,e.diagram.grid.gridCellSize),setTimeout((function(){e.diagram.commandHandler.editTextBlock()}),20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:function(e){e.subject,setTimeout((function(){e.diagram.commandHandler.editTextBlock()}))},LinkRelinked:function(e){e.parameter.part.invalidateConnectedLinks();var t=e.subject;e.diagram.toolManager.linkingTool.isForwards?t.toNode.invalidateConnectedLinks():t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),a.current.nodeTemplate=e(R.NB,"Auto",{locationSpot:R.z6.Center,locationObjectName:"SHAPE",desiredSize:new R.$u(120,60),minSize:new R.$u(40,40),resizable:!0,resizeCellSize:new R.$u(10,10),rotatable:!0},new R.KX("location","loc",R.E9.parse).makeTwoWay(R.E9.stringify),new R.KX("desiredSize","size",R.$u.parse).makeTwoWay(R.$u.stringify),e(R.bn,{name:"SHAPE",fill:s,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.z6.AllSides,toSpot:R.z6.AllSides},new R.KX("figure"),new R.KX("fill"),new R.KX("stroke","borderColor"),new R.KX("strokeWidth","thickness"),new R.KX("strokeDashArray","dash")),e(R.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(R.al,{margin:1,textAlign:"center",overflow:R.al.OverflowEllipsis,editable:!0},new R.KX("text").makeTwoWay(),new R.KX("stroke","color"))),a.current.nodeTemplate.toolTip=e("ToolTip",e(R.s_,"Vertical",{maxSize:new R.$u(200,NaN)},e(R.al,{font:"bold 10pt sans-serif",textAlign:"center"},new R.KX("text")),e(R.al,{font:"10pt sans-serif",textAlign:"center"},new R.KX("text","details")))),a.current.nodeTemplate.selectionAdornmentTemplate=e(R.uz,"Spot",e(R.Vm,{padding:10}),f(R.z6.Top,"TriangleUp"),f(R.z6.Left,"TriangleLeft"),f(R.z6.Right,"TriangleRight"),f(R.z6.Bottom,"TriangleDown"),v({alignment:new R.z6(.75,0)})),a.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(R.s_,"Horizontal",N("Rectangle"),N("RoundedRectangle"),N("Ellipse"),N("Diamond"))),e("ContextMenuButton",e(R.s_,"Horizontal",N("Parallelogram2"),N("ManualOperation"),N("Procedure"),N("Cylinder1"))),e("ContextMenuButton",e(R.s_,"Horizontal",N("Terminator"),N("CreateRequest"),N("Document"),N("TriangleDown"))),y(),b(),F()),a.current.groupTemplate=e(R.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:R.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:function(e,t){t.addMembers(t.diagram.selection,!0)||t.diagram.currentTool.doCancel()},avoidable:!1},new R.KX("location","loc",R.E9.parse).makeTwoWay(R.E9.stringify),e(R.s_,"Auto",{name:"BODY"},e(R.bn,{parameter1:10,fill:s,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:R.z6.AllSides,toSpot:R.z6.AllSides},new R.KX("fill"),new R.KX("stroke","color"),new R.KX("strokeWidth","thickness"),new R.KX("strokeDashArray","dash")),e(R.Vm,{background:"transparent",margin:20})),e(R.al,{alignment:R.z6.Top,alignmentFocus:R.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new R.KX("text"),new R.KX("stroke","color"))),a.current.groupTemplate.selectionAdornmentTemplate=e(R.uz,"Spot",e(R.s_,"Auto",e(R.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(R.Vm,{margin:1.5})),v({alignment:R.z6.TopRight,alignmentFocus:R.z6.BottomRight})),a.current.groupTemplate.contextMenu=e("ContextMenu",y(),b(),F()),a.current.linkTemplate=e(R.rU,{layerName:"Foreground",routing:R.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new R.KX("fromSpot","fromSpot",R.z6.parse),new R.KX("toSpot","toSpot",R.z6.parse),new R.KX("fromShortLength","dir",(function(e){return e>=1?10:0})),new R.KX("toShortLength","dir",(function(e){return e>=1?10:0})),new R.KX("points").makeTwoWay(),e(R.bn,{strokeWidth:2},new R.KX("stroke","color"),new R.KX("strokeWidth","thickness"),new R.KX("strokeDashArray","dash")),e(R.bn,{segmentIndex:0,segmentOffset:new R.E9(15,0),segmentOrientation:R.rU.OrientAlong,alignmentFocus:R.z6.Right,figure:"circle",width:10,strokeWidth:0},new R.KX("fill","color"),new R.KX("visible","dir",(function(e){return 1===e}))),e(R.bn,{segmentIndex:-1,segmentOffset:new R.E9(-10,6),segmentOrientation:R.rU.OrientPlus90,alignmentFocus:R.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.KX("fill","color"),new R.KX("visible","dir",(function(e){return e>=1})),new R.KX("width","thickness",(function(e){return 7+3*e})),new R.KX("height","thickness",(function(e){return 7+3*e})),new R.KX("segmentOffset","thickness",(function(e){return new R.E9(-15,4+1.5*e)}))),e(R.bn,{segmentIndex:0,segmentOffset:new R.E9(15,-6),segmentOrientation:R.rU.OrientMinus90,alignmentFocus:R.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new R.KX("fill","color"),new R.KX("visible","dir",(function(e){return 2===e})),new R.KX("width","thickness",(function(e){return 7+3*e})),new R.KX("height","thickness",(function(e){return 7+3*e})),new R.KX("segmentOffset","thickness",(function(e){return new R.E9(-15,4+1.5*e)}))),e(R.al,{alignmentFocus:new R.z6(0,1,-4,0),editable:!0},new R.KX("text").makeTwoWay(),new R.KX("stroke","color"))),a.current.linkTemplate.selectionAdornmentTemplate=e(R.uz,e(R.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:G(2)},new R.KX("pathPattern","thickness",G)),v({alignmentFocus:new R.z6(0,0,-6,-4)})),a.current.linkTemplate.contextMenu=e("ContextMenu",b(),F(),e("ContextMenuButton",e(R.s_,"Horizontal",C(0),C(1),C(2))),e("ContextMenuButton",e(R.s_,"Horizontal",e(R.s_,"Spot",z(!1),k(R.z6.Top,!1),k(R.z6.Left,!1),k(R.z6.Right,!1),k(R.z6.Bottom,!1)),e(R.s_,"Spot",{margin:new R.Zt(0,0,0,2)},z(!0),k(R.z6.Top,!0),k(R.z6.Left,!0),k(R.z6.Right,!0),k(R.z6.Bottom,!0)))));var A=new R.YI(g.current,{maxSelectionCount:1,linkTemplate:e(R.rU,{locationSpot:R.z6.Center,selectionAdornmentTemplate:e(R.uz,"Link",{locationSpot:R.z6.Center},e(R.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(R.bn,{toArrow:"Standard",stroke:null}))},{routing:R.rU.AvoidsNodes,curve:R.rU.JumpOver,corner:5,toShortLength:4},new R.KX("points"),e(R.bn,{isPanelMain:!0,strokeWidth:2}),e(R.bn,{toArrow:"Standard",stroke:null})),model:new R.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(D()(R.bn.getFigureGenerators().toArray().map((function(e){return{text:"未命名",size:"100 100",figure:e.key,fill:"white",stroke:"#666",borderColor:"#000"}})))))});a.current.addDiagramListener("TextEdited",(function(e){var t,n=e.subject.part,o=null===(t=document.activeElement)||void 0===t?void 0:t.value;"string"==typeof o&&""===o.trim()&&a.current.model.commit((function(e){e.set(n.data,"text","未命名"),a.current.commandHandler.stopCommand()}),"increment")})),A.nodeTemplate=e(R.NB,"Auto",{locationSpot:R.z6.Center},new R.KX("location","location",R.E9.parse).makeTwoWay(R.E9.stringify),e(R.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 R.KX("stroke").makeTwoWay(),new R.KX("fill").makeTwoWay(),new R.KX("figure")),e(R.al,{margin:new R.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new R.$u(16,16),maxSize:new R.$u(10,NaN),textAlign:"center",editable:!0},new R.KX("key").makeTwoWay())),setTimeout((function(){a.current.grid=e(R.s_,"Grid",e(R.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(R.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),a.current.grid.visible=!0,a.current.grid.gridCellStroke="darkgray",a.current.grid.gridCellStrokeWidth=1}),300),window.myDiagrams=a.current,a.current}()}),500),l(c+1),function(){a.current=null}}),[]),(0,u.jsx)("div",{ref:d,className:r.current?"".concat(K," body-overflow-initial"):"body-overflow-initial",children:(0,u.jsx)(G.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!c,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,u.jsxs)(C.Z,{children:[(0,u.jsx)(U.Z,{flex:1,children:"插入流程图"}),(0,u.jsx)(U.Z,{onClick:function(){var e=a.current.selection.first();if(r.current=!r.current,document.activeElement&&e){var t,n=null===(t=document.activeElement)||void 0===t||null===(t=t.value)||void 0===t?void 0:t.trim();"string"==typeof n&&a.current.model.commit((function(t){t.set(e.data,"text",n||"未命名"),a.current.commandHandler.stopCommand()}),"increment")}l(c+1)},children:(0,u.jsx)("span",{className:"current c-blue mr30",style:{fontWeight:400},children:"展开/收起"})})]}),onCancel:t,children:(0,u.jsxs)("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Y,children:[(0,u.jsxs)("div",{style:{display:"flex",height:"100%"},children:[(0,u.jsxs)("div",{style:{width:"300px",height:"100%"},children:[(0,u.jsx)("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"},children:"图形库"}),(0,u.jsx)("div",{style:{height:"calc(100% - 50px)"},className:H,ref:g})]}),(0,u.jsx)("div",{style:{flex:1,position:"relative"},children:(0,u.jsx)("div",{ref:o,style:{height:"80vh"}})})]}),(0,u.jsx)("div",{className:"tr",children:(0,u.jsx)(b.ZP,{size:"large",onClick:S,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},V=n(5112),q=n(88897),X=V.ZP.Group,Q={margin:"0 8px"},J=function(e){var t=e.callback,n=e.onCancel;return(0,u.jsxs)(x.Z,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:function(e){t(e)},children:[(0,u.jsxs)("div",{className:"flex-container",style:{alignItems:"baseline"},children:[(0,u.jsx)("span",{style:Q,children:"单元格数:"}),(0,u.jsx)("span",{style:Q,children:"行数"}),(0,u.jsx)(x.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,u.jsx)(q.Z,{})}),(0,u.jsx)("span",{style:Q,children:"列数"}),(0,u.jsx)(x.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,u.jsx)(q.Z,{})})]}),(0,u.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,u.jsx)("span",{style:Q,children:"对齐方式:"}),(0,u.jsx)(x.Z.Item,{name:"align",children:(0,u.jsxs)(X,{children:[(0,u.jsx)(V.ZP,{value:"default",children:(0,u.jsx)("i",{className:"fa fa-align-justify"})}),(0,u.jsx)(V.ZP,{value:"left",children:(0,u.jsx)("i",{className:"fa fa-align-left"})}),(0,u.jsx)(V.ZP,{value:"center",children:(0,u.jsx)("i",{className:"fa fa-align-center"})}),(0,u.jsx)(V.ZP,{value:"right",children:(0,u.jsx)("i",{className:"fa fa-align-right"})})]})})]}),(0,u.jsxs)("div",{className:"flex-container flex-end",children:[(0,u.jsx)(b.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,u.jsx)(b.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(47503),te=n.n(ee),ne=(0,h.forwardRef)((function(e,t){var n=e.use3d,a=e.width,o=e.height,g=e.callback,r=(e.showSaveButton,(0,h.useRef)()),d=(0,h.useRef)(),s=(0,h.useState)(!1),m=i()(s,2),c=m[0],l=m[1],S=(0,h.useRef)({id:r,appName:"graphing",width:a||1e3,height:o||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,h.useEffect)((function(){d.current=new(te())(S.current,!0),window.onload=function(){d.current.inject("applet_container")}}),[]);var P=function(){var e=window.ggbApplet.getPNGBase64(1,!0,72);return g&&g(e),e};return(0,h.useEffect)((function(){S.current.appName=c?"3D":"graphing",d.current.inject("applet_container")}),[c]),(0,h.useEffect)((function(){l(n)}),[n]),(0,h.useImperativeHandle)(t,(function(){return{getImgData:P}})),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:r}),(0,u.jsxs)(C.Z,{align:"middle",children:[(0,u.jsx)(U.Z,{flex:1,children:(0,u.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:c,onChange:function(e){return l(e)}})}),(0,u.jsx)(U.Z,{children:(0,u.jsx)(b.ZP,{size:"large",onClick:P,style:{zIndex:8,marginTop:10},type:"primary",children:"保存到编辑器"})})]})]})})),ae=n(46246),oe=n(8591),ge="link",ie="upload-image",re="add-flowchart",de="draw-image",he="code-block",se="add-table",me="------------",ce={default:me,left:":".concat(me),center:":".concat(me,":"),right:"".concat(me,":")},le=n(4027);var ue="@▁▁@",Se=["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 Pe(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}var we=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",pe=d()(d()({},we+"-B","bold"),we+"-I","italic"),fe=d()(d()(d()(d()(d()(d()(d()(d()({},ge,"添加链接"),he,"添加代码块"),ie,"添加图片"),de,"添加画图"),re,"插入流程图"),se,"添加表格"),"maths-latex","数学图像"),"inline-latex","LATEX公式"),ve=function(e){var t=e.defaultValue,n=void 0===t?"":t,a=e.onChange,g=e.width,r=void 0===g?"100%":g,s=e.height,P=void 0===s?400:s,w=e.miniToolbar,p=void 0!==w&&w,f=e.isFocus,x=void 0!==f&&f,y=e.watch,b=e.insertTemp,j=e.mode,C=void 0===j?"markdown":j,z=e.id,A=void 0===z?"markdown-editor-id":z,T=e.showResizeBar,M=void 0!==T&&T,E=e.noStorage,I=void 0!==E&&E,D=e.showNullButton,R=void 0!==D&&D,Z=e.showNullProgramButton,O=void 0!==Z&&Z,U=e.hidetoolBar,_=void 0!==U&&U,H=e.fullScreen,Y=void 0!==H&&H,K=e.onBlur,V=e.onCMBeforeChange,q=e.onFullScreen,X=e.className,Q=void 0===X?"":X,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,me=void 0!==te&&te,we=e.disabledFill,ve=void 0!==we&&we,Le=e.placeholder,xe=void 0===Le?"":Le,ye=e.values,be=void 0===ye?"":ye,je=e.extraUse,Be=(0,h.useState)(null),Fe=i()(Be,2),Ne=Fe[0],Ge=Fe[1],Ce=(0,h.useState)(n),ze=i()(Ce,2),ke=ze[0],Ae=ze[1],Te=(0,h.useState)(y),Me=i()(Te,2),Ee=Me[0],Ie=Me[1],De=(0,h.useState)(Y),Re=i()(De,2),Ze=Re[0],Oe=Re[1],Ue=(0,h.useState)(""),_e=i()(Ue,2),He=_e[0],Ye=_e[1],Ke=(0,h.useState)(0),We=i()(Ke,2),Ve=We[0],qe=We[1],Xe=(0,h.useState)(P),Qe=i()(Xe,2),Je=Qe[0],$e=Qe[1],et=(0,h.useState)(!1),tt=i()(et,2),nt=(tt[0],tt[1]),at=(0,h.useState)(0),ot=i()(at,2),gt=ot[0],it=ot[1],rt=(0,h.useState)(0),dt=i()(rt,2),ht=dt[0],st=dt[1],mt=(0,h.useRef)(),ct=(0,h.useRef)(),lt=(0,h.useRef)(),ut=(0,h.useRef)();(0,h.useEffect)((function(){var e=window.scrollY||window.pageYOffset;Ae(be),null==Ne||Ne.setValue(be),window.scrollTo(0,e)}),[be]),(0,h.useEffect)((function(){null==q||q(Ze)}),[Ze]),(0,h.useEffect)((function(){if(mt.current){var e=function(e,n){if(!ee){var a=n.clipboardData;if(a){var o=a.types.toString(),g=a.items;if("Files"===o||a.types.indexOf("Files")>-1){if(n.preventDefault(),"stex"==C)return;try{var i,r=g[1];"file"===(null===(i=g[0])||void 0===i?void 0:i.kind)&&(r=g[0]);var d=r.getAsFile(),h=d.name.split(".").pop();(0,N.I)(d,(function(e){var n,a,o;e.id?(null==d||null===(n=d.type)||void 0===n?void 0:n.indexOf("image"))>-1?t.replaceSelection(".concat(e.content_type,")")):(null==d||null===(a=d.type)||void 0===a?void 0:a.indexOf("video"))>-1?t.replaceSelection('<video width="100%" controls src="/api/attachments/'.concat(e.id,'"></video>')):(null==d||null===(o=d.type)||void 0===o?void 0:o.indexOf("pdf"))>-1?t.replaceSelection('<a href="/api/attachments/'.concat(e.id,"?type=").concat(d.type,'&disposition=inline" target="_blank">').concat(d.name,"</a>")):Se.includes(h)?t.replaceSelection('<a href="/api/attachments/'.concat(e.id,'?type=office&disposition=inline" target="_blank">').concat(d.name,"</a>")):t.replaceSelection("[".concat(d.name,"](/api/attachments/").concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}))}catch(n){oe.ZP.warning("请使用chrome浏览器粘贴")}return!0}return!0}return!0}n.preventDefault()},t=m().fromTextArea(mt.current,{mode:C,lineNumbers:!p,lineWrapping:!0,value:n,autoCloseTags:!0,autoCloseBrackets:!0});return t.on("keyup",(function(e,n){8===n.keyCode&&(""==e.getValue()?t.setOption("placeholder",xe):t.setOption("placeholder",null))})),t.on("keydown",(function(e,t){if(8===t.keyCode){var n=function(e,t){var n=e.getDoc(),a=n.getCursor(),o=n.getLine(a.line),g=o.charAt(a.ch-1),i=o.lastIndexOf("@▁@",a.ch),r=o.lastIndexOf("@▁▁@",a.ch),d=i>r?i:r,h=i>r?3:4;if(-1===ue.indexOf(g))return null;if(console.log("change1:",t,e,o,a,d,i,r,g),d>=0&&a.ch-d<5){var s=d+h;return n.replaceRange("",{line:a.line,ch:d},{line:a.line,ch:s}),{line:a.line,ch:s}}return null}(e);n&&t.preventDefault()}})),x&&t.focus(),t.on("paste",e),me&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Ge(t),function(){t.off("paste",e)}}}),[]);var St=(0,h.useCallback)((function(){ct.current}),[Je,ct,Ze]);(0,h.useEffect)((function(){if(Ne){var e=function(){var e=new c.Z((function(e){var t,n=o()(e);try{for(n.s();!(t=n.n()).done;){var a=t.value;(a.target.offsetHeight>0||a.target.offsetWidth>0)&&(St(),Ne.setSize("100%","100%"),Ne.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(mt.current.parentElement),e}();return function(){var t,n;null!==(t=mt.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=mt.current)||void 0===n?void 0:n.parentElement)}}}),[Ne,St]),(0,h.useEffect)((function(){if(Ne){for(var e=[],t=function(){var t=i()(a[n],2),o=t[0],g=t[1],r=d()({},o,(function(){Pt(g)}));e.push(r),Ne.addKeyMap(r)},n=0,a=Object.entries(pe);n<a.length;n++)t();return function(){for(var t=0,n=e;t<n.length;t++){var a=n[t];Ne.removeKeyMap(a)}}}}),[Ne]),(0,h.useEffect)((function(){Y!==Ze&&Oe(Y)}),[Y]),(0,le.Z)((function(){if(!I&&Ve>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(A);e>=Ve+1e4&&(!t||t!==ke)&&(window.sessionStorage.setItem(A,ke),nt(!0))}}),1e4),(0,h.useEffect)((function(){Ie(y)}),[Ne,y]),(0,h.useEffect)((function(){Ne&&x&&Ne.focus()}),[Ne,x]),(0,h.useEffect)((function(){if(Ee&&Ne){var e=function(e){var t=e.target;if(ut.current){var n=t.scrollTop/t.scrollHeight;ut.current.scrollTop=ut.current.scrollHeight*n}},t=Ne.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[Ne,Ee]),(0,h.useEffect)((function(){if(Ne&&V){var e=function(e,t){V(e,t)};return Ne.on("beforeChange",e),function(){Ne.off("beforeChange",e)}}}),[Ne,V]),(0,h.useEffect)((function(){if(Ne&&K){var e=function(){K(Ne.getValue())};return Ne.on("blur",e),function(){Ne.off("blur",e)}}}),[Ne,K]),(0,h.useEffect)((function(){if(Ne){var e=function(e,t){var n=e.getValue();Ae(n),qe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),a&&(O?a(n,Lt(n)):a(n))};return Ne.on("change",e),function(){Ne.off("change",e)}}}),[Ne,a]),(0,h.useEffect)((function(){if(Ne)if(null==n)Ne.setValue(""),Ae("");else{var e=window.scrollY||window.pageYOffset;n!==Ne.getValue()&&(Ne.setValue(n),Ae(n),Ne.setCursor(me?1:Ne.lineCount(),0),window.scrollTo(0,e))}}),[Ne,n]);var Pt=(0,h.useCallback)((function(e){var t=Ne.getCursor(),n=Ne.getSelection(),a=n.split("\n");switch(e){case"bold":return Ne.replaceSelection("**"+n+"**"),""===n&&Ne.setCursor(t.line,t.ch+2),Ne.focus();case"italic":return Ne.replaceSelection("*"+n+"*"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"code":return Ne.replaceSelection("`"+n+"`"),""===n&&Ne.setCursor(t.line,t.ch+1),Ne.focus();case"inline-latex":return Ye("inline-latex"),Ne.focus();case"latex":return Ne.replaceSelection("```latex\n"+n+"\n```"),Ne.setCursor(t.line+1,n.length+1),Ne.focus();case"line-break":return Ne.replaceSelection("<br/>\n"),Ne.focus();case"list-ul":return""===n?Ne.replaceSelection("- "+n):Ne.replaceSelection(a.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),Ne.focus();case"list-ol":return""===n?Ne.replaceSelection("1. "+n):Ne.replaceSelection(a.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),Ne.focus();case"add-null-ch":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("▁"),Ne.focus();case"add-signal":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("@▁@"),Ne.focus();case"add-multiple":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection(ue),Ne.focus();case"inster-template-1":return""===n&&Ne.setCursor(t.line,t.ch),Ne.replaceSelection("\n**模板标题**\n模板正文内容,可输入文本内容和粘贴图片等操作"),Ne.focus();case"eraser":return Ne.setValue(""),Ne.focus();case"trigger-watch":return Ie(!Ee),Ne.focus();case"trigger-full-screen":return Oe(!Ze),Ne.focus();case ge:return void Ye(ge);case he:return void Ye(he);case ie:return void Ye(ie);case de:return void Ye(de);case"maths-latex":return void Ye("maths-latex");case re:return void Ye(re);case se:return void Ye(se);default:throw new Error}}),[Ne,Ee,Ze]),wt=(0,h.useCallback)((function(e,t){var n,a,o,g,i;switch(Ye(""),He){case ge:var r=e.title,d=e.link;return Ne.replaceSelection("[".concat(r,"](").concat(d,")")),Ne.focus();case he:var h=e.language,s=e.content;return Ne.replaceSelection(["```"+h,s,"```"].join("\n")),Ne.focus();case"maths-latex":for(var m=atob(e),c=new Uint8Array(m.length),l=0;l<m.length;l++)c[l]=m.charCodeAt(l);var u=new Blob([c],{type:"image/png"});(0,N.I)(u,(function(e){e.id?Ne.replaceSelection(".concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":Ne.replaceSelection("`$$"+e+"$$`");break;case ie:case de:case"add-flowchart":var S=e.src,P=e.alt,w=t,p=null==w||null===(n=w.name)||void 0===n||null===(n=n.split("."))||void 0===n||null===(a=n.pop)||void 0===a?void 0:a.call(n);return(null==w||null===(o=w.type)||void 0===o?void 0:o.indexOf("image"))>-1||null==w||!w.type?P?Ne.replaceSelection(".concat(S,' "').concat(P,'" )')):Ne.replaceSelection("")):(null==w||null===(g=w.type)||void 0===g?void 0:g.indexOf("video"))>-1?Ne.replaceSelection('<video width="100%" controls src="'.concat(S,'"></video>')):(null==w||null===(i=w.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?Ne.replaceSelection('<a href="'.concat(S,"?type=").concat(w.type,'&disposition=inline" target="_blank">').concat(w.name,"</a>")):Se.includes(p)?Ne.replaceSelection('<a href="'.concat(S,'?type=office&disposition=inline" target="_blank">').concat(w.name,"</a>")):Ne.replaceSelection("[".concat(w.name,"](").concat(S,")")),Ne.focus();case se:for(var f=e.row,v=e.col,L=e.align,x="\n",y=0;y<f;y++){for(var b=[],j=[],B=0;B<v;B++)1===y&&j.push(ce[L]),b.push(" ");1===y&&(x+="| ".concat(j.join(" | ")," |\n")),x+="| ".concat(b.join(1===v?"":" | ")," |\n")}return Ne.replaceSelection(x+"\n"),Ne.focus();default:throw new Error}}),[Ne,He]),pt=(0,h.useMemo)((function(){switch(He){case ge:return(0,u.jsx)(B,{callback:wt,onCancel:ft});case he:return(0,u.jsx)(F.Z,{callback:wt,onCancel:ft});case ie:return(0,u.jsx)(N.Z,{callback:wt,onCancel:ft});case re:return(0,u.jsx)(W,{callback:wt,onCancel:ft});case se:return(0,u.jsx)(J,{callback:wt,onCancel:ft});case"maths-latex":return(0,u.jsx)(ne,{showSaveButton:!0,callback:wt});case"inline-latex":return(0,u.jsx)(ae.Z,{showSaveButton:!0,callback:wt});default:return null}}),[He]);function ft(){Ye("")}(0,h.useEffect)((function(){if(lt.current){var e=function(e){o=!0,g=e.pageY},t=function(){o=!1},n=function(e){if(o){var t=e.pageY-g;t<0&&(t=0),t>300&&(t=300),$e(P+t+"px")}},a=lt.current,o=!1,g=0;return a.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){a.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[Ne,lt]),(0,h.useEffect)((function(){$e(P)}),[P]);var vt={width:Pe(r),height:Pe(Je)},Lt=((0,h.useMemo)((function(){if(Ve){var e=new Date(Ve),t=e.getHours(),n=e.getMinutes(),a=e.getSeconds();return n=n<10?"0"+n:n,a=a<10?"0"+a:a,"".concat(t=t<10?"0"+t:t,":").concat(n,":").concat(a)}return 0}),[Ve]),function(e){var t=[];if(O){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,a){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,h.useEffect)((function(){fe[He]&&He!==de&&He!==re&&setTimeout((function(){var e=document.getElementsByClassName("markdown-popup-form")[0],t=window.innerWidth/2-e.offsetWidth/2,n=window.innerHeight/2-e.offsetHeight/2;it(t),st(n)}),0)}),[He]);var xt=function(e,t,n,a){var o=document.body.clientHeight,g=document.body.clientWidth;return!(e<20&&n>e||e>g-20&&n<e||t<20&&a>t||t>o-20&&a<t)||(document.body.onmousemove=null,document.body.onmouseup=null,!1)};return(0,u.jsxs)(h.Fragment,{children:[(0,u.jsx)("div",{className:"markdown-editor-wrapper",ref:ct,children:(0,u.jsxs)("div",{className:"markdown-editor-container ".concat(Q," ").concat(Ee?"on-preview":""," ").concat(p?"mini":""," ").concat(Ze?"full-screen":""),style:vt,children:[(0,u.jsx)(v,{insertTemp:b,watch:Ee,fullScreen:Ze,showNullButton:R,showNullProgramButton:O,onActionCallback:Pt,hidetoolBar:_,extraUse:je}),(0,u.jsxs)("div",{className:"markdown-editor-body",children:[(0,u.jsx)("div",{className:"codemirror-container",children:(0,u.jsx)("textarea",{ref:mt,placeholder:xe})}),Ee?(0,u.jsxs)("div",{ref:ut,className:"preview-container",children:["stex"===C&&(0,u.jsx)(S,{value:ke}),"stex"!==C&&(0,u.jsx)(l.Z,{disabledFill:ve,showProgramFill:O,value:ke})]}):null]})]})}),M?(0,u.jsx)("a",{ref:lt,className:"editor-resize"}):null,He===de&&(0,u.jsx)(k,{callback:wt,onCancel:ft}),He===re&&(0,u.jsx)(W,{callback:wt,onCancel:ft}),(0,u.jsx)(L.Z,{children:fe[He]&&He!==de&&He!==re?(0,u.jsx)(G.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:gt,top:ht},title:(0,u.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-gt,n=e.clientY-ht;document.body.onmousemove=function(e){var a=e.clientX-t,o=e.clientY-n,g=document.getElementsByClassName("markdown-popup-form")[0],i=window.innerWidth-g.offsetWidth,r=window.innerHeight-g.offsetHeight;a=Math.max(0,Math.min(a,i)),o=Math.max(0,Math.min(o,r)),xt(e.clientX,e.clientY,t,n)&&(it(a),st(o))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:fe[He]}),open:!0,onCancel:ft,footer:null,destroyOnClose:!0,width:He===re?"1200px":null,height:He===re?"80vh":null,className:"markdown-popup-form",children:pt}):null})]})}},48347:function(e,t,n){"use strict";n.d(t,{Z:function(){return w},I:function(){return f}});var a=n(82242),o=n.n(a),g=n(79800),i=n.n(g),r=n(78241),d=n(8591),h=n(92832),s=n(3113),m=n(37318),c=n(59301),l=n(37712),u=r.Z.useForm,S={width:280,marginRight:10},P={labelCol:{span:5},wrapperCol:{span:19}},w=function(e){var t=e.callback,n=e.onCancel,a=u(),g=i()(a,1)[0],m=(0,c.useRef)();function w(e,t){-1!==e.status?g.setFieldsValue({src:"/api/attachments/".concat(e.id),type:t.type}):d.ZP.error(e.message)}return(0,l.jsxs)(r.Z,o()(o()({form:g},P),{},{className:"upload-image-panel",onFinish:function(e){t(e,m.current)},style:{width:470,overflow:"hidden"},children:[(0,l.jsx)(r.Z.Item,{label:"图片地址",required:!0,children:(0,l.jsxs)("div",{className:"flex-container",children:[(0,l.jsx)(r.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,l.jsx)(h.Z,{style:S})}),(0,l.jsx)(p,{onFileChange:function(e){var t=e.target.files[0];m.current=t,f(t,w)}})]})}),(0,l.jsx)(r.Z.Item,{label:"图片描述",name:"alt",children:(0,l.jsx)(h.Z,{style:{width:264}})}),(0,l.jsxs)(r.Z.Item,{style:{textAlign:"right"},children:[(0,l.jsx)(s.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,l.jsx)(s.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function p(e){var t=e.onFileChange;return(0,l.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,l.jsx)("input",{type:"file",onChange:t})]})}function f(e,t){if(!e)throw new String("没有文件");var n=new FormData;n.append("editormd-image-file",e),n.append("file_param_name","editormd-image-file"),n.append("byxhr","true");var a=new window.XMLHttpRequest;a.withCredentials=!0,a.addEventListener("load",(function(n){t(JSON.parse(n.target.responseText),e)}),!1),a.addEventListener("error",(function(e){console.error(e)}),!1),a.open("POST","".concat(m.KI,"/api/attachments.json")),a.send(n)}},52322:function(e,t,n){"use strict";n(7543);var a=n(57809),o=n(78673),g=n(37712),i=a.default.Option;t.Z=function(e){var t=e.isTheoretical,n=e.onFontSizeChange,r=e.cmFontSize,d=e.cmCodeMode,h=(e.autoFormat,e.onCodeModeChange),s=e.onTabToSpace,m=(e.onAutoFormat,e.formatDocument),c=e.className,l=void 0===c?"":c,u=e.tabToSpace,S=e.children,P=e.code_editor,w=e.challenge;return(0,g.jsxs)("div",{className:"tpi-code-setting ".concat(l),children:[(0,g.jsx)("h3",{children:"代码格式"}),(0,g.jsxs)("section",{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"显示模式"}),(0,g.jsxs)(a.default,{bordered:!1,size:"small",value:d,onChange:h,children:[(0,g.jsx)(i,{value:"vs",children:"白色背景"}),(0,g.jsx)(i,{value:"vs-dark",children:"黑色背景"})]})]}),!t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"字体大小"}),(0,g.jsxs)(a.default,{bordered:!1,size:"small",value:r,onChange:n,children:[(0,g.jsx)(i,{value:12,children:"12px"}),(0,g.jsx)(i,{value:14,children:"14px"}),(0,g.jsx)(i,{value:16,children:"16px"}),(0,g.jsx)(i,{value:18,children:"18px"}),(0,g.jsx)(i,{value:20,children:"20px"}),(0,g.jsx)(i,{value:22,children:"22px"})]})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"Tab转换"}),(0,g.jsx)(o.Z,{checked:u,onChange:s})]}),(0,g.jsx)("div",{className:"file-item",onClick:m,children:(0,g.jsx)("b",{style:{cursor:"pointer"},children:"格式化代码"})})]})]}),!t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h3",{children:"快捷键"}),(0,g.jsxs)("section",{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"保存代码"}),(0,g.jsx)("span",{children:"Ctrl + S"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"唤出快捷键列表"}),(0,g.jsx)("span",{children:"F1 / Alt + F1"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"左右缩进"}),(0,g.jsx)("span",{children:"Ctrl + ]/["})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"跳到匹配的括号"}),(0,g.jsx)("span",{children:"Ctrl + Shift + \\"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"转到行首"}),(0,g.jsx)("span",{children:"Home"})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"转到行尾"}),(0,g.jsx)("span",{children:"End"})]})]}),S]}),!t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("h3",{children:"快捷键"}),(0,g.jsxs)("section",{children:[(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"实训难易度"}),(0,g.jsx)("span",{children:{1:"简单",2:"中等",3:"困难"}[null==w?void 0:w.difficulty]})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"实验环境"}),(0,g.jsx)("span",{children:null==P?void 0:P.name})]}),(0,g.jsxs)("div",{className:"file-item",children:[(0,g.jsx)("b",{children:"实验容器网络"}),(0,g.jsx)("span",{children:null!=P&&P.close_internet?"关闭外网":"开启外网"})]})]})]})]})}},36485:function(e,t,n){"use strict";var a=n(31468),o=n.n(a),g=n(7557),i=n.n(g),r=n(41498),d=n.n(r),h=n(79800),s=n.n(h),m=n(59301),c=n(31797),l=n(88897),u=n(78241),S=n(43418),P=n(71418),w=n(2595),p=n(92832),f=n(95237),v=n(43604),L=n(3113),x=n(23201),y=n(61186),b=n.n(y),j=n(79265),B=n(95972),F=n(62984),N=n(64118),G=n(13158),C=n(37712),z=(c.Z.Countdown,function(e){var t=e.value,n=e.onChange,a=e.MaxMinutes;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"p10 mb20",style:{background:"#F6F7F9"},children:["1.只有当考试截止时间晚于学生的交卷截止时间时,才支持对学生进行延时操作;",(0,C.jsx)("br",{}),"2.每个学生的最大可延时时间=考试截止时间-学生当前的交卷截止时间。",(0,C.jsx)("br",{})]}),(0,C.jsx)(l.Z,{value:t,onChange:n,min:0,precision:0,max:a,style:{width:"100%"},placeholder:"最大可延长时间为".concat(a,"分钟,在学生剩余时间基础上延时"),addonAfter:"分钟"})]})});t.Z=(0,j.connect)((function(e){return{exercise:e.exercise}}))((function(e){var t,n,a,g,r=e.exercise,h=e.successCb,c=e.dispatch,l=(0,j.useParams)(),y=u.Z.useForm(),k=s()(y,1)[0],A=u.Z.useWatch("time",k),T=(0,m.useState)(!1),M=s()(T,2),E=M[0],I=M[1],D=(0,m.useRef)(),R=r.actionTabs,Z=(0,m.useState)(),O=s()(Z,2),U=O[0],_=O[1],H=(0,G.U)(x.n7,{id:l.categoryId}),Y=s()(H,4),K=Y[1],W=Y[2],V=Y[3],q=(0,G.U)(x.Cd,{}),X=s()(q,3),Q=X[1],J=X[2];(0,m.useEffect)((function(){"student-unlock"===r.actionTabs.key&&(I(!1),k.resetFields())}),[r.actionTabs.key]);var $=function(){var e=d()(i()().mark((function e(){var t,n,a,o,g,r,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.validateFields();case 2:if(g=k.getFieldsValue(),I(!0),!("no"!==(null==R||null===(t=R.exerciseParams)||void 0===t?void 0:t.ip_limit)||null!=R&&null!==(n=R.exerciseParams)&&void 0!==n&&n.ip_bind_type)){e.next=7;break}return e.next=7,new Promise(function(){var e=d()(i()().mark((function e(t){var n,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,F.y)({ip_limit:null==R||null===(n=R.exerciseParams)||void 0===n?void 0:n.ip_limit,ip_bind:null==R||null===(a=R.exerciseParams)||void 0===a?void 0:a.ip_bind_type});case 2:return D.current=e.sent,e.abrupt("return",t());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 7:return e.next=9,(0,x.ZD)(null==R||null===(a=R.exerciseParams)||void 0===a?void 0:a.id,{exercise_user_id:null==R||null===(o=R.exerciseParams)||void 0===o?void 0:o.exercise_user_id,unlock_key:g.unlock_key,time:g.time,ip:D.current});case 9:if(0!==e.sent.status){e.next=18;break}if(!h){e.next=15;break}return c({type:"exercise/setActionTabs",payload:{}}),h(),e.abrupt("return");case 15:s=null==R?void 0:R.exerciseParams,(0,B.nr)({inner_ip:s.inner_ip,public_ip:s.public_ip,open_camera:s.open_camera,ip_limit:s.ip_limit,ip_bind:s.ip_bind,ip_bind_type:s.ip_bind_type,exercise_tips:s.exercise_tips,exerciseId:s.id,screen_open:s.screen_open,screen_num:s.screen_num,screen_sec:s.screen_sec,coursesId:l.coursesId,login:null===(r=(0,N.eY)())||void 0===r?void 0:r.login,history:history,identity_verify:s.identity_verify,open_phone_video_recording:s.open_phone_video_recording,current_status:s.current_status}),c({type:"exercise/setActionTabs",payload:{}});case 18:I(!1);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ee=[{title:"IP地址",dataIndex:"ip",key:"ip",render:function(e){return(0,C.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"浏览器",dataIndex:"browser",key:"browser",render:function(e){return(0,C.jsx)("span",{className:e.indexOf("异常")>-1?"c-red":"c-green",children:e})}},{title:"上次登录时间",dataIndex:"last_login_time",key:"last_login_time"}],te=(null==R||null===(t=R.exerciseParams)||void 0===t?void 0:t.errorMessage)&&"object"===o()(null==R||null===(n=R.exerciseParams)||void 0===n?void 0:n.errorMessage);(0,m.useEffect)((function(){"student-unlock"===r.actionTabs.key&&d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J(l);case 2:return t=e.sent,e.next=5,W({});case 5:t.status||_(t);case 6:case"end":return e.stop()}}),e)})))()}),[r.actionTabs.key]);var ne=(null==U?void 0:U.exercise)||{},ae=ne.time,oe=ne.end_time,ge=null!=V&&V.user_end_time?b()(null==V?void 0:V.user_end_time).add(1,"minutes"):b()(),ie=b()(null==V?void 0:V.user_total_end_time)>ge?Math.round(b().duration(b()(null==V?void 0:V.user_total_end_time).diff(ge.startOf("minute"))).asMinutes()):0,re=((null==V?void 0:V.student_left_minutes)||0)+(A||0);return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(S.Z,{width:514,centered:!0,closable:!(null==R||null===(a=R.exerciseParams)||void 0===a||!a.unlockClose),maskClosable:!1,keyboard:!1,maskStyle:{background:"#000"},title:"提示",open:"student-unlock"===r.actionTabs.key,footer:null,onCancel:function(){c({type:"exercise/setActionTabs",payload:{}})},children:(0,C.jsxs)(P.Z,{spinning:K||Q,children:[te&&(0,C.jsx)("div",{style:{marginBottom:16},children:"该账号已经存在异常情况,若非本人操作,请联系监考老师说明情况。 "}),!te&&(0,C.jsx)("div",{style:{marginBottom:16},children:"系统检测到您在考试时中途退出,现已将考试锁定。如需继续进行考试, 请尽快联系课堂老师进行解锁!"}),te&&(0,C.jsx)(w.Z,{className:"mb20",pagination:{hideOnSinglePage:!0},dataSource:[(null==R||null===(g=R.exerciseParams)||void 0===g?void 0:g.errorMessage)||{}],columns:ee}),(0,C.jsx)("div",{className:"",children:(0,C.jsxs)(u.Z,{form:k,layout:"vertical",autoComplete:"off",children:[(0,C.jsx)(u.Z.Item,{label:"考试解锁码",name:"unlock_key",rules:[{required:!0,message:"请输入考试解锁码"}],children:(0,C.jsx)(p.Z.Password,{autoComplete:"off",placeholder:"请输入考试解锁码",visibilityToggle:!1})}),-1!==ae?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(u.Z.Item,{name:"time",label:(0,C.jsxs)("span",{children:["延长时间(",(0,C.jsxs)("span",{style:{color:"#9096A3"},children:["当前考试截止时间",b()(null==V?void 0:V.user_total_end_time).format("YYYY-MM-DD HH:mm")]}),")"]}),children:(0,C.jsx)(z,{MaxMinutes:ie})}),(0,C.jsxs)("div",{className:"mb20",style:{color:"#FA6400"},children:["该学生剩余考试时间:",(0,C.jsx)("span",{className:"ml5",children:K||Q?"--":re}),"分钟",0!==re&&(null==V?void 0:V.user_end_time)&&(0,C.jsxs)("span",{children:[",交卷截止时间:",(0,C.jsx)("span",{className:"ml5",children:b()(null==V?void 0:V.user_end_time).add(A||0,"m").format("YYYY-MM-DD HH:mm:ss")})]})]})]}):(0,C.jsxs)("span",{style:{color:"#F6A53B"},children:[" 当前考试未限制考生答题时长,考试截止时间为 ",b()(oe).format("YYYY-MM-DD HH:mm")]})]})}),(0,C.jsxs)(f.Z,{justify:"space-between",align:"middle",children:[(0,C.jsx)(v.Z,{}),(0,C.jsx)(v.Z,{children:(0,C.jsx)(L.ZP,{loading:E,onClick:$,children:"进入考试"})})]})]})})})}))},19828:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var a=n(7557),o=n.n(a),g=n(41498),i=n.n(g),r=n(79800),d=n.n(r),h=n(59301),s=n(79265),m=n(43418),c=n(3113),l=n(71418),u=n(47824),S=n(14163),P=n(31775),w=n(24334),p=n(61186),f=n.n(p),v=n(37712),L=function(e){var t=e.open,n=e.onClose,a=(0,h.useState)(void 0),g=d()(a,2),r=g[0],p=g[1];console.log((0,s.useLocation)(),33);(0,s.useLocation)();(0,h.useEffect)((function(){if(t){var e=function(){var e=i()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,u.X6)(t);case 2:n=e.sent,p(n.data);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[t]);var L=r||{},x=L.status,y=L.created_at,b=L.code,j=(L.name,L.language),B=L.pass_sets_count,F=L.set_count,N=L.error_msg,G=L.output,C=L.input,z=L.expected_output,k=(L.execute_memory,L.user,L.execute_time),A=L.input_file_url,T=L.output_file_url,M=L.is_file,E=L.expected_output_file_url;return(0,v.jsx)(m.Z,{open:t,width:1e3,onCancel:function(){return n(!1)},footer:(0,v.jsx)(c.ZP,{type:"primary",onClick:function(){return n(!1)},children:"关闭"}),centered:!0,children:(0,v.jsx)(l.Z,{spinning:!r,delay:500,children:(0,v.jsx)("div",{className:"record-detail-info",children:r?(0,v.jsx)(v.Fragment,{children:(0,v.jsxs)("div",{className:"record-detail-body",children:[(0,v.jsx)("h2",{children:" 提交记录 "}),(0,v.jsxs)("ul",{className:"record-info",children:[(0,v.jsxs)("li",{children:[" 状态:",(0,v.jsx)("span",{className:0===x?"c-green":"c-red",children:S.Im[x]})," "]}),(0,v.jsxs)("li",{children:[" 提交时间:",(0,v.jsx)("span",{children:f()(y).format("YYYY-MM-DD HH:mm:ss")})," "]}),(0,v.jsxs)("li",{children:[" 语言:",(0,v.jsx)("span",{children:j})," "]}),(0,v.jsxs)("li",{children:[" 执行用时:",(0,v.jsxs)("span",{children:[1e3*k,"ms"]})," "]}),(0,v.jsxs)("li",{children:[" ","".concat(B," / ").concat(F," 个通过的测试用例")," "]})]}),(0,S.gZ)({status:x,error_msg:N,execute_time:k,output:G,input:C,expected_output:z,input_file_url:A,output_file_url:T,is_file:M,expected_output_file_url:E}),(0,v.jsx)("h2",{children:" 提交的内容 "}),(0,v.jsx)(P.ZP,{height:"200px",width:"100%",language:null==j?void 0:j.toLocaleLowerCase(),value:w.Base64.decode(b),options:{readOnly:!0}})]})}):null})})})}},47284:function(e,t,n){"use strict";n.d(t,{Im:function(){return T},Y4:function(){return M}});var a=n(79800),o=n.n(a),g=n(7557),i=n.n(g),r=n(41498),d=n.n(r),h=n(85573),s=n.n(h),m=n(59301),c=n(92832),l=n(8591),u=n(3113),S=n(13991),P=n(24334),w=n(86653),p=n(21791),f=n(501),v=n(95972),L=n(34376),x=n(82710),y=n(79265),b=n(19828),j=n(34837),B=n(47824),F=n(2872),N=n(30472),G=n(92310),C=n.n(G),z=n(52230),k=n(37712),A=c.Z.TextArea,T=s()(s()(s()(s()(s()(s()({},S.h.NOMATCH,"测试用例结果不匹配"),S.h.OK,"调试通过"),2,"调试超时"),3,"调试pod失败"),4,"编译失败"),5,"执行失败");function M(e){var t=e.status,n=e.error_msg,a=e.output,o=e.input,g=e.expected_output,r=e.is_file,h=e.input_file_url,s=e.output_file_url,c=e.expected_output_file_url,l=e.setMonacoValue,u=e.setData,p=(0,m.useRef)(),y=(0,m.useRef)(),b=(0,m.useRef)(),j=null,B={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch((0,m.useEffect)((function(){if(a&&!r&&p.current){var e=new L.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});e.open(p.current);var t=(0,v.pp)(P.Base64.decode(a));e.write(t),e.setOption("theme",{background:"#1e1e1e"})}if(o&&!r&&y.current){var n=new L.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});n.open(y.current),n.write((0,v.pp)(o)),n.setOption("theme",{background:"#1e1e1e"})}if(g&&!r&&b.current){var i=new L.Terminal({fontSize:14,letterSpacing:1,cols:83,rows:10});i.open(b.current),i.write((0,v.pp)(P.Base64.decode(g))),i.setOption("theme",{background:"#1e1e1e"})}}),[a]),t){case S.h.NOMATCH:j=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("p",{className:"c-red",children:"实际输出:"}),!r&&(0,k.jsx)("div",{ref:p}),r&&(0,k.jsx)("div",{style:B,children:(0,k.jsx)("a",{style:{fontSize:"16px"},onClick:d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.ZP)(s,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});case 2:t=e.sent,l(t),setTimeout((function(){u(s)}),200);case 5:case"end":return e.stop()}}),e)}))),children:a})}),(0,k.jsx)("p",{className:"c-red",children:"预期输出:"}),!r&&(0,k.jsx)("div",{ref:b}),r&&(0,k.jsx)("div",{style:B,children:(0,k.jsx)("a",{style:{fontSize:"16px"},onClick:d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(c,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 2:return t=e.sent,e.t0=l,e.next=6,t.text();case 6:e.t1=e.sent,(0,e.t0)(e.t1),setTimeout((function(){u(c)}),200);case 9:case"end":return e.stop()}}),e)}))),children:g})})]});break;case S.h.EXECUTEFAILURE:j=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{style:{border:"1px #F6F7F9 solid"},children:[(0,k.jsx)("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"},children:"最后执行的输入:"}),!r&&(0,k.jsx)(f.Z,{value:o,style:B}),r&&(0,k.jsx)("div",{style:B,children:(0,k.jsx)("a",{onClick:function(){return(0,v.LR)(h,o)},children:o})})]}),(0,k.jsxs)("div",{style:{border:"1px #F6F7F9 solid",marginTop:"10px"},children:[(0,k.jsx)("p",{style:{width:"100%",height:40,background:"#F6F7F9",lineHeight:"40px",color:"#666666",paddingLeft:"12px"},children:"执行出错信息:"}),(0,k.jsxs)("pre",{className:w.Z.error,style:{color:"#E30000",padding:"0 10px"},children:[P.Base64.decode(n),"111"]})]})]});break;case S.h.COMPILEFAILURE:j=(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("p",{children:"执行出错信息:"}),(0,k.jsx)("pre",{className:w.Z.error,children:P.Base64.decode(n)})]});break;case S.h.PODFAILURE:j=(0,k.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case S.h.TIMEOUT:j=(0,k.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,k.jsxs)(k.Fragment,{children:[" ",j," "]})}function E(e){var t=e.status,n=(e.error_msg,e.execute_time,e.output,e.input,e.expected_output,e.is_file,e.input_file_url,e.output_file_url,e.expected_output_file_url,null);switch(t){case S.h.OK:case S.h.NOMATCH:case S.h.EXECUTEFAILURE:case S.h.COMPILEFAILURE:n=(0,k.jsx)("div",{id:"outputResultRef",className:"h100"});break;case S.h.PODFAILURE:n=(0,k.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case S.h.TIMEOUT:n=(0,k.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,k.jsxs)(k.Fragment,{children:[" ",n," "]})}function I(e){var t=e.value,n=e.className;return(0,k.jsx)("span",{className:n,children:t})}t.ZP=function(e){var t=e.input,n=e.is_file,a=e.debuging,g=e.submitting,r=(e.executingMessage,e.debugResult),h=e.onChangeInput,s=e.onDebugCode,c=e.onSubmitCode,f=e.hack,v=e.user,G=e.submitResult,M=e.isWhiteTheme,D=e.topDispatch,R=(0,y.useSearchParams)(),Z=o()(R,1)[0],O=(0,y.useParams)(),U=(0,m.useState)(!1),_=o()(U,2),H=_[0],Y=_[1],K=(0,m.useState)(!1),W=o()(K,2),V=W[0],q=W[1],X=(0,m.useState)(1),Q=o()(X,2),J=Q[0],$=Q[1],ee=(0,m.useState)(!1),te=o()(ee,2),ne=te[0],ae=te[1],oe=(0,m.useState)(0),ge=o()(oe,2),ie=ge[0],re=ge[1],de=(0,m.useState)(!1),he=o()(de,2),se=he[0],me=he[1],ce=(0,m.useState)(""),le=o()(ce,2),ue=le[0],Se=le[1],Pe=(0,m.useState)(""),we=o()(Pe,2),pe=we[0],fe=we[1],ve=(0,m.useRef)(),Le=(0,m.useRef)(),xe=(0,m.useRef)(null),ye=(0,m.useRef)(null),be=(0,m.useRef)(null);console.log(G,"submitResult",O);var je=G||{},Be=je.status,Fe=je.id,Ne=je.input,Ge=je.output,Ce=je.expected_output,ze=je.is_file,ke=je.input_file_url,Ae=je.output_file_url,Te=je.expected_output_file_url,Me=je.error_msg;je.hack_sets;function Ee(){var e=document.getElementById("outputResultRef");if(e){var t,n=e.dataset.text;Le.current.reset(),Le.current.writeln(n);var a=document.getElementById("outputResultRef").offsetWidth-20,o=(null===(t=Le.current)||void 0===t||null===(t=t._core)||void 0===t||null===(t=t._renderService)||void 0===t||null===(t=t.dimensions)||void 0===t?void 0:t.actualCellWidth)||10,g=Math.ceil(a/o);Le.current.resize(g,Math.ceil(e.clientHeight/16))}}(0,m.useEffect)((function(){0===Be&&($(1),re(0))}),[Be,Fe]),(0,m.useEffect)((function(){var e=function(){var e=d()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,B.rX)(null==O?void 0:O.id,"submit");case 2:0===(null==(t=e.sent)?void 0:t.status)&&(null!=t&&t.data&&0!==(null==t||null===(n=t.data)||void 0===n?void 0:n.status)?(D({type:F.Types.SET_SUBMIT_RESULT,payload:{submitResult:null==t?void 0:t.data}}),$(2),re(320)):($(1),re(0)));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[null==O?void 0:O.id]),(0,m.useEffect)((function(){if(ve.current){var e=function(e){o=a.offsetHeight,g=!0,i=e.pageY,be.current.style.display="block"},t=function(){g=!1,be.current.style.display="none"},n=function(e){if(g){Ee();var t=i-e.pageY,n=o+t;if(n<0&&(n=0),n>window.innerHeight-150&&(n=window.innerHeight-150),1===J)return void re(n<=34?0:n);console.log(n,"resizeH"),re(n)}},a=xe.current,o=0,g=!1,i=0,r=document.getElementById("case-y-bar");return null==r||r.addEventListener("mousedown",e),document.addEventListener("mousemove",n),document.addEventListener("mouseup",t),function(){var a=document.getElementById("case-y-bar");null==a||a.removeEventListener("mousedown",e),document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",t)}}}),[ve,J]),(0,m.useEffect)((function(){var e=j.Z.subscribe("resize-move-bar",Ee);if("exercises"!==Z.get("type"))return document.addEventListener((0,z.gH)(),Ie),function(){document.removeEventListener((0,z.gH)(),Ie),e()}}),[]),(0,m.useEffect)((function(){}));var Ie=function(e){(0,z.vp)()||q(!1)},De=(0,m.useMemo)((function(){if(r){r.status;var e=r.output,t=r.error_msg;return setTimeout((function(){var n="",a=document.getElementById("outputResultRef");e?n=P.Base64.decode(e):t&&(n=P.Base64.decode(t)),Le.current=new L.Terminal({fontSize:14,theme:{background:"#181e2e"},rendererType:"dom"}),Le.current.open(a),Le.current.onKey((function(e){if("C"===e.domEvent.key.toLocaleUpperCase()&&e.domEvent.ctrlKey){var t;e.domEvent.preventDefault();var n=null===(t=Le.current)||void 0===t?void 0:t.getSelection();navigator.clipboard.writeText(n).then((function(){}))}})),a.dataset.text=n,Le.current.setOption("convertEol",!0),Ee()}),300),(0,k.jsx)(k.Fragment,{children:E(r)})}return null}),[r]);var Re=function(){var e=d()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.ZP)("/api/problems/".concat(t,"/start.json"),{method:"get",params:{hack_user_id:null==v?void 0:v.user_id}});case 2:(n=e.sent)&&(window.location.href="/myproblems/".concat(null==n?void 0:n.identifier).concat(window.location.search));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,k.jsxs)(m.Fragment,{children:[(0,k.jsxs)("div",{className:C()(w.Z.case,M&&w.Z.whiteCase),style:{height:ie},ref:xe,children:[(0,k.jsx)("div",{className:w.Z.fullMask,ref:be}),(0,k.jsx)("div",{className:w.Z["resize-y-bar"],id:"case-y-bar",ref:ve,draggable:!1,children:2===J&&(0,k.jsx)("i",{className:"iconfont icon-guangbiao",draggable:!1})}),1===J&&(ie<=34?(0,k.jsxs)("div",{onClick:function(){re(320)},className:w.Z.unfoldBtn,children:["控制台",(0,k.jsx)("i",{className:"iconfont icon-zhankai9 ml10 font12"})]}):(0,k.jsxs)("div",{onClick:function(){re(0)},className:w.Z.unfoldBtn,style:{borderRadius:"0px 0px 8px 8px",top:0},children:["控制台",(0,k.jsx)("i",{className:"iconfont icon-shouqi8 ml10 font12"})]})),(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{className:w.Z.caseHead,children:[(0,k.jsx)("div",{className:w.Z.dot}),(0,k.jsx)("div",{className:w.Z.text,children:1===J?"调试代码结果":"评测结果"}),2===J&&!g&&"number"==typeof Be&&(0,k.jsx)(k.Fragment,{children:Be===S.h.OK?(0,k.jsxs)("div",{className:w.Z.pass,children:[(0,k.jsx)("i",{className:"iconfont icon-tongguo font14 mr5"}),"评测通过"]}):(0,k.jsxs)("div",{className:w.Z.noPass,children:[(0,k.jsx)("i",{className:"iconfont icon-jinggao-3 font14 mr5"}),T[Be]]})}),(0,k.jsxs)("div",{className:w.Z.btns,children:[2===J&&!g&&(0,k.jsxs)(k.Fragment,{children:[Be!==S.h.OK&&(0,k.jsxs)("div",{onClick:function(){ze?navigator.clipboard.writeText(P.Base64.decode(Me)).then((function(){l.ZP.success("复制错误信息成功")})):navigator.clipboard.writeText(P.Base64.decode(Ge)).then((function(){l.ZP.success("复制错误信息成功")}))},children:[(0,k.jsx)("i",{className:"iconfont icon-fuzhi8"}),"复制错误信息"]}),(0,k.jsxs)("div",{onClick:function(){me(Fe)},children:[(0,k.jsx)("i",{className:"iconfont icon-danceng-xinjianwenjian"}),"显示详情"]})]}),"exercises"!==Z.get("type")&&(0,k.jsx)("div",{title:"展开/收缩",onClick:function(){return Y(!H),setTimeout((function(){Ee()}),300),void re(H?320:window.innerHeight-150)},children:(0,k.jsx)("i",{className:"iconfont icon-".concat(H?"suoxiao1":"fangda")})})]})]}),(0,k.jsx)("div",{style:{display:1===J?"block":"none"},children:a?(0,k.jsx)(p.Z,{style:{color:"#1976d2"},message:"服务启动中..."}):(0,k.jsx)("div",{style:{height:ie-34},children:(0,k.jsxs)("div",{className:w.Z.result,children:[(0,k.jsxs)("div",{className:w.Z.left,children:[(0,k.jsxs)("div",{className:w.Z.title,children:[(0,k.jsx)("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,k.jsx)("span",{children:"自定义测试用例"})]}),(0,k.jsx)("div",{className:w.Z.leftNode,children:(0,k.jsx)(A,{placeholder:"请输入自测用例(如果未填写,首次自测运行时,系统会自动填充第一个非隐藏的文本类型的测试用例)",value:n?"":t,onChange:h})})]}),(0,k.jsxs)("div",{className:w.Z.right,children:[(0,k.jsxs)("div",{className:w.Z.title,children:[(0,k.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),(0,k.jsx)("span",{children:"代码执行结果"})]}),(0,k.jsx)("div",{className:w.Z.node,children:r?De:(0,k.jsx)("p",{style:{color:"#8F96B1"},children:"请在左侧输入自定义测试用例的输入值,点击“调试代码”,即可生成代码执行结果"})})]})]})})}),(0,k.jsx)("div",{style:{display:2===J?"block":"none"},children:g?(0,k.jsx)(p.Z,{style:{color:"#1976d2"},message:"服务启动中..."}):(0,k.jsxs)("div",{style:{height:ie-34,display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,k.jsxs)("div",{ref:ye,className:w.Z.elseNode,children:[(0,k.jsxs)("div",{className:w.Z.nameWrap,children:[(0,k.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,k.jsx)("span",{children:"实际输入"})]}),(0,k.jsxs)("div",{className:w.Z.scroll,children:[(0,k.jsxs)("pre",{className:w.Z.scrollBox,style:ne?{height:V?"calc(100vh - 20px)":200}:{height:24,overflow:"hidden"},children:[!ze&&(0,k.jsx)(I,{value:Ne}),ze&&(0,k.jsx)("a",{style:{fontSize:"16px"},onClick:d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(ke,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 2:return t=e.sent,e.t0=fe,e.next=6,t.text();case 6:e.t1=e.sent,(0,e.t0)(e.t1),setTimeout((function(){Se(ke)}),200);case 9:case"end":return e.stop()}}),e)}))),children:Ne})]}),Ne&&(0,k.jsxs)("div",{className:w.Z.action,children:[(0,k.jsx)("span",{onClick:function(){return ae(!ne)},children:ne?"收起":"展开"}),"exercises"!==Z.get("type")&&(0,k.jsx)("i",{title:"全屏/退出全屏",onClick:function(){V?(q(!1),(0,z.BU)()):(q(!0),(0,z.Dj)(ye.current))},className:"iconfont icon-".concat(V?"suoxiao1":"fangda")})]})]})]}),(0,k.jsxs)("div",{className:w.Z.result,style:{flex:1,overflow:"hidden"},children:[(0,k.jsxs)("div",{className:w.Z.left,children:[(0,k.jsxs)("div",{className:w.Z.title,children:[(0,k.jsx)("i",{style:{color:"#00FA95"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,k.jsx)("span",{children:"预期输出"})]}),(0,k.jsx)("div",{className:w.Z.node,style:{background:"#1B2333",color:"#2ABD8C"},children:(0,k.jsxs)("pre",{children:[!ze&&(0,k.jsx)(I,{className:"mb10",value:Ce&&P.Base64.decode(Ce)||""}),ze&&(0,k.jsx)("a",{style:{fontSize:"16px"},onClick:d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(Te,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}});case 2:return t=e.sent,e.t0=fe,e.next=6,t.text();case 6:e.t1=e.sent,(0,e.t0)(e.t1),setTimeout((function(){Se(Te)}),200);case 9:case"end":return e.stop()}}),e)}))),children:Ce})]})})]}),(0,k.jsxs)("div",{className:w.Z.right,children:[(0,k.jsxs)("div",{className:w.Z.title,children:[(0,k.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),(0,k.jsx)("span",{children:"实际输出"})]}),(0,k.jsx)("div",{className:w.Z.node,style:{color:Be===S.h.OK?"#2ABD8C":"#FF2C29"},children:(0,k.jsxs)("pre",{children:[(4===Be||5===Be)&&(0,k.jsx)(I,{className:"mb10",value:Me&&P.Base64.decode(Me)||""}),4!=Be&&5!=Be&&(ze?(0,k.jsx)("a",{style:{fontSize:"16px"},onClick:d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.ZP)(Ae,{method:"Get",headers:{"Content-Type":"application/xml",Accept:"*/*"}});case 2:t=e.sent;try{fe(t)}catch(e){fe("")}setTimeout((function(){Se(Ae)}),200);case 5:case"end":return e.stop()}}),e)}))),children:Ge}):(0,k.jsx)(I,{className:"mb10",value:Ge&&P.Base64.decode(Ge)||""}))]})})]})]})]})})]})]}),(0,k.jsxs)("div",{className:C()(w.Z.footer,M&&w.Z.whiteFooter),style:{zIndex:100},children:[(null==f?void 0:f.is_program)&&(null==f?void 0:f.above_question)&&(0,k.jsx)(u.ZP,{className:"mr10",type:"primary",onClick:function(){return Re(null==f?void 0:f.above_question)},id:"oj-prev",ghost:!0,children:"上一题"}),(null==f?void 0:f.is_program)&&(null==f?void 0:f.under_question)&&(0,k.jsx)(u.ZP,{className:"mr10",type:"primary",onClick:function(){return Re(null==f?void 0:f.under_question)},id:"oj-next",ghost:!0,children:"下一题"}),(0,k.jsx)(u.ZP,{style:{border:"1px solid #2ABD8C",color:"#2ABD8C"},ghost:!0,disabled:a||g,loading:a,color:"#2ABD8C",className:"mr10",onClick:function(){$(1),re(320),s()},children:"调试代码"}),"8"!==Z.get("qtype")&&(0,k.jsx)(u.ZP,{className:w.Z.disabled,type:"primary",icon:(0,k.jsx)("i",{className:"iconfont icon-bofang1"}),loading:g,disabled:a||g,onClick:function(){$(2),re(320),c()},children:"评测并提交"})]}),(0,k.jsx)(b.Z,{onClose:me,open:se}),(0,k.jsx)(N.Z,{close:!0,data:ue,type:ue.length?"txt":"",onClose:function(){return Se("")},monacoEditor:{value:pe,language:"txt",onChange:function(){},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})]})}},2872:function(e,t,n){"use strict";n.r(t),n.d(t,{Types:function(){return Bt},default:function(){return Ct}});var a=n(39647),o=n.n(a),g=n(7557),i=n.n(g),r=n(41498),d=n.n(r),h=n(79800),s=n.n(h),m=n(82242),c=n.n(m),l=n(59301),u=n(79265),S=n(31797),P=n(43418),w=n(71418),p=n(3113),f=n(6848),v=n(95237),L=n(47824),x=n(23201),y=n(52230),b=n(9266),j=n(69423),B=n(80205),F=n(43428),N=n(31775),G=n(32552),C=n(64269),z=n(52322),k=n(37712),A={theme:(0,C.G)("ProgrammingCodeMode","vs-dark"),fontSize:(0,C.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,C.G)("cmTabToSpace",!0)},T=function(e){return e[e.set_font_size=0]="set_font_size",e[e.set_theme=1]="set_theme",e[e.on_tab_to_space=2]="on_tab_to_space",e[e.set_show_editor_setting=3]="set_show_editor_setting",e}(T||{});function M(e,t){switch(t.type){case T.set_show_editor_setting:return c()(c()({},e),{},{showEditorSetting:t.payload});case T.set_theme:return c()(c()({},e),{},{theme:t.payload});case T.set_font_size:return c()(c()({},e),{},{fontSize:t.payload});case T.on_tab_to_space:return c()(c()({},e),{},{tabToSpace:t.payload});default:throw new Error}}var E=function(e){var t=e.isLoading,n=e.value,a=e.onChange,o=e.language,g=e.onUpdateCode,i=e.ActionBarRender,r=e.setIsWhiteTheme,d=(0,l.useReducer)(M,A),h=s()(d,2),m=h[0],u=h[1],S=m.theme,P=m.fontSize,w=m.showEditorSetting,p=m.tabToSpace,f=(0,l.useRef)(),v=(0,l.useRef)();(0,l.useEffect)((function(){r("vs"===S)}),[S]);var L={onFontSizeChange:function(e){u({type:T.set_font_size,payload:e}),(0,C.t)("cmFontSize",e)},tabToSpace:p,cmFontSize:P,className:"oj",cmCodeMode:S,onTabToSpace:function(e){u({type:T.on_tab_to_space,payload:e}),(0,C.t)("cmTabToSpace",e)},onCodeModeChange:function(e){u({type:T.set_theme,payload:e}),(0,C.t)("ProgrammingCodeMode",e)}};var x={value:n,language:o,theme:S,options:{fontSize:P,insertSpaces:p},onChange:function(e){a(e),v.current=e,clearTimeout(f.current),f.current=setTimeout((function(){g(v.current)}),1e4)},onEditBlur:function(e){v.current&&g(v.current)}};return(0,k.jsxs)(l.Fragment,{children:[i((function(){u({type:T.set_show_editor_setting,payload:!0})})),(0,k.jsx)("div",{style:{flex:1,overflow:"hidden"},children:!t&&(0,k.jsx)(N.ZP,c()({},x))}),(0,k.jsx)(G.Z,{children:(0,k.jsx)(F.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:w,onClose:function(){u({type:T.set_show_editor_setting,payload:!1})},children:(0,k.jsx)(z.Z,c()({},L))})})]})},I=n(60141),D=n(24334),R=n(47284),Z="left-panel___SKGyd",O="tab-panel-body___gABdv",U="b1___QpbmK",_="s-navs___FXwOi",H="bg-white___kbZ6r",Y="active___QGOnZ",K="list___PXTsq",W="btns___F8yZK",V="drawer___xdGaT",q="tour___oMkVh",X="pagination___yDAjZ",Q=n(2595),J=n(25700),$=n(50023),ee=n(19828),te=n(61186),ne=n.n(te),ae=Q.Z.Column,oe=function(e){e.submitResult;var t=e.submitting,n=e.submitRecords,a=e.page,o=e.onPageChange,g=(e.topicId,(0,u.useSearchParams)()),i=s()(g,1)[0],r=n||{},d=r.records,h=r.records_count,m=(0,l.useState)(!1),c=s()(m,2),S=c[0],P=c[1],p="1"===i.get("type");return(0,k.jsxs)(w.Z,{spinning:t,tip:"评测中...",indicator:(0,k.jsx)($.Z,{style:{fontSize:24},spin:!0}),children:[(null==d?void 0:d.length)>0?(0,k.jsxs)(Q.Z,{dataSource:d,rowKey:"id",pagination:!1,children:[(0,k.jsx)(ae,{title:"提交时间",dataIndex:"created_at",render:function(e,t){return(0,k.jsxs)("span",{children:[" ",ne()(e).format("YYYY-MM-DD HH:mm:ss")]})}},"created_at"),(0,k.jsx)(ae,{title:"提交结果",dataIndex:"status",render:function(e,t){var n;return(0,k.jsx)("span",{className:"".concat(0===e?"c-green":"c-red"," current"),onClick:function(){P(t.id)},children:null===(n=R.Im[e])||void 0===n?void 0:n.replace("调试","评测")})}},"status"),(0,k.jsx)(ae,{title:"执行用时 (".concat(p?"MS":"S",")"),dataIndex:"execute_time",render:function(e){return e?p?e:e/1e3:""}},"execute_time"),(0,k.jsx)(ae,{title:"内存消耗(".concat(p?"KB":"MB",")"),dataIndex:"execute_memory",render:function(e){return e?p?e:parseFloat((e/1024).toFixed(2)):""}},"execute_memory"),(0,k.jsx)(ae,{title:"语言",dataIndex:"language"},"language"),(0,k.jsx)(ae,{title:"操作",dataIndex:"status",render:function(e,t){return(0,k.jsx)("span",{className:"c-light-primary current",onClick:function(){P(t.id)},children:"查看"})}},"status")]}):(0,k.jsx)("div",{style:{height:300,width:"100%"}}),(0,k.jsx)(ee.Z,{onClose:P,open:S}),h>15?(0,k.jsx)(J.Z,{className:X,current:a,pageSize:15,total:h,onChange:o}):null]})},ge=n(63017),ie=n(12563),re="desc___iOAgd",de="info___GPALq",he="info_tag___CFEn8",se=n(501),me={1:{name:"简单",color:"#52c41a"},2:{name:"中等",color:"#faad14"},3:{name:"困难",color:"#f5222d"}},ce=function(e){var t=e.hack,n=t.language,a=t.difficult,o=t.time_limit,g=t.description,i=(0,u.useSearchParams)(),r=s()(i,1)[0],d=me[a];return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("ul",{className:de,children:[(0,k.jsxs)("li",{children:["编程语言 ",(0,k.jsx)("b",{className:he,children:n})]}),(0,k.jsxs)("li",{children:[(0,k.jsx)("span",{className:"ml20",children:"难度"})," ",(0,k.jsx)(ie.Z,{color:d.color,children:d.name})]}),(0,k.jsxs)("li",{children:[(0,k.jsx)("span",{className:"ml20",children:"单个测试集评测时长限制"})," ",(0,k.jsxs)("span",{style:{color:"#333333"},children:[o,"秒"]})]})]}),"8"===r.get("qtype")?(0,k.jsx)(se.Z,{value:g,showProgramFill:!0,className:re}):(0,k.jsx)(se.Z,{value:g,className:re})]})},le={},ue=function(e){var t=e.hack;e.current_user;return(0,k.jsx)("div",{className:le.answer,children:null!=t&&t.answer_text?(0,k.jsx)(se.Z,{style:{padding:"13px 0"},value:(null==t?void 0:t.answer_text)||""}):(0,k.jsx)(ge.Z,{customText:"暂未设置参考答案~"})})},Se=n(34837),Pe=n(37205),we=n.n(Pe),pe=n(82710);function fe(e,t){return(0,pe.U2)("/problems/".concat(e,"/comments.json"),{page:t,limit:10})}function ve(e){return(0,pe.v_)("/discusses/".concat(e,"/plus.json"),{container_type:"Discuss",type:1})}function Le(e,t,n){return(0,pe.v_)("/problems/".concat(e,"/comments/reply.json"),{comments:{content:n,parent_id:t}})}function xe(e,t){return(0,pe.v_)("/problems/".concat(e,"/comments.json"),{comments:{content:t}})}function ye(e,t,n){return(0,pe.v_)("/problems/".concat(e,"/comments/").concat(t,"/hidden.json"),n)}function be(e,t){return(0,pe.IV)("/problems/".concat(e,"/comments/").concat(t))}var je=n(53408);function Be(e){var t=e.author;return(0,k.jsx)("a",{href:"/users/".concat(t.login),target:"_blank",children:(0,k.jsx)("img",{alt:"用户头像",height:"50",style:{borderRadius:"50%"},src:"".concat(j.Z.IMG_SERVER,"/images/").concat(t.image_url),width:"50"})})}function Fe(e){var t=e.data,n=e.index,a=e.parentDiscussIndex,o=e.user,g=e.onSetActionType,i=t.author,r=t.can_delete,d=t.content,h=t.id,s=t.time;var m=o.admin||r||i.user_id===o.user_id;return(0,k.jsxs)("div",{className:"discuss-item-container second-discuss ",children:[(0,k.jsx)(Be,{author:i}),(0,k.jsxs)("section",{children:[(0,k.jsxs)("div",{className:"discuss-info",children:[(0,k.jsx)("a",{href:"/users/".concat(i.login),target:"_blank",children:i.name}),(0,k.jsx)("span",{className:"grey",children:s}),(0,k.jsx)("div",{className:"btn-group",style:{marginBottom:0},children:m?(0,k.jsx)("a",{onClick:function(){g({id:h,index:n,type:"delete-discuss",parentDiscussIndex:a,message:"确定要删除该条回复吗"})},title:"删除",children:(0,k.jsx)("i",{className:"iconfont icon-shanchu"})}):null})]}),(0,k.jsx)(se.Z,{className:"discuss-content",value:d})]})]})}var Ne=function(e){var t=e.user,n=e.data,a=e.index,o=e.onPlusDiscuss,g=e.onSetActionType,i=e.activeDiscussIndex,r=e.onReplyDiscuss,d=e.onSetActiveDiscussIndex,h=n.content,s=n.children,m=n.hidden,c=n.id,l=n.praise_count,u=n.time,S=n.user_praise,P=n.can_delete,w=n.author;var p=t.admin||t.user_id===w.user_id;return(0,k.jsxs)("div",{className:"discuss-item-container",children:[(0,k.jsx)(Be,{author:w}),(0,k.jsxs)("section",{children:[(0,k.jsxs)("div",{className:"discuss-info",children:[(0,k.jsxs)("a",{href:"/users/".concat(w.login),target:"_blank",children:[" ",w.name," "]}),(0,k.jsx)("span",{className:"grey",children:u})]}),(0,k.jsx)(se.Z,{className:"discuss-content",value:h}),s&&s.length>0?(0,k.jsx)("div",{className:"reply-discuss-container",children:s.map((function(e,n){return(0,k.jsx)(Fe,{data:e,index:n,user:t,onSetActionType:g,parentDiscussIndex:a},e.id)}))}):null,(0,k.jsxs)("div",{className:"btn-group",children:[p?(0,k.jsx)("a",{onClick:function(){g({id:c,index:a,params:{hidden:m?"0":"1"},type:"hidden-discuss",message:m?"确定要取消隐藏该条回复吗":"确定要隐藏该条回复吗"})},title:m?"取消隐藏":"隐藏评论",children:(0,k.jsx)("i",{className:m?"iconfont icon-yincangbiyan":"fa fa-eye"})}):null,!P||s&&0!=s.length?null:(0,k.jsx)("a",{onClick:function(){g({id:c,index:a,type:"delete-discuss",message:"确定要删除该条回复吗"})},title:"删除",children:(0,k.jsx)("i",{className:"iconfont icon-shanchu"})}),(0,k.jsxs)("a",{onClick:function(){d(c)},title:"回复",children:[" ",(0,k.jsx)("i",{className:"iconfont icon-huifu1"})," "]}),(0,k.jsxs)("a",{onClick:function(){o(c,!S,a)},className:S?"c-orange":"",children:[(0,k.jsx)("i",{className:S?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),(0,k.jsx)("span",{children:l||""})]})]}),(0,k.jsx)(je.Z,{id:c,activeDiscussIndex:i,onReplyDiscuss:r})]})]},c)},Ge=n(43851),Ce="dis-input-editor-container___nKGxx",ze="active___tmt7T",ke="input-mask___epEle",Ae="text-area___Vry8W",Te="tip-container___plpA3",Me="md-container___u85aq",Ee="btn-send___deQ5v",Ie=n(85654),De=function(e){var t=e.user_praise,n=e.praise_count,a=e.praisePlus,o=e.onCreateDiscuss,g=e.discuss_count,r=(0,l.useState)(!1),h=s()(r,2),m=h[0],c=h[1],u=(0,l.useState)(""),S=s()(u,2),P=S[0],w=S[1];function p(){c(!1)}function f(){return(f=d()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o(P),w(""),c(!1);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,k.jsxs)("div",{className:"".concat(Ce," ").concat(m?ze:""," "),children:[(0,k.jsxs)("div",{className:m?"hide ".concat(Ae):Ae,children:[(0,k.jsx)("input",{placeholder:"说点什么",onClick:function(){c(!0)}}),(0,k.jsxs)("a",{children:[" ",(0,k.jsx)("i",{className:"iconfont icon-huifu1"})," ",g," "]}),(0,k.jsxs)("a",{className:"c-light-black",onClick:a,title:t?"取消点赞":"点赞",children:[(0,k.jsx)("i",{className:"mr3 ".concat(t?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"," ")}),n?(0,k.jsx)("span",{children:n}):""]})]}),m?(0,k.jsx)("div",{className:ke,onClick:p}):null,(0,k.jsxs)("div",{className:m?Me:"".concat(Me," hide"),children:[(0,k.jsx)(Ie.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:P,height:240,onChange:function(e){w(e)}}),(0,k.jsx)("div",{className:Te,onClick:p,children:(0,k.jsx)("a",{className:Ee,onClick:function(){return f.apply(this,arguments)},children:" 发送 "})})]})]})},Re={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null},Ze=function(e){return e[e.GET_DISCUSSES=0]="GET_DISCUSSES",e[e.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",e[e.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",e[e.PLUS_DISCUSS=3]="PLUS_DISCUSS",e[e.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",e[e.SET_PAGE=5]="SET_PAGE",e[e.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",e}(Ze||{});function Oe(e,t){switch(t.type){case Ze.SHOW_DISCUSSES_LOADING:return c()(c()({},e),{},{loading:!0});case Ze.GET_DISCUSSES:case Ze.TOP_OR_DOWN_DISCUSS:case Ze.SET_ACTION_TYPE:case Ze.PLUS_DISCUSS:return c()(c()({},e),t.payload);case Ze.SET_PAGE:return c()(c()({},e),{},{page:t.payload});case Ze.ACTIVE_DISCUSS_INDEX:return c()(c()({},e),t.payload);default:throw new Error}}var Ue=function(e){var t=e.user,n=e.identifier,a=e.hack,o=e.onTriggerPraise,g=e.activeIndex,r=(0,l.useReducer)(Oe,Re),h=s()(r,2),m=h[0],c=h[1],u=(m.loading,m.page),S=m.data,w=m.count,p=m.actionType,f=m.activeDiscussIndex,v=(0,l.useCallback)(d()(i()().mark((function e(){var t,a,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c({type:Ze.SHOW_DISCUSSES_LOADING}),e.next=3,fe(n,u);case 3:t=e.sent,a=t.comments,o=t.disscuss_count,c({type:Ze.GET_DISCUSSES,payload:{data:a,count:o,loading:!1}});case 6:case"end":return e.stop()}}),e)}))),[u,n]);function L(e){c({type:Ze.SET_ACTION_TYPE,payload:{actionType:e}})}function x(e){c(f===e?{type:Ze.ACTIVE_DISCUSS_INDEX,payload:{activeDiscussIndex:null}}:{type:Ze.ACTIVE_DISCUSS_INDEX,payload:{activeDiscussIndex:e}})}function y(e,t,n){return b.apply(this,arguments)}function b(){return(b=d()(i()().mark((function e(t,n,a){var o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ve(t);case 3:o=e.sent,S[a].user_praise=n,S[a].praise_count=o.praise_count,c({type:Ze.PLUS_DISCUSS,payload:{data:we()(S)}}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}function j(){return(j=d()(i()().mark((function e(){var t,a,o,g,r,d,h,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=p.id,a=p.params,o=p.type,g=p.index,r=p.parentDiscussIndex,"hidden-discuss"!==o){e.next=6;break}return e.next=4,ye(n,t,a);case 4:r?S[r].children[g].hidden=1==a.hidden:S[g].hidden=1==a.hidden,c({type:Ze.SET_ACTION_TYPE,payload:{actionType:null,data:we()(S)}});case 6:if("delete-discuss"!==o){e.next=31;break}return e.next=9,be(n,t);case 9:if(!r&&0!==r){e.next=22;break}d=S[r].children,h=d.length-1;case 12:if(!(h>=0)){e.next=19;break}if(d[h].id!==t){e.next=16;break}return d.splice(h,1),e.abrupt("break",19);case 16:h--,e.next=12;break;case 19:S[r].children=d,e.next=30;break;case 22:s=S.length-1;case 23:if(!(s>=0)){e.next=30;break}if(S[s].id!==t){e.next=27;break}return S.splice(s,1),e.abrupt("break",30);case 27:s--,e.next=23;break;case 30:c({type:Ze.SET_ACTION_TYPE,payload:{actionType:null,data:we()(S)}});case 31:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function B(e,t){return F.apply(this,arguments)}function F(){return(F=d()(i()().mark((function e(t,a){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Le(n,t,a);case 3:v(),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.log(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function N(){return(N=d()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c({type:Ze.SHOW_DISCUSSES_LOADING}),e.next=3,xe(n,t);case 3:v();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,l.useEffect)((function(){"2"===g&&v()}),[n,u,g]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("div",{className:"discuss-panel",children:[0===S.length?(0,k.jsx)(ge.Z,{}):S.map((function(e,n){return(0,k.jsx)(Ne,{onReplyDiscuss:B,onPlusDiscuss:y,onSetActiveDiscussIndex:x,onSetActionType:L,data:e,index:n,user:t,activeDiscussIndex:f})})),w>10?(0,k.jsx)("div",{className:"pagination-container",children:(0,k.jsx)(J.Z,{showQuickJumper:!0,onChange:function(e){c({type:Ze.SET_PAGE,payload:e})},current:u,total:w})}):null]}),(0,k.jsx)(De,{user_praise:a.user_praise,praise_count:a.praises_count,praisePlus:o,discuss_count:a.comments_count,onCreateDiscuss:function(e){return N.apply(this,arguments)}}),(0,k.jsxs)(G.Z,{children:[(0,k.jsx)(P.Z,{centered:!0,title:"提示",open:!!p,onOk:function(){return j.apply(this,arguments)},onCancel:function(){c({type:Ze.SET_ACTION_TYPE,payload:{actionType:null}})},children:(0,k.jsx)("p",{children:p?p.message:""})}),(0,k.jsx)(Ge.Z,{})]})]})},_e=n(57809),He=n(92832),Ye=n(65615),Ke={},We=function(e){var t=e.hack;e.current_user;return(0,k.jsx)("div",{className:Ke.answer,children:null!=t&&t.analysis?(0,k.jsx)(se.Z,{style:{padding:"13px 0"},value:(null==t?void 0:t.analysis)||""}):(0,k.jsx)(ge.Z,{customText:"暂未设置题目解析~"})})},Ve={hackSets:"hackSets___tw75g",collapseWrapper:"collapseWrapper___TteKi",panelHeader:"panelHeader___Y_Xjq",rateInput:"rateInput___y1qUi",open:"open___xrixP",close:"close___jb6D2",uploadTableWrapper:"uploadTableWrapper___U9Tz_"},qe=n(36381),Xe=n(43604),Qe=n(78241),Je=n(88897),$e=n(17721),et=He.Z.TextArea,tt=qe.Z.Panel,nt=function(e){var t=e.data,n=e.hack;return console.log(t,n,"data"),null!=n&&n.is_file?(0,k.jsx)($e.Y2,{disabled:!0,className:Ve.uploadTableWrapper,showScore:!n.test_set_score,data:t,isProgramHomework:!0}):(0,k.jsx)("div",{className:Ve.hackSets,children:null==t?void 0:t.map((function(e,t){return(0,k.jsx)(qe.Z,{accordion:!0,bordered:!1,defaultActiveKey:0===t&&e.id,className:Ve.collapseWrapper,expandIcon:function(e){var t=e.isActive;return(0,k.jsx)("i",{className:"iconfont icon-weizhankai ".concat(t?Ve.open:Ve.close),style:{fontSize:14,transition:"all .2s"}})},children:(0,k.jsxs)(tt,{header:(0,k.jsxs)(v.Z,{align:"middle",justify:"space-between",wrap:!1,children:[(0,k.jsx)(Xe.Z,{className:Ve.panelHeader,children:(0,k.jsxs)("span",{children:["测试用例",t+1]})}),(0,k.jsx)(Xe.Z,{flex:1,children:(0,k.jsx)(v.Z,{align:"middle",justify:"end",wrap:!1,children:!(null!=n&&n.test_set_score)&&(0,k.jsxs)(Xe.Z,{className:Ve.rateInput,children:[(0,k.jsx)("span",{className:"mr20",children:"评分占比"}),(0,k.jsx)("div",{children:(0,k.jsx)(Qe.Z.Item,{noStyle:!0,children:(0,k.jsx)(Je.Z,{value:null==e?void 0:e.score,className:Ve.baseFormItem,min:0,max:100,disabled:!0})})}),(0,k.jsx)("span",{className:"ml10",children:"%"})]})})})]}),children:[(0,k.jsx)(Qe.Z.Item,{label:"输入",labelCol:{span:24},children:(0,k.jsx)(et,{readOnly:!0,value:null==e?void 0:e.input,rows:4})}),(0,k.jsx)(Qe.Z.Item,{label:"输出",labelCol:{span:24},children:(0,k.jsx)(et,{readOnly:!0,value:null==e?void 0:e.output,rows:4})})]},e.id)},t)}))})},at="tabs___p2jIb",ot="tabWarp___mt05L",gt="tab___IYGdQ",it="active___fQMlP",rt="content___GWVJY",dt=(0,l.forwardRef)((function(e,t){var n,a=e.data,o=void 0===a?[]:a,g=(0,l.useState)(),i=s()(g,2),r=i[0],d=i[1],h=o.filter((function(e){return e.show}));(0,l.useEffect)((function(){h.length&&d(h[0].id)}),[null==o?void 0:o.length]);var m=(null===(n=h.find((function(e){return e.id===r})))||void 0===n?void 0:n.element)||null;return(0,l.useImperativeHandle)(t,(function(){return{setActiveTab:function(e){return d(e)}}})),(0,k.jsxs)("div",{className:at,children:[(0,k.jsx)("div",{className:ot,children:h.map((function(e){return(0,k.jsx)("div",{onClick:function(){return d(e.id)},className:"".concat(gt," ").concat(e.id===r?it:""),children:e.name},e.id)}))}),(0,k.jsx)("div",{className:rt,children:m})]})})),ht={1:"简单",2:"适中",3:"困难"},st=function(e){var t,n,a=e.hack,o=e.onTriggerPraise,g=e.topicId,r=e.page,h=e.onPageChange,m=e.user,S=e.current_user,P=e.submitRecords,w=e.submitting,L=e.submitResult,x=e.setActiveIndex,y=e.hack_sets,b=(0,u.useSearchParams)(),j=s()(b,1)[0],B=(0,l.useState)("0"),N=s()(B,2),G=N[0],C=N[1],z=((0,u.useLocation)(),(0,l.useState)(!1)),A=s()(z,2),T=A[0],M=A[1],E=(0,l.useState)(null),I=s()(E,2),D=I[0],R=I[1],X=(0,l.useState)([]),$=s()(X,2),ee=$[0],te=$[1],ae=(0,l.useState)([]),ie=s()(ae,2),re=ie[0],de=ie[1],he=(0,l.useState)({page:1,limit:10}),se=s()(he,2),me=se[0],le=se[1],Pe=(0,l.useRef)(null),we=(0,l.useRef)(null);console.log(m,"user");var fe=(0,l.useState)(c()(c()({},(0,u.useParams)()),{},{page:1,per_page:20,name:""})),ve=s()(fe,2),Le=ve[0],xe=ve[1];function ye(){return be.apply(this,arguments)}function be(){return(be=d()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pe.ZP)("/api/users/close_tips.json",{method:"post"});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function je(e){return Be.apply(this,arguments)}function Be(){return(Be=d()(i()().mark((function e(t){var n,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"!==(n=t.target.id)){e.next=6;break}return e.next=4,(0,pe.ZP)("/api/myproblems/".concat(Le.id,"/redo_logs.json"),{method:"get",params:c()({},me)});case 4:0===(null==(a=e.sent)?void 0:a.status)&&de(null==a?void 0:a.data);case 6:C(n);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Fe(){return Ne.apply(this,arguments)}function Ne(){return(Ne=d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pe.ZP)("/api/problems/my_hack_list.json",{method:"get",params:c()({identifier:null==Le?void 0:Le.id},Le)});case 2:t=e.sent,te(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,l.useEffect)((function(){we.current&&!1===(null==a?void 0:a.is_close_tips)&&null===D&&R(!0)}),[we.current,null==a?void 0:a.is_close_tips,D]),(0,l.useEffect)((function(){x(G)}),[G]),(0,l.useEffect)((function(){return Se.Z.subscribe("to-commit-info",(function(){C("1"),Pe.current&&Pe.current.setActiveTab("1")}))}),[]),(0,l.useEffect)((function(){return Se.Z.subscribe("to-reset-info",(function(){je({target:{id:"1"}}),Pe.current&&Pe.current.setActiveTab("2")}))}),[]);var Ge=[{title:null,description:(0,k.jsxs)("div",{children:[(0,k.jsx)("b",{onClick:function(){R(!1),ye(),M(!0),Fe()},className:"c-light-primary font16 current",children:"查看题目列表入口"}),(0,k.jsx)("div",{className:"c-grey-333 mt10 mb20",children:"本次作业所需完成的试题都可以在这里找到,并支持点击试题调整到做题页"}),(0,k.jsx)(p.ZP,{onClick:function(){R(!1),ye()},style:{padding:"2px 29px",height:30,float:"right"},type:"primary",children:"知道了"})]}),target:function(){return we.current}}];return(0,k.jsxs)("div",{className:Z,children:[(0,k.jsxs)("ul",{className:"".concat(_," ").concat(H," ").concat(U),children:[(null==a?void 0:a.is_program)&&!j.get("pageId")&&(0,k.jsx)(f.Z,{title:"题目列表",children:(0,k.jsx)("div",{onClick:function(){Fe(),M(!0)},className:W,ref:we,style:D?{pointerEvents:"none"}:{},children:(0,k.jsx)("i",{className:"iconfont icon-yidongdaomulu1 font14 c-white"})})}),(0,k.jsx)("li",{style:{marginLeft:20},children:(0,k.jsx)("a",{className:"0"===G?Y:"",id:"0",onClick:je,children:"题目描述"})}),(0,k.jsx)("li",{children:(0,k.jsx)("a",{className:"1"===G?Y:"",id:"1",onClick:je,children:"操作记录"})}),("exercises"!==j.get("type")&&(null==a?void 0:a.answer_text_show)||"exercises"!==j.get("type")&&(null==a?void 0:a.analysis_show))&&(0,k.jsx)("li",{children:(0,k.jsx)("a",{className:"4"===G?Y:"",id:"4",onClick:je,children:"解答参考"})}),"exercises"!==j.get("type")&&(0,k.jsx)("li",{children:(0,k.jsx)("a",{className:"2"===G?Y:"",id:"2",onClick:je,children:"评论"})}),!(null==y||!y.length)&&"exercises"!==j.get("type")&&"1"!==j.get("type")&&(0,k.jsx)("li",{children:(0,k.jsx)("a",{className:"5"===G?Y:"",id:"5",onClick:je,children:"测试用例"})})]}),(0,k.jsx)("div",{className:"".concat(O," ").concat("0"===G?"":"hide"),style:{borderRight:"1px #dddddd solid",padding:0},children:(0,k.jsx)(ce,{hack:a,onTriggerPraise:o,toDiscuss:function(){C("2")}})}),(0,k.jsx)("div",{style:{padding:"12px"},className:"".concat(O," ").concat("1"===G?"":"hide"),children:(0,k.jsx)(dt,{ref:Pe,data:[{id:"1",show:"8"!==j.get("qtype"),name:"提交记录",element:(0,k.jsx)(k.Fragment,{children:null!=P&&P.records_count||w?(0,k.jsx)(oe,{page:r,onPageChange:h,topicId:g,submitting:w,submitRecords:P,submitResult:L},(null==L?void 0:L.id)||1):(0,k.jsx)(ge.Z,{})})},{id:"2",show:"exercises"===j.get("type")||(null==a?void 0:a.homework_common_id),name:"重置记录",element:(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(Q.Z,{pagination:!1,dataSource:null==re?void 0:re.list,columns:[{title:"恢复初始代码时间",dataIndex:"created_at",render:function(e,t,n){return ne()(e).format("YYYY-MM-DD HH:mm:ss")}},{title:"操作",dataIndex:"redo_type",render:function(e,t,n){var a;return null===(a=[{id:1,name:"打回重做"},{id:2,name:"恢复初始代码"},{id:3,name:"重置代码仓库"}].find((function(t){return t.id===e})))||void 0===a?void 0:a.name}}]}),(0,k.jsx)(J.Z,{style:{marginTop:10},current:me.page,total:null==re?void 0:re.count,hideOnSinglePage:!0,onChange:function(){var e=d()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return me.page=t,le(me),e.next=3,(0,pe.ZP)("/api/myproblems/".concat(Le.id,"/redo_logs.json"),{method:"get",params:c()(c()({},me),{},{courseId:Le.courseId})});case 3:0===(null==(n=e.sent)?void 0:n.status)&&de(null==n?void 0:n.data);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})]})}]})}),(0,k.jsx)("div",{style:{padding:"12px"},className:"".concat(O," ").concat("4"===G?"":"hide"),children:(0,k.jsx)(dt,{data:[{id:"1",show:"exercises"!==j.get("type")&&(null==a?void 0:a.answer_text_show),name:"答案",element:(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(ue,{hack:a,current_user:S})})},{id:"2",show:"exercises"!==j.get("type")&&(null==a?void 0:a.analysis_show),name:"解析",element:(0,k.jsx)(k.Fragment,{children:(0,k.jsx)(We,{hack:a,current_user:S})})}]})}),(0,k.jsx)("div",{className:"".concat(O," ").concat("2"===G?"":"hide"),style:{padding:0},children:(0,k.jsx)(Ue,{user:m,activeIndex:G,identifier:a.identifier,hack:a,onTriggerPraise:o})}),(0,k.jsx)("div",{className:"".concat(O," ").concat("5"===G?"":"hide"),style:{padding:12},children:(0,k.jsx)(nt,{data:y||[],hack:a})}),(0,k.jsxs)(F.Z,{rootClassName:V,closable:!1,title:null,bodyStyle:{background:"#1B2333",padding:25,display:"flex",flexDirection:"column"},footer:null,width:500,placement:"left",onClose:function(){return M(!1)},open:T,children:[(0,k.jsxs)(v.Z,{children:[(0,k.jsx)("b",{style:{color:"#008CFF",fontWeight:500,lineHeight:"19px"},className:"font16",children:"题目列表"}),(0,k.jsxs)("span",{style:{color:"#FA8D30",fontWeight:500},className:"font12 ml10",children:["共",null==ee?void 0:ee.total_count,"题 [ ",null==ee?void 0:ee.total_score,"分 ] "]}),!(null!=m&&m.hack_manager)&&(0,k.jsxs)("span",{style:{color:"#FA8D30",fontWeight:500,marginLeft:"auto"},className:"font12",children:["我的得分 : ",null==ee?void 0:ee.work_score,"分"]})]}),(0,k.jsx)("div",{style:{height:1,background:"#1C313F",marginTop:12}}),(0,k.jsxs)(v.Z,{align:"middle",className:"mt10 mb10",children:[!(null!=m&&m.hack_manager)&&(0,k.jsxs)(_e.default,{size:"large",className:"mr10",style:{width:104},placeholder:"通过情况",onChange:function(e){Le.page=1,Le.finish_status=e,xe(c()({},Le)),Fe()},children:[(0,k.jsx)(_e.default.Option,{value:"",children:"全部"}),(0,k.jsx)(_e.default.Option,{value:0,children:"未开始"}),(0,k.jsx)(_e.default.Option,{value:1,children:"进行中"}),(0,k.jsx)(_e.default.Option,{value:2,children:"已完成"})]}),(0,k.jsxs)(_e.default,{size:"large",className:"mr10",style:{width:104},placeholder:"题目难度",onChange:function(e){Le.page=1,Le.difficult=e||null,xe(c()({},Le)),Fe()},children:[(0,k.jsx)(_e.default.Option,{value:0,children:"全部"}),(0,k.jsx)(_e.default.Option,{value:1,children:"简单"}),(0,k.jsx)(_e.default.Option,{value:2,children:"适中"}),(0,k.jsx)(_e.default.Option,{value:3,children:"困难"})]}),(0,k.jsx)(He.Z.Search,{size:"large",onSearch:function(e){Le.name=e,Le.page=1,xe(c()({},Le)),Fe()},style:{flex:1},placeholder:"请输入题目名称进行搜索"})]}),(0,k.jsxs)("div",{className:K,style:{height:36,background:"#3D445C"},children:[!(null!=m&&m.hack_manager)&&(0,k.jsx)("span",{children:"状态"}),(0,k.jsx)("span",{children:"序号"}),(0,k.jsx)("span",{style:{flex:1},children:"题目名称"}),(0,k.jsx)("span",{style:{flexBasis:48,paddingRight:0},children:"难度"})]}),(0,k.jsx)("div",{style:{overflow:"auto",flex:1},children:null!=ee&&null!==(t=ee.data)&&void 0!==t&&t.length?null==ee||null===(n=ee.data)||void 0===n?void 0:n.map((function(e,t){return(0,k.jsxs)("div",{onClick:d()(i()().mark((function t(){var n;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,pe.ZP)("/api/problems/".concat(null==e?void 0:e.identifier,"/start.json"),{method:"get",params:{hack_user_id:null==m?void 0:m.user_id}});case 2:(n=t.sent)&&(u.history.replace("/myproblems/".concat(null==n?void 0:n.identifier).concat(window.location.search)),window.location.reload());case 4:case"end":return t.stop()}}),t)}))),className:"".concat(K," ").concat(null!=e&&e.checked?Y:""),children:[!(null!=m&&m.hack_manager)&&(0,k.jsxs)(k.Fragment,{children:[!(null!=e&&e.opened)&&(0,k.jsx)("span",{style:{color:"#E02020"},children:"未开始"}),(null==e?void 0:e.opened)&&!(null!=e&&e.passed)&&(0,k.jsx)("span",{style:{color:"#FA6400"},children:"进行中"}),(null==e?void 0:e.opened)&&(null==e?void 0:e.passed)&&(0,k.jsx)("span",{style:{color:"#24C074"},children:"已完成"})]}),(0,k.jsx)("span",{children:20*(Le.page-1)+(t+1)}),(0,k.jsxs)("span",{style:{flex:1},title:e.name,children:["[".concat(null==e?void 0:e.score,"分]")," ",e.name]}),(0,k.jsx)("span",{style:{flexBasis:48,paddingRight:0},children:ht[e.difficult]})]})})):(0,k.jsx)(ge.Z,{})}),(0,k.jsx)(J.Z,{current:Le.page,className:"mt20",hideOnSinglePage:!0,total:null==ee?void 0:ee.count,pageSize:Le.per_page,onChange:function(e,t){Le.page=e,Le.per_page=t,Fe()}})]}),(0,k.jsx)(Ye.Z,{rootClassName:q,closeIcon:!1,open:!!D,steps:Ge,gap:{offset:3,radius:2}})]})},mt=n(62522),ct=n(62984),lt=n(8175),ut=n(36485),St=n(6573),Pt=n(58897),wt=n(86653),pt=n(92310),ft=n.n(pt),vt=n(27235),Lt=n(76858),xt=n(24561),yt=["input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode","user","isLoading","submitResult"],bt=S.Z.Countdown,jt={Java:"java",C:"c",Python:"py","C++":"c"},Bt=function(e){return e[e.SET_LOADING=0]="SET_LOADING",e[e.GET_DATA=1]="GET_DATA",e[e.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",e[e.SET_DATA=3]="SET_DATA",e[e.SET_DEBUGING=4]="SET_DEBUGING",e[e.SET_SUBMITING=5]="SET_SUBMITING",e[e.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",e[e.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",e[e.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",e[e.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",e[e.SET_PAGE=10]="SET_PAGE",e}({});function Ft(){return(new Date).getTime()}var Nt={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:""};function Gt(e,t){switch(t.type){case Bt.GET_DATA:return c()(c()({},e),t.payload);case Bt.SET_DATA:return c()(c()({},e),{},{data:t.payload});case Bt.SET_LOADING:return c()(c()({},e),{},{loading:t.payload});case Bt.SET_SHOW_NOTE:return c()(c()({},e),{},{showNote:t.payload});case Bt.SET_DEBUGING:return c()(c()({},e),{},{debuging:t.payload});case Bt.SET_SUBMITING:return c()(c()({},e),{},{submitting:t.payload});case Bt.GET_SUBMIT_RECORDS:return c()(c()({},e),{},{submitRecords:t.payload});case Bt.SET_PAGE:return c()(c()({},e),{},{submitRecordPage:t.payload});case Bt.SET_EXECUTE_MESSAGE:return c()(c()({},e),{},{executingMessage:t.payload});case Bt.SET_EXECUTE_RESULT:case Bt.SET_SUBMIT_RESULT:return c()(c()({},e),t.payload);default:throw new Error}}var Ct=function(e){e.children;var t,n,a,o,g,r=(0,l.useReducer)(Gt,Nt),h=s()(r,2),m=h[0],S=h[1],v=(0,u.useParams)().id,B=((0,u.useLocation)(),(0,u.useSearchParams)()),F=s()(B,1)[0],N=m.loading,G=m.data,C=m.debugResult,z=m.submitResult,A=m.submitRecords,T=m.submitRecordPage,M=m.showNote,E=m.debuging,I=m.submitting,R=m.executingMessage,Z=(0,l.useState)("#37AD83"),O=s()(Z,2),U=O[0],_=O[1],H=(0,l.useState)(null),Y=s()(H,2),K=Y[0],W=Y[1],V=(0,l.useState)({}),q=s()(V,2),X=q[0],Q=q[1],J=(0,l.useState)(!0),$=s()(J,2),ee=$[0],te=$[1],ne=(0,l.useState)(!1),ae=s()(ne,2),oe=ae[0],ge=ae[1],ie=(0,l.useState)(!1),re=s()(ie,2),de=re[0],he=re[1],se=(0,l.useRef)(null),me=(0,l.useRef)(0),ce=null==G?void 0:G.user,le=null==G?void 0:G.hack,ue=(0,l.useState)(!1),Pe=s()(ue,2),we=Pe[0],fe=Pe[1],ve=(0,l.useRef)(1),Le=(0,l.useRef)(!1);(0,vt.y)("exercises"===F.get("type"));var xe=(0,vt.X)().setOpenDisableCopyAndPaste,ye=(0,l.useState)(""),be=s()(ye,2),je=be[0],Be=be[1],Fe=(0,St._)(X);(0,l.useEffect)((function(){function e(){return(e=d()(i()().mark((function e(){var t,n,a,o,g,r,d;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return te(!0),e.next=3,(0,L.fu)(v,{exercise_id:F.get("exercisesId")});case 3:if(t=e.sent,setTimeout((function(){te(!1)}),800),401===t.status);else{try{t.hack.code=D.Base64.decode(t.hack.code)}catch(e){console.log(e)}t.hack=c()(c()({},t.hack),{},{is_program:"1"===F.get("type")}),S({type:Bt.GET_DATA,payload:{loading:!1,data:t}})}if("exercises"!==F.get("type")){e.next=22;break}if(window.self!==window.top){e.next=10;break}return window.top.location.href="/",e.abrupt("return");case 10:if("coursesId"!=F.get("coursesId")){e.next=16;break}return e.next=13,(0,x._F)({categoryId:F.get("exercisesId"),login:F.get("login")});case 13:o=e.sent,e.next=19;break;case 16:return e.next=18,(0,x._B)({categoryId:F.get("exercisesId"),login:F.get("login")});case 18:o=e.sent;case 19:Q(c()({},o)),xe(null===(n=o)||void 0===n||null===(n=n.exercise)||void 0===n?void 0:n.forbid_copy),"number"==typeof(null===(a=o)||void 0===a||null===(a=a.exercise)||void 0===a?void 0:a.left_time)&&(W(Date.now()+1e3*(null===(g=o)||void 0===g||null===(g=g.exercise)||void 0===g?void 0:g.left_time)),setTimeout((function(){_("red")}),1e3*((null===(r=o)||void 0===r||null===(r=r.exercise)||void 0===r?void 0:r.left_time)-300>0?(null===(d=o)||void 0===d||null===(d=d.exercise)||void 0===d?void 0:d.left_time)-300:0)));case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}v&&function(){e.apply(this,arguments)}()}),[v]),(0,l.useEffect)((function(){var e;return"exercises"===F.get("type")&&null!=X&&null!==(e=X.exercise)&&void 0!==e&&e.screen_open&&(window.removeEventListener("blur",Ge,!1),Pt.U.forEach((function(e,t){window.addEventListener(e,Ge,!1)})),window.addEventListener("blur",Ge,!1),window.focus()),function(){document.removeEventListener((0,y.gH)(),Ge)}}),[X]),(0,l.useEffect)((function(){"1"===je&&v&&null!=le&&le.language&&function(){Ce.apply(this,arguments)}()}),[v,T,null==le?void 0:le.language,je]),(0,l.useEffect)((function(){return null!=le&&le.is_program&&(me.current=0,se.current=setInterval((function(){Ne()}),15e3)),function(){clearInterval(se.current)}}),[null==le?void 0:le.is_program]);var Ne=function(){var e=d()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pe.ZP)("/api/myproblems/".concat(v,"/save_long_time.json"),{method:"get",params:{answer_long_time:me.current}});case 2:e.sent;case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ge=function(){Le.current||(0,y.BU)(),window.parent.postMessage("backExercise","*")};function Ce(){return(Ce=d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,L.zO)(v,{limit:15,page:T,language:null==le?void 0:le.language});case 3:t=e.sent,S({type:Bt.GET_SUBMIT_RECORDS,payload:t}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))).apply(this,arguments)}function ze(e){return ke.apply(this,arguments)}function ke(){return(ke=d()(i()().mark((function e(t){var n,a,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("inner"!==F.get("ip_limit")&&"true"!==F.get("ip_bind_type")){e.next=4;break}return e.next=3,(0,ct.y)({ip_limit:F.get("ip_limit"),ip_bind:"true"===F.get("ip_bind_type")});case 3:n=e.sent;case 4:return e.next=6,(0,L.n4)(v,{code:D.Base64.encode(t||le.code),language:null==le?void 0:le.language,exercise_id:F.get("exercisesId"),question_id:F.get("questionId"),ip:n});case 6:return-5===(a=e.sent).status&&(0,u.getDvaApp)()._store.dispatch({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:c()(c()({errorMessage:null==a?void 0:a.message},(null==X?void 0:X.exercise)||{}),{},{exercise_user_id:null==X||null===(o=X.exercise)||void 0===o?void 0:o.exercise_user_id,id:F.get("exercisesId")})}}),e.abrupt("return",a);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ae(){return Te.apply(this,arguments)}function Te(){return Te=d()(i()().mark((function e(){var t,n,a,o,g,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ve.current=2,!I){e.next=3;break}return e.abrupt("return");case 3:return S({type:Bt.SET_SUBMITING,payload:!0}),e.prev=4,Se.Z.publish("to-commit-info"),e.next=8,ze();case 8:if(t=e.sent,console.log(t,1),0!==t.status){e.next=30;break}if(n=function(){var e=d()(i()().mark((function e(){var t,a,d,h,s,l;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.rX)(v,"submit");case 2:if(t=e.sent,a=t.status,d=t.data,h=Ft(),s=h-r>1e3*(o*g+3),0===a||s||setTimeout(n,1e3),!s){e.next=12;break}return P.Z.error({centered:!0,okText:"知道啦",title:"评测代码超时"}),S({type:Bt.SET_SUBMITING,payload:!1}),e.abrupt("return");case 12:if(0!==a){e.next=19;break}return 2===d.status&&P.Z.error({centered:!0,okText:"知道啦",title:"评测代码超时"}),0===(null==d?void 0:d.status)&&"1"===F.get("type")&&he(!0),e.next=17,(0,L.zO)(v,{limit:15,page:T,language:null==le?void 0:le.language});case 17:l=e.sent,S({type:Bt.SET_SUBMIT_RESULT,payload:c()(c()({},m),{},{submitResult:d,submitting:!1,submitRecords:l})});case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a={},"exercises"!==F.get("type")){e.next=19;break}if(a.extras={exercise_id:F.get("exercisesId"),question_id:F.get("questionId")},"inner"!==F.get("ip_limit")&&"true"!==F.get("ip_bind_type")){e.next=19;break}return e.next=18,(0,ct.y)({ip_limit:F.get("ip_limit"),ip_bind:"true"===F.get("ip_bind_type")});case 18:a.extras.ip=e.sent;case 19:return e.next=21,(0,L.bM)(v,a);case 21:if(-1!==e.sent.status||!F.get("exercisesId")){e.next=25;break}return window.parent.location.href="/classrooms/".concat(F.get("coursesId"),"/exercise/").concat(F.get("exercisesId"),"/detail"),e.abrupt("return");case 25:o=le.time_limit,g=le.test_case_size,r=Ft(),n(),e.next=31;break;case 30:S({type:Bt.SET_SUBMITING,payload:!1});case 31:e.next=37;break;case 33:e.prev=33,e.t0=e.catch(4),console.log(e.t0),S({type:Bt.SET_SUBMITING,payload:!1});case 37:fe(!1);case 38:case"end":return e.stop()}}),e,null,[[4,33]])}))),Te.apply(this,arguments)}function Me(){return Ee.apply(this,arguments)}function Ee(){return Ee=d()(i()().mark((function e(){var t,n,a,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ve.current=1,m.debuging=!0,S({type:Bt.SET_DEBUGING,payload:!0}),e.prev=3,e.next=6,ze();case 6:if(0!==e.sent.status){e.next=22;break}return t=function(){var e=d()(i()().mark((function e(){var a,g,r,d,h,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.rX)(v,"debug");case 2:if(a=e.sent,g=a.status,r=a.message,d=a.data,h=Ft(),s=h-o>1e3*(n+3),0===g||s||(S({type:Bt.SET_EXECUTE_MESSAGE,payload:r}),setTimeout(t,1e3)),!s){e.next=14;break}return P.Z.error({title:"提示",centered:!0,okText:"知道啦",content:"调试代码超时"}),S({type:Bt.SET_DEBUGING,payload:!1}),S({type:Bt.SET_EXECUTE_RESULT,payload:c()(c()({},m),{},{debugResult:{status:2},debuging:!1})}),e.abrupt("return");case 14:0===g&&(2===d.status&&P.Z.error({title:"提示",centered:!0,okText:"知道啦",content:"调试代码超时"}),S({type:Bt.SET_DEBUGING,payload:!1}),S({type:Bt.SET_EXECUTE_RESULT,payload:c()(c()({},m),{},{debugResult:d,debuging:!1})}));case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=le.time_limit,a={input:encodeURIComponent(G.test_case.input)},"exercises"===F.get("type")&&(a.exercise_id=F.get("exercisesId")),e.next=14,(0,L.MU)(v,a);case 14:if(-1!==e.sent.status||!F.get("exercisesId")){e.next=18;break}return window.parent.location.href="/classrooms/".concat(F.get("coursesId"),"/exercise/").concat(F.get("exercisesId"),"/detail"),e.abrupt("return");case 18:o=Ft(),t(),e.next=23;break;case 22:S({type:Bt.SET_DEBUGING,payload:!1});case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(3),console.log(e.t0);case 28:return e.prev=28,e.finish(28);case 30:case"end":return e.stop()}}),e,null,[[3,25,28,30]])}))),Ee.apply(this,arguments)}function Ie(e,t){var n=t?{modify_code:!1}:{};S({type:Bt.SET_DATA,payload:c()(c()({},G),{},{hack:c()(c()({},le),{},{code:e},n)})}),fe(!0)}var De=function(){var e=d()(i()().mark((function e(t){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,pe.ZP)("/api/problems/".concat(null==le?void 0:le.identifier,"/start.json"),{method:"get",params:{language:"C++"===t||"c++"===t?encodeURIComponent(t):t,hack_user_id:null==ce?void 0:ce.user_id}});case 2:-1!==(n=e.sent).status&&u.history.replace("/myproblems/".concat(null==n?void 0:n.identifier).concat(window.location.search));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function Re(){return(Re=d()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t={},"exercises"===F.get("type")?t.exercise_id=F.get("exercisesId"):null!=le&&le.homework_common_id&&(t.homework_common_id=null==le?void 0:le.homework_common_id),e.next=5,(0,L.H7)(v,c()({},t));case 5:401===(n=e.sent).status||(Ie(D.Base64.decode(n.code)),("exercises"===F.get("type")||null!=le&&le.homework_common_id)&&Se.Z.publish("to-reset-info")),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}function Ze(){return(Ze=d()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.MK)(v,t);case 2:S({type:Bt.GET_DATA,payload:{showNote:!1,data:c()(c()({},G),{},{hack:c()(c()({},le),{},{notes:t.notes})})}});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Oe={hack:le,isLoading:ee,input:null==G||null===(t=G.test_case)||void 0===t?void 0:t.input,is_file:null==G||null===(n=G.test_case)||void 0===n?void 0:n.is_file,language:null==le?void 0:le.language,code:null==le?void 0:le.code,title:"main."+jt[null==le?void 0:le.language],modify_code:null==le?void 0:le.modify_code,notes:null==le?void 0:le.notes,debugResult:C,debuging:E,submitting:I,submitResult:z,executingMessage:R,onCancelNote:function(){S({type:Bt.SET_SHOW_NOTE,payload:!1})},onAddNote:function(e){return Ze.apply(this,arguments)},showNote:M,user:ce,onShowNote:function(){S({type:Bt.SET_SHOW_NOTE,payload:!0})},onSubmitCode:Ae,onChangeCode:Ie,onChangeInput:function(e){var t=e.target.value;S({type:Bt.SET_DATA,payload:c()(c()({},G),{},{test_case:{input:t}})})},onDebugCode:Me,onResetCode:function(){return Re.apply(this,arguments)},onSyncCode:function(){P.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,k.jsxs)("p",{children:["初始代码有修改,更新后将覆盖现有代码哦~ ",(0,k.jsx)("br",{}),"请将您编辑的代码保存至本地,以防丢失"]}),onOk:function(){return d()(i()().mark((function e(){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.fi)(v);case 2:401===(t=e.sent).status||Ie(D.Base64.decode(t.code),!0);case 4:case"end":return e.stop()}}),e)})))()}})},onUpdateCode:ze,onChangeLanguage:De,isWhiteTheme:oe,setIsWhiteTheme:ge,topDispatch:S};function Ue(){return(Ue=d()(i()().mark((function e(){var t,n,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,L.vl)(le.id,{container_type:"Hack",type:1});case 2:t=e.sent,n=t.praise_count,a=c()(c()({},G),{},{hack:c()(c()({},le),{},{praises_count:n,user_praise:!le.user_praise})}),S({type:Bt.SET_DATA,payload:a});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var _e={topicId:v,submitResult:z,submitRecords:A,submitting:I,page:T,onPageChange:function(e){S({type:Bt.SET_PAGE,payload:e})},hack:le,user:null==G?void 0:G.user,hack_sets:null==G?void 0:G.hack_sets,current_user:null==G?void 0:G.current_user,onTriggerPraise:function(){return Ue.apply(this,arguments)},setActiveIndex:Be};return console.log(X),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)(w.Z,{spinning:N,delay:500,children:[G?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsxs)("header",{className:ft()(wt.Z.header,oe&&wt.Z.whiteHeader),children:["exercises"!==F.get("type")&&(0,k.jsxs)("div",{children:[(0,k.jsx)("img",{src:"".concat(j.Z.IMG_SERVER,"/images/").concat(null==ce?void 0:ce.image_url),alt:"user",width:36}),(0,k.jsx)("span",{style:{color:oe?"#333":"#B2BACB",fontSize:16},children:null==ce?void 0:ce.name})]}),"exercises"===F.get("type")&&(0,k.jsxs)("div",{children:[(0,k.jsxs)("div",{className:"exercise_user_info",children:["姓名",(0,k.jsx)("span",{className:"ml10",children:null==X||null===(a=X.exercise)||void 0===a?void 0:a.user_name})]}),(0,k.jsxs)("div",{className:"exercise_user_info ml30",children:["学号",(0,k.jsx)("span",{className:"ml10",children:null==X||null===(o=X.exercise)||void 0===o?void 0:o.student_id})]})]}),(0,k.jsx)("h2",{className:"flex-wrp flex_box_column flex_box_center",children:(0,k.jsx)("div",{children:le.name})}),(null==le?void 0:le.is_program)&&(0,k.jsx)(lt.Z,{defaultValue:null==le?void 0:le.answer_long_time,onChange:function(e){me.current=e},className:wt.Z.timepiece}),null!=ce&&ce.hack_manager?(0,k.jsxs)(u.Link,{className:wt.Z.btn_edit,to:"1"===F.get("type")?F.get("pageId")?"/problems/newedit/".concat(le.identifier,"?type=1&pageId=").concat(F.get("pageId"),"&backUrl=").concat(F.get("backUrl")):"/problems/newedit/".concat(le.identifier,"?type=1"):"/problems/newedit/".concat(le.identifier),children:[" ",(0,k.jsx)("i",{className:"iconfont icon-bianji13 font14 mr5"})," 编辑"]}):null,(null==X||null===(g=X.exercise)||void 0===g?void 0:g.left_time)&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("span",{style:{color:U,marginRight:6},className:"iconfont icon-daojishi ".concat(wt.Z.djs)}),(0,k.jsx)("span",{className:"c-white mr20",children:(0,k.jsx)(bt,{valueStyle:{color:U,fontSize:20,fontWeight:500},title:(0,k.jsx)("span",{style:{color:U,fontSize:14,marginRight:10},className:"time",children:"剩余答题时长"}),value:K,onFinish:d()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,x.VL)({categoryId:F.get("exercisesId"),commit_method:2});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(ze(),P.Z.info({width:530,title:"提示",centered:!0,okText:"确定",content:(0,k.jsxs)("div",{className:"tc font16",children:["答题结束了,系统已自动提交试卷",(0,k.jsx)("br",{}),"不能再修改答题"]}),onOk:function(){var e=d()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.parent.location.href="/classrooms/".concat(F.get("coursesId"),"/exercise/").concat(F.get("exercisesId"),"/detail");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()})),-3===(null==t?void 0:t.status)&&(n=parseInt(null==t?void 0:t.message),W(Date.now()+1e3*n));case 5:case"end":return e.stop()}}),e)})))})})]}),"exercises"===F.get("type")?(0,k.jsxs)(p.ZP,{type:"primary",onClick:function(){var e=function(){var e=d()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ze();case 2:fe(!1),Fe(),Le.current=!0,Ge();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();null!=A&&A.records_count&&!we?e():P.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",icon:null,title:"提示",content:(0,k.jsx)("div",{style:{color:"#FF0000"},children:"请确认你的答题内容是否进行评测并提交,未评测则会导致该题无法获得分数"}),onOk:e})},children:[(0,k.jsx)("span",{className:"iconfont icon-yiguanbi mr5 font14"})," 返回试卷"]}):(0,k.jsx)("span",{onClick:function(){if(F.get("backUrl"))u.history.push(F.get("backUrl"));else if("1"===F.get("type")){var e,t=null===(e=localStorage.getItem("program_homework"))||void 0===e?void 0:e.split(",");u.history.push("/classrooms/".concat(null==t?void 0:t[0],"/program_homework/").concat(null==t?void 0:t[1],"/detail"))}else u.history.push("/problemset")},children:(0,k.jsx)(f.Z,{title:"关闭",children:(0,k.jsx)("i",{style:{color:oe?"#8D929F":"#fff"},className:"iconfont icon-fanhuishijuan font16 "})})})]}),(0,k.jsx)(w.Z,{size:"large",spinning:ee,children:(0,k.jsx)(b.Z,{className:ft()(wt.Z.myProblems,oe&&wt.Z.whiteMyProblems),leftChild:(0,k.jsx)(st,c()({},_e)),rightChild:(0,k.jsx)(kt,c()({},Oe))})})]}):null,(0,k.jsx)(P.Z,{centered:!0,closable:!1,width:680,footer:null,open:de,className:"oj-modal",children:(0,k.jsxs)("section",{className:"oj-modal-content",children:[(0,k.jsxs)("div",{className:"oj-modal-head",children:[(0,k.jsx)("img",{src:mt,alt:""}),(0,k.jsx)("i",{onClick:function(){return he(!1)},className:"iconfont icon-guanbi1"})]}),(0,k.jsxs)("aside",{children:[(0,k.jsx)("img",{className:"mr30",src:xt.Z}),"运行时间: ",(0,k.jsxs)("span",{style:{color:"#75d6ba",marginRight:100},children:[null==z?void 0:z.execute_time,"ms"]}),"优于",(0,k.jsxs)("span",{style:{color:"#f3b087",margin:"0 5px"},children:[(null==z?void 0:z.time_better_than)||100,"%"]}),"的用户"]}),(0,k.jsxs)("aside",{className:"mb50",children:[(0,k.jsx)("img",{src:Lt.Z,className:"mr30"}),(0,k.jsxs)("span",{className:"oj-modal-tt",children:[(0,k.jsxs)("span",{children:[(0,k.jsx)("span",{children:"占用内存: "}),(0,k.jsxs)("span",{className:"c-light-primary",children:[null==z?void 0:z.execute_memory,"kb"]})]}),(0,k.jsx)("span",{children:(0,k.jsx)("span",{})})]}),"优于",(0,k.jsxs)("span",{style:{color:"#f3b087",margin:"0 5px"},children:[(null==z?void 0:z.memory_better_than)||100,"%"]}),"的用户"]}),(0,k.jsx)("div",{id:"oj-modal-next",onClick:d()(i()().mark((function e(){var t,n,a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==z||!z.next_identifier){e.next=7;break}return e.next=3,(0,pe.ZP)("/api/problems/".concat(null==z?void 0:z.next_identifier,"/start.json"),{method:"get",params:{hack_user_id:null==ce?void 0:ce.user_id}});case 3:(t=e.sent)&&(u.history.replace("/myproblems/".concat(null==t?void 0:t.identifier).concat(window.location.search)),window.location.reload()),e.next=9;break;case 7:a=null===(n=localStorage.getItem("program_homework"))||void 0===n?void 0:n.split(","),u.history.push("/classrooms/".concat(null==a?void 0:a[0],"/program_homework/").concat(null==a?void 0:a[1],"/detail"));case 9:case"end":return e.stop()}}),e)}))),className:"oj-modal-btn",children:null!=z&&z.next_identifier?"进入下一题":"回到作业详情页"})]})})]}),(0,k.jsx)(ut.Z,{successCb:function(){1===ve.current?Me():Ae()}})]})};function zt(e){e.title;var t,n=e.modify_code,a=e.onSyncCode,o=e.onShowCodeSetting,g=e.onResetCode,i=e.hack,r=e.onChangeLanguage,d=e.isWhiteTheme,h=(0,u.useSearchParams)(),m=s()(h,1)[0].get("language");return(0,l.useEffect)((function(){var e;m&&r("1"===(e=m)?"c++":"2"===e?"C++":e)}),[]),(0,l.useEffect)((function(){null!=i&&i.tpm_code_modified&&P.Z.confirm({title:"更新初始代码",icon:(0,k.jsx)(B.Z,{}),content:(0,k.jsxs)("div",{children:[(0,k.jsx)("div",{children:"编程题的初始代码内容有更新,"}),(0,k.jsx)("div",{children:"更新操作将保留已完成的评测记录和成绩,"}),(0,k.jsx)("div",{children:"还未完成评测的任务任务代码,请自行保存!"})]}),centered:!0,okText:"确定",cancelText:"取消",onOk:function(){return g()}})}),[null==i?void 0:i.language]),console.log(i,d,"hack"),(0,k.jsxs)("div",{className:"".concat(wt.Z.codeHead," ").concat(d?wt.Z.whiteCodeHead:""),children:[(0,k.jsx)("div",{className:wt.Z.navWrap,children:null==i||null===(t=i.all_language)||void 0===t?void 0:t.map((function(e){return(0,k.jsxs)("div",{className:"".concat(wt.Z.nav," ").concat(e===(null==i?void 0:i.language)?wt.Z.active:""),onClick:function(){return r(e)},children:[(0,k.jsx)(f.Z,{title:"编程语言",children:(0,k.jsx)("i",{className:"iconfont icon-bianchengyuyan1"})}),(0,k.jsx)("span",{children:e})]},e)}))}),(0,k.jsxs)(v.Z,{align:"middle",style:{marginLeft:"auto"},children:[n?(0,k.jsx)("a",{title:"更新通知",onClick:a,children:(0,k.jsx)("img",{src:I,alt:"notice",style:{height:13,transform:"translateY(-2px)"}})}):null,(0,k.jsx)("a",{onClick:function(){P.Z.confirm({title:"恢复初始代码",icon:(0,k.jsx)(B.Z,{}),content:"你在本文件中修改的内容将丢失,是否确定重新加载初始代码?",centered:!0,okText:"确定",cancelText:"取消",onOk:g})},children:(0,k.jsx)(f.Z,{title:"恢复初始代码",children:(0,k.jsx)("i",{style:{color:"#8D929F"},className:"iconfont icon-huifuchushihuashezhi mr15"})})}),(0,k.jsx)("a",{onClick:o,children:(0,k.jsx)(f.Z,{title:"设置",children:(0,k.jsx)("i",{style:{color:"#8D929F"},className:"iconfont icon-shezhi8 font14 mr15"})})})]})]})}function kt(e){var t=e.input,n=e.is_file,a=(e.showNote,e.onShowNote,e.notes,e.onCancelNote,e.onAddNote,e.debugResult),g=e.language,i=e.debuging,r=e.submitting,d=e.executingMessage,h=e.code,s=e.onSubmitCode,m=e.onDebugCode,l=e.onChangeCode,u=e.onChangeInput,S=e.onUpdateCode,P=e.user,w=e.isLoading,p=e.submitResult,f=o()(e,yt);var v=c()({input:t,is_file:n,debugResult:a,debuging:i,submitting:r,executingMessage:d,onDebugCode:m,onChangeCode:l,onSubmitCode:s,onChangeInput:u,user:P,submitResult:p},f);return(0,k.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",background:"#1B2333"},children:[(0,k.jsx)(E,{setIsWhiteTheme:null==f?void 0:f.setIsWhiteTheme,isLoading:w,language:g,value:h,onChange:l,onUpdateCode:S,ActionBarRender:function(e){return(0,k.jsx)(zt,c()(c()({},f),{},{onShowCodeSetting:e}))}}),(0,k.jsx)(R.ZP,c()({},v))]})}},13991:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var a=function(e){return e[e.NOMATCH=-1]="NOMATCH",e[e.OK=0]="OK",e[e.TIMEOUT=2]="TIMEOUT",e[e.PODFAILURE=3]="PODFAILURE",e[e.COMPILEFAILURE=4]="COMPILEFAILURE",e[e.EXECUTEFAILURE=5]="EXECUTEFAILURE",e}({})},47824:function(e,t,n){"use strict";n.d(t,{H7:function(){return l},MK:function(){return c},MU:function(){return d},X6:function(){return s},bM:function(){return r},fi:function(){return u},fu:function(){return i},n4:function(){return S},rX:function(){return m},vl:function(){return P},zO:function(){return h}});var a=n(82242),o=n.n(a),g=n(82710);function i(e,t){return(0,g.U2)("myproblems/".concat(e,".json"),o()({hidePopLogin:!0},t||{}))}function r(e,t){return(0,g.v_)("myproblems/".concat(e,"/code_submit.json"),t)}function d(e,t){return(0,g.v_)("myproblems/".concat(e,"/code_debug.json"),t)}function h(e,t){return t.language&&(t.language=encodeURIComponent(t.language)),(0,g.U2)("myproblems/".concat(e,"/submit_records.json"),t)}function s(e){return(0,g.U2)("myproblems/record_detail.json",{id:e})}function m(e,t){return(0,g.U2)("myproblems/".concat(e,"/result.json"),{mode:t})}function c(e,t){return(0,g.v_)("myproblems/".concat(e,"/add_notes.json"),t)}function l(e,t){return(0,g.v_)("myproblems/".concat(e,"/restore_initial_code.json"),t)}function u(e){return(0,g.v_)("myproblems/".concat(e,"/sync_code.json"))}function S(e,t){return(0,g.v_)("myproblems/".concat(e,"/update_code.json"),t)}function P(e,t){return(0,g.v_)("discusses/".concat(e,"/plus.json"),t)}},14163:function(e,t,n){"use strict";n.d(t,{Im:function(){return B},ZP:function(){return k},gZ:function(){return C}});var a=n(79800),o=n.n(a),g=n(82242),i=n.n(g),r=n(85573),d=n.n(r),h=n(59301),s=n(92832),m=n(3113),c=n(18290),l=n(88551),u=n(66056),S=n(24334),P=n(21791),w=n(501),p=n(95972),f=n(51336),v=n(34376),L=n(92310),x=n.n(L),y=n(37712),b=s.Z.TextArea,j={visible:!1,tabIndex:"0"},B=d()(d()(d()(d()(d()(d()({},u.h.NOMATCH,"测试用例结果不匹配"),u.h.OK,"调试通过"),2,"调试超时"),3,"调试pod失败"),4,"编译失败"),5,"执行失败"),F=function(e){return e[e.SET_VISIBLE=0]="SET_VISIBLE",e[e.SET_TABINDEX=1]="SET_TABINDEX",e}(F||{});function N(e,t){switch(t.type){case F.SET_VISIBLE:return i()(i()({},e),{},{visible:t.payload});case F.SET_TABINDEX:return i()(i()({},e),{},{tabIndex:t.payload});default:throw new Error}}function G(e){var t=e.value,n=e.className,a=(0,h.useState)(!1),g=o()(a,2),i=g[0],r=g[1],d=(0,h.useRef)(),s=(0,h.useRef)();return(0,h.useEffect)((function(){i&&(s.current.reset(),s.current.write((0,p.pp)(t||"")))}),[t,i]),(0,h.useEffect)((function(){if(d.current){var e;s.current=new v.Terminal({fontSize:14,disableStdin:!0}),s.current.open(d.current);var t=d.current.offsetWidth-14,n=(null===(e=s.current)||void 0===e||null===(e=e._core)||void 0===e||null===(e=e._renderService)||void 0===e||null===(e=e.dimensions)||void 0===e?void 0:e.actualCellWidth)||9.5,a=Math.ceil(t/n);s.current.resize(a,8),r(!0)}}),[]),(0,y.jsx)("div",{ref:d,className:x()("XtermText-valueRef",n)})}function C(e){var t=e.status,n=e.error_msg,a=e.output,o=e.input,g=e.expected_output,i=e.is_file,r=e.input_file_url,d=e.output_file_url,h=e.expected_output_file_url,s=null,m={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(t){case u.h.NOMATCH:s=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("p",{className:"c-red",children:"实际输入:"}),!i&&(0,y.jsx)(G,{className:"mb10",value:o}),i&&(0,y.jsx)("div",{style:m,children:(0,y.jsx)("a",{onClick:function(){return(0,p.LR)(r,o)},children:o})}),(0,y.jsx)("p",{className:"c-red",children:"实际输出:"}),!i&&(0,y.jsx)(G,{className:"mb10",value:a&&S.Base64.decode(a)||""}),i&&(0,y.jsx)("div",{style:m,children:(0,y.jsx)("a",{onClick:function(){return(0,p.LR)(d,a)},children:a})}),(0,y.jsx)("p",{className:"c-red",children:"预期输出:"}),!i&&(0,y.jsx)(G,{className:"mb10",value:g&&S.Base64.decode(g)||""}),i&&(0,y.jsx)("div",{style:m,children:(0,y.jsx)("a",{onClick:function(){return(0,p.LR)(h,g)},children:g})})]});break;case u.h.EXECUTEFAILURE:case u.h.COMPILEFAILURE:s=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("p",{children:"最后执行的输入:"}),!i&&(0,y.jsx)(w.Z,{value:o,style:m}),i&&(0,y.jsx)("div",{style:m,children:(0,y.jsx)("a",{onClick:function(){return(0,p.LR)(r,o)},children:o})}),(0,y.jsx)("p",{children:"执行出错信息:"}),(0,y.jsx)("pre",{className:"error",children:S.Base64.decode(n)})]});break;case u.h.PODFAILURE:s=(0,y.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case u.h.TIMEOUT:s=(0,y.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,y.jsxs)(y.Fragment,{children:[" ",s," "]})}function z(e){var t=e.status,n=e.error_msg,a=e.execute_time,o=e.output,g=e.input,i=e.expected_output,r=(e.is_file,e.input_file_url,e.output_file_url,e.expected_output_file_url,null);switch(t){case u.h.OK:r=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("p",{children:["执行用时:",a,"秒"]}),(0,y.jsx)("p",{children:"执行结果:"}),(0,y.jsx)("pre",{children:S.Base64.decode(o)})]});break;case u.h.NOMATCH:r=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("p",{children:["输入:",(0,y.jsx)("pre",{children:g})]}),(0,y.jsxs)("p",{children:["输出:",o&&S.Base64.decode(o)]}),(0,y.jsxs)("p",{children:["预期输出:",i&&S.Base64.decode(i)]})]});break;case u.h.EXECUTEFAILURE:case u.h.COMPILEFAILURE:r=(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("p",{children:["最后执行的输入:",(0,y.jsx)("pre",{children:g})]}),(0,y.jsx)("p",{children:"执行出错信息:"}),(0,y.jsx)("pre",{className:"error",children:S.Base64.decode(n)})]});break;case u.h.PODFAILURE:r=(0,y.jsx)("p",{children:"创建pod失败,请稍后重试"});break;case u.h.TIMEOUT:r=(0,y.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,y.jsxs)(y.Fragment,{children:[" ",r," "]})}var k=function(e){var t=e.id,n=e.is_file,a=e.input,g=e.debuging,i=e.submitting,r=(e.executingMessage,e.debugResult),d=e.onChangeInput,s=e.onDebugCode,u=e.onSubmitCode,S=(0,h.useReducer)(N,j),w=o()(S,2),p=w[0],v=w[1],L=p.visible;p.tabIndex;(0,h.useEffect)((function(){v({type:F.SET_VISIBLE,payload:!1})}),[t]);var x=(0,h.useMemo)((function(){if(r){r.status;return(0,y.jsx)(y.Fragment,{children:z(r)})}return null}),[r]);return(0,y.jsxs)("div",{className:"test-case-panel",children:[(0,y.jsxs)("div",{className:"test-case-panel-body ".concat(L?"active":""),children:[(0,y.jsx)("ul",{className:"s-navs",children:(0,y.jsx)("li",{children:(0,y.jsx)("a",{className:"active",children:"调试代码结果"})})}),(0,y.jsx)(f.Z,{leftTitle:"自定义测试用例",rightTitle:"代码执行结果",style:{height:240},leftNode:(0,y.jsx)(b,{placeholder:"请输入自测用例(如果未填写,首次自测运行时,系统会自动填充第一个非隐藏的文本类型的测试用例)",value:n?"":a,onChange:d}),rightNode:g?(0,y.jsx)(P.Z,{message:"代码执行中..."}):r?x:(0,y.jsx)("p",{style:{color:"#536879"},children:"请填写测试用例的输入值,点击“调试代码”"})})]}),(0,y.jsx)("a",{className:"btn-collapse ".concat(L?"up":""),onClick:function(){v({type:F.SET_VISIBLE,payload:!L})},children:L?(0,y.jsx)(c.Z,{}):(0,y.jsx)(l.Z,{})}),(0,y.jsxs)("footer",{className:"footer",children:[(0,y.jsx)("span",{style:{visibility:"hidden"},children:"控制台"}),(0,y.jsxs)("div",{className:"flex-container",children:[(0,y.jsx)(m.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost",children:"上一题"}),(0,y.jsx)(m.ZP,{id:"oj-next",className:"btn-blue",type:"ghost",children:"下一题"}),(0,y.jsx)(m.ZP,{className:"btn-green",type:"ghost",loading:g,onClick:function(){v({type:F.SET_VISIBLE,payload:!0}),v({type:F.SET_TABINDEX,payload:"1"}),s()},children:"调试代码"}),(0,y.jsx)(m.ZP,{type:"primary",className:"custom-ant-disabled",loading:i,disabled:i,onClick:function(){v({type:F.SET_VISIBLE,payload:!1}),u()},children:"评测并提交"})]})]})]})}},66056:function(e,t,n){"use strict";n.d(t,{h:function(){return a}});var a=function(e){return e[e.NOMATCH=-1]="NOMATCH",e[e.OK=0]="OK",e[e.TIMEOUT=2]="TIMEOUT",e[e.PODFAILURE=3]="PODFAILURE",e[e.COMPILEFAILURE=4]="COMPILEFAILURE",e[e.EXECUTEFAILURE=5]="EXECUTEFAILURE",e}({})},53408:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var a=n(7557),o=n.n(a),g=n(41498),i=n.n(g),r=n(79800),d=n.n(r),h=n(59301),s=n(8591),m=n(6848),c=n(71418),l=n(95237),u=n(43604),S=n(25700),P=n(3113),w=n(85654),p=n(82710),f=n(501),v=n(37712),L=function(e){var t=e.id,n=e.activeDiscussIndex,a=e.onReplyDiscuss,o=e.adminOrOperator,g=(0,h.useState)(""),i=d()(g,2),r=i[0],c=i[1],l=(0,h.useState)(!1),u=d()(l,2),S=u[0],P=u[1];function p(e){c(e)}return(0,h.useEffect)((function(){n!=t&&P(!1)}),[n]),(0,v.jsxs)("div",{className:"discuss-item-editor",style:{display:n===t?"block":"none",width:"100%"},children:[(0,v.jsx)(w.Z,{miniToolbar:!0,startInit:n===t,defaultValue:r,id:t,noStorage:!0,watch:!1,height:155,placeholder:"我要回复",showResizeBar:!0,onChange:p,extraUse:o&&(0,v.jsx)(m.Z,{color:"#fff",open:S,destroyTooltipOnHide:!0,title:x({id:t,isOpen:S,activeDiscussIndex:n,onChange:p,setIsOpen:P}),overlayStyle:{maxWidth:600},children:(0,v.jsx)("a",{title:S?"关闭推荐":"打开推荐",onClick:function(){return P(!S)},children:(0,v.jsx)("i",{className:"iconfont icon-dianzan11"})})})}),(0,v.jsx)("a",{onClick:function(){r?(a(t,r),c("")):s.ZP.info("回复内容不能为空!")},className:"btn-send",children:"发送"})]},t)},x=function(e){var t=(0,h.useState)(!1),n=d()(t,2),a=n[0],g=n[1],r=(0,h.useState)([]),s=d()(r,2),m=s[0],w=s[1],L=(0,h.useState)(1),x=d()(L,2),y=x[0],b=x[1];(0,h.useEffect)((function(){null!=e&&e.isOpen?j():(b(1),w([]))}),[null==e?void 0:e.isOpen]);var j=function(){var t=i()(o()().mark((function t(){var n;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return g(!0),t.next=3,(0,p.ZP)("/api/discusses/".concat(null==e?void 0:e.id,"/recommend_answer.json"),{method:"get"});case 3:0==(null==(n=t.sent)?void 0:n.status)&&w(null==n?void 0:n.answer),g(!1);case 6:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,v.jsx)(c.Z,{spinning:a,children:(0,v.jsxs)("div",{style:{color:"#000"},children:[(0,v.jsx)(f.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(null==m?void 0:m[y-1])||""}),(0,v.jsxs)(l.Z,{justify:"end",align:"middle",children:[(0,v.jsx)(u.Z,{children:(0,v.jsx)(S.Z,{simple:!0,current:y,pageSize:1,total:(null==m?void 0:m.length)||0,onChange:function(e){b(e)}})}),(0,v.jsx)(u.Z,{children:(0,v.jsx)(P.ZP,{onClick:i()(o()().mark((function t(){return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null==e||e.onChange(null==m?void 0:m[y-1]),null==e||e.setIsOpen(!1);case 2:case"end":return t.stop()}}),t)}))),children:"填入文本框"})})]})]})})}},13158:function(e,t,n){"use strict";n.d(t,{U:function(){return c}});var a=n(7557),o=n.n(a),g=n(82242),i=n.n(g),r=n(41498),d=n.n(r),h=n(79800),s=n.n(h),m=n(59301);function c(e,t){var n=(0,m.useState)(t),a=s()(n,2),g=a[0],r=a[1],h=(0,m.useState)(!1),c=s()(h,2),l=c[0],u=c[1],S=(0,m.useState)(),P=s()(S,2),w=P[0],p=P[1],f=function(){var n=d()(o()().mark((function n(a){var d,h,s,m=arguments;return o()().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return d=m.length>1&&void 0!==m[1]&&m[1],h=d?t:i()(i()({},g),a),u(!0),r(h),n.next=6,e(h);case 6:return s=n.sent,u(!1),p(s),n.abrupt("return",s);case 10:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}();return[g,l,f,w]}},6573:function(e,t,n){"use strict";n.d(t,{_:function(){return r}});var a=n(91232),o=n.n(a),g=n(59301),i=n(43418),r=function(e){var t,n,a=(0,g.useRef)([]),r=function(){var e,t=o()(a.current);try{for(t.s();!(e=t.n()).done;){var n=e.value;clearTimeout(n)}}catch(e){t.e(e)}finally{t.f()}a.current=[]};return(0,g.useEffect)((function(){var t,n;if(r(),null!=e&&null!==(t=e.exercise)&&void 0!==t&&t.left_time&&(null==e||null===(n=e.exercise)||void 0===n||null===(n=n.exercise_events)||void 0===n?void 0:n.length)>0){var g,d,h=o()(null==e||null===(g=e.exercise)||void 0===g?void 0:g.exercise_events);try{var s=function(){var t,n=d.value;if((null==e||null===(t=e.exercise)||void 0===t?void 0:t.left_time)>60*(null==n?void 0:n.reminder_time)){var o,g=1e3*((null==e||null===(o=e.exercise)||void 0===o?void 0:o.left_time)-60*(null==n?void 0:n.reminder_time));g=g>2147483647?2147483647:g;var r=setTimeout((function(){i.Z.info({content:"".concat(null==n?void 0:n.reminder_content),icon:null,title:"提示",centered:!0,okText:"知道了"})}),g);a.current.push(r)}};for(h.s();!(d=h.n()).done;)s()}catch(e){h.e(e)}finally{h.f()}}}),[null==e||null===(t=e.exercise)||void 0===t?void 0:t.left_time,null==e||null===(n=e.exercise)||void 0===n?void 0:n.exercise_events]),r}},64269:function(e,t,n){"use strict";n.d(t,{G:function(){return i},t:function(){return g}});var a=n(7062),o=n.n(a);function g(e,t){var n=o().get("__ec");n||(n={}),n[e]=t,o().set("__ec",n)}function i(e,t){var n=o().get("__ec");return n?void 0===n[e]?t:n[e]:t}},76858:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},24561:function(e,t,n){"use strict";n(59301);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;t.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},86653:function(e,t){"use strict";t.Z={footer:"footer___bruwa",whiteFooter:"whiteFooter___mR7kn",error:"error___KO0Jg",case:"case___L0pNc","resize-y-bar":"resize-y-bar___NK0gI",unfoldBtn:"unfoldBtn___aMmZw",caseHead:"caseHead___EuMPr",dot:"dot___Iky9k",text:"text___lMSx6",pass:"pass___XjijC",noPass:"noPass___JxpWk",btns:"btns___FPIaK",result:"result___oRj1h",title:"title___IhMSa",left:"left___XlC98",leftNode:"leftNode___NGHgx",right:"right____fIu_",node:"node___MwdH7",elseNode:"elseNode___WjFIg",nameWrap:"nameWrap___bEdbD",scroll:"scroll___ylWYt",scrollBox:"scrollBox___hWkc9",action:"action___xBwDi",whiteCase:"whiteCase___AZiDR",disabled:"disabled___lWQU2",codeHead:"codeHead___l8q5R",navWrap:"navWrap___xdWQe",nav:"nav___JKPVX",active:"active___DTAtT",whiteCodeHead:"whiteCodeHead___wDOny",header:"header___VjNh9",timepiece:"timepiece___yuqJC",btn_edit:"btn_edit___ozzux",whiteHeader:"whiteHeader___REV3m",djs:"djs___v0Ru7",myProblems:"myProblems___DKSbs",whiteMyProblems:"whiteMyProblems___k0QS3",fullMask:"fullMask___QZH1M"}},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZ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oCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},62522:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAABYCAYAAACJfF6vAAAAAXNSR0IArs4c6QAAIABJREFUeF7sXQe4FcXZfmd2T7n90jtYsFGModkVUGNJ7BVTVIxdI5ii/iYmxkRjEhV7ohF7wQaxBqOIxgqCQSkWUKRIv72csjvzP9/M7p7ZPefce8EGhOOD95wt0+ed9yvzDcO2z7YW2NYCm00LNL19cQ/H4j/nEt+vKK38LhtyVWazKdz/UEHY/1Bdt1V1Wwts1i3QMGviGRLyJgAVVFCb4YiykZNe2KwLvZUWbhswbqUdu61aW1YL1L0z4TrG8Cuz1IyxOytH3njOllWTraO024Bx6+jHbbXYglugcfaEC4TErZEqNAN4q2rUpEO24KptsUXfBoxbbNdtK/jW0AINsyfsC2CGlIgzBgGJaRzi9jKeeo2NuDO7NdRxS6zDNmDcEnttW5k32xYYP3XZFADfA6QFsKWTj+2/e7HCyld+azeU1S8AsDOAjxnEGZWjbn7z26rc+H8u/yWEPMti9kV3HdN7+rdVjs0h323AuDn0wrYybDUtMH7a8lsh5QW6Qqxl8rH9yopVrmHWhLMl8HcAL1UK93i21y0N30ZD/Hj66rJYKjMZAid5+T82+dj+J38bZdlc8twGjJtLT2wrx1bRAmc+tWy8ZLhb4yJWTz6mf69CFSO2WF9av5QxLG1w2CH99rmx9dtogDP/uXygFHIqgCG6zOyhxkzf0x4/ibnfRnk2lzy3WGBsmDXhTSkxFAxSAksB9jFne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zygsh7DpY/iubevzPoay376to7cMTU0hI+CSNpe5SOMWlQD1TktaGOcUsqzg/6HjwxVN5iisyVaiUCERFYc/CPVayw3T9AQxDzgerlBTcGTY1R3KRjTNGN67NhnQLsCakn4KguHSuoArKkL0X3RKqNDwGrw11GoPcU4gM1S/Pe7R+dG5+4UbFKOsYU3QZ+BTneXlxk4DIBO/RVqByNTTdSBI9UKxFIKQLSMaYQ/t7VeFj/D76n/ZGn5aXQNKlaInBbI/Af7NFDa4Ye3CIAAAAASUVORK5CYII="},60141:function(e){"use strict";e.exports="data:image/gif;base64,R0lGODlh6QDIAPf/APrMTf789vrMUPvdi/zfkfi4CvvYef713fnKSfzosP7wyvrSZfjAKPzmqf3wzP767fnHPv7xzf3wzvjFOfe2BP767vi8F/i8GPvagfnGO/jDMv3uxv3svfrNUvzkov724fvWcfzinPvbhPi5DfrTZv734vi6EPzglfnKSP3tw/nJR/3qtv3nrPrRYPjAJf/++/702PvVbvrUbfrUafrQX/rOVvnLTfrWcvi+H/i7Fv7y0P3y0/3wyv3uxPzjoPzglvi/I/vejvvZfPe5D/rTaPrPWvrOVPrKSf3vyPzlpPnNU/nKRvnENfe6E/Ly8v3sv+Xl5frZf9ra2vnIQOjo6Pv7+9jY2PX19d7e3tTU1Ovr6/n5+dzc3O7u7uLi4tDQ0M7Oztvb2/j4+N3d3ezs7NHR0f7+/tXV1fHx8fDw8NLS0uHh4d/f3/jAJvb29vT09M/Pz+/v7/f39+rq6uPj49bW1vr6+uDg4NfX1+Tk5PPz89PT0+np6efn59nZ2e3t7frPWfzmqvnFN/39/fz8/P756/723/vdif3ru/745/zhmObm5vrUav3ps/zim/zdiv757Pzlpvzruvzhmfe3Bve3B/zimvvhmvnCK/jAJ//56v/9+f7z1f702vvciPvXdfnBJ/jFN/jDL/735PvZe/e7Ffzjn/e3CPznq/3twf3ruvi+IPnFNvvdjPzps/3psvrOWP702/rQXfvYevnOWfvUav3quPrWdP302//56/i9G/zejP712/778/nIQv3orfnOV/i3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