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

1 line
444 KiB

This file contains invisible Unicode characters!

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

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[77460,36270,4977,38541,81304],{3837:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(5891),o=n(59301),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},i=n(88853),r=function(e,t){return o.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:g}))};var d=o.forwardRef(r)},80205:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(5891),o=n(59301),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=n(88853),r=function(e,t){return o.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:g}))};var d=o.forwardRef(r)},52249:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(5891),o=n(59301),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},i=n(88853),r=function(e,t){return o.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:g}))};var d=o.forwardRef(r)},15962:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var a=n(5891),o=n(59301),g={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},i=n(88853),r=function(e,t){return o.createElement(i.Z,(0,a.Z)({},e,{ref:t,icon:g}))};var d=o.forwardRef(r)},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 s,h,c,l=e-n,m=o-i,u=NaN,S=NaN;0===l?0===m?e===n&&(u=e,S=t):S=(h=(g-r)/m)*(u=e)+(g-h*o):S=0===m?(s=(t-a)/l)*(u=o)+(c=t-s*e):(s=(t-a)/l)*(u=(g-(h=(g-r)/m)*o-(c=t-s*e))/(s-h))+c;return d.x=u,d.y=S,d}function i(e,t,n,a,o,g,i,r,d,s,h,c,l,m){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,y=P*u+p*d,x=w*u+f*d,j=p*u+v*d,M=L*u+x*d,N=y*u+j*d;s.x=S,s.y=P,h.x=L,h.y=y,c.x=M,c.y=N,l.x=x,l.y=j,m.x=f,m.y=v}var r=new go.Spot(.156,.156),d=new go.Spot(.844,.844),s=(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))*s,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,s*t,0,t,(1-s)*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,s*n,(1-s)*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,s*n,s*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-s)*t,0,0,(1-s)*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 h=[];function c(){var e=h.pop();return void 0===e?[]:e}function l(e){e.length=0,h.push(e)}function m(e){for(var t=c(),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=c();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 l(t),n}function S(e){for(var t=m(e),n=c(),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],s=t[r+1],h=t[(a+r-1)%o],u=t[(a+r+i)%o];n[2*r]=d,n[2*r+1]=g(d.x,d.y,h.x,h.y,s.x,s.y,u.x,u.y,new go.Point)}return n[n.length]=n[0],l(t),n}go.Shape.defineFigureGenerator("Pentagon",(function(e,t,n){var a=m(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()),l(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=m(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()),l(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=m(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()),l(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=m(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()),l(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=m(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()),l(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=m(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()),l(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=m(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()),l(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()),l(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()),l(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()),l(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()),l(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()),l(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()),l(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(),l(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(),l(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(),l(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(),l(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(),l(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(),l(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 s=Math.max(o-a,0);return s>0&&(i.add(new go.PathSegment(go.PathSegment.Move,t/2+s,t/2)),i.add(new go.PathSegment(go.PathSegment.Arc,0,-360,o,o,s,s).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=s/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(s=new go.Geometry(go.Geometry.Rectangle)).startX=0,s.startY=0,s.endX=t,s.endY=n,s;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),s=new go.Geometry,h=new go.PathFigure(r,0,!0);return s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,o,.2*n)),h.add(new go.PathSegment(go.PathSegment.Line,t-r,0)),h.add(new go.PathSegment(go.PathSegment.Line,t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.8*t,g)),h.add(new go.PathSegment(go.PathSegment.Line,t,n-d)),h.add(new go.PathSegment(go.PathSegment.Line,t-r,n)),h.add(new go.PathSegment(go.PathSegment.Line,o,.8*n)),h.add(new go.PathSegment(go.PathSegment.Line,r,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,n-d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,g)),h.add(new go.PathSegment(go.PathSegment.Line,0,d).close()),s})),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,s*t,0,t,(.5-s/2)*n)).add(new go.PathSegment(go.PathSegment.Bezier,0,n,t,(.5+s/2)*n,s*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*s;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)*s,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)*s,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*s,d=.5,h=.5,c=.5,l=new go.PathFigure(h*t,(c-d)*n);g.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(h-d)*t,c*n,(h-r)*t,(c-d)*n,(h-d)*t,(c-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c+d)*n,(h-d)*t,(c+r)*n,(h-r)*t,(c+d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+d)*t,c*n,(h+r)*t,(c+d)*n,(h+d)*t,(c+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c-d)*n,(h+d)*t,(c-r)*n,(h+r)*t,(c-d)*n)),d=.4,r=.4*s;var m=a(),u=a(),S=a(),P=a();i(h,c-d,h+r,c-d,h+d,c-r,h+d,c,.42,m,u,S,P,P);var w=a(),p=a(),f=a();i(h,c-d,h+r,c-d,h+d,c-r,h+d,c,.58,P,P,f,w,p);var v=a(),L=a(),y=a();i(h,c+d,h-r,c+d,h-d,c+r,h-d,c,.42,v,L,y,P,P);var x=a(),j=a(),M=a();return i(h,c+d,h-r,c+d,h-d,c+r,h-d,c,.58,P,P,M,x,j),l.add(new go.PathSegment(go.PathSegment.Move,M.x*t,M.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h-d)*t,c*n,x.x*t,x.y*n,j.x*t,j.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c-d)*n,(h-d)*t,(c-r)*n,(h-r)*t,(c-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,S.x*t,S.y*n,m.x*t,m.y*n,u.x*t,u.y*n)),l.add(new go.PathSegment(go.PathSegment.Line,M.x*t,M.y*n).close()),l.add(new go.PathSegment(go.PathSegment.Move,y.x*t,y.y*n)),l.add(new go.PathSegment(go.PathSegment.Line,f.x*t,f.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+d)*t,c*n,w.x*t,w.y*n,p.x*t,p.y*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c+d)*n,(h+d)*t,(c+r)*n,(h+r)*t,(c+d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,y.x*t,y.y*n,v.x*t,v.y*n,L.x*t,L.y*n).close()),o(m),o(u),o(S),o(P),o(w),o(p),o(f),o(v),o(L),o(y),o(x),o(j),o(M),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*s,h=.4,c=.5,l=.5,m=a(),u=a(),S=a(),P=a(),w=new go.PathFigure((c-h)*t,l*g,!1);r.add(w),w.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l-h)*g,(c-h)*t,(l-d)*g,(c-d)*t,(l-h)*g)),i(c,l-h,c+d,l-h,c+h,l-d,c+h,l,.44,S,P,u,m,m),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(c,l-h,c+d,l-h,c+h,l-d,c+h,l,.56,m,m,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,(c+h)*t,l*g,S.x*t,S.y*g,P.x*t,P.y*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l+h)*g,(c+h)*t,(l+d)*g,(c+d)*t,(l+h)*g)),w.add(new go.PathSegment(go.PathSegment.Bezier,(c-h)*t,l*g,(c-d)*t,(l+h)*g,(c-h)*t,(l+d)*g)),h=.35,d=.35*s;var v=new go.PathFigure(c*t,(l-h)*g,!1);r.add(v),v.add(new go.PathSegment(go.PathSegment.Bezier,(c-h)*t,l*g,(c-d)*t,(l-h)*g,(c-h)*t,(l-d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l+h)*g,(c-h)*t,(l+d)*g,(c-d)*t,(l+h)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,(c+h)*t,l*g,(c+d)*t,(l+h)*g,(c+h)*t,(l+d)*g)),v.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l-h)*g,(c+h)*t,(l-d)*g,(c+d)*t,(l-h)*g));var L=new go.PathFigure((c-h)*t,l*g,!1);return r.add(L),o(m),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*s,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)*s;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,s=(.5-r/2)*n,h=(.5+r/2)*n,c=new go.Geometry,l=new go.PathFigure(0,s,!0);c.add(l),l.add(new go.PathSegment(go.PathSegment.Line,d,s)),l.add(new go.PathSegment(go.PathSegment.Line,d,0)),l.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,d,n)),l.add(new go.PathSegment(go.PathSegment.Line,d,h)),l.add(new go.PathSegment(go.PathSegment.Line,0,h).close()),c.spot1=new go.Spot(0,s/n);var m=g(0,h/n,1,h/n,d/t,1,1,.5,a());return c.spot2=new go.Spot(m.x,m.y),o(m),c})),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,s=(n-(r=Math.min(r,n/2)))/2,h=s+r,c=new go.Geometry,l=new go.PathFigure(0,s,!0);c.add(l),l.add(new go.PathSegment(go.PathSegment.Line,d,s)),l.add(new go.PathSegment(go.PathSegment.Line,d,0)),l.add(new go.PathSegment(go.PathSegment.Line,t,.5*n)),l.add(new go.PathSegment(go.PathSegment.Line,d,n)),l.add(new go.PathSegment(go.PathSegment.Line,d,h)),l.add(new go.PathSegment(go.PathSegment.Line,0,h).close()),c.spot1=new go.Spot(0,s/n);var m=g(0,h/n,1,h/n,d/t,1,1,.5,a());return c.spot2=new go.Spot(m.x,m.y),o(m),c})),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,s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,0)),h.add(new go.PathSegment(go.PathSegment.Line,.3*t,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close());var c=g(0,.5,.3,0,0,r/n,.1,r/n,a());return s.spot1=new go.Spot(c.x,c.y),c=g(.7,1,1,.5,0,d/n,1,d/n,c),s.spot2=new go.Spot(c.x,c.y),o(c),s})),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,s=d+i,h=(n-r)/2,c=h+r;(i>n||r>n)&&(r>i?(s=(d=(n-(i=i*n/r))/2)+i,h=0,c=n):(d=0,s=n,h=0,c=n));var l=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);l.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,c)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,s)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,c)),m.add(new go.PathSegment(go.PathSegment.Line,0,.5*n)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,h)),m.add(new go.PathSegment(go.PathSegment.Line,.3*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,h).close());var u=g(0,.5,.3,h/n,0,d/n,1,d/n,a());return l.spot1=new go.Spot(u.x,u.y),u=g(.7,c/n,1,.5,0,s/n,1,s/n,u),l.spot2=new go.Spot(u.x,u.y),o(u),l})),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,s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,0)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,0)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),s.spot1=new go.Spot(0,r/n);var c=g(.7,1,1,.5,0,d/n,1,d/n,a());return s.spot2=new go.Spot(c.x,c.y),o(c),s})),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,s=d+i,h=(n-r)/2,c=h+r;(i>n||r>n)&&(r>i?(s=(d=(n-(i=i*n/r))/2)+i,h=0,c=n):(d=0,s=n,h=0,c=n));var l=new go.Geometry,m=new go.PathFigure(t,.5*n,!0);l.add(m),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,c)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,s)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,s)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,c)),m.add(new go.PathSegment(go.PathSegment.Line,0,c)),m.add(new go.PathSegment(go.PathSegment.Line,0,h)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,h)),m.add(new go.PathSegment(go.PathSegment.Line,.2*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),m.add(new go.PathSegment(go.PathSegment.Line,.7*t,h).close()),l.spot1=new go.Spot(0,d/n);var u=g(.7,c/n,1,.5,0,s/n,1,s/n,a());return l.spot2=new go.Spot(u.x,u.y),o(u),l})),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 s=g(.2,.65,1,.65,0,1,1,.5,a());return r.spot2=new go.Spot(s.x,s.y),o(s),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 s=g(0,.65,1,.65,0,1,1,.5,a());return r.spot2=new go.Spot(s.x,s.y),o(s),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,s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,0,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),h.add(new go.PathSegment(go.PathSegment.Line,0,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),s.spot1=new go.Spot(.2,.3);var c=g(.7,1,1,.5,0,d/n,1,d/n,a());return s.spot2=new go.Spot(c.x,c.y),o(c),s})),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 s=new go.Geometry,h=new go.PathFigure(t,.5*n,!0);s.add(h),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,d)),h.add(new go.PathSegment(go.PathSegment.Line,0,d)),h.add(new go.PathSegment(go.PathSegment.Line,.2*t,.5*n)),h.add(new go.PathSegment(go.PathSegment.Line,0,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,r)),h.add(new go.PathSegment(go.PathSegment.Line,.7*t,0).close()),s.spot1=new go.Spot(.2,r/n);var c=g(.7,1,1,.5,0,d/n,1,d/n,a());return s.spot2=new go.Spot(c.x,c.y),o(c),s})),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*s,g=.1*s,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*s,i=new go.PathFigure(0,a,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,0,0,s*a,(.5-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,1*t,a,(.5+g)*t,0,1*t,s*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-s*a,(.5+g)*t,1*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,1*n,0,n-s*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-s*a,(.5+g)*t,2*a)),r.add(new go.PathSegment(go.PathSegment.Bezier,0,a,(.5-g)*t,2*a,0,2*a-s*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*s,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,s*a,(.5-g)*t,0)),i.add(new go.PathSegment(go.PathSegment.Bezier,t,a,(.5+g)*t,0,t,s*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-s*a,(.5+g)*t,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,n-a,(.5-g)*t,n,0,n-s*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-s*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-s*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*s,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-s*a,0,t,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-s*a,n)),i.add(new go.PathSegment(go.PathSegment.Line,a,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,s*a,n,0,(.5+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,s*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+s*a,0,2*a,(.5-g)*n)),r.add(new go.PathSegment(go.PathSegment.Bezier,a,n,2*a,(.5+g)*n,a+s*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*s,i=new go.PathFigure(t-a,0,!0);o.add(i),i.add(new go.PathSegment(go.PathSegment.Bezier,t,.5*n,t-s*a,0,t,(.5-g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,t-a,n,t,(.5+g)*n,t-s*a,n)),i.add(new go.PathSegment(go.PathSegment.Line,a,n)),i.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*n,s*a,n,0,(.5+g)*n)),i.add(new go.PathSegment(go.PathSegment.Bezier,a,0,0,(.5-g)*n,s*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-s*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-s*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=s*o,r=s*g,d=.5,h=.1,c=new go.PathFigure(d*t,(h+g)*n,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,(d-o)*t,h*n,(d-i)*t,(h+g)*n,(d-o)*t,(h+r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-g)*n,(d-o)*t,(h-r)*n,(d-i)*t,(h-g)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(d+o)*t,h*n,(d+i)*t,(h-g)*n,(d+o)*t,(h-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h+g)*n,(d+o)*t,(h+r)*n,(d+i)*t,(h+g)*n));var l=.05,m=s*l;d=.05,h=.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,h=.25,u.add(new go.PathSegment(go.PathSegment.Bezier,(d+l)*t,h*n,(d+m)*t,(h-l)*n,(d+l)*t,(h-m)*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)),m=s*(l=.025),d=.825,h=.35,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d+l)*t,(h-m)*n,(d+m)*t,(h-l)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-l)*t,h*n,(d-m)*t,(h-l)*n,(d-l)*t,(h-m)*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)),m=s*(l=.05),d=.5,h=.7,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d+l)*t,(h-m)*n,(d+m)*t,(h-l)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-l)*t,h*n,(d-m)*t,(h-l)*n,(d-l)*t,(h-m)*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)),m=s*(l=.025),d=.175,h=.35,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d+l)*t,(h-m)*n,(d+m)*t,(h-l)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(d-l)*t,h*n,(d-m)*t,(h-l)*n,(d-l)*t,(h-m)*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)),m=s*(l=.05),d=.05,h=.25,u.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-l)*n,(d-l)*t,(h-m)*n,(d-m)*t,(h-l)*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*s,g=.1*s,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*s,g=.1*s,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*s,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*s,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 h=new go.PathFigure((g+o)*t,(g+o)*n,!1);return a.add(h),h.add(new go.PathSegment(go.PathSegment.Line,g*t,g*n)),h.add(new go.PathSegment(go.PathSegment.Move,g*t,(g+o)*n)),h.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*s,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*s,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*s,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*s,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*s,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*s,g=.4*s,i=.1*s,r=.9,d=.5,h=new go.PathFigure(.8*t,.5*n,!0);a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,.4*t,n,.8*t,(.5+g)*n,(.4+o)*t,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,n)),h.add(new go.PathSegment(go.PathSegment.Line,0,0)),h.add(new go.PathSegment(go.PathSegment.Line,.4*t,0)),h.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,.5*n,(.4+o)*t,0,.8*t,(.5-g)*n));var c=new go.PathFigure(1*t,d*n,!0);return a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,r*t,.6*n,1*t,(d+i)*n,(r+i)*t,.6*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,.8*t,d*n,(r-i)*t,.6*n,.8*t,(d+i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,r*t,.4*n,.8*t,(d-i)*n,(r-i)*t,.4*n)),c.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=s*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*s,i=.9,r=.5;var h=new go.PathFigure((i-o)*t,r*n,!0);return a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),h.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*s,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=s*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 h=new go.PathFigure(.8*t,.5*n,!0);a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,n,.7*t,(r+g)*n,(i+g)*t,(r+o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.2*t,0,.45*t,.75*n,.45*t,.25*n)),h.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*s,i=.9,r=.5;var c=new go.PathFigure((i-o)*t,r*n,!0);return a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),c.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*s,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*s,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*s,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*s,g=.8,i=0,r=.5,d=(t-(t*=.38))/2,h=(n-(n*=.6))/2,c=new go.PathFigure(i*t+d,(r+g)*n+h,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+h,(i-o)*t+d,(r+g)*n+h,(i-g)*t+d,(r+o)*n+h)),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+h,(i-g)*t+d,(r-o)*n+h,(i-o)*t+d,(r-g)*n+h)),c.add(new go.PathSegment(go.PathSegment.Bezier,(i-g+.5*o)*t+d,r*n+h,i*t+d,(r-g)*n+h,(i-g+.5*o)*t+d,(r-o)*n+h)),c.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+h,(i-g+.5*o)*t+d,(r+o)*n+h,i*t+d,(r+g)*n+h).close()),o=.4*s,g=.4,i=.2,r=.5;var l=new go.PathFigure(i*t+d,(r+g)*n+h,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+h,(i-o)*t+d,(r+g)*n+h,(i-g)*t+d,(r+o)*n+h)),l.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+h,(i-g)*t+d,(r-o)*n+h,(i-o)*t+d,(r-g)*n+h)),l.add(new go.PathSegment(go.PathSegment.Bezier,(i-g+.5*o)*t+d,r*n+h,i*t+d,(r-g)*n+h,(i-g+.5*o)*t+d,(r-o)*n+h)),l.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+h,(i-g+.5*o)*t+d,(r+o)*n+h,i*t+d,(r+g)*n+h).close()),o=.2*s,g=.2,i=.5,r=.5;var m=new go.PathFigure((i-g)*t+d,r*n+h,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+h,(i-g)*t+d,(r-o)*n+h,(i-o)*t+d,(r-g)*n+h)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+h,(i+o)*t+d,(r-g)*n+h,(i+g)*t+d,(r-o)*n+h)),m.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+h,(i+g)*t+d,(r+o)*n+h,(i+o)*t+d,(r+g)*n+h)),m.add(new go.PathSegment(go.PathSegment.Bezier,(i-g)*t+d,r*n+h,(i-o)*t+d,(r+g)*n+h,(i-g)*t+d,(r+o)*n+h)),o=.4*s,g=.4,i=.8,r=.5;var u=new go.PathFigure(i*t+d,(r-g)*n+h,!0);a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+h,(i+o)*t+d,(r-g)*n+h,(i+g)*t+d,(r-o)*n+h)),u.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+h,(i+g)*t+d,(r+o)*n+h,(i+o)*t+d,(r+g)*n+h)),u.add(new go.PathSegment(go.PathSegment.Bezier,(i+g-.5*o)*t+d,r*n+h,i*t+d,(r+g)*n+h,(i+g-.5*o)*t+d,(r+o)*n+h)),u.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+h,(i+g-.5*o)*t+d,(r-o)*n+h,i*t+d,(r-g)*n+h).close()),o=.8*s,g=.8,i=1,r=.5;var S=new go.PathFigure(i*t+d,(r-g)*n+h,!0);return a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,(i+g)*t+d,r*n+h,(i+o)*t+d,(r-g)*n+h,(i+g)*t+d,(r-o)*n+h)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r+g)*n+h,(i+g)*t+d,(r+o)*n+h,(i+o)*t+d,(r+g)*n+h)),S.add(new go.PathSegment(go.PathSegment.Bezier,(i+g-.5*o)*t+d,r*n+h,i*t+d,(r+g)*n+h,(i+g-.5*o)*t+d,(r+o)*n+h)),S.add(new go.PathSegment(go.PathSegment.Bezier,i*t+d,(r-g)*n+h,(i+g-.5*o)*t+d,(r-o)*n+h,i*t+d,(r-g)*n+h).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*s,h=.4,c=.5,l=.5,m=a(),u=a(),S=a(),P=a();i(c,l-h,c+d,l-h,c+h,l-d,c+h,l,.5,m,m,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,(c+h)*t,l*g,S.x*t,S.y*g,P.x*t,P.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l+h)*g,(c+h)*t,(l+d)*g,(c+d)*t,(l+h)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(c-h)*t,l*g,(c-d)*t,(l+h)*g,(c-h)*t,(l+d)*g)),i(c-h,l,c-h,l-d,c-d,l-h,c,l-h,.5,S,P,u,m,m),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(c-(h=.3),l,c-h,l-(d=.3*s),c-d,l-h,c,l-h,.5,S,P,u,m,m),p.add(new go.PathSegment(go.PathSegment.Line,u.x*t,u.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(c-h)*t,l*g,P.x*t,P.y*g,S.x*t,S.y*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l+h)*g,(c-h)*t,(l+d)*g,(c-d)*t,(l+h)*g)),p.add(new go.PathSegment(go.PathSegment.Bezier,(c+h)*t,l*g,(c+d)*t,(l+h)*g,(c+h)*t,(l+d)*g)),i(c,l-h,c+d,l-h,c+h,l-d,c+h,l,.5,m,m,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(m),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*s,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,s=Math.PI/4,h=4*(1-Math.cos(s))/(3*Math.sin(s)),c=i,l=i,m=h*c,u=h*l;g.add(new go.PathSegment(go.PathSegment.Bezier,.285*t,d*n,(r-(m+c)/2)*t,(d+(l+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-m)*t,0*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,(r+c)*t,d*n,(r+m)*t,0*n,(r+c)*t,(d-u)*n)),g.add(new go.PathSegment(go.PathSegment.Bezier,.635*t,.405*n,(r+c)*t,(d+u)*n,(r+(m+c)/2)*t,(d+(l+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*s,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*s,d=.2,h=.9,c=new go.PathFigure((d-i)*t,h*n,!0);a.add(c),c.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-i)*n,(d-i)*t,(h-r)*n,(d-r)*t,(h-i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(d+i)*t,h*n,(d+r)*t,(h-i)*n,(d+i)*t,(h-r)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h+i)*n,(d+i)*t,(h+r)*n,(d+r)*t,(h+i)*n)),c.add(new go.PathSegment(go.PathSegment.Bezier,(d-i)*t,h*n,(d-r)*t,(h+i)*n,(d-i)*t,(h+r)*n).close()),i=.1,r=.1*s,d=.8,h=.9;var l=new go.PathFigure((d-i)*t,h*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h-i)*n,(d-i)*t,(h-r)*n,(d-r)*t,(h-i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d+i)*t,h*n,(d+r)*t,(h-i)*n,(d+i)*t,(h-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,d*t,(h+i)*n,(d+i)*t,(h+r)*n,(d+r)*t,(h+i)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(d-i)*t,h*n,(d-r)*t,(h+i)*n,(d-i)*t,(h+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,h=.1*s,c=.1,l=.9,m=new go.PathFigure((c-d)*t,l*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l-d)*n,(c-d)*t,(l-h)*n,(c-h)*t,(l-d)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(c+d)*t,l*n,(c+h)*t,(l-d)*n,(c+d)*t,(l-h)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l+d)*n,(c+d)*t,(l+h)*n,(c+h)*t,(l+d)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(c-d)*t,l*n,(c-h)*t,(l+d)*n,(c-d)*t,(l+h)*n)),d=.1,h=.1*s,c=.4,l=.9;var u=new go.PathFigure((c-d)*t,l*n,!0);return a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l-d)*n,(c-d)*t,(l-h)*n,(c-h)*t,(l-d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(c+d)*t,l*n,(c+h)*t,(l-d)*n,(c+d)*t,(l-h)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,c*t,(l+d)*n,(c+d)*t,(l+h)*n,(c+h)*t,(l+d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(c-d)*t,l*n,(c-h)*t,(l+d)*n,(c-d)*t,(l+h)*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*s,h=.175,c=.95,l=new go.PathFigure((h-r)*t,c*n,!0);a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c-r)*n,(h-r)*t,(c-d)*n,(h-d)*t,(c-r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+r)*t,c*n,(h+d)*t,(c-r)*n,(h+r)*t,(c-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c+r)*n,(h+r)*t,(c+d)*n,(h+d)*t,(c+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h-r)*t,c*n,(h-d)*t,(c+r)*n,(h-r)*t,(c+d)*n));r=.05,d=.05*s,h=.375,c=.95;var m=new go.PathFigure((h-r)*t,c*n,!0);a.add(m),m.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c-r)*n,(h-r)*t,(c-d)*n,(h-d)*t,(c-r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(h+r)*t,c*n,(h+d)*t,(c-r)*n,(h+r)*t,(c-d)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c+r)*n,(h+r)*t,(c+d)*n,(h+d)*t,(c+r)*n)),m.add(new go.PathSegment(go.PathSegment.Bezier,(h-r)*t,c*n,(h-d)*t,(c+r)*n,(h-r)*t,(c+d)*n));r=.05,d=.05*s,h=.625,c=.95;var u=new go.PathFigure((h-r)*t,c*n,!0);a.add(u),u.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c-r)*n,(h-r)*t,(c-d)*n,(h-d)*t,(c-r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(h+r)*t,c*n,(h+d)*t,(c-r)*n,(h+r)*t,(c-d)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c+r)*n,(h+r)*t,(c+d)*n,(h+d)*t,(c+r)*n)),u.add(new go.PathSegment(go.PathSegment.Bezier,(h-r)*t,c*n,(h-d)*t,(c+r)*n,(h-r)*t,(c+d)*n));r=.05,d=.05*s,h=.825,c=.95;var S=new go.PathFigure((h-r)*t,c*n,!0);a.add(S),S.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c-r)*n,(h-r)*t,(c-d)*n,(h-d)*t,(c-r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(h+r)*t,c*n,(h+d)*t,(c-r)*n,(h+r)*t,(c-d)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c+r)*n,(h+r)*t,(c+d)*n,(h+d)*t,(c+r)*n)),S.add(new go.PathSegment(go.PathSegment.Bezier,(h-r)*t,c*n,(h-d)*t,(c+r)*n,(h-r)*t,(c+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*s,h=.35,c=.775,l=new go.PathFigure(.3*t,c*n,!0);return a.add(l),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,.725*n,.3*t,(c-d)*n,(h-d)*t,.725*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,(h+r)*t,c*n,(h+d)*t,.725*n,(h+r)*t,(c-d)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,h*t,(c+r)*n,(h+r)*t,(c+d)*n,(h+d)*t,(c+r)*n)),l.add(new go.PathSegment(go.PathSegment.Bezier,.3*t,c*n,(h-d)*t,(c+r)*n,.3*t,(c+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*s,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 h=new go.PathFigure(0,.7*n,!1);return a.add(h),h.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*s,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*s,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*s,i=.5,r=.8;var h=new go.PathFigure((i-o)*t,r*n,!1);return a.add(h),h.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r-o)*n,(i-o)*t,(r-g)*n,(i-g)*t,(r-o)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,(i+o)*t,r*n,(i+g)*t,(r-o)*n,(i+o)*t,(r-g)*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,i*t,(r+o)*n,(i+o)*t,(r+g)*n,(i+g)*t,(r+o)*n)),h.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()),h.add(new go.PathSegment(go.PathSegment.Move,.5*t,.7*n)),h.add(new go.PathSegment(go.PathSegment.Line,.5*t,.5*n)),h.add(new go.PathSegment(go.PathSegment.Bezier,.5*t,.2*n,.75*t,.475*n,.75*t,.225*n)),h.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*s,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))*s,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*s,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,s=null,h=0;h<arguments.length;h++){var c=arguments[h];if(null!==c)switch(_typeof(c)){case"number":t=c.toFixed(1);break;case"string":c.match(new RegExp("^[0-9]\\.[0-9]+$"))?t=c:i=c;break;case"object":void 0!==c.is3D?a=c:n=c;break;case"boolean":o=c,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 l="",m=!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 y(){try{return window.self!==window.top}catch(e){return!0}}function x(){return(!n.hasOwnProperty("screenshotGenerator")||!n.screenshotGenerator)&&Math.max(screen.width,screen.height)<800}e.setHTML5Codebase=function(e,t){s=e,k(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 s=arguments[d];"string"==typeof s?(s=s.toLowerCase()).match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?o=s:g=arguments[d]:"boolean"==typeof s?i=s:s instanceof HTMLElement&&(a=s)}function h(){if(r){o=B(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)T(d,n);else{var s=!1;n.hasOwnProperty("playButton")&&n.playButton||n.hasOwnProperty("clickToLoad")&&n.clickToLoad?s=!0:n.hasOwnProperty("playButtonAutoDecide")&&n.playButtonAutoDecide&&(s=(!y()||t())&&x()),s?(u="screenshot",C(d,n,i,o)):z(d,n,i)}else console.log("possibly bug on ajax loading? ")}else setTimeout(h,200)}h()},e.getViews=function(){return a},e.isJavaInstalled=function(){return!1};var j=function(t){var o=function(){n.onError&&n.onError(),F("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";N("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,M(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 M(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 N(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 b=function(e){return e&&"false"!==e},z=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)b(n.showToolBar)&&(n.height-=7),b(n.showAlgebraInput)&&(n.height-=37),n.width<605&&b(n.showToolBar)&&(n.width=605,i=605);else{var h=100;(b(n.showToolBar)||b(n.showMenuBar))&&(n.hasOwnProperty("customToolBar")&&(n.customToolbar=n.customToolBar),h=b(n.showMenuBar)?245:155),i<h&&(n.width=h,i=h)}for(var c in g.style.border="none",g.style.display="inline-block",n)n.hasOwnProperty(c)&&"appletOnLoad"!==c&&g.setAttribute("data-param-"+c,n[c]);v&&g.setAttribute("data-param-fontscssurl",v),e.resize=function(){GGBAppletUtils.responsiveResize(t,n)},window.addEventListener("resize",(function(t){e.resize()}));var m="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(),m(t)}}else{n.hasOwnProperty("showSplash")||g.setAttribute("data-param-showSplash","false");var p=t.querySelector(".applet_scaler.prerender"),f=null!==p;if(f)y=p.querySelector(".ggb_preview");else{var y=D(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"),m(e)},f||p.appendChild(y)):g.appendChild(y),p.appendChild(g),f||t.appendChild(p),setTimeout((function(){e.resize()}),1)}function x(e,t){t&&"function"==typeof t.appletOnLoad&&"function"==typeof renderGGBElement?renderGGBElement(e,t.appletOnLoad):renderGGBElement(e),F("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",t)}function j(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){x(e.article,e.params)})),html5AppletsToProcess=null)},L(S)<5&&(e.className+=" geogebraweb")):x(e,t)}if(o){scriptLoadStarted=!0;for(var M=0;M<g.childNodes.length;M++){"TABLE"===g.childNodes[M].tagName&&(g.removeChild(g.childNodes[M]),M--)}if(null!==ggbHTML5LoadedScript){var N=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');null!=N&&N.parentNode.removeChild(N)}var z=document.createElement("script"),T=function(){j(g,n)};z.src=l+P,ggbHTML5LoadedCodebaseIsWebSimple=w,ggbHTML5LoadedCodebaseVersion=S,ggbHTML5LoadedScript=z.src,F("GeoGebra HTML5 codebase loaded: '"+l+"'.",n),s||d&&"5.0"!=d?l.requirejs?__webpack_require__.e(32721).then(function(){var e=[__webpack_require__(32721)];T.apply(null,e)}.bind(this)).catch(__webpack_require__.oe):(z.onload=T,t.appendChild(z)):(w?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),T())}else j(g,n);n.height=r,n.width=i},T=function(t,n,a){var o=D(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(A()),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(){I(t,o,g,a)},window.addEventListener("resize",(function(t){e.resize()})),e.resize()};function I(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 C=function(e,t,n,a){T(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"))):z(o,t,!1),window.GGBT_wsf_view.launchFullScreen(g)}else u=a,z(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),x()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},A=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},D=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,s=document.createElement("img");if((s.style.position="relative",s.style.zIndex="1000",s.style.top="-1px",s.style.left="-1px",null!==p&&s.setAttribute("src",p),s.style.opacity=.7,null!==f)&&!a){(i=document.createElement("img")).style.position="absolute",i.style.zIndex="1001",i.style.opacity=1,s.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 h=(e-r)/2,c=(t-d)/2;i.style.left=h+"px",i.style.top=c+"px",o.appendChild(i)}return o.appendChild(s),o},B=function(e){return"html5"===(e=e.toLowerCase())||"screenshot"===e?e:"html5"},G=["web","webSimple","web3d","tablet","tablet3d","phone"],E=function(e,t){if(S=e,t)k(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 s=S.indexOf("//");for(var h in i=s>0?S:0===s?g+S:"https://www.geogebra.org/apps/5.2.814.0/",G)if(S.slice(-1*G[h].length)===G[h]||S.slice(-1*(G[h].length+1))===G[h]+"/")return void k(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||b(n.showToolBar)||b(n.showMenuBar)||b(n.showAlgebraInput)||b(n.enableRightClick)||n.appName&&"classic"!=n.appName?i+="web3d/":i+="webSimple/",k(i,!1)}},k=function(e,t){if(e.requirejs)l=e;else{"/"!==e.slice(-1)&&(e+="/"),l=e,null===t&&(t=-1===e.indexOf("http")),m=t,P="web.nocache.js",w=!1;var n=l.split("/");n.length>1&&(t||"webSimple"!==n[n.length-2]?G.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))}},F=function(e,t){window.console&&window.console.log&&(!t||void 0===t.showLogging||t.showLogging&&"false"!==t.showLogging)&&console.log(e)};function O(){var e=t;null!==d?e=d:parseFloat(e)<5&&(e="5.0"),E(e,!1),null!==s&&k(s,m),r=!0}return void 0!==n.material_id?j(O):O(),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,s=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,s=0,h=0,c=0,l=0,m=0,u=0;if(i)d=i.offsetWidth,s=Math.max(a?i.offsetWidth:0,i.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(d=Math.min(window.innerWidth,document.documentElement.clientWidth),s=Math.min(window.innerHeight,document.documentElement.clientHeight),h=d):(d=window.innerWidth,s=window.innerHeight,h=window.innerWidth),e){var S=e.getBoundingClientRect();S.left>0&&S.left<=d&&(void 0===o||!o)&&("rtl"===document.dir?(l=d-S.width-S.left,m=h<=480?10:30):(m=S.left,l=h<=480?10:30),c=m+l)}e&&"object"===_typeof(window.GGBT_wsf_view)&&window.GGBT_wsf_view.isFullscreen()&&(e.getBoundingClientRect(),"closePositionRight"===window.GGBT_wsf_view.getCloseBtnPosition()?(c=40,u=0):"closePositionTop"===window.GGBT_wsf_view.getCloseBtnPosition()&&(c=0,u=40))}return e&&((void 0===n||!n)&&t>0&&t+c<d?d=t:d-=c,"object"!==_typeof(window.GGBT_wsf_view)||!window.GGBT_wsf_view.isFullscreen()||void 0!==n&&n||(s-=u)),{width:d,height:s}}(t,e.width,n,d,i&&window.GGBT_wsf_view||r,o),h=parseInt(s.width),c=e.width,l=e.height;if(void 0===c){var m=t.querySelector(".appletParameters");m&&(c=m.offsetWidth,l=m.offsetHeight)}var u=h/c,S=i?1:s.height/l;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,s=0;s<n.childNodes.length;s++)if(void 0!==n.childNodes[s].className&&n.childNodes[s].className.match(/^applet_scaler/)){d=n.childNodes[s];break}if(null!==d&&null!==d.querySelector(".noscale"))return;var h=void 0!==g.id?g.id:"ggbApplet",c=window[h];null!=c&&c.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},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),s=n(59301),h="imageDimensions___a7crR",c="img___Kroat",l="fullWidth___c492T",m=n(92310),u=n.n(m),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,m=e.onClose,v=e.onOk,L=e.showFullTools,y=e.noAssociationId,x=(0,s.useRef)(null),j=(0,s.useRef)(null),M=(0,s.useRef)(null),N=(0,s.useRef)(null),b=(0,s.useState)(!1),z=d()(b,2),T=z[0],I=z[1],C=(0,s.useState)("正在加载中"),A=d()(C,2),D=A[0],B=A[1];(0,s.useEffect)((function(){M.current||(M.current=document.createElement("style"),document.head.appendChild(M.current)),null!=t&&t.visible?(document.body.setAttribute("data-custom","y-hidden"),M.current.innerHTML=" html { overflow-y: hidden; }",null!=t&&t.src&&G()):(document.body.removeAttribute("data-custom"),M.current&&(document.head.removeChild(M.current),M.current=null))}),[null==t?void 0:t.visible]);var G=function(){var e=i()(o()().mark((function e(){var n;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I(!0),B("正在加载中"),e.next=4,(0,p.ZJ)(null==t?void 0:t.src);case 4:n=e.sent,x.current.src="",x.current.src=n,x.current.onload=function(){k()},I(!1),B("");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 I(!0),B("正在保存中"),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||y){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:I(!1),B("");case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){j.current=new P.hP(x.current),j.current.targetRoot=N.current,j.current.addEventListener("render",E),j.current.addEventListener("beforeclose",m),L&&(j.current.availableMarkerTypes=j.current.ALL_MARKER_TYPES,j.current.uiStyleSettings.redoButtonVisible=!0,j.current.uiStyleSettings.notesButtonVisible=!0,j.current.uiStyleSettings.zoomButtonVisible=!0,j.current.uiStyleSettings.zoomOutButtonVisible=!0,j.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=j.current.uiStyleSettings,j.current.show(),null!=t&&t.snapshotData&&j.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)(s.Fragment,{children:(null==t?void 0:t.visible)&&(0,f.jsx)(S.Z,{spinning:T,tip:D,style:{position:"absolute"},children:(0,f.jsx)("div",{ref:N,className:u()(h,n,a?l:""),style:r,children:(0,f.jsx)("img",{className:c,ref:x})})})})}},21791:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(79265),o="ldsRing___mpBZC",g="idsRingWrapper___Of9_n",i=n(37712),r=function(e){var t=e.message,n=e.className,r=e.children,d=e.style,s=void 0===d?{}:d;return(0,i.jsxs)("div",{className:"custom-spinner ".concat(g," ").concat(n),children:[(0,i.jsxs)("div",{className:o,children:[(0,i.jsx)("div",{}),(0,i.jsx)("div",{}),(0,i.jsx)("div",{}),(0,i.jsx)("div",{})]}),t?(0,i.jsx)("p",{style:s,children:t}):null,r,(0,i.jsx)(a.Outlet,{})]})}},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,s=e.className,h=e.hideResize,c=void 0!==h&&h,l=(0,g.useState)(n),m=o()(l,2),u=m[0],S=m[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(c?"0px":"4px"," - ").concat(w,")");return(0,r.jsxs)("div",{className:"split-panel-container ".concat(s),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 l}});n(59301);var a="result___gu5zt",o="title___xrnx2",g="left___IAxp9",i="leftNode___HL8fG",r="right___ZXYmw",d="rightNode___jYL5_",s=n(92310),h=n.n(s),c=n(37712),l=function(e){var t=e.className,n=e.style,s=void 0===n?{}:n,l=e.leftNode,m=e.leftTitle,u=void 0===m?"自测输入":m,S=e.rightNode,P=e.rightTitle,w=void 0===P?"运行结果":P;return(0,c.jsxs)("div",{className:h()(a,t),style:s,children:[(0,c.jsxs)("div",{className:g,children:[(0,c.jsxs)("div",{className:o,children:[(0,c.jsx)("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),(0,c.jsx)("span",{children:u})]}),(0,c.jsx)("div",{className:i,children:l})]}),(0,c.jsxs)("div",{className:r,children:[(0,c.jsxs)("div",{className:o,children:[(0,c.jsx)("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),(0,c.jsx)("span",{children:w})]}),(0,c.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,s=void 0===d?0:d,h=(0,g.useState)(s),c=o()(h,2),l=c[0],m=c[1];(0,g.useEffect)((function(){var e=setTimeout((function(){m(l+1e3)}),1e3);return a(l+1e3),function(){clearInterval(e)}}),[l]);var u=parseInt(l/36e5)||"00",S=parseInt(l%36e5/6e4)||"00",P=parseInt(l%6e4/1e3)||"00";return(0,i.jsxs)("div",{className:n,children:[r(u),":",r(S),":",r(P)]})}},81304:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var a=n(79800),o=n.n(a),g=n(7557),i=n.n(g),r=n(41498),d=n.n(r),s=n(59301),h=n(8591),c=n(38854),l=n(34426),m=n(55511),u=n(64118),S=n(56102),P=n(52230),w={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},p=n(37712);function f(e){if(isNaN(e))return{minutes:"00",seconds:"00"};var t=new Date(1e3*e).toISOString().substr(11,8);return{hour:t.substr(0,2),minutes:t.substr(3,2),seconds:t.substr(6,2)}}function v(e,t){return e-t}function L(e){e.sort(v);for(var t=0,n=0;n<e.length-1;n++){var a=Math.abs(e[n+1]-e[n]);a<21&&(t+=a)}return t}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return!!(this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2)}});var y=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i,x=(0,s.forwardRef)((function(e,t){var n,a,g=e.allow_skip,r=e.src,v=e.toLog,x=e.videoId,j=e.logWatchHistory,M=e.courseId,N=void 0===M?null:M,b=e.startTime,z=e.handlePause,T=void 0===z?function(){}:z,I=e.handlePlay,C=void 0===I?function(){}:I,A=e.handlePlayEnded,D=void 0===A?function(){}:A,B=e.autoPlay,G=void 0!==B&&B,E=e.onPlayEnded,k=void 0===E?function(){}:E,F=e.isShowWaterMark,O=void 0===F||F,_="flv"===(null===(a=r=null===(n=r)||void 0===n?void 0:n.replace("http://","https://"))||void 0===a||null===(a=a.split("."))||void 0===a?void 0:a.pop()),R=(0,s.useRef)(),Z=(0,s.useRef)(),U=(0,s.useRef)(),Y=(0,s.useRef)(),H=(0,s.useRef)(),W=(0,s.useRef)(),V=(0,s.useRef)(),Q=(0,s.useRef)(),X=(0,s.useRef)(),J=(0,s.useRef)(),K=(0,s.useRef)(),q=(0,s.useRef)(),$=(0,s.useRef)(),ee=(0,s.useRef)(),te=navigator.userAgent.toLowerCase().match(y),ne=te?te[0]:"pc",ae=(0,s.useRef)(!1),oe=(0,u.eY)(),ge=0,ie=0,re=0,de=null,se=!1,he=20,ce=1,le=!1,me=!1,ue=[];(0,s.useImperativeHandle)(t,(function(){return{getLastUpdatedTime:function(){return R.current.currentTime},getDuration:function(){return R.current.duration}}})),h.ZP.config({maxCount:1,getContainer:function(){return U.current}});var Se=(0,s.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={point:R.current.currentTime};function a(){return o.apply(this,arguments)}function o(){return(o=d()(i()().mark((function t(){var a;return i()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return le=!0,t.next=3,null==j?void 0:j(n);case 3:a=t.sent,de=a,le=!1,e&&e();case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}de?(n.log_id=de,n.watch_duration=L(ue),n.total_duration=ie):(N?(n.video_id=parseInt(x,10),n.course_id=N):n.video_id=x,n.duration=ge,n.device=ne),t&&(n.ed="1"),a()}),[x,N]);function Pe(){R.current.paused?(Y.current.style.display="none",H.current.style.display="block"):(Y.current.style.display="block",H.current.style.display="none")}function we(){K.current.style.display="none",$.current.style.display="none",q.current.style.display="none",R.current.muted||0===R.current.volume?K.current.style.display="block":R.current.volume>0&&R.current.volume<=.5?$.current.style.display="block":q.current.style.display="block"}(0,s.useEffect)((function(){var e;R.current&&(Y.current.style.display="none",H.current.style.display="block"),h.ZP.destroy();var t=null;return l.Z.isSupported&&_&&r&&(null===(e=r)||void 0===e?void 0:e.indexOf(".m3u8"))<0?(t=l.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:r,muted:!1}),R.current&&(t.attachMediaElement(R.current),t.load())):R.current.setAttribute("src",r),we(),function(){t&&(t.unload(),t.pause(),t.destroy(),t=null)}}),[R,_,r]),(0,s.useEffect)((function(){document.getElementById("play"),document.querySelectorAll(".playback-icons use");function e(){C(),b&&!ae.current&&(R.current.currentTime=b),ae.current=!0,ue.push(R.current.currentTime),se||(se=!0,v&&Se())}function t(){return n.apply(this,arguments)}function n(){return(n=d()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Pe(),ue.push(R.current.currentTime),v&&Se((function(){de=null,re=0,se=!1,le=!1,me=!1,ue=[],ie=0,ce=1}),!0),k();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){W.current.value=Math.round(R.current.currentTime),V.current.value=Math.round(R.current.currentTime)}function o(){var e,t,n,a,o,g=Math.round(null===(e=R.current)||void 0===e?void 0:e.duration);null===(t=W.current)||void 0===t||null===(n=t.setAttribute)||void 0===n||n.call(t,"max",g),null===(a=V.current)||void 0===a||null===(o=a.setAttribute)||void 0===o||o.call(a,"max",g);var i,r,d=f(g);Q.current&&(Q.current.innerText="".concat(d.hour>0?d.hour+":":"").concat(d.minutes,":").concat(d.seconds),null===(i=(r=Q.current).setAttribute)||void 0===i||i.call(r,"datetime","".concat(d.hour>0?" "+d.hour+" ":"").concat(d.minutes,"m ").concat(d.seconds,"s")))}function r(){try{var e=Math.round(R.current.duration);W.current.setAttribute("max",e),V.current.setAttribute("max",e);var t=f(e);Q.current.innerText="".concat(t.hour>0?t.hour+":":"").concat(t.minutes,":").concat(t.seconds),Q.current.setAttribute("datetime","".concat(t.hour>0?" "+t.hour+" ":"").concat(t.minutes,"m ").concat(t.seconds,"s")),a(),function(){var e=f(Math.round(R.current.currentTime));X.current.innerText="".concat(e.hour>0?e.hour+":":"").concat(e.minutes,":").concat(e.seconds),X.current.setAttribute("datetime","".concat(e.hour>0?" "+e.hour+" ":"").concat(e.minutes,"m ").concat(e.seconds,"s"))}();var n=Z.current.getBoundingClientRect(),o=n.width,g=(n.height,n.x),i=n.y;if(g<0||i<0||!o)return;if(!me){var r=R.current.currentTime,d=r-re;Math.abs(d)<10?(ie+=Math.abs(d),re=r,le||ie-ce*he>=0&&(ce++,ue.push(re),v&&Se())):(re=r,v&&Se())}}catch(e){console.log(e)}}function s(){me=!0}function c(){R.current.playing&&ue.push(R.current.currentTime,re),re=R.current.currentTime,me=!1}function l(){(ge=R.current.duration)<=20&&(he=ge/3),R.current.addEventListener("play",e)}function m(){T()}function u(e){if(g){var t=e.target.dataset.seek?e.target.dataset.seek:e.target.value;R.current.currentTime=t,V.current.value=t,W.current.value=t}else h.ZP.warning("该视频禁止快进/后退播放")}function S(e){var t=Math.round(e.offsetX/e.target.clientWidth*parseInt(e.target.getAttribute("max"),10));W.current.setAttribute("data-seek",t);var n=f(t);J.current.textContent="".concat(n.hour>0?n.hour+":":"").concat(n.minutes,":").concat(n.seconds);var a=R.current.getBoundingClientRect();J.current.style.left="".concat(e.pageX-a.left,"px")}function w(e){switch(e.code){case"Space":e.preventDefault(),Le();break;case"ArrowRight":if(e.preventDefault(),!g){h.ZP.warning("该视频禁止快进/后退播放");break}if(R.current.currentTime>=R.current.duration)break;R.current.currentTime=parseInt(R.current.currentTime)+5,a();break;case"ArrowLeft":if(e.preventDefault(),!g){h.ZP.warning("该视频禁止快进/后退播放");break}if(0===R.current.currentTime)break;R.current.currentTime=parseInt(R.current.currentTime)-5,a();break;case"ArrowUp":e.preventDefault(),R.current.volume<1&&(R.current.volume=(parseInt(10*R.current.volume)+1)/10);break;case"ArrowDown":e.preventDefault(),R.current.volume>0&&(R.current.volume=(parseInt(10*R.current.volume)-1)/10)}}return U.current.addEventListener((0,P.gH)(),(function(e){e.preventDefault(),(0,P.vp)()?(R.current.style.width="100%",R.current.style.height="100%"):R.current.style.cssText=""})),R.current.addEventListener("canplay",l),R.current.addEventListener("ended",t),R.current.addEventListener("seeking",s),R.current.addEventListener("seeked",c),R.current.addEventListener("loadedmetadata",o),W.current.addEventListener("mousemove",S),W.current.addEventListener("input",u),R.current.addEventListener("timeupdate",r),R.current.addEventListener("pause",m),R.current.addEventListener("volumechange",we),document.addEventListener("keydown",w),function(){var n,a,g,i,d,h,P,p,f,L,y,x;null===(n=R.current)||void 0===n||n.removeEventListener("canplay",l),null===(a=R.current)||void 0===a||a.removeEventListener("play",e),null===(g=R.current)||void 0===g||g.removeEventListener("ended",t),null===(i=R.current)||void 0===i||i.removeEventListener("seeking",s),null===(d=R.current)||void 0===d||d.removeEventListener("seeked",c),null===(h=W.current)||void 0===h||h.removeEventListener("mousemove",S),null===(P=W.current)||void 0===P||P.removeEventListener("input",u),null===(p=R.current)||void 0===p||p.removeEventListener("timeupdate",r),null===(f=R.current)||void 0===f||f.removeEventListener("pause",m),null===(L=R.current)||void 0===L||L.removeEventListener("loadedmetadata",o),null===(y=R.current)||void 0===y||y.removeEventListener("volumechange",we),document.removeEventListener("keydown",w),null!==(x=R.current)&&void 0!==x&&x.playing&&(ue.push(re,R.current.currentTime),v&&Se())}}),[R,r]),(0,s.useEffect)((function(){var e;if(R.current.onended=function(){D(R)},R.current.oncontextmenu=function(){return!1},(null===(e=r)||void 0===e?void 0:e.indexOf(".m3u8"))>-1)if(R.current.canPlayType("application/vnd.apple.mpegurl"))R.current.src=r;else if(m.ZP.isSupported()){var t=new m.ZP;t.loadSource(r),t.attachMedia(R.current)}}),[r]);var pe=(0,s.useState)(1),fe=o()(pe,2),ve=(fe[0],fe[1]),Le=function(){R.current.paused||R.current.ended?R.current.play():R.current.pause(),Pe()};return(0,p.jsxs)("div",{style:{position:"relative"},ref:U,children:[(0,p.jsx)("div",{ref:Z,className:"".concat(w.watermark," animated_alternate animate__animated_10s animate__infinite animate__stepstart ").concat(w.animate__loop),children:O&&oe?oe.login:" "}),(0,p.jsx)("div",{className:w.container,children:(0,p.jsxs)("div",{className:w["video-container"],id:"video-container",children:[(0,p.jsx)("div",{className:w["playback-animation"],id:"playback-animation",children:(0,p.jsxs)("svg",{className:w["playback-icons"],children:[(0,p.jsx)("use",{className:"hidden",href:"#play-icon"}),(0,p.jsx)("use",{href:"#pause"})]})}),(0,p.jsx)("video",{className:w.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:R,autoPlay:G}),(0,p.jsxs)("div",{className:"".concat(w["video-controls"]," "),id:"video-controls",children:[(0,p.jsxs)("div",{className:w["bottom-controls"],children:[(0,p.jsxs)("div",{className:w["left-controls"],children:[(0,p.jsx)("button",{"data-title":"播放/暂停",id:"play",onClick:Le,children:(0,p.jsxs)("svg",{className:w["playback-icons"],children:[(0,p.jsx)("use",{ref:H,href:"#play-icon"}),(0,p.jsx)("use",{ref:Y,style:{display:"none"},href:"#pause"})]})}),(0,p.jsxs)("div",{className:w.time,children:[(0,p.jsx)("time",{id:"time-elapsed",ref:X,children:"00:00"}),(0,p.jsx)("span",{children:" / "}),(0,p.jsx)("time",{id:"duration",ref:Q,children:"00:00"})]})]}),(0,p.jsxs)("div",{className:w["right-controls"],children:[g&&(0,p.jsx)(c.Z,{placement:"top",overlayClassName:w.rateOverlay,getPopupContainer:function(e){return e.parentNode},menu:{items:[{key:"1",label:(0,p.jsx)("span",{onClick:function(){ve(1),R.current.playbackRate=1},children:"1.0x"})},{key:"2",label:(0,p.jsx)("span",{onClick:function(){ve(1.5),R.current.playbackRate=1.5},children:"1.5x"})},{key:"3",label:(0,p.jsx)("span",{onClick:function(){ve(2),R.current.playbackRate=2},children:"2.0x"})}]},children:(0,p.jsx)("div",{className:"".concat(w.controlText," mr5"),children:"倍速"})}),(0,p.jsx)(S.CopyToClipboard,{text:r,onCopy:function(){return h.ZP.success("复制成功")},children:(0,p.jsx)("button",{"data-title":"复制链接",children:(0,p.jsx)("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}})})}),(0,p.jsxs)("div",{className:w["volume-controls"],children:[(0,p.jsxs)("button",{"data-title":"开启/关闭声音",className:w["volume-button"],id:"volume-button",onClick:function(){R.current.muted=!R.current.muted,R.current.muted?(ee.current.setAttribute("data-volume",volume.value),ee.current.value=0):ee.current.value=ee.current.dataset.volume},children:[(0,p.jsx)("i",{ref:K,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),(0,p.jsx)("i",{ref:$,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),(0,p.jsx)("i",{ref:q,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})]}),(0,p.jsx)("input",{className:w.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:ee,style:{display:"none"},onClick:we})]}),(0,p.jsx)("button",{"data-title":"全屏/退出全屏",className:w["fullscreen-button"],onClick:function(){(0,P.vp)()?(0,P.BU)():(0,P.Dj)(U.current)},children:(0,p.jsx)("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})})]})]}),(0,p.jsxs)("div",{className:w["video-progress"],children:[(0,p.jsx)("progress",{ref:V,value:"0",min:"0"}),(0,p.jsx)("input",{className:w.seek,ref:W,value:"0",min:"0",type:"range",step:"1"}),(0,p.jsx)("div",{className:w["seek-tooltip"],ref:J,id:"seek-tooltip",children:"00:00"})]})]})]})}),(0,p.jsx)("svg",{style:{display:"none"},children:(0,p.jsxs)("defs",{children:[(0,p.jsx)("symbol",{id:"pause",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})}),(0,p.jsx)("symbol",{id:"play-icon",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})}),(0,p.jsx)("symbol",{id:"volume-high",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})}),(0,p.jsx)("symbol",{id:"volume-low",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})}),(0,p.jsx)("symbol",{id:"volume-mute",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})}),(0,p.jsx)("symbol",{id:"fullscreen",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})}),(0,p.jsx)("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})}),(0,p.jsx)("symbol",{id:"pip",viewBox:"0 0 24 24",children:(0,p.jsx)("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})})]})})]})}))},43851:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(79800),o=n.n(a),g=n(59301),i=n(34837),r=n(54139),d=n(37712),s=function(){var e=(0,g.useState)(""),t=o()(e,2),n=t[0],a=t[1],s=(0,g.useState)(0),h=o()(s,2),c=(h[0],h[1]),l=(0,g.useState)(),m=o()(l,2),u=(m[0],m[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&&y()}function y(){document.body.style.overflow="auto",u(void 0),w(void 0),c(0),a("")}(0,g.useEffect)((function(){return i.Z.subscribe("preview-image",(function(e){a(e),console.log(j.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 x=(0,g.useRef)(),j=(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:x,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),s=n(78241),h=n(3113),c=n(89780),l=n.n(c),m=(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,s=(0,r.useRef)(),h=(0,r.useState)(),c=i()(h,2),u=c[0],S=c[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(s.current&&!u){var e=l().fromTextArea(s.current,o()({mode:a,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},d));S(e)}}),[s.current,u]),(0,m.jsx)("div",{className:"my-codemirror-container",children:(0,m.jsx)("textarea",{ref:s})})}t.Z=function(e){var t=e.callback,n=e.onCancel,a=(0,r.useState)("python"),g=i()(a,2),c=g[0],l=g[1];return(0,m.jsxs)(s.Z,o()(o()({},S),{},{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)},style:{width:500},children:[(0,m.jsx)(s.Z.Item,{label:"代码语言",name:"language",children:(0,m.jsx)(d.default,{getPopupContainer:function(e){return e.parentNode},onChange:function(e){l(P[e][1])},children:Object.keys(P).map((function(e){return(0,m.jsx)(u,{value:e,children:P[e][0]},e)}))})}),(0,m.jsx)(s.Z.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}],children:(0,m.jsx)(w,{mode:c})}),(0,m.jsxs)("div",{className:"flex-container flex-end",children:[(0,m.jsx)(h.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(h.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),s=n(59301),h=n(89780),c=n.n(h),l=n(76374),m=(n(79906),n(6313),n(25717),n(99498),n(25419),n(67549),n(54065)),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,s.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,s=[].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&&s.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),y=n(78241),x=n(92832),j=n(3113),M={labelCol:{span:4},wrapperCol:{span:20}},N=function(e){var t=e.callback,n=e.onCancel;return(0,u.jsxs)(y.Z,w()(w()({},M),{},{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:function(e){t(e)},style:{width:500},children:[(0,u.jsx)(y.Z.Item,{label:"链接地址",name:"link",rules:[{required:!0,message:"请输入链接地址"}],children:(0,u.jsx)(x.Z,{})}),(0,u.jsx)(y.Z.Item,{label:"链接标题",name:"title",rules:[{required:!0,message:"请输入链接标题"}],children:(0,u.jsx)(x.Z,{})}),(0,u.jsxs)("div",{className:"flex-container flex-end",children:[(0,u.jsx)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,u.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]}))},b=n(18890),z=n(48347),T=n(43418),I=n(95237),C=n(12840),A=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)(T.Z,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1,children:(0,u.jsx)(I.Z,{style:{height:"100vh"},children:(0,u.jsx)(C.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})})})},D=n(7557),B=n.n(D),G=n(41498),E=n.n(G),k=n(37205),F=n.n(k),O=n(12378);function _(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(_,go.CommandHandler),_.prototype.canAlignSelection=function(){var e=this.diagram;return null!==e&&!e.isReadOnly&&!e.isModelReadOnly&&!(e.selection.count<2)},_.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")},_.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")},_.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")},_.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")},_.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")}},_.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")}},_.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")},_.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")},_.prototype.canRotate=function(e){var t=this.diagram;return null!==t&&!t.isReadOnly&&!t.isModelReadOnly&&!(t.selection.count<1)},_.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())},_.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){_._assignZOrder(e,t.get(e.layer)+1)})),e.commitTransaction("pullToFront")},_.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){_._assignZOrder(e,t.get(e.layer)-1-_._findGroupDepth(e))})),e.commitTransaction("pushToBack")},_._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){_._assignZOrder(e,t+1,n)}))},_._findGroupDepth=function(e){if(e instanceof go.Group){var t=0;return e.memberParts.each((function(e){t=Math.max(t,_._findGroupDepth(e))})),t+1}return 0},_.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)}},_.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},_.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")},_.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))},_.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,s=n.directionPoint(d),h=this._angleCloseness(s,e);if(h<=45){var c=n.distanceSquaredPoint(d);(c*=1+Math.sin(h*Math.PI/180))<o&&(o=c,g=r)}}}return g},_.prototype._angleCloseness=function(e,t){return Math.min(Math.abs(t-e),Math.min(Math.abs(t+360-e),Math.abs(t-360-e)))},_.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)}},_.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},_.prototype.copyToClipboard=function(e){go.CommandHandler.prototype.copyToClipboard.call(this,e),this._lastPasteOffset.set(this.pasteOffset)},_.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(_.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(_.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 R=_,Z=(n(15378),n(43604)),U=n(82710),Y="myPaletteDiv___Xjz2I",H="flowChartWrp____f45r",W="maxH60___Pd4Re";var V=function(e){var t=e.onCancel,n=e.callback,a=(0,s.useRef)(),o=(0,s.useRef)(),g=(0,s.useRef)(),r=(0,s.useRef)(!1),d=(0,s.useRef)(!1),h=(0,s.useState)(0),c=i()(h,2),l=c[0],m=c[1],S=function(){var e=E()(B()().mark((function e(){var t,o;return B()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.current.makeImage(),e.next=3,(0,U.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,s.useEffect)((function(){return setTimeout((function(){!function(){var e=O.bx.make,t="#ff3333",n="#3358ff",i="#25ad23",r="#d533ff",d="#7d33ff",s="#ff6233",h="#ffffff",c="#000000",l="#fffcd5",m="#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 O.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(O.bn,{figure:n,alignment:t,alignmentFocus:t.opposite(),width:t.equals(O.z6.Top)||t.equals(O.z6.Bottom)?25:18,height:t.equals(O.z6.Top)||t.equals(O.z6.Bottom)?18:25,fill:"orange",stroke:h,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(O.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 y(t,n){return n||(n="color"),e(O.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 x(){return[e("ContextMenuButton",e(O.s_,"Horizontal",y(h,"fill"),y(l,"fill"),y(m,"fill"),y(u,"fill"))),e("ContextMenuButton",e(O.s_,"Horizontal",y(P,"fill"),y(w,"fill"),y(S,"fill"),y(p,"fill")))]}function j(){return[e("ContextMenuButton",e(O.s_,"Horizontal",y(c),y(i),y(n),y(t))),e("ContextMenuButton",e(O.s_,"Horizontal",y(h),y(r),y(d),y(s)))]}function M(t,n){return n||(n="thickness"),e(O.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 N(t,n){return n||(n="dash"),e(O.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 b(){return[e("ContextMenuButton",e(O.s_,"Horizontal",M(1),M(2),M(3),M(4))),e("ContextMenuButton",e(O.s_,"Horizontal",N(null),N([2,4]),N([4,4])))]}function z(t,n){return n||(n="figure"),e(O.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 T(t){return e(O.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(t+4).toString()+" H3"})}function I(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(O.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 C(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",O.z6.stringify(O.z6.AllSides)),(t?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(O.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 A(t,n){var a=0,o=O.z6.RightSide;t.equals(O.z6.Top)?(a=270,o=O.z6.TopSide):t.equals(O.z6.Left)?(a=180,o=O.z6.LeftSide):t.equals(O.z6.Bottom)&&(a=90,o=O.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",O.z6.stringify(o)),(n?a.toNode:a.fromNode).invalidateConnectedLinks()}))};return e(O.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 O.S0(o.current,{padding:20,grid:e(O.s_,"Grid",e(O.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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(R),"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(O.NB,"Auto",{locationSpot:O.z6.Center,locationObjectName:"SHAPE",desiredSize:new O.$u(120,60),minSize:new O.$u(40,40),resizable:!0,resizeCellSize:new O.$u(10,10),rotatable:!0},new O.KX("location","loc",O.E9.parse).makeTwoWay(O.E9.stringify),new O.KX("desiredSize","size",O.$u.parse).makeTwoWay(O.$u.stringify),e(O.bn,{name:"SHAPE",fill:h,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.z6.AllSides,toSpot:O.z6.AllSides},new O.KX("figure"),new O.KX("fill"),new O.KX("stroke","borderColor"),new O.KX("strokeWidth","thickness"),new O.KX("strokeDashArray","dash")),e(O.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),e(O.al,{margin:1,textAlign:"center",overflow:O.al.OverflowEllipsis,editable:!0},new O.KX("text").makeTwoWay(),new O.KX("stroke","color"))),a.current.nodeTemplate.toolTip=e("ToolTip",e(O.s_,"Vertical",{maxSize:new O.$u(200,NaN)},e(O.al,{font:"bold 10pt sans-serif",textAlign:"center"},new O.KX("text")),e(O.al,{font:"10pt sans-serif",textAlign:"center"},new O.KX("text","details")))),a.current.nodeTemplate.selectionAdornmentTemplate=e(O.uz,"Spot",e(O.Vm,{padding:10}),f(O.z6.Top,"TriangleUp"),f(O.z6.Left,"TriangleLeft"),f(O.z6.Right,"TriangleRight"),f(O.z6.Bottom,"TriangleDown"),v({alignment:new O.z6(.75,0)})),a.current.nodeTemplate.contextMenu=e("ContextMenu",e("ContextMenuButton",e(O.s_,"Horizontal",z("Rectangle"),z("RoundedRectangle"),z("Ellipse"),z("Diamond"))),e("ContextMenuButton",e(O.s_,"Horizontal",z("Parallelogram2"),z("ManualOperation"),z("Procedure"),z("Cylinder1"))),e("ContextMenuButton",e(O.s_,"Horizontal",z("Terminator"),z("CreateRequest"),z("Document"),z("TriangleDown"))),x(),j(),b()),a.current.groupTemplate=e(O.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:O.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 O.KX("location","loc",O.E9.parse).makeTwoWay(O.E9.stringify),e(O.s_,"Auto",{name:"BODY"},e(O.bn,{parameter1:10,fill:h,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:O.z6.AllSides,toSpot:O.z6.AllSides},new O.KX("fill"),new O.KX("stroke","color"),new O.KX("strokeWidth","thickness"),new O.KX("strokeDashArray","dash")),e(O.Vm,{background:"transparent",margin:20})),e(O.al,{alignment:O.z6.Top,alignmentFocus:O.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new O.KX("text"),new O.KX("stroke","color"))),a.current.groupTemplate.selectionAdornmentTemplate=e(O.uz,"Spot",e(O.s_,"Auto",e(O.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),e(O.Vm,{margin:1.5})),v({alignment:O.z6.TopRight,alignmentFocus:O.z6.BottomRight})),a.current.groupTemplate.contextMenu=e("ContextMenu",x(),j(),b()),a.current.linkTemplate=e(O.rU,{layerName:"Foreground",routing:O.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new O.KX("fromSpot","fromSpot",O.z6.parse),new O.KX("toSpot","toSpot",O.z6.parse),new O.KX("fromShortLength","dir",(function(e){return e>=1?10:0})),new O.KX("toShortLength","dir",(function(e){return e>=1?10:0})),new O.KX("points").makeTwoWay(),e(O.bn,{strokeWidth:2},new O.KX("stroke","color"),new O.KX("strokeWidth","thickness"),new O.KX("strokeDashArray","dash")),e(O.bn,{segmentIndex:0,segmentOffset:new O.E9(15,0),segmentOrientation:O.rU.OrientAlong,alignmentFocus:O.z6.Right,figure:"circle",width:10,strokeWidth:0},new O.KX("fill","color"),new O.KX("visible","dir",(function(e){return 1===e}))),e(O.bn,{segmentIndex:-1,segmentOffset:new O.E9(-10,6),segmentOrientation:O.rU.OrientPlus90,alignmentFocus:O.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.KX("fill","color"),new O.KX("visible","dir",(function(e){return e>=1})),new O.KX("width","thickness",(function(e){return 7+3*e})),new O.KX("height","thickness",(function(e){return 7+3*e})),new O.KX("segmentOffset","thickness",(function(e){return new O.E9(-15,4+1.5*e)}))),e(O.bn,{segmentIndex:0,segmentOffset:new O.E9(15,-6),segmentOrientation:O.rU.OrientMinus90,alignmentFocus:O.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new O.KX("fill","color"),new O.KX("visible","dir",(function(e){return 2===e})),new O.KX("width","thickness",(function(e){return 7+3*e})),new O.KX("height","thickness",(function(e){return 7+3*e})),new O.KX("segmentOffset","thickness",(function(e){return new O.E9(-15,4+1.5*e)}))),e(O.al,{alignmentFocus:new O.z6(0,1,-4,0),editable:!0},new O.KX("text").makeTwoWay(),new O.KX("stroke","color"))),a.current.linkTemplate.selectionAdornmentTemplate=e(O.uz,e(O.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:T(2)},new O.KX("pathPattern","thickness",T)),v({alignmentFocus:new O.z6(0,0,-6,-4)})),a.current.linkTemplate.contextMenu=e("ContextMenu",j(),b(),e("ContextMenuButton",e(O.s_,"Horizontal",I(0),I(1),I(2))),e("ContextMenuButton",e(O.s_,"Horizontal",e(O.s_,"Spot",C(!1),A(O.z6.Top,!1),A(O.z6.Left,!1),A(O.z6.Right,!1),A(O.z6.Bottom,!1)),e(O.s_,"Spot",{margin:new O.Zt(0,0,0,2)},C(!0),A(O.z6.Top,!0),A(O.z6.Left,!0),A(O.z6.Right,!0),A(O.z6.Bottom,!0)))));var D=new O.YI(g.current,{maxSelectionCount:1,linkTemplate:e(O.rU,{locationSpot:O.z6.Center,selectionAdornmentTemplate:e(O.uz,"Link",{locationSpot:O.z6.Center},e(O.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),e(O.bn,{toArrow:"Standard",stroke:null}))},{routing:O.rU.AvoidsNodes,curve:O.rU.JumpOver,corner:5,toShortLength:4},new O.KX("points"),e(O.bn,{isPanelMain:!0,strokeWidth:2}),e(O.bn,{toArrow:"Standard",stroke:null})),model:new O.FJ([{text:"未命名",size:"100 100",fill:null,stroke:"#000"}].concat(F()(O.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")})),D.nodeTemplate=e(O.NB,"Auto",{locationSpot:O.z6.Center},new O.KX("location","location",O.E9.parse).makeTwoWay(O.E9.stringify),e(O.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 O.KX("stroke").makeTwoWay(),new O.KX("fill").makeTwoWay(),new O.KX("figure")),e(O.al,{margin:new O.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new O.$u(16,16),maxSize:new O.$u(10,NaN),textAlign:"center",editable:!0},new O.KX("key").makeTwoWay())),setTimeout((function(){a.current.grid=e(O.s_,"Grid",e(O.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),e(O.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),m(l+1),function(){a.current=null}}),[]),(0,u.jsx)("div",{ref:d,className:r.current?"".concat(W," body-overflow-initial"):"body-overflow-initial",children:(0,u.jsx)(T.Z,{width:1200,icon:null,footer:null,closable:!0,visible:!!l,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:(0,u.jsxs)(I.Z,{children:[(0,u.jsx)(Z.Z,{flex:1,children:"插入流程图"}),(0,u.jsx)(Z.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")}m(l+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:H,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:Y,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)(j.ZP,{size:"large",onClick:S,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary",children:"保存到编辑器"})})]})})})},Q=n(5112),X=n(88897),J=Q.ZP.Group,K={margin:"0 8px"},q=function(e){var t=e.callback,n=e.onCancel;return(0,u.jsxs)(y.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:K,children:"单元格数:"}),(0,u.jsx)("span",{style:K,children:"行数"}),(0,u.jsx)(y.Z.Item,{name:"row",rules:[{required:!0,message:"请输入行数"}],children:(0,u.jsx)(X.Z,{})}),(0,u.jsx)("span",{style:K,children:"列数"}),(0,u.jsx)(y.Z.Item,{name:"col",rules:[{required:!0,message:"请输入列数"}],children:(0,u.jsx)(X.Z,{})})]}),(0,u.jsxs)("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"},children:[(0,u.jsx)("span",{style:K,children:"对齐方式:"}),(0,u.jsx)(y.Z.Item,{name:"align",children:(0,u.jsxs)(J,{children:[(0,u.jsx)(Q.ZP,{value:"default",children:(0,u.jsx)("i",{className:"fa fa-align-justify"})}),(0,u.jsx)(Q.ZP,{value:"left",children:(0,u.jsx)("i",{className:"fa fa-align-left"})}),(0,u.jsx)(Q.ZP,{value:"center",children:(0,u.jsx)("i",{className:"fa fa-align-center"})}),(0,u.jsx)(Q.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)(j.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,u.jsx)(j.ZP,{type:"ghost",onClick:n,children:"取消"})]})]})},$=n(78673),ee=n(47503),te=n.n(ee),ne=(0,s.forwardRef)((function(e,t){var n=e.use3d,a=e.width,o=e.height,g=e.callback,r=(e.showSaveButton,(0,s.useRef)()),d=(0,s.useRef)(),h=(0,s.useState)(!1),c=i()(h,2),l=c[0],m=c[1],S=(0,s.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,s.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,s.useEffect)((function(){S.current.appName=l?"3D":"graphing",d.current.inject("applet_container")}),[l]),(0,s.useEffect)((function(){m(n)}),[n]),(0,s.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)(I.Z,{align:"middle",children:[(0,u.jsx)(Z.Z,{flex:1,children:(0,u.jsx)($.Z,{size:"default",checkedChildren:"关闭3D图像",unCheckedChildren:"开启3D图像",checked:l,onChange:function(e){return m(e)}})}),(0,u.jsx)(Z.Z,{children:(0,u.jsx)(j.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",se="code-block",he="add-table",ce="------------",le={default:ce,left:":".concat(ce),center:":".concat(ce,":"),right:"".concat(ce,":")},me=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,"添加链接"),se,"添加代码块"),ie,"添加图片"),de,"添加画图"),re,"插入流程图"),he,"添加表格"),"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,h=e.height,P=void 0===h?400:h,w=e.miniToolbar,p=void 0!==w&&w,f=e.isFocus,y=void 0!==f&&f,x=e.watch,j=e.insertTemp,M=e.mode,I=void 0===M?"markdown":M,C=e.id,D=void 0===C?"markdown-editor-id":C,B=e.showResizeBar,G=void 0!==B&&B,E=e.noStorage,k=void 0!==E&&E,F=e.showNullButton,O=void 0!==F&&F,_=e.showNullProgramButton,R=void 0!==_&&_,Z=e.hidetoolBar,U=void 0!==Z&&Z,Y=e.fullScreen,H=void 0!==Y&&Y,W=e.onBlur,Q=e.onCMBeforeChange,X=e.onFullScreen,J=e.className,K=void 0===J?"":J,$=e.disablePaste,ee=void 0!==$&&$,te=e.disabled,ce=void 0!==te&&te,we=e.disabledFill,ve=void 0!==we&&we,Le=e.placeholder,ye=void 0===Le?"":Le,xe=e.values,je=void 0===xe?"":xe,Me=e.extraUse,Ne=(0,s.useState)(null),be=i()(Ne,2),ze=be[0],Te=be[1],Ie=(0,s.useState)(n),Ce=i()(Ie,2),Ae=Ce[0],De=Ce[1],Be=(0,s.useState)(x),Ge=i()(Be,2),Ee=Ge[0],ke=Ge[1],Fe=(0,s.useState)(H),Oe=i()(Fe,2),_e=Oe[0],Re=Oe[1],Ze=(0,s.useState)(""),Ue=i()(Ze,2),Ye=Ue[0],He=Ue[1],We=(0,s.useState)(0),Ve=i()(We,2),Qe=Ve[0],Xe=Ve[1],Je=(0,s.useState)(P),Ke=i()(Je,2),qe=Ke[0],$e=Ke[1],et=(0,s.useState)(!1),tt=i()(et,2),nt=(tt[0],tt[1]),at=(0,s.useState)(0),ot=i()(at,2),gt=ot[0],it=ot[1],rt=(0,s.useState)(0),dt=i()(rt,2),st=dt[0],ht=dt[1],ct=(0,s.useRef)(),lt=(0,s.useRef)(),mt=(0,s.useRef)(),ut=(0,s.useRef)();(0,s.useEffect)((function(){var e=window.scrollY||window.pageYOffset;De(je),null==ze||ze.setValue(je),window.scrollTo(0,e)}),[je]),(0,s.useEffect)((function(){null==X||X(_e)}),[_e]),(0,s.useEffect)((function(){if(ct.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"==I)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(),s=d.name.split(".").pop();(0,z.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("![,](/api/attachments/".concat(e.id,"?type=").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(s)?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=c().fromTextArea(ct.current,{mode:I,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",ye):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,s=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 h=d+s;return n.replaceRange("",{line:a.line,ch:d},{line:a.line,ch:h}),{line:a.line,ch:h}}return null}(e);n&&t.preventDefault()}})),y&&t.focus(),t.on("paste",e),ce&&t.on("beforeChange",(function(e,t){"paste"!==t.origin&&"+input"!==t.origin||t.cancel()})),Te(t),function(){t.off("paste",e)}}}),[]);var St=(0,s.useCallback)((function(){lt.current}),[qe,lt,_e]);(0,s.useEffect)((function(){if(ze){var e=function(){var e=new l.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(),ze.setSize("100%","100%"),ze.refresh())}}catch(e){n.e(e)}finally{n.f()}}));return e.observe(ct.current.parentElement),e}();return function(){var t,n;null!==(t=ct.current)&&void 0!==t&&t.parentElement&&e.unobserve(null===(n=ct.current)||void 0===n?void 0:n.parentElement)}}}),[ze,St]),(0,s.useEffect)((function(){if(ze){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),ze.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];ze.removeKeyMap(a)}}}}),[ze]),(0,s.useEffect)((function(){H!==_e&&Re(H)}),[H]),(0,me.Z)((function(){if(!k&&Qe>0){var e=(new Date).getTime(),t=window.sessionStorage.getItem(D);e>=Qe+1e4&&(!t||t!==Ae)&&(window.sessionStorage.setItem(D,Ae),nt(!0))}}),1e4),(0,s.useEffect)((function(){ke(x)}),[ze,x]),(0,s.useEffect)((function(){ze&&y&&ze.focus()}),[ze,y]),(0,s.useEffect)((function(){if(Ee&&ze){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=ze.getScrollerElement();return t.addEventListener("scroll",e),function(){t.removeEventListener("scroll",e)}}}),[ze,Ee]),(0,s.useEffect)((function(){if(ze&&Q){var e=function(e,t){Q(e,t)};return ze.on("beforeChange",e),function(){ze.off("beforeChange",e)}}}),[ze,Q]),(0,s.useEffect)((function(){if(ze&&W){var e=function(){W(ze.getValue())};return ze.on("blur",e),function(){ze.off("blur",e)}}}),[ze,W]),(0,s.useEffect)((function(){if(ze){var e=function(e,t){var n=e.getValue();De(n),Xe((new Date).getTime()),e.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),a&&(R?a(n,Lt(n)):a(n))};return ze.on("change",e),function(){ze.off("change",e)}}}),[ze,a]),(0,s.useEffect)((function(){if(ze)if(null==n)ze.setValue(""),De("");else{var e=window.scrollY||window.pageYOffset;n!==ze.getValue()&&(ze.setValue(n),De(n),ze.setCursor(ce?1:ze.lineCount(),0),window.scrollTo(0,e))}}),[ze,n]);var Pt=(0,s.useCallback)((function(e){var t=ze.getCursor(),n=ze.getSelection(),a=n.split("\n");switch(e){case"bold":return ze.replaceSelection("**"+n+"**"),""===n&&ze.setCursor(t.line,t.ch+2),ze.focus();case"italic":return ze.replaceSelection("*"+n+"*"),""===n&&ze.setCursor(t.line,t.ch+1),ze.focus();case"code":return ze.replaceSelection("`"+n+"`"),""===n&&ze.setCursor(t.line,t.ch+1),ze.focus();case"inline-latex":return He("inline-latex"),ze.focus();case"latex":return ze.replaceSelection("```latex\n"+n+"\n```"),ze.setCursor(t.line+1,n.length+1),ze.focus();case"line-break":return ze.replaceSelection("<br/>\n"),ze.focus();case"list-ul":return""===n?ze.replaceSelection("- "+n):ze.replaceSelection(a.map((function(e){return""===e?"":"- ".concat(e)})).join("\n")),ze.focus();case"list-ol":return""===n?ze.replaceSelection("1. "+n):ze.replaceSelection(a.map((function(e,t){return""===e?"":"".concat(t+1,". ").concat(e)})).join("\n")),ze.focus();case"add-null-ch":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection("▁"),ze.focus();case"add-signal":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection("@▁@"),ze.focus();case"add-multiple":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection(ue),ze.focus();case"inster-template-1":return""===n&&ze.setCursor(t.line,t.ch),ze.replaceSelection("\n**模板标题**\n模板正文内容可输入文本内容和粘贴图片等操作"),ze.focus();case"eraser":return ze.setValue(""),ze.focus();case"trigger-watch":return ke(!Ee),ze.focus();case"trigger-full-screen":return Re(!_e),ze.focus();case ge:return void He(ge);case se:return void He(se);case ie:return void He(ie);case de:return void He(de);case"maths-latex":return void He("maths-latex");case re:return void He(re);case he:return void He(he);default:throw new Error}}),[ze,Ee,_e]),wt=(0,s.useCallback)((function(e,t){var n,a,o,g,i;switch(He(""),Ye){case ge:var r=e.title,d=e.link;return ze.replaceSelection("[".concat(r,"](").concat(d,")")),ze.focus();case se:var s=e.language,h=e.content;return ze.replaceSelection(["```"+s,h,"```"].join("\n")),ze.focus();case"maths-latex":for(var c=atob(e),l=new Uint8Array(c.length),m=0;m<c.length;m++)l[m]=c.charCodeAt(m);var u=new Blob([l],{type:"image/png"});(0,z.I)(u,(function(e){e.id?ze.replaceSelection("![,](/api/attachments/".concat(e.id,"?type=").concat(e.content_type,")")):401===(null==e?void 0:e.status)&&(document.location.href="/user/login")}));break;case"inline-latex":ze.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?ze.replaceSelection("![ ".concat(P," ]( ").concat(S,' "').concat(P,'" )')):ze.replaceSelection("![,](".concat(S,")")):(null==w||null===(g=w.type)||void 0===g?void 0:g.indexOf("video"))>-1?ze.replaceSelection('<video width="100%" controls src="'.concat(S,'"></video>')):(null==w||null===(i=w.type)||void 0===i?void 0:i.indexOf("pdf"))>-1?ze.replaceSelection('<a href="'.concat(S,"?type=").concat(w.type,'&disposition=inline" target="_blank">').concat(w.name,"</a>")):Se.includes(p)?ze.replaceSelection('<a href="'.concat(S,'?type=office&disposition=inline" target="_blank">').concat(w.name,"</a>")):ze.replaceSelection("[".concat(w.name,"](").concat(S,")")),ze.focus();case he:for(var f=e.row,v=e.col,L=e.align,y="\n",x=0;x<f;x++){for(var j=[],M=[],N=0;N<v;N++)1===x&&M.push(le[L]),j.push(" ");1===x&&(y+="| ".concat(M.join(" | ")," |\n")),y+="| ".concat(j.join(1===v?"":" | ")," |\n")}return ze.replaceSelection(y+"\n"),ze.focus();default:throw new Error}}),[ze,Ye]),pt=(0,s.useMemo)((function(){switch(Ye){case ge:return(0,u.jsx)(N,{callback:wt,onCancel:ft});case se:return(0,u.jsx)(b.Z,{callback:wt,onCancel:ft});case ie:return(0,u.jsx)(z.Z,{callback:wt,onCancel:ft});case re:return(0,u.jsx)(V,{callback:wt,onCancel:ft});case he:return(0,u.jsx)(q,{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}}),[Ye]);function ft(){He("")}(0,s.useEffect)((function(){if(mt.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=mt.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)}}}),[ze,mt]),(0,s.useEffect)((function(){$e(P)}),[P]);var vt={width:Pe(r),height:Pe(qe)},Lt=((0,s.useMemo)((function(){if(Qe){var e=new Date(Qe),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}),[Qe]),function(e){var t=[];if(R){e=e.replace(/(@▁▁@|@▁@)/g,(function(e,n,a){t.push({multiLine:!("@▁@"===e)})}))}return t});(0,s.useEffect)((function(){fe[Ye]&&Ye!==de&&Ye!==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),ht(n)}),0)}),[Ye]);var yt=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)(s.Fragment,{children:[(0,u.jsx)("div",{className:"markdown-editor-wrapper",ref:lt,children:(0,u.jsxs)("div",{className:"markdown-editor-container ".concat(K," ").concat(Ee?"on-preview":""," ").concat(p?"mini":""," ").concat(_e?"full-screen":""),style:vt,children:[(0,u.jsx)(v,{insertTemp:j,watch:Ee,fullScreen:_e,showNullButton:O,showNullProgramButton:R,onActionCallback:Pt,hidetoolBar:U,extraUse:Me}),(0,u.jsxs)("div",{className:"markdown-editor-body",children:[(0,u.jsx)("div",{className:"codemirror-container",children:(0,u.jsx)("textarea",{ref:ct,placeholder:ye})}),Ee?(0,u.jsxs)("div",{ref:ut,className:"preview-container",children:["stex"===I&&(0,u.jsx)(S,{value:Ae}),"stex"!==I&&(0,u.jsx)(m.Z,{disabledFill:ve,showProgramFill:R,value:Ae})]}):null]})]})}),G?(0,u.jsx)("a",{ref:mt,className:"editor-resize"}):null,Ye===de&&(0,u.jsx)(A,{callback:wt,onCancel:ft}),Ye===re&&(0,u.jsx)(V,{callback:wt,onCancel:ft}),(0,u.jsx)(L.Z,{children:fe[Ye]&&Ye!==de&&Ye!==re?(0,u.jsx)(T.Z,{maskClosable:!1,centered:!0,style:{position:"absolute",left:gt,top:st},title:(0,u.jsx)("div",{style:{cursor:"move"},onMouseDown:function(e){e.preventDefault();var t=e.clientX-gt,n=e.clientY-st;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)),yt(e.clientX,e.clientY,t,n)&&(it(a),ht(o))},document.body.onmouseup=function(){document.body.onmousemove=null}},children:fe[Ye]}),open:!0,onCancel:ft,footer:null,destroyOnClose:!0,width:Ye===re?"1200px":null,height:Ye===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),s=n(92832),h=n(3113),c=n(37318),l=n(59301),m=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],c=(0,l.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,m.jsxs)(r.Z,o()(o()({form:g},P),{},{className:"upload-image-panel",onFinish:function(e){t(e,c.current)},style:{width:470,overflow:"hidden"},children:[(0,m.jsx)(r.Z.Item,{label:"图片地址",required:!0,children:(0,m.jsxs)("div",{className:"flex-container",children:[(0,m.jsx)(r.Z.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"请输入图片地址"}],children:(0,m.jsx)(s.Z,{style:S})}),(0,m.jsx)(p,{onFileChange:function(e){var t=e.target.files[0];c.current=t,f(t,w)}})]})}),(0,m.jsx)(r.Z.Item,{label:"图片描述",name:"alt",children:(0,m.jsx)(s.Z,{style:{width:264}})}),(0,m.jsxs)(r.Z.Item,{style:{textAlign:"right"},children:[(0,m.jsx)(h.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10},children:"确定"}),(0,m.jsx)(h.ZP,{type:"default",onClick:n,children:"取消"})]})]}))};function p(e){var t=e.onFileChange;return(0,m.jsxs)("label",{className:"upload-button",style:{cursor:"pointer"},children:["本地上传",(0,m.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(c.KI,"/api/attachments.json")),a.send(n)}},32552:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var a=n(82100),o=n.n(a),g=n(29186),i=n.n(g),r=n(80619),d=n.n(r),s=n(47074),h=n.n(s),c=n(59301),l=n(4676),m=function(e){d()(n,e);var t=h()(n);function n(e){var a;o()(this,n),a=t.call(this,e);var g=window.document;return a.node=g.createElement("div"),g.body.appendChild(a.node),a}return i()(n,[{key:"render",value:function(){var e=this.props.children;return(0,l.createPortal)(e,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),n}(c.Component)},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,s=(e.autoFormat,e.onCodeModeChange),h=e.onTabToSpace,c=(e.onAutoFormat,e.formatDocument),l=e.className,m=void 0===l?"":l,u=e.tabToSpace,S=e.children,P=e.code_editor,w=e.challenge;return(0,g.jsxs)("div",{className:"tpi-code-setting ".concat(m),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:s,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:h})]}),(0,g.jsx)("div",{className:"file-item",onClick:c,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?"关闭外网":"开启外网"})]})]})]})]})}},4027:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(59301);function o(e,t){var n=(0,a.useRef)();(0,a.useEffect)((function(){n.current=e})),(0,a.useEffect)((function(){if(null!==t){var e=setInterval((function(){n.current()}),t);return function(){return clearInterval(e)}}}),[t])}},14163:function(e,t,n){"use strict";n.d(t,{Im:function(){return N},ZP:function(){return A},gZ:function(){return I}});var a=n(79800),o=n.n(a),g=n(82242),i=n.n(g),r=n(85573),d=n.n(r),s=n(59301),h=n(92832),c=n(3113),l=n(18290),m=n(88551),u=n(66056),S=n(24334),P=n(21791),w=n(54065),p=n(95972),f=n(51336),v=n(34376),L=n(92310),y=n.n(L),x=n(37712),j=h.Z.TextArea,M={visible:!1,tabIndex:"0"},N=d()(d()(d()(d()(d()(d()({},u.h.NOMATCH,"测试用例结果不匹配"),u.h.OK,"调试通过"),2,"调试超时"),3,"调试pod失败"),4,"编译失败"),5,"执行失败"),b=function(e){return e[e.SET_VISIBLE=0]="SET_VISIBLE",e[e.SET_TABINDEX=1]="SET_TABINDEX",e}(b||{});function z(e,t){switch(t.type){case b.SET_VISIBLE:return i()(i()({},e),{},{visible:t.payload});case b.SET_TABINDEX:return i()(i()({},e),{},{tabIndex:t.payload});default:throw new Error}}function T(e){var t=e.value,n=e.className,a=(0,s.useState)(!1),g=o()(a,2),i=g[0],r=g[1],d=(0,s.useRef)(),h=(0,s.useRef)();return(0,s.useEffect)((function(){i&&(h.current.reset(),h.current.write((0,p.pp)(t||"")))}),[t,i]),(0,s.useEffect)((function(){if(d.current){var e;h.current=new v.Terminal({fontSize:14,disableStdin:!0}),h.current.open(d.current);var t=d.current.offsetWidth-14,n=(null===(e=h.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);h.current.resize(a,8),r(!0)}}),[]),(0,x.jsx)("div",{ref:d,className:y()("XtermText-valueRef",n)})}function I(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,s=e.expected_output_file_url,h=null,c={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(t){case u.h.NOMATCH:h=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("p",{className:"c-red",children:"实际输入:"}),!i&&(0,x.jsx)(T,{className:"mb10",value:o}),i&&(0,x.jsx)("div",{style:c,children:(0,x.jsx)("a",{onClick:function(){return(0,p.LR)(r,o)},children:o})}),(0,x.jsx)("p",{className:"c-red",children:"实际输出:"}),!i&&(0,x.jsx)(T,{className:"mb10",value:a&&S.Base64.decode(a)||""}),i&&(0,x.jsx)("div",{style:c,children:(0,x.jsx)("a",{onClick:function(){return(0,p.LR)(d,a)},children:a})}),(0,x.jsx)("p",{className:"c-red",children:"预期输出:"}),!i&&(0,x.jsx)(T,{className:"mb10",value:g&&S.Base64.decode(g)||""}),i&&(0,x.jsx)("div",{style:c,children:(0,x.jsx)("a",{onClick:function(){return(0,p.LR)(s,g)},children:g})})]});break;case u.h.EXECUTEFAILURE:case u.h.COMPILEFAILURE:h=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("p",{children:"最后执行的输入:"}),!i&&(0,x.jsx)(w.Z,{value:o,style:c}),i&&(0,x.jsx)("div",{style:c,children:(0,x.jsx)("a",{onClick:function(){return(0,p.LR)(r,o)},children:o})}),(0,x.jsx)("p",{children:"执行出错信息:"}),(0,x.jsx)("pre",{className:"error",children:S.Base64.decode(n)})]});break;case u.h.PODFAILURE:h=(0,x.jsx)("p",{children:"创建pod失败请稍后重试"});break;case u.h.TIMEOUT:h=(0,x.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,x.jsxs)(x.Fragment,{children:[" ",h," "]})}function C(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,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("p",{children:["执行用时:",a,"秒"]}),(0,x.jsx)("p",{children:"执行结果:"}),(0,x.jsx)("pre",{children:S.Base64.decode(o)})]});break;case u.h.NOMATCH:r=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("p",{children:["输入:",(0,x.jsx)("pre",{children:g})]}),(0,x.jsxs)("p",{children:["输出:",o&&S.Base64.decode(o)]}),(0,x.jsxs)("p",{children:["预期输出:",i&&S.Base64.decode(i)]})]});break;case u.h.EXECUTEFAILURE:case u.h.COMPILEFAILURE:r=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)("p",{children:["最后执行的输入:",(0,x.jsx)("pre",{children:g})]}),(0,x.jsx)("p",{children:"执行出错信息:"}),(0,x.jsx)("pre",{className:"error",children:S.Base64.decode(n)})]});break;case u.h.PODFAILURE:r=(0,x.jsx)("p",{children:"创建pod失败请稍后重试"});break;case u.h.TIMEOUT:r=(0,x.jsx)("p",{children:"评测超时,请稍后重试"})}return(0,x.jsxs)(x.Fragment,{children:[" ",r," "]})}var A=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,h=e.onDebugCode,u=e.onSubmitCode,S=(0,s.useReducer)(z,M),w=o()(S,2),p=w[0],v=w[1],L=p.visible;p.tabIndex;(0,s.useEffect)((function(){v({type:b.SET_VISIBLE,payload:!1})}),[t]);var y=(0,s.useMemo)((function(){if(r){r.status;return(0,x.jsx)(x.Fragment,{children:C(r)})}return null}),[r]);return(0,x.jsxs)("div",{className:"test-case-panel",children:[(0,x.jsxs)("div",{className:"test-case-panel-body ".concat(L?"active":""),children:[(0,x.jsx)("ul",{className:"s-navs",children:(0,x.jsx)("li",{children:(0,x.jsx)("a",{className:"active",children:"调试代码结果"})})}),(0,x.jsx)(f.Z,{leftTitle:"自定义测试用例",rightTitle:"代码执行结果",style:{height:240},leftNode:(0,x.jsx)(j,{placeholder:"请输入自测用例(如果未填写,首次自测运行时,系统会自动填充第一个非隐藏的文本类型的测试用例)",value:n?"":a,onChange:d}),rightNode:g?(0,x.jsx)(P.Z,{message:"代码执行中..."}):r?y:(0,x.jsx)("p",{style:{color:"#536879"},children:"请填写测试用例的输入值,点击“调试代码”"})})]}),(0,x.jsx)("a",{className:"btn-collapse ".concat(L?"up":""),onClick:function(){v({type:b.SET_VISIBLE,payload:!L})},children:L?(0,x.jsx)(l.Z,{}):(0,x.jsx)(m.Z,{})}),(0,x.jsxs)("footer",{className:"footer",children:[(0,x.jsx)("span",{style:{visibility:"hidden"},children:"控制台"}),(0,x.jsxs)("div",{className:"flex-container",children:[(0,x.jsx)(c.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost",children:"上一题"}),(0,x.jsx)(c.ZP,{id:"oj-next",className:"btn-blue",type:"ghost",children:"下一题"}),(0,x.jsx)(c.ZP,{className:"btn-green",type:"ghost",loading:g,onClick:function(){v({type:b.SET_VISIBLE,payload:!0}),v({type:b.SET_TABINDEX,payload:"1"}),h()},children:"调试代码"}),(0,x.jsx)(c.ZP,{type:"primary",className:"custom-ant-disabled",loading:i,disabled:i,onClick:function(){v({type:b.SET_VISIBLE,payload:!1}),u()},children:"评测并提交"})]})]})]})}},38014:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ln}});var a=n(39647),o=n.n(a),g=n(7557),i=n.n(g),r=n(41498),d=n.n(r),s=n(79800),h=n.n(s),c=n(82242),l=n.n(c),m=n(59301),u=n(52249),S=n(15962),P=n(79265),w=n(31797),p=n(8591),f=n(43418),v=n(71418),L=n(57809),y=n(42517),x=n(9266),j=n(69423),M=n(80205),N=n(43428),b=n(31775),z=n(32552),T=n(64269),I=n(52322),C=n(37712),A={theme:(0,T.G)("cmCodeMode","vs-dark"),fontSize:(0,T.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,T.G)("cmTabToSpace",!0)},D=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}(D||{});function B(e,t){switch(t.type){case D.set_show_editor_setting:return l()(l()({},e),{},{showEditorSetting:t.payload});case D.set_theme:return l()(l()({},e),{},{theme:t.payload});case D.set_font_size:return l()(l()({},e),{},{fontSize:t.payload});case D.on_tab_to_space:return l()(l()({},e),{},{tabToSpace:t.payload});default:throw new Error}}var G=function(e){var t=e.isLoading,n=e.value,a=e.onChange,o=e.language,g=e.onUpdateCode,i=e.ActionBarRender,r=void 0===i?function(e){return(0,C.jsx)(E,{onShowCodeSetting:e})}:i,d=(0,m.useReducer)(B,A),s=h()(d,2),c=s[0],u=s[1],S=c.theme,P=c.fontSize,w=c.showEditorSetting,p=c.tabToSpace,f=(0,m.useRef)(),v=(0,m.useRef)(),L={onFontSizeChange:function(e){u({type:D.set_font_size,payload:e}),(0,T.t)("cmFontSize",e)},tabToSpace:p,cmFontSize:P,className:"oj",cmCodeMode:S,onTabToSpace:function(e){u({type:D.on_tab_to_space,payload:e}),(0,T.t)("cmTabToSpace",e)},onCodeModeChange:function(e){u({type:D.set_theme,payload:e}),(0,T.t)("cmCodeMode",e)}};var y={value:n,language:o,theme:S,height:"calc(100% - 56px)",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,C.jsxs)(m.Fragment,{children:[(0,C.jsxs)("div",{className:"code-panel-container",children:[r((function(){u({type:D.set_show_editor_setting,payload:!0})})),!t&&(0,C.jsx)(b.ZP,l()({},y))]}),(0,C.jsx)(z.Z,{children:(0,C.jsx)(N.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:w,onClose:function(){u({type:D.set_show_editor_setting,payload:!1})},children:(0,C.jsx)(I.Z,l()({},L))})})]})};function E(e){var t=e.onShowCodeSetting;return(0,C.jsxs)("div",{className:"action-bar",children:[(0,C.jsx)("span",{children:"学员初始代码文件"}),(0,C.jsx)("a",{onClick:t,children:(0,C.jsx)("i",{className:"iconfont icon-shezhi"})})]})}var k=n(24334),F=n(78925),O=n(14163),_=n(92832),R=n(78241),Z=n(3113),U=_.Z.TextArea,Y=function(e){var t=e.callback,n=e.onCancel,a=e.notes;return(0,C.jsxs)(R.Z,{className:"note-form-panel",onFinish:function(e){t(e)},initialValues:{notes:a},children:[(0,C.jsx)(R.Z.Item,{name:"notes",rules:[{required:!0,message:"请输入笔记内容"},{max:5e3,message:"笔记最大字数为".concat(5e3)}],children:(0,C.jsx)(U,{placeholder:"请输入笔记内容",rows:5})}),(0,C.jsxs)(R.Z.Item,{style:{textAlign:"right"},children:[(0,C.jsx)(Z.ZP,{type:"ghost",onClick:n,style:{marginRight:10},children:" 取消 "}),(0,C.jsx)(Z.ZP,{type:"primary",htmlType:"submit",children:" 提交 "})]})]})},H="left-panel___fP6Y3",W="tab-panel-body___aLOJQ",V="b1___ELpwD",Q="oj-mr___SIQSw",X="s-navs___iVrSH",J="bg-white___S0kiU",K="active___D332c",q={pagination:"pagination___npPu7",info:"info___aRH6C"},$=n(2595),ee=n(25700),te=n(50023),ne=n(3837),ae=n(66056),oe=n(95972),ge=n(61186),ie=n.n(ge),re=$.Z.Column,de=function(e){var t=e.submitResult,n=e.submitting,a=e.submitRecords,o=e.page,g=e.onPageChange,i=e.topicId,r=t||{},d=r.status,s=r.id,h=r.input,c=r.output,l=r.expected_output,m=r.is_file,u=r.input_file_url,S=r.output_file_url,w=r.expected_output_file_url,f=r.error_msg,L=a||{},y=L.records,x=L.records_count,j=(0,P.useParams)();return(0,C.jsxs)(v.Z,{spinning:n,tip:"评测中...",indicator:(0,C.jsx)(te.Z,{style:{fontSize:24},spin:!0}),children:[s?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("ul",{className:q.info,children:[(0,C.jsxs)("li",{children:["执行结果:",(0,C.jsx)("span",{className:d===ae.h.OK?"c-green":"c-red",children:O.Im[d]})]}),(0,C.jsx)("li",{className:q.error,children:(0,C.jsxs)("a",{onClick:function(){m?navigator.clipboard.writeText(k.Base64.decode(f)).then((function(){p.ZP.success("复制错误信息成功")})):navigator.clipboard.writeText(k.Base64.decode(c)).then((function(){p.ZP.success("复制错误信息成功")}))},children:["复制错误信息 ",(0,C.jsx)(ne.Z,{})," "]})}),(0,C.jsx)("li",{children:(0,C.jsx)(P.Link,{to:"/problems/".concat(i,"/record-detail/").concat(s,"?backId=").concat(null==j?void 0:j.save_identifier),children:"显示详情 > "})})]}),d!==ae.h.OK?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{className:"c-red",children:"实际输入:"}),(0,C.jsxs)("pre",{children:[!m&&h,m&&(0,C.jsx)("a",{style:{fontSize:"16px"},onClick:function(){return(0,oe.LR)(u,h)},children:h})]}),(0,C.jsx)("p",{className:"c-red",children:"实际输出:"}),(0,C.jsxs)("pre",{children:[(4===d||5===d)&&k.Base64.decode(f),4!=d&&5!=d&&(m?(0,C.jsx)("a",{style:{fontSize:"16px"},onClick:function(){return(0,oe.LR)(S,c)},children:c}):k.Base64.decode(c))]}),(0,C.jsx)("p",{className:"c-red",children:"预期输出:"}),(0,C.jsxs)("pre",{children:[!m&&k.Base64.decode(l),m&&(0,C.jsx)("a",{style:{fontSize:"16px"},onClick:function(){return(0,oe.LR)(w,l)},children:l})]})]}):null]}):null,(null==y?void 0:y.length)>0?(0,C.jsxs)($.Z,{dataSource:y,rowKey:"id",pagination:!1,children:[(0,C.jsx)(re,{title:"提交时间",dataIndex:"created_at",render:function(e,t){return(0,C.jsxs)("span",{children:[" ",ie()(e).format("YYYY-MM-DD HH:mm:ss")]})}},"created_at"),(0,C.jsx)(re,{title:"提交结果",dataIndex:"status",render:function(e,t){var n;return(0,C.jsx)(P.Link,{className:0===e?"c-green":"c-red",to:"/problems/".concat(i,"/record-detail/").concat(t.id,"?backId=").concat(null==j?void 0:j.save_identifier),children:null===(n=O.Im[e])||void 0===n?void 0:n.replace("调试","评测")})}},"status"),(0,C.jsx)(re,{title:"执行用时 (S)",dataIndex:"execute_time"},"execute_time"),(0,C.jsx)(re,{title:"内存消耗MB",dataIndex:"execute_memory"},"execute_memory"),(0,C.jsx)(re,{title:"语言",dataIndex:"language"},"language")]}):null,x>15?(0,C.jsx)(ee.Z,{className:q.pagination,current:o,pageSize:15,total:x,onChange:g}):null]})},se=n(63017),he=n(12563),ce=n(81327),le="desc___X8_hx",me="info___C1DPv",ue="commit-info____9yQm",Se=n(54065),Pe={1:{name:"简单",color:"#52c41a"},2:{name:"适中",color:"#faad14"},3:{name:"困难",color:"#f5222d"}},we=function(e){var t=e.hack,n=(e.onTriggerPraise,e.toDiscuss),a=(t.language,t.difficulty),o=t.time_limit,g=(t.username,t.user_path,t.user_praise,t.comments_count),i=(t.praises_count,t.description),r=t.pass_count,d=t.submit_count;(0,P.useLocation)();console.log(t.language,"language");var s=Pe[a];return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("ul",{className:me,children:[(0,C.jsxs)("li",{children:["难度:",(0,C.jsx)(he.Z,{color:null==s?void 0:s.color,children:null==s?void 0:s.name})]}),(0,C.jsxs)("li",{children:["单个测试集评测时长限制:",(0,C.jsxs)("b",{children:[o,"秒"]})]})]}),(0,C.jsx)(Se.Z,{value:i,className:le}),(0,C.jsxs)("ul",{className:ue,children:[(0,C.jsx)("li",{children:(0,C.jsxs)(ce.Z,{size:4,children:[(0,C.jsx)("span",{children:"通过次数"})," ",(0,C.jsx)("b",{children:r})]})}),(0,C.jsxs)("li",{children:[(0,C.jsxs)(ce.Z,{size:4,children:[(0,C.jsx)("span",{children:"提交次数"})," ",(0,C.jsx)("b",{children:d})]})," "]}),(0,C.jsx)("li",{style:{flex:"1 0 0"}}),(0,C.jsxs)("li",{children:[(0,C.jsxs)(ce.Z,{size:4,children:[(0,C.jsx)("i",{className:"iconfont icon-huifu1",onClick:n})," ",(0,C.jsx)("b",{children:g})]})," "]})]})]})},pe=n(34837);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var fe=n(37205),ve=n.n(fe),Le=n(82710);function ye(e){return(0,Le.U2)("comments.json",e)}function xe(e){return(0,Le.v_)("/discusses/".concat(e,"/plus.json"),{container_type:"Discuss",type:1})}function je(e){return(0,Le.v_)("comments/reply.json",e)}function Me(e){return(0,Le.v_)("comments.json",e)}function Ne(e){return(0,Le.v_)("comments/".concat(null==e?void 0:e.id,"/hidden.json"),e)}function be(e){return(0,Le.IV)("comments/".concat(null==e?void 0:e.id,".json"))}var ze=n(53408),Te=n(64118);function Ie(e){var t=e.author;return(0,C.jsx)("a",{href:"/users/".concat(t.login),target:"_blank",children:(0,C.jsx)("img",{alt:"用户头像",height:"50",style:{borderRadius:"50%"},src:"".concat(j.Z.IMG_SERVER,"/images/").concat(t.image_url),width:"50"})})}function Ce(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,s=t.id,h=t.time;var c=o.admin||r||i.user_id===o.user_id;return(0,C.jsxs)("div",{className:"discuss-item-container second-discuss ",children:[(0,C.jsx)(Ie,{author:i}),(0,C.jsxs)("section",{children:[(0,C.jsxs)("div",{className:"discuss-info",children:[(0,C.jsx)("a",{href:"/users/".concat(i.login),target:"_blank",children:i.name}),(0,C.jsx)("span",{className:"grey",children:h}),(0,C.jsx)("div",{className:"btn-group",style:{marginBottom:0},children:c?(0,C.jsx)("a",{onClick:function(){g({id:s,index:n,type:"delete-discuss",parentDiscussIndex:a,message:"确定要删除该条回复吗"})},title:"删除",children:(0,C.jsx)("i",{className:"iconfont icon-shanchu"})}):null})]}),(0,C.jsx)(Se.Z,{className:"discuss-content",value:d})]})]})}var Ae=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,s=n.content,h=n.children,c=n.hidden,l=n.id,m=n.praise_count,u=n.time,S=n.user_praise,P=n.can_delete,w=n.author;console.log(P&&(!h||0==h.length),"children22");t.admin||(t.user_id,w.user_id);return(0,C.jsxs)("div",{className:"discuss-item-container",children:[(0,C.jsx)(Ie,{author:w}),(0,C.jsxs)("section",{children:[(0,C.jsxs)("div",{className:"discuss-info",children:[(0,C.jsxs)("a",{href:"/users/".concat(w.login),target:"_blank",children:[" ",w.name," "]}),(0,C.jsx)("span",{className:"grey",children:u})]}),(0,C.jsx)(Se.Z,{className:"discuss-content",value:s}),h&&h.length>0?(0,C.jsx)("div",{className:"reply-discuss-container",children:h.map((function(e,n){return(0,C.jsx)(Ce,{data:e,index:n,user:t,onSetActionType:g,parentDiscussIndex:a},e.id)}))}):null,(0,C.jsxs)("div",{className:"btn-group",children:[(0,Te.Ny)()?(0,C.jsx)("a",{onClick:function(){g({id:l,index:a,params:{hidden:c?"0":"1"},type:"hidden-discuss",message:c?"确定要取消隐藏该条回复吗":"确定要隐藏该条回复吗"})},title:c?"取消隐藏":"隐藏评论",children:(0,C.jsx)("i",{className:c?"iconfont icon-yincangbiyan":"fa fa-eye"})}):null,!P||h&&0!=h.length?null:(0,C.jsx)("a",{onClick:function(){g({id:l,index:a,type:"delete-discuss",message:"确定要删除该条回复吗"})},title:"删除",children:(0,C.jsx)("i",{className:"iconfont icon-shanchu"})}),(0,C.jsxs)("a",{onClick:function(){d(l)},title:"回复",children:[" ",(0,C.jsx)("i",{className:"iconfont icon-huifu1"})," "]}),(0,C.jsxs)("a",{onClick:function(){o(l,!S,a)},className:S?"c-orange":"",children:[(0,C.jsx)("i",{className:S?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),(0,C.jsx)("span",{children:m||""})]})]}),(0,C.jsx)(ze.Z,{id:l,activeDiscussIndex:i,onReplyDiscuss:r})]})]},l)},De=n(43851),Be=n(85654),Ge=function(e){var t=e.user_praise,n=e.praise_count,a=e.praisePlus,o=e.onCreateDiscuss,g=e.discuss_count,r=(0,m.useState)(!1),s=h()(r,2),c=s[0],l=s[1],u=(0,m.useState)(""),S=h()(u,2),P=S[0],w=S[1];function p(){l(!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(""),l(!1);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,C.jsxs)("div",{className:"dis-input-editor-container ".concat(c?"active":""," "),children:[(0,C.jsxs)("div",{className:c?"text-area hide":"text-area",children:[(0,C.jsx)("input",{placeholder:"说点什么",onClick:function(){l(!0)}}),(0,C.jsxs)("a",{style:{alignItems:"center"},children:[" ",(0,C.jsx)("i",{className:"iconfont icon-huifu1"}),"    ",g," "]}),(0,C.jsxs)("a",{className:"c-light-black",onClick:a,style:{alignItems:"center"},title:t?"取消点赞":"点赞",children:[(0,C.jsx)("i",{className:"mr3 ".concat(t?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"," ")}),n?(0,C.jsx)("span",{children:n}):""]})]}),c?(0,C.jsx)("div",{className:"input-mask",onClick:p}):null,(0,C.jsxs)("div",{className:c?"md-container":"md-container hide",children:[(0,C.jsx)(Be.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:P,height:240,onChange:function(e){w(e)}}),(0,C.jsx)("div",{className:"tip-container",onClick:p,children:(0,C.jsx)("a",{className:"btn-send",onClick:function(){return f.apply(this,arguments)},children:" 发送 "})})]})]})},Ee={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null},ke=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}(ke||{});function Fe(e,t){switch(t.type){case ke.SHOW_DISCUSSES_LOADING:return l()(l()({},e),{},{loading:!0});case ke.GET_DISCUSSES:case ke.TOP_OR_DOWN_DISCUSS:case ke.SET_ACTION_TYPE:case ke.PLUS_DISCUSS:case ke.SET_PAGE:case ke.ACTIVE_DISCUSS_INDEX:return l()(l()({},e),t.payload);default:throw new Error}}var Oe=function(e){var t=e.user,n=e.identifier,a=e.hack,o=e.onTriggerPraise,g=e.setDiscussTotal,r=(0,m.useReducer)(Fe,Ee),s=h()(r,2),c=s[0],u=s[1],S=c.loading,P=c.page,w=c.data,p=c.count,L=c.actionType,y=c.activeDiscussIndex;console.log("---",c);var x=(0,m.useCallback)(d()(i()().mark((function e(){var t,a,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u({type:ke.SHOW_DISCUSSES_LOADING}),e.next=3,ye({container_type:"Practice",container_identifier:n,limit:10,page:P});case 3:t=e.sent,a=t.comments,o=t.disscuss_count,u({type:ke.GET_DISCUSSES,payload:{data:a,count:o,loading:!1}}),g(o);case 7:case"end":return e.stop()}}),e)}))),[P,n]);function j(e){u({type:ke.SET_ACTION_TYPE,payload:{actionType:e}})}function M(e){u(y===e?{type:ke.ACTIVE_DISCUSS_INDEX,payload:{activeDiscussIndex:null}}:{type:ke.ACTIVE_DISCUSS_INDEX,payload:{activeDiscussIndex:e}})}function N(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,xe(t);case 3:o=e.sent,w[a].user_praise=n,w[a].praise_count=o.praise_count,u({type:ke.PLUS_DISCUSS,payload:{data:ve()(w)}}),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 T(){return(T=d()(i()().mark((function e(){var t,a,o,g,r;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=L.id,a=L.params,o=L.type,g=L.index,r=L.parentDiscussIndex,"hidden-discuss"!==o){e.next=7;break}return console.log(a,"params"),e.next=5,Ne(l()({id:t,container_type:"Practice",container_identifier:n},a));case 5:r?w[r].children[g].hidden=1==a.hidden:w[g].hidden=1==a.hidden,u({type:ke.SET_ACTION_TYPE,payload:{actionType:null,data:ve()(w)}});case 7:if("delete-discuss"!==o){e.next=13;break}return e.next=10,be({id:t,container_type:"Practice",container_identifier:n});case 10:return u({type:ke.SET_ACTION_TYPE,payload:{actionType:null}}),e.next=13,x();case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t){return A.apply(this,arguments)}function A(){return(A=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,je({container_type:"Practice",container_identifier:n,comments:{content:a,parent_id:t}});case 3:x(),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 D(){return(D=d()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u({type:ke.SHOW_DISCUSSES_LOADING}),e.next=3,Me({comments:{content:t},container_type:"Practice",container_identifier:n});case 3:x();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,m.useEffect)((function(){x()}),[n,P]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("div",{className:"discuss-panel",children:[0===w.length?(0,C.jsx)(se.Z,{}):(0,C.jsx)(v.Z,{spinning:S,children:w.map((function(e,n){return(0,C.jsx)(Ae,{onReplyDiscuss:I,onPlusDiscuss:N,onSetActiveDiscussIndex:M,onSetActionType:j,data:e,index:n,user:t,activeDiscussIndex:y})}))}),p>10?(0,C.jsx)("div",{className:"pagination-container mt10 mb10",children:(0,C.jsx)(ee.Z,{showQuickJumper:!0,onChange:function(e){u({type:ke.SET_PAGE,payload:{page:e}})},current:P,total:p,showTotal:function(e){return(0,C.jsxs)("span",{style:{color:"#656F87"},children:["共",(0,C.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]})}})}):null]}),(0,C.jsx)(Ge,{user_praise:a.user_praise,praise_count:a.praises_count,praisePlus:o,discuss_count:a.comments_count,onCreateDiscuss:function(e){return D.apply(this,arguments)}}),(0,C.jsxs)(z.Z,{children:[(0,C.jsx)(f.Z,{centered:!0,title:"提示",open:!!L,onOk:function(){return T.apply(this,arguments)},onCancel:function(){u({type:ke.SET_ACTION_TYPE,payload:{actionType:null}})},children:(0,C.jsx)("p",{children:L?L.message:""})}),(0,C.jsx)(De.Z,{})]})]})},_e="wrap___sgoJE",Re="head___b9a9v",Ze="sort___L2Zw8",Ue="btn___khuE4",Ye="listWarp___zZj6C",He="pagination___XlROP",We="fixedRight___MuAXo",Ve="oj-width-input___RsZb6",Qe="active___BczOO",Xe="line___VC_Ry",Je="list___n9ABd",Ke="left___LVHqw",qe="mask___fP13z",$e="right___iLe52",et="name___Oz_7h",tt="title___2Sess",nt="a___t7rIW",at="b___Kb_45",ot="des___CjMBM",gt="tag___V0PVb";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var it="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var rt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43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MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==";Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var dt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",st=function(e){var t=e.style,n=void 0===t?{}:t,a=e.onClick,o=e.onAssist,g=e.onHide,i=e.data,r=e.active,d=e.showLine;return(0,C.jsxs)(m.Fragment,{children:[(0,C.jsxs)("div",{className:r===(null==i?void 0:i.id)?"".concat(Je," ").concat(Qe):Je,style:n,onClick:function(){return a(i)},children:[(null==i?void 0:i.video)&&(0,C.jsxs)("div",{className:Ke,children:[(0,C.jsx)("img",{src:null==i?void 0:i.video_cover}),(0,C.jsxs)("div",{children:[(0,C.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4="}),(0,C.jsx)("span",{children:null==i?void 0:i.video_duration})]}),(0,C.jsx)("div",{className:qe})]}),(0,C.jsxs)("div",{className:$e,children:[(0,C.jsxs)("div",{className:et,children:[(0,C.jsx)("img",{src:j.Z.IMG_SERVER+"/images/"+(null==i?void 0:i.image_url),width:30,height:30}),(0,C.jsx)("div",{title:null==i?void 0:i.name,className:tt,children:null==i?void 0:i.name}),(null==i?void 0:i.is_authority)&&(0,C.jsx)("div",{className:at,children:"官方"}),(null==i?void 0:i.is_excellent)&&(0,C.jsx)("div",{className:nt,children:"精选"})]}),(0,C.jsx)("div",{className:ot,children:(0,C.jsx)(Se.Z,{showLines:2,showTextOnly:!0,value:(null==i?void 0:i.content)||"暂无内容"})}),(0,C.jsxs)("div",{className:gt,children:[(0,C.jsxs)("span",{className:"current",onClick:function(e){e.stopPropagation(),o(i)},children:[(0,C.jsx)("img",{src:null!=i&&i.user_liker?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==":it}),(0,C.jsx)("span",{style:{color:null!=i&&i.user_liker?"#0152d9":"#656f87"},children:null==i?void 0:i.praises_count})]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("img",{src:rt}),(0,C.jsx)("span",{children:null==i?void 0:i.discusses_count})]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("img",{src:dt}),(0,C.jsx)("span",{children:null==i?void 0:i.viewed_count})]}),(0,Te.Ny)()&&(0,C.jsx)("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:function(e){e.stopPropagation(),g(i)},children:null!=i&&i.is_hidden?"取消隐藏":"隐藏"})]})]})]}),d&&(0,C.jsx)("div",{className:Xe})]})},ht={flex_box_center:"flex_box_center___C6sVF",flex_space_between:"flex_space_between___VEt8l",flex_box_vertical_center:"flex_box_vertical_center___qeD5F",flex_box_center_end:"flex_box_center_end___iYJd9",flex_box_column:"flex_box_column___iAKJf",listForm:"listForm___leDJL",scroll:"scroll___wtFaF",formWrap:"formWrap___p3W41",btns:"btns___Izl4q",main:"main___xTqlG",mainLoading:"mainLoading___QLa9s",tip:"tip___a0tbY",proWarp:"proWarp___BZhOt",pro:"pro___Yp1Rx",mainSucceed:"mainSucceed___HfaTf",del:"del___TXGhB"},ct=n(6848),lt=n(52522);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var mt="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",ut=function(e,t){var n,a,o,g=t.payload.uploadInfo,i=void 0===g?{}:g;switch(t.type){case"addVideo":return{videoList:[].concat(ve()(e.videoList),[{name:i.file.name,size:i.file.size,type:i.file.type,fileHash:i.fileHash,state:i.state,video_id:i.videoId,attachment_id:"",article_id:-1,loaded:0,title:""}])};case"removeVideo":return{videoList:e.videoList.filter((function(e){return e.name!==t.payload.name}))};case"replaceVideo":return{videoList:t.payload};case"removeAll":default:return[];case"updateProgress":return{videoList:e.videoList.map((function(e){return e.name===t.payload.uploadInfo.file.name?l()(l()({},e),{loaded:t.payload.progressPercent,video_id:i.videoId,fileHash:i.fileHash}):e}))};case"updateTitle":return{videoList:null===(n=e.videoList)||void 0===n?void 0:n.map((function(e){return e.name===t.payload.item.name?l()(l()({},e),{title:t.payload.title}):e}))};case"updateImg":return{videoList:null===(a=e.videoList)||void 0===a?void 0:a.map((function(e){return e.name===t.payload.item.name?l()(l()({},e),{attachment_id:t.payload.attachment_id}):e}))};case"updateImg":return{videoList:null===(o=e.videoList)||void 0===o?void 0:o.map((function(e){return e.name===t.payload.item.name?l()(l()({},e),{attachment_id:t.payload.attachment_id}):e}))}}},St=function(e){var t,n,a=e.onClose,o=e.onOk,g=e.identifier,r=e.active,s=R.Z.useForm(),c=h()(s,1)[0],u=(0,m.useState)({}),S=h()(u,2),w=S[0],v=S[1],L=(0,m.useState)(!1),x=h()(L,2),j=x[0],M=x[1],N=(0,m.useState)(!1),b=h()(N,2),z=b[0],T=b[1],I=(0,m.useReducer)(ut,{videoList:[]}),A=h()(I,2),D=A[0],B=A[1],G=(0,Te.eY)(),E=((0,P.useParams)(),(0,m.useRef)());(0,m.useEffect)((function(){r&&F()}),[r]);var k,F=function(){var e=d()(i()().mark((function e(){var t,n,a,o,d,s,h;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.M3)(g,{active:r});case 2:0===(null==(t=e.sent)?void 0:t.status)&&(d={name:null==t||null===(n=t.data)||void 0===n?void 0:n.name,content:null==t||null===(a=t.data)||void 0===a?void 0:a.content},c.setFieldsValue(d),v(d),null!=t&&null!==(o=t.data)&&void 0!==o&&null!==(o=o.videos)&&void 0!==o&&o[0]&&B({type:"replaceVideo",payload:[{video_id:null==t||null===(s=t.data)||void 0===s||null===(s=s.videos)||void 0===s||null===(s=s[0])||void 0===s?void 0:s.video_id,name:null==t||null===(h=t.data)||void 0===h||null===(h=h.videos)||void 0===h||null===(h=h[0])||void 0===h?void 0:h.title,loaded:100}]}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=d()(i()().mark((function e(t){var n,a,d,s,h;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a={videos:D.videoList,articles:t},T(!0),!r){e.next=9;break}return a.active=r,e.next=6,(0,y.gu)(g,a);case 6:d=e.sent,e.next=12;break;case 9:return e.next=11,(0,y.bx)(g,a);case 11:d=e.sent;case 12:0===(null===(n=d)||void 0===n?void 0:n.status)&&(console.log(r||(null===(s=d)||void 0===s?void 0:s.id),44),o(r||(null===(h=d)||void 0===h?void 0:h.id))),T(!1);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(){document.getElementById("fileUpload").value=""},Y=function(e){return(0,C.jsxs)("div",{className:ht.mainSucceed,children:[(0,C.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",alt:""}),(0,C.jsx)("span",{children:"上传成功"}),(0,C.jsx)("div",{className:ht.tip,children:(0,C.jsx)(ct.Z,{getPopupContainer:function(e){return e.parentNode},title:(0,C.jsxs)("div",{children:[(0,C.jsxs)("div",{children:["1、上传视频即表示您已同意",(0,C.jsx)("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol",children:"上传内容协议"}),",不得上传未经他人授权的作品;"]}),(0,C.jsx)("div",{children:"2、不支持断点续传文件大小请勿超过1G"}),(0,C.jsx)("div",{children:"3、支持文件格式avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm、wmv"})]}),children:(0,C.jsx)("img",{src:mt,alt:""})})}),(0,C.jsxs)("div",{className:ht.del,onClick:function(){return t=e.name,n=100==e.loaded,void f.Z.confirm({title:"提示",centered:!0,okText:"确定",cancelText:"取消",content:(0,C.jsxs)("div",{className:"tc",children:["您确认要",n?"删除":"取消上传","该视频吗?"]}),onOk:function(){U(),B({type:"removeVideo",payload:{name:t}})}});var t,n},children:[(0,C.jsx)("i",{className:"iconfont icon-shanchu7 mr5"}),"删除视频"]})]})},H=null===(t=D.videoList)||void 0===t?void 0:t.length;return(0,C.jsxs)("div",{className:ht.listForm,children:[(0,C.jsxs)("header",{children:[r?"编辑":"发布","题解"]}),(0,C.jsxs)("section",{className:ht.scroll,id:"sss",children:[(0,C.jsxs)("div",{className:ht.formWrap,children:[" ",(0,C.jsxs)(R.Z,{form:c,scrollToFirstError:!0,layout:"vertical",onValuesChange:function(e,t){v(l()({},t))},onFinish:O,children:[(0,C.jsx)(R.Z.Item,{name:"name",label:"标题:",rules:[{required:!0,message:"请输入名称"},{max:60,message:"请输入名称最大限制60个字符"},{whitespace:!0,message:"请勿输入空格"}],children:(0,C.jsx)(_.Z,{bordered:!1,placeholder:"请输入名称最大限制60个字符",suffix:"".concat((null===(n=w.name)||void 0===n?void 0:n.length)||0,"/60")})}),(0,C.jsx)(R.Z.Item,{name:"content",label:"内容:",children:(0,C.jsx)(Be.Z,{defaultValue:w.content||"",watch:!0})})]})]}),(0,C.jsxs)("div",{className:ht.upload,children:[H?(0,C.jsx)(m.Fragment,{children:null===(k=D.videoList)||void 0===k?void 0:k.map((function(e,t){return(0,C.jsx)(m.Fragment,{children:100==e.loaded?Y(e):(n=e.loaded,(0,C.jsxs)("div",{className:ht.mainLoading,children:[(0,C.jsxs)("div",{className:ht.proWarp,children:[(0,C.jsx)("div",{className:ht.pro,children:(0,C.jsx)("div",{style:{width:n}})}),(0,C.jsxs)("span",{children:[n||0,"%"]})]}),(0,C.jsx)("aside",{children:"上传中"}),(0,C.jsx)("div",{className:ht.tip,children:(0,C.jsx)(ct.Z,{getPopupContainer:function(e){return e.parentNode},title:(0,C.jsxs)("div",{children:[(0,C.jsxs)("div",{children:["1、上传视频即表示您已同意",(0,C.jsx)("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol",children:"上传内容协议"}),",不得上传未经他人授权的作品;"]}),(0,C.jsx)("div",{children:"2、不支持断点续传文件大小请勿超过1G"}),(0,C.jsx)("div",{children:"3、支持文件格式avi、flv、f4v、m4v、mov、mp4、rmvb、swf、webm、wmv"})]}),children:(0,C.jsx)("img",{src:mt,alt:""})})})]}))},t);var n}))}):(0,C.jsxs)("label",{htmlFor:"fileUpload",className:ht.main,children:[(0,C.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",alt:""}),(0,C.jsx)("span",{children:"上传视频"})]}),(0,C.jsx)("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:function(e){var t,n=e.target.files[0];if(n){var a=n.name.toLowerCase();return a&&-1==a.indexOf(".avi")&&-1==a.indexOf(".flv")&&-1==a.indexOf(".f4v")&&-1==a.indexOf(".m4v")&&-1==a.indexOf(".mov")&&-1==a.indexOf(".mp4")&&-1==a.indexOf(".rmvb")&&-1==a.indexOf(".swf")&&-1==a.indexOf(".webm")&&-1==a.indexOf(".wmv")?(p.ZP.info("不支持的视频格式"),void U()):n.size>1073741824?(p.ZP.info("视频大小超过".concat(1024,"M")),void U()):null!==(t=D.videoList)&&void 0!==t&&t.find((function(e){return e.name===n.name}))?(p.ZP.info("你不能上传同一个视频文件名称,请重新选择。"),void U()):void function(e){var t='{"Vod":{}}';M(!0),E.current?E.current.addFile(e,null,null,null,t):(0,lt.o)(null==G?void 0:G.login,"",{create:!E,addFileSuccess:function(e){B({type:"addVideo",payload:{uploadInfo:e}})},onUploadProgress:function(e,t,n){var a=Math.ceil(100*n);B({type:"updateProgress",payload:{uploadInfo:e,progressPercent:a}}),U()},onUploadFailed:function(e){p.ZP.info("视频云服务出现异常,请重新上传。")},onUploadEnd:function(e){M(!1)},onUploadSucceed:function(e){M(!1)},onUploadError:function(e){M(!1)},gotUploader:function(n){n.addFile(e,null,null,null,t),E.current=n}})}(n)}U()},accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"})]})]}),(0,C.jsxs)("div",{className:ht.btns,children:[(0,C.jsx)(Z.ZP,{onClick:function(){f.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"注意",icon:null,className:"custom-modal-divider",content:"您正在编写题解,点击关闭后,您的题解内容将不会进行保存。",onOk:a})},type:"primary",ghost:!0,children:"关闭"}),(0,C.jsx)(Z.ZP,{loading:z,disabled:j,onClick:function(){return c.submit()},type:"primary",children:"发布题解"})]})]})},Pt="listDetails___HpDwH",wt="head___wipEz",pt="name___qdH8S",ft="title___B0yUa",vt="a___LB6ZS",Lt="b___yvOON",yt="tag___bRCso",xt="btn___akBxg",jt="scroll___JKC_q",Mt="video___nEr4F",Nt="html___GDNSx",bt="g___LSOhO",zt="btns___Ci727",Tt=n(78485);Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var It="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Ct="discuss___fk6PE",At="reply___pOmly",Dt="pagination___qEsHX",Bt=n(95237),Gt=n(43604),Et="discussItem___zcesj",kt="wrap___ezVW4",Ft="list___EEOWp",Ot="btns___Niwl7",_t="secondLevelDiscuss___TXG1b",Rt="line___ejh2a",Zt="thirdlyLevelDiscuss___HRI5Q",Ut=function(e){var t=e.id,n=e.cb,a=(0,m.useState)(""),o=h()(a,2),g=o[0],r=o[1];return(0,C.jsxs)("aside",{className:"mt10",children:[(0,C.jsx)(Be.Z,{defaultValue:g,id:"writeForumsReviewId",onChange:function(e){r(e)},placeholder:"我要回复...",height:240}),(0,C.jsxs)(Bt.Z,{children:[(0,C.jsx)(Gt.Z,{flex:"1"}),(0,C.jsx)(Gt.Z,{children:(0,C.jsx)(Z.ZP,{type:"primary",size:"middle",onClick:d()(i()().mark((function e(){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:""===g?p.ZP.error("请输入内容"):n(t,g);case 1:case"end":return e.stop()}}),e)}))),children:"发送"})})]})]})},Yt=function(e){var t,n=e.data;return(0,C.jsxs)("div",{className:Zt,children:[(0,C.jsxs)("span",{className:"c-grey-333",children:[(0,C.jsx)("span",{className:"font 14 c-light-primary",children:null==n||null===(t=n.author)||void 0===t?void 0:t.name}),"@",(0,C.jsx)("span",{className:"font 14 c-light-primary",children:null==n?void 0:n.parent_name}),":"]}),(0,C.jsx)(Se.Z,{value:null==n?void 0:n.content})]})},Ht=function(e){var t,n,a,o,g=e.data,i=e.onReplyDiscuss,r=e.thirdlyReply,d=e.setThirdlyReply,s=(0,Te.eY)();return console.log(s,"user"),(0,C.jsxs)("div",{className:Ft,children:[(0,C.jsx)("img",{src:j.Z.IMG_SERVER+"/images/"+(null==g||null===(t=g.author)||void 0===t?void 0:t.image_url)}),(0,C.jsxs)("div",{className:kt,children:[(0,C.jsxs)("div",{className:"font14",style:{marginBottom:6},children:[(0,C.jsx)("span",{className:"c-grey-333",children:null==g||null===(n=g.author)||void 0===n?void 0:n.name}),(null==s?void 0:s.login)!==(null==g||null===(a=g.author)||void 0===a?void 0:a.login)&&(0,C.jsxs)("span",{onClick:function(){return d(null==g?void 0:g.id)},className:"c-grey-999 current",style:{float:"right"},children:[(0,C.jsx)("i",{className:"iconfont icon-huifu3 mr3 font12"}),(0,C.jsx)("span",{children:"回复"})]})]}),(0,C.jsx)(Se.Z,{value:null==g?void 0:g.content}),null==g||null===(o=g.children)||void 0===o?void 0:o.map((function(e){return(0,C.jsx)(Yt,{data:e},e.id)})),r===(null==g?void 0:g.id)&&(0,C.jsxs)("div",{children:[(0,C.jsx)(Ut,{id:null==g?void 0:g.id,cb:i}),(0,C.jsxs)("div",{style:{textAlign:"end",paddingTop:20},onClick:function(){return d(null)},className:"c-light-primary current",children:[(0,C.jsx)("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"收起回复"]})]}),(0,C.jsx)("div",{className:Rt})]})]})},Wt=function(e){var t,n,a,o,g=e.data,i=e.onReplyDiscuss,r=e.secondReply,d=e.setSecondReply,s=e.thirdlyReply,c=e.setThirdlyReply,l=e.onPlusDiscuss,u=(0,m.useState)(!1),S=h()(u,2),P=S[0],w=S[1];return console.log(g,"data"),(0,C.jsx)("div",{className:Et,children:(0,C.jsxs)("div",{className:Ft,children:[(0,C.jsx)("img",{src:j.Z.IMG_SERVER+"/images/"+(null==g||null===(t=g.author)||void 0===t?void 0:t.image_url)}),(0,C.jsxs)("div",{className:kt,children:[(0,C.jsxs)("div",{className:"font14",style:{marginBottom:6},children:[(0,C.jsx)("span",{className:"c-grey-333 mr30",children:null==g||null===(n=g.author)||void 0===n?void 0:n.name}),(0,C.jsx)("span",{className:"c-grey-999",children:null==g?void 0:g.time})]}),(0,C.jsx)(Se.Z,{value:null==g?void 0:g.content}),(0,C.jsxs)("div",{className:Ot,children:[(0,C.jsxs)("div",{onClick:function(){return l(null==g?void 0:g.id)},className:null!=g&&g.user_praise?"c-light-primary":"c-grey-999",children:[(0,C.jsx)("i",{className:"iconfont icon-xiaodianzan2 mr3"}),(0,C.jsx)("span",{children:null==g?void 0:g.praise_count})]}),(0,C.jsxs)("div",{onClick:function(){var e;0!==(null==g||null===(e=g.children)||void 0===e?void 0:e.length)&&(d(null),w(!P))},style:{color:P?"#0152d9":"#999999"},children:[(0,C.jsx)("i",{className:"iconfont icon-xiaopinglun2 mr3"}),(0,C.jsx)("span",{children:P?"收起评论":null==g||null===(a=g.children)||void 0===a?void 0:a.length})]}),(0,C.jsxs)("div",{onClick:function(){w(!1),d(r===(null==g?void 0:g.id)?null:null==g?void 0:g.id)},style:{color:r===(null==g?void 0:g.id)?"#0152d9":"#999999"},children:[(0,C.jsx)("i",{className:"iconfont icon-huifu3 mr3"}),(0,C.jsx)("span",{children:r===(null==g?void 0:g.id)?"收起回复":"回复"})]})]}),r===(null==g?void 0:g.id)&&(0,C.jsx)(Ut,{id:null==g?void 0:g.id,cb:function(e,t){i(e,t),w(!0)}}),P&&(0,C.jsx)("div",{className:_t,children:null==g||null===(o=g.children)||void 0===o?void 0:o.map((function(e){return(0,C.jsx)(Ht,{thirdlyReply:s,setThirdlyReply:c,data:e,onReplyDiscuss:i},e.id)}))})]})]})})},Vt=function(e){e.identifier;var t=e.active,n=e.onOk,a=(0,m.useState)(""),o=h()(a,2),g=o[0],r=o[1],s=(0,m.useState)(1),c=h()(s,2),l=c[0],u=c[1],S=(0,m.useState)([]),P=h()(S,2),w=P[0],f=P[1],v=(0,m.useState)(0),L=h()(v,2),y=L[0],x=L[1],j=(0,m.useState)(null),M=h()(j,2),N=M[0],b=M[1],z=(0,m.useState)(null),T=h()(z,2),I=T[0],A=T[1];(0,m.useEffect)((function(){D(1),u(1)}),[t]);var D=function(){var e=d()(i()().mark((function e(n){var a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ye({container_type:"QuestionSolutionArticle",container_identifier:t,limit:5,page:n});case 2:null!=(a=e.sent)&&a.comments&&(f((null==a?void 0:a.comments)||[]),u(n),x(null==a?void 0:a.disscuss_count));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),B=function(){var e=d()(i()().mark((function e(){var a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==g){e.next=3;break}return p.ZP.error("请输入内容"),e.abrupt("return");case 3:return e.next=5,Me({comments:{content:g},container_type:"QuestionSolutionArticle",container_identifier:t});case 5:null!=(a=e.sent)&&a.discuss&&(r(""),D(l),n());case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),G=function(){var e=d()(i()().mark((function e(n,a,o){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,je({container_type:"QuestionSolutionArticle",container_identifier:t,comments:{content:a,parent_id:n}});case 2:e.sent,b(null),A(null),D(l);case 6:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),E=function(){var e=d()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xe(t);case 2:e.sent,D(l);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,C.jsxs)("div",{className:Ct,children:[(0,C.jsxs)("aside",{className:At,style:{borderWidth:y?1:0},children:[(0,C.jsx)(Be.Z,{defaultValue:g,id:"writeForumsReviewId",onChange:function(e){r(e)},placeholder:"我要回复...",height:240}),(0,C.jsxs)(Bt.Z,{children:[(0,C.jsx)(Gt.Z,{flex:"1"}),(0,C.jsx)(Gt.Z,{children:(0,C.jsx)(Z.ZP,{type:"primary",size:"middle",onClick:function(){return B()},children:"发送"})})]})]}),null==w?void 0:w.map((function(e){return(0,C.jsx)(Wt,{secondReply:N,setSecondReply:b,thirdlyReply:I,setThirdlyReply:A,data:e,onReplyDiscuss:G,onPlusDiscuss:E},e.id)})),(0,C.jsx)(ee.Z,{className:Dt,showTotal:function(e){return(0,C.jsxs)("span",{style:{color:"#656F87"},children:["共",(0,C.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]})},current:l,onChange:function(e){u(e),D(e)},total:y,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5})]})},Qt=n(81304),Xt=function(e){var t,n,a,o,g,r=e.active,s=e.identifier,c=(e.onAssist,e.onEdit),u=e.onArticlesSkip,S=e.onClose,P=e.onOk,w=e.onDelete,p=e.detailsIndex,L=e.btnShowStatus,x=(0,m.useState)(!0),M=h()(x,2),N=M[0],b=M[1],z=(0,m.useState)({}),T=h()(z,2),I=T[0],A=T[1];(0,m.useEffect)((function(){r&&D()}),[r,p]);var D=function(){var e=d()(i()().mark((function e(){var t,n=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(!(n.length>0&&void 0!==n[0])||n[0])&&b(!0),e.next=4,(0,y.wO)(s,{active:r});case 4:0===(null==(t=e.sent)?void 0:t.status)&&A((null==t?void 0:t.data)||{}),b(!1);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),B=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,y.qe)(s,l()({active:r},t));case 2:0===(null==(n=e.sent)?void 0:n.status)&&(D(!1),P());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),G=function(){var e=d()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.Rg)(s,{active:null==t?void 0:t.id});case 2:0===e.sent.status&&(D(!1),P());case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,C.jsx)("div",{className:Pt,children:(0,C.jsxs)(Tt.Z,{className:"pt20 pl20 pr20",loading:N,active:!0,paragraph:{rows:5},children:[(0,C.jsxs)("div",{className:wt,children:[(0,C.jsxs)("div",{className:pt,children:[(0,C.jsx)("div",{title:null==I?void 0:I.name,className:ft,children:null==I?void 0:I.name}),(null==I?void 0:I.is_authority)&&(0,C.jsx)("div",{className:Lt,children:"官方"}),(null==I?void 0:I.is_excellent)&&(0,C.jsx)("div",{className:vt,children:"精选"})]}),(0,C.jsxs)("div",{className:yt,children:[(0,C.jsx)("img",{src:j.Z.IMG_SERVER+"/images/"+(null==I?void 0:I.image_url)}),(0,C.jsx)("div",{className:"c-grey-333 ml5 mr20 font14",children:null==I?void 0:I.username}),(0,C.jsxs)("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12",children:["发布于",ie()(null==I?void 0:I.created_at).format("YYYY-MM-DD")]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("img",{src:it}),(0,C.jsx)("span",{children:null==I?void 0:I.praises_count})]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("img",{src:rt}),(0,C.jsx)("span",{children:null==I?void 0:I.discusses_count})]}),(0,C.jsxs)("span",{children:[(0,C.jsx)("img",{src:dt}),(0,C.jsx)("span",{children:null==I?void 0:I.viewed_count})]}),(0,C.jsxs)("div",{className:xt,children:[((0,Te.Ny)()||(null==I?void 0:I.is_self))&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Z.ZP,{onClick:function(){return function(e){f.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"提示",icon:null,className:"custom-modal-divider",content:"确认要删除该题解吗?",onOk:function(){return w(e)}})}(I)},type:"primary",ghost:!0,children:"删除"}),(0,C.jsx)(Z.ZP,{onClick:function(){return c(I)},type:"primary",ghost:!0,children:"编辑"})]}),(0,Te.Ny)()&&(0,C.jsxs)(Z.ZP,{onClick:function(){return B({is_authority:!(null!=I&&I.is_authority)})},type:"primary",children:[(0,C.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5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lZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4="}),null!=I&&I.is_excellent?"取消":"设为","精选"]})]})]})]}),(0,C.jsxs)("div",{className:jt,children:[(null==I||null===(t=I.videos)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)&&(0,C.jsx)("div",{className:Mt,children:(0,C.jsx)(v.Z,{tip:"正在转码,请稍等...",spinning:!(null!=I&&null!==(n=I.videos)&&void 0!==n&&null!==(n=n[0])&&void 0!==n&&n.transcoded),children:(0,C.jsx)(Qt.Z,{poster:null==I||null===(a=I.videos)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.cover_url,src:(null==I||null===(o=I.videos)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.play_url)||"",videoId:null==I||null===(g=I.videos)||void 0===g||null===(g=g[0])||void 0===g?void 0:g.id,logWatchHistory:function(){}})})}),(0,C.jsx)(Se.Z,{className:Nt,value:(null==I?void 0:I.content)||""}),(0,C.jsxs)("div",{onClick:function(){return G(I)},className:bt,children:[(0,C.jsx)("img",{className:"mr10",src:(null!=I&&I.user_liker,It)}),(0,C.jsx)("span",{children:null==I?void 0:I.praises_count})]}),(0,C.jsx)(Vt,{onOk:function(){D(!1),P()},active:r,identifier:s})]}),(0,C.jsxs)("div",{className:zt,children:[(0,C.jsx)(Z.ZP,{onClick:function(){return S()},type:"primary",ghost:!0,children:"关闭"}),L[0]&&(0,C.jsx)(Z.ZP,{onClick:function(e){return u(e,"prev")},style:{marginLeft:20},type:"primary",children:"上一题解"}),L[1]&&(0,C.jsx)(Z.ZP,{onClick:function(e){return u(e,"next")},style:{marginLeft:20},type:"primary",children:"下一题解"})]})]})})};Object.defineProperty,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;var Jt=n(19155),Kt=n(35323),qt=function(e){var t=e.identifier,n=e.tabStatus,a=e.setFilterListTotal,o=e.setListStatus,g={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null},r=(0,m.useState)(l()({},g)),s=h()(r,2),c=s[0],u=s[1],S=(0,m.useState)(!1),P=h()(S,2),w=P[0],f=P[1],L=(0,m.useState)(0),x=h()(L,2),j=x[0],M=x[1],N=(0,m.useState)(1),b=h()(N,2),z=b[0],T=b[1],I=(0,m.useState)(null),A=h()(I,2),D=A[0],B=A[1],G=(0,m.useState)([]),E=h()(G,2),k=E[0],F=E[1],O=(0,m.useState)([!0,!0]),R=h()(O,2),Z=R[0],U=R[1],Y=(0,m.useState)(0),H=h()(Y,2),W=H[0],V=H[1],Q=(0,m.useRef)(null);(0,m.useEffect)((function(){te()}),[n]),(0,m.useEffect)((function(){X()}),[D]),(0,m.useEffect)((function(){K(l()({},g)),te()}),[t]),(0,m.useEffect)((function(){return window.addEventListener("resize",J),o(W),function(){window.removeEventListener("resize",J)}}),[W]);var X=function(){var e=d()(i()().mark((function e(){var t,n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(D){e.next=3;break}return U([!0,!0]),e.abrupt("return");case 3:t=[!0,!0],n=null==k?void 0:k.findIndex((function(e){return e.id===D})),0===n&&1===c.page&&(t[0]=!1),(c.page-1)*c.limit+(n+1)===c.total&&(t[1]=!1),U(t);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(){if(W){var e,t=window.innerWidth-(null===(e=Q.current)||void 0===e?void 0:e.clientWidth);M(t)}},K=function(){var e=d()(i()().mark((function e(n){var o,g,r,d;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,(0,y.WH)(t,n);case 3:return 0===(null==(o=e.sent)?void 0:o.status)&&(F((null==o||null===(g=o.data)||void 0===g?void 0:g.articles)||[]),u(l()(l()({},n),{},{total:null==o||null===(r=o.data)||void 0===r?void 0:r.articles_count})),a(null==o||null===(d=o.data)||void 0===d?void 0:d.articles_count)),f(!1),e.abrupt("return",o);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),q=function(){var e;document.getElementsByClassName("btn-resize")[0].style.visibility="hidden";var t=window.innerWidth-(null===(e=Q.current)||void 0===e?void 0:e.clientWidth);M(t)},$=function(e){q(),B(null==e?void 0:e.id),V(3)},te=function(){document.getElementsByClassName("btn-resize")[0].style.visibility="visible",M(0),V(0),B(null)},ne=function(){var e=d()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.Rg)(t,{active:null==n?void 0:n.id});case 2:0===e.sent.status&&(K(c),T(z+1));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=d()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.rL)(t,{active:null==n?void 0:n.id});case 2:0===e.sent.status&&(K(c),T(z+1));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),oe=function(){var e=d()(i()().mark((function e(n){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.de)(t,{active:null==n?void 0:n.id});case 2:0===e.sent.status&&(te(),K(c));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ge=function(){var e=d()(i()().mark((function e(t,n){var a,o,g,r,d,s,h,m,S,P;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=null==k?void 0:k.findIndex((function(e){return e.id===D})),console.log(a,n,22),"prev"!==n){e.next=21;break}if(void 0!==a){e.next=6;break}return p.ZP.warning("上一题解不存在"),e.abrupt("return");case 6:if(0!==a){e.next=19;break}if(1!==c.page){e.next=10;break}return p.ZP.warning("上一题解不存在"),e.abrupt("return");case 10:if(1===c.page){e.next=17;break}return c.page=c.page-1,u(l()({},c)),e.next=15,K(c);case 15:0===(null==(o=e.sent)?void 0:o.status)&&(d=null==o||null===(g=o.data)||void 0===g?void 0:g.articles[(null==o||null===(r=o.data)||void 0===r||null===(r=r.articles)||void 0===r?void 0:r.length)-1],B(null==d?void 0:d.id),console.log(t.target,555));case 17:e.next=21;break;case 19:s=k[a-1],B(null==s?void 0:s.id);case 21:if("next"!==n){e.next=39;break}if(void 0!==a){e.next=25;break}return p.ZP.warning("下一题解不存在"),e.abrupt("return");case 25:if((c.page-1)*c.limit+(a+1)!==c.total){e.next=28;break}return p.ZP.warning("下一题解不存在"),e.abrupt("return");case 28:if(a+1!==c.limit){e.next=37;break}return c.page=c.page+1,u(l()({},c)),e.next=33,K(c);case 33:0===(null==(h=e.sent)?void 0:h.status)&&(S=null==h||null===(m=h.data)||void 0===m?void 0:m.articles[0],B(null==S?void 0:S.id)),e.next=39;break;case 37:P=k[a+1],B(null==P?void 0:P.id);case 39:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,C.jsxs)("div",{className:_e,ref:Q,children:[(0,C.jsxs)("div",{className:Re,children:[(0,C.jsxs)("div",{className:Ze,onClick:function(){null===(null==c?void 0:c.sort_direction)?c.sort_direction="asc":"asc"===(null==c?void 0:c.sort_direction)?c.sort_direction="desc":"desc"===(null==c?void 0:c.sort_direction)&&(c.sort_direction=null),c.page=1,te(),u(l()({},c)),K(c)},children:[(0,C.jsx)("span",{children:"最新"}),(0,C.jsxs)("aside",{children:[(0,C.jsx)(Jt.Z,{style:{color:"asc"===(null==c?void 0:c.sort_direction)?"#0152d9":"#bfbfbf"}}),(0,C.jsx)(Kt.Z,{style:{color:"desc"===(null==c?void 0:c.sort_direction)?"#0152d9":"#bfbfbf"}})]})]}),(0,C.jsx)(_.Z.Search,{value:c.save_search,className:Ve,placeholder:"搜索题解",onChange:function(e){c.save_search=e.target.value,u(l()({},c))},onSearch:function(){c.page=1,c.search=null==c?void 0:c.save_search,te(),u(l()({},c)),K(c)}}),(0,C.jsxs)("div",{onClick:function(){q(),V(1)},className:Ue,children:[(0,C.jsx)("img",{src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+"}),"写题解"]})]}),(0,C.jsx)("div",{className:Ye,children:(0,C.jsxs)(v.Z,{spinning:w,className:"mt20",children:[null==k?void 0:k.map((function(e,t){var n=!0;return t+1===k.length&&0!==t&&(n=!1),(0,C.jsx)(st,{active:D,data:e,showLine:n,onClick:$,onAssist:ne,onHide:ae},e.id)})),0===(null==k?void 0:k.length)&&(0,C.jsx)(se.Z,{customText:"暂时还没有相关数据哦!"})]})}),(0,C.jsx)(ee.Z,{className:He,showTotal:function(e){return(0,C.jsxs)("span",{style:{color:"#656F87"},children:["共",(0,C.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]})},total:c.total,showSizeChanger:!1,current:null==c?void 0:c.page,onChange:function(e){c.page=e,u(l()({},c)),K(c)},hideOnSinglePage:!0,showQuickJumper:!0}),W>0&&(0,C.jsxs)("div",{className:We,style:{width:j},children:[1===W&&(0,C.jsx)(St,{identifier:t,onClose:te,onOk:function(e){V(3),B(e),c.page=1,u(l()({},c)),K(c)}}),2===W&&(0,C.jsx)(St,{active:D,identifier:t,onClose:te,onOk:function(e){V(3),B(e),u(l()({},c)),K(c)}}),3===W&&(0,C.jsx)(Xt,{btnShowStatus:Z,onArticlesSkip:ge,detailsIndex:z,active:D,identifier:t,onClose:te,onOk:function(e){u(l()({},c)),K(c)},onEdit:function(e){q(),B(null==e?void 0:e.id),V(2)},onAssist:ne,onDelete:oe})]})]})},$t="wrap___UAZFM",en="head___Nl6hk",tn="title___Ir573",nn="content___xUewa",an="list___oi2ig",on="footer___V3bwQ",gn=function(e){var t,n=e.visible,a=e.onVisible,o=e.value,g=e.onChange,r=e.setIndex,s=(0,m.useState)({page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null}),c=h()(s,2),u=c[0],S=c[1],w=(0,m.useState)([]),f=h()(w,2),x=f[0],j=f[1],M=(0,m.useState)([]),N=h()(M,2),b=N[0],z=N[1],T=(0,m.useState)(!1),I=h()(T,2),A=I[0],D=I[1],B=(0,m.useRef)([]),G=(0,m.useRef)(null),E=(0,P.useParams)();(0,m.useEffect)((function(){return null!=E&&E.id&&(G.current=setInterval((function(){k(30)}),3e4)),function(){clearInterval(G.current)}}),[]);var k=function(){var e=d()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.uc)(null==E?void 0:E.id,{practice_time:t});case 2:e.sent;case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){Z(u),R()}),[]),(0,m.useEffect)((function(){return window.addEventListener("click",O),function(){window.removeEventListener("click",O)}}),[null==E?void 0:E.save_identifier,n]),(0,m.useEffect)((function(){var e=B.current.findIndex((function(e){return e.identifier===(null==E?void 0:E.save_identifier)})),t=B.current[e-1],n=B.current[e+1],a=document.getElementById("oj-prev"),o=document.getElementById("oj-next");a.style.display=t?"block":"none",o.style.display=n?"block":"none"}),[null==E?void 0:E.save_identifier,B.current]);var F=function(e,t){if(e.id===t)return e;for(var n=0,a=e;a=a.parentNode;n++){if(a.id===t)return a;if(a==document.documentElement)return!1}},O=function(){var e=d()(i()().mark((function e(t){var o,g,d;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!F(t.target,"oj-drawer")&&n&&a(!1),o=B.current.findIndex((function(e){return e.identifier===(null==E?void 0:E.save_identifier)})),g=B.current[o-1],d=B.current[o+1],"oj-prev"!==t.target.id){e.next=14;break}if(g&&-1!==o){e.next=8;break}return p.ZP.warning("上一题不存在"),e.abrupt("return");case 8:return t.target.style.pointerEvents="none",t.target.style.cursor="not-allowed",e.next=12,U(null==g?void 0:g.identifier);case 12:r("0"),setTimeout((function(){t.target.style.pointerEvents="auto",t.target.style.cursor="pointer"}),400);case 14:if("oj-next"!==t.target.id&&"oj-modal-next"!==t.target.id){e.next=24;break}if(d&&-1!==o){e.next=18;break}return p.ZP.warning("下一题不存在"),e.abrupt("return");case 18:return t.target.style.pointerEvents="none",t.target.style.cursor="not-allowed",e.next=22,U(null==d?void 0:d.identifier);case 22:r("0"),setTimeout((function(){t.target.style.pointerEvents="auto",t.target.style.cursor="pointer"}),400);case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,m.useEffect)((function(){g(null==E?void 0:E.save_identifier);var e=b.findIndex((function(e){return e.some((function(e){return e.identifier===(null==E?void 0:E.save_identifier)}))}));S(-1===e?l()(l()({},u),{},{page:1}):l()(l()({},u),{},{page:e+1}))}),[null==E?void 0:E.save_identifier,b]);var R=function(){var e=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,Le.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});case 2:t=e.sent,j(t.tag_disciplines||[]);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=d()(i()().mark((function e(t){var n,a,o,g,r,d;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D(!0),e.next=3,(0,y.KC)(t);case 3:if(null!=(n=e.sent)&&n.practices_list){for(o=null==n||null===(a=n.practices_list)||void 0===a?void 0:a.length,g=[],r=0;r<o;r+=null==u?void 0:u.per_page)g.push(null==n||null===(d=n.practices_list)||void 0===d?void 0:d.slice(r,r+(null==u?void 0:u.per_page)));S(l()(l()({},u),{},{total:null==n?void 0:n.practices_count})),B.current=(null==n?void 0:n.practices_list)||[],z(g)}D(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(){var e=d()(i()().mark((function e(t,n){var a;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Le.ZP)("/api/practices/".concat(t,"/start"),{method:"get"});case 2:0===(null==(a=e.sent)?void 0:a.status)&&P.history.push("/problems/".concat(null==a?void 0:a.identifier,"/oj/").concat(t));case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return(0,C.jsxs)("div",{className:$t,id:"oj-drawer",style:{left:n?0:-700},children:[(0,C.jsxs)("div",{className:en,children:[(0,C.jsx)("div",{className:tn,children:"题目列表"}),(0,C.jsx)(_.Z.Search,{value:null==u?void 0:u.save_search,placeholder:"请输入题目名称搜索",style:{width:180,marginLeft:"auto",marginRight:10},onChange:function(e){u.save_search=e.target.value,S(l()({},u))},onSearch:function(){u.page=1,u.search=u.save_search,S(l()({},u)),Z(u)}}),(0,C.jsx)(L.default,{value:null==u?void 0:u.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"选择知识点",showSearch:!1,showArrow:!0,getPopupContainer:function(e){return e.parentNode},maxTagTextLength:2,maxTagCount:2,onChange:function(e){u.page=1,u.tag_discipline_id=e,S(l()({},u)),Z(u)},children:x.map((function(e){return(0,C.jsx)(L.default.Option,{value:e.id,children:e.name},e.id)}))}),(0,C.jsxs)(L.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"难度",getPopupContainer:function(e){return e.parentNode},value:null==u?void 0:u.difficulty,onChange:function(e){u.page=1,u.difficulty="number"==typeof e?e:null,S(l()({},u)),Z(u)},children:[(0,C.jsx)(L.default.Option,{value:1,children:"简单"}),(0,C.jsx)(L.default.Option,{value:2,children:"适中"}),(0,C.jsx)(L.default.Option,{value:3,children:"困难"})]})]}),(0,C.jsx)("div",{className:nn,children:(0,C.jsx)(v.Z,{spinning:A,children:null==b||null===(t=b[u.page-1])||void 0===t?void 0:t.map((function(e){return(0,C.jsxs)("div",{className:an,onClick:function(t){return U(e.identifier,t)},children:[(0,C.jsx)("i",{style:{visibility:o===e.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),(0,C.jsx)("span",{style:{fontWeight:o===e.identifier?"bold":400,color:o===e.identifier?"#ffffff":"#bac4cd"},title:null==e?void 0:e.name,children:e.name}),1===(null==e?void 0:e.difficulty)&&(0,C.jsx)("b",{style:{color:"#2FA34F"},children:"简单"}),2===(null==e?void 0:e.difficulty)&&(0,C.jsx)("b",{style:{color:"#0152d9"},children:"适中"}),3===(null==e?void 0:e.difficulty)&&(0,C.jsx)("b",{style:{color:"#FA6400"},children:"困难"})]},e.identifier)}))})}),(0,C.jsx)("div",{className:on,children:(0,C.jsx)(ee.Z,{showTotal:function(e){return(0,C.jsxs)("span",{style:{color:"#656F87"},children:["共",(0,C.jsx)("span",{className:"c-light-primary",children:e}),"条数据"]})},total:u.total,pageSize:null==u?void 0:u.per_page,current:null==u?void 0:u.page,showSizeChanger:!1,onChange:function(e){u.page=e,S(l()({},u))},showQuickJumper:!0,hideOnSinglePage:!0})})]})},rn=function(e){var t=e.hack,n=e.onTriggerPraise,a=e.topicId,o=e.page,g=e.onPageChange,i=e.user,r=e.submitRecords,d=e.submitting,s=e.submitResult,c=(0,P.useSearchParams)(),l=h()(c,1)[0],u=((0,P.useLocation)(),(0,m.useState)(l.get("tab")||"0")),S=h()(u,2),w=S[0],p=S[1],v=(0,m.useState)(0),L=h()(v,2),y=L[0],x=L[1],j=(0,m.useState)(0),M=h()(j,2),N=M[0],b=M[1],z=(0,m.useState)(0),T=h()(z,2),I=T[0],A=T[1],D=(0,m.useState)(),B=h()(D,2),G=B[0],E=B[1],k=(0,m.useState)(!1),F=h()(k,2),O=F[0],_=F[1];function R(e){var t=e.target.id;"3"!==w||t===w||1!==N&&2!==N?p(t):f.Z.confirm({centered:!0,width:500,okText:"确定",cancelText:"取消",title:"注意",icon:null,className:"custom-modal-divider",content:"您正在编写题解,点击关闭后,您的题解内容将不会进行保存。",onOk:function(){p(t)}})}return(0,m.useEffect)((function(){return pe.Z.subscribe("to-commit-info",(function(){p("1")}))}),[]),(0,C.jsxs)("div",{className:H,children:[(0,C.jsxs)("ul",{className:"".concat(X," ").concat(J," ").concat(V),children:[(0,C.jsx)("li",{className:"mr40 current",children:(0,C.jsx)("img",{onClick:function(){return _(!0)},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTM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TEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4="})}),(0,C.jsx)("li",{className:Q,children:(0,C.jsx)("a",{className:"0"===w?K:"",id:"0",onClick:R,children:"任务描述"})}),(0,C.jsx)("li",{className:Q,children:(0,C.jsxs)("a",{className:"3"===w?K:"",id:"3",onClick:R,children:["题解",I?"(".concat(I,")"):""]})}),(0,C.jsx)("li",{className:Q,children:(0,C.jsxs)("a",{className:"2"===w?K:"",id:"2",onClick:R,children:["评论",y?"(".concat(y,")"):""]})}),(0,C.jsx)("li",{children:(0,C.jsx)("a",{className:"1"===w?K:"",id:"1",onClick:R,children:"提交记录"})})]}),(0,C.jsx)("div",{className:"".concat(W," ").concat("0"===w?"":"hide"),style:{padding:"0 0 0 16px"},children:(0,C.jsx)(we,{hack:t,onTriggerPraise:n,toDiscuss:function(){p("2")}})}),(0,C.jsx)("div",{className:"".concat(W," ").concat("1"===w?"":"hide"),children:null!=r&&r.records_count?(0,C.jsx)(de,{page:o,onPageChange:g,topicId:a,submitting:d,submitRecords:r,submitResult:s}):(0,C.jsx)(se.Z,{})}),(0,C.jsx)("div",{className:"".concat(W," ").concat("2"===w?"":"hide"),style:{padding:0},children:(0,C.jsx)(Oe,{setDiscussTotal:x,user:i,identifier:t.identifier,hack:t,onTriggerPraise:n})}),(0,C.jsx)("div",{className:"".concat(W," ").concat("3"===w?"":"hide"),style:{padding:0},children:(0,C.jsx)(qt,{setListStatus:b,setFilterListTotal:A,tabStatus:w,identifier:t.identifier})}),(0,C.jsx)(gn,{visible:O,setIndex:p,onVisible:function(e){return _(e)},value:G,onChange:function(e){return E(e)}})]})},dn=n(8175),sn=n(62522),hn=n(76858),cn=n(24561),ln=n(89392),mn=n.n(ln),un=n(56102),Sn=["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"],Pn=(w.Z.Countdown,{Java:"java",C:"c",Python:"py","C++":"c"}),wn=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[e.GET_LANGUAGE=11]="GET_LANGUAGE",e[e.GET_DRAWER=12]="GET_DRAWER",e}(wn||{});function pn(){return(new Date).getTime()}var fn={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:"",languageValue:"",languageList:[],drawerData:[]};function vn(e,t){switch(t.type){case wn.GET_DATA:return l()(l()({},e),t.payload);case wn.SET_DATA:return l()(l()({},e),{},{data:t.payload});case wn.SET_LOADING:return l()(l()({},e),{},{loading:t.payload});case wn.GET_LANGUAGE:return l()(l()({},e),{},{languageList:t.payload});case wn.GET_DRAWER:return l()(l()({},e),{},{drawerData:t.payload});case wn.SET_SHOW_NOTE:return l()(l()({},e),{},{showNote:t.payload});case wn.SET_DEBUGING:return l()(l()({},e),{},{debuging:t.payload});case wn.SET_SUBMITING:return l()(l()({},e),{},{submitting:t.payload});case wn.GET_SUBMIT_RECORDS:return l()(l()({},e),{},{submitRecords:t.payload});case wn.SET_PAGE:return l()(l()({},e),{},{submitRecordPage:t.payload});case wn.SET_EXECUTE_MESSAGE:return l()(l()({},e),{},{executingMessage:t.payload});case wn.SET_EXECUTE_RESULT:case wn.SET_SUBMIT_RESULT:return l()(l()({},e),t.payload);default:throw new Error}}var Ln=function(e){e.children;var t,n,a,o,g=(0,m.useReducer)(vn,fn),r=h()(g,2),s=r[0],c=r[1],w=(0,P.useParams)().id,L=(0,P.useLocation)(),M=(0,P.useSearchParams)(),N=h()(M,1)[0],b=s.languageValue,z=s.languageList,T=s.loading,I=s.data,A=s.debugResult,D=s.submitResult,B=s.submitRecords,G=s.submitRecordPage,E=s.showNote,O=s.debuging,_=s.submitting,R=s.executingMessage,Z=(0,m.useState)("#FFF"),U=h()(Z,2),Y=(U[0],U[1],(0,m.useState)(null)),H=h()(Y,2),W=(H[0],H[1],(0,m.useState)({})),V=h()(W,2),Q=(V[0],V[1],(0,m.useState)(!1)),X=h()(Q,2),J=X[0],K=X[1],q=(0,m.useRef)(null),$=(0,m.useRef)(null),ee=null==I?void 0:I.user,te=null==I?void 0:I.hack;(0,m.useEffect)((function(){return(0,P.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,P.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),function(){(0,P.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,P.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}}),[]),(0,m.useEffect)((function(){setTimeout((function(){document.title="在线刷题"}),400)})),(0,m.useEffect)((function(){if(J){var e,t=document.getElementById("oj-next"),n=document.getElementById("oj-modal-next");"none"===(null==t||null===(e=t.style)||void 0===e?void 0:e.display)?n.style.display="none":n.style.display="block"}}),[J]),(0,m.useEffect)((function(){function e(){return(e=d()(i()().mark((function e(){var t,n,a,o,g;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.fu)(w);case 2:401===(t=e.sent).status?document.location.href="/user/login":(t.hack=t.practice,t.hack.code=k.Base64.decode(null==t||null===(n=t.hack)||void 0===n?void 0:n.code),g="".concat(null==ee?void 0:ee.login,"-language"),localStorage.getItem(g)&&(t.hack.language=localStorage.getItem(g)),$.current=mn().cloneDeep(t),$.current.language=null==t||null===(a=t.hack)||void 0===a?void 0:a.language,c({type:wn.GET_DATA,payload:{loading:!1,data:t}}),c({type:wn.SET_SUBMIT_RESULT,payload:{languageValue:null==t||null===(o=t.hack)||void 0===o?void 0:o.language}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}w&&function(){e.apply(this,arguments)}()}),[w]),(0,m.useEffect)((function(){c({type:wn.SET_SUBMIT_RESULT,payload:{debugResult:void 0}}),ae(),K(!1)}),[w]),(0,m.useEffect)((function(){clearTimeout(q.current)}),[w]),(0,m.useEffect)((function(){!function(){ne.apply(this,arguments)}()}),[w,G]);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.prev=0,e.next=3,(0,y.zO)(w,{limit:15,page:G});case 3:t=e.sent,c({type:wn.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 ae(){return oe.apply(this,arguments)}function oe(){return(oe=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,y.dd)(w);case 3:t=e.sent,c({type:wn.GET_LANGUAGE,payload:null==t?void 0:t.data}),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 ge(e){return ie.apply(this,arguments)}function ie(){return(ie=d()(i()().mark((function e(t){var n,a,o;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(null===(n=window)||void 0===n||null===(n=n.location)||void 0===n||null===(n=n.pathname)||void 0===n||null===(n=n.split("/"))||void 0===n?void 0:n[2])||w,e.next=3,(0,y.n4)(a,t||{code:k.Base64.encode(te.code),language:b});case 3:return o=e.sent,e.abrupt("return",o);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function re(){return re=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(te.code&&""!==(null===(t=te.code)||void 0===t?void 0:t.trim())){e.next=3;break}return p.ZP.warning({key:"emptyContent",content:"代码不能为空,请先编写代码后,再进行评测!"}),e.abrupt("return");case 3:if(!_){e.next=5;break}return e.abrupt("return");case 5:return c({type:wn.SET_SUBMITING,payload:!0}),e.prev=6,pe.Z.publish("to-commit-info"),e.next=10,ge();case 10:if(0!==e.sent.status){e.next=23;break}return n=function(){var e=d()(i()().mark((function e(){var t,a,d,h,m,u;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.rX)(w,"submit");case 2:if(t=e.sent,a=t.status,d=t.data,h=pn(),m=h-r>1e3*(o*g+3),0===a||m||setTimeout(n,1e3),!m){e.next=12;break}return f.Z.error({centered:!0,okText:"知道啦",title:"评测代码超时"}),c({type:wn.SET_SUBMITING,payload:!1}),e.abrupt("return");case 12:if(0!==a){e.next=19;break}return 2===d.status&&f.Z.error({centered:!0,okText:"知道啦",title:"评测代码超时"}),e.next=16,(0,y.zO)(w,{limit:15,page:G});case 16:u=e.sent,c({type:wn.SET_SUBMIT_RESULT,payload:l()(l()({},s),{},{submitResult:d,submitting:!1,submitRecords:u})}),0===(null==d?void 0:d.status)&&K(!0);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a={},e.next=16,(0,y.bM)(w,a);case 16:if(-1!==e.sent.status||!N.get("exercisesId")){e.next=20;break}return window.parent.location.href="/classrooms/".concat(N.get("coursesId"),"/exercise/").concat(N.get("exercisesId"),"/detail"),e.abrupt("return");case 20:o=te.time_limit,g=te.test_case_size,r=pn(),n();case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(6),c({type:wn.SET_SUBMITING,payload:!1});case 28:case"end":return e.stop()}}),e,null,[[6,25]])}))),re.apply(this,arguments)}function de(){return de=d()(i()().mark((function e(){var t,n,a,o,g;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(te.code&&""!==(null===(t=te.code)||void 0===t?void 0:t.trim())){e.next=3;break}return p.ZP.warning({key:"emptyContent",content:"代码不能为空,请先编写代码后,再进行评测!"}),e.abrupt("return");case 3:return s.debuging=!0,c({type:wn.SET_DEBUGING,payload:!0}),e.prev=6,e.next=9,ge();case 9:if(0!==e.sent.status){e.next=24;break}return n=function(){var e=d()(i()().mark((function e(){var t,o,r,d,h,m;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.rX)(w,"debug");case 2:if(t=e.sent,o=t.status,r=t.message,d=t.data,h=pn(),m=h-g>1e3*(a+3),0===o||m||(c({type:wn.SET_EXECUTE_MESSAGE,payload:r}),setTimeout(n,1e3)),!m){e.next=13;break}return f.Z.error({centered:!0,okText:"知道啦",content:"调试代码超时"}),c({type:wn.SET_DEBUGING,payload:!1}),e.abrupt("return");case 13:0===o&&(c({type:wn.SET_DEBUGING,payload:!1}),2===d.status&&f.Z.error({centered:!0,okText:"知道啦",content:"调试代码超时"}),c({type:wn.SET_EXECUTE_RESULT,payload:l()(l()({},s),{},{debugResult:d,debuging:!1})}));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=te.time_limit,o={input:encodeURIComponent(I.test_case.input)},e.next=16,(0,y.MU)(w,o);case 16:if(-1!==e.sent.status||!N.get("exercisesId")){e.next=20;break}return window.parent.location.href="/classrooms/".concat(N.get("coursesId"),"/exercise/").concat(N.get("exercisesId"),"/detail"),e.abrupt("return");case 20:g=pn(),n(),e.next=25;break;case 24:c({type:wn.SET_DEBUGING,payload:!1});case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(6),console.log(e.t0);case 30:return e.prev=30,e.finish(30);case 32:case"end":return e.stop()}}),e,null,[[6,27,30,32]])}))),de.apply(this,arguments)}function se(e){var t;clearTimeout(q.current),q.current=setTimeout((function(){var t;ge({code:k.Base64.encode(e),language:null==$||null===(t=$.current)||void 0===t?void 0:t.language})}),2e3),c({type:wn.SET_DATA,payload:l()(l()({},null==$?void 0:$.current),{},{hack:l()(l()({},null==$||null===(t=$.current)||void 0===t?void 0:t.hack),{},{code:e})})})}var he=function(){var e=d()(i()().mark((function e(t){var n,a,o,g;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c({type:wn.SET_LOADING,payload:!0}),e.next=3,ge();case 3:if(0!==e.sent.status){e.next=14;break}return c({type:wn.SET_SUBMIT_RESULT,payload:{languageValue:t}}),$.current.language=t,n="".concat(null==ee?void 0:ee.login,"-language"),localStorage.setItem(n,t),e.next=11,(0,y.dd)(w);case 11:0===(a=e.sent).status&&(g=null==a||null===(o=a.data)||void 0===o?void 0:o.find((function(e){return e.language===t})),se(k.Base64.decode(g.code))),setTimeout((function(){c({type:wn.SET_LOADING,payload:!1})}),300);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();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,y.H7)(w,{language:b});case 3:401===(t=e.sent).status?P.history.replace("/login",{from:L.pathname}):(se(k.Base64.decode(t.code)),ae()),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 le(){return(le=d()(i()().mark((function e(t){return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,y.MK)(w,t);case 2:c({type:wn.GET_DATA,payload:{showNote:!1,data:l()(l()({},I),{},{hack:l()(l()({},te),{},{notes:t.notes})})}});case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var me={input:null==I||null===(t=I.test_case)||void 0===t?void 0:t.input,is_file:null==I||null===(n=I.test_case)||void 0===n?void 0:n.is_file,language:(null===(a=$.current)||void 0===a?void 0:a.language)||(null==te?void 0:te.language),code:null==te?void 0:te.code,title:"main."+Pn[null==te?void 0:te.language],modify_code:null==te?void 0:te.modify_code,notes:null==te?void 0:te.notes,debugResult:A,debuging:O,submitting:_,executingMessage:R,id:w,languageValue:b,languageList:z,onChangeLanguage:he,onCancelNote:function(){c({type:wn.SET_SHOW_NOTE,payload:!1})},onAddNote:function(e){return le.apply(this,arguments)},showNote:E,onShowNote:function(){c({type:wn.SET_SHOW_NOTE,payload:!0})},onSubmitCode:function(){return re.apply(this,arguments)},onChangeCode:se,onChangeInput:function(e){var t=e.target.value;c({type:wn.SET_DATA,payload:l()(l()({},I),{},{test_case:{input:t}})})},onDebugCode:function(){return de.apply(this,arguments)},onResetCode:function(){return ce.apply(this,arguments)},onSyncCode:function(){f.Z.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:(0,C.jsxs)("p",{children:["初始代码有修改,更新后将覆盖现有代码哦~ ",(0,C.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,y.fi)(w,{language:b});case 2:401===(t=e.sent).status?P.history.replace("/login",{from:L.pathname}):se(k.Base64.decode(t.code));case 4:case"end":return e.stop()}}),e)})))()}})},onUpdateCode:ge};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,y.vl)(te.id,{container_type:"Hack",type:1});case 2:t=e.sent,n=t.praise_count,a=l()(l()({},I),{},{hack:l()(l()({},te),{},{praises_count:n,user_praise:!te.user_praise})}),c({type:wn.SET_DATA,payload:a});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Se={topicId:w,submitResult:D,submitRecords:B,submitting:_,page:G,onPageChange:function(e){c({type:wn.SET_PAGE,payload:e})},hack:te,user:null==I?void 0:I.user,onTriggerPraise:function(){return ue.apply(this,arguments)}};return console.log(I,null==$?void 0:$.current,"data--------"),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(v.Z,{className:"oj-custom-large-spin",size:"large",spinning:T,children:I?(0,C.jsxs)("div",{className:"oj-custom-warp",children:[(0,C.jsxs)("header",{className:F.Z.header,style:{minWidth:1200},children:[(0,C.jsxs)("div",{children:[(0,C.jsx)("img",{src:"".concat(j.Z.IMG_SERVER,"/images/").concat(ee.image_url),alt:"user",width:30}),(0,C.jsx)("span",{children:ee.name})]}),(0,C.jsxs)("h2",{className:"flex-wrp flex_box_column flex_box_center",children:[(0,C.jsx)("div",{children:te.name}),(0,C.jsx)(dn.Z,{onChange:function(e){},className:"font12 c-grey-999"})]}),(0,C.jsx)(un.CopyToClipboard,{text:"".concat(null===(o=window.location)||void 0===o?void 0:o.origin,"/problems/").concat(te.identifier,"/share"),onCopy:function(){return p.ZP.success("复制题目链接成功")},children:(0,C.jsxs)("span",{className:F.Z.btn_back,style:{marginRight:10,cursor:"pointer"},children:[" ",(0,C.jsx)("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"分享题目"]})}),te.edit_privilege?(0,C.jsxs)(P.Link,{className:F.Z.btn_back,to:"/problems/".concat(te.identifier,"/ojedit"),style:{marginRight:10},children:[" ",(0,C.jsx)(u.Z,{})," 编辑"]}):null,(0,C.jsxs)(P.Link,{className:F.Z.btn_back,onClick:function(){},to:"/problems",children:[" ",(0,C.jsx)(S.Z,{}),"退出"]})]}),(0,C.jsx)(x.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:(0,C.jsx)(rn,l()({},Se)),rightChild:(0,C.jsx)(xn,l()({},me))})]}):null}),(0,C.jsx)(f.Z,{centered:!0,closable:!1,width:680,footer:null,open:J,className:"oj-modal",children:(0,C.jsxs)("section",{className:"oj-modal-content",children:[(0,C.jsxs)("div",{className:"oj-modal-head",children:[(0,C.jsx)("img",{src:sn,alt:""}),(0,C.jsx)("i",{onClick:function(){return K(!1)},className:"iconfont icon-guanbi1"})]}),(0,C.jsxs)("aside",{children:[(0,C.jsx)("img",{className:"mr30",src:cn.Z}),"运行时间: ",(0,C.jsxs)("span",{style:{color:"#75d6ba",marginRight:100},children:[null==D?void 0:D.execute_time,"s"]}),"优于",(0,C.jsxs)("span",{style:{color:"#f3b087",margin:"0 5px"},children:[(null==D?void 0:D.time_better_than)||100,"%"]}),"的用户"]}),(0,C.jsxs)("aside",{className:"mb50",children:[(0,C.jsx)("img",{src:hn.Z,className:"mr30"}),(0,C.jsxs)("span",{className:"oj-modal-tt",children:[(0,C.jsxs)("span",{children:[(0,C.jsx)("span",{children:"占用内存: "}),(0,C.jsxs)("span",{className:"c-light-primary",children:[null==D?void 0:D.execute_memory,"mb"]})]}),(0,C.jsx)("span",{children:(0,C.jsx)("span",{})})]}),"优于",(0,C.jsxs)("span",{style:{color:"#f3b087",margin:"0 5px"},children:[(null==D?void 0:D.memory_better_than)||100,"%"]}),"的用户"]}),(0,C.jsx)("div",{id:"oj-modal-next",className:"oj-modal-btn",children:"进入下一题"})]})})]})};function yn(e){var t=e.languageValue,n=e.languageList,a=e.onChangeLanguage,o=(e.title,e.modify_code,e.onSyncCode,e.onShowCodeSetting),g=e.onResetCode;(0,P.useLocation)();return(0,C.jsxs)("div",{className:"action-bar",children:[(0,C.jsx)(L.default,{className:"oj-select",value:t,style:{width:100},placeholder:"选择语言",onChange:a,children:null==n?void 0:n.map((function(e){return(0,C.jsx)(L.default.Option,{value:e.language,children:e.language},e.language)}))}),(0,C.jsx)("span",{}),(0,C.jsx)("a",{title:"恢复初始代码",onClick:function(){f.Z.confirm({title:"恢复初始代码",icon:(0,C.jsx)(M.Z,{}),content:"你在本文件中修改的内容将丢失,是否确定重新加载初始代码?",centered:!0,okText:"确定",cancelText:"取消",onOk:g})},children:(0,C.jsx)("i",{className:"iconfont icon-zhongzhi font-20 "})}),(0,C.jsx)("a",{onClick:o,children:(0,C.jsx)("i",{className:"iconfont icon-shezhi"})})]})}function xn(e){var t=e.id,n=e.input,a=e.is_file,g=e.showNote,i=(e.onShowNote,e.notes),r=e.onCancelNote,d=e.onAddNote,s=e.debugResult,h=e.language,c=e.debuging,m=e.submitting,u=e.executingMessage,S=e.code,P=e.onSubmitCode,w=e.onDebugCode,p=e.onChangeCode,f=e.onChangeInput,v=(e.onUpdateCode,o()(e,Sn));var L={id:t,input:n,debugResult:s,debuging:c,is_file:a,submitting:m,executingMessage:u,onDebugCode:w,onChangeCode:p,onSubmitCode:P,onChangeInput:f};return(0,C.jsxs)("div",{className:"right-panel",children:[(0,C.jsx)(G,{onUpdateCode:function(){},language:h,value:S,onChange:p,ActionBarRender:function(e){return(0,C.jsx)(yn,l()(l()({},v),{},{onShowCodeSetting:e}))}}),(0,C.jsx)("div",{className:"note-form-area ".concat(g?"active":""),children:(0,C.jsx)(Y,{onCancel:r,notes:i,callback:d})}),(0,C.jsx)(O.ZP,l()({},L))]})}},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}({})},42517:function(e,t,n){"use strict";n.d(t,{H7:function(){return c},KC:function(){return P},M3:function(){return v},MK:function(){return h},MU:function(){return i},Rg:function(){return x},WH:function(){return w},X6:function(){return d},bM:function(){return g},bx:function(){return p},dd:function(){return u},de:function(){return M},fi:function(){return l},fu:function(){return o},gu:function(){return f},n4:function(){return m},qe:function(){return y},rL:function(){return j},rX:function(){return s},uc:function(){return N},vl:function(){return S},wO:function(){return L},zO:function(){return r}});var a=n(82710);function o(e){return(0,a.U2)("mypractices/".concat(e,".json"),{hidePopLogin:!0})}function g(e,t){return(0,a.v_)("mypractices/".concat(e,"/code_submit.json"),t)}function i(e,t){return(0,a.v_)("mypractices/".concat(e,"/code_debug.json"),t)}function r(e,t){return t.language&&(t.language=encodeURIComponent(t.language)),(0,a.U2)("mypractices/".concat(e,"/submit_records.json"),t)}function d(e){return(0,a.U2)("mypractices/record_detail.json",{id:e})}function s(e,t){return(0,a.U2)("mypractices/".concat(e,"/result.json"),{mode:t})}function h(e,t){return(0,a.v_)("mypractices/".concat(e,"/add_notes.json"),t)}function c(e,t){return(0,a.v_)("mypractices/".concat(e,"/restore_initial_code.json"),t)}function l(e,t){return(0,a.v_)("mypractices/".concat(e,"/sync_code.json"),t)}function m(e,t){return(0,a.v_)("mypractices/".concat(e,"/update_code.json"),t)}function u(e){return(0,a.v_)("mypractices/".concat(e,"/initial_codes.json"))}function S(e,t){return(0,a.v_)("discusses/".concat(e,"/plus.json"),t)}function P(e){return(0,a.U2)("practices/practices_list.json",e)}function w(e,t){return(0,a.U2)("practices/".concat(e,"/question_solution_articles"),t)}function p(e,t){return(0,a.v_)("practices/".concat(e,"/question_solution_articles"),t)}function f(e,t){return(0,a.gz)("practices/".concat(e,"/question_solution_articles/").concat(null==t?void 0:t.active),t)}function v(e,t){return(0,a.U2)("practices/".concat(e,"/question_solution_articles/").concat(null==t?void 0:t.active,"/edit"),t)}function L(e,t){return(0,a.U2)("practices/".concat(e,"/question_solution_articles/").concat(null==t?void 0:t.active),t)}function y(e,t){return(0,a.v_)("practices/".concat(e,"/question_solution_articles/").concat(null==t?void 0:t.active,"/set_authority_or_excellent"),t)}function x(e,t){return(0,a.v_)("practices/".concat(e,"/question_solution_articles/").concat(null==t?void 0:t.active,"/praise_or_treads"),t)}function j(e,t){return(0,a.v_)("practices/".concat(e,"/question_solution_articles/").concat(null==t?void 0:t.active,"/hide"))}function M(e,t){return(0,a.IV)("practices/".concat(e,"/question_solution_articles/").concat(null==t?void 0:t.active),t)}function N(e,t){return(0,a.v_)("mypractices/".concat(e,"/update_practice_time_sum"),t)}},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),s=n(59301),h=n(8591),c=n(6848),l=n(71418),m=n(95237),u=n(43604),S=n(25700),P=n(3113),w=n(85654),p=n(82710),f=n(54065),v=n(37712),L=function(e){var t=e.id,n=e.activeDiscussIndex,a=e.onReplyDiscuss,o=e.adminOrOperator,g=(0,s.useState)(""),i=d()(g,2),r=i[0],l=i[1],m=(0,s.useState)(!1),u=d()(m,2),S=u[0],P=u[1];function p(e){l(e)}return(0,s.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)(c.Z,{color:"#fff",open:S,destroyTooltipOnHide:!0,title:y({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),l("")):h.ZP.info("回复内容不能为空!")},className:"btn-send",children:"发送"})]},t)},y=function(e){var t=(0,s.useState)(!1),n=d()(t,2),a=n[0],g=n[1],r=(0,s.useState)([]),h=d()(r,2),c=h[0],w=h[1],L=(0,s.useState)(1),y=d()(L,2),x=y[0],j=y[1];(0,s.useEffect)((function(){null!=e&&e.isOpen?M():(j(1),w([]))}),[null==e?void 0:e.isOpen]);var M=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)(l.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==c?void 0:c[x-1])||""}),(0,v.jsxs)(m.Z,{justify:"end",align:"middle",children:[(0,v.jsx)(u.Z,{children:(0,v.jsx)(S.Z,{simple:!0,current:x,pageSize:1,total:(null==c?void 0:c.length)||0,onChange:function(e){j(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==c?void 0:c[x-1]),null==e||e.setIsOpen(!1);case 2:case"end":return t.stop()}}),t)}))),children:"填入文本框"})})]})]})})}},52522:function(e,t,n){"use strict";n.d(t,{o:function(){return h}});var a,o=n(82710),g=n(93125),i=n.n(g),r="",d="";function s(e){!function(e){a=new(i().Vod)({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(t){console.log("addFileSuccess: "+t.file.name),e.addFileSuccess&&e.addFileSuccess(t),a.startUpload()},onUploadstarted:function(t){var n=t.file.name;if(t.videoId){var g="/api/users/".concat(r,"/video_auths.json");(0,o.ZP)(g,{method:"put",body:{video_id:t.videoId,title:n,file_name:n,virtual_classroom_id:d}}).then((function(n){if(-1!=n.status){var o=n.data,g=o.UploadAuth,i=o.UploadAddress;o.VideoId;a.setUploadAuthAndAddress(t,g,i)}else e.onUploadError&&e.onUploadError(t)})).catch((function(e){a.deleteFile(a._curIndex),a.nextUpload(),console.log(e)}))}else{var i="/api/users/".concat(r,"/video_auths.json"),s="";(0,o.ZP)(i,{method:"Post",body:{title:s+n,file_name:s+n,virtual_classroom_id:d}}).then((function(e){if(e){var n=e.data,o=n.UploadAuth,g=n.UploadAddress,i=n.VideoId;a.setUploadAuthAndAddress(t,o,g,i)}})).catch((function(e){a.deleteFile(a._curIndex),a.nextUpload(),console.log(e)})),console.log("文件开始上传...")}},onUploadSucceed:function(t){e.onUploadSucceed&&e.onUploadSucceed(t),console.log("文件上传成功!")},onUploadFailed:function(t,n,a){e.onUploadFailed&&e.onUploadFailed(t),console.log("文件上传失败!")},onUploadCanceled:function(e,t,n){console.log("文件上传已暂停!")},onUploadProgress:function(t,n,a){e.onUploadProgress&&e.onUploadProgress(t,n,a);Math.ceil(100*a);console.log("文件上传中...")},onUploadTokenExpired:function(e){console.log("文件上传超时!");var t="/api/users/".concat(r,"/video_auths.json");(0,o.ZP)(t,{method:"put",body:{video_id:e.videoId}}).then((function(e){var t=e.data.UploadAuth;a.resumeUploadWithAuth(t)})).catch((function(e){console.log(e)}))},onUploadEnd:function(t){e.onUploadEnd&&e.onUploadEnd(t),console.log("onUploadEnd: uploaded all the files")}}),e.gotUploader&&e.gotUploader(a)}(e)}function h(e,t,n){e&&(r=e),t&&(d=t),s(n)}},52230:function(e,t,n){"use strict";function a(e){try{e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}catch(e){console.log(e,":e")}}function o(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}n.d(t,{BU:function(){return o},Dj:function(){return a},gH:function(){return g},vp:function(){return i}});var g=function(){return document.webkitExitFullscreen?"webkitfullscreenchange":document.exitFullscreen?"fullscreenchange":document.msExitFullscreen?"msfullscreenchange":document.mozCancelFullScreen?"mozfullscreenchange":void 0};function i(){var e=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement;document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",e),window.isFullScreen?window.isFullScreen:null!=e}},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=="},78925:function(e,t){"use strict";t.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},7543:function(){},31797:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var a=n(59301),o=n(56762),g=n(92343),i=n(92310),r=n.n(i),d=n(36355),s=n(78485);var h=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:g,groupSeparator:i="",prefixCls:r}=e;let d;if("function"==typeof n)d=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,i),"number"==typeof o&&(s=s.padEnd(o,"0").slice(0,o>0?o:0)),s&&(s=`${g}${s}`),d=[a.createElement("span",{key:"int",className:`${r}-content-value-int`},e,t),s&&a.createElement("span",{key:"decimal",className:`${r}-content-value-decimal`},s)]}else d=e}return a.createElement("span",{className:`${r}-content-value`},d)},c=n(17313),l=n(83116),m=n(37613);const u=e=>{const{componentCls:t,marginXXS:n,padding:a,colorTextDescription:o,titleFontSize:g,colorTextHeading:i,contentFontSize:r,fontFamily:d}=e;return{[`${t}`]:Object.assign(Object.assign({},(0,c.Wf)(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:g},[`${t}-skeleton`]:{paddingTop:a},[`${t}-content`]:{color:i,fontSize:r,fontFamily:d,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}};var S=(0,l.Z)("Statistic",(e=>{const t=(0,m.TS)(e,{});return[u(t)]}),(e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}}));var P=e=>{const{prefixCls:t,className:n,rootClassName:o,style:g,valueStyle:i,value:c=0,title:l,valueRender:m,prefix:u,suffix:P,loading:w=!1,onMouseEnter:p,onMouseLeave:f,decimalSeparator:v=".",groupSeparator:L=","}=e,{getPrefixCls:y,direction:x,statistic:j}=a.useContext(d.E_),M=y("statistic",t),[N,b]=S(M),z=a.createElement(h,Object.assign({decimalSeparator:v,groupSeparator:L,prefixCls:M},e,{value:c})),T=r()(M,{[`${M}-rtl`]:"rtl"===x},null==j?void 0:j.className,n,o,b);return N(a.createElement("div",{className:T,style:Object.assign(Object.assign({},null==j?void 0:j.style),g),onMouseEnter:p,onMouseLeave:f},l&&a.createElement("div",{className:`${M}-title`},l),a.createElement(s.Z,{paragraph:!1,loading:w,className:`${M}-skeleton`},a.createElement("div",{style:i,className:`${M}-content`},u&&a.createElement("span",{className:`${M}-content-prefix`},u),m?m(z):z,P&&a.createElement("span",{className:`${M}-content-suffix`},P)))))};const w=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function p(e,t){const{format:n=""}=t,a=new Date(e).getTime(),o=Date.now();return function(e,t){let n=e;const a=/\[[^\]]*]/g,o=(t.match(a)||[]).map((e=>e.slice(1,-1))),g=t.replace(a,"[]"),i=w.reduce(((e,t)=>{let[a,o]=t;if(e.includes(a)){const t=Math.floor(n/o);return n-=t*o,e.replace(new RegExp(`${a}+`,"g"),(e=>{const n=e.length;return t.toString().padStart(n,"0")}))}return e}),g);let r=0;return i.replace(a,(()=>{const e=o[r];return r+=1,e}))}(Math.max(a-o,0),n)}const f=e=>{const{value:t,format:n="HH:mm:ss",onChange:i,onFinish:r}=e,d=(0,o.Z)(),s=a.useRef(null),h=()=>{const e=function(e){return new Date(e).getTime()}(t);e>=Date.now()&&(s.current=setInterval((()=>{d(),null==i||i(e-Date.now()),e<Date.now()&&(null==r||r(),s.current&&(clearInterval(s.current),s.current=null))}),33.333333333333336))};a.useEffect((()=>(h(),()=>{s.current&&(clearInterval(s.current),s.current=null)})),[t]);return a.createElement(P,Object.assign({},e,{valueRender:e=>(0,g.Tm)(e,{title:void 0}),formatter:(e,t)=>p(e,Object.assign(Object.assign({},t),{format:n}))}))};var v=a.memo(f);P.Countdown=v;var L=P},12563:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var a=n(59301),o=n(72119),g=n(92310),i=n.n(g),r=n(36785),d=n(47729),s=n(14088),h=n(36355),c=n(17313),l=n(37613),m=n(83116);const u=e=>{const{lineWidth:t,fontSizeIcon:n}=e,a=e.fontSizeSM,o=e.lineHeightSM*a+"px";return(0,l.TS)(e,{tagFontSize:a,tagLineHeight:o,tagIconSize:n-2*t,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary})},S=e=>({defaultBg:e.colorFillQuaternary,defaultColor:e.colorText});var P=(0,m.Z)("Tag",(e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:a,componentCls:o}=e,g=a-n,i=t-n;return{[o]:Object.assign(Object.assign({},(0,c.Wf)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:g,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:g}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(u(e))),S),w=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n};var p=e=>{const{prefixCls:t,style:n,className:o,checked:g,onChange:r,onClick:d}=e,s=w(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:l}=a.useContext(h.E_),m=c("tag",t),[u,S]=P(m),p=i()(m,`${m}-checkable`,{[`${m}-checkable-checked`]:g},null==l?void 0:l.className,o,S);return u(a.createElement("span",Object.assign({},s,{style:Object.assign(Object.assign({},n),null==l?void 0:l.style),className:p,onClick:e=>{null==r||r(!g),null==d||d(e)}})))},f=n(45157);var v=(0,m.b)(["Tag","preset"],(e=>(e=>(0,f.Z)(e,((t,n)=>{let{textColor:a,lightBorderColor:o,lightColor:g,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:a,background:g,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(u(e))),S);const L=(e,t,n)=>{const a="string"!=typeof(o=n)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${a}Bg`],borderColor:e[`color${a}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}};var y=(0,m.b)(["Tag","status"],(e=>{const t=u(e);return[L(t,"success","Success"),L(t,"processing","Info"),L(t,"error","Error"),L(t,"warning","Warning")]}),S),x=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]])}return n};const j=(e,t)=>{const{prefixCls:n,className:g,rootClassName:c,style:l,children:m,icon:u,color:S,onClose:w,closeIcon:p,closable:f,bordered:L=!0}=e,j=x(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:M,direction:N,tag:b}=a.useContext(h.E_),[z,T]=a.useState(!0);a.useEffect((()=>{"visible"in j&&T(j.visible)}),[j.visible]);const I=(0,r.o2)(S),C=(0,r.yT)(S),A=I||C,D=Object.assign(Object.assign({backgroundColor:S&&!A?S:void 0},null==b?void 0:b.style),l),B=M("tag",n),[G,E]=P(B),k=i()(B,null==b?void 0:b.className,{[`${B}-${S}`]:A,[`${B}-has-color`]:S&&!A,[`${B}-hidden`]:!z,[`${B}-rtl`]:"rtl"===N,[`${B}-borderless`]:!L},g,c,E),F=e=>{e.stopPropagation(),null==w||w(e),e.defaultPrevented||T(!1)},[,O]=(0,d.Z)(f,p,(e=>null===e?a.createElement(o.Z,{className:`${B}-close-icon`,onClick:F}):a.createElement("span",{className:`${B}-close-icon`,onClick:F},e)),null,!1),_="function"==typeof j.onClick||m&&"a"===m.type,R=u||null,Z=R?a.createElement(a.Fragment,null,R,m&&a.createElement("span",null,m)):m,U=a.createElement("span",Object.assign({},j,{ref:t,className:k,style:D}),Z,O,I&&a.createElement(v,{key:"preset",prefixCls:B}),C&&a.createElement(y,{key:"status",prefixCls:B}));return G(_?a.createElement(s.Z,{component:"Tag"},U):U)},M=a.forwardRef(j);M.CheckableTag=p;var N=M},93314:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P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