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__Classrooms__Lists__Board...

198 lines
506 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[3442],{27812:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},26227:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},41464:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},61481:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},33853:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},12893:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"minus-circle",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},32134:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},38819:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return nt}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(Qe,at){return be.createElement(Pe.Z,(0,le.Z)({},Qe,{ref:at,icon:Ue}))},fe=be.forwardRef(Be),nt=fe},88010:function(ke,Ft){"use strict";Ft.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},74413:function(){"use strict";function ke(ie,a,b,x){b===void 0&&(b=0),x===void 0&&(x=1/0),this._name=ie,this._defaultValue=a,this._minimum=b,this._maximum=x}Object.defineProperty(ke.prototype,"name",{get:function(){return this._name},set:function(ie){if(typeof ie!="string"||ie==="")throw new Error("Shape name must be a valid string.");this._name=ie}}),Object.defineProperty(ke.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("The default value must be a real number, not: "+ie);this._defaultValue=ie}}),Object.defineProperty(ke.prototype,"minimum",{get:function(){return this._minimum},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("Minimum must be a real number, not: "+ie);this._minimum=ie}}),Object.defineProperty(ke.prototype,"maximum",{get:function(){return this._maximum},set:function(ie){if(typeof ie!="number"||isNaN(ie))throw new Error("Maximum must be a real number, not: "+ie);this._maximum=ie}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ie,a){var b=go.Shape._FigureParameters[ie];return b?b[a]:null},go.Shape.setFigureParameter=function(ie,a,b){if(!(b instanceof ke))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+b);if(b.defaultValue<b.minimum||b.defaultValue>b.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+b.defaultValue);var x=go.Shape._FigureParameters[ie];x||(x=[],go.Shape._FigureParameters[ie]=x),x[a]=b};var Ft=[];function ge(ie,a){var b=Ft.pop();return b===void 0?new go.Point(ie,a):(b.x=ie,b.y=a,b)}function le(){var ie=Ft.pop();return ie===void 0?new go.Point:ie}function be(ie){Ft.push(ie)}function ct(ie,a,b,x,y,E,z,ee,ae){ae||(ae=new go.Point);var te=ie-b,se=y-z,de=NaN,we=NaN;if(te===0)if(se===0)ie===b&&(de=ie,we=a);else{var Se=(E-ee)/se,Re=E-Se*y;de=ie,we=Se*de+Re}else if(se===0){var Ae=(a-x)/te,At=a-Ae*ie;de=y,we=Ae*de+At}else{var Ae=(a-x)/te,Se=(E-ee)/se,At=a-Ae*ie,Re=E-Se*y;de=(Re-At)/(Ae-Se),we=Ae*de+At}return ae.x=de,ae.y=we,ae}function Ue(ie,a,b,x,y,E,z,ee,ae,te,se,de,we,Se){var Re=1-ae,Ae=ae,At=ie*Re+b*Ae,un=a*Re+x*Ae,xn=b*Re+y*Ae,Ie=x*Re+E*Ae,yt=y*Re+z*Ae,St=E*Re+ee*Ae,gt=At*Re+xn*Ae,Lt=un*Re+Ie*Ae,rt=xn*Re+yt*Ae,Et=Ie*Re+St*Ae,ht=gt*Re+rt*Ae,pn=Lt*Re+Et*Ae;te.x=At,te.y=un,se.x=gt,se.y=Lt,de.x=ht,de.y=pn,we.x=rt,we.y=Et,Se.x=yt,Se.y=St}var Pe=new go.Spot(.156,.156),Be=new go.Spot(.844,.844),fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ke("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ie,a,b){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,b/3);var y=x*fe,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-y,0,a,y)).add(new go.PathSegment(go.PathSegment.Line,a,b-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,b,a,b-y,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,x,b)).add(new go.PathSegment(go.PathSegment.Bezier,0,b-x,y,b,0,b-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(E.spot1=new go.Spot(0,0,y,y),E.spot2=new go.Spot(1,1,-y,-y)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(a,b).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(a,b).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ie,a,b){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=b/2,x.endX=a,x.endY=b/2,x}),go.Shape.defineFigureGenerator("LineV",function(ie,a,b){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=b,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,b/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,b/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,b)))}),go.Shape.defineFigureGenerator("XLine",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)))}),go.Shape.defineFigureGenerator("LineRight",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.25*a,b)))}),go.Shape.defineFigureGenerator("LineDown",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,.25*b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*b)).add(new go.PathSegment(go.PathSegment.Line,a,.25*b)))}),go.Shape.defineFigureGenerator("LineLeft",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.75*a,b)))}),go.Shape.defineFigureGenerator("LineUp",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,.75*b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,a,.75*b)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ie,a,b){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*b,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*b)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*b)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*b)).add(new go.PathSegment(go.PathSegment.Move,0,b/2)).add(new go.PathSegment(go.PathSegment.Line,a,b/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,b)))}),go.Shape.defineFigureGenerator("CircleLine",function(ie,a,b){var x=a/2,y=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=Pe,y.spot2=Be,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(ie,a,b){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=b,x}),go.Shape.defineFigureGenerator("Line2",function(ie,a,b){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=b,x}),go.Shape.defineFigureGenerator("Curve1",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,b,fe*a,0,a,(1-fe)*b)))}),go.Shape.defineFigureGenerator("Curve2",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,b,0,fe*b,(1-fe)*a,b)))}),go.Shape.defineFigureGenerator("Curve3",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,fe*b,fe*a,b)))}),go.Shape.defineFigureGenerator("Curve4",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,b,(1-fe)*a,0,0,(1-fe)*b)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ke("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&E.setSpots(y/a,0,(a-y)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var y=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&E.setSpots(y/a,0,(a-y)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new ke("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var y=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&E.setSpots(y/a,0,(a-y)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ke("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var y=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())),y<a/2&&E.setSpots(y/a,0,(a-y)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new ke("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var y=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=b,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-y,b)).add(new go.PathSegment(go.PathSegment.Line,y,b).close())):E.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,a-y,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close())),y<a/2&&E.setSpots(y/a,0,(a-y)/a,1),E}});var nt=[];function Xe(){var ie=nt.pop();return ie===void 0?[]:ie}function Qe(ie){ie.length=0,nt.push(ie)}function at(ie){for(var a=Xe(),b=.5,x=.5,y=Math.PI*1.5,E=0,z=0;z<ie;z++)E=2*Math.PI/ie*z+y,a[z]=new go.Point(x+b*Math.cos(E),x+b*Math.sin(E));return a.push(a[0]),a}function et(ie){var a=qe(ie),b=Xe();b[0]=a[0];for(var x=1,y=1;x<a.length;x+=2,y+=3)b[y]=a[x],b[y+1]=a[x],b[y+2]=a[x+1];return Qe(a),b}function qe(ie){for(var a=at(ie),b=Xe(),x=Math.floor(a.length/2),y=a.length-1,E=ie%2===0?2:1,z=0;z<y;z++){var ee=a[z],ae=a[z+1],te=a[(x+z-1)%y],se=a[(x+z+E)%y];b[z*2]=ee,b[z*2+1]=ct(ee.x,ee.y,te.x,te.y,ae.x,ae.y,se.x,se.y,new go.Point)}return b[b.length]=b[0],Qe(a),b}go.Shape.defineFigureGenerator("Pentagon",function(ie,a,b){var x=at(5),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.2,.22),y.spot2=new go.Spot(.8,.9),y}),go.Shape.defineFigureGenerator("Hexagon",function(ie,a,b){var x=at(6),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.07,.25),y.spot2=new go.Spot(.93,.75),y}),go.Shape.defineFigureGenerator("Heptagon",function(ie,a,b){var x=at(7),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.2,.15),y.spot2=new go.Spot(.8,.85),y}),go.Shape.defineFigureGenerator("Octagon",function(ie,a,b){var x=at(8),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.15,.15),y.spot2=new go.Spot(.85,.85),y}),go.Shape.defineFigureGenerator("Nonagon",function(ie,a,b){var x=at(9),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.17,.13),y.spot2=new go.Spot(.82,.82),y}),go.Shape.defineFigureGenerator("Decagon",function(ie,a,b){var x=at(10),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("Dodecagon",function(ie,a,b){var x=at(12),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.16,.16),y.spot2=new go.Spot(.84,.84),y}),go.Shape.defineFigureGenerator("FivePointedStar",function(ie,a,b){var x=qe(5),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.266,.333),y.spot2=new go.Spot(.733,.733),y}),go.Shape.defineFigureGenerator("SixPointedStar",function(ie,a,b){var x=qe(6),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.17,.25),y.spot2=new go.Spot(.83,.75),y}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ie,a,b){var x=qe(7),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("EightPointedStar",function(ie,a,b){var x=qe(8),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.25,.25),y.spot2=new go.Spot(.75,.75),y}),go.Shape.defineFigureGenerator("NinePointedStar",function(ie,a,b){var x=qe(9),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.666),y}),go.Shape.defineFigureGenerator("TenPointedStar",function(ie,a,b){var x=qe(10),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*b));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*b).close()),Qe(x),y.spot1=new go.Spot(.281,.261),y.spot2=new go.Spot(.723,.748),y}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ie,a,b){var x=et(5),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*b,x[z].x*a,x[z].y*b,x[z+1].x*a,x[z+1].y*b));return E.segments.last().close(),Qe(x),y.spot1=new go.Spot(.222,.277),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ie,a,b){var x=et(6),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*b,x[z].x*a,x[z].y*b,x[z+1].x*a,x[z+1].y*b));return E.segments.last().close(),Qe(x),y.spot1=new go.Spot(.17,.222),y.spot2=new go.Spot(.833,.777),y}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ie,a,b){var x=et(7),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*b,x[z].x*a,x[z].y*b,x[z+1].x*a,x[z+1].y*b));return E.segments.last().close(),Qe(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ie,a,b){var x=et(8),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*b,x[z].x*a,x[z].y*b,x[z+1].x*a,x[z+1].y*b));return E.segments.last().close(),Qe(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ie,a,b){var x=et(9),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*b,x[z].x*a,x[z].y*b,x[z+1].x*a,x[z+1].y*b));return E.segments.last().close(),Qe(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ie,a,b){var x=et(10),y=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*b,!0);y.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*b,x[z].x*a,x[z].y*b,x[z+1].x*a,x[z+1].y*b));return E.segments.last().close(),Qe(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new ke("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ke("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ie,a,b){var x=ie?ie.parameter1:NaN,y=ie?ie.parameter2:NaN;isNaN(x)&&(x=8),isNaN(y)&&(y=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x<a/2&&y<b/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,b-y)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b-y)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y).close())),E.setSpots(0,0,1,1,x,y,-x,-y),E}),go.Shape.setFigureParameter("Ring",0,new ke("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ie,a,b){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var y=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,y,y,y,y).close());var ee=Math.max(y-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,ee,ee).close())),E.spot1=Pe,E.spot2=Be,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*b,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*b,-.09239631*a,.07836421*b,.1406031*a,-.0542823*b)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*b,.2450511*a,-.00697547*b,.3776197*a,-.01112067*b)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*b,.4539471*a,0,.6066018*a,-.02526587*b)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*b,.6914277*a,-.01904177*b,.8921095*a,-.01220843*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*b,1.036446*a,.04105738*b,1.020377*a,.3022052*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*b,1.04448*a,.360238*b,.992256*a,.5219009*b)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*b,1.032337*a,.5771781*b,1.018411*a,.8120651*b)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*b,1.028411*a,.9571472*b,.8556702*a,1.052487*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*b,.7431877*a,1.009325*b,.5624123*a,1.021761*b)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*b,.4820677*a,1.031761*b,.3030112*a,1.002796*b)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*b,.2329994*a,1.01518*b,.03213784*a,1.01518*b)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*b,-.02812061*a,.9032597*b,-.01205169*a,.6835638*b)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*b,-.01812061*a,.6089503*b,-.00606892*a,.4555777*b)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*b,-.01606892*a,.3892545*b,-.01205169*a,.1944299*b))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ie,a,b){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*b)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*b)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,b)).add(new go.PathSegment(go.PathSegment.Line,x*a,b)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*b)).add(new go.PathSegment(go.PathSegment.Line,0,x*b).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new ke("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ke("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ie,a,b){var x=ie?ie.parameter1:NaN,y=ie?ie.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var E=x%360;E<0&&(E+=360);var z=y%360,ee=Math.min(a,b)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ie,a,b){var x=fe/Math.SQRT2*.5,y=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,b,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*a,E*b,a,(1-x)*b,(y+x)*a,(E+x)*b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ie,a,b){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,a)/2,E=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(E-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+y,0)).add(new go.PathSegment(go.PathSegment.Line,E+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,E+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,E+y,b)).add(new go.PathSegment(go.PathSegment.Line,E-y,b)).add(new go.PathSegment(go.PathSegment.Line,E-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,E-y,z-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ie,a,b){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,a)/2,E=a/2,z=b/2;return new go.Geometry().add(new go.PathFigure(E-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+y,0)).add(new go.PathSegment(go.PathSegment.Line,E+y,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z-y)).add(new go.PathSegment(go.PathSegment.Line,a,z+y)).add(new go.PathSegment(go.PathSegment.Line,E+y,z+y)).add(new go.PathSegment(go.PathSegment.Line,E+y,b)).add(new go.PathSegment(go.PathSegment.Line,E-y,b)).add(new go.PathSegment(go.PathSegment.Line,E-y,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z+y)).add(new go.PathSegment(go.PathSegment.Line,0,z-y)).add(new go.PathSegment(go.PathSegment.Line,E-y,z-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ie,a,b){var x=ie?ie.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||b===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=a,y.endY=b,y}else{var E=a/2,z=b/2,ee=Math.atan2(b,a),ae=x-Math.min(Math.cos(ee)*x/2,E),te=x-Math.min(Math.sin(ee)*x/2,z),y=new go.Geometry,se=new go.PathFigure(ae,0,!0);return y.add(se),se.add(new go.PathSegment(go.PathSegment.Line,E,.2*b)),se.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,te)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,a,b-te)),se.add(new go.PathSegment(go.PathSegment.Line,a-ae,b)),se.add(new go.PathSegment(go.PathSegment.Line,E,.8*b)),se.add(new go.PathSegment(go.PathSegment.Line,ae,b)),se.add(new go.PathSegment(go.PathSegment.Line,0,b-te)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new ke("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ie,a,b){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*b).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new ke("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*b)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*b)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*b)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*b)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*b).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new ke("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,E=new go.PathFigure(0,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,b,Math.abs(1-x)*a,.25*b,Math.abs(1-x)*a,.75*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*b,x*a,.25*b).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,fe*a,0,a,(.5-fe/2)*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,(.5+fe/2)*b,fe*a,b).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,b,a,0,a,b)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*b,.5*a,.25*b).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,b,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*b,.1*a,.8*b,0,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*b,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,.5*b,.9*a,.8*b).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*b)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.6*a,.2*b,a,.25*b)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*b,a,.8*b,.6*a,.8*b)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,.5*a,.75*b,.55*a,.95*b)).add(new go.PathSegment(go.PathSegment.Line,.25*a,b)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*b,.45*a,.95*b,.5*a,.75*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.4*a,.8*b,0,.8*b)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*b,0,.25*b,.4*a,.2*b).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.4*a,.6*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,b,.5*a,.75*b,.45*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*b,.55*a,.95*b,.5*a,.75*b));var E=.2,z=.3,ee=0,ae=E*fe;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*b,(.5-E+z)*a,(.5+ae+ee)*b,(.5-ae+z)*a,(.5+E+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*b,(.5+ae+z)*a,(.5+E+ee)*b,(.5+E+z)*a,(.5+ae+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*b,(1-.5+E+z)*a,(.5-ae+ee)*b,(.5+ae+z)*a,(.5-E+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*b,(.5-ae+z)*a,(.5-E+ee)*b,(.5-E+z+.05)*a,(.5-ae+ee-.02)*b)),E=.2,z=0,ee=-.3,ae=E*fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*b,(.5+ae+z)*a,(.5+E+ee)*b,(.5+E+z)*a,(.5+ae+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*b,(1-.5+E+z)*a,(.5-ae+ee)*b,(.5+ae+z)*a,(.5-E+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*b,(.5-ae+z)*a,(.5-E+ee)*b,(.5-E+z)*a,(.5-ae+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ae+z)*a,(.5+E+ee)*b,(.5-E+z)*a,(.5+ae+ee)*b,(.5-ae+z)*a,(.5+E+ee)*b)),E=.2,z=-.3,ee=0,ae=E*fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*b,(1-.5+E+z-.05)*a,(.5-ae+ee-.02)*b,(.5+ae+z)*a,(.5-E+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*b,(.5-ae+z)*a,(.5-E+ee)*b,(.5-E+z)*a,(.5-ae+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*b,(.5-E+z)*a,(.5+ae+ee)*b,(.5-ae+z)*a,(.5+E+ee)*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*b,(.5+ae+z)*a,(.5+E+ee)*b,(.5+E+z)*a,(.5+ae+ee)*b).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*b)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,b*ee,E*a,E*a).close()),y=new go.PathFigure(a*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,y=new go.PathFigure((z+E)*a,ee*b,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,b*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ie,a,b){var x=.8535533905932737,y=.5*a,E=.5*b;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,E,y,E)).add(new go.PathSegment(go.PathSegment.Line,y,b)).add(new go.PathSegment(go.PathSegment.Move,y,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*b)).add(new go.PathSegment(go.PathSegment.Move,y,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*b)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=.5,z=.5,ee=.5,ae=new go.PathFigure(z*a,(ee-E)*b);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),E=.4,y=fe*.4;var te=le(),se=le(),de=le(),we=le();Ue(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.42,te,se,de,we,we);var Se=le(),Re=le(),Ae=le();Ue(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.58,we,we,Ae,Se,Re);var At=le(),un=le(),xn=le();Ue(z,ee+E,z-y,ee+E,z-E,ee+y,z-E,ee,.42,At,un,xn,we,we);var Ie=le(),yt=le(),St=le();return Ue(z,ee+E,z-y,ee+E,z-E,ee+y,z-E,ee,.58,we,we,St,Ie,yt),ae.add(new go.PathSegment(go.PathSegment.Move,St.x*a,St.y*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,Ie.x*a,Ie.y*b,yt.x*a,yt.y*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-y)*b,(z-y)*a,(ee-E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*b,te.x*a,te.y*b,se.x*a,se.y*b)),ae.add(new go.PathSegment(go.PathSegment.Line,St.x*a,St.y*b).close()),ae.add(new go.PathSegment(go.PathSegment.Move,xn.x*a,xn.y*b)),ae.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,Se.x*a,Se.y*b,Re.x*a,Re.y*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+y)*b,(z+y)*a,(ee+E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,xn.x*a,xn.y*b,At.x*a,At.y*b,un.x*a,un.y*b).close()),be(te),be(se),be(de),be(we),be(Se),be(Re),be(Ae),be(At),be(un),be(xn),be(Ie),be(yt),be(St),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*b)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*b)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*b,a,.25*b,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,b)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*b,0,.25*b).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ke("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ie,a,b){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var y=(a-x)/2,E=y+x;return new go.Geometry().add(new go.PathFigure(E,.5*b).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b)).add(new go.PathSegment(go.PathSegment.Line,y,.5*b)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,.55*b).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*b)).add(new go.PathSegment(go.PathSegment.Line,a,.45*b)).add(new go.PathSegment(go.PathSegment.Line,.4*a,b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*b).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ie,a,b){var x=new go.Geometry,y=fe*.4,E=.4,z=.5,ee=.5,ae=le(),te=le(),se=le(),de=le(),we=new go.PathFigure((z-E)*a,ee*b,!1);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-y)*b,(z-y)*a,(ee-E)*b)),Ue(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.44,se,de,te,ae,ae),we.add(new go.PathSegment(go.PathSegment.Bezier,te.x*a,te.y*b,se.x*a,se.y*b,de.x*a,de.y*b));var Se=ge(te.x,te.y);Ue(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.56,ae,ae,te,se,de);var Re=ge(te.x,te.y);we.add(new go.PathSegment(go.PathSegment.Line,(Se.x*.1+.95*.9)*a,Se.y*.1*b)),we.add(new go.PathSegment(go.PathSegment.Line,.85*a,Se.y*.1*b)),we.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),we.add(new go.PathSegment(go.PathSegment.Line,a,0)),we.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),we.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,.15*b)),we.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,(Re.y*.1+.05*.9)*b)),we.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,se.x*a,se.y*b,de.x*a,de.y*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+y)*b,(z+y)*a,(ee+E)*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-y)*a,(ee+E)*b,(z-E)*a,(ee+y)*b)),E=.35,y=fe*.35;var Ae=new go.PathFigure(z*a,(ee-E)*b,!1);x.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b));var At=new go.PathFigure((z-E)*a,ee*b,!1);return x.add(At),be(ae),be(te),be(se),be(de),be(Se),be(Re),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ie,a,b){var x=new go.Geometry,y=.375,E=0,z=-.125,ee=y*fe,ae=new go.PathFigure((.525+E)*a,(.5+y+z)*b,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+E)*a,(.5+z)*b,(.5+ee+E)*a,(.5+y+z)*b,(.5+y+E)*a,(.5+ee+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-y+z)*b,(1-.5+y+E)*a,(.5-ee+z)*b,(.5+ee+E)*a,(.5-y+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+E)*a,(.5+z)*b,(.5-ee+E)*a,(.5-y+z)*b,(.5-y+E)*a,(.5-ee+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+y+z)*b,(.5-y+E)*a,(.5+ee+z)*b,(.5-ee+E)*a,(.5+y+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.475*a,b)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,b)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*b).close()),y=.325,E=0,z=-.125,ee=y*fe;var ae=new go.PathFigure((1-.5+y+E)*a,(.5+z)*b,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+y+z)*b,(.5+y+E)*a,(.5+ee+z)*b,(.5+ee+E)*a,(.5+y+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+E)*a,(.5+z)*b,(.5-ee+E)*a,(.5+y+z)*b,(.5-y+E)*a,(.5+ee+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-y+z)*b,(.5-y+E)*a,(.5-ee+z)*b,(.5-ee+E)*a,(.5-y+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+E)*a,(.5+z)*b,(.5+ee+E)*a,(.5-y+z)*b,(1-.5+y+E)*a,(.5-ee+z)*b));var ae=new go.PathFigure((.525+E)*a,(.5+y+z)*b,!1);return x.add(ae),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ie,a,b){var x=ie?ie.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ie,a,b){var x=ie?ie.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,x*a,b))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ie,a,b){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*b,.5*a,.5*b)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Move,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,0,.5*b)).add(new go.PathSegment(go.PathSegment.Move,a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,b)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*b)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*b)).add(new go.PathSegment(go.PathSegment.Line,a,.5*b)).add(new go.PathSegment(go.PathSegment.Move,0,b)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ie,a,b){var x=.5;return new go.Geometry().add(new go.PathFigure(0,b,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*b)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*b,x*a,x*b)).add(new go.PathSegment(go.PathSegment.Line,a,b))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ie,a,b){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*b)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*b,x*a,x*b)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ke("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ke("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=.3);var E=(1-x)*a,z=(.5-y/2)*b,ee=(.5+y/2)*b,ae=new go.Geometry,te=new go.PathFigure(0,z,!0);ae.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,z)),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),te.add(new go.PathSegment(go.PathSegment.Line,E,b)),te.add(new go.PathSegment(go.PathSegment.Line,E,ee)),te.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,z/b);var se=ct(0,ee/b,1,ee/b,E/a,1,1,.5,le());return ae.spot2=new go.Spot(se.x,se.y),be(se),ae}),go.Shape.setFigureParameter("Arrow2",0,new ke("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ke("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,b/2);var E=a-x,z=(b-y)/2,ee=z+y,ae=new go.Geometry,te=new go.PathFigure(0,z,!0);ae.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,z)),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),te.add(new go.PathSegment(go.PathSegment.Line,E,b)),te.add(new go.PathSegment(go.PathSegment.Line,E,ee)),te.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ae.spot1=new go.Spot(0,z/b);var se=ct(0,ee/b,1,ee/b,E/a,1,1,.5,le());return ae.spot2=new go.Spot(se.x,se.y),be(se),ae}),go.Shape.defineFigureGenerator("Chevron",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*b).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ke("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*b,E=(.5+x/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ae=ct(0,.5,.3,0,0,y/b,.1,y/b,le());return z.spot1=new go.Spot(ae.x,ae.y),ae=ct(.7,1,1,.5,0,E/b,1,E/b,ae),z.spot2=new go.Spot(ae.x,ae.y),be(ae),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ke("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ke("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=40);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=100);var E=(b-x)/2,z=E+x,ee=(b-y)/2,ae=ee+y;(x>b||y>b)&&(y>x?(x=x*b/y,E=(b-x)/2,z=E+x,ee=0,ae=b):(E=0,z=b,ee=0,ae=b));var te=new go.Geometry,se=new go.PathFigure(a,.5*b,!0);te.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var de=ct(0,.5,.3,ee/b,0,E/b,1,E/b,le());return te.spot1=new go.Spot(de.x,de.y),de=ct(.7,ae/b,1,.5,0,z/b,1,z/b,de),te.spot2=new go.Spot(de.x,de.y),be(de),te}),go.Shape.setFigureParameter("IBeamArrow",0,new ke("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*b,E=(.5+x/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,y/b);var ae=ct(.7,1,1,.5,0,E/b,1,E/b,le());return z.spot2=new go.Spot(ae.x,ae.y),be(ae),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ke("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ke("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=40);var y=ie?ie.parameter2:NaN;isNaN(y)&&(y=100);var E=(b-x)/2,z=E+x,ee=(b-y)/2,ae=ee+y;(x>b||y>b)&&(y>x?(x=x*b/y,E=(b-x)/2,z=E+x,ee=0,ae=b):(E=0,z=b,ee=0,ae=b));var te=new go.Geometry,se=new go.PathFigure(a,.5*b,!0);te.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),se.add(new go.PathSegment(go.PathSegment.Line,0,ae)),se.add(new go.PathSegment(go.PathSegment.Line,0,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),se.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),te.spot1=new go.Spot(0,E/b);var de=ct(.7,ae/b,1,.5,0,z/b,1,z/b,le());return te.spot2=new go.Spot(de.x,de.y),be(de),te}),go.Shape.setFigureParameter("Pointer",0,new ke("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,E=new go.PathFigure(a,.5*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var z=ct(.2,.65,1,.65,0,1,1,.5,le());return y.spot2=new go.Spot(z.x,z.y),be(z),y}),go.Shape.setFigureParameter("RoundedPointer",0,new ke("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,E=new go.PathFigure(a,.5*b,!0);y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*b,x*a,.25*b).close()),y.spot1=new go.Spot(x,.35);var z=ct(0,.65,1,.65,0,1,1,.5,le());return y.spot2=new go.Spot(z.x,z.y),be(z),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new ke("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*b,E=(.5+x/2)*b,z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ae=ct(.7,1,1,.5,0,E/b,1,E/b,le());return z.spot2=new go.Spot(ae.x,ae.y),be(ae),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ke("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=50);var y=(b-x)/2,E=y+x;x>b&&(y=0,E=b);var z=new go.Geometry,ee=new go.PathFigure(a,.5*b,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,y/b);var ae=ct(.7,1,1,.5,0,E/b,1,E/b,le());return z.spot2=new go.Spot(ae.x,ae.y),be(ae),z}),go.Shape.setFigureParameter("SquareArrow",0,new ke("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,E=new go.PathFigure(a,.5*b,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=fe*.1,z=new go.PathFigure(0,.9*b,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+E)*b,(.5+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*a,b,0,(.9+E)*b).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.9*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,b,.85/.9*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*b).close());var E=new go.PathFigure(0,.9*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*b,(1-.85/.9)*a,.8*b,.85/.9*a,.8*b)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).close());var E=new go.PathFigure(.5*a,b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.3*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,b/3);var y=new go.Geometry,E=fe*.5,z=new go.PathFigure(0,x,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,fe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,fe*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*b,1*a,b-fe*x,(.5+E)*a,1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-x,(.5-E)*a,1*b,0,b-fe*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-fe*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-fe*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,b/3);var y=new go.Geometry,E=fe*.5,z=new go.PathFigure(0,b-x,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,fe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,fe*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,b-fe*x,(.5+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-x,(.5-E)*a,b,0,b-fe*x));var ee=new go.PathFigure(0,b-x,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b-2*x,0,b-x-fe*x,(.5-E)*a,b-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,b-x,(.5+E)*a,b-2*x,a,b-x-fe*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,E=fe*.5,z=new go.PathFigure(x,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-fe*x,0,a,(.5-E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,b,a,(.5+E)*b,a-fe*x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,fe*x,b,0,(.5+E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*b,fe*x,0));var ee=new go.PathFigure(x,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*b,x+fe*x,0,2*x,(.5-E)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,b,2*x,(.5+E)*b,x+fe*x,b)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,E=fe*.5,z=new go.PathFigure(a-x,0,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,a-fe*x,0,a,(.5-E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,b,a,(.5+E)*b,a-fe*x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,fe*x,b,0,(.5+E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*b,fe*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return y.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*b,a-x-fe*x,0,a-2*x,(.5-E)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,b,a-2*x,(.5+E)*b,a-x-fe*x,b)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.25*a,.25*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var E=new go.PathFigure(.25*a,.25*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.25*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var E=new go.PathFigure(0,b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*b)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*b).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*b)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ie,a,b){var x=new go.Geometry,y=.2,E=.1,z=fe*y,ee=fe*E,ae=.5,te=.1,se=new go.PathFigure(ae*a,(te+E)*b,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-y)*a,te*b,(ae-z)*a,(te+E)*b,(ae-y)*a,(te+ee)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-E)*b,(ae-y)*a,(te-ee)*b,(ae-z)*a,(te-E)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+y)*a,te*b,(ae+z)*a,(te-E)*b,(ae+y)*a,(te-ee)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te+E)*b,(ae+y)*a,(te+ee)*b,(ae+z)*a,(te+E)*b));var de=.05,we=fe*de;ae=.05,te=.25;var Se=new go.PathFigure(.5*a,.2*b,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*b)),ae=.95,te=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+de)*a,te*b,(ae+we)*a,(te-de)*b,(ae+de)*a,(te-we)*b)),Se.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*b)),de=.025,we=fe*de,ae=.825,te=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-de)*b,(ae+de)*a,(te-we)*b,(ae+we)*a,(te-de)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-de)*a,te*b,(ae-we)*a,(te-de)*b,(ae-de)*a,(te-we)*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,b)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b)),de=.05,we=fe*de,ae=.5,te=.7,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-de)*b,(ae+de)*a,(te-we)*b,(ae+we)*a,(te-de)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-de)*a,te*b,(ae-we)*a,(te-de)*b,(ae-de)*a,(te-we)*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.45*a,b)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*b)),de=.025,we=fe*de,ae=.175,te=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-de)*b,(ae+de)*a,(te-we)*b,(ae+we)*a,(te-de)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-de)*a,te*b,(ae-we)*a,(te-de)*b,(ae-de)*a,(te-we)*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),de=.05,we=fe*de,ae=.05,te=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-de)*b,(ae-de)*a,(te-we)*b,(ae-we)*a,(te-de)*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new ke("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ie,a,b){var x=ie?ie.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,E=new go.PathFigure(a,0,!0);return y.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*b)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,.5*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b));var E=new go.PathFigure(.5*a,.5*b,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,y*b,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)),x}),go.Shape.defineFigureGenerator("Database",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=fe*.1,z=new go.PathFigure(a,.1*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+E)*b,(.5+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*a,b,0,(.9+E)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*b,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+y)*a,0,a,(.1-E)*b));var ee=new go.PathFigure(a,.1*b,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+E)*b,(.5+y)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-y)*a,.2*b,0,(.1+E)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,a,(.2+E)*b,(.5+y)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-y)*a,.3*b,0,(.2+E)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*b,a,(.3+E)*b,(.5+y)*a,.4*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*b,(.5-y)*a,.4*b,0,(.3+E)*b)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*b,.25*a,.1*b).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=fe*.1,z=new go.PathFigure(a,.1*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.9+E)*b,(.5+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,(.5-y)*a,b,0,(.9+E)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*b,(.5-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,(.5+y)*a,0,a,(.1-E)*b));var ee=new go.PathFigure(a,.1*b,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,a,(.1+E)*b,(.5+y)*a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*b,(.5-y)*a,.2*b,0,(.1+E)*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*b,a,(.2+E)*b,(.5+y)*a,.3*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*b,(.5-y)*a,.3*b,0,(.2+E)*b)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,b,a,0,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var E=fe*.2,z=new go.PathFigure(0,.2*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*b,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*b,(.8+E)*a,0,a,(.2-E)*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,b,a,(.8+E)*b,(.8+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*b,(.2-E)*a,b,0,(.8+E)*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*b));var ee=new go.PathFigure(0,y*b,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(0,y*b,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y*b)),x}),go.Shape.defineFigureGenerator("Document",function(ie,a,b){var x=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(y*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,y*b)),z.add(new go.PathSegment(go.PathSegment.Move,a,y*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*b)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-y)*b)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var E=new go.PathFigure(.1*a,.4*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*b)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a,.5*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b));var E=new go.PathFigure(a,.5*b,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,b));var z=new go.PathFigure(a,.5*b,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN,E=ie?ie.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var ee=new go.PathFigure(y*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*b)),x}),go.Shape.defineFigureGenerator("Junction",function(ie,a,b){var x=new go.Geometry,y=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=fe*.5,ee=.5,ae=new go.PathFigure(a,ee*b,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,b,a,(ee+z)*b,(ee+z)*a,b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*b,(ee-z)*a,b,0,(ee+z)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*b,(ee-z)*a,0)),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*b,(ee+z)*a,0,a,(ee-z)*b));var te=new go.PathFigure((E+y)*a,(E+y)*b,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*a,E*b)),te.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+y)*b)),te.add(new go.PathSegment(go.PathSegment.Line,(E+y)*a,E*b)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ie,a,b){var x=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*b)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=.5,z=new go.PathFigure(.5*a,b,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*b,(E-y)*a,b,0,(E+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-y)*b,(E-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*b,(E+y)*a,0,a,(E-y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*b,a,(E+y)*b,(E+y)*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,y*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-y)*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ie,a,b){var x=new go.Geometry;b=b/.8;var y=new go.PathFigure(a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*b,.96*a,.47*b,.93*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*b,.86*a,.57*b,.83*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.4*a,.4*b,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*b)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*b)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.1*a,.1*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b).close());var E=new go.PathFigure(.2*a,.1*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*b)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*b)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var E=1-y,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close());var ee=new go.PathFigure(.5*y*a,y*b,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*a,y*b)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=.5,z=new go.PathFigure(a,E*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,b,a,(E+y)*b,(E+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*b,(E-y)*a,b,0,(E+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-y)*b,(E-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*b,(E+y)*a,0,a,(E-y)*b));var ee=new go.PathFigure(a,.5*b,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ie,a,b){var x=new go.Geometry;b=b/.8;var y=new go.PathFigure(0,.7*b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*b,.5*a,.6*b,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*b,.5*a,.4*b,.5*a,b).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN,E=ie?ie.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN,E=ie?ie.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure((1-y)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,y*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),x}),go.Shape.defineFigureGenerator("Process",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var z=new go.PathFigure(y*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b).close());var E=new go.PathFigure(0,.5*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.25);var E=new go.PathFigure(y*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*b,.25*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*b,.25*a,.5*b));var z=new go.PathFigure(y*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*a,b)),z.add(new go.PathSegment(go.PathSegment.Move,(1-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-y)*a,b)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.25*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*b,.25*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*b,.25*a,.5*b)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ie,a,b){var x=new go.Geometry,y=ie?ie.parameter1:NaN;isNaN(y)&&(y=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-y)*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*b).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(.5+y)*a,0,a,(.5-y)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,(.5+y)*b,(.5+y)*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=.5,z=new go.PathFigure(a,E*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,b,a,(E+y)*b,(E+y)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*b,(E-y)*a,b,0,(E+y)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-y)*b,(E-y)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*b,(E+y)*a,0,a,(E-y)*b));var ee=new go.PathFigure(a,E*b,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*b));var ae=new go.PathFigure(.8*a,.75*b,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*b)),ae.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*b)),x}),go.Shape.defineFigureGenerator("Ground",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),x}),go.Shape.defineFigureGenerator("Inverter",function(ie,a,b){var x=new go.Geometry,y=fe*.1,E=.1,z=.9,ee=.5,ae=new go.PathFigure(.8*a,.5*b,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,0,b)),ae.add(new go.PathSegment(go.PathSegment.Line,0,0)),ae.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b));var te=new go.PathFigure((z+E)*a,ee*b,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+y)*b,(z+y)*a,(ee+E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-y)*a,(ee+E)*b,(z-E)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-y)*b,(z-y)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+y)*a,(ee-E)*b,(z+E)*a,(ee-y)*b)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=fe*.4,z=fe*.1,ee=.1,ae=.9,te=.5,se=new go.PathFigure(.8*a,.5*b,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,.8*a,(.5+E)*b,(.4+y)*a,b)),se.add(new go.PathSegment(go.PathSegment.Line,0,b)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(.4+y)*a,0,.8*a,(.5-E)*b));var de=new go.PathFigure((ae+ee)*a,te*b,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te+ee)*b,(ae+ee)*a,(te+z)*b,(ae+z)*a,(te+ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,te*b,(ae-z)*a,(te+ee)*b,(ae-ee)*a,(te+z)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-ee)*b,(ae-ee)*a,(te-z)*b,(ae-z)*a,(te-ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,te*b,(ae+z)*a,(te-ee)*b,(ae+ee)*a,(te-z)*b)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ie,a,b){var x=new go.Geometry,y=.5,E=fe*y,z=0,ee=.5,ae=new go.PathFigure(.8*a,.5*b,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.7*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*b,.25*a,.25*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(z+E)*a,(ee-y)*b,.7*a,(ee-E)*b)),y=.1,E=fe*.1,z=.9,ee=.5;var te=new go.PathFigure((z-y)*a,ee*b,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ie,a,b){var x=new go.Geometry,y=.5,E=fe*y,z=0,ee=.5,ae=new go.PathFigure(0,0,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+E+E)*a,(ee-y)*b,.8*a,(ee-E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.8*a,(ee+E)*b,(z+E+E)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*b,.25*a,.25*b).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ie,a,b){var x=new go.Geometry,y=.5,E=fe*y,z=.2,ee=.5,ae=new go.PathFigure(.1*a,0,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var te=new go.PathFigure(.8*a,.5*b,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.7*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(z+E)*a,(ee-y)*b,.7*a,(ee-E)*b)),y=.1,E=fe*.1,z=.9,ee=.5;var se=new go.PathFigure((z-y)*a,ee*b,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ie,a,b){var x=new go.Geometry,y=.5,E=fe*y,z=.2,ee=.5,ae=new go.PathFigure(.1*a,0,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,b,.35*a,.25*b,.35*a,.75*b));var te=new go.PathFigure(.2*a,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,(z+E)*a,(ee-y)*b,.9*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,b,.9*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*b,.45*a,.25*b).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),x}),go.Shape.defineFigureGenerator("Resistor",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.5*b,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),x}),go.Shape.defineFigureGenerator("Inductor",function(ie,a,b){var x=new go.Geometry,y=fe*.1,E=.1,z=.1,ee=.5,ae=new go.PathFigure((z-y*.5)*a,b,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-y)*a,b,(z-E)*a,0)),z=.3,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+E)*a,0,(z+y)*a,b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-y)*a,b,(z-E)*a,0)),z=.5,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+E)*a,0,(z+y)*a,b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-y)*a,b,(z-E)*a,0)),z=.7,ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,b,(z+E)*a,0,(z+y)*a,b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-y)*a,b,(z-E)*a,0)),z=.9,ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y*.5)*a,b,(z+E)*a,0,(z+y)*a,b)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ie,a,b){var x=new go.Geometry,y=fe*.5,E=.5,z=.5,ee=.5,ae=new go.PathFigure((z-E)*a,ee*b,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*b,(z-E)*a,(ee-y)*b,(z-y)*a,(ee-E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+y)*a,(ee-E)*b,(z+E)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+y)*b,(z+y)*a,(ee+E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-y)*a,(ee+E)*b,(z-E)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*b,z*a,(ee-E)*b,z*a,(ee+E)*b)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.75*b,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),x}),go.Shape.defineFigureGenerator("Diode",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ie,a,b){var x=new go.Geometry,y=a,E=b;a=a*.38,b=b*.6;var z=fe*.8,ee=.8,ae=0,te=.5,se=(y-a)/2,de=(E-b)/2,we=new go.PathFigure(ae*a+se,(te+ee)*b+de,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+se,te*b+de,(ae-z)*a+se,(te+ee)*b+de,(ae-ee)*a+se,(te+z)*b+de)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te-ee)*b+de,(ae-ee)*a+se,(te-z)*b+de,(ae-z)*a+se,(te-ee)*b+de)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee+z*.5)*a+se,te*b+de,ae*a+se,(te-ee)*b+de,(ae-ee+z*.5)*a+se,(te-z)*b+de)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te+ee)*b+de,(ae-ee+z*.5)*a+se,(te+z)*b+de,ae*a+se,(te+ee)*b+de).close()),z=fe*.4,ee=.4,ae=.2,te=.5;var Se=new go.PathFigure(ae*a+se,(te+ee)*b+de,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+se,te*b+de,(ae-z)*a+se,(te+ee)*b+de,(ae-ee)*a+se,(te+z)*b+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te-ee)*b+de,(ae-ee)*a+se,(te-z)*b+de,(ae-z)*a+se,(te-ee)*b+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee+z*.5)*a+se,te*b+de,ae*a+se,(te-ee)*b+de,(ae-ee+z*.5)*a+se,(te-z)*b+de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te+ee)*b+de,(ae-ee+z*.5)*a+se,(te+z)*b+de,ae*a+se,(te+ee)*b+de).close()),z=fe*.2,ee=.2,ae=.5,te=.5;var Re=new go.PathFigure((ae-ee)*a+se,te*b+de,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te-ee)*b+de,(ae-ee)*a+se,(te-z)*b+de,(ae-z)*a+se,(te-ee)*b+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+se,te*b+de,(ae+z)*a+se,(te-ee)*b+de,(ae+ee)*a+se,(te-z)*b+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te+ee)*b+de,(ae+ee)*a+se,(te+z)*b+de,(ae+z)*a+se,(te+ee)*b+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+se,te*b+de,(ae-z)*a+se,(te+ee)*b+de,(ae-ee)*a+se,(te+z)*b+de)),z=fe*.4,ee=.4,ae=.8,te=.5;var Ae=new go.PathFigure(ae*a+se,(te-ee)*b+de,!0);x.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+se,te*b+de,(ae+z)*a+se,(te-ee)*b+de,(ae+ee)*a+se,(te-z)*b+de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te+ee)*b+de,(ae+ee)*a+se,(te+z)*b+de,(ae+z)*a+se,(te+ee)*b+de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee-z*.5)*a+se,te*b+de,ae*a+se,(te+ee)*b+de,(ae+ee-z*.5)*a+se,(te+z)*b+de)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te-ee)*b+de,(ae+ee-z*.5)*a+se,(te-z)*b+de,ae*a+se,(te-ee)*b+de).close()),z=fe*.8,ee=.8,ae=1,te=.5;var At=new go.PathFigure(ae*a+se,(te-ee)*b+de,!0);return x.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+se,te*b+de,(ae+z)*a+se,(te-ee)*b+de,(ae+ee)*a+se,(te-z)*b+de)),At.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te+ee)*b+de,(ae+ee)*a+se,(te+z)*b+de,(ae+z)*a+se,(te+ee)*b+de)),At.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee-z*.5)*a+se,te*b+de,ae*a+se,(te+ee)*b+de,(ae+ee-z*.5)*a+se,(te+z)*b+de)),At.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+se,(te-ee)*b+de,(ae+ee-z*.5)*a+se,(te-z)*b+de,ae*a+se,(te-ee)*b+de).close()),x}),go.Shape.defineFigureGenerator("Email",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*b)),E.add(new go.PathSegment(go.PathSegment.Move,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*b)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.35*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,b,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,b).close());var z=new go.PathFigure(.6*a,b,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,b).close());var ee=new go.PathFigure(0,.5*b,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*b)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*b)),x}),go.Shape.defineFigureGenerator("Power",function(ie,a,b){var x=new go.Geometry,y=fe*.4,E=.4,z=.5,ee=.5,ae=le(),te=le(),se=le(),de=le();Ue(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.5,ae,ae,te,se,de);var we=ge(te.x,te.y),Se=new go.PathFigure(te.x*a,te.y*b,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,se.x*a,se.y*b,de.x*a,de.y*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z+E)*a,(ee+y)*b,(z+y)*a,(ee+E)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,(z-y)*a,(ee+E)*b,(z-E)*a,(ee+y)*b)),Ue(z-E,ee,z-E,ee-y,z-y,ee-E,z,ee-E,.5,se,de,te,ae,ae),Se.add(new go.PathSegment(go.PathSegment.Bezier,te.x*a,te.y*b,se.x*a,se.y*b,de.x*a,de.y*b)),y=fe*.3,E=.3,Ue(z-E,ee,z-E,ee-y,z-y,ee-E,z,ee-E,.5,se,de,te,ae,ae),Se.add(new go.PathSegment(go.PathSegment.Line,te.x*a,te.y*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,de.x*a,de.y*b,se.x*a,se.y*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),Ue(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.5,ae,ae,te,se,de),Se.add(new go.PathSegment(go.PathSegment.Bezier,te.x*a,te.y*b,de.x*a,de.y*b,se.x*a,se.y*b).close());var Se=new go.PathFigure(.45*a,0,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*b)),Se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),be(ae),be(te),be(se),be(de),be(we),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,b/2,a/2,b/2));function E(z,ee,ae){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ae)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ae)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ae)*b)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ae)*b).close())}return E(y,0,0),E(y,.4,0),E(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.2*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*b).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.37*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*b)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.37*b)),y.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*b)),y.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*b)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*b)),y.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*b).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.1*a,b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*b,.45*a,.44*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*b,.48*a,.17*b,.54*a,.35*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*b,.59*a,.29*b,.58*a,.28*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*b,.8*a,.34*b,.88*a,.43*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*b,.87*a,.48*b,.88*a,.43*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,1.17*a,.76*b,.82*a,.8*b).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ie,a,b){var x=new go.Geometry,y=.5,E=0,z=0,ee=y*fe,ae=.4*Math.SQRT2/2+.5,te=.5-.5*Math.SQRT2/2,se=1,de=.5,we=.5,Se=0,Re=new go.PathFigure(ae*a,(1-te)*b,!1);return x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,se*a,de*b,se*a,.7*b,se*a,de*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(we+E)*a,(Se+E)*b,(.5+y+E)*a,(.5-ee+E)*b,(.5+ee+E)*a,(.5-y+E)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+E)*a,(.5+z)*b,(.5-ee+E)*a,(.5-y+z)*b,(.5-y+E)*a,(.5-ee+z)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*b,(.5-y+E)*a,(.5+ee+z)*b,(.5-ee+E)*a,.9*b)),Re.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*b)),Re.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*b)),Re.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*b)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Move,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var E=new go.PathFigure(a,b,!1);x.add(E);var z=new go.PathFigure(0,.5*b,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*b,.2*a,.35*b,.3*a,.35*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.7*a,.65*b,.8*a,.65*b)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.2*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b).close());var y=new go.PathFigure(0,.2*b,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.7*a,b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*b,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,b,.4*a,.5*b,a,.5*b).close());var E=new go.PathFigure(.45*a,.73*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*b)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*b)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*b)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var E=new go.PathFigure(.335*a,(1-.555)*b,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*b)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*b)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*b,(1-.12)*a,.46*b,(1-.02)*a,.54*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*b,.02*a,.54*b,.12*a,.46*b)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*b));var z=.5-.285,ee=.5,ae=z,te=Math.PI/4,se=4*(1-Math.cos(te))/(3*Math.sin(te)),de=se*.5,we=z,Se=z,Re=se*we,Ae=se*Se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-we)*a,ae*b,(ee-(Re+we)/2)*a,(ae+(Se+Ae)/2)*b,(ee-we)*a,(ae+Ae)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ae-Se)*b,(ee-we)*a,(ae-Ae)*b,(ee-Re)*a,(ae-Se)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+we)*a,ae*b,(ee+Re)*a,(ae-Se)*b,(ee+we)*a,(ae-Ae)*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*b,(ee+we)*a,(ae+Ae)*b,(ee+(Re+we)/2)*a,(ae+(Se+Ae)/2)*b)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*b)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*b)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*b)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*b));var At=new go.PathFigure(.2*a,b,!1);x.add(At),At.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*b));var un=new go.PathFigure(.8*a,b,!1);return x.add(un),un.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*b)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.1*a,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,b).close());var E=new go.PathFigure(.2*a,.2*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*b)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*b).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var E=new go.PathFigure(a,b,!1);x.add(E);var z=new go.PathFigure(.1*a,b,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.05*a,b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*b,0,b,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*b,.5*a,0,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,b,a,b,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,b));var E=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*b)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*b,E*a,E*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*b,.575*a,.725*b,.625*a,.375*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*b,.375*a,.375*b,.425*a,.725*b)),x}),go.Shape.defineFigureGenerator("Recycle",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.45*a,.95*b,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*b,.17*a,.95*b,.15*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*b,0,.675*b,0,.7*b)),y.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*b)),y.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*b));var E=new go.PathFigure(.475*a,.2*b,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*b)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*b,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*b)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*b)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*b)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*b,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*b));var z=new go.PathFigure(.675*a,.575*b,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*b,a,.8*b,a,.85*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*b)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*b)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*b)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*b)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ie,a,b){var x=new go.Geometry,y=.5,E=fe*.5,z=new go.PathFigure(a,y*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,b,a,(y+E)*b,(y+E)*a,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y*b,(y-E)*a,b,0,(y+E)*b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y*a,0,0,(y-E)*b,(y-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,y*b,(y+E)*a,0,a,(y-E)*b));var ee=new go.PathFigure(y*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,.15*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y*a,.85*b)),ee.add(new go.PathSegment(go.PathSegment.Move,0,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Move,a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*b)),ee.add(new go.PathSegment(go.PathSegment.Move,y*a,y*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*b)),x}),go.Shape.defineFigureGenerator("Package",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.15*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close());var E=new go.PathFigure(0,.15*b,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*b).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*b,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(0,.5*b,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*b).close()),x}),go.Shape.defineFigureGenerator("Component",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a,b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close());var E=new go.PathFigure(0,.2*b,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*b)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*b).close());var z=new go.PathFigure(0,.6*b,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*b)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*b).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.15*a,.6*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*b));var E=new go.PathFigure(.15*a,.6*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*b)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a,b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.35*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,.33*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.66*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*b)),y.add(new go.PathSegment(go.PathSegment.Move,a,.66*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*b,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*b).close());var z=.1,ee=fe*.1,ae=.2,te=.9,se=new go.PathFigure((ae-z)*a,te*b,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-z)*b,(ae-z)*a,(te-ee)*b,(ae-ee)*a,(te-z)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,te*b,(ae+ee)*a,(te-z)*b,(ae+z)*a,(te-ee)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te+z)*b,(ae+z)*a,(te+ee)*b,(ae+ee)*a,(te+z)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,te*b,(ae-ee)*a,(te+z)*b,(ae-z)*a,(te+ee)*b).close()),z=.1,ee=fe*.1,ae=.8,te=.9;var de=new go.PathFigure((ae-z)*a,te*b,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-z)*b,(ae-z)*a,(te-ee)*b,(ae-ee)*a,(te-z)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae+z)*a,te*b,(ae+ee)*a,(te-z)*b,(ae+z)*a,(te-ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te+z)*b,(ae+z)*a,(te+ee)*b,(ae+ee)*a,(te+z)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae-z)*a,te*b,(ae-ee)*a,(te+z)*b,(ae-z)*a,(te+ee)*b).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.2*a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,b)),x}),go.Shape.defineFigureGenerator("Forklift",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*b,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var z=new go.PathFigure(.5*a,.8*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*b)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*b));var ee=new go.PathFigure(.5*a,.7*b,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*b));var ae=.1,te=fe*.1,se=.1,de=.9,we=new go.PathFigure((se-ae)*a,de*b,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de-ae)*b,(se-ae)*a,(de-te)*b,(se-te)*a,(de-ae)*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,(se+ae)*a,de*b,(se+te)*a,(de-ae)*b,(se+ae)*a,(de-te)*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de+ae)*b,(se+ae)*a,(de+te)*b,(se+te)*a,(de+ae)*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,(se-ae)*a,de*b,(se-te)*a,(de+ae)*b,(se-ae)*a,(de+te)*b)),ae=.1,te=fe*.1,se=.4,de=.9;var Se=new go.PathFigure((se-ae)*a,de*b,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de-ae)*b,(se-ae)*a,(de-te)*b,(se-te)*a,(de-ae)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se+ae)*a,de*b,(se+te)*a,(de-ae)*b,(se+ae)*a,(de-te)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(de+ae)*b,(se+ae)*a,(de+te)*b,(se+te)*a,(de+ae)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se-ae)*a,de*b,(se-te)*a,(de+ae)*b,(se-ae)*a,(de+te)*b)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.1*a,.4*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*b).close());var E=new go.PathFigure(.45*a,.7*b,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*b));var z=new go.PathFigure(.55*a,.4*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*b)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*b).close());var se=.05,de=fe*.05,we=.175,Se=.95,ee=new go.PathFigure((we-se)*a,Se*b,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-se)*b,(we-se)*a,(Se-de)*b,(we-de)*a,(Se-se)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(we+se)*a,Se*b,(we+de)*a,(Se-se)*b,(we+se)*a,(Se-de)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+se)*b,(we+se)*a,(Se+de)*b,(we+de)*a,(Se+se)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(we-se)*a,Se*b,(we-de)*a,(Se+se)*b,(we-se)*a,(Se+de)*b));var se=.05,de=fe*.05,we=.375,Se=.95,ae=new go.PathFigure((we-se)*a,Se*b,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-se)*b,(we-se)*a,(Se-de)*b,(we-de)*a,(Se-se)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(we+se)*a,Se*b,(we+de)*a,(Se-se)*b,(we+se)*a,(Se-de)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+se)*b,(we+se)*a,(Se+de)*b,(we+de)*a,(Se+se)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(we-se)*a,Se*b,(we-de)*a,(Se+se)*b,(we-se)*a,(Se+de)*b));var se=.05,de=fe*.05,we=.625,Se=.95,te=new go.PathFigure((we-se)*a,Se*b,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-se)*b,(we-se)*a,(Se-de)*b,(we-de)*a,(Se-se)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(we+se)*a,Se*b,(we+de)*a,(Se-se)*b,(we+se)*a,(Se-de)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+se)*b,(we+se)*a,(Se+de)*b,(we+de)*a,(Se+se)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(we-se)*a,Se*b,(we-de)*a,(Se+se)*b,(we-se)*a,(Se+de)*b));var se=.05,de=fe*.05,we=.825,Se=.95,Re=new go.PathFigure((we-se)*a,Se*b,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-se)*b,(we-se)*a,(Se-de)*b,(we-de)*a,(Se-se)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(we+se)*a,Se*b,(we+de)*a,(Se-se)*b,(we+se)*a,(Se-de)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+se)*b,(we+se)*a,(Se+de)*b,(we+de)*a,(Se+se)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(we-se)*a,Se*b,(we-de)*a,(Se+se)*b,(we-se)*a,(Se+de)*b).close());var Ae=new go.PathFigure(0,b,!1);return x.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,b).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*b,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*b).close());var z=new go.PathFigure(.15*a,b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*b)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,b)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,b).close());var ee=.05,ae=fe*.05,te=.35,se=.775,de=new go.PathFigure((te-ee)*a,se*b,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(se-ee)*b,(te-ee)*a,(se-ae)*b,(te-ae)*a,(se-ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,se*b,(te+ae)*a,(se-ee)*b,(te+ee)*a,(se-ae)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(se+ee)*b,(te+ee)*a,(se+ae)*b,(te+ae)*a,(se+ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,se*b,(te-ae)*a,(se+ee)*b,(te-ee)*a,(se+ae)*b).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.75*b,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*b)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*b)),x}),go.Shape.defineFigureGenerator("Globe",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*b,.75*a,0,a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,a,.75*b,.75*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.25*a,b,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*b,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,b,.15*a,.25*b,.15*a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*b,.85*a,.25*b)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*b,.35*a,.3*b,.65*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*b,.35*a,.7*b,.65*a,.7*b)),x}),go.Shape.defineFigureGenerator("Wave",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.25*b,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*b,.1*a,0,.2*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*b,.425*a,.5*b,.575*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*b,.8*a,0,.9*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.75*b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*b,.1*a,.5*b,.2*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*b,.425*a,b,.575*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*b,.8*a,.5*b,.9*a,.5*b)),x}),go.Shape.defineFigureGenerator("Operator",function(ie,a,b){var x=new go.Geometry,y=.3,E=fe*.3,z=.5,ee=.7,ae=new go.PathFigure((z-y)*a,ee*b,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b));var te=new go.PathFigure(0,.7*b,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*b,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.5*a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.65*a,.3*b,.65*a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*b,.35*a,.3*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,b,.3*a,.6*b,.1*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.2*a,b,.35*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,b,.7*a,.6*b,.9*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*b,.8*a,b,.65*a,.95*b)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,0,.075*b,0,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,0,b,.4*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*b,.8*a,b,.85*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*b));var E=new go.PathFigure(0,.6*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*b)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*b)),x}),go.Shape.defineFigureGenerator("Delete",function(ie,a,b){var x=new go.Geometry,y=.5,E=fe*.5,z=.5,ee=.5,ae=new go.PathFigure((z-y)*a,ee*b,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b));var te=new go.PathFigure(.15*a,.5*b,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*b)),x}),go.Shape.defineFigureGenerator("Flag",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.1*b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*b,.15*a,0,.35*a,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*b,.65*a,.2*b,.85*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*b,.85*a,.6*b,.65*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*b,.35*a,.4*b,.15*a,.4*b).close()),x}),go.Shape.defineFigureGenerator("Help",function(ie,a,b){var x=new go.Geometry,y=.5,E=fe*.5,z=.5,ee=.5,ae=new go.PathFigure((z-y)*a,ee*b,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b).close()),y=.05,E=fe*.05,z=.5,ee=.8;var te=new go.PathFigure((z-y)*a,ee*b,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-y)*a,ee*b,(z-E)*a,(ee+y)*b,(z-y)*a,(ee+E)*b).close()),te.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*b)),te.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*b,.75*a,.475*b,.75*a,.225*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*b,.4*a,.2*b,.3*a,.25*b)),x}),go.Shape.defineFigureGenerator("Location",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.5*a,b,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*b,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*b,.5*a,0,.025*a,.025*b).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*b)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*b,.1*a,.1*b).close()))}),go.Shape.defineFigureGenerator("Lock",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var E=new go.PathFigure(.2*a,.5*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*b,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*b)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,.5*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*b));var E=new go.PathFigure(.2*a,.5*b,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*b)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*b)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*b,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*b)),x}),go.Shape.defineFigureGenerator("Gear",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*b,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*b,.79840625*a,.39915625*b,.7834375*a,.3635*b)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*b)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*b)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*b)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*b,.64228125*a,.2188125*b,.603875*a,.2021875*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*b)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*b)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*b)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*b,.39759375*a,.20190625*b,.36053125*a,.2176875*b)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*b)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*b)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*b)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*b,.21765625*a,.36059375*b,.201875*a,.397625*b)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*b)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*b)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*b)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*b,.20221875*a,.603875*b,.21884375*a,.64228125*b)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*b)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*b)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*b,.36353125*a,.78340625*b,.3991875*a,.79840625*b)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*b)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*b,.602375*a,.79809375*b,.63946875*a,.78234375*b)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*b)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*b)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*b)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*b,.78234375*a,.63940625*b,.798125*a,.602375*b)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*b).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*b)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*b,.1*a,.1*b).close()))}),go.Shape.defineFigureGenerator("Hand",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.5*b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*b,0,.375*b,.05*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*b,.3*a,.225*b,.4*a,.175*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*b,.46*a,.05*b,.525*a,.05*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*b,.525*a,.275*b,.475*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*b,a,.4*b,a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*b,.675*a,.55*b,.675*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*b,.65*a,.7*b,.65*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,b,.61*a,.85*b,.61*a,b)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*b,.435*a,b,0,b).close()),x}),go.Shape.defineFigureGenerator("Map",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,.2*b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,b).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*b)),y.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b)),y.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*b)),x}),go.Shape.defineFigureGenerator("Eject",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a,b)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.7).close());var E=new go.PathFigure(0,b*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*b)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*b)).add(new go.PathSegment(go.PathSegment.Line,a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,b)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*b).close()))}),go.Shape.defineFigureGenerator("Building",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*1,b*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.3)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,b*.85)),y.add(new go.PathSegment(go.PathSegment.Line,a,b*.85).close());var E=new go.PathFigure(.126*a,.85*b,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*b)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*b)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*b).close());var z=new go.PathFigure(.402*a,.85*b,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*b)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*b)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*b).close());var ee=new go.PathFigure(.678*a,.85*b,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*b)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*b).close());var ae=new go.PathFigure(.5*a,.1*b,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*b)),ae.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*b).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.8)),y.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.6)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.4)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.2)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.15)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,b*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.184,b*(1-.184)).close());var E=new go.PathFigure(a*.204,b,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,b*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,b*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,b*1).close());var z=new go.PathFigure(a*.408,b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,b*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,b*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,b*1).close());var ee=new go.PathFigure(a*.612,b,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,b*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,b*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,b*1).close());var ae=new go.PathFigure(a*.816,b,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.816,b*(1-.184*4))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-.184*5))),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*b,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.1).close());var z=new go.PathFigure(a*.055,.13*b,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.16).close());var ee=new go.PathFigure(a*.055,.18*b,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,b*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,b*.21).close());var ae=new go.PathFigure(a*1,0,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.65)),ae.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(.55*a,b,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*b)),y.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*b,0,.4*b,.225*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*b)),y.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*b)),y.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*b)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*b,.975*a,0,a,.08*b)),y.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*b)),y.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*b)),y.add(new go.PathSegment(go.PathSegment.Line,.55*a,b).close()),x}),go.Shape.defineFigureGenerator("Key",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*1,b*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*b)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*b)),y.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*b).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*b)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*b,.075*a,.075*b).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.08,b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*.95)),y.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1));var z=new go.PathFigure(a*.11,b*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),b*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),b*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,b*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),b*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),b*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),b*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),b*.8).close());var ae=new go.PathFigure(a*(.11+.24133333*2+.028*2),b*.1,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),b*.1)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),b*.8)),ae.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),b*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ie,a,b){var x=new go.Geometry,y=8,E=y*fe,z=new go.PathFigure(y,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,b-E,a-E,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,E,b,0,b-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,b*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*0).close());var ae=new go.PathFigure(a*.83,b*1,!1);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.83,b*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*.5)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.17,b*1).close());var te=new go.PathFigure(a*.78,b*.05,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.05)),te.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.25)),te.add(new go.PathSegment(go.PathSegment.Line,a*.78,b*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ie,a,b){var x=ie?ie.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,b/3);var y=x*fe,E=b*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-y,0,a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-y,a-y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,y,E,0,E-y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,.8,-y,-y)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*0,b*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.2,b*.45).close());var E=new go.PathFigure(a*1,b*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ie,a,b){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,b)).add(new go.PathSegment(go.PathSegment.Line,0,b).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*b)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*b)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*b).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*b)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*b).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*b)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*b)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*b).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*0,b*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.9)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.9).close());var E=new go.PathFigure(a*.1,b*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,b*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,b*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,b*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,b*.25).close());var z=new go.PathFigure(a*.28,b*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,b*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ie,a,b){var x=new go.Geometry,y=15,E=y*fe,z=new go.PathFigure(a*.62,b*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b-y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-y,b,a,b-E,a-E,b)),z.add(new go.PathSegment(go.PathSegment.Line,y,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b-y,E,b,0,b-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,b*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,b*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,b*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);x.add(y);var E=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-E)).close());var z=new go.PathFigure(a*.4,b*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);x.add(y);var E=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*0,b*1,!0);x.add(y);var E=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.8,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.66,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.755,b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*.93,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.64,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.61,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.39,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.36,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*.07,b*(1-E))),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*.055)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*(1-E)).close());var z=new go.PathFigure(a*.5,b*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,b*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,b*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,b*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*.15,b*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*.15,b*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.85,b*0)),y.add(new go.PathSegment(go.PathSegment.Line,a*.7,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.3,b*1).close());var E=new go.PathFigure(a*.235,b*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,b*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,b*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,b*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ie,a,b){var x=new go.Geometry,y=new go.PathFigure(a*.5,b*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*1,b*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*.75,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.55,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.65,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.5,b*1)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.75)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.55)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.65)),y.add(new go.PathSegment(go.PathSegment.Line,a*0,b*.5)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.35)),y.add(new go.PathSegment(go.PathSegment.Line,a*.25,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.45)),y.add(new go.PathSegment(go.PathSegment.Line,a*.45,b*.25)),y.add(new go.PathSegment(go.PathSegment.Line,a*.35,b*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},80727:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var ke={},Ft="5.0",ge={},le=null,be=!1,ct=!1,Ue=null,Pe=!1,Be=null,fe=null,nt=0;nt<arguments.length;nt++){var Xe=arguments[nt];if(Xe!==null)switch(typeof Xe){case"number":Ft=Xe.toFixed(1);break;case"string":Xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ft=Xe:Ue=Xe;break;case"object":typeof Xe.is3D!="undefined"?le=Xe:ge=Xe;break;case"boolean":be=Xe,ct=!0;break}}le===null&&(le={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!ct&&(be=!0)),Ue!==null&&ge.id===void 0&&(ge.id=Ue);var Qe="",at="",et=!1,qe=null,ie=null,a=null,b=!1,x=null,y=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var ae=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};ke.setHTML5Codebase=function(ye,Ge){fe=ye,Et(ye,Ge)},ke.setJavaCodebase=ke.setJavaCodebaseVersion=ke.isCompiledInstalled=ke.setPreCompiledScriptPath=ke.setPreCompiledResourcePath=function(){},ke.setHTML5CodebaseVersion=function(ye,Ge){var dt=parseFloat(ye);if(dt!==NaN&&dt<5){console.log("The GeoGebra HTML5 codebase version "+dt+" is deprecated. Using version latest instead.");return}Be=ye,rt(ye,Ge)},ke.getHTML5CodebaseVersion=function(){return ie},ke.getParameters=function(){return ge},ke.setFontsCSSURL=function(ye){z=ye},ke.setGiacJSURL=function(ye){},ke.setJNLPFile=function(ye){Qe=ye},ke.setJNLPBaseDir=function(ye){},ke.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ge="auto",dt=ge.id,Tt,it=!1,pt=0;pt<arguments.length;pt++){var ue=arguments[pt];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ge=ue:dt=arguments[pt]):typeof ue=="boolean"?it=ue:ue instanceof HTMLElement&&(Tt=ue)}We();function We(){if(!Pe){setTimeout(We,200);return}Ge=gt(Ge);var bt=Tt||document.getElementById(dt);if(!bt){console.log("possibly bug on ajax loading? ");return}if(ke.removeExistingApplet(bt,!1),ge.width===void 0&&bt.clientWidth&&(ge.width=bt.clientWidth),ge.height===void 0&&bt.clientHeight&&(ge.height=bt.clientHeight),!(ge.width&&ge.height)&&Ge==="html5"&&(delete ge.width,delete ge.height),qe=Ge,Ge==="screenshot")un(bt,ge);else{var fn=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?fn=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(fn=(!te()||ye())&&se()),fn?(qe="screenshot",Ie(bt,ge,it,Ge)):At(bt,ge,it)}}};function te(){try{return window.self!==window.top}catch(ye){return!0}}function se(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ke.getViews=function(){return le},ke.isJavaInstalled=function(){return!1};var de=function(ye){var Ge=function(pt){var ue=JSON.parse(pt),We=function(ln){return ln.type=="G"||ln.type=="E"},bt=ue.elements?ue.elements.filter(We)[0]:ue;if(!bt||!bt.url){dt();return}ge.fileName=bt.url,we(bt.settings||{}),le.is3D=!0;var fn="https://www.geogebra.org/images/";ke.setPreviewImage(x||bt.previewUrl,fn+"GeoGebra_loading.png",fn+"applet_play.png"),ye()},dt=function(){ge.onError&&ge.onError(),ht("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Tt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",it="/materials/"+ge.material_id+"?scope=basic";Se("https://"+Tt+"/api/proxy.php?path="+encodeURIComponent(it),Ge,dt)};function we(ye){var Ge=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(dt){ye[dt]=!!ye[dt]}),Ge.forEach(function(dt){ge[dt]===void 0&&ye[dt]!==void 0&&(ge[dt]=ye[dt])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function Se(ye,Ge,dt){var Tt=new XMLHttpRequest;Tt.open("GET",ye),Tt.onload=function(){Ge(Tt.responseText)},Tt.onerror=dt,Tt.send()}ke.isHTML5Installed=function(){return!0},ke.getLoadedAppletType=function(){return qe},ke.setPreviewImage=function(ye,Ge,dt){x=ye,y=Ge,E=dt},ke.removeExistingApplet=function(ye,Ge){var dt;typeof ye=="string"&&(ye=document.getElementById(ye)),qe=null;var Tt=null;for(dt=0;dt<ye.childNodes.length;dt++){var it=ye.childNodes[dt],pt=it.className;pt==="applet_screenshot"?Ge?(it.style.display="block",qe="screenshot"):it.style.display="none":pt!=="applet_scaler prerender"&&(ye.removeChild(it),Tt=pt&&pt.indexOf("appletParameters")!=-1?it.id:null,dt--)}var ue=ge.id!==void 0?ge.id:Tt,We=window[ue];We&&typeof We.getBase64=="function"&&(We.remove(),window[ue]=null)},ke.refreshHitPoints=function(){if(ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=ke.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},ke.startAnimation=function(){var ye=ke.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},ke.stopAnimation=function(){var ye=ke.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},ke.getAppletObject=function(){var ye=ge.id!==void 0?ge.id:"ggbApplet";return window[ye]},ke.resize=function(){};var Re=function(ye,Ge,dt){var Tt=document.createElement("param");Tt.setAttribute("name",Ge),Tt.setAttribute("value",dt),ye.appendChild(Tt)},Ae=function(ye){return ye&&ye!=="false"},At=function(ye,Ge,dt){ae(ie)<=4.2&&(dt=!0);var Tt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ie||ggbHTML5LoadedCodebaseIsWebSimple&&!b)&&(Tt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var it=document.createElement("div");it.classList.add("appletParameters","notranslate");var pt=Ge.width,ue=Ge.height;if(Ge.disableAutoScale=Ge.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ge.disableAutoScale,Ge.width!==void 0)if(ae(ie)<=4.4)Ae(Ge.showToolBar)&&(Ge.height-=7),Ae(Ge.showAlgebraInput)&&(Ge.height-=37),Ge.width<605&&Ae(Ge.showToolBar)&&(Ge.width=605,pt=605);else{var We=100;(Ae(Ge.showToolBar)||Ae(Ge.showMenuBar))&&(Ge.hasOwnProperty("customToolBar")&&(Ge.customToolbar=Ge.customToolBar),We=Ae(Ge.showMenuBar)?245:155),pt<We&&(Ge.width=We,pt=We)}it.style.border="none",it.style.display="inline-block";for(var bt in Ge)Ge.hasOwnProperty(bt)&&bt!=="appletOnLoad"&&it.setAttribute("data-param-"+bt,Ge[bt]);z&&it.setAttribute("data-param-fontscssurl",z),ke.resize=function(){GGBAppletUtils.responsiveResize(ye,Ge)},window.addEventListener("resize",function(zt){ke.resize()});var fn=typeof Ge.appletOnLoad=="function"?Ge.appletOnLoad:function(){};if(!dt&&Ge.width!==void 0){Ge.hasOwnProperty("showSplash")||it.setAttribute("data-param-showSplash","false");var ln=ye.querySelector(".applet_scaler.prerender"),_e=ln!==null;if(_e)var Ee=ln.querySelector(".ggb_preview");else{var Ee=St(pt,ue,Ge.borderColor,!1);ln=document.createElement("div"),ln.className="applet_scaler",ln.style.position="relative",ln.style.display="block",ln.style.width=pt+"px",ln.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ln,"66%"),ae(ie)>=5?(Ge.appletOnLoad=function(zt){var Rt=ye.querySelector(".ggb_preview");Rt&&Rt.parentNode.removeChild(Rt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ln),window.GGBT_wsf_view&&$(window).trigger("resize"),fn(zt)},_e||ln.appendChild(Ee)):it.appendChild(Ee),ln.appendChild(it),_e||ye.appendChild(ln),setTimeout(function(){ke.resize()},1)}else{var Le=document.createElement("div");Le.className="applet_scaler",Le.style.position="relative",Le.style.display="block",Le.appendChild(it),ye.appendChild(Le),Ge.appletOnLoad=function(zt){ke.resize(),fn(zt)}}function Ke(zt,Rt){Rt&&typeof Rt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(zt,Rt.appletOnLoad):renderGGBElement(zt),ht("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Rt)}function Je(zt,Rt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:zt,params:Rt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(rn){Ke(rn.article,rn.params)}),html5AppletsToProcess=null)},ae(ie)<5&&(zt.className+=" geogebraweb")):Ke(zt,Rt)}if(Tt){scriptLoadStarted=!0;for(var $t=0;$t<it.childNodes.length;$t++){var Jt=it.childNodes[$t].tagName;Jt==="TABLE"&&(it.removeChild(it.childNodes[$t]),$t--)}if(ggbHTML5LoadedScript!==null){var Gt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Gt!=null&&Gt.parentNode.removeChild(Gt)}var on=document.createElement("script"),Nt=function(){Je(it,Ge)};on.src=at+a,ggbHTML5LoadedCodebaseIsWebSimple=b,ggbHTML5LoadedCodebaseVersion=ie,ggbHTML5LoadedScript=on.src,ht("GeoGebra HTML5 codebase loaded: '"+at+"'.",Ge),!fe&&(!Be||Be=="5.0")?(b?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Nt()):at.requirejs?__webpack_require__.e(4184).then(function(){var zt=[__webpack_require__(74620)];Nt.apply(null,zt)}.bind(this)).catch(__webpack_require__.oe):(on.onload=Nt,ye.appendChild(on))}else Je(it,Ge);Ge.height=ue,Ge.width=pt},un=function(ye,Ge,dt){var Tt=St(Ge.width,Ge.height,Ge.borderColor,dt),it=document.createElement("div");it.style.position="relative",it.style.display="block",it.style.width=Ge.width+"px",it.style.height=Ge.height+"px",it.className="applet_screenshot applet_scaler"+(dt?" applet_screenshot_play":""),it.appendChild(Tt);var pt=GGBAppletUtils.getScale(Ge,ye,dt);dt?(ye.appendChild(yt()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(it,"66%"),ye.appendChild(it),pt!==1&&!isNaN(pt)&&(GGBAppletUtils.scaleElement(it,pt),it.style.width=Ge.width+"px",it.style.height=Ge.height+"px",it.parentNode.style.width=Ge.width*pt+"px",it.parentNode.style.height=Ge.height*pt+"px"),ke.resize=function(){xn(ye,Tt,it,dt)},window.addEventListener("resize",function(ue){ke.resize()}),ke.resize()};function xn(ye,Ge,dt,Tt){if(ye.contains(Ge)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var it=GGBAppletUtils.getScale(ge,ye,Tt);dt.parentNode!==null&&(!isNaN(it)&&it!==1?(GGBAppletUtils.scaleElement(dt,it),dt.parentNode.style.width=ge.width*it+"px",dt.parentNode.style.height=ge.height*it+"px"):(GGBAppletUtils.scaleElement(dt,1),dt.parentNode.style.width=ge.width+"px",dt.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ke.onExitFullscreen=function(ye,Ge){Ge.appendChild(ye)};var Ie=function(ye,Ge,dt,Tt){un(ye,Ge,!0);for(var it=function(){var We=[];for(ue=0;ue<ye.childNodes.length;ue++)We.push(ye.childNodes[ue]);if(window.GGBT_wsf_view){var bt=window.GGBT_wsf_view.renderFullScreen(ye,Ge.id),fn=document.getElementById("fullscreencontainer"),ln=jQuery(ye).find(".fullscreencontent");ln.length>0?(bt.remove(),ln.attr("id","fullscreencontent").show(),jQuery(fn).append(ln),window.dispatchEvent(new Event("resize"))):At(bt,Ge,!1),window.GGBT_wsf_view.launchFullScreen(fn)}else qe=Tt,At(ye,Ge,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<We.length;ue++)ye.removeChild(We[ue])},pt=ye.getElementsByClassName("ggb_preview_play"),ue=0;ue<pt.length;ue++)pt[ue].addEventListener("click",it,!1),pt[ue].addEventListener("ontouchstart",it,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),se()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},yt=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ge='.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");}',dt=document.createElement("style");dt.styleSheet?dt.styleSheet.cssText=Ge:dt.appendChild(document.createTextNode(Ge)),document.getElementsByTagName("head")[0].appendChild(dt)}return ye},St=function(ye,Ge,dt,Tt){var it=document.createElement("div");it.className="ggb_preview",it.style.position="absolute",it.style.zIndex="90",it.style.width=ye-2+"px",it.style.height=Ge-2+"px",it.style.top="0px",it.style.left="0px",it.style.overflow="hidden",it.style.backgroundColor="white";var pt="lightgrey";dt!==void 0&&(dt==="none"?pt="transparent":pt=dt),it.style.border="1px solid "+pt;var ue=document.createElement("img");if(ue.style.position="relative",ue.style.zIndex="1000",ue.style.top="-1px",ue.style.left="-1px",x!==null&&ue.setAttribute("src",x),ue.style.opacity=.7,y!==null){var We,bt,fn;if(!Tt){We=document.createElement("img"),We.style.position="absolute",We.style.zIndex="1001",We.style.opacity=1,ue.style.opacity=.3,bt=360,bt>ye/4*3&&(bt=ye/4*3),fn=bt/5.8,We.setAttribute("src",y),We.setAttribute("width",bt),We.setAttribute("height",fn);var ln=(ye-bt)/2,_e=(Ge-fn)/2;We.style.left=ln+"px",We.style.top=_e+"px",it.appendChild(We)}}return it.appendChild(ue),it},gt=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},Lt=["web","webSimple","web3d","tablet","tablet3d","phone"],rt=function(ye,Ge){if(ie=ye,Ge){Et(ie,!0);return}var dt=!be;if(dt){var Tt=ae(ie);!isNaN(Tt)&&Tt<4.4&&(dt=!1)}var it,pt;window.location.protocol.substr(0,4)==="http"?it=window.location.protocol:it="http:";var ue=ie.indexOf("//");ue>0?pt=ie:ue===0?pt=it+ie:pt="https://www.geogebra.org/apps/5.2.814.0/";for(var We in Lt)if(ie.slice(Lt[We].length*-1)===Lt[We]||ie.slice((Lt[We].length+1)*-1)===Lt[We]+"/"){Et(pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&dt&&!le.is3D&&!le.AV&&!le.SV&&!le.CV&&!le.EV2&&!le.CP&&!le.PC&&!le.DA&&!le.FI&&!le.PV&&!Ae(ge.showToolBar)&&!Ae(ge.showMenuBar)&&!Ae(ge.showAlgebraInput)&&!Ae(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?pt+="webSimple/":pt+="web3d/",Et(pt,!1)},Et=function(ye,Ge){if(ye.requirejs){at=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),at=ye,Ge===null&&(Ge=ye.indexOf("http")===-1),et=Ge,a="web.nocache.js",b=!1;var dt=at.split("/");dt.length>1&&(!Ge&&dt[dt.length-2]==="webSimple"?(a="webSimple.nocache.js",b=!0):Lt.indexOf(dt[dt.length-2])>=0&&(a=dt[dt.length-2]+".nocache.js")),dt=ye.split("/"),ie=dt[dt.length-3],ie.substr(0,4)==="test"?ie=ie.substr(4,1)+"."+ie.substr(5,1):(ie.substr(0,3)==="war"||ie.substr(0,4)==="beta")&&(ie="5.0");var Tt=parseFloat(ie);Tt!==NaN&&Tt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Tt+" is deprecated. Using version latest instead."),rt("5.0",Ge))},ht=function(ye,Ge){window.console&&window.console.log&&(!Ge||typeof Ge.showLogging=="undefined"||Ge.showLogging&&Ge.showLogging!=="false")&&console.log(ye)};ge.material_id!==void 0?de(pn):pn();function pn(){var ye=Ft;Be!==null?ye=Be:parseFloat(ye)<5&&(ye="5.0"),rt(ye,!1),fe!==null&&Et(fe,et),Pe=!0}return ke},GGBAppletUtils=function(){"use strict";function ke(){return window.GGBT_wsf_edit!==void 0}function Ft(Pe,Be){Be!=1?(Pe.style.transformOrigin="0% 0% 0px",Pe.style.webkitTransformOrigin="0% 0% 0px",Pe.style.transform="scale("+Be+","+Be+")",Pe.style.webkitTransform="scale("+Be+","+Be+")",Pe.style.maxWidth="initial",Pe.querySelector(".ggb_preview")!==null&&(Pe.querySelector(".ggb_preview").style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Pe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Pe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Pe.style.transform="none",Pe.style.webkitTransform="none")}function ge(Pe,Be,fe,nt,Xe,Qe){var at=null;if(Qe!=null&&Qe!="")for(var et=Pe.parentNode;et!=null;)if((" "+et.className+" ").indexOf(" "+Qe+" ")>-1){at=et;break}else et=et.parentNode;var qe=0,ie=0,a=0,b=0,x=0,y=0,E=0;if(at)qe=at.offsetWidth,ie=Math.max(nt?at.offsetWidth:0,at.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(qe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),a=qe):(qe=window.innerWidth,ie=window.innerHeight,a=window.innerWidth),Pe){var z=Pe.getBoundingClientRect();z.left>0&&z.left<=qe&&(Xe===void 0||!Xe)&&(document.dir==="rtl"?(x=qe-z.width-z.left,y=a<=480?10:30):(y=z.left,x=a<=480?10:30),b=y+x)}if(Pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Pe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(b=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(b=0,E=40)}}return Pe&&((fe===void 0||!fe)&&Be>0&&Be+b<qe?qe=Be:qe-=b,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe===void 0||!fe)&&(ie-=E)),{width:qe,height:ie}}function le(Pe,Be,fe,nt,Xe){if(Pe.isScreenshoGenerator)return 1;var Qe=nt!==void 0&&nt,at=Pe.noScaleMargin!=null&&Pe.noScaleMargin,et=function(ee){return ee&&ee!=="false"},qe=et(Pe.autoHeight),ie=ge(Be,Pe.width,fe,qe,Qe&&window.GGBT_wsf_view||at,Xe),a=parseInt(ie.width),b=Pe.width,x=Pe.height;if(b===void 0){var y=Be.querySelector(".appletParameters");y&&(b=y.offsetWidth,x=y.offsetHeight)}var E=a/b,z=Qe?1:ie.height/x;return fe!==void 0&&!fe&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function be(Pe,Be,fe){var nt=1,Xe,Qe=!1;if(Pe.hasOwnProperty("allowUpscale")&&(Qe=Pe.allowUpscale),Pe.hasOwnProperty("scale")&&(nt=parseFloat(Pe.scale),(isNaN(nt)||nt===null||nt===0)&&(nt=1),nt>1&&(Qe=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Qe=!0),!(Pe.hasOwnProperty("disableAutoScale")&&Pe.disableAutoScale))Xe=le(Pe,Be,Qe,fe,Pe.scaleContainerClass);else return nt;return Qe&&(!Pe.hasOwnProperty("scale")||nt===1)?Xe:Math.min(nt,Xe)}function ct(Pe){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=Pe.getBoundingClientRect(),Xe=(Be-nt.width)/2,Qe=(fe-nt.height)/2;Qe<0&&(Qe=0),Pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Xe<40?Pe.style.left="40px":Pe.style.left=Xe+"px",Pe.style.top=Qe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Qe<40?Pe.style.top="40px":Pe.style.top=Qe+"px",Pe.style.left=Xe+"px")}function Ue(Pe,Be){var fe=Pe.querySelector(".appletParameters");if(fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!==fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Pe)}if(fe.parentElement&&/fullscreen/.test(fe.parentElement.className))return;var nt=be(Be,Pe);ke()&&fe.setAttribute("data-param-scale",nt);for(var Xe=null,Qe=0;Qe<Pe.childNodes.length;Qe++)if(Pe.childNodes[Qe].className!==void 0&&Pe.childNodes[Qe].className.match(/^applet_scaler/)){Xe=Pe.childNodes[Qe];break}if(Xe!==null&&Xe.querySelector(".noscale")!==null)return;var at=Be.id!==void 0?Be.id:"ggbApplet",et=window[at];(et==null||!et.recalculateEnvironments)&&Xe!==null&&!Xe.className.match(/fullscreen/)&&(Xe.parentNode.style.transform="",!isNaN(nt)&&nt!==1?(Xe.parentNode.style.width=Be.width*nt+"px",Xe.parentNode.style.height=Be.height*nt+"px",Ft(Xe,nt)):(Ft(Xe,1),Xe.parentNode.style.width=Be.width+"px",Xe.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ct(Pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:ke,positionCenter:ct,getScale:be,scaleElement:Ft}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var ke=n.location.search;return ke.indexOf(J)!=-1||ke.indexOf(K)!=-1}function q(ke,Ft){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(ke){var Ft=s[L].bindings;s[L].bindings=function(){for(var ge=Ft?Ft():{},le=ke[webModule.__softPermutationId],be=O;be<le.length;be++){var ct=le[be];ge[ct[O]]=ct[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var ke=o.createElement(Q);if(ke.id=L,ke.style.cssText=R+S,ke.tabIndex=-1,o.body.appendChild(ke),t=ke.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ft=document.compatMode==U?V:W;t.write(Ft+X),t.close()}}}function w(ke){function Ft(le){function be(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ct=be();if(ct){le();return}function Ue(){if(!ct){if(!be())return;ct=!0,le(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),Pe&&clearInterval(Pe)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var Pe=setInterval(function(){Ue()},$)}function ge(le){var be=u(),ct=be.body,Ue=be.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=le,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),ct.appendChild(Ue)}Ft(function(){ge(ke)})}webModule.__startLoadingFragment=function(ke){return C(ke)},webModule.__installRunAsyncCode=function(ke){var Ft=u(),ge=Ft.body,le=Ft.createElement(_);le.language=ab,le.text=ke,ge.appendChild(le),ge.removeChild(le)};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(ke){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ke){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ke){var Ft=c[ke];return Ft==null?null:Ft},r=d,webModule.__errFn=e}function B(){function ke(Pe){var Be=Pe.lastIndexOf(rb);Be==-1&&(Be=Pe.length);var fe=Pe.indexOf(sb);fe==-1&&(fe=Pe.length);var nt=Pe.lastIndexOf(tb,Math.min(fe,Be));return nt>=O?Pe.substring(O,nt+P):W}function Ft(Pe){if(!Pe.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=Pe+vb,Pe=ke(Be.src)}return Pe}function ge(){var Pe=__gwt_getMetaProperty(wb);return Pe!=null?Pe:W}function le(){for(var Pe=o.getElementsByTagName(_),Be=O;Be<Pe.length;++Be)if(Pe[Be].src.indexOf(xb)!=-1)return ke(Pe[Be].src);return W}function be(){var Pe=o.getElementsByTagName(yb);return Pe.length>O?Pe[Pe.length-P].href:W}function ct(){var Pe=o.location;return Pe.href==Pe.protocol+zb+Pe.host+Pe.pathname+Pe.search+Pe.hash}var Ue=ge();return Ue==W&&(Ue=le()),Ue==W&&(Ue=be()),Ue==W&&ct()&&(Ue=ke(o.location.href)),Ue=Ft(Ue),Ue}function C(ke){return ke.match(/^\//)||ke.match(/^[a-zA-Z]+:\/\//)?ke:webModule.__moduleBase+ke}function D(){var ke=[],Ft=O,ge=[],le=[];function be(Pe){var Be=le[Pe](),fe=ge[Pe];if(Be in fe)return Be;var nt=[];for(var Xe in fe)nt[fe[Xe]]=Xe;throw r&&r(Pe,nt,Be),null}if(__gwt_isKnownPropertyValue=function(Pe,Be){return Be in ge[Pe]},webModule.__getPropMap=function(){var Pe={};for(var Be in ge)ge.hasOwnProperty(Be)&&(Pe[Be]=be(Be));return Pe},webModule.__computePropValue=be,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ct;try{ct=Cb;var Ue=ct.indexOf(Db);Ue!=-1&&(Ft=parseInt(ct.substring(Ue+P),$),ct=ct.substring(O,Ue))}catch(Pe){}return webModule.__softPermutationId=Ft,C(ct+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},77903:function(ke,Ft,ge){"use strict";ge.d(Ft,{Ax:function(){return Ue},Ds:function(){return Pe},KI:function(){return fe},SI:function(){return ct},f1:function(){return be}});var le=ge(3294);function be(nt){let Xe=!0;if(nt.length>0){for(let Qe=0;Qe<nt.length;Qe++)if(nt[Qe].compile_success==0||!nt[Qe].compile_success){Xe=!1;break}}else Xe=!1;return Xe}function ct(nt,Xe=""){let Qe=[];for(let at=0;at<nt.length;at++){let et=nt[at],qe=Xe?`${Xe}/${et.name}`:`${et.name}`;Qe.push({title:et.name,type:et.type,isLeaf:et.type!=="tree",key:qe})}return Qe}function Ue(nt,Xe,Qe){for(let at=0;at<nt.length;at++){let et=nt[at];if(et.key===Xe){et.children=Qe;break}et.children&&Ue(et.children,Xe,Qe)}return nt}function Pe(nt,Xe,Qe){let at;return function(){let et=this,qe=arguments,ie=function(){at=null,Qe||nt.apply(et,qe)},a=Qe&&!at;clearTimeout(at),at=setTimeout(ie,Xe),a&&nt.apply(et,qe)}}const Be=!0,fe=le.Z.API_SERVER},73524:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return at}});var le=ge(59301),be={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ct=ge(92310),Ue=ge.n(ct),Pe=ge(71418),Be=ge(2859),fe=ge(99064),nt=ge(955),Xe=(et,qe,ie)=>new Promise((a,b)=>{var x=z=>{try{E(ie.next(z))}catch(ee){b(ee)}},y=z=>{try{E(ie.throw(z))}catch(ee){b(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,y);E((ie=ie.apply(et,qe)).next())}),at=({data:et,className:qe,fullWidth:ie,style:a={},onClose:b,onOk:x,showFullTools:y,noAssociationId:E})=>{const z=(0,le.useRef)(null),ee=(0,le.useRef)(null),ae=(0,le.useRef)(null),te=(0,le.useRef)(null),[se,de]=(0,le.useState)(!1),[we,Se]=(0,le.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,le.useEffect)(()=>{ae.current||(ae.current=document.createElement("style"),document.head.appendChild(ae.current)),et!=null&&et.visible?(document.body.setAttribute("data-custom","y-hidden"),ae.current.innerHTML=" html { overflow-y: hidden; }",et!=null&&et.src&&Re()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null))},[et==null?void 0:et.visible]);const Re=()=>Xe(void 0,null,function*(){de(!0),Se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ie=yield(0,nt.ZJ)(et==null?void 0:et.src);z.current.src="",z.current.src=Ie,z.current.onload=function(){xn()},de(!1),Se("")}),Ae=()=>{document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",b()},At=Ie=>Xe(void 0,null,function*(){de(!0),Se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const yt=yield(0,fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:et.title,file:Ie.dataUrl}});yt!=null&&yt.id&&!E?(yield(0,fe.ZP)(`/api/attachments/${et.id}/add_subitem.json`,{method:"post",body:{subitem_id:yt==null?void 0:yt.id,settings:JSON.stringify(Ie.state)}})).status===0&&x():yt!=null&&yt.id&&x(yt),document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",de(!1),Se("")}),un=()=>{const Ie=document.querySelector('a[href="https://markerjs.com/"]');Ie&&Ie.parentNode&&(Ie.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(St=>{const gt=document.querySelector(St.name);gt&&gt.setAttribute("title",St.title)})},xn=()=>{ee.current=new Be.hP(z.current),ee.current.targetRoot=te.current,ee.current.addEventListener("render",At),ee.current.addEventListener("beforeclose",Ae),y&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),et!=null&&et.snapshotData&&ee.current.restoreState(et.snapshotData),setTimeout(()=>{window.scrollTo(0,0),un()},300)};return le.createElement(le.Fragment,null,(et==null?void 0:et.visible)&&le.createElement(Pe.Z,{spinning:se,tip:we,style:{position:"absolute"}},le.createElement("div",{ref:te,className:Ue()(be.imageDimensions,qe,ie?be.fullWidth:""),style:a},le.createElement("img",{className:be.img,ref:z}))))}},41588:function(ke,Ft,ge){"use strict";var le=ge(59301),be=ge(95237),ct=ge(43604),Ue=ge(99313),Pe=ge(3113),Be=ge(85149),fe=ge(88010),nt=ge(48136),Xe=ge(59301);const Qe=(0,le.forwardRef)(({callback:at,showSaveButton:et,value:qe=""},ie)=>{const a=(0,le.useRef)(),b=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],y=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Xe.createElement(be.Z,{className:fe.Z.lists,gutter:[10,10]},b.map((ee,ae)=>Xe.createElement(ct.Z,{flex:"110px",className:fe.Z.item},Xe.createElement("div",null,Xe.createElement(Be.Z,{value:`$$${ee.value}$$`}),ee.name),Xe.createElement("div",{className:fe.Z.children},ee.children.map((te,se)=>Xe.createElement("div",{key:se},Xe.createElement("h1",null,te.name),Xe.createElement(be.Z,{gutter:[10,10]},te.data.map((de,we)=>Xe.createElement(ct.Z,{key:we,onClick:()=>y(de),className:fe.Z.diamond},Xe.createElement(Be.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Xe.createElement(be.Z,{className:fe.Z.lists,gutter:[10,10]},x.map((ee,ae)=>Xe.createElement(ct.Z,{flex:"110px",className:fe.Z.item},Xe.createElement("div",null,Xe.createElement(Be.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Xe.createElement("div",{className:fe.Z.children},ee.children.map((te,se)=>Xe.createElement("div",{key:se},te.name&&Xe.createElement("h1",null,te.name),Xe.createElement(be.Z,{gutter:[10,10]},te.data.map((de,we)=>Xe.createElement(ct.Z,{key:we,onClick:()=>y(de),className:fe.Z.diamond},Xe.createElement(Be.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ae=ee.innerText;return at&&at(ae),ae};return(0,le.useImperativeHandle)(ie,()=>({getData:z})),Xe.createElement("div",{className:fe.Z.mathWrap},Xe.createElement(Ue.default,{defaultActiveKey:"1",items:E}),Xe.createElement("math-field",{locale:"zh_cn",className:fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},qe||""),et&&Xe.createElement("div",{className:fe.Z.button},Xe.createElement(Pe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ft.Z=Qe},57490:function(ke,Ft,ge){"use strict";ge.d(Ft,{z:function(){return gt},Z:function(){return Lt}});var le=ge(59301),be=ge(54580),ct=ge(8591),Ue=ge(43418),Pe=ge(3113),Be=ge(3294),fe=ge(23538),nt=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,et=(rt,Et,ht)=>Et in rt?nt(rt,Et,{enumerable:!0,configurable:!0,writable:!0,value:ht}):rt[Et]=ht,qe=(rt,Et)=>{for(var ht in Et||(Et={}))Qe.call(Et,ht)&&et(rt,ht,Et[ht]);if(Xe)for(var ht of Xe(Et))at.call(Et,ht)&&et(rt,ht,Et[ht]);return rt},ie=(rt,Et,ht)=>new Promise((pn,ye)=>{var Ge=it=>{try{Tt(ht.next(it))}catch(pt){ye(pt)}},dt=it=>{try{Tt(ht.throw(it))}catch(pt){ye(pt)}},Tt=it=>it.done?pn(it.value):Promise.resolve(it.value).then(Ge,dt);Tt((ht=ht.apply(rt,Et)).next())});const a="\u3000\u3000";function b(rt){var Et=["Bytes","KB","MB","GB","TB"];if(rt==0)return"0 Byte";var ht=parseInt(""+Math.floor(Math.log(rt)/Math.log(1024)),10);return(rt/Math.pow(1024,ht)).toFixed(1)+" "+Et[ht]}var x=({value:rt=[],action:Et,onChange:ht,className:pn,maxSize:ye=150,title:Ge="\u6587\u4EF6\u4E0A\u4F20",accept:dt=null})=>{const Tt={multiple:!1,fileList:rt,accept:dt,withCredentials:!0,beforeUpload:pt=>pt.size/1024/1024<ye?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ye}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(pt){var ue,We,bt,fn;let ln=[...pt.fileList];if(ln=ln.map(_e=>(_e.name.indexOf(a)===-1&&(_e.name=`${_e.name}${a}${b(_e.size)}`),qe({},_e))),pt.file.status==="done"&&((We=(ue=pt.file)==null?void 0:ue.response)==null?void 0:We.status)===-1){message.error((fn=(bt=pt.file)==null?void 0:bt.response)==null?void 0:fn.message),ht([]);return}ht(ln)},onRemove:pt=>ie(void 0,null,function*(){const ue=pt.size/1024/1024;return pt.status==="uploading"?!0:ue<ye&&(pt.response?pt.response.id:pt.uid)?yield removeAttachment(pt.response?pt.response.id:pt.id):!0})};function it(pt){pt.preventDefault(),pt.stopPropagation()}return React.createElement("div",{className:`single-upload ${pn||""}`},React.createElement(Upload,qe({},Tt),React.createElement(Button,{type:"primary",title:rt.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:rt.length>0,ghost:!0},Ge),React.createElement("span",{onClick:it,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",ye,"M)"," ")))},y=ge(61481),E=ge(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,se=(rt,Et,ht)=>Et in rt?z(rt,Et,{enumerable:!0,configurable:!0,writable:!0,value:ht}):rt[Et]=ht,de=(rt,Et)=>{for(var ht in Et||(Et={}))ae.call(Et,ht)&&se(rt,ht,Et[ht]);if(ee)for(var ht of ee(Et))te.call(Et,ht)&&se(rt,ht,Et[ht]);return rt};const we=rt=>React.createElement("svg",de({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},rt),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var Se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Re=Object.defineProperty,Ae=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,xn=(rt,Et,ht)=>Et in rt?Re(rt,Et,{enumerable:!0,configurable:!0,writable:!0,value:ht}):rt[Et]=ht,Ie=(rt,Et)=>{for(var ht in Et||(Et={}))At.call(Et,ht)&&xn(rt,ht,Et[ht]);if(Ae)for(var ht of Ae(Et))un.call(Et,ht)&&xn(rt,ht,Et[ht]);return rt},yt=(rt,Et,ht)=>new Promise((pn,ye)=>{var Ge=it=>{try{Tt(ht.next(it))}catch(pt){ye(pt)}},dt=it=>{try{Tt(ht.throw(it))}catch(pt){ye(pt)}},Tt=it=>it.done?pn(it.value):Promise.resolve(it.value).then(Ge,dt);Tt((ht=ht.apply(rt,Et)).next())});const{Dragger:St}=be.default;function gt(rt){let Et=[];return rt&&rt.length>0&&(Et=rt.map(ht=>({uid:ht.id,id:ht.id,name:ht.title+a+ht.filesize,url:ht.url,filesize:ht.filesize,status:"done",response:{id:ht.id}}))),Et}var Lt=({value:rt,onChange:Et,action:ht,data:pn,className:ye,maxSize:Ge=150,title:dt="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Tt=!1,accept:it="",additionalText:pt,isDragger:ue,number:We=1e3,aloneClear:bt=!1,realTimeRemove:fn=!0,uploadText:ln,setFileProgress:_e,showFileProgress:Ee})=>{const[Le,Ke]=(0,le.useState)(!1);let[Je,$t]=(0,le.useState)(rt||[]),[Jt,Gt]=(0,le.useState)(1);(0,le.useEffect)(()=>{rt&&(Jt===1&&$t([...rt]),Gt(2),We===(rt==null?void 0:rt.length)&&Ke(!0))},[rt]);const on=()=>{setTimeout(()=>{Je.pop(),$t([...Je])},500)};Ee&&_e(Je.some(Rt=>Rt.status==="uploading"));const Nt={multiple:!0,accept:it,withCredentials:!0,fileList:Je,beforeUpload:(Rt,rn)=>{const cn=Rt.size/1024/1024;return Je.concat(rn).length>We?(Je.pop(),$t([...Je]),ct.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${We}\u4E2A\u6587\u4EF6`),bt?Promise.reject():(on(),!1)):cn<Ge?!0:(ct.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ge}MB).`),bt?Promise.reject():(on(),!1))},data:pn,action:ht||`${Be.Z.API_SERVER}/api/attachments.json`,onChange(Rt){var rn,cn,Tn,Dn;if(Rt.file.status==="removed"?Je=Rt.fileList:Je=(0,E.uniqBy)([...Rt.fileList,...Je],"uid"),Rt.file.status==="done"&&((cn=(rn=Rt.file)==null?void 0:rn.response)==null?void 0:cn.status)===-1){ct.ZP.error((Dn=(Tn=Rt.file)==null?void 0:Tn.response)==null?void 0:Dn.message);return}Je.length>=We?Ke(!0):Ke(!1),$t([...Je]),Je=Je.map(wn=>{var Ce,Me;return(Ce=wn==null?void 0:wn.response)!=null&&Ce.id&&(wn.url=(Me=wn==null?void 0:wn.response)==null?void 0:Me.url),wn.name.indexOf(a)===-1&&(wn.name=`${wn.name}${a}${b(wn.size)}`),Ie({},wn)}),console.log("info:",Rt,Je),Et(Je)},onRemove:Rt=>yt(void 0,null,function*(){if(!fn)return!0;const rn=()=>yt(void 0,null,function*(){if(Rt.response?Rt.response.id:Rt.id){let Tn=yield(0,fe.JZ)(Rt.response?Rt.response.id:Rt.uid);return Promise.resolve(Tn)}else return!0});if(Tt)return new Promise((cn,Tn)=>{Ue.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:le.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>yt(void 0,null,function*(){const Dn=yield rn();ct.ZP.success("\u5220\u9664\u6210\u529F"),cn(!0)}),onCancel:()=>cn(!1)})});{const cn=yield rn();return Je.length-1<We&&Ke(!1),cn}})};function zt(Rt){Rt.preventDefault(),Rt.stopPropagation()}return le.createElement("div",{className:`multi-upload ${ye||""}`},ue&&le.createElement(St,Ie({},Nt),le.createElement("p",{className:"ant-upload-drag-icon"},le.createElement(y.Z,null)),le.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",le.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ge,"MB)"," "),pt),!ue&&le.createElement(be.default,Ie({},Nt),le.createElement(Pe.ZP,{disabled:Le,className:"upload_button"},le.createElement("img",{className:"aBtn_img",src:Se}),dt),le.createElement("span",{onClick:zt,className:"upload_text"},ln||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ge}MB)`)))}},97692:function(ke,Ft,ge){"use strict";ge.d(Ft,{h:function(){return ee}});var le=ge(59301),be=ge(57809),ct=ge(78241),Ue=ge(3113),Pe=ge(89780),Be=ge.n(Pe),fe=ge(37036),nt=ge(95625),Xe=Object.defineProperty,Qe=Object.defineProperties,at=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,a=(ae,te,se)=>te in ae?Xe(ae,te,{enumerable:!0,configurable:!0,writable:!0,value:se}):ae[te]=se,b=(ae,te)=>{for(var se in te||(te={}))qe.call(te,se)&&a(ae,se,te[se]);if(et)for(var se of et(te))ie.call(te,se)&&a(ae,se,te[se]);return ae},x=(ae,te)=>Qe(ae,at(te));const y=be.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ft.Z=({callback:ae,onCancel:te})=>{const[se,de]=(0,le.useState)("python");function we(Re){de(z[Re][1])}function Se(Re){ae(Re)}return le.createElement(ct.default,x(b({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Se,style:{width:500}}),le.createElement(ct.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(be.default,{getPopupContainer:Re=>Re.parentNode,onChange:we},Object.keys(z).map(Re=>le.createElement(y,{key:Re,value:Re},z[Re][0])))),le.createElement(ct.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(ee,{mode:se})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ue.ZP,{type:"ghost",onClick:te},"\u53D6\u6D88")))};function ee({value:ae,onChange:te,mode:se,options:de={}}){const we=(0,le.useRef)(),[Se,Re]=(0,le.useState)();return(0,le.useEffect)(()=>{if(Se){let Ae=function(At){const un=At.getValue();te&&te(un)};return Se.on("change",Ae),()=>{Se.off("change",Ae)}}},[Se,te]),(0,le.useEffect)(()=>{Se&&Se.setOption("mode",se)},[Se,se]),(0,le.useEffect)(()=>{Se&&(ae!==Se.getValue()||ae==="")&&setTimeout(()=>{Se.setValue(ae||"")},300)},[Se,ae]),(0,le.useEffect)(()=>{if(we.current&&!Se){const Ae=Be().fromTextArea(we.current,b({mode:se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));Re(Ae)}},[we.current,Se]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:we}))}},12290:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return ao}});var le=ge(59301),be=ge(89780),ct=ge.n(be),Ue=ge(76374),Pe=ge(37036),Be=ge(6313),fe=ge(25717),nt=ge(99498),Xe=ge(25419),Qe=ge(67549),at=ge(85149),et=({value:$e="",className:Fe,showTextOnly:xe,showLines:Dt,style:Wt={}})=>{const Qt=(0,le.useMemo)(()=>"",[$e]);return le.createElement(le.Fragment,null,le.createElement("div",{dangerouslySetInnerHTML:{__html:Qt}}))},qe=ge(59301),ie=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=($e,Fe,xe)=>Fe in $e?ie($e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):$e[Fe]=xe,ee=($e,Fe)=>{for(var xe in Fe||(Fe={}))y.call(Fe,xe)&&z($e,xe,Fe[xe]);if(x)for(var xe of x(Fe))E.call(Fe,xe)&&z($e,xe,Fe[xe]);return $e},ae=($e,Fe)=>a($e,b(Fe));let te=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function se({onActionCallback:$e,title:Fe,icon:xe,actionName:Dt,className:Wt="",children:Qt}){function Kn(){$e(Dt)}return qe.createElement("a",{title:Fe,className:Wt,onClick:Kn},qe.createElement("i",{className:`${xe}`}),Qt)}var de=({watch:$e,showNullButton:Fe,showNullProgramButton:xe,onActionCallback:Dt,fullScreen:Wt,insertTemp:Qt,hidetoolBar:Kn,extraUse:yn})=>{const Zn=[...te,{title:`${$e?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${$e?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return qe.createElement("ul",{className:"markdown-toolbar-container"},!Kn&&Zn.map((ma,Sn)=>qe.createElement("li",{key:Sn},ma.actionName?qe.createElement(se,ae(ee({},ma),{onActionCallback:Dt})):qe.createElement("span",{className:"v-line"}))),Fe?qe.createElement("li",null,qe.createElement(se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Dt},qe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?qe.createElement(qe.Fragment,null,qe.createElement("li",null,qe.createElement(se,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Dt},qe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),qe.createElement("li",null,qe.createElement(se,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Dt},qe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Qt&&qe.createElement("li",null,qe.createElement(se,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qt}`,onActionCallback:Dt},qe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yn&&qe.createElement("li",null,yn),qe.createElement("li",{className:"btn-full-screen"},qe.createElement(se,{icon:`${Wt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Wt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Dt})))},we=ge(79346),Se=ge(78241),Re=ge(92832),Ae=ge(3113),At=Object.defineProperty,un=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,gt=($e,Fe,xe)=>Fe in $e?At($e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):$e[Fe]=xe,Lt=($e,Fe)=>{for(var xe in Fe||(Fe={}))yt.call(Fe,xe)&&gt($e,xe,Fe[xe]);if(Ie)for(var xe of Ie(Fe))St.call(Fe,xe)&&gt($e,xe,Fe[xe]);return $e},rt=($e,Fe)=>un($e,xn(Fe));const Et={labelCol:{span:4},wrapperCol:{span:20}};var ht=({callback:$e,onCancel:Fe})=>{function xe(Dt){$e(Dt)}return le.createElement(Se.default,rt(Lt({},Et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xe,style:{width:500}}),le.createElement(Se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},le.createElement(Re.default,null)),le.createElement(Se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},le.createElement(Re.default,null)),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ae.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},pn=ge(97692),ye=ge(28451),Ge=ge(43418),dt=ge(95237),Tt=ge(73524),it=ge(59301),pt=({callback:$e,onCancel:Fe})=>{const xe=document.createElement("canvas"),Dt=xe.getContext("2d");xe.width=1e3,xe.height=800,Dt.fillStyle="#ffffff",Dt.fillRect(0,0,xe.width,xe.height);const Wt=xe.toDataURL("image/png");return it.createElement(Ge.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},it.createElement(dt.Z,{style:{height:"100vh"}},it.createElement(Tt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Wt,visible:!0,title:String(Date.now())},onOk:Qt=>{$e({src:Qt.url})},onClose:Fe})))},ue=ge(12378);function We(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(We,go.CommandHandler),We.prototype.canAlignSelection=function(){var $e=this.diagram;return!($e===null||$e.isReadOnly||$e.isModelReadOnly||$e.selection.count<2)},We.prototype.alignLeft=function(){var $e=this.diagram;$e.startTransaction("aligning left");var Fe=1/0;$e.selection.each(function(xe){xe instanceof go.Link||(Fe=Math.min(xe.position.x,Fe))}),$e.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Fe,xe.position.y))}),$e.commitTransaction("aligning left")},We.prototype.alignRight=function(){var $e=this.diagram;$e.startTransaction("aligning right");var Fe=-1/0;$e.selection.each(function(xe){if(!(xe instanceof go.Link)){var Dt=xe.actualBounds.x+xe.actualBounds.width;Fe=Math.max(Dt,Fe)}}),$e.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Fe-xe.actualBounds.width,xe.position.y))}),$e.commitTransaction("aligning right")},We.prototype.alignTop=function(){var $e=this.diagram;$e.startTransaction("alignTop");var Fe=1/0;$e.selection.each(function(xe){xe instanceof go.Link||(Fe=Math.min(xe.position.y,Fe))}),$e.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,Fe))}),$e.commitTransaction("alignTop")},We.prototype.alignBottom=function(){var $e=this.diagram;$e.startTransaction("aligning bottom");var Fe=-1/0;$e.selection.each(function(xe){if(!(xe instanceof go.Link)){var Dt=xe.actualBounds.y+xe.actualBounds.height;Fe=Math.max(Dt,Fe)}}),$e.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,Fe-xe.actualBounds.height))}),$e.commitTransaction("aligning bottom")},We.prototype.alignCenterX=function(){var $e=this.diagram,Fe=$e.selection.first();if(Fe){$e.startTransaction("aligning Center X");var xe=Fe.actualBounds.x+Fe.actualBounds.width/2;$e.selection.each(function(Dt){Dt instanceof go.Link||Dt.move(new go.Point(xe-Dt.actualBounds.width/2,Dt.actualBounds.y))}),$e.commitTransaction("aligning Center X")}},We.prototype.alignCenterY=function(){var $e=this.diagram,Fe=$e.selection.first();if(Fe){$e.startTransaction("aligning Center Y");var xe=Fe.actualBounds.y+Fe.actualBounds.height/2;$e.selection.each(function(Dt){Dt instanceof go.Link||Dt.move(new go.Point(Dt.actualBounds.x,xe-Dt.actualBounds.height/2))}),$e.commitTransaction("aligning Center Y")}},We.prototype.alignColumn=function($e){var Fe=this.diagram;Fe.startTransaction("align Column"),$e===void 0&&($e=0),$e=parseFloat($e);var xe=new Array;Fe.selection.each(function(yn){yn instanceof go.Link||xe.push(yn)});for(var Dt=0;Dt<xe.length-1;Dt++){var Wt=xe[Dt],Qt=Wt.actualBounds.y+Wt.actualBounds.height+$e,Kn=xe[Dt+1];Kn.move(new go.Point(Wt.actualBounds.x,Qt))}Fe.commitTransaction("align Column")},We.prototype.alignRow=function($e){$e===void 0&&($e=0),$e=parseFloat($e);var Fe=this.diagram;Fe.startTransaction("align Row");var xe=new Array;Fe.selection.each(function(yn){yn instanceof go.Link||xe.push(yn)});for(var Dt=0;Dt<xe.length-1;Dt++){var Wt=xe[Dt],Qt=Wt.actualBounds.x+Wt.actualBounds.width+$e,Kn=xe[Dt+1];Kn.move(new go.Point(Qt,Wt.actualBounds.y))}Fe.commitTransaction("align Row")},We.prototype.canRotate=function($e){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<1)},We.prototype.rotate=function($e){$e===void 0&&($e=90);var Fe=this.diagram;Fe.startTransaction("rotate "+$e.toString());var Fe=this.diagram;Fe.selection.each(function(xe){xe instanceof go.Link||xe instanceof go.Group||(xe.angle+=$e)}),Fe.commitTransaction("rotate "+$e.toString())},We.prototype.pullToFront=function(){var $e=this.diagram;$e.startTransaction("pullToFront");var Fe=new go.Map;$e.selection.each(function(xe){Fe.set(xe.layer,0)}),Fe.iteratorKeys.each(function(xe){var Dt=0;xe.parts.each(function(Wt){if(!Wt.isSelected){var Qt=Wt.zOrder;isNaN(Qt)?Wt.zOrder=0:Dt=Math.max(Dt,Qt)}}),Fe.set(xe,Dt)}),$e.selection.each(function(xe){We._assignZOrder(xe,Fe.get(xe.layer)+1)}),$e.commitTransaction("pullToFront")},We.prototype.pushToBack=function(){var $e=this.diagram;$e.startTransaction("pushToBack");var Fe=new go.Map;$e.selection.each(function(xe){Fe.set(xe.layer,0)}),Fe.iteratorKeys.each(function(xe){var Dt=0;xe.parts.each(function(Wt){if(!Wt.isSelected){var Qt=Wt.zOrder;isNaN(Qt)?Wt.zOrder=0:Dt=Math.min(Dt,Qt)}}),Fe.set(xe,Dt)}),$e.selection.each(function(xe){We._assignZOrder(xe,Fe.get(xe.layer)-1-We._findGroupDepth(xe))}),$e.commitTransaction("pushToBack")},We._assignZOrder=function($e,Fe,xe){xe===void 0&&(xe=$e),$e.layer===xe.layer&&($e.zOrder=Fe),$e instanceof go.Group&&$e.memberParts.each(function(Dt){We._assignZOrder(Dt,Fe+1,xe)})},We._findGroupDepth=function($e){if($e instanceof go.Group){var Fe=0;return $e.memberParts.each(function(xe){Fe=Math.max(Fe,We._findGroupDepth(xe))}),Fe+1}else return 0},We.prototype.doKeyDown=function(){var $e=this.diagram;if($e!==null){var Fe=$e.lastInput;if(Fe.key==="Up"||Fe.key==="Down"||Fe.key==="Left"||Fe.key==="Right"){var xe=this.arrowKeyBehavior;if(xe==="none")return;if(xe==="select"){this._arrowKeySelect();return}else if(xe==="move"){this._arrowKeyMove();return}else if(xe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},We.prototype._getAllParts=function(){var $e=new Array;return this.diagram.nodes.each(function(Fe){$e.push(Fe)}),this.diagram.parts.each(function(Fe){$e.push(Fe)}),$e},We.prototype._arrowKeyMove=function(){var $e=this.diagram,Fe=$e.lastInput,xe=0,Dt=0;if(Fe.control||Fe.meta)xe=1,Dt=1;else if($e.grid!==null){var Wt=$e.grid.gridCellSize;Dt=Wt.width,xe=Wt.height}$e.startTransaction("arrowKeyMove"),$e.selection.each(function(Qt){Fe.key==="Up"?Qt.move(new go.Point(Qt.actualBounds.x,Qt.actualBounds.y-xe)):Fe.key==="Down"?Qt.move(new go.Point(Qt.actualBounds.x,Qt.actualBounds.y+xe)):Fe.key==="Left"?Qt.move(new go.Point(Qt.actualBounds.x-Dt,Qt.actualBounds.y)):Fe.key==="Right"&&Qt.move(new go.Point(Qt.actualBounds.x+Dt,Qt.actualBounds.y))}),$e.commitTransaction("arrowKeyMove")},We.prototype._arrowKeySelect=function(){var $e=this.diagram,Fe=$e.lastInput,xe=null;Fe.key==="Up"?xe=this._findNearestPartTowards(270):Fe.key==="Down"?xe=this._findNearestPartTowards(90):Fe.key==="Left"?xe=this._findNearestPartTowards(180):Fe.key==="Right"&&(xe=this._findNearestPartTowards(0)),xe!==null&&(Fe.shift?xe.isSelected=!0:Fe.control||Fe.meta?xe.isSelected=!xe.isSelected:$e.select(xe))},We.prototype._findNearestPartTowards=function($e){var Fe=this.diagram.selection.first();if(Fe===null)return null;for(var xe=Fe.actualBounds.center,Dt=this._getAllParts(),Wt=1/0,Qt=Fe,Kn=0;Kn<Dt.length;Kn++){var yn=Dt[Kn];if(yn!==Fe&&yn.canSelect()){var Zn=yn.actualBounds.center,ma=xe.directionPoint(Zn),Sn=this._angleCloseness(ma,$e);if(Sn<=45){var Pt=xe.distanceSquaredPoint(Zn);Pt*=1+Math.sin(Sn*Math.PI/180),Pt<Wt&&(Wt=Pt,Qt=yn)}}}return Qt},We.prototype._angleCloseness=function($e,Fe){return Math.min(Math.abs(Fe-$e),Math.min(Math.abs(Fe+360-$e),Math.abs(Fe-360-$e)))},We.prototype._arrowKeyTree=function(){var $e=this.diagram,Fe=$e.selection.first();if(Fe instanceof go.Node){var xe=$e.lastInput;if(xe.key==="Right"){if(!Fe.isTreeLeaf)if(!Fe.isTreeExpanded)$e.commandHandler.canExpandTree(Fe)&&$e.commandHandler.expandTree(Fe);else{var Dt=this._sortTreeChildrenByY(Fe).first();Dt!==null&&$e.select(Dt)}}else if(xe.key==="Left")if(!Fe.isTreeLeaf&&Fe.isTreeExpanded)$e.commandHandler.canCollapseTree(Fe)&&$e.commandHandler.collapseTree(Fe);else{var Wt=Fe.findTreeParentNode();Wt!==null&&$e.select(Wt)}else if(xe.key==="Up"){var Wt=Fe.findTreeParentNode();if(Wt!==null){var Qt=this._sortTreeChildrenByY(Wt),Kn=Qt.indexOf(Fe);if(Kn>0){for(var yn=Qt.elt(Kn-1);yn!==null&&yn.isTreeExpanded&&!yn.isTreeLeaf;){var Zn=this._sortTreeChildrenByY(yn);yn=Zn.last()}yn!==null&&$e.select(yn)}else $e.select(Wt)}}else if(xe.key==="Down")if(Fe.isTreeExpanded&&!Fe.isTreeLeaf){var Dt=this._sortTreeChildrenByY(Fe).first();Dt!==null&&$e.select(Dt)}else for(;Fe!==null;){var Wt=Fe.findTreeParentNode();if(Wt===null)break;var Qt=this._sortTreeChildrenByY(Wt),Kn=Qt.indexOf(Fe);if(Kn<Qt.length-1){$e.select(Qt.elt(Kn+1));break}else Fe=Wt}var ma=$e.selection.first();ma!==null&&$e.scrollToRect(ma.actualBounds)}},We.prototype._sortTreeChildrenByY=function($e){var Fe=new go.List().addAll($e.findTreeChildrenNodes());return Fe.sort(function(xe,Dt){var Wt=xe.location,Qt=Dt.location;return Wt.y<Qt.y?-1:Wt.y>Qt.y?1:Wt.x<Qt.x?-1:Wt.x>Qt.x?1:0}),Fe},We.prototype.copyToClipboard=function($e){go.CommandHandler.prototype.copyToClipboard.call(this,$e),this._lastPasteOffset.set(this.pasteOffset)},We.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(We.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function($e){if($e!=="move"&&$e!=="select"&&$e!=="scroll"&&$e!=="tree"&&$e!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+$e);this._arrowKeyBehavior=$e}}),Object.defineProperty(We.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 bt=We,fn=ge(74413),ln=ge(43604),_e=ge(99064),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Le=ge(59301),Ke=($e,Fe,xe)=>new Promise((Dt,Wt)=>{var Qt=Zn=>{try{yn(xe.next(Zn))}catch(ma){Wt(ma)}},Kn=Zn=>{try{yn(xe.throw(Zn))}catch(ma){Wt(ma)}},yn=Zn=>Zn.done?Dt(Zn.value):Promise.resolve(Zn.value).then(Qt,Kn);yn((xe=xe.apply($e,Fe)).next())});function Je({onCancel:$e,callback:Fe}){let xe=(0,le.useRef)(),Dt=(0,le.useRef)(),Wt=(0,le.useRef)(),Qt=(0,le.useRef)(!1);const Kn=(0,le.useRef)(!1),[yn,Zn]=(0,le.useState)(0);function ma(){const Pt=ue.bx.make,An={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};xe.current=new ue.S0(Dt.current,{padding:20,grid:Pt(ue.s_,"Grid",Pt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:wt=>{var _t=wt.diagram.commandHandler.addTopLevelParts(wt.diagram.selection,!0);_t||wt.diagram.currentTool.doCancel()},commandHandler:Pt(bt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:wt=>{var _t=wt.subject;_t.location=_t.location.copy().snapToGridPoint(wt.diagram.grid.gridOrigin,wt.diagram.grid.gridCellSize),setTimeout(()=>{wt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:wt=>{var _t=wt.subject;setTimeout(()=>{wt.diagram.commandHandler.editTextBlock()})},LinkRelinked:wt=>{var _t=wt.parameter.part;_t.invalidateConnectedLinks();var gn=wt.subject;wt.diagram.toolManager.linkingTool.isForwards?gn.toNode.invalidateConnectedLinks():gn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=Pt(ue.NB,"Auto",{locationSpot:ue.z6.Center,locationObjectName:"SHAPE",desiredSize:new ue.$u(120,60),minSize:new ue.$u(40,40),resizable:!0,resizeCellSize:new ue.$u(10,10),rotatable:!0},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),new ue.KX("desiredSize","size",ue.$u.parse).makeTwoWay(ue.$u.stringify),Pt(ue.bn,{name:"SHAPE",fill:An.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("figure"),new ue.KX("fill"),new ue.KX("stroke","borderColor"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Pt(ue.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pt(ue.al,{margin:1,textAlign:"center",overflow:ue.al.OverflowEllipsis,editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=Pt("ToolTip",Pt(ue.s_,"Vertical",{maxSize:new ue.$u(200,NaN)},Pt(ue.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ue.KX("text")),Pt(ue.al,{font:"10pt sans-serif",textAlign:"center"},new ue.KX("text","details"))));function Ca(wt,_t){var gn=(Vt,Fn)=>{Vt.handled=!0,Vt.diagram.model.commit(zn=>{var hn=Fn.part.adornedPart,la=new ue.E9().setRectSpot(hn.actualBounds,wt);la.subtract(hn.location),la.scale(2,2),la.x+=Math.sign(la.x)*130,la.y+=Math.sign(la.y)*130,la.add(hn.location),la.snapToGridPoint(Vt.diagram.grid.gridOrigin,Vt.diagram.grid.gridCellSize);var da=zn.copyNodeData(hn.data);zn.setGroupKeyForNodeData(da,zn.getGroupKeyForNodeData(hn.data)),zn.addNodeData(da);var Oo={from:hn.key,to:zn.getKeyForNodeData(da)};zn.addLinkData(Oo);var vo=Vt.diagram.findNodeForData(da);vo.location=la,Vt.diagram.select(vo),setTimeout(()=>{Vt.diagram.commandHandler.editTextBlock()},20)})};return Pt(ue.bn,{figure:_t,alignment:wt,alignmentFocus:wt.opposite(),width:wt.equals(ue.z6.Top)||wt.equals(ue.z6.Bottom)?25:18,height:wt.equals(ue.z6.Top)||wt.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:An.white,strokeWidth:4,mouseEnter:(Vt,Fn)=>Fn.fill="dodgerblue",mouseLeave:(Vt,Fn)=>Fn.fill="orange",isActionable:!0,click:gn,contextClick:gn})}function oo(wt){return Pt(ue.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:(_t,gn)=>gn.fill="dodgerblue",mouseLeave:(_t,gn)=>gn.fill="orange",click:(_t,gn)=>{_t.diagram.commandHandler.showContextMenu(gn.part.adornedPart)}},wt||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=Pt(ue.uz,"Spot",Pt(ue.Vm,{padding:10}),Ca(ue.z6.Top,"TriangleUp"),Ca(ue.z6.Left,"TriangleLeft"),Ca(ue.z6.Right,"TriangleRight"),Ca(ue.z6.Bottom,"TriangleDown"),oo({alignment:new ue.z6(.75,0)}));function ga(wt,_t){return(gn,Vt)=>{gn.handled=!0,gn.diagram.model.commit(Fn=>{Fn.set(Vt.part.adornedPart.data,wt,_t)})}}function ve(wt,_t){return _t||(_t="color"),Pt(ue.bn,{width:16,height:16,stroke:"lightgray",fill:wt,margin:1,background:"transparent",mouseEnter:(gn,Vt)=>Vt.stroke="dodgerblue",mouseLeave:(gn,Vt)=>Vt.stroke="lightgray",click:ga(_t,wt),contextClick:ga(_t,wt)})}function He(){return[Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",ve(An.white,"fill"),ve(An.beige,"fill"),ve(An.extralightblue,"fill"),ve(An.extralightred,"fill"))),Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",ve(An.lightgray,"fill"),ve(An.lightgreen,"fill"),ve(An.lightblue,"fill"),ve(An.lightred,"fill")))]}function Ze(){return[Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",ve(An.black),ve(An.green),ve(An.blue),ve(An.red))),Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",ve(An.white),ve(An.magenta),ve(An.purple),ve(An.orange)))]}function ot(wt,_t){return _t||(_t="thickness"),Pt(ue.bn,"LineH",{width:16,height:16,strokeWidth:wt,margin:1,background:"transparent",mouseEnter:(gn,Vt)=>Vt.background="dodgerblue",mouseLeave:(gn,Vt)=>Vt.background="transparent",click:ga(_t,wt),contextClick:ga(_t,wt)})}function vt(wt,_t){return _t||(_t="dash"),Pt(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:wt,margin:1,background:"transparent",mouseEnter:(gn,Vt)=>Vt.background="dodgerblue",mouseLeave:(gn,Vt)=>Vt.background="transparent",click:ga(_t,wt),contextClick:ga(_t,wt)})}function Ct(){return[Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",ot(1),ot(2),ot(3),ot(4))),Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",vt(null),vt([2,4]),vt([4,4])))]}function mt(wt,_t){return _t||(_t="figure"),Pt(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:wt,margin:1,background:"transparent",mouseEnter:(gn,Vt)=>Vt.fill="dodgerblue",mouseLeave:(gn,Vt)=>Vt.fill="lightgray",click:ga(_t,wt),contextClick:ga(_t,wt)})}xe.current.nodeTemplate.contextMenu=Pt("ContextMenu",Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",mt("Rectangle"),mt("RoundedRectangle"),mt("Ellipse"),mt("Diamond"))),Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",mt("Parallelogram2"),mt("ManualOperation"),mt("Procedure"),mt("Cylinder1"))),Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",mt("Terminator"),mt("CreateRequest"),mt("Document"),mt("TriangleDown"))),He(),Ze(),Ct()),xe.current.groupTemplate=Pt(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(wt,_t)=>{var gn=_t.addMembers(_t.diagram.selection,!0);gn||_t.diagram.currentTool.doCancel()},avoidable:!1},new ue.KX("location","loc",ue.E9.parse).makeTwoWay(ue.E9.stringify),Pt(ue.s_,"Auto",{name:"BODY"},Pt(ue.bn,{parameter1:10,fill:An.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ue.z6.AllSides,toSpot:ue.z6.AllSides},new ue.KX("fill"),new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Pt(ue.Vm,{background:"transparent",margin:20})),Pt(ue.al,{alignment:ue.z6.Top,alignmentFocus:ue.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ue.KX("text"),new ue.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=Pt(ue.uz,"Spot",Pt(ue.s_,"Auto",Pt(ue.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pt(ue.Vm,{margin:1.5})),oo({alignment:ue.z6.TopRight,alignmentFocus:ue.z6.BottomRight})),xe.current.groupTemplate.contextMenu=Pt("ContextMenu",He(),Ze(),Ct()),xe.current.linkTemplate=Pt(ue.rU,{layerName:"Foreground",routing:ue.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ue.KX("fromSpot","fromSpot",ue.z6.parse),new ue.KX("toSpot","toSpot",ue.z6.parse),new ue.KX("fromShortLength","dir",wt=>wt>=1?10:0),new ue.KX("toShortLength","dir",wt=>wt>=1?10:0),new ue.KX("points").makeTwoWay(),Pt(ue.bn,{strokeWidth:2},new ue.KX("stroke","color"),new ue.KX("strokeWidth","thickness"),new ue.KX("strokeDashArray","dash")),Pt(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,0),segmentOrientation:ue.rU.OrientAlong,alignmentFocus:ue.z6.Right,figure:"circle",width:10,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",wt=>wt===1)),Pt(ue.bn,{segmentIndex:-1,segmentOffset:new ue.E9(-10,6),segmentOrientation:ue.rU.OrientPlus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",wt=>wt>=1),new ue.KX("width","thickness",wt=>7+3*wt),new ue.KX("height","thickness",wt=>7+3*wt),new ue.KX("segmentOffset","thickness",wt=>new ue.E9(-15,4+1.5*wt))),Pt(ue.bn,{segmentIndex:0,segmentOffset:new ue.E9(15,-6),segmentOrientation:ue.rU.OrientMinus90,alignmentFocus:ue.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ue.KX("fill","color"),new ue.KX("visible","dir",wt=>wt===2),new ue.KX("width","thickness",wt=>7+3*wt),new ue.KX("height","thickness",wt=>7+3*wt),new ue.KX("segmentOffset","thickness",wt=>new ue.E9(-15,4+1.5*wt))),Pt(ue.al,{alignmentFocus:new ue.z6(0,1,-4,0),editable:!0},new ue.KX("text").makeTwoWay(),new ue.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=Pt(ue.uz,Pt(ue.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:tt(2)},new ue.KX("pathPattern","thickness",tt)),oo({alignmentFocus:new ue.z6(0,0,-6,-4)}));function tt(wt){return Pt(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(wt+4).toString()+" H3"})}function sn(wt){var _t="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return wt===0?_t="M0 0 M16 16 M0 8 L16 8":wt===2&&(_t="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pt(ue.bn,{geometryString:_t,margin:2,background:"transparent",mouseEnter:(gn,Vt)=>Vt.background="dodgerblue",mouseLeave:(gn,Vt)=>Vt.background="transparent",click:ga("dir",wt),contextClick:ga("dir",wt)})}function nn(wt){var _t=(gn,Vt)=>{gn.handled=!0,gn.diagram.model.commit(Fn=>{var zn=Vt.part.adornedPart;Fn.set(zn.data,wt?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(wt?zn.toNode:zn.fromNode).invalidateConnectedLinks()})};return Pt(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(gn,Vt)=>Vt.background="dodgerblue",mouseLeave:(gn,Vt)=>Vt.background="transparent",click:_t,contextClick:_t})}function Te(wt,_t){var gn=0,Vt=ue.z6.RightSide;wt.equals(ue.z6.Top)?(gn=270,Vt=ue.z6.TopSide):wt.equals(ue.z6.Left)?(gn=180,Vt=ue.z6.LeftSide):wt.equals(ue.z6.Bottom)&&(gn=90,Vt=ue.z6.BottomSide),_t||(gn-=180);var Fn=(zn,hn)=>{zn.handled=!0,zn.diagram.model.commit(la=>{var da=hn.part.adornedPart;la.set(da.data,_t?"toSpot":"fromSpot",ue.z6.stringify(Vt)),(_t?da.toNode:da.fromNode).invalidateConnectedLinks()})};return Pt(ue.bn,{alignment:wt,alignmentFocus:wt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:gn,background:"transparent",mouseEnter:(zn,hn)=>hn.background="dodgerblue",mouseLeave:(zn,hn)=>hn.background="transparent",click:Fn,contextClick:Fn})}xe.current.linkTemplate.contextMenu=Pt("ContextMenu",Ze(),Ct(),Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",sn(0),sn(1),sn(2))),Pt("ContextMenuButton",Pt(ue.s_,"Horizontal",Pt(ue.s_,"Spot",nn(!1),Te(ue.z6.Top,!1),Te(ue.z6.Left,!1),Te(ue.z6.Right,!1),Te(ue.z6.Bottom,!1)),Pt(ue.s_,"Spot",{margin:new ue.Zt(0,0,0,2)},nn(!0),Te(ue.z6.Top,!0),Te(ue.z6.Left,!0),Te(ue.z6.Right,!0),Te(ue.z6.Bottom,!0)))));const Un=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var Vn=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function fa(wt){return console.log("shapeName:",wt),Vn.indexOf(wt)>=0}var va=new ue.YI(Wt.current,{maxSelectionCount:1,linkTemplate:Pt(ue.rU,{locationSpot:ue.z6.Center,selectionAdornmentTemplate:Pt(ue.uz,"Link",{locationSpot:ue.z6.Center},Pt(ue.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pt(ue.bn,{toArrow:"Standard",stroke:null}))},{routing:ue.rU.AvoidsNodes,curve:ue.rU.JumpOver,corner:5,toShortLength:4},new ue.KX("points"),Pt(ue.bn,{isPanelMain:!0,strokeWidth:2}),Pt(ue.bn,{toArrow:"Standard",stroke:null})),model:new ue.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ue.bn.getFigureGenerators().toArray().map(wt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:wt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(wt){var _t;const gn=wt.subject.part;var Vt=(_t=document.activeElement)==null?void 0:_t.value;typeof Vt=="string"&&Vt.trim()===""&&xe.current.model.commit(function(Fn){Fn.set(gn.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),va.nodeTemplate=Pt(ue.NB,"Auto",{locationSpot:ue.z6.Center},new ue.KX("location","location",ue.E9.parse).makeTwoWay(ue.E9.stringify),Pt(ue.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 ue.KX("stroke").makeTwoWay(),new ue.KX("fill").makeTwoWay(),new ue.KX("figure")),Pt(ue.al,{margin:new ue.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ue.$u(16,16),maxSize:new ue.$u(10,NaN),textAlign:"center",editable:!0},new ue.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=Pt(ue.s_,"Grid",Pt(ue.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pt(ue.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xe.current.grid.visible=!0,xe.current.grid.gridCellStroke="darkgray",xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xe.current,xe.current}const Sn=()=>Ke(this,null,function*(){var Pt=xe.current.makeImage();const An=yield(0,_e.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Pt.src}});Fe({src:An.url})});return(0,le.useEffect)(()=>(setTimeout(()=>{ma()},500),Zn(yn+1),()=>{xe.current=null}),[]),Le.createElement("div",{ref:Kn,className:Qt.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},Le.createElement(Ge.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!yn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Le.createElement(dt.Z,null,Le.createElement(ln.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Le.createElement(ln.Z,{onClick:()=>{var Pt,An,Ca=xe.current.selection.first();if(Qt.current=!Qt.current,document.activeElement&&Ca){let oo=(An=(Pt=document.activeElement)==null?void 0:Pt.value)==null?void 0:An.trim();typeof oo=="string"&&xe.current.model.commit(function(ga){ga.set(Ca.data,"text",oo||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}Zn(yn+1)}},Le.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:$e},Le.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ee.flowChartWrp},Le.createElement("div",{style:{display:"flex",height:"100%"}},Le.createElement("div",{style:{width:"300px",height:"100%"}},Le.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Le.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ee.myPaletteDiv,ref:Wt})),Le.createElement("div",{style:{flex:1,position:"relative"}},Le.createElement("div",{ref:Dt,style:{height:"80vh"}}))),Le.createElement("div",{className:"tr"},Le.createElement(Ae.ZP,{size:"large",onClick:Sn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var $t=Je,Jt=ge(5112),Gt=ge(5871);const on=Jt.ZP.Group,Nt={margin:"0 8px"};var zt=({callback:$e,onCancel:Fe})=>{function xe(Dt){$e(Dt)}return le.createElement(Se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xe},le.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},le.createElement("span",{style:Nt},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:Nt},"\u884C\u6570"),le.createElement(Se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(Gt.Z,null)),le.createElement("span",{style:Nt},"\u5217\u6570"),le.createElement(Se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(Gt.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:Nt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(Se.default.Item,{name:"align"},le.createElement(on,null,le.createElement(Jt.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(Jt.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(Jt.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(Jt.ZP,{value:"right"},le.createElement("i",{className:"fa fa-align-right"}))))),le.createElement("div",{className:"flex-container flex-end"},le.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(Ae.ZP,{type:"ghost",onClick:Fe},"\u53D6\u6D88")))},Rt=ge(78673),rn=ge(80727),cn=ge.n(rn),Dn=(0,le.forwardRef)(({use3d:$e,width:Fe,height:xe,callback:Dt,showSaveButton:Wt},Qt)=>{const Kn=(0,le.useRef)(),yn=(0,le.useRef)(),[Zn,ma]=(0,le.useState)(!1),Sn=(0,le.useRef)({id:Kn,appName:"graphing",width:Fe||1e3,height:xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,le.useEffect)(()=>{yn.current=new(cn())(Sn.current,!0),window.onload=function(){yn.current.inject("applet_container")}},[]);const Pt=()=>{var An=window.ggbApplet.getPNGBase64(1,!0,72);return Dt&&Dt(An),An};return(0,le.useEffect)(()=>{Sn.current.appName=Zn?"3D":"graphing",yn.current.inject("applet_container")},[Zn]),(0,le.useEffect)(()=>{ma($e)},[$e]),(0,le.useImperativeHandle)(Qt,()=>({getImgData:Pt})),le.createElement(le.Fragment,null,le.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Kn}),le.createElement(dt.Z,{align:"middle"},le.createElement(ln.Z,{flex:1},le.createElement(Rt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Zn,onChange:An=>ma(An)})),le.createElement(ln.Z,null,le.createElement(Ae.ZP,{size:"large",onClick:Pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),wn=ge(41588),Ce=ge(1012),Me=ge(8591);const lt="link",Bt="upload-image",Zt="add-flowchart",dn="draw-image",Mt="add-flowchart",en="code-block",mn="add-table",Mn="------------",Ln={default:Mn,left:`:${Mn}`,center:`:${Mn}:`,right:`${Mn}:`};var Wn=ge(58856),oa=($e,Fe,xe)=>new Promise((Dt,Wt)=>{var Qt=Zn=>{try{yn(xe.next(Zn))}catch(ma){Wt(ma)}},Kn=Zn=>{try{yn(xe.throw(Zn))}catch(ma){Wt(ma)}},yn=Zn=>Zn.done?Dt(Zn.value):Promise.resolve(Zn.value).then(Qt,Kn);yn((xe=xe.apply($e,Fe)).next())});function qn(){}let Pa=0;const Yn=1e4,Gn="\u2581",ia="@\u2581\u2581@",Ea="@\u2581@",$a=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,ra=["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 Oa($e){return/^\d+$/.test($e)?`${$e}px`:$e}const Ma=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",no={[Ma+"-B"]:"bold",[Ma+"-I"]:"italic"},Lo={[lt]:"\u6DFB\u52A0\u94FE\u63A5",[en]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Bt]:"\u6DFB\u52A0\u56FE\u7247",[dn]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[mn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ao=({defaultValue:$e="",onChange:Fe,width:xe="100%",height:Dt=400,miniToolbar:Wt=!1,isFocus:Qt=!1,watch:Kn,insertTemp:yn,mode:Zn="markdown",id:ma="markdown-editor-id",showResizeBar:Sn=!1,noStorage:Pt=!1,showNullButton:An=!1,showNullProgramButton:Ca=!1,hidetoolBar:oo=!1,fullScreen:ga=!1,onBlur:ve,onCMBeforeChange:He,onFullScreen:Ze,className:ot="",disablePaste:vt=!1,disabled:Ct=!1,disabledFill:mt=!1,placeholder:tt="",values:sn="",extraUse:nn})=>{const[Te,Un]=(0,le.useState)(null),[Vn,fa]=(0,le.useState)($e),[va,wt]=(0,le.useState)(Kn),[_t,gn]=(0,le.useState)(ga),[Vt,Fn]=(0,le.useState)(""),[zn,hn]=(0,le.useState)(0),[la,da]=(0,le.useState)(Dt),[Oo,vo]=(0,le.useState)(!1),fo=(0,le.useRef)((0,Ce.Z)()),Jo=(0,le.useRef)(!1),ar=(0,le.useRef)(),[or,Zo]=(0,le.useState)(0),[So,ya]=(0,le.useState)(0),po=(0,le.useRef)(),To=(0,le.useRef)(),Go=(0,le.useRef)(),$o=(0,le.useRef)(),bo=()=>oa(void 0,null,function*(){var tn;const kt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:fo.current}});(tn=kt==null?void 0:kt.attachments)!=null&&tn.length&&(console.log("cm:",Te,po),kt.attachments.map(Yt=>{Yt.content_type.indexOf("image")>-1?Te.replaceSelection(`![,](/api/attachments/${Yt.id}?type=${Yt.content_type})`):Yt.content_type.indexOf("video")>-1?Te.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Yt.content_type.indexOf("pdf")>-1?Te.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Yt.id}?type=${Yt.content_type}&disposition=inline" target="_blank">${Yt.name}</a>`):Te.replaceSelection(`[${Yt.name}](${ENV.API_SERVER}/api/attachments/${Yt.id}?type=${Yt.content_type})`)}))});(0,le.useEffect)(()=>{const tn=window.scrollY||window.pageYOffset;fa(sn),Te==null||Te.setValue(sn),window.scrollTo(0,tn)},[sn]),(0,le.useEffect)(()=>{Ze==null||Ze(_t)},[_t]),(0,le.useEffect)(()=>{if(po.current){let tn=function(Yt,Kt){var ea;if(vt){Kt.preventDefault();return}const Ba=Kt.clipboardData;if(Ba){const Aa=Ba.types.toString(),Da=Ba.items;if(Aa==="Files"||Ba.types.indexOf("Files")>-1){if(Kt.preventDefault(),Zn=="stex")return;try{let Ya=Da[1];((ea=Da[0])==null?void 0:ea.kind)==="file"&&(Ya=Da[0]);const Ka=Ya.getAsFile(),jo=Ka.name.split(".").pop();(0,ye.I)(Ka,lo=>{var En,Xn,pa;lo.id?((En=Ka==null?void 0:Ka.type)==null?void 0:En.indexOf("image"))>-1?kt.replaceSelection(`<img width="100%" src="/api/attachments/${lo.id}?type=${lo.content_type})" alt="" />`):((Xn=Ka==null?void 0:Ka.type)==null?void 0:Xn.indexOf("video"))>-1?kt.replaceSelection(`<video width="100%" controls src="/api/attachments/${lo.id}"></video>`):((pa=Ka==null?void 0:Ka.type)==null?void 0:pa.indexOf("pdf"))>-1?kt.replaceSelection(`<a href="/api/attachments/${lo.id}?type=${Ka.type}&disposition=inline" target="_blank">${Ka.name}</a>`):ra.includes(jo)?kt.replaceSelection(`<a href="/api/attachments/${lo.id}?type=office&disposition=inline" target="_blank">${Ka.name}</a>`):kt.replaceSelection(`[${Ka.name}](/api/attachments/${lo.id}?type=${lo.content_type})`):(lo==null?void 0:lo.status)===401&&(Me.ZP.warning((lo==null?void 0:lo.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ya){Me.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const kt=ct().fromTextArea(po.current,{mode:Zn,lineNumbers:!Wt,lineWrapping:!0,value:$e,autoCloseTags:!Ca,autoCloseBrackets:!0});return kt.on("keyup",function(Yt,Kt){Kt.keyCode===8&&(Yt.getValue()==""?kt.setOption("placeholder",tt):kt.setOption("placeholder",null))}),kt.on("keydown",function(Yt,Kt){if(Kt.keyCode===8){var ea=Bn(Yt);ea&&Kt.preventDefault()}}),Qt&&kt.focus(),kt.on("paste",tn),kt.on("dragleave",function(Yt,Kt){To.current.classList.remove("mouse-hover-md")}),Ct&&kt.on("beforeChange",function(Yt,Kt){(Kt.origin==="paste"||Kt.origin==="+input")&&Kt.cancel()}),Un(kt),()=>{kt.off("paste",tn)}}},[]);const rr=(0,le.useCallback)(()=>{if(To.current)try{}catch(tn){console.log(tn,"---- to set md editor body height")}},[la,To,_t]);(0,le.useEffect)(()=>{function tn(){let kt=new Ue.Z(Yt=>{for(let Kt of Yt)(Kt.target.offsetHeight>0||Kt.target.offsetWidth>0)&&(rr(),Te.setSize("100%","100%"),Te.refresh())});return kt.observe(po.current.parentElement),kt}if(Te){const kt=tn();return()=>{var Yt,Kt;(Yt=po.current)!=null&&Yt.parentElement&&kt.unobserve((Kt=po.current)==null?void 0:Kt.parentElement)}}},[Te,rr]),(0,le.useEffect)(()=>{if(Te){let tn=[];for(const[kt,Yt]of Object.entries(no)){let Kt={[kt]:()=>{wa(Yt)}};tn.push(Kt),Te.addKeyMap(Kt)}return ar.current=setInterval(()=>{Jo.current&&bo()},4e3),()=>{clearInterval(ar.current);for(let kt of tn)Te.removeKeyMap(kt)}}},[Te]),(0,le.useEffect)(()=>{ga!==_t&&gn(ga)},[ga]),(0,Wn.Z)(()=>{if(!Pt&&zn>0){let tn=new Date().getTime(),kt=window.sessionStorage.getItem(ma);tn>=zn+Yn&&(!kt||kt!==Vn)&&(window.sessionStorage.setItem(ma,Vn),vo(!0))}},Yn),(0,le.useEffect)(()=>{wt(Kn)},[Te,Kn]),(0,le.useEffect)(()=>{Te&&Qt&&Te.focus()},[Te,Qt]),(0,le.useEffect)(()=>{if(va&&Te){let tn=function(Yt){let Kt=Yt.target;if($o.current){let ea=Kt.scrollTop/Kt.scrollHeight;$o.current.scrollTop=$o.current.scrollHeight*ea}};const kt=Te.getScrollerElement();return kt.addEventListener("scroll",tn),()=>{kt.removeEventListener("scroll",tn)}}},[Te,va]),(0,le.useEffect)(()=>{if(Te&&He){let tn=function(kt,Yt){He(kt,Yt)};return Te.on("beforeChange",tn),()=>{Te.off("beforeChange",tn)}}},[Te,He]),(0,le.useEffect)(()=>{if(Te&&ve){let tn=function(){ve(Te.getValue())};return Te.on("blur",tn),()=>{Te.off("blur",tn)}}},[Te,ve]);function Bn(tn,kt){var Yt=tn.getDoc(),Kt=Yt.getCursor(),ea=Yt.getLine(Kt.line),Ba=ea.charAt(Kt.ch-1),Aa=ea.lastIndexOf("@\u2581@",Kt.ch),Da=ea.lastIndexOf("@\u2581\u2581@",Kt.ch),Ya=Aa>Da?Aa:Da,Ka=Aa>Da?3:4;if(ia.indexOf(Ba)===-1)return null;if(console.log("change1:",kt,tn,ea,Kt,Ya,Aa,Da,Ba),Ya>=0&&Kt.ch-Ya<5){var jo=Ya+Ka;return Yt.replaceRange("",{line:Kt.line,ch:Ya},{line:Kt.line,ch:jo}),{line:Kt.line,ch:jo}}return null}(0,le.useEffect)(()=>{if(Te){let tn=function(kt,Yt){const Kt=kt.getValue();fa(Kt),hn(new Date().getTime()),kt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Fe&&(Ca?Fe(Kt,Fa(Kt)):Fe(Kt))};return Te.on("change",tn),()=>{Te.off("change",tn)}}},[Te,Fe]),(0,le.useEffect)(()=>{if(Te)if($e==null)Te.setValue(""),fa("");else{const tn=window.scrollY||window.pageYOffset;$e!==Te.getValue()&&(Te.setValue($e),fa($e),Te.setCursor(Ct?1:Te.lineCount(),0),window.scrollTo(0,tn))}},[Te,$e]);const wa=(0,le.useCallback)(tn=>{const kt=Te.getCursor(),Yt=Te.getSelection();let Kt=Yt.split(`
`);switch(tn){case"bold":return Te.replaceSelection("**"+Yt+"**"),Yt===""&&Te.setCursor(kt.line,kt.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+Yt+"*"),Yt===""&&Te.setCursor(kt.line,kt.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+Yt+"`"),Yt===""&&Te.setCursor(kt.line,kt.ch+1),Te.focus();case"inline-latex":return Fn("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+Yt+"\n```"),Te.setCursor(kt.line+1,Yt.length+1),Te.focus();case"line-break":return Te.replaceSelection(`<br/>
`),Te.focus();case"list-ul":return Yt===""?Te.replaceSelection("- "+Yt):Te.replaceSelection(Kt.map(ea=>ea===""?"":`- ${ea}`).join(`
`)),Te.focus();case"list-ol":return Yt===""?Te.replaceSelection("1. "+Yt):Te.replaceSelection(Kt.map((ea,Ba)=>ea===""?"":`${Ba+1}. ${ea}`).join(`
`)),Te.focus();case"add-null-ch":return Yt===""&&Te.setCursor(kt.line,kt.ch),Te.replaceSelection(Gn),Te.focus();case"add-signal":return Yt===""&&Te.setCursor(kt.line,kt.ch),Te.replaceSelection(Ea),Te.focus();case"add-multiple":return Yt===""&&Te.setCursor(kt.line,kt.ch),Te.replaceSelection(ia),Te.focus();case"inster-template-1":return Yt===""&&Te.setCursor(kt.line,kt.ch),Te.replaceSelection($a),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return wt(!va),Te.focus();case"trigger-full-screen":return gn(!_t),Te.focus();case lt:Fn(lt);return;case en:Fn(en);return;case Bt:Fn(Bt);return;case dn:Fn(dn);return;case"maths-latex":Fn("maths-latex");return;case Zt:Fn(Zt);return;case mn:Fn(mn);return;default:throw new Error}},[Te,va,_t]),Ia=(0,le.useCallback)((tn,kt)=>{var Yt,Kt,ea,Ba,Aa,Da;switch(Fn(""),Vt){case lt:const{title:En,link:Xn}=tn;return Te.replaceSelection(`[${En}](${Xn})`),Te.focus();case en:const{language:pa,content:_n}=tn;return Te.replaceSelection(["```"+pa,_n,"```"].join(`
`)),Te.focus();case"maths-latex":for(var Ya=atob(tn),Ka=new Uint8Array(Ya.length),jo=0;jo<Ya.length;jo++)Ka[jo]=Ya.charCodeAt(jo);var lo=new Blob([Ka],{type:"image/png"});(0,ye.I)(lo,Vo=>{Vo.id?Te.replaceSelection(`![,](/api/attachments/${Vo.id}?type=${Vo.content_type})`):(Vo==null?void 0:Vo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Te.replaceSelection("`$$"+tn+"$$`");break;case Bt:case dn:case Mt:const{src:ta,alt:Ja}=tn,ba=kt,ir=(ea=(Kt=(Yt=ba==null?void 0:ba.name)==null?void 0:Yt.split("."))==null?void 0:Kt.pop)==null?void 0:ea.call(Kt);return((Ba=ba==null?void 0:ba.type)==null?void 0:Ba.indexOf("image"))>-1||!(ba!=null&&ba.type)?ba.align||ba.width?Te.replaceSelection(`<p style="text-align:${ba.align||"initial"}"><img width="${ba.width?ba.width+"%":"initial"}" src="${ta}" alt="${Ja||""}" /></p>`):Te.replaceSelection(`<img width="100%" src="${ta}" alt="${Ja||""}" />`):((Aa=ba==null?void 0:ba.type)==null?void 0:Aa.indexOf("video"))>-1?Te.replaceSelection(`<video width="100%" controls src="${ta}"></video>`):((Da=ba==null?void 0:ba.type)==null?void 0:Da.indexOf("pdf"))>-1?Te.replaceSelection(`<a href="${ta}?type=${ba.type}&disposition=inline" target="_blank">${ba.name}</a>`):ra.includes(ir)?Te.replaceSelection(`<a href="${ta}?type=office&disposition=inline" target="_blank">${ba.name}</a>`):Te.replaceSelection(`[${ba.name}](${ta})`),Te.focus();case mn:const{row:Wo,col:Fr,align:wi}=tn;let Br=`
`;for(let Vo=0;Vo<Wo;Vo++){let Hr=[],jr=[];for(let Wr=0;Wr<Fr;Wr++)Vo===1&&jr.push(Ln[wi]),Hr.push(" ");Vo===1&&(Br+=`| ${jr.join(" | ")} |
`),Br+=`| ${Hr.join(Fr===1?"":" | ")} |
`}return Te.replaceSelection(Br+`
`),Te.focus();default:throw new Error}},[Te,Vt]),ro=(0,le.useMemo)(()=>{switch(Vt){case lt:return le.createElement(ht,{callback:Ia,onCancel:io});case en:return le.createElement(pn.Z,{callback:Ia,onCancel:io});case Bt:return le.createElement(ye.Z,{callback:Ia,onCancel:io});case Zt:return le.createElement($t,{callback:Ia,onCancel:io});case mn:return le.createElement(zt,{callback:Ia,onCancel:io});case"maths-latex":return le.createElement(Dn,{showSaveButton:!0,callback:Ia});case"inline-latex":return le.createElement(wn.Z,{showSaveButton:!0,callback:Ia});default:return null}},[Vt]);function io(){Fn("")}(0,le.useEffect)(()=>{if(Go.current){let tn=function(Aa){ea=!0,Ba=Aa.pageY},kt=function(){ea=!1},Yt=function(Aa){if(ea){let Da=Aa.pageY-Ba;Da<0&&(Da=0),Da>300&&(Da=300);let Ya=Dt+Da+"px";da(Ya)}},Kt=Go.current,ea=!1,Ba=0;return Kt.addEventListener("mousedown",tn),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",kt),()=>{Kt.removeEventListener("mousedown",tn),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",kt)}}},[Te,Go]),(0,le.useEffect)(()=>{da(Dt)},[Dt]);const Mo=Oa(xe),br=Oa(la),ur={width:Mo,height:br},Ra=(0,le.useMemo)(()=>{if(zn){let tn=new Date(zn),kt=tn.getHours(),Yt=tn.getMinutes(),Kt=tn.getSeconds();return kt=kt<10?"0"+kt:kt,Yt=Yt<10?"0"+Yt:Yt,Kt=Kt<10?"0"+Kt:Kt,`${kt}:${Yt}:${Kt}`}return 0},[zn]),Fa=tn=>{const kt=[];if(Ca){let Yt=-1;tn=tn.replace(/(@▁▁@|@▁@)/g,function(Kt,ea,Ba){kt.push({multiLine:Kt!==Ea})})}return kt};function Ho(){window.sessionStorage.removeItem(ma),vo(!1),hn(0)}function Er(){vo(!1),hn(0),Te.setValue(window.sessionStorage.getItem(ma))}(0,le.useEffect)(()=>{Lo[Vt]&&Vt!==dn&&Vt!==Zt&&setTimeout(()=>{const tn=document.getElementsByClassName("markdown-popup-form")[0],kt=window.innerWidth/2-tn.offsetWidth/2,Yt=window.innerHeight/2-tn.offsetHeight/2;Zo(kt),ya(Yt)},0)},[Vt]);const $r=tn=>{tn.preventDefault();const kt=tn.clientX-or,Yt=tn.clientY-So;document.body.onmousemove=Kt=>{let ea=Kt.clientX-kt,Ba=Kt.clientY-Yt;const Aa=document.getElementsByClassName("markdown-popup-form")[0],Da=window.innerWidth-Aa.offsetWidth,Ya=window.innerHeight-Aa.offsetHeight;ea=Math.max(0,Math.min(ea,Da)),Ba=Math.max(0,Math.min(Ba,Ya)),Gr(Kt.clientX,Kt.clientY,kt,Yt)&&(Zo(ea),ya(Ba))},document.body.onmouseup=function(){document.body.onmousemove=null}},Gr=(tn,kt,Yt,Kt)=>{const ea=document.body.clientHeight,Ba=document.body.clientWidth;return tn<20&&Yt>tn||tn>Ba-20&&Yt<tn||kt<20&&Kt>kt||kt>ea-20&&Kt<kt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return le.createElement(le.Fragment,null,le.createElement("div",{className:"markdown-editor-wrapper",ref:To},le.createElement("div",{className:`markdown-editor-container ${ot} ${va?"on-preview":""} ${Wt?"mini":""} ${_t?"full-screen":""}`,style:ur},le.createElement(de,{insertTemp:yn,watch:va,fullScreen:_t,showNullButton:An,showNullProgramButton:Ca,onActionCallback:wa,hidetoolBar:oo,extraUse:nn}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:po,placeholder:tt})),va?le.createElement("div",{ref:$o,className:"preview-container"},Zn==="stex"&&le.createElement(et,{value:Vn}),Zn!=="stex"&&le.createElement(at.Z,{disabledFill:mt,showProgramFill:Ca,value:Vn})):null))),Sn?le.createElement("a",{ref:Go,className:"editor-resize"}):null,Vt===dn&&le.createElement(pt,{callback:Ia,onCancel:io}),Vt===Zt&&le.createElement($t,{callback:Ia,onCancel:io}),le.createElement(we.Z,null,Lo[Vt]&&Vt!==dn&&Vt!==Zt?le.createElement(Ge.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:or,top:So},title:le.createElement("div",{style:{cursor:"move"},onMouseDown:$r},Lo[Vt]),open:!0,onCancel:io,footer:null,destroyOnClose:!0,width:Vt===Zt?"1200px":null,height:Vt===Zt?"80vh":null,className:"markdown-popup-form"},ro):null))}},28451:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return se},I:function(){return we}});var le=ge(78241),be=ge(8591),ct=ge(92832),Ue=ge(81327),Pe=ge(5871),Be=ge(5112),fe=ge(3113),nt=ge(77903),Xe=ge(59301),Qe=ge(24065),at=ge(59301),et=Object.defineProperty,qe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,y=(Se,Re,Ae)=>Re in Se?et(Se,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Se[Re]=Ae,E=(Se,Re)=>{for(var Ae in Re||(Re={}))b.call(Re,Ae)&&y(Se,Ae,Re[Ae]);if(a)for(var Ae of a(Re))x.call(Re,Ae)&&y(Se,Ae,Re[Ae]);return Se},z=(Se,Re)=>qe(Se,ie(Re));const{useForm:ee}=le.default,ae={width:280,marginRight:10},te={labelCol:{span:5},wrapperCol:{span:19}};var se=({callback:Se,onCancel:Re})=>{const[Ae]=ee();let At=(0,Xe.useRef)();function un(yt){At.current.width=Ae.getFieldValue("width"),At.current.align=Ae.getFieldValue("align"),Se(yt,At.current)}function xn(yt,St){if(yt.status===-1){be.ZP.error(yt.message);return}Ae.setFieldsValue({src:`/api/attachments/${yt.id}`,type:St.type})}function Ie(yt){let St=yt.target.files[0];At.current=St,we(St,xn)}return at.createElement(le.default,z(E({form:Ae},te),{className:"upload-image-panel",onFinish:un,style:{width:470,overflow:"hidden"}}),at.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},at.createElement("div",{className:"flex-container"},at.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},at.createElement(ct.default,{style:ae})),at.createElement(de,{onFileChange:Ie}))),at.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},at.createElement(ct.default,{style:{width:264}})),at.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},at.createElement(Ue.Z,null,at.createElement(le.default.Item,{name:"width",style:{margin:0}},at.createElement(Pe.Z,{style:{width:264}})),at.createElement("span",{className:"ml8"},"%"))),at.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},at.createElement(Be.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),at.createElement("aside",null,at.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},at.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),at.createElement(fe.ZP,{type:"default",onClick:Re},"\u53D6\u6D88"))))};function de({onFileChange:Se}){return at.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",at.createElement("input",{type:"file",onChange:Se}))}function we(Se,Re){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Qe.bg)())throw be.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",Se),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var At=new window.XMLHttpRequest;At.withCredentials=!0,At.addEventListener("load",function(un){Re(JSON.parse(un.target.responseText),Se)},!1),At.addEventListener("error",function(un){console.error(un)},!1),At.open("POST",`${nt.KI}/api/attachments.json`),At.send(Ae)}},79346:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return ct}});var le=ge(59301),be=ge(4676);class ct extends le.Component{constructor(Pe){super(Pe);const Be=window.document;this.node=Be.createElement("div"),Be.body.appendChild(this.node)}render(){const{children:Pe}=this.props;return(0,be.createPortal)(Pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58856:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return be}});var le=ge(59301);function be(ct,Ue){const Pe=(0,le.useRef)();(0,le.useEffect)(()=>{Pe.current=ct}),(0,le.useEffect)(()=>{function Be(){Pe.current()}if(Ue!==null){let fe=setInterval(Be,Ue);return()=>clearInterval(fe)}},[Ue])}},852:function(ke,Ft,ge){"use strict";ge.r(Ft),ge.d(Ft,{default:function(){return yt}});var le=ge(59301),be=ge(99064),ct=ge(12290),Ue=ge(955),Pe=ge(89070),Be=ge(78241),fe=ge(66104),nt=ge(8591),Xe=ge(24905),Qe=ge(92832),at=ge(57809),et=ge(5112),qe=ge(5083),ie=ge(95237),a=ge(43604),b=ge(3113),x=ge(27812),y={flex_box_center:"flex_box_center___Zr62V",flex_space_between:"flex_space_between___MocyP",flex_box_vertical_center:"flex_box_vertical_center___q9TyA",flex_box_center_end:"flex_box_center_end___uv4oS",flex_box_column:"flex_box_column___Tkhbw",title:"title___vcf30",export:"export___WECx3",bg:"bg___cLnNg",tabs:"tabs___fDuTh",btn:"btn___ckSh1",sticky:"sticky___Jdoog",publishRuleContent:"publishRuleContent___t7UUq",groupSelector:"groupSelector___DpKup",addAndDelete:"addAndDelete___BPOVW",deleteIcon:"deleteIcon___oqgJJ",addIcon:"addIcon___Bb3Pt"},E=ge(57490),z=ge(24065),ee=ge(61186),ae=ge.n(ee),te=ge(12893),se=ge(32134),de=ge(59301),we=Object.defineProperty,Se=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,At=(St,gt,Lt)=>gt in St?we(St,gt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):St[gt]=Lt,un=(St,gt)=>{for(var Lt in gt||(gt={}))Re.call(gt,Lt)&&At(St,Lt,gt[Lt]);if(Se)for(var Lt of Se(gt))Ae.call(gt,Lt)&&At(St,Lt,gt[Lt]);return St},xn=(St,gt,Lt)=>new Promise((rt,Et)=>{var ht=Ge=>{try{ye(Lt.next(Ge))}catch(dt){Et(dt)}},pn=Ge=>{try{ye(Lt.throw(Ge))}catch(dt){Et(dt)}},ye=Ge=>Ge.done?rt(Ge.value):Promise.resolve(Ge.value).then(ht,pn);ye((Lt=Lt.apply(St,gt)).next())});const Ie=({shixunHomeworks:St,classroomList:gt,globalSetting:Lt,boards:rt,loading:Et,user:ht,dispatch:pn})=>{var ye,Ge,dt,Tt,it,pt,ue;const We=(0,Pe.useParams)(),bt=(0,Pe.useLocation)(),[fn]=Be.default.useForm(),[ln,_e]=(0,le.useState)({content:""});let[Ee,Le]=(0,le.useState)([{}]);const{userInfo:Ke}=ht,{detailLeftMenus:Je,detailCourseGroupsList:$t}=gt,{boardsCategoryList:Jt}=rt;let[Gt,on]=(0,le.useState)({unified_setting:!0,view_message_setting:Jt.allow_view_message?"0":"1"});return(0,le.useEffect)(()=>{pn({type:"boards/getBoardsCategoryList",payload:{board_id:We.categoryId}}).then(Nt=>{Gt.view_message_setting=Nt!=null&&Nt.allow_view_message?"0":"1"}),pn({type:"classroomList/getCourseGroupsList",payload:{page:1,id:We.coursesId,limit:1e3,nonenavigate:!0}})},[We.categoryId]),(0,le.useEffect)(()=>{fn.setFieldsValue({select_board_id:parseInt(We.categoryId)})},[gt.detailLeftMenus]),de.createElement("section",{className:y.bg},de.createElement("div",{className:"edu-container"},de.createElement("section",{className:"animated fadeIn"},de.createElement("aside",{className:"mt10"},de.createElement(fe.Z,{separator:">"},de.createElement(fe.Z.Item,null,de.createElement(Pe.Link,{to:`/classrooms/${We.coursesId}/board/${We.categoryId||""}`},(ye=Ke==null?void 0:Ke.course)==null?void 0:ye.course_name)),de.createElement(fe.Z.Item,null,de.createElement(Pe.Link,{to:`/classrooms/${We.coursesId}/board/${We.categoryId||""}`},(Tt=(dt=(Ge=Jt==null?void 0:Jt.boards)==null?void 0:Ge.filter(Nt=>Nt.id==We.categoryId))==null?void 0:dt[0])==null?void 0:Tt.name)),de.createElement(fe.Z.Item,null,"\u5E16\u5B50\u65B0\u5EFA"))),de.createElement("aside",{className:[y.title,"mt20"].join(" ")},de.createElement(Pe.Link,{to:`/classrooms/${We.coursesId}/board/${We.categoryId||""}`},de.createElement(x.Z,{className:"font16 c-black"})),de.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u5E16\u5B50"))),de.createElement(Be.default,{layout:"vertical",form:fn,initialValues:{name:"",sticky:!1},scrollToFirstError:!0,onValuesChange:Nt=>{_e(un({},Nt))},onFinish:Nt=>xn(void 0,null,function*(){var zt,Rt;if(Nt.attachment_ids=(zt=Nt.attachment_ids)==null?void 0:zt.map(cn=>cn.response.id),Nt.view_message_setting=Gt.view_message_setting,(0,z.eB)()&&(Nt.unified_setting=Gt.unified_setting,Nt.view_message_setting="1",Nt.group_settings=Ee,!Gt.unified_setting)){if(!Ee.length){nt.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}Ee.map(cn=>{if(!cn.group_id)throw nt.ZP.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!cn.publish_time)throw nt.ZP.error("\u53D1\u5E03\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}Nt=un({},Nt);const rn=yield(0,be.ZP)(`/api/boards/${We.categoryId}/messages.json`,{method:"post",body:Nt});rn.status===0&&((0,Ue.L9)(["\u6559\u5B66\u8BFE\u5802","\u8BA8\u8BBA","\u53D1\u5E16"]),nt.ZP.success("\u53D1\u5E03\u6210\u529F"),Pe.history.push(`/classrooms/${We.coursesId}/board/${We.categoryId}/Detail/${(Rt=rn==null?void 0:rn.data)==null?void 0:Rt.id}`))})},de.createElement("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block"},(0,z.GJ)()&&de.createElement(Be.default.Item,{label:"",name:"sticky",valuePropName:"checked",className:y.sticky},de.createElement(Xe.default,null,"\u7F6E\u9876")),de.createElement(Be.default.Item,{label:"\u6807\u9898",name:"subject",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},de.createElement(Qe.default,{suffix:`${((it=ln.subject)==null?void 0:it.length)||0}/60`,maxLength:60})),de.createElement(Be.default.Item,{label:"\u76EE\u5F55",name:"select_board_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u76EE\u5F55"}]},de.createElement(at.default,null,(pt=Jt==null?void 0:Jt.boards)==null?void 0:pt.map(Nt=>de.createElement(at.default.Option,{value:Nt==null?void 0:Nt.id},Nt==null?void 0:Nt.name)))),de.createElement(Be.default.Item,{label:"\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},de.createElement(ct.Z,{watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5E16\u5B50\u8BE6\u60C5\uFF0C\u6700\u5927\u9650\u5236\u4E3A10000\u4E2A\u5B57\u7B26"})),de.createElement(Be.default.Item,{name:"attachment_ids"},de.createElement(E.Z,null)),(0,z.dE)()&&de.createElement(et.ZP.Group,{style:{marginBottom:16},onChange:Nt=>{Gt.view_message_setting=Nt.target.value,on(Object.assign({},Gt))},value:Gt.view_message_setting},Jt.allow_view_message&&de.createElement(et.ZP,{value:"0"},"\u5168\u8BFE\u5802\u53EF\u89C1"),de.createElement(et.ZP,{value:"1"},"\u540C\u73ED\u5B66\u751F\u53EF\u89C1")),(0,z.eB)()&&de.createElement("div",null,de.createElement(et.ZP.Group,{onChange:()=>{Gt.unified_setting=!Gt.unified_setting,on(Object.assign({},Gt))},value:Gt.unified_setting},de.createElement(et.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),((ue=$t==null?void 0:$t.course_groups)==null?void 0:ue.length)>0&&de.createElement(et.ZP,{value:!1},"\u5206\u73ED\u53D1\u5E03")),(Gt==null?void 0:Gt.unified_setting)&&de.createElement(Be.default.Item,{style:{marginTop:16},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4"}],label:"\u53D1\u5E03\u65F6\u95F4",name:"publish_time"},de.createElement(qe.default,{showTime:{format:"HH:mm"},disabledDate:Nt=>Nt&&Nt<ae()().subtract(1,"days"),style:{width:"100%"}})),!Gt.unified_setting&&de.createElement(ie.Z,null,Ee&&(Ee==null?void 0:Ee.map(function(Nt,zt){var Rt;return de.createElement(a.Z,{span:24,key:zt,style:{marginTop:30}},de.createElement(ie.Z,{className:`${y.publishRuleIndex}`,align:"middle"},"\u53D1\u5E03\u89C4\u5219 ",zt+1),de.createElement(ie.Z,{className:`${y.publishRuleContent} ${y.contentInterval}`,align:"middle",wrap:!1},de.createElement(a.Z,null,"\u73ED\u7EA7"),de.createElement(a.Z,{className:y.groupSelector},de.createElement(at.default,{showArrow:!0,allowClear:!0,style:{width:"100%"},mode:"multiple",size:"middle",value:Nt.course_group_id,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",optionFilterProp:"label",onChange:rn=>{Ee[zt].group_id=rn,Le(Ee.slice()),$t.course_groups.map((cn,Tn)=>{rn.map((Dn,wn)=>{cn.id===Dn&&(cn.cilckkey=zt,cn.isselect=!0)})})},onDeselect:rn=>{$t.course_groups.map((cn,Tn)=>{cn.id===rn&&cn.cilckkey===zt&&(cn.cilckkey=zt,cn.isselect=!1)})}},$t.course_groups&&((Rt=$t.course_groups)==null?void 0:Rt.filter(rn=>rn.edit_auth).map(function(rn,cn){return de.createElement(Option,{disabled:(rn==null?void 0:rn.isselect)&&rn.cilckkey!=zt,label:rn.course_group_name,value:rn.id,key:rn.id},rn.name)})))),de.createElement(a.Z,null,"\u53D1\u5E03\u65F6\u95F4"),de.createElement(a.Z,{flex:1},de.createElement(qe.default,{showTime:{format:"HH:mm"},onChange:(rn,cn)=>{Ee[zt].publish_time=rn,Le([...Ee])},disabledDate:rn=>rn&&rn<ae()().subtract(1,"days"),style:{width:"100%"}})),de.createElement(a.Z,{className:y.addAndDelete},de.createElement(te.Z,{style:{visibility:(Nt!=null&&Nt.publish_time&&ae()()<ae()(Nt==null?void 0:Nt.publish_time)||!(Nt!=null&&Nt.publish_time))&&zt!=0?"visible":"hidden"},className:y.deleteIcon,onClick:()=>{Ee=Ee.filter((rn,cn)=>zt!==cn),Le([...Ee])}}),de.createElement(se.Z,{className:y.addIcon,onClick:()=>{Le(Ee.concat({new:!0}))}}))))}))))),de.createElement("div",{className:[y.btn,"mt20"].join(" ")},de.createElement(Be.default.Item,null,de.createElement(b.ZP,{htmlType:"submit",size:"middle",type:"primary"},"\u63D0\u4EA4"),de.createElement(b.ZP,{size:"middle",ghost:!0,type:"primary",onClick:()=>{Pe.history.push(`/classrooms/${We.coursesId}/board/${We.categoryId}`)}},"\u53D6\u6D88"))))))};var yt=(0,Pe.connect)(({shixunHomeworks:St,classroomList:gt,loading:Lt,user:rt,boards:Et,globalSetting:ht})=>({shixunHomeworks:St,globalSetting:ht,classroomList:gt,user:rt,boards:Et,loading:Lt.effects}))(Ie)},23538:function(ke,Ft,ge){"use strict";ge.d(Ft,{$J:function(){return ct},JZ:function(){return Pe},bN:function(){return fe},jP:function(){return Be},rO:function(){return Ue}});var le=ge(99064),be=(nt,Xe,Qe)=>new Promise((at,et)=>{var qe=b=>{try{a(Qe.next(b))}catch(x){et(x)}},ie=b=>{try{a(Qe.throw(b))}catch(x){et(x)}},a=b=>b.done?at(b.value):Promise.resolve(b.value).then(qe,ie);a((Qe=Qe.apply(nt,Xe)).next())});function ct(nt){return(0,le.U2)(`libraries/${nt}.json`)}function Ue(nt){return(0,le.U2)("library_tags.json",nt)}function Pe(nt){return be(this,null,function*(){return(yield(0,le.IV)(`attachments/${nt}.json`)).status===0})}function Be(nt){return(0,le.v_)("libraries.json",nt)}function fe(nt,Xe){return(0,le.gz)(`libraries/${nt}.json`,Xe)}},56762:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return be}});var le=ge(59301);function be(){const[,ct]=le.useReducer(Ue=>Ue+1,0);return ct}},66104:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return xn}});var le=ge(92310),be=ge.n(le),ct=ge(11592),Ue=ge(26112),Pe=ge(59301),Be=ge(92343),fe=ge(36355),nt=ge(84105),Xe=ge(91857);const Qe=Ie=>{let{children:yt}=Ie;const{getPrefixCls:St}=Pe.useContext(fe.E_),gt=St("breadcrumb");return Pe.createElement("li",{className:`${gt}-separator`,"aria-hidden":"true"},yt===""?yt:yt||"/")};Qe.__ANT_BREADCRUMB_SEPARATOR=!0;var at=Qe,et=function(Ie,yt){var St={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&yt.indexOf(gt)<0&&(St[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,gt=Object.getOwnPropertySymbols(Ie);Lt<gt.length;Lt++)yt.indexOf(gt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Lt])&&(St[gt[Lt]]=Ie[gt[Lt]]);return St};function qe(Ie,yt){if(Ie.title===void 0||Ie.title===null)return null;const St=Object.keys(yt).join("|");return typeof Ie.title=="object"?Ie.title:String(Ie.title).replace(new RegExp(`:(${St})`,"g"),(gt,Lt)=>yt[Lt]||gt)}function ie(Ie,yt,St,gt){if(St==null)return null;const{className:Lt,onClick:rt}=yt,Et=et(yt,["className","onClick"]),ht=Object.assign(Object.assign({},(0,Ue.Z)(Et,{data:!0,aria:!0})),{onClick:rt});return gt!==void 0?Pe.createElement("a",Object.assign({},ht,{className:be()(`${Ie}-link`,Lt),href:gt}),St):Pe.createElement("span",Object.assign({},ht,{className:be()(`${Ie}-link`,Lt)}),St)}function a(Ie,yt){return(gt,Lt,rt,Et,ht)=>{if(yt)return yt(gt,Lt,rt,Et);const pn=qe(gt,Lt);return ie(Ie,gt,pn,ht)}}var b=function(Ie,yt){var St={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&yt.indexOf(gt)<0&&(St[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,gt=Object.getOwnPropertySymbols(Ie);Lt<gt.length;Lt++)yt.indexOf(gt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Lt])&&(St[gt[Lt]]=Ie[gt[Lt]]);return St};const x=Ie=>{const{prefixCls:yt,separator:St="/",children:gt,menu:Lt,overlay:rt,dropdownProps:Et,href:ht}=Ie,ye=(Ge=>{if(Lt||rt){const dt=Object.assign({},Et);if(Lt){const Tt=Lt||{},{items:it}=Tt,pt=b(Tt,["items"]);dt.menu=Object.assign(Object.assign({},pt),{items:it==null?void 0:it.map((ue,We)=>{var{key:bt,title:fn,label:ln,path:_e}=ue,Ee=b(ue,["key","title","label","path"]);let Le=ln!=null?ln:fn;return _e&&(Le=Pe.createElement("a",{href:`${ht}${_e}`},Le)),Object.assign(Object.assign({},Ee),{key:bt!=null?bt:We,label:Le})})})}else rt&&(dt.overlay=rt);return Pe.createElement(Xe.Z,Object.assign({placement:"bottom"},dt),Pe.createElement("span",{className:`${yt}-overlay-link`},Ge,Pe.createElement(nt.Z,null)))}return Ge})(gt);return ye!=null?Pe.createElement(Pe.Fragment,null,Pe.createElement("li",null,ye),St&&Pe.createElement(at,null,St)):null},y=Ie=>{const{prefixCls:yt,children:St,href:gt}=Ie,Lt=b(Ie,["prefixCls","children","href"]),{getPrefixCls:rt}=Pe.useContext(fe.E_),Et=rt("breadcrumb",yt);return Pe.createElement(x,Object.assign({},Lt,{prefixCls:Et}),ie(Et,Lt,St,gt))};y.__ANT_BREADCRUMB_ITEM=!0;var E=y,z=ge(17313),ee=ge(83116),ae=ge(37613);const te=Ie=>{const{componentCls:yt,iconCls:St}=Ie;return{[yt]:Object.assign(Object.assign({},(0,z.Wf)(Ie)),{color:Ie.itemColor,fontSize:Ie.fontSize,[St]:{fontSize:Ie.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ie.linkColor,transition:`color ${Ie.motionDurationMid}`,padding:`0 ${Ie.paddingXXS}px`,borderRadius:Ie.borderRadiusSM,height:Ie.lineHeight*Ie.fontSize,display:"inline-block",marginInline:-Ie.marginXXS,"&:hover":{color:Ie.linkHoverColor,backgroundColor:Ie.colorBgTextHover}},(0,z.Qy)(Ie)),"li:last-child":{color:Ie.lastItemColor},[`${yt}-separator`]:{marginInline:Ie.separatorMargin,color:Ie.separatorColor},[`${yt}-link`]:{[`
> ${St} + span,
> ${St} + a
`]:{marginInlineStart:Ie.marginXXS}},[`${yt}-overlay-link`]:{borderRadius:Ie.borderRadiusSM,height:Ie.lineHeight*Ie.fontSize,display:"inline-block",padding:`0 ${Ie.paddingXXS}px`,marginInline:-Ie.marginXXS,[`> ${St}`]:{marginInlineStart:Ie.marginXXS,fontSize:Ie.fontSizeIcon},"&:hover":{color:Ie.linkHoverColor,backgroundColor:Ie.colorBgTextHover,a:{color:Ie.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ie.componentCls}-rtl`]:{direction:"rtl"}})}};var se=(0,ee.Z)("Breadcrumb",Ie=>{const yt=(0,ae.TS)(Ie,{});return[te(yt)]},Ie=>({itemColor:Ie.colorTextDescription,lastItemColor:Ie.colorText,iconFontSize:Ie.fontSize,linkColor:Ie.colorTextDescription,linkHoverColor:Ie.colorText,separatorColor:Ie.colorTextDescription,separatorMargin:Ie.marginXS})),de=function(Ie,yt){var St={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&yt.indexOf(gt)<0&&(St[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,gt=Object.getOwnPropertySymbols(Ie);Lt<gt.length;Lt++)yt.indexOf(gt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Lt])&&(St[gt[Lt]]=Ie[gt[Lt]]);return St};function we(Ie){const{breadcrumbName:yt,children:St}=Ie,gt=de(Ie,["breadcrumbName","children"]),Lt=Object.assign({title:yt},gt);return St&&(Lt.menu={items:St.map(rt=>{var{breadcrumbName:Et}=rt,ht=de(rt,["breadcrumbName"]);return Object.assign(Object.assign({},ht),{title:Et})})}),Lt}function Se(Ie,yt){return(0,Pe.useMemo)(()=>Ie||(yt?yt.map(we):null),[Ie,yt])}var Re=function(Ie,yt){var St={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&yt.indexOf(gt)<0&&(St[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,gt=Object.getOwnPropertySymbols(Ie);Lt<gt.length;Lt++)yt.indexOf(gt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Lt])&&(St[gt[Lt]]=Ie[gt[Lt]]);return St};const Ae=(Ie,yt)=>{if(yt===void 0)return yt;let St=(yt||"").replace(/^\//,"");return Object.keys(Ie).forEach(gt=>{St=St.replace(`:${gt}`,Ie[gt])}),St},At=Ie=>{const{prefixCls:yt,separator:St="/",style:gt,className:Lt,rootClassName:rt,routes:Et,items:ht,children:pn,itemRender:ye,params:Ge={}}=Ie,dt=Re(Ie,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Tt,direction:it,breadcrumb:pt}=Pe.useContext(fe.E_);let ue;const We=Tt("breadcrumb",yt),[bt,fn]=se(We),ln=Se(ht,Et),_e=a(We,ye);if(ln&&ln.length>0){const Ke=[],Je=ht||Et;ue=ln.map(($t,Jt)=>{const{path:Gt,key:on,type:Nt,menu:zt,overlay:Rt,onClick:rn,className:cn,separator:Tn,dropdownProps:Dn}=$t,wn=Ae(Ge,Gt);wn!==void 0&&Ke.push(wn);const Ce=on!=null?on:Jt;if(Nt==="separator")return Pe.createElement(at,{key:Ce},Tn);const Me={},lt=Jt===ln.length-1;zt?Me.menu=zt:Rt&&(Me.overlay=Rt);let{href:Bt}=$t;return Ke.length&&wn!==void 0&&(Bt=`#/${Ke.join("/")}`),Pe.createElement(x,Object.assign({key:Ce},Me,(0,Ue.Z)($t,{data:!0,aria:!0}),{className:cn,dropdownProps:Dn,href:Bt,separator:lt?"":St,onClick:rn,prefixCls:We}),_e($t,Ge,Je,Ke,Bt))})}else if(pn){const Ke=(0,ct.Z)(pn).length;ue=(0,ct.Z)(pn).map((Je,$t)=>{if(!Je)return Je;const Jt=$t===Ke-1;return(0,Be.Tm)(Je,{separator:Jt?"":St,key:$t})})}const Ee=be()(We,pt==null?void 0:pt.className,{[`${We}-rtl`]:it==="rtl"},Lt,rt,fn),Le=Object.assign(Object.assign({},pt==null?void 0:pt.style),gt);return bt(Pe.createElement("nav",Object.assign({className:Ee,style:Le},dt),Pe.createElement("ol",null,ue)))};At.Item=E,At.Separator=at;var un=At,xn=un},24905:function(ke,Ft,ge){"use strict";ge.d(Ft,{default:function(){return se}});var le=ge(92310),be=ge.n(le),ct=ge(5630),Ue=ge(59301),Pe=ge(36355),Be=ge(1684),fe=ge(32441),Xe=Ue.createContext(null),Qe=ge(98447),at=ge(14088),et=ge(4572),qe=function(de,we){var Se={};for(var Re in de)Object.prototype.hasOwnProperty.call(de,Re)&&we.indexOf(Re)<0&&(Se[Re]=de[Re]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Re=Object.getOwnPropertySymbols(de);Ae<Re.length;Ae++)we.indexOf(Re[Ae])<0&&Object.prototype.propertyIsEnumerable.call(de,Re[Ae])&&(Se[Re[Ae]]=de[Re[Ae]]);return Se};const ie=(de,we)=>{var Se;const{prefixCls:Re,className:Ae,rootClassName:At,children:un,indeterminate:xn=!1,style:Ie,onMouseEnter:yt,onMouseLeave:St,skipGroup:gt=!1,disabled:Lt}=de,rt=qe(de,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Et,direction:ht,checkbox:pn}=Ue.useContext(Pe.E_),ye=Ue.useContext(Xe),{isFormItemInput:Ge}=Ue.useContext(fe.aM),dt=Ue.useContext(Be.Z),Tt=(Se=(ye==null?void 0:ye.disabled)||Lt)!==null&&Se!==void 0?Se:dt,it=Ue.useRef(rt.value);Ue.useEffect(()=>{ye==null||ye.registerValue(rt.value)},[]),Ue.useEffect(()=>{if(!gt)return rt.value!==it.current&&(ye==null||ye.cancelValue(it.current),ye==null||ye.registerValue(rt.value),it.current=rt.value),()=>ye==null?void 0:ye.cancelValue(rt.value)},[rt.value]);const pt=Et("checkbox",Re),[ue,We]=(0,Qe.ZP)(pt),bt=Object.assign({},rt);ye&&!gt&&(bt.onChange=function(){rt.onChange&&rt.onChange.apply(rt,arguments),ye.toggleOption&&ye.toggleOption({label:un,value:rt.value})},bt.name=ye.name,bt.checked=ye.value.includes(rt.value));const fn=be()(`${pt}-wrapper`,{[`${pt}-rtl`]:ht==="rtl",[`${pt}-wrapper-checked`]:bt.checked,[`${pt}-wrapper-disabled`]:Tt,[`${pt}-wrapper-in-form-item`]:Ge},pn==null?void 0:pn.className,Ae,At,We),ln=be()({[`${pt}-indeterminate`]:xn},et.A,We),_e=xn?"mixed":void 0;return ue(Ue.createElement(at.Z,{component:"Checkbox",disabled:Tt},Ue.createElement("label",{className:fn,style:Object.assign(Object.assign({},pn==null?void 0:pn.style),Ie),onMouseEnter:yt,onMouseLeave:St},Ue.createElement(ct.Z,Object.assign({"aria-checked":_e},bt,{prefixCls:pt,className:ln,disabled:Tt,ref:we})),un!==void 0&&Ue.createElement("span",null,un))))};var b=Ue.forwardRef(ie),x=ge(26407),y=ge(2738),E=function(de,we){var Se={};for(var Re in de)Object.prototype.hasOwnProperty.call(de,Re)&&we.indexOf(Re)<0&&(Se[Re]=de[Re]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Re=Object.getOwnPropertySymbols(de);Ae<Re.length;Ae++)we.indexOf(Re[Ae])<0&&Object.prototype.propertyIsEnumerable.call(de,Re[Ae])&&(Se[Re[Ae]]=de[Re[Ae]]);return Se};const z=(de,we)=>{const{defaultValue:Se,children:Re,options:Ae=[],prefixCls:At,className:un,rootClassName:xn,style:Ie,onChange:yt}=de,St=E(de,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:gt,direction:Lt}=Ue.useContext(Pe.E_),[rt,Et]=Ue.useState(St.value||Se||[]),[ht,pn]=Ue.useState([]);Ue.useEffect(()=>{"value"in St&&Et(St.value||[])},[St.value]);const ye=Ue.useMemo(()=>Ae.map(Ee=>typeof Ee=="string"||typeof Ee=="number"?{label:Ee,value:Ee}:Ee),[Ae]),Ge=Ee=>{pn(Le=>Le.filter(Ke=>Ke!==Ee))},dt=Ee=>{pn(Le=>[].concat((0,x.Z)(Le),[Ee]))},Tt=Ee=>{const Le=rt.indexOf(Ee.value),Ke=(0,x.Z)(rt);Le===-1?Ke.push(Ee.value):Ke.splice(Le,1),"value"in St||Et(Ke),yt==null||yt(Ke.filter(Je=>ht.includes(Je)).sort((Je,$t)=>{const Jt=ye.findIndex(on=>on.value===Je),Gt=ye.findIndex(on=>on.value===$t);return Jt-Gt}))},it=gt("checkbox",At),pt=`${it}-group`,[ue,We]=(0,Qe.ZP)(it),bt=(0,y.Z)(St,["value","disabled"]),fn=Ae.length?ye.map(Ee=>Ue.createElement(b,{prefixCls:it,key:Ee.value.toString(),disabled:"disabled"in Ee?Ee.disabled:St.disabled,value:Ee.value,checked:rt.includes(Ee.value),onChange:Ee.onChange,className:`${pt}-item`,style:Ee.style,title:Ee.title},Ee.label)):Re,ln={toggleOption:Tt,value:rt,disabled:St.disabled,name:St.name,registerValue:dt,cancelValue:Ge},_e=be()(pt,{[`${pt}-rtl`]:Lt==="rtl"},un,xn,We);return ue(Ue.createElement("div",Object.assign({className:_e,style:Ie},bt,{ref:we}),Ue.createElement(Xe.Provider,{value:ln},fn)))},ee=Ue.forwardRef(z);var ae=Ue.memo(ee);const te=b;te.Group=ae,te.__ANT_CHECKBOX=!0;var se=te},98447:function(ke,Ft,ge){"use strict";ge.d(Ft,{C2:function(){return Pe}});var le=ge(17313),be=ge(37613),ct=ge(83116);const Ue=Be=>{const{checkboxCls:fe}=Be,nt=`${fe}-wrapper`;return[{[`${fe}-group`]:Object.assign(Object.assign({},(0,le.Wf)(Be)),{display:"inline-flex",flexWrap:"wrap",columnGap:Be.marginXS,[`> ${Be.antCls}-row`]:{flex:1}}),[nt]:Object.assign(Object.assign({},(0,le.Wf)(Be)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${nt}`]:{marginInlineStart:0},[`&${nt}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[fe]:Object.assign(Object.assign({},(0,le.Wf)(Be)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Be.borderRadiusSM,alignSelf:"center",[`${fe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${fe}-inner`]:Object.assign({},(0,le.oN)(Be))},[`${fe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Be.checkboxSize,height:Be.checkboxSize,direction:"ltr",backgroundColor:Be.colorBgContainer,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadiusSM,borderCollapse:"separate",transition:`all ${Be.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Be.checkboxSize/14*5,height:Be.checkboxSize/14*8,border:`${Be.lineWidthBold}px solid ${Be.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Be.motionDurationFast} ${Be.motionEaseInBack}, opacity ${Be.motionDurationFast}`}},"& + span":{paddingInlineStart:Be.paddingXS,paddingInlineEnd:Be.paddingXS}})},{[`
${nt}:not(${nt}-disabled),
${fe}:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{borderColor:Be.colorPrimary}},[`${nt}:not(${nt}-disabled)`]:{[`&:hover ${fe}-checked:not(${fe}-disabled) ${fe}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${fe}-checked:not(${fe}-disabled):after`]:{borderColor:Be.colorPrimaryHover}}},{[`${fe}-checked`]:{[`${fe}-inner`]:{backgroundColor:Be.colorPrimary,borderColor:Be.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Be.motionDurationMid} ${Be.motionEaseOutBack} ${Be.motionDurationFast}`}}},[`
${nt}-checked:not(${nt}-disabled),
${fe}-checked:not(${fe}-disabled)
`]:{[`&:hover ${fe}-inner`]:{backgroundColor:Be.colorPrimaryHover,borderColor:"transparent"}}},{[fe]:{"&-indeterminate":{[`${fe}-inner`]:{backgroundColor:Be.colorBgContainer,borderColor:Be.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Be.fontSizeLG/2,height:Be.fontSizeLG/2,backgroundColor:Be.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${nt}-disabled`]:{cursor:"not-allowed"},[`${fe}-disabled`]:{[`&, ${fe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${fe}-inner`]:{background:Be.colorBgContainerDisabled,borderColor:Be.colorBorder,"&:after":{borderColor:Be.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Be.colorTextDisabled},[`&${fe}-indeterminate ${fe}-inner::after`]:{background:Be.colorTextDisabled}}}]};function Pe(Be,fe){const nt=(0,be.TS)(fe,{checkboxCls:`.${Be}`,checkboxSize:fe.controlInteractiveSize});return[Ue(nt)]}Ft.ZP=(0,ct.Z)("Checkbox",(Be,fe)=>{let{prefixCls:nt}=fe;return[Pe(nt,Be)]})},5083:function(ke,Ft,ge){"use strict";ge.d(Ft,{default:function(){return jg}});var le=ge(61186),be=ge.n(le),ct=ge(48736),Ue=ge(90111),Pe=ge.n(Ue),Be=ge(58319),fe=ge.n(Be),nt=ge(23250),Xe=ge.n(nt),Qe=ge(74959),at=ge.n(Qe),et=ge(10238),qe=ge.n(et),ie=ge(33656),a=ge.n(ie);be().extend(a()),be().extend(qe()),be().extend(Pe()),be().extend(fe()),be().extend(Xe()),be().extend(at()),be().extend(function(ne,oe){var re=oe.prototype,ce=re.format;re.format=function(pe){var he=(pe||"").replace("Wo","wo");return ce.bind(this)(he)}});var b={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},x=function(oe){var re=b[oe];return re||oe.split("_")[0]},y=function(){(0,ct.ET)(!1,"Not match any format. Please help to fire a issue about this.")},E={getNow:function(){return be()()},getFixedDate:function(oe){return be()(oe,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(oe){return oe.endOf("month")},getWeekDay:function(oe){var re=oe.locale("en");return re.weekday()+re.localeData().firstDayOfWeek()},getYear:function(oe){return oe.year()},getMonth:function(oe){return oe.month()},getDate:function(oe){return oe.date()},getHour:function(oe){return oe.hour()},getMinute:function(oe){return oe.minute()},getSecond:function(oe){return oe.second()},addYear:function(oe,re){return oe.add(re,"year")},addMonth:function(oe,re){return oe.add(re,"month")},addDate:function(oe,re){return oe.add(re,"day")},setYear:function(oe,re){return oe.year(re)},setMonth:function(oe,re){return oe.month(re)},setDate:function(oe,re){return oe.date(re)},setHour:function(oe,re){return oe.hour(re)},setMinute:function(oe,re){return oe.minute(re)},setSecond:function(oe,re){return oe.second(re)},isAfter:function(oe,re){return oe.isAfter(re)},isValidate:function(oe){return oe.isValid()},locale:{getWeekFirstDay:function(oe){return be()().locale(x(oe)).localeData().firstDayOfWeek()},getWeekFirstDate:function(oe,re){return re.locale(x(oe)).weekday(0)},getWeek:function(oe,re){return re.locale(x(oe)).week()},getShortWeekDays:function(oe){return be()().locale(x(oe)).localeData().weekdaysMin()},getShortMonths:function(oe){return be()().locale(x(oe)).localeData().monthsShort()},format:function(oe,re,ce){return re.locale(x(oe)).format(ce)},parse:function(oe,re,ce){for(var me=x(oe),pe=0;pe<ce.length;pe+=1){var he=ce[pe],Ne=re;if(he.includes("wo")||he.includes("Wo")){for(var Oe=Ne.split("-")[0],ze=Ne.split("-")[1],xt=be()(Oe,"YYYY").startOf("year").locale(me),Ve=0;Ve<=52;Ve+=1){var Ye=xt.add(Ve,"week");if(Ye.format("Wo")===ze)return Ye}return y(),null}var st=be()(Ne,he,!0).locale(me);if(st.isValid())return st}return re&&y(),null}}},z=E,ee=ge(53487),ae=ge(92413),te=ge(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},de=se,we=ge(7657),Se=function(oe,re){return te.createElement(we.Z,(0,ae.Z)({},oe,{ref:re,icon:de}))},Re=te.forwardRef(Se),Ae=Re,At={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},un=At,xn=function(oe,re){return te.createElement(we.Z,(0,ae.Z)({},oe,{ref:re,icon:un}))},Ie=te.forwardRef(xn),yt=Ie,St=ge(19248),gt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Lt=gt,rt=function(oe,re){return te.createElement(we.Z,(0,ae.Z)({},oe,{ref:re,icon:Lt}))},Et=te.forwardRef(rt),ht=Et,pn=ge(92310),ye=ge.n(pn),Ge=ge(6909),dt=ge(4771),Tt=ge(25314),it=ge(9427),pt=ge(25440),ue=ge(400),We=ge(33708),bt=ge(33606),fn=ge(18929),ln=ge(26112),_e=ge(80547),Ee=ge(13697),Le=10,Ke=Le*10,Je=7;function $t(ne,oe){if(!ne&&!oe)return!0;if(!ne||!oe)return!1}function Jt(ne,oe,re){var ce=$t(oe,re);if(typeof ce=="boolean")return ce;var me=Math.floor(ne.getYear(oe)/10),pe=Math.floor(ne.getYear(re)/10);return me===pe}function Gt(ne,oe,re){var ce=$t(oe,re);return typeof ce=="boolean"?ce:ne.getYear(oe)===ne.getYear(re)}function on(ne,oe){var re=Math.floor(ne.getMonth(oe)/3);return re+1}function Nt(ne,oe,re){var ce=$t(oe,re);return typeof ce=="boolean"?ce:Gt(ne,oe,re)&&on(ne,oe)===on(ne,re)}function zt(ne,oe,re){var ce=$t(oe,re);return typeof ce=="boolean"?ce:Gt(ne,oe,re)&&ne.getMonth(oe)===ne.getMonth(re)}function Rt(ne,oe,re){var ce=$t(oe,re);return typeof ce=="boolean"?ce:ne.getYear(oe)===ne.getYear(re)&&ne.getMonth(oe)===ne.getMonth(re)&&ne.getDate(oe)===ne.getDate(re)}function rn(ne,oe,re){var ce=$t(oe,re);return typeof ce=="boolean"?ce:ne.getHour(oe)===ne.getHour(re)&&ne.getMinute(oe)===ne.getMinute(re)&&ne.getSecond(oe)===ne.getSecond(re)}function cn(ne,oe,re,ce){var me=$t(re,ce);return typeof me=="boolean"?me:Gt(ne,re,ce)&&ne.locale.getWeek(oe,re)===ne.locale.getWeek(oe,ce)}function Tn(ne,oe,re){return Rt(ne,oe,re)&&rn(ne,oe,re)}function Dn(ne,oe,re,ce){return!oe||!re||!ce?!1:!Rt(ne,oe,ce)&&!Rt(ne,re,ce)&&ne.isAfter(ce,oe)&&ne.isAfter(re,ce)}function wn(ne,oe,re){var ce=oe.locale.getWeekFirstDay(ne),me=oe.setDate(re,1),pe=oe.getWeekDay(me),he=oe.addDate(me,ce-pe);return oe.getMonth(he)===oe.getMonth(re)&&oe.getDate(he)>1&&(he=oe.addDate(he,-7)),he}function Ce(ne,oe,re){var ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(oe){case"year":return re.addYear(ne,ce*10);case"quarter":case"month":return re.addYear(ne,ce);default:return re.addMonth(ne,ce)}}function Me(ne,oe){var re=oe.generateConfig,ce=oe.locale,me=oe.format;return typeof me=="function"?me(ne):re.locale.format(ce.locale,ne,me)}function lt(ne,oe){var re=oe.generateConfig,ce=oe.locale,me=oe.formatList;return!ne||typeof me[0]=="function"?null:re.locale.parse(ce.locale,ne,me)}function Bt(ne){var oe=ne.cellDate,re=ne.mode,ce=ne.disabledDate,me=ne.generateConfig;if(!ce)return!1;var pe=function(ut,De,je){for(var ft=De;ft<=je;){var Ht=void 0;switch(ut){case"date":{if(Ht=me.setDate(oe,ft),!ce(Ht))return!1;break}case"month":{if(Ht=me.setMonth(oe,ft),!Bt({cellDate:Ht,mode:"month",generateConfig:me,disabledDate:ce}))return!1;break}case"year":{if(Ht=me.setYear(oe,ft),!Bt({cellDate:Ht,mode:"year",generateConfig:me,disabledDate:ce}))return!1;break}}ft+=1}return!0};switch(re){case"date":case"week":return ce(oe);case"month":{var he=1,Ne=me.getDate(me.getEndDate(oe));return pe("date",he,Ne)}case"quarter":{var Oe=Math.floor(me.getMonth(oe)/3)*3,ze=Oe+2;return pe("month",Oe,ze)}case"year":return pe("month",0,11);case"decade":{var xt=me.getYear(oe),Ve=Math.floor(xt/Le)*Le,Ye=Ve+Le-1;return pe("year",Ve,Ye)}}}function Zt(ne,oe){var re=oe.formatList,ce=oe.generateConfig,me=oe.locale;return(0,_e.Z)(function(){if(!ne)return[[""],""];for(var pe="",he=[],Ne=0;Ne<re.length;Ne+=1){var Oe=re[Ne],ze=Me(ne,{generateConfig:ce,locale:me,format:Oe});he.push(ze),Ne===0&&(pe=ze)}return[he,pe]},[ne,re,me],function(pe,he){return!Tn(ce,pe[0],he[0])||!(0,Ee.Z)(pe[1],he[1],!0)||!(0,Ee.Z)(pe[2],he[2],!0)})}function dn(ne,oe){var re=oe.formatList,ce=oe.generateConfig,me=oe.locale,pe=(0,te.useState)(null),he=(0,bt.Z)(pe,2),Ne=he[0],Oe=he[1],ze=(0,te.useRef)(null);function xt(je){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(ze.current),ft){Oe(je);return}ze.current=requestAnimationFrame(function(){Oe(je)})}var Ve=Zt(Ne,{formatList:re,generateConfig:ce,locale:me}),Ye=(0,bt.Z)(Ve,2),st=Ye[1];function ut(je){xt(je)}function De(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;xt(null,je)}return(0,te.useEffect)(function(){De(!0)},[ne]),(0,te.useEffect)(function(){return function(){return cancelAnimationFrame(ze.current)}},[]),[st,ut,De]}var Mt=ge(10228),en=ge(16089),mn=ge(26407),Mn=ge(29194),Ln=new Map;function Wn(ne,oe){var re;function ce(){(0,Mn.Z)(ne)?oe():re=(0,en.Z)(function(){ce()})}return ce(),function(){en.Z.cancel(re)}}function oa(ne,oe,re){if(Ln.get(ne)&&cancelAnimationFrame(Ln.get(ne)),re<=0){Ln.set(ne,requestAnimationFrame(function(){ne.scrollTop=oe}));return}var ce=oe-ne.scrollTop,me=ce/re*10;Ln.set(ne,requestAnimationFrame(function(){ne.scrollTop+=me,ne.scrollTop!==oe&&oa(ne,oe,re-10)}))}function qn(ne,oe){var re=oe.onLeftRight,ce=oe.onCtrlLeftRight,me=oe.onUpDown,pe=oe.onPageUpDown,he=oe.onEnter,Ne=ne.which,Oe=ne.ctrlKey,ze=ne.metaKey;switch(Ne){case Mt.Z.LEFT:if(Oe||ze){if(ce)return ce(-1),!0}else if(re)return re(-1),!0;break;case Mt.Z.RIGHT:if(Oe||ze){if(ce)return ce(1),!0}else if(re)return re(1),!0;break;case Mt.Z.UP:if(me)return me(-1),!0;break;case Mt.Z.DOWN:if(me)return me(1),!0;break;case Mt.Z.PAGE_UP:if(pe)return pe(-1),!0;break;case Mt.Z.PAGE_DOWN:if(pe)return pe(1),!0;break;case Mt.Z.ENTER:if(he)return he(),!0;break}return!1}function Pa(ne,oe,re,ce){var me=ne;if(!me)switch(oe){case"time":me=ce?"hh:mm:ss a":"HH:mm:ss";break;case"week":me="gggg-wo";break;case"month":me="YYYY-MM";break;case"quarter":me="YYYY-[Q]Q";break;case"year":me="YYYY";break;default:me=re?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return me}function Yn(ne,oe,re){var ce=ne==="time"?8:10,me=typeof oe=="function"?oe(re.getNow()).length:oe.length;return Math.max(ce,me)+2}var Gn=null,ia=new Set;function Ea(ne){return!Gn&&typeof window!="undefined"&&window.addEventListener&&(Gn=function(re){(0,mn.Z)(ia).forEach(function(ce){ce(re)})},window.addEventListener("mousedown",Gn)),ia.add(ne),function(){ia.delete(ne),ia.size===0&&(window.removeEventListener("mousedown",Gn),Gn=null)}}function $a(ne){var oe=ne.target;if(ne.composed&&oe.shadowRoot){var re;return((re=ne.composedPath)===null||re===void 0?void 0:re.call(ne)[0])||oe}return oe}var ra=function(oe){return oe==="month"||oe==="date"?"year":oe},Oa=function(oe){return oe==="date"?"month":oe},Po=function(oe){return oe==="month"||oe==="date"?"quarter":oe},Ma=function(oe){return oe==="date"?"week":oe},no={year:ra,month:Oa,quarter:Po,week:Ma,time:null,date:null};function Lo(ne,oe){return ne.some(function(re){return re&&re.contains(oe)})}function ao(ne){var oe=ne.open,re=ne.value,ce=ne.isClickOutside,me=ne.triggerOpen,pe=ne.forwardKeyDown,he=ne.onKeyDown,Ne=ne.blurToCancel,Oe=ne.onSubmit,ze=ne.onCancel,xt=ne.onFocus,Ve=ne.onBlur,Ye=ne.changeOnBlur,st=(0,te.useState)(!1),ut=(0,bt.Z)(st,2),De=ut[0],je=ut[1],ft=(0,te.useState)(!1),Ht=(0,bt.Z)(ft,2),It=Ht[0],jt=Ht[1],Xt=(0,te.useRef)(!1),Ut=(0,te.useRef)(!1),Ot=(0,te.useRef)(!1),Nn={onMouseDown:function(){je(!0),me(!0)},onKeyDown:function(On){var Hn=function(){Ot.current=!0};if(he(On,Hn),!Ot.current){switch(On.which){case Mt.Z.ENTER:{oe?Oe()!==!1&&je(!0):me(!0),On.preventDefault();return}case Mt.Z.TAB:{De&&oe&&!On.shiftKey?(je(!1),On.preventDefault()):!De&&oe&&!pe(On)&&On.shiftKey&&(je(!0),On.preventDefault());return}case Mt.Z.ESC:{je(!0),ze();return}}!oe&&![Mt.Z.SHIFT].includes(On.which)?me(!0):De||pe(On)}},onFocus:function(On){je(!0),jt(!0),xt&&xt(On)},onBlur:function(On){if(Xt.current||!ce(document.activeElement)){Xt.current=!1;return}Ne?setTimeout(function(){for(var Hn=document,sa=Hn.activeElement;sa&&sa.shadowRoot;)sa=sa.shadowRoot.activeElement;ce(sa)&&ze()},0):oe&&(me(!1),Ut.current&&Oe()),jt(!1),Ve==null||Ve(On)}};return(0,te.useEffect)(function(){Ut.current=!1},[oe]),(0,te.useEffect)(function(){Ut.current=!0},[re]),(0,te.useEffect)(function(){return Ea(function(Pn){var On=$a(Pn),Hn=ce(On);oe&&(Hn?!Ye&&(!It||Hn)&&me(!1):(Xt.current=!0,(0,en.Z)(function(){Xt.current=!1})))})}),[Nn,{focused:It,typing:De}]}function $e(ne,oe){return te.useMemo(function(){return ne||(oe?((0,ct.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(oe).map(function(re){var ce=(0,bt.Z)(re,2),me=ce[0],pe=ce[1];return{label:me,value:pe}})):[])},[ne,oe])}var Fe=ge(34280);function xe(ne){var oe=ne.valueTexts,re=ne.onTextChange,ce=te.useState(""),me=(0,bt.Z)(ce,2),pe=me[0],he=me[1],Ne=te.useRef([]);Ne.current=oe;function Oe(xt){he(xt),re(xt)}function ze(){he(Ne.current[0])}return(0,Fe.Z)(function(){oe.every(function(xt){return xt!==pe})&&ze()},[oe.join("||")]),[pe,Oe,ze]}var Dt=te.createContext({}),Wt=Dt,Qt=ge(39559);function Kn(ne){var oe=ne.cellRender,re=ne.monthCellRender,ce=ne.dateRender,me=te.useMemo(function(){if(oe)return oe;if(!(!re&&!ce))return function(pe,he){var Ne=pe;return ce&&he.type==="date"?ce(Ne,he.today):re&&he.type==="month"?re(Ne,he.locale):he.originNode}},[oe,re,ce]);return me}function yn(ne,oe){for(var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ce=String(ne);ce.length<oe;)ce="".concat(re).concat(ne);return ce}var Zn=function(){for(var oe=arguments.length,re=new Array(oe),ce=0;ce<oe;ce++)re[ce]=arguments[ce];return re};function ma(ne){return ne==null?[]:Array.isArray(ne)?ne:[ne]}function Sn(ne,oe){return ne?ne[oe]:null}function Pt(ne,oe,re){var ce=[Sn(ne,0),Sn(ne,1)];return ce[re]=typeof oe=="function"?oe(ce[re]):oe,!ce[0]&&!ce[1]?null:ce}function An(ne){return typeof ne=="function"?ne():ne}function Ca(ne){var oe=ne.cellPrefixCls,re=ne.generateConfig,ce=ne.rangedValue,me=ne.hoverRangedValue,pe=ne.isInView,he=ne.isSameCell,Ne=ne.offsetCell,Oe=ne.today,ze=ne.value;function xt(Ve){var Ye,st=Ne(Ve,-1),ut=Ne(Ve,1),De=Sn(ce,0),je=Sn(ce,1),ft=Sn(me,0),Ht=Sn(me,1),It=Dn(re,ft,Ht,Ve);function jt(On){return he(De,On)}function Xt(On){return he(je,On)}var Ut=he(ft,Ve),Ot=he(Ht,Ve),Nn=(It||Ot)&&(!pe(st)||Xt(st)),Pn=(It||Ut)&&(!pe(ut)||jt(ut));return Ye={},(0,ue.Z)(Ye,"".concat(oe,"-in-view"),pe(Ve)),(0,ue.Z)(Ye,"".concat(oe,"-in-range"),Dn(re,De,je,Ve)),(0,ue.Z)(Ye,"".concat(oe,"-range-start"),jt(Ve)),(0,ue.Z)(Ye,"".concat(oe,"-range-end"),Xt(Ve)),(0,ue.Z)(Ye,"".concat(oe,"-range-start-single"),jt(Ve)&&!je),(0,ue.Z)(Ye,"".concat(oe,"-range-end-single"),Xt(Ve)&&!De),(0,ue.Z)(Ye,"".concat(oe,"-range-start-near-hover"),jt(Ve)&&(he(st,ft)||Dn(re,ft,Ht,st))),(0,ue.Z)(Ye,"".concat(oe,"-range-end-near-hover"),Xt(Ve)&&(he(ut,Ht)||Dn(re,ft,Ht,ut))),(0,ue.Z)(Ye,"".concat(oe,"-range-hover"),It),(0,ue.Z)(Ye,"".concat(oe,"-range-hover-start"),Ut),(0,ue.Z)(Ye,"".concat(oe,"-range-hover-end"),Ot),(0,ue.Z)(Ye,"".concat(oe,"-range-hover-edge-start"),Nn),(0,ue.Z)(Ye,"".concat(oe,"-range-hover-edge-end"),Pn),(0,ue.Z)(Ye,"".concat(oe,"-range-hover-edge-start-near-range"),Nn&&he(st,je)),(0,ue.Z)(Ye,"".concat(oe,"-range-hover-edge-end-near-range"),Pn&&he(ut,De)),(0,ue.Z)(Ye,"".concat(oe,"-today"),he(Oe,Ve)),(0,ue.Z)(Ye,"".concat(oe,"-selected"),he(ze,Ve)),Ye}return xt}var oo=te.createContext({}),ga=oo;function ve(ne,oe,re,ce,me){var pe=ne.setHour(oe,re);return pe=ne.setMinute(pe,ce),pe=ne.setSecond(pe,me),pe}function He(ne,oe,re){if(!re)return oe;var ce=oe;return ce=ne.setHour(ce,ne.getHour(re)),ce=ne.setMinute(ce,ne.getMinute(re)),ce=ne.setSecond(ce,ne.getSecond(re)),ce}function Ze(ne,oe,re,ce,me,pe){var he=Math.floor(ne/ce)*ce;if(he<ne)return[he,60-me,60-pe];var Ne=Math.floor(oe/me)*me;if(Ne<oe)return[he,Ne,60-pe];var Oe=Math.floor(re/pe)*pe;return[he,Ne,Oe]}function ot(ne,oe){var re=ne.getYear(oe),ce=ne.getMonth(oe)+1,me=ne.getEndDate(ne.getFixedDate("".concat(re,"-").concat(ce,"-01"))),pe=ne.getDate(me),he=ce<10?"0".concat(ce):"".concat(ce);return"".concat(re,"-").concat(he,"-").concat(pe)}function vt(ne){for(var oe=ne.prefixCls,re=ne.disabledDate,ce=ne.onSelect,me=ne.picker,pe=ne.rowNum,he=ne.colNum,Ne=ne.prefixColumn,Oe=ne.rowClassName,ze=ne.baseDate,xt=ne.getCellClassName,Ve=ne.getCellText,Ye=ne.getCellNode,st=ne.getCellDate,ut=ne.generateConfig,De=ne.titleCell,je=ne.headerCells,ft=te.useContext(Wt),Ht=ft.onDateMouseEnter,It=ft.onDateMouseLeave,jt=ft.mode,Xt="".concat(oe,"-cell"),Ut=[],Ot=0;Ot<pe;Ot+=1){for(var Nn=[],Pn=void 0,On=function(){var ca,Na=Ot*he+Hn,na=st(ze,Na),kn=Bt({cellDate:na,mode:jt,disabledDate:re,generateConfig:ut});Hn===0&&(Pn=na,Ne&&Nn.push(Ne(Pn)));var jn=De&&De(na),ua=te.createElement("div",{className:"".concat(Xt,"-inner")},Ve(na));Nn.push(te.createElement("td",{key:Hn,title:jn,className:ye()(Xt,(0,We.Z)((ca={},(0,ue.Z)(ca,"".concat(Xt,"-disabled"),kn),(0,ue.Z)(ca,"".concat(Xt,"-start"),Ve(na)===1||me==="year"&&Number(jn)%10===0),(0,ue.Z)(ca,"".concat(Xt,"-end"),jn===ot(ut,na)||me==="year"&&Number(jn)%10===9),ca),xt(na))),onClick:function(){kn||ce(na)},onMouseEnter:function(){!kn&&Ht&&Ht(na)},onMouseLeave:function(){!kn&&It&&It(na)}},Ye?Ye(na,ua):ua))},Hn=0;Hn<he;Hn+=1)On();Ut.push(te.createElement("tr",{key:Ot,className:Oe&&Oe(Pn)},Nn))}return te.createElement("div",{className:"".concat(oe,"-body")},te.createElement("table",{className:"".concat(oe,"-content")},je&&te.createElement("thead",null,te.createElement("tr",null,je)),te.createElement("tbody",null,Ut)))}function Ct(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.prefixColumn,me=ne.locale,pe=ne.rowCount,he=ne.viewDate,Ne=ne.value,Oe=ne.cellRender,ze=ne.isSameCell,xt=te.useContext(ga),Ve=xt.rangedValue,Ye=xt.hoverRangedValue,st=wn(me.locale,re,he),ut="".concat(oe,"-cell"),De=re.locale.getWeekFirstDay(me.locale),je=re.getNow(),ft=[],Ht=me.shortWeekDays||(re.locale.getShortWeekDays?re.locale.getShortWeekDays(me.locale):[]);ce&&ft.push(te.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var It=0;It<Je;It+=1)ft.push(te.createElement("th",{key:It},Ht[(It+De)%Je]));var jt=Ca({cellPrefixCls:ut,today:je,value:Ne,generateConfig:re,rangedValue:ce?null:Ve,hoverRangedValue:ce?null:Ye,isSameCell:ze||function(Ut,Ot){return Rt(re,Ut,Ot)},isInView:function(Ot){return zt(re,Ot,he)},offsetCell:function(Ot,Nn){return re.addDate(Ot,Nn)}}),Xt=Oe?function(Ut,Ot){return Oe(Ut,{originNode:Ot,today:je,type:"date",locale:me})}:void 0;return te.createElement(vt,(0,ae.Z)({},ne,{rowNum:pe,colNum:Je,baseDate:st,getCellNode:Xt,getCellText:re.getDate,getCellClassName:jt,getCellDate:re.addDate,titleCell:function(Ot){return Me(Ot,{locale:me,format:"YYYY-MM-DD",generateConfig:re})},headerCells:ft}))}var mt=Ct,tt={visibility:"hidden"};function sn(ne){var oe=ne.prefixCls,re=ne.prevIcon,ce=re===void 0?"\u2039":re,me=ne.nextIcon,pe=me===void 0?"\u203A":me,he=ne.superPrevIcon,Ne=he===void 0?"\xAB":he,Oe=ne.superNextIcon,ze=Oe===void 0?"\xBB":Oe,xt=ne.onSuperPrev,Ve=ne.onSuperNext,Ye=ne.onPrev,st=ne.onNext,ut=ne.children,De=te.useContext(Wt),je=De.hideNextBtn,ft=De.hidePrevBtn;return te.createElement("div",{className:oe},xt&&te.createElement("button",{type:"button",onClick:xt,tabIndex:-1,className:"".concat(oe,"-super-prev-btn"),style:ft?tt:{}},Ne),Ye&&te.createElement("button",{type:"button",onClick:Ye,tabIndex:-1,className:"".concat(oe,"-prev-btn"),style:ft?tt:{}},ce),te.createElement("div",{className:"".concat(oe,"-view")},ut),st&&te.createElement("button",{type:"button",onClick:st,tabIndex:-1,className:"".concat(oe,"-next-btn"),style:je?tt:{}},pe),Ve&&te.createElement("button",{type:"button",onClick:Ve,tabIndex:-1,className:"".concat(oe,"-super-next-btn"),style:je?tt:{}},ze))}var nn=sn;function Te(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.viewDate,pe=ne.onNextMonth,he=ne.onPrevMonth,Ne=ne.onNextYear,Oe=ne.onPrevYear,ze=ne.onYearClick,xt=ne.onMonthClick,Ve=te.useContext(Wt),Ye=Ve.hideHeader;if(Ye)return null;var st="".concat(oe,"-header"),ut=ce.shortMonths||(re.locale.getShortMonths?re.locale.getShortMonths(ce.locale):[]),De=re.getMonth(me),je=te.createElement("button",{type:"button",key:"year",onClick:ze,tabIndex:-1,className:"".concat(oe,"-year-btn")},Me(me,{locale:ce,format:ce.yearFormat,generateConfig:re})),ft=te.createElement("button",{type:"button",key:"month",onClick:xt,tabIndex:-1,className:"".concat(oe,"-month-btn")},ce.monthFormat?Me(me,{locale:ce,format:ce.monthFormat,generateConfig:re}):ut[De]),Ht=ce.monthBeforeYear?[ft,je]:[je,ft];return te.createElement(nn,(0,ae.Z)({},ne,{prefixCls:st,onSuperPrev:Oe,onPrev:he,onNext:pe,onSuperNext:Ne}),Ht)}var Un=Te,Vn=6;function fa(ne){var oe=ne.prefixCls,re=ne.panelName,ce=re===void 0?"date":re,me=ne.keyboardConfig,pe=ne.active,he=ne.operationRef,Ne=ne.generateConfig,Oe=ne.value,ze=ne.viewDate,xt=ne.onViewDateChange,Ve=ne.onPanelChange,Ye=ne.onSelect,st="".concat(oe,"-").concat(ce,"-panel");he.current={onKeyDown:function(ft){return qn(ft,(0,We.Z)({onLeftRight:function(It){Ye(Ne.addDate(Oe||ze,It),"key")},onCtrlLeftRight:function(It){Ye(Ne.addYear(Oe||ze,It),"key")},onUpDown:function(It){Ye(Ne.addDate(Oe||ze,It*Je),"key")},onPageUpDown:function(It){Ye(Ne.addMonth(Oe||ze,It),"key")}},me))}};var ut=function(ft){var Ht=Ne.addYear(ze,ft);xt(Ht),Ve(null,Ht)},De=function(ft){var Ht=Ne.addMonth(ze,ft);xt(Ht),Ve(null,Ht)};return te.createElement("div",{className:ye()(st,(0,ue.Z)({},"".concat(st,"-active"),pe))},te.createElement(Un,(0,ae.Z)({},ne,{prefixCls:oe,value:Oe,viewDate:ze,onPrevYear:function(){ut(-1)},onNextYear:function(){ut(1)},onPrevMonth:function(){De(-1)},onNextMonth:function(){De(1)},onMonthClick:function(){Ve("month",ze)},onYearClick:function(){Ve("year",ze)}})),te.createElement(mt,(0,ae.Z)({},ne,{onSelect:function(ft){return Ye(ft,"mouse")},prefixCls:oe,value:Oe,viewDate:ze,rowCount:Vn})))}var va=fa;function wt(ne){var oe=te.useContext(Wt),re=oe.hideHeader;if(re)return null;var ce=ne.prefixCls,me=ne.generateConfig,pe=ne.locale,he=ne.value,Ne=ne.format,Oe="".concat(ce,"-header");return te.createElement(nn,{prefixCls:Oe},he?Me(he,{locale:pe,format:Ne,generateConfig:me}):"\xA0")}var _t=wt;function gn(ne){var oe=ne.value,re=ne.generateConfig,ce=ne.disabledMinutes,me=ne.disabledSeconds,pe=ne.minutes,he=ne.seconds,Ne=ne.use12Hours,Oe=function(xt,Ve,Ye,st){var ut=re.getNow(),De=oe||ut,je=Ve<0?re.getHour(ut):Ve,ft=Ye<0?re.getMinute(ut):Ye,Ht=st<0?re.getSecond(ut):st,It=ce&&ce(je);if(It!=null&&It.includes(ft)){var jt=pe.find(function(Ot){return!It.includes(Ot.value)});if(jt)ft=jt.value;else return null}var Xt=me&&me(je,ft);if(Xt!=null&&Xt.includes(Ht)){var Ut=he.find(function(Ot){return!Xt.includes(Ot.value)});if(Ut)Ht=Ut.value;else return null}return De=ve(re,De,!Ne||!xt?je:je+12,ft,Ht),De};return Oe}function Vt(ne){var oe=ne.prefixCls,re=ne.units,ce=ne.onSelect,me=ne.value,pe=ne.active,he=ne.hideDisabledOptions,Ne=ne.info,Oe=ne.type,ze="".concat(oe,"-cell"),xt=te.useContext(Wt),Ve=xt.open,Ye=(0,te.useRef)(null),st=(0,te.useRef)(new Map),ut=(0,te.useRef)();return(0,te.useLayoutEffect)(function(){var De=st.current.get(me);De&&Ve!==!1&&oa(Ye.current,De.offsetTop,120)},[me]),(0,te.useLayoutEffect)(function(){if(Ve){var De=st.current.get(me);De&&(ut.current=Wn(De,function(){oa(Ye.current,De.offsetTop,0)}))}return function(){var je;(je=ut.current)===null||je===void 0||je.call(ut)}},[Ve]),te.createElement("ul",{className:ye()("".concat(oe,"-column"),(0,ue.Z)({},"".concat(oe,"-column-active"),pe)),ref:Ye,style:{position:"relative"}},re.map(function(De){var je;return he&&De.disabled?null:te.createElement("li",{key:De.value,ref:function(Ht){st.current.set(De.value,Ht)},className:ye()(ze,(je={},(0,ue.Z)(je,"".concat(ze,"-disabled"),De.disabled),(0,ue.Z)(je,"".concat(ze,"-selected"),me===De.value),je)),onClick:function(){De.disabled||ce(De.value)}},Ne.cellRender?Ne.cellRender(De.value,{today:Ne.today,locale:Ne.locale,originNode:te.createElement("div",{className:"".concat(ze,"-inner")},De.label),type:"time",subType:Oe}):te.createElement("div",{className:"".concat(ze,"-inner")},De.label))}))}var Fn=Vt;function zn(ne,oe){if(ne.length!==oe.length)return!0;for(var re=0;re<ne.length;re+=1)if(ne[re].disabled!==oe[re].disabled)return!0;return!1}function hn(ne,oe,re,ce){for(var me=[],pe=re>=1?re|0:1,he=ne;he<=oe;he+=pe)me.push({label:yn(he,2),value:he,disabled:(ce||[]).includes(he)});return me}function la(ne){var oe=ne.generateConfig,re=ne.prefixCls,ce=ne.operationRef,me=ne.activeColumnIndex,pe=ne.value,he=ne.showHour,Ne=ne.showMinute,Oe=ne.showSecond,ze=ne.use12Hours,xt=ne.hourStep,Ve=xt===void 0?1:xt,Ye=ne.minuteStep,st=Ye===void 0?1:Ye,ut=ne.secondStep,De=ut===void 0?1:ut,je=ne.disabledHours,ft=ne.disabledMinutes,Ht=ne.disabledSeconds,It=ne.disabledTime,jt=ne.hideDisabledOptions,Xt=ne.onSelect,Ut=ne.cellRender,Ot=ne.locale,Nn=[],Pn="".concat(re,"-content"),On="".concat(re,"-time-panel"),Hn,sa=pe?oe.getHour(pe):-1,ca=sa,Na=pe?oe.getMinute(pe):-1,na=pe?oe.getSecond(pe):-1,kn=oe.getNow(),jn=te.useMemo(function(){if(It){var In=It(kn);return[In.disabledHours,In.disabledMinutes,In.disabledSeconds]}return[je,ft,Ht]},[je,ft,Ht,It,kn]),ua=(0,bt.Z)(jn,3),Sa=ua[0],Qn=ua[1],La=ua[2],Xa=hn(0,23,Ve,Sa&&Sa()),Wa=(0,_e.Z)(function(){return Xa},Xa,zn);ze&&(Hn=ca>=12,ca%=12);var so=te.useMemo(function(){if(!ze)return[!1,!1];var In=[!0,!0];return Wa.forEach(function(Ua){var ka=Ua.disabled,co=Ua.value;ka||(co>=12?In[1]=!1:In[0]=!1)}),In},[ze,Wa]),Ta=(0,bt.Z)(so,2),uo=Ta[0],xa=Ta[1],Va=te.useMemo(function(){return ze?Wa.filter(Hn?function(In){return In.value>=12}:function(In){return In.value<12}).map(function(In){var Ua=In.value%12,ka=Ua===0?"12":yn(Ua,2);return(0,We.Z)((0,We.Z)({},In),{},{label:ka,value:Ua})}):Wa},[ze,Hn,Wa]),qa=hn(0,59,st,Qn&&Qn(sa)),yo=hn(0,59,De,La&&La(sa,Na)),eo=gn({value:pe,generateConfig:oe,disabledMinutes:Qn,disabledSeconds:La,minutes:qa,seconds:yo,use12Hours:ze});ce.current={onUpDown:function(Ua){var ka=Nn[me];if(ka)for(var co=ka.units.findIndex(function(qo){return qo.value===ka.value}),ho=ka.units.length,Ga=1;Ga<ho;Ga+=1){var to=ka.units[(co+Ua*Ga+ho)%ho];if(to.disabled!==!0){ka.onSelect(to.value);break}}}};function Fo(In,Ua,ka,co,ho){In!==!1&&Nn.push({node:te.cloneElement(Ua,{prefixCls:On,value:ka,active:me===Nn.length,onSelect:ho,units:co,hideDisabledOptions:jt}),onSelect:ho,value:ka,units:co})}Fo(he,te.createElement(Fn,{key:"hour",type:"hour",info:{today:kn,locale:Ot,cellRender:Ut}}),ca,Va,function(In){Xt(eo(Hn,In,Na,na),"mouse")}),Fo(Ne,te.createElement(Fn,{key:"minute",type:"minute",info:{today:kn,locale:Ot,cellRender:Ut}}),Na,qa,function(In){Xt(eo(Hn,ca,In,na),"mouse")}),Fo(Oe,te.createElement(Fn,{key:"second",type:"second",info:{today:kn,locale:Ot,cellRender:Ut}}),na,yo,function(In){Xt(eo(Hn,ca,Na,In),"mouse")});var zo=-1;return typeof Hn=="boolean"&&(zo=Hn?1:0),Fo(ze===!0,te.createElement(Fn,{key:"meridiem",type:"meridiem",info:{today:kn,locale:Ot,cellRender:Ut}}),zo,[{label:"AM",value:0,disabled:uo},{label:"PM",value:1,disabled:xa}],function(In){Xt(eo(!!In,ca,Na,na),"mouse")}),te.createElement("div",{className:Pn},Nn.map(function(In){var Ua=In.node;return Ua}))}var da=la,Oo=function(oe){return oe.filter(function(re){return re!==!1}).length};function vo(ne){var oe=ne.generateConfig,re=ne.format,ce=re===void 0?"HH:mm:ss":re,me=ne.prefixCls,pe=ne.active,he=ne.operationRef,Ne=ne.showHour,Oe=ne.showMinute,ze=ne.showSecond,xt=ne.use12Hours,Ve=xt===void 0?!1:xt,Ye=ne.onSelect,st=ne.value,ut="".concat(me,"-time-panel"),De=te.useRef(),je=te.useState(-1),ft=(0,bt.Z)(je,2),Ht=ft[0],It=ft[1],jt=Oo([Ne,Oe,ze,Ve]);return he.current={onKeyDown:function(Ut){return qn(Ut,{onLeftRight:function(Nn){It((Ht+Nn+jt)%jt)},onUpDown:function(Nn){Ht===-1?It(0):De.current&&De.current.onUpDown(Nn)},onEnter:function(){Ye(st||oe.getNow(),"key"),It(-1)}})},onBlur:function(){It(-1)}},te.createElement("div",{className:ye()(ut,(0,ue.Z)({},"".concat(ut,"-active"),pe))},te.createElement(_t,(0,ae.Z)({},ne,{format:ce,prefixCls:me})),te.createElement(da,(0,ae.Z)({},ne,{prefixCls:me,activeColumnIndex:Ht,operationRef:De})))}var fo=vo,Jo=Zn("date","time");function ar(ne){var oe=ne.prefixCls,re=ne.operationRef,ce=ne.generateConfig,me=ne.value,pe=ne.defaultValue,he=ne.disabledTime,Ne=ne.showTime,Oe=ne.onSelect,ze=ne.cellRender,xt="".concat(oe,"-datetime-panel"),Ve=te.useState(null),Ye=(0,bt.Z)(Ve,2),st=Ye[0],ut=Ye[1],De=te.useRef({}),je=te.useRef({}),ft=(0,Qt.Z)(Ne)==="object"?(0,We.Z)({},Ne):{};function Ht(Ut){var Ot=Jo.indexOf(st)+Ut,Nn=Jo[Ot]||null;return Nn}var It=function(Ot){je.current.onBlur&&je.current.onBlur(Ot),ut(null)};re.current={onKeyDown:function(Ot){if(Ot.which===Mt.Z.TAB){var Nn=Ht(Ot.shiftKey?-1:1);return ut(Nn),Nn&&Ot.preventDefault(),!0}if(st){var Pn=st==="date"?De:je;return Pn.current&&Pn.current.onKeyDown&&Pn.current.onKeyDown(Ot),!0}return[Mt.Z.LEFT,Mt.Z.RIGHT,Mt.Z.UP,Mt.Z.DOWN].includes(Ot.which)?(ut("date"),!0):!1},onBlur:It,onClose:It};var jt=function(Ot,Nn){var Pn=Ot;Nn==="date"&&!me&&ft.defaultValue?(Pn=ce.setHour(Pn,ce.getHour(ft.defaultValue)),Pn=ce.setMinute(Pn,ce.getMinute(ft.defaultValue)),Pn=ce.setSecond(Pn,ce.getSecond(ft.defaultValue))):Nn==="time"&&!me&&pe&&(Pn=ce.setYear(Pn,ce.getYear(pe)),Pn=ce.setMonth(Pn,ce.getMonth(pe)),Pn=ce.setDate(Pn,ce.getDate(pe))),Oe&&Oe(Pn,"mouse")},Xt=he?he(me||null):{};return te.createElement("div",{className:ye()(xt,(0,ue.Z)({},"".concat(xt,"-active"),st))},te.createElement(va,(0,ae.Z)({},ne,{cellRender:ze,operationRef:De,active:st==="date",onSelect:function(Ot){jt(He(ce,Ot,!me&&(0,Qt.Z)(Ne)==="object"?Ne.defaultValue:null),"date")}})),te.createElement(fo,(0,ae.Z)({},ne,{cellRender:ze?function(Ut,Ot){return ze(Ut,(0,We.Z)((0,We.Z)({},Ot),{},{type:"time"}))}:void 0,format:void 0},ft,Xt,{disabledTime:null,defaultValue:void 0,operationRef:je,active:st==="time",onSelect:function(Ot){jt(Ot,"time")}})))}var or=ar;function Zo(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.viewDate,me=ne.onPrevDecades,pe=ne.onNextDecades,he=te.useContext(Wt),Ne=he.hideHeader;if(Ne)return null;var Oe="".concat(oe,"-header"),ze=re.getYear(ce),xt=Math.floor(ze/Ke)*Ke,Ve=xt+Ke-1;return te.createElement(nn,(0,ae.Z)({},ne,{prefixCls:Oe,onSuperPrev:me,onSuperNext:pe}),xt,"-",Ve)}var So=Zo,ya=3,po=4;function To(ne){var oe=Le-1,re=ne.prefixCls,ce=ne.viewDate,me=ne.generateConfig,pe=ne.cellRender,he=ne.locale,Ne="".concat(re,"-cell"),Oe=me.getYear(ce),ze=Math.floor(Oe/Le)*Le,xt=Math.floor(Oe/Ke)*Ke,Ve=xt+Ke-1,Ye=me.setYear(ce,xt-Math.ceil((ya*po*Le-Ke)/2)),st=function(je){var ft,Ht=me.getYear(je),It=Ht+oe;return ft={},(0,ue.Z)(ft,"".concat(Ne,"-in-view"),xt<=Ht&&It<=Ve),(0,ue.Z)(ft,"".concat(Ne,"-selected"),Ht===ze),ft},ut=pe?function(De,je){return pe(De,{originNode:je,today:me.getNow(),type:"decade",locale:he})}:void 0;return te.createElement(vt,(0,ae.Z)({},ne,{rowNum:po,colNum:ya,baseDate:Ye,getCellNode:ut,getCellText:function(je){var ft=me.getYear(je);return"".concat(ft,"-").concat(ft+oe)},getCellClassName:st,getCellDate:function(je,ft){return me.addYear(je,ft*Le)}}))}var Go=To;function $o(ne){var oe=ne.prefixCls,re=ne.onViewDateChange,ce=ne.generateConfig,me=ne.viewDate,pe=ne.operationRef,he=ne.onSelect,Ne=ne.onPanelChange,Oe="".concat(oe,"-decade-panel");pe.current={onKeyDown:function(Ye){return qn(Ye,{onLeftRight:function(ut){he(ce.addYear(me,ut*Le),"key")},onCtrlLeftRight:function(ut){he(ce.addYear(me,ut*Ke),"key")},onUpDown:function(ut){he(ce.addYear(me,ut*Le*ya),"key")},onEnter:function(){Ne("year",me)}})}};var ze=function(Ye){var st=ce.addYear(me,Ye*Ke);re(st),Ne(null,st)},xt=function(Ye){he(Ye,"mouse"),Ne("year",Ye)};return te.createElement("div",{className:Oe},te.createElement(So,(0,ae.Z)({},ne,{prefixCls:oe,onPrevDecades:function(){ze(-1)},onNextDecades:function(){ze(1)}})),te.createElement(Go,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:xt})))}var bo=$o;function rr(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.viewDate,pe=ne.onNextYear,he=ne.onPrevYear,Ne=ne.onYearClick,Oe=te.useContext(Wt),ze=Oe.hideHeader;if(ze)return null;var xt="".concat(oe,"-header");return te.createElement(nn,(0,ae.Z)({},ne,{prefixCls:xt,onSuperPrev:he,onSuperNext:pe}),te.createElement("button",{type:"button",onClick:Ne,className:"".concat(oe,"-year-btn")},Me(me,{locale:ce,format:ce.yearFormat,generateConfig:re})))}var Bn=rr,wa=3,Ia=4;function ro(ne){var oe=ne.prefixCls,re=ne.locale,ce=ne.value,me=ne.viewDate,pe=ne.generateConfig,he=ne.cellRender,Ne=te.useContext(ga),Oe=Ne.rangedValue,ze=Ne.hoverRangedValue,xt="".concat(oe,"-cell"),Ve=Ca({cellPrefixCls:xt,value:ce,generateConfig:pe,rangedValue:Oe,hoverRangedValue:ze,isSameCell:function(je,ft){return zt(pe,je,ft)},isInView:function(){return!0},offsetCell:function(je,ft){return pe.addMonth(je,ft)}}),Ye=re.shortMonths||(pe.locale.getShortMonths?pe.locale.getShortMonths(re.locale):[]),st=pe.setMonth(me,0),ut=he?function(De,je){return he(De,{originNode:je,locale:re,today:pe.getNow(),type:"month"})}:void 0;return te.createElement(vt,(0,ae.Z)({},ne,{rowNum:Ia,colNum:wa,baseDate:st,getCellNode:ut,getCellText:function(je){return re.monthFormat?Me(je,{locale:re,format:re.monthFormat,generateConfig:pe}):Ye[pe.getMonth(je)]},getCellClassName:Ve,getCellDate:pe.addMonth,titleCell:function(je){return Me(je,{locale:re,format:"YYYY-MM",generateConfig:pe})}}))}var io=ro;function Mo(ne){var oe=ne.prefixCls,re=ne.operationRef,ce=ne.onViewDateChange,me=ne.generateConfig,pe=ne.value,he=ne.viewDate,Ne=ne.onPanelChange,Oe=ne.onSelect,ze="".concat(oe,"-month-panel");re.current={onKeyDown:function(Ye){return qn(Ye,{onLeftRight:function(ut){Oe(me.addMonth(pe||he,ut),"key")},onCtrlLeftRight:function(ut){Oe(me.addYear(pe||he,ut),"key")},onUpDown:function(ut){Oe(me.addMonth(pe||he,ut*wa),"key")},onEnter:function(){Ne("date",pe||he)}})}};var xt=function(Ye){var st=me.addYear(he,Ye);ce(st),Ne(null,st)};return te.createElement("div",{className:ze},te.createElement(Bn,(0,ae.Z)({},ne,{prefixCls:oe,onPrevYear:function(){xt(-1)},onNextYear:function(){xt(1)},onYearClick:function(){Ne("year",he)}})),te.createElement(io,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:function(Ye){Oe(Ye,"mouse"),Ne("date",Ye)}})))}var br=Mo;function ur(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.viewDate,pe=ne.onNextYear,he=ne.onPrevYear,Ne=ne.onYearClick,Oe=te.useContext(Wt),ze=Oe.hideHeader;if(ze)return null;var xt="".concat(oe,"-header");return te.createElement(nn,(0,ae.Z)({},ne,{prefixCls:xt,onSuperPrev:he,onSuperNext:pe}),te.createElement("button",{type:"button",onClick:Ne,className:"".concat(oe,"-year-btn")},Me(me,{locale:ce,format:ce.yearFormat,generateConfig:re})))}var Ra=ur,Fa=4,Ho=1;function Er(ne){var oe=ne.prefixCls,re=ne.locale,ce=ne.value,me=ne.viewDate,pe=ne.generateConfig,he=ne.cellRender,Ne=te.useContext(ga),Oe=Ne.rangedValue,ze=Ne.hoverRangedValue,xt="".concat(oe,"-cell"),Ve=Ca({cellPrefixCls:xt,value:ce,generateConfig:pe,rangedValue:Oe,hoverRangedValue:ze,isSameCell:function(De,je){return Nt(pe,De,je)},isInView:function(){return!0},offsetCell:function(De,je){return pe.addMonth(De,je*3)}}),Ye=pe.setDate(pe.setMonth(me,0),1),st=he?function(ut,De){return he(ut,{originNode:De,locale:re,today:pe.getNow(),type:"quarter"})}:void 0;return te.createElement(vt,(0,ae.Z)({},ne,{rowNum:Ho,colNum:Fa,baseDate:Ye,getCellNode:st,getCellText:function(De){return Me(De,{locale:re,format:re.quarterFormat||"[Q]Q",generateConfig:pe})},getCellClassName:Ve,getCellDate:function(De,je){return pe.addMonth(De,je*3)},titleCell:function(De){return Me(De,{locale:re,format:"YYYY-[Q]Q",generateConfig:pe})}}))}var $r=Er;function Gr(ne){var oe=ne.prefixCls,re=ne.operationRef,ce=ne.onViewDateChange,me=ne.generateConfig,pe=ne.value,he=ne.viewDate,Ne=ne.onPanelChange,Oe=ne.onSelect,ze="".concat(oe,"-quarter-panel");re.current={onKeyDown:function(Ye){return qn(Ye,{onLeftRight:function(ut){Oe(me.addMonth(pe||he,ut*3),"key")},onCtrlLeftRight:function(ut){Oe(me.addYear(pe||he,ut),"key")},onUpDown:function(ut){Oe(me.addYear(pe||he,ut),"key")}})}};var xt=function(Ye){var st=me.addYear(he,Ye);ce(st),Ne(null,st)};return te.createElement("div",{className:ze},te.createElement(Ra,(0,ae.Z)({},ne,{prefixCls:oe,onPrevYear:function(){xt(-1)},onNextYear:function(){xt(1)},onYearClick:function(){Ne("year",he)}})),te.createElement($r,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:function(Ye){Oe(Ye,"mouse")}})))}var tn=Gr;function kt(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.value,pe=ne.disabledDate,he=ne.onSelect,Ne=te.useContext(ga),Oe=Ne.rangedValue,ze=Ne.hoverRangedValue,xt=te.useContext(Wt),Ve=xt.onDateMouseEnter,Ye=xt.onDateMouseLeave,st=(ze==null?void 0:ze[0])||(Oe==null?void 0:Oe[0]),ut=(ze==null?void 0:ze[1])||(Oe==null?void 0:Oe[1]),De="".concat(oe,"-cell"),je=function(jt){var Xt=Bt({cellDate:jt,mode:"week",disabledDate:pe,generateConfig:re});return te.createElement("td",{key:"week",className:ye()(De,"".concat(De,"-week")),onClick:function(){Xt||he(jt,"mouse")},onMouseEnter:function(){!Xt&&Ve&&Ve(jt)},onMouseLeave:function(){!Xt&&Ye&&Ye(jt)}},te.createElement("div",{className:"".concat(De,"-inner")},re.locale.getWeek(ce.locale,jt)))},ft="".concat(oe,"-week-panel-row"),Ht=function(jt){var Xt,Ut=cn(re,ce.locale,st,jt),Ot=cn(re,ce.locale,ut,jt);return ye()(ft,(Xt={},(0,ue.Z)(Xt,"".concat(ft,"-selected"),!Oe&&cn(re,ce.locale,me,jt)),(0,ue.Z)(Xt,"".concat(ft,"-range-start"),Ut),(0,ue.Z)(Xt,"".concat(ft,"-range-end"),Ot),(0,ue.Z)(Xt,"".concat(ft,"-range-hover"),!Ut&&!Ot&&Dn(re,st,ut,jt)),Xt))};return te.createElement(va,(0,ae.Z)({},ne,{panelName:"week",prefixColumn:je,rowClassName:Ht,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Yt=kt,Kt=10;function ea(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.viewDate,me=ne.onPrevDecade,pe=ne.onNextDecade,he=ne.onDecadeClick,Ne=te.useContext(Wt),Oe=Ne.hideHeader;if(Oe)return null;var ze="".concat(oe,"-header"),xt=re.getYear(ce),Ve=Math.floor(xt/Kt)*Kt,Ye=Ve+Kt-1;return te.createElement(nn,(0,ae.Z)({},ne,{prefixCls:ze,onSuperPrev:me,onSuperNext:pe}),te.createElement("button",{type:"button",onClick:he,className:"".concat(oe,"-decade-btn")},Ve,"-",Ye))}var Ba=ea,Aa=3,Da=4;function Ya(ne){var oe=ne.prefixCls,re=ne.value,ce=ne.viewDate,me=ne.locale,pe=ne.generateConfig,he=ne.cellRender,Ne=te.useContext(ga),Oe=Ne.rangedValue,ze=Ne.hoverRangedValue,xt="".concat(oe,"-cell"),Ve=pe.getYear(ce),Ye=Math.floor(Ve/Kt)*Kt,st=Ye+Kt-1,ut=pe.setYear(ce,Ye-Math.ceil((Aa*Da-Kt)/2)),De=pe.getNow(),je=function(jt){var Xt=pe.getYear(jt);return Ye<=Xt&&Xt<=st},ft=Ca({cellPrefixCls:xt,value:re,generateConfig:pe,rangedValue:Oe,hoverRangedValue:ze,isSameCell:function(jt,Xt){return Gt(pe,jt,Xt)},isInView:je,offsetCell:function(jt,Xt){return pe.addYear(jt,Xt)}}),Ht=he?function(It,jt){return he(It,{originNode:jt,today:De,type:"year",locale:me})}:void 0;return te.createElement(vt,(0,ae.Z)({},ne,{rowNum:Da,colNum:Aa,baseDate:ut,getCellNode:Ht,getCellText:pe.getYear,getCellClassName:ft,getCellDate:pe.addYear,titleCell:function(jt){return Me(jt,{locale:me,format:"YYYY",generateConfig:pe})}}))}var Ka=Ya;function jo(ne){var oe=ne.prefixCls,re=ne.operationRef,ce=ne.onViewDateChange,me=ne.generateConfig,pe=ne.value,he=ne.viewDate,Ne=ne.sourceMode,Oe=ne.onSelect,ze=ne.onPanelChange,xt="".concat(oe,"-year-panel");re.current={onKeyDown:function(st){return qn(st,{onLeftRight:function(De){Oe(me.addYear(pe||he,De),"key")},onCtrlLeftRight:function(De){Oe(me.addYear(pe||he,De*Kt),"key")},onUpDown:function(De){Oe(me.addYear(pe||he,De*Aa),"key")},onEnter:function(){ze(Ne==="date"?"date":"month",pe||he)}})}};var Ve=function(st){var ut=me.addYear(he,st*10);ce(ut),ze(null,ut)};return te.createElement("div",{className:xt},te.createElement(Ba,(0,ae.Z)({},ne,{prefixCls:oe,onPrevDecade:function(){Ve(-1)},onNextDecade:function(){Ve(1)},onDecadeClick:function(){ze("decade",he)}})),te.createElement(Ka,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:function(st){ze(Ne==="date"?"date":"month",st),Oe(st,"mouse")}})))}var lo=jo;function En(ne,oe,re){return re?te.createElement("div",{className:"".concat(ne,"-footer-extra")},re(oe)):null}function Xn(ne){var oe=ne.prefixCls,re=ne.components,ce=re===void 0?{}:re,me=ne.needConfirmButton,pe=ne.onNow,he=ne.onOk,Ne=ne.okDisabled,Oe=ne.showNow,ze=ne.locale,xt,Ve;if(me){var Ye=ce.button||"button";pe&&Oe!==!1&&(xt=te.createElement("li",{className:"".concat(oe,"-now")},te.createElement("a",{className:"".concat(oe,"-now-btn"),onClick:pe},ze.now))),Ve=me&&te.createElement("li",{className:"".concat(oe,"-ok")},te.createElement(Ye,{disabled:Ne,onClick:he},ze.ok))}return!xt&&!Ve?null:te.createElement("ul",{className:"".concat(oe,"-ranges")},xt,Ve)}var pa=["date","month"];function _n(ne){var oe,re=ne,ce=re.prefixCls,me=ce===void 0?"rc-picker":ce,pe=re.className,he=re.style,Ne=re.locale,Oe=re.generateConfig,ze=re.value,xt=re.defaultValue,Ve=re.pickerValue,Ye=re.defaultPickerValue,st=re.disabledDate,ut=re.mode,De=re.picker,je=De===void 0?"date":De,ft=re.tabIndex,Ht=ft===void 0?0:ft,It=re.showNow,jt=re.showTime,Xt=re.showToday,Ut=re.renderExtraFooter,Ot=re.hideHeader,Nn=re.onSelect,Pn=re.onChange,On=re.onPanelChange,Hn=re.onMouseDown,sa=re.onPickerValueChange,ca=re.onOk,Na=re.components,na=re.direction,kn=re.hourStep,jn=kn===void 0?1:kn,ua=re.minuteStep,Sa=ua===void 0?1:ua,Qn=re.secondStep,La=Qn===void 0?1:Qn,Xa=re.dateRender,Wa=re.monthCellRender,so=re.cellRender,Ta=je==="date"&&!!jt||je==="time",uo=24%jn===0,xa=60%Sa===0,Va=60%La===0,qa=te.useContext(Wt),yo=qa.operationRef,eo=qa.onSelect,Fo=qa.hideRanges,zo=qa.defaultOpenValue,In=te.useContext(ga),Ua=In.inRange,ka=In.panelPosition,co=In.rangedValue,ho=In.hoverRangedValue,Ga=te.useRef({}),to=te.useRef(!0),qo=(0,fn.Z)(null,{value:ze,defaultValue:xt,postState:function(qt){return!qt&&zo&&je==="time"?zo:qt}}),Uo=(0,bt.Z)(qo,2),Co=Uo[0],Sr=Uo[1],Or=(0,fn.Z)(null,{value:Ve,defaultValue:Ye||Co,postState:function(qt){var Rn=Oe.getNow();if(!qt)return Rn;if(!Co&&jt){var Ha=(0,Qt.Z)(jt)==="object"?jt.defaultValue:xt;return He(Oe,Array.isArray(qt)?qt[0]:qt,Ha||Rn)}return Array.isArray(qt)?qt[0]:qt}}),wr=(0,bt.Z)(Or,2),wo=wr[0],_o=wr[1],Io=function(qt){_o(qt),sa&&sa(qt)},Lr=function(qt){var Rn=no[je];return Rn?Rn(qt):qt},cr=(0,fn.Z)(function(){return je==="time"?"time":Lr("date")},{value:ut}),Ao=(0,bt.Z)(cr,2),Za=Ao[0],Bo=Ao[1];te.useEffect(function(){Bo(je)},[je]);var gr=te.useState(function(){return Za}),lr=(0,bt.Z)(gr,2),Ro=lr[0],ko=lr[1],er=function(qt,Rn){var Ha=Lr(qt||Za);ko(Za),Bo(Ha),On&&(Za!==Ha||Tn(Oe,wo,wo))&&On(Rn,Ha)},Qa=function(qt,Rn){var Ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Za===je||Ha)&&(Sr(qt),Nn&&Nn(qt),eo&&eo(qt,Rn),Pn&&!Tn(Oe,qt,Co)&&!(st!=null&&st(qt))&&Pn(qt))},xo=function(qt){if(pa.includes(Za)){var Rn,Ha,Xo=Za==="date";switch(qt===Mt.Z.PAGE_UP||qt===Mt.Z.PAGE_DOWN?Ha=Xo?Oe.addMonth:Oe.addYear:Ha=Xo?Oe.addDate:Oe.addMonth,qt){case Mt.Z.LEFT:case Mt.Z.PAGE_UP:Rn=Ha(wo,-1);break;case Mt.Z.RIGHT:case Mt.Z.PAGE_DOWN:Rn=Ha(wo,1);break;case Mt.Z.UP:case Mt.Z.DOWN:Rn=Ha(wo,Number("".concat(qt===Mt.Z.UP?"-":"").concat(Xo?Je:wa)));break}if(Rn)return!(st!=null&&st(Rn))}return!0},mr=function(qt){if(Ga.current&&Ga.current.onKeyDown){var Rn=!0,Ha=qt.which;if([Mt.Z.LEFT,Mt.Z.RIGHT,Mt.Z.UP,Mt.Z.DOWN,Mt.Z.PAGE_UP,Mt.Z.PAGE_DOWN,Mt.Z.ENTER].includes(Ha)&&(qt.preventDefault(),Ha!==Mt.Z.ENTER&&Ht===0&&(Rn=xo(Ha))),Rn)return Ga.current.onKeyDown(qt)}return(0,ct.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},_a=function(qt){Ga.current&&Ga.current.onBlur&&Ga.current.onBlur(qt)};yo&&ka!=="right"&&(yo.current={onKeyDown:mr,onClose:function(){Ga.current&&Ga.current.onClose&&Ga.current.onClose()}}),te.useEffect(function(){ze&&!to.current&&_o(ze)},[ze]),te.useEffect(function(){to.current=!1},[]);var Do,dr=Kn({cellRender:so,monthCellRender:Wa,dateRender:Xa}),ha=(0,We.Z)((0,We.Z)({},ne),{},{cellRender:dr,operationRef:Ga,prefixCls:me,viewDate:wo,value:Co,onViewDateChange:Io,sourceMode:Ro,onPanelChange:er,disabledDate:st});switch(delete ha.onChange,delete ha.onSelect,Za){case"decade":Do=te.createElement(bo,(0,ae.Z)({},ha,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}}));break;case"year":Do=te.createElement(lo,(0,ae.Z)({},ha,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}}));break;case"month":Do=te.createElement(br,(0,ae.Z)({},ha,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}}));break;case"quarter":Do=te.createElement(tn,(0,ae.Z)({},ha,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}}));break;case"week":Do=te.createElement(Yt,(0,ae.Z)({},ha,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}}));break;case"time":delete ha.showTime,Do=te.createElement(fo,(0,ae.Z)({},ha,(0,Qt.Z)(jt)==="object"?jt:null,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}}));break;default:jt?Do=te.createElement(or,(0,ae.Z)({},ha,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}})):Do=te.createElement(va,(0,ae.Z)({},ha,{onSelect:function(qt,Rn){Io(qt),Qa(qt,Rn)}}))}var sr,Yo,Ko=function(){var qt=Oe.getNow(),Rn=Ze(Oe.getHour(qt),Oe.getMinute(qt),Oe.getSecond(qt),uo?jn:1,xa?Sa:1,Va?La:1),Ha=ve(Oe,qt,Rn[0],Rn[1],Rn[2]);Qa(Ha,"submit")};Fo||(sr=En(me,Za,Ut),jt&&Za!=="date"?Yo=null:Yo=Xn({prefixCls:me,components:Na,needConfirmButton:Ta,okDisabled:!Co||st&&st(Co),locale:Ne,showNow:It,onNow:Ta&&Ko,onOk:function(){Co&&(Qa(Co,"submit",!0),ca&&ca(Co))}}));var Cr;if(Xt&&Za==="date"&&je==="date"&&!jt){var fr=Oe.getNow(),Mr="".concat(me,"-today-btn"),hr=st&&st(fr);Cr=te.createElement("a",{className:ye()(Mr,hr&&"".concat(Mr,"-disabled")),"aria-disabled":hr,onClick:function(){hr||Qa(fr,"mouse",!0)}},Ne.today)}return te.createElement(Wt.Provider,{value:(0,We.Z)((0,We.Z)({},qa),{},{mode:Za,hideHeader:"hideHeader"in ne?Ot:qa.hideHeader,hidePrevBtn:Ua&&ka==="right",hideNextBtn:Ua&&ka==="left"})},te.createElement("div",{tabIndex:Ht,className:ye()("".concat(me,"-panel"),pe,(oe={},(0,ue.Z)(oe,"".concat(me,"-panel-has-range"),co&&co[0]&&co[1]),(0,ue.Z)(oe,"".concat(me,"-panel-has-range-hover"),ho&&ho[0]&&ho[1]),(0,ue.Z)(oe,"".concat(me,"-panel-rtl"),na==="rtl"),oe)),style:he,onKeyDown:mr,onBlur:_a,onMouseDown:Hn},Do,sr||Yo||Cr?te.createElement("div",{className:"".concat(me,"-footer")},sr,Yo,Cr):null))}var ta=_n,Ja=ge(35593),ba={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function ir(ne){var oe,re=ne.prefixCls,ce=ne.popupElement,me=ne.popupStyle,pe=ne.visible,he=ne.dropdownClassName,Ne=ne.dropdownAlign,Oe=ne.transitionName,ze=ne.getPopupContainer,xt=ne.children,Ve=ne.range,Ye=ne.popupPlacement,st=ne.direction,ut="".concat(re,"-dropdown"),De=function(){return Ye!==void 0?Ye:st==="rtl"?"bottomRight":"bottomLeft"};return te.createElement(Ja.Z,{showAction:[],hideAction:[],popupPlacement:De(),builtinPlacements:ba,prefixCls:ut,popupTransitionName:Oe,popup:ce,popupAlign:Ne,popupVisible:pe,popupClassName:ye()(he,(oe={},(0,ue.Z)(oe,"".concat(ut,"-range"),Ve),(0,ue.Z)(oe,"".concat(ut,"-rtl"),st==="rtl"),oe)),popupStyle:me,getPopupContainer:ze},xt)}var Wo=ir;function Fr(ne){var oe=ne.prefixCls,re=ne.presets,ce=ne.onClick,me=ne.onHover;return re.length?te.createElement("div",{className:"".concat(oe,"-presets")},te.createElement("ul",null,re.map(function(pe,he){var Ne=pe.label,Oe=pe.value;return te.createElement("li",{key:he,onClick:function(){return ce==null?void 0:ce(An(Oe))},onMouseEnter:function(){return me==null?void 0:me(An(Oe))},onMouseLeave:function(){return me==null?void 0:me(null)}},Ne)}))):null}function wi(ne){var oe=ne.picker,re=ne.disabledHours,ce=ne.disabledMinutes,me=ne.disabledSeconds;oe==="time"&&(re||ce||me)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Br(ne,oe,re){var ce=(0,Qt.Z)(oe)==="object"?oe.clearIcon:re;return ce||te.createElement("span",{className:"".concat(ne,"-clear-btn")})}function Vo(ne){var oe,re=ne,ce=re.prefixCls,me=ce===void 0?"rc-picker":ce,pe=re.id,he=re.name,Ne=re.tabIndex,Oe=re.style,ze=re.className,xt=re.dropdownClassName,Ve=re.dropdownAlign,Ye=re.popupStyle,st=re.transitionName,ut=re.generateConfig,De=re.locale,je=re.inputReadOnly,ft=re.allowClear,Ht=re.autoFocus,It=re.showTime,jt=re.picker,Xt=jt===void 0?"date":jt,Ut=re.format,Ot=re.use12Hours,Nn=re.value,Pn=re.defaultValue,On=re.presets,Hn=re.open,sa=re.defaultOpen,ca=re.defaultOpenValue,Na=re.suffixIcon,na=re.clearIcon,kn=re.disabled,jn=re.disabledDate,ua=re.placeholder,Sa=re.getPopupContainer,Qn=re.pickerRef,La=re.panelRender,Xa=re.onChange,Wa=re.onOpenChange,so=re.onFocus,Ta=re.onBlur,uo=re.onMouseDown,xa=re.onMouseUp,Va=re.onMouseEnter,qa=re.onMouseLeave,yo=re.onContextMenu,eo=re.onClick,Fo=re.onKeyDown,zo=re.onSelect,In=re.direction,Ua=re.autoComplete,ka=Ua===void 0?"off":Ua,co=re.inputRender,ho=re.changeOnBlur,Ga=te.useRef(null),to=Xt==="date"&&!!It||Xt==="time",qo=$e(On),Uo=ma(Pa(Ut,Xt,It,Ot)),Co=te.useRef(null),Sr=te.useRef(null),Or=te.useRef(null),wr=(0,fn.Z)(null,{value:Nn,defaultValue:Pn}),wo=(0,bt.Z)(wr,2),_o=wo[0],Io=wo[1],Lr=te.useState(_o),cr=(0,bt.Z)(Lr,2),Ao=cr[0],Za=cr[1],Bo=te.useRef(null),gr=(0,fn.Z)(!1,{value:Hn,defaultValue:sa,postState:function(vn){return kn?!1:vn},onChange:function(vn){Wa&&Wa(vn),!vn&&Bo.current&&Bo.current.onClose&&Bo.current.onClose()}}),lr=(0,bt.Z)(gr,2),Ro=lr[0],ko=lr[1],er=Zt(Ao,{formatList:Uo,generateConfig:ut,locale:De}),Qa=(0,bt.Z)(er,2),xo=Qa[0],mr=Qa[1],_a=xe({valueTexts:xo,onTextChange:function(vn){var Eo=lt(vn,{locale:De,formatList:Uo,generateConfig:ut});Eo&&(!jn||!jn(Eo))&&Za(Eo)}}),Do=(0,bt.Z)(_a,3),dr=Do[0],ha=Do[1],sr=Do[2],Yo=function(vn){Za(vn),Io(vn),Xa&&!Tn(ut,_o,vn)&&Xa(vn,vn?Me(vn,{generateConfig:ut,locale:De,format:Uo[0]}):"")},Ko=function(vn){kn&&vn||ko(vn)},Cr=function(vn){return Ro&&Bo.current&&Bo.current.onKeyDown?Bo.current.onKeyDown(vn):((0,ct.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},fr=function(){for(var vn=arguments.length,Eo=new Array(vn),No=0;No<vn;No++)Eo[No]=arguments[No];eo==null||eo.apply(void 0,Eo),Ga.current&&(Ga.current.focus(),Ko(!0))},Mr=function(vn){ho&&Yo(Ao),Ta==null||Ta(vn)},hr=ao({blurToCancel:to,open:Ro,value:dr,triggerOpen:Ko,forwardKeyDown:Cr,isClickOutside:function(vn){return!Lo([Co.current,Sr.current,Or.current],vn)},onSubmit:function(){return!Ao||jn&&jn(Ao)?!1:(Yo(Ao),Ko(!1),sr(),!0)},onCancel:function(){Ko(!1),Za(_o),sr()},onKeyDown:function(vn,Eo){Fo==null||Fo(vn,Eo)},onFocus:so,onBlur:Mr,changeOnBlur:ho}),Cn=(0,bt.Z)(hr,2),qt=Cn[0],Rn=Cn[1],Ha=Rn.focused,Xo=Rn.typing;te.useEffect(function(){Ro||(Za(_o),!xo.length||xo[0]===""?ha(""):mr!==dr&&sr())},[Ro,xo]),te.useEffect(function(){Ro||sr()},[Xt]),te.useEffect(function(){Za(_o)},[_o]),Qn&&(Qn.current={focus:function(){var vn;(vn=Ga.current)===null||vn===void 0||vn.focus()},blur:function(){var vn;(vn=Ga.current)===null||vn===void 0||vn.blur()}});var Yr=dn(dr,{formatList:Uo,generateConfig:ut,locale:De}),zr=(0,bt.Z)(Yr,3),Kr=zr[0],Ir=zr[1],mo=zr[2],$n=(0,We.Z)((0,We.Z)({},ne),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),Ar=te.createElement("div",{className:"".concat(me,"-panel-layout")},te.createElement(Fr,{prefixCls:me,presets:qo,onClick:function(vn){Yo(vn),Ko(!1)}}),te.createElement(ta,(0,ae.Z)({},$n,{generateConfig:ut,className:ye()((0,ue.Z)({},"".concat(me,"-panel-focused"),!Xo)),value:Ao,locale:De,tabIndex:-1,onSelect:function(vn){zo==null||zo(vn),Za(vn)},direction:In,onPanelChange:function(vn,Eo){var No=ne.onPanelChange;mo(!0),No==null||No(vn,Eo)}})));La&&(Ar=La(Ar));var Qo=te.createElement("div",{className:"".concat(me,"-panel-container"),ref:Co,onMouseDown:function(vn){vn.preventDefault()}},Ar),Xr;Na&&(Xr=te.createElement("span",{className:"".concat(me,"-suffix"),onMouseDown:function(vn){vn.preventDefault()}},Na));var di=Br(me,ft,na),si=te.createElement("span",{onMouseDown:function(vn){vn.preventDefault(),vn.stopPropagation()},onMouseUp:function(vn){vn.preventDefault(),vn.stopPropagation(),Yo(null),Ko(!1)},className:"".concat(me,"-clear"),role:"button"},di),Qr=!!ft&&_o&&!kn,kr=(0,We.Z)((0,We.Z)((0,We.Z)({id:pe,tabIndex:Ne,disabled:kn,readOnly:je||typeof Uo[0]=="function"||!Xo,value:Kr||dr,onChange:function(vn){ha(vn.target.value)},autoFocus:Ht,placeholder:ua,ref:Ga,title:dr},qt),{},{size:Yn(Xt,Uo[0],ut),name:he},(0,ln.Z)(ne,{aria:!0,data:!0})),{},{autoComplete:ka}),Jr=co?co(kr):te.createElement("input",kr),ui=function(vn,Eo){(Eo==="submit"||Eo!=="key"&&!to)&&(Yo(vn),Ko(!1))},qr=In==="rtl"?"bottomRight":"bottomLeft";return te.createElement(Wt.Provider,{value:{operationRef:Bo,hideHeader:Xt==="time",onSelect:ui,open:Ro,defaultOpenValue:ca,onDateMouseEnter:Ir,onDateMouseLeave:mo}},te.createElement(Wo,{visible:Ro,popupElement:Qo,popupStyle:Ye,prefixCls:me,dropdownClassName:xt,dropdownAlign:Ve,getPopupContainer:Sa,transitionName:st,popupPlacement:qr,direction:In},te.createElement("div",{ref:Or,className:ye()(me,ze,(oe={},(0,ue.Z)(oe,"".concat(me,"-disabled"),kn),(0,ue.Z)(oe,"".concat(me,"-focused"),Ha),(0,ue.Z)(oe,"".concat(me,"-rtl"),In==="rtl"),oe)),style:Oe,onMouseDown:uo,onMouseUp:xa,onMouseEnter:Va,onMouseLeave:qa,onContextMenu:yo,onClick:fr},te.createElement("div",{className:ye()("".concat(me,"-input"),(0,ue.Z)({},"".concat(me,"-input-placeholder"),!!Kr)),ref:Sr},Jr,Xr,Qr&&si))))}var Hr=function(ne){(0,it.Z)(re,ne);var oe=(0,pt.Z)(re);function re(){var ce;(0,Ge.Z)(this,re);for(var me=arguments.length,pe=new Array(me),he=0;he<me;he++)pe[he]=arguments[he];return ce=oe.call.apply(oe,[this].concat(pe)),(0,ue.Z)((0,Tt.Z)(ce),"pickerRef",te.createRef()),(0,ue.Z)((0,Tt.Z)(ce),"focus",function(){ce.pickerRef.current&&ce.pickerRef.current.focus()}),(0,ue.Z)((0,Tt.Z)(ce),"blur",function(){ce.pickerRef.current&&ce.pickerRef.current.blur()}),ce}return(0,dt.Z)(re,[{key:"render",value:function(){return te.createElement(Vo,(0,ae.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),re}(te.Component),jr=Hr;function Wr(ne,oe){var re=ne.picker,ce=ne.locale,me=ne.selectedValue,pe=ne.disabledDate,he=ne.disabled,Ne=ne.generateConfig,Oe=Sn(me,0),ze=Sn(me,1);function xt(De){return Ne.locale.getWeekFirstDate(ce.locale,De)}function Ve(De){var je=Ne.getYear(De),ft=Ne.getMonth(De);return je*100+ft}function Ye(De){var je=Ne.getYear(De),ft=on(Ne,De);return je*10+ft}var st=te.useCallback(function(De){if(he[0]||pe&&pe(De))return!0;if(he[1]&&ze)return!Rt(Ne,De,ze)&&Ne.isAfter(De,ze);if(!oe&&ze)switch(re){case"quarter":return Ye(De)>Ye(ze);case"month":return Ve(De)>Ve(ze);case"week":return xt(De)>xt(ze);default:return!Rt(Ne,De,ze)&&Ne.isAfter(De,ze)}return!1},[pe,he[1],ze,oe]),ut=te.useCallback(function(De){if(he[1]||pe&&pe(De))return!0;if(he[0]&&Oe)return!Rt(Ne,De,ze)&&Ne.isAfter(Oe,De);if(!oe&&Oe)switch(re){case"quarter":return Ye(De)<Ye(Oe);case"month":return Ve(De)<Ve(Oe);case"week":return xt(De)<xt(Oe);default:return!Rt(Ne,De,Oe)&&Ne.isAfter(Oe,De)}return!1},[pe,he[0],Oe,oe]);return[st,ut]}var oi=ge(70425),mg=ge(6089);function fg(ne,oe,re,ce,me,pe,he,Ne,Oe,ze){var xt=te.useState(!1),Ve=(0,bt.Z)(xt,2),Ye=Ve[0],st=Ve[1],ut=(0,oi.useMergedState)(ne||!1,{value:oe}),De=(0,bt.Z)(ut,2),je=De[0],ft=De[1],Ht=(0,oi.useMergedState)(ne||!1,{value:oe,onChange:function(jn){ze==null||ze(jn)}}),It=(0,bt.Z)(Ht,2),jt=It[0],Xt=It[1],Ut=(0,oi.useMergedState)(0,{value:re}),Ot=(0,bt.Z)(Ut,2),Nn=Ot[0],Pn=Ot[1],On=te.useState(null),Hn=(0,bt.Z)(On,2),sa=Hn[0],ca=Hn[1];te.useEffect(function(){jt&&st(!0)},[jt]);var Na=function(jn){return jn===0?1:0},na=(0,mg.Z)(function(kn,jn,ua){if(jn===!1)Xt(kn);else if(kn){Pn(jn),Xt(kn);var Sa=Na(jn);!jt||![he,Ne][Sa]?ca(Sa):(st(!1),sa!==null&&ca(null))}else if(ua==="confirm"||ua==="blur"&&ce){var Qn=je?Na(jn):sa;Qn!==null&&(st(!1),Pn(Qn)),ca(null),Qn!==null&&!Oe[Qn]?(0,en.Z)(function(){var La,Xa=[me,pe][Qn];(La=Xa.current)===null||La===void 0||La.focus()}):Xt(!1)}else Xt(!1),ft(!1)});return[jt,Nn,Ye,na]}function Sg(ne,oe,re,ce){var me=Ce(ne,re,ce,1);function pe(he){return he(ne,oe)?"same":he(me,oe)?"closing":"far"}switch(re){case"year":return pe(function(he,Ne){return Jt(ce,he,Ne)});case"quarter":case"month":return pe(function(he,Ne){return Gt(ce,he,Ne)});default:return pe(function(he,Ne){return zt(ce,he,Ne)})}}function hg(ne,oe,re,ce){var me=Sn(ne,0),pe=Sn(ne,1);if(oe===0)return me;if(me&&pe){var he=Sg(me,pe,re,ce);switch(he){case"same":return me;case"closing":return me;default:return Ce(pe,re,ce,-1)}}return me}function Pg(ne){var oe=ne.values,re=ne.picker,ce=ne.defaultDates,me=ne.generateConfig,pe=te.useState(function(){return[Sn(ce,0),Sn(ce,1)]}),he=(0,bt.Z)(pe,2),Ne=he[0],Oe=he[1],ze=te.useState(null),xt=(0,bt.Z)(ze,2),Ve=xt[0],Ye=xt[1],st=Sn(oe,0),ut=Sn(oe,1);function De(ft){return Ne[ft]?Ne[ft]:Sn(Ve,ft)||hg(oe,ft,re,me)||st||ut||me.getNow()}function je(ft,Ht){if(ft){var It=Pt(Ve,ft,Ht);Oe(Pt(Ne,null,Ht)||[null,null]);var jt=(Ht+1)%2;Sn(oe,jt)||(It=Pt(It,ft,jt)),Ye(It)}else(st||ut)&&Ye(null)}return[De,je]}function Li(ne,oe){return ne&&ne[0]&&ne[1]&&oe.isAfter(ne[0],ne[1])?[ne[1],ne[0]]:ne}function Ci(ne,oe,re,ce){return!!(ne||ce&&ce[oe]||re[(oe+1)%2])}function vg(ne){var oe,re,ce,me=ne,pe=me.prefixCls,he=pe===void 0?"rc-picker":pe,Ne=me.id,Oe=me.style,ze=me.className,xt=me.popupStyle,Ve=me.dropdownClassName,Ye=me.transitionName,st=me.dropdownAlign,ut=me.getPopupContainer,De=me.generateConfig,je=me.locale,ft=me.placeholder,Ht=me.autoFocus,It=me.disabled,jt=me.format,Xt=me.picker,Ut=Xt===void 0?"date":Xt,Ot=me.showTime,Nn=me.use12Hours,Pn=me.separator,On=Pn===void 0?"~":Pn,Hn=me.value,sa=me.defaultValue,ca=me.defaultPickerValue,Na=me.open,na=me.defaultOpen,kn=me.disabledDate,jn=me.disabledTime,ua=me.dateRender,Sa=me.monthCellRender,Qn=me.cellRender,La=me.panelRender,Xa=me.presets,Wa=me.ranges,so=me.allowEmpty,Ta=me.allowClear,uo=me.suffixIcon,xa=me.clearIcon,Va=me.pickerRef,qa=me.inputReadOnly,yo=me.mode,eo=me.renderExtraFooter,Fo=me.onChange,zo=me.onOpenChange,In=me.onPanelChange,Ua=me.onCalendarChange,ka=me.onFocus,co=me.onBlur,ho=me.onMouseDown,Ga=me.onMouseUp,to=me.onMouseEnter,qo=me.onMouseLeave,Uo=me.onClick,Co=me.onOk,Sr=me.onKeyDown,Or=me.components,wr=me.order,wo=me.direction,_o=me.activePickerIndex,Io=me.autoComplete,Lr=Io===void 0?"off":Io,cr=me.changeOnBlur,Ao=Ut==="date"&&!!Ot||Ut==="time",Za=(0,te.useRef)(null),Bo=(0,te.useRef)(null),gr=(0,te.useRef)(null),lr=(0,te.useRef)(null),Ro=(0,te.useRef)(null),ko=(0,te.useRef)(null),er=(0,te.useRef)(null),Qa=(0,te.useRef)(null),xo=ma(Pa(jt,Ut,Ot,Nn)),mr=(0,te.useRef)(null),_a=te.useMemo(function(){return Array.isArray(It)?It:[It||!1,It||!1]},[It]),Do=(0,fn.Z)(null,{value:Hn,defaultValue:sa,postState:function(an){return Ut==="time"&&!wr?an:Li(an,De)}}),dr=(0,bt.Z)(Do,2),ha=dr[0],sr=dr[1],Yo=Pg({values:ha,picker:Ut,defaultDates:ca,generateConfig:De}),Ko=(0,bt.Z)(Yo,2),Cr=Ko[0],fr=Ko[1],Mr=(0,fn.Z)(ha,{postState:function(an){var bn=an;if(_a[0]&&_a[1])return bn;for(var aa=0;aa<2;aa+=1)_a[aa]&&!bn&&!Sn(bn,aa)&&!Sn(so,aa)&&(bn=Pt(bn,De.getNow(),aa));return bn}}),hr=(0,bt.Z)(Mr,2),Cn=hr[0],qt=hr[1],Rn=(0,fn.Z)([Ut,Ut],{value:yo}),Ha=(0,bt.Z)(Rn,2),Xo=Ha[0],Yr=Ha[1];(0,te.useEffect)(function(){Yr([Ut,Ut])},[Ut]);var zr=function(an,bn){Yr(an),In&&In(bn,an)},Kr=fg(na,Na,_o,cr,ko,er,Sn(Cn,0),Sn(Cn,1),_a,zo),Ir=(0,bt.Z)(Kr,4),mo=Ir[0],$n=Ir[1],Ar=Ir[2],Qo=Ir[3],Xr=mo&&$n===0,di=mo&&$n===1,si=Wr({picker:Ut,selectedValue:Cn,locale:je,disabled:_a,disabledDate:kn,generateConfig:De},!mo||Ar),Qr=(0,bt.Z)(si,2),kr=Qr[0],Jr=Qr[1],ui=(0,te.useState)(0),qr=(0,bt.Z)(ui,2),ja=qr[0],vn=qr[1];(0,te.useEffect)(function(){!mo&&Za.current&&vn(Za.current.offsetWidth)},[mo]);function Eo(Jn){Qo(!0,Jn,"open"),(0,en.Z)(function(){var an,bn=[ko,er][Jn];(an=bn.current)===null||an===void 0||an.focus()},0)}function No(Jn,an){var bn=Jn,aa=Sn(bn,0),za=Sn(bn,1);aa&&za&&De.isAfter(aa,za)&&(Ut==="week"&&!cn(De,je.locale,aa,za)||Ut==="quarter"&&!Nt(De,aa,za)||Ut!=="week"&&Ut!=="quarter"&&Ut!=="time"&&!Rt(De,aa,za)?an===0?(bn=[aa,null],za=null):(aa=null,bn=[null,za]):(Ut!=="time"||wr!==!1)&&(bn=Li(bn,De))),qt(bn);var Tr=bn&&bn[0]?Me(bn[0],{generateConfig:De,locale:je,format:xo[0]}):"",tr=bn&&bn[1]?Me(bn[1],{generateConfig:De,locale:je,format:xo[0]}):"";if(Ua){var vr={range:an===0?"start":"end"};Ua(bn,[Tr,tr],vr)}var pr=Ci(aa,0,_a,so),Zr=Ci(za,1,_a,so),xr=bn===null||pr&&Zr;xr&&(sr(bn),Fo&&(!Tn(De,Sn(ha,0),aa)||!Tn(De,Sn(ha,1),za))&&Fo(bn,[Tr,tr]))}var Wg=function(an){return mo&&mr.current&&mr.current.onKeyDown?mr.current.onKeyDown(an):((0,ct.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},zi={formatList:xo,generateConfig:De,locale:je},Vg=Zt(Sn(Cn,0),zi),Ai=(0,bt.Z)(Vg,2),ei=Ai[0],Ug=Ai[1],_g=Zt(Sn(Cn,1),zi),ki=(0,bt.Z)(_g,2),ti=ki[0],Yg=ki[1],Zi=function(an,bn){var aa=lt(an,{locale:je,formatList:xo,generateConfig:De}),za=bn===0?kr:Jr;aa&&!za(aa)&&(qt(Pt(Cn,aa,bn)),fr(aa,bn))},Kg=xe({valueTexts:ei,onTextChange:function(an){return Zi(an,0)}}),ci=(0,bt.Z)(Kg,3),ni=ci[0],Hi=ci[1],ji=ci[2],Xg=xe({valueTexts:ti,onTextChange:function(an){return Zi(an,1)}}),mi=(0,bt.Z)(Xg,3),ai=mi[0],Wi=mi[1],Vi=mi[2],Qg=(0,te.useState)(null),Ui=(0,bt.Z)(Qg,2),Jg=Ui[0],qg=Ui[1],el=(0,te.useState)(null),_i=(0,bt.Z)(el,2),Rr=_i[0],Yi=_i[1],tl=dn(ni,{formatList:xo,generateConfig:De,locale:je}),fi=(0,bt.Z)(tl,3),Ki=fi[0],nl=fi[1],Si=fi[2],al=dn(ai,{formatList:xo,generateConfig:De,locale:je}),hi=(0,bt.Z)(al,3),Xi=hi[0],ol=hi[1],Pi=hi[2],rl=function(an){Yi(Pt(Cn,an,$n)),$n===0?nl(an):ol(an)},il=function(){Yi(Pt(Cn,null,$n)),$n===0?Si():Pi()},gl=te.useState(mo),Qi=(0,bt.Z)(gl,2),ll=Qi[0],dl=Qi[1];te.useEffect(function(){dl(mo)},[mo]);var sl=function(an){if(cr&&ll){var bn=Sn(Cn,$n);bn&&No(Cn,$n)}return co==null?void 0:co(an)},Ji=function(an,bn){return{blurToCancel:!cr&&Ao,forwardKeyDown:Wg,onBlur:sl,isClickOutside:function(za){return!Lo([Bo.current,gr.current,lr.current,Za.current],za)},onFocus:function(za){ka&&ka(za)},triggerOpen:function(za){za?Qo(za,an,"open"):Qo(za,Sn(Cn,an)?an:!1,"blur")},onSubmit:function(){if(!Cn||kn&&kn(Cn[an]))return!1;No(Cn,an),bn(),Qo(!1,$n,"confirm")},onCancel:function(){Qo(!1,an,"cancel"),qt(ha),bn()}}},qi={onKeyDown:function(an,bn){Sr==null||Sr(an,bn)},changeOnBlur:cr},ul=ao((0,We.Z)((0,We.Z)({},Ji(0,ji)),{},{open:Xr,value:ni},qi)),eg=(0,bt.Z)(ul,2),cl=eg[0],tg=eg[1],ng=tg.focused,ag=tg.typing,ml=ao((0,We.Z)((0,We.Z)({},Ji(1,Vi)),{},{open:di,value:ai},qi)),og=(0,bt.Z)(ml,2),fl=og[0],rg=og[1],ig=rg.focused,gg=rg.typing,Sl=function(an){Uo&&Uo(an),!mo&&!ko.current.contains(an.target)&&!er.current.contains(an.target)&&(_a[0]?_a[1]||Eo(1):Eo(0))},hl=function(an){ho&&ho(an),mo&&(ng||ig)&&!ko.current.contains(an.target)&&!er.current.contains(an.target)&&an.preventDefault()},Pl=ha&&ha[0]?Me(ha[0],{locale:je,format:"YYYYMMDDHHmmss",generateConfig:De}):"",vl=ha&&ha[1]?Me(ha[1],{locale:je,format:"YYYYMMDDHHmmss",generateConfig:De}):"";(0,te.useEffect)(function(){mo||(qt(ha),!ei.length||ei[0]===""?Hi(""):Ug!==ni&&ji(),!ti.length||ti[0]===""?Wi(""):Yg!==ai&&Vi())},[mo,ei,ti]),(0,te.useEffect)(function(){qt(ha)},[Pl,vl]);var vi=Kn({cellRender:Qn,monthCellRender:Sa,dateRender:ua}),pl=te.useMemo(function(){if(vi)return function(Jn,an){return vi(Jn,(0,We.Z)((0,We.Z)({},an),{},{range:$n?"end":"start"}))}},[$n,vi]);Va&&(Va.current={focus:function(){ko.current&&ko.current.focus()},blur:function(){ko.current&&ko.current.blur(),er.current&&er.current.blur()}});var bl=$e(Xa,Wa);function pi(){var Jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},bn=null;mo&&Rr&&Rr[0]&&Rr[1]&&De.isAfter(Rr[1],Rr[0])&&(bn=Rr);var aa=Ot;if(Ot&&(0,Qt.Z)(Ot)==="object"&&Ot.defaultValue){var za=Ot.defaultValue;aa=(0,We.Z)((0,We.Z)({},Ot),{},{defaultValue:Sn(za,$n)||void 0})}return te.createElement(ga.Provider,{value:{inRange:!0,panelPosition:Jn,rangedValue:Jg||Cn,hoverRangedValue:bn}},te.createElement(ta,(0,ae.Z)({},ne,an,{cellRender:pl,showTime:aa,mode:Xo[$n],generateConfig:De,style:void 0,direction:wo,disabledDate:$n===0?kr:Jr,disabledTime:function(tr){return jn?jn(tr,$n===0?"start":"end"):!1},className:ye()((0,ue.Z)({},"".concat(he,"-panel-focused"),$n===0?!ag:!gg)),value:Sn(Cn,$n),locale:je,tabIndex:-1,onPanelChange:function(tr,vr){$n===0&&Si(!0),$n===1&&Pi(!0),zr(Pt(Xo,vr,$n),Pt(Cn,tr,$n));var pr=tr;Jn==="right"&&Xo[$n]===vr&&(pr=Ce(pr,vr,De,-1)),fr(pr,$n)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:$n===0?Sn(Cn,1):Sn(Cn,0)})))}var Pr=0,lg=0;if($n&&gr.current&&Ro.current&&Bo.current&&Qa.current){Pr=gr.current.offsetWidth+Ro.current.offsetWidth;var yl=Qa.current.offsetLeft>Pr?Qa.current.offsetLeft-Pr:Qa.current.offsetLeft,dg=Bo.current.offsetWidth,sg=Qa.current.offsetWidth;dg&&sg&&Pr>dg-sg-(wo==="rtl"?0:yl)&&(lg=Pr)}var wl=wo==="rtl"?{right:Pr}:{left:Pr};function Ll(){var Jn,an=En(he,Xo[$n],eo),bn=Xn({prefixCls:he,components:Or,needConfirmButton:Ao,okDisabled:!Sn(Cn,$n)||kn&&kn(Cn[$n]),locale:je,onOk:function(){var nr=Sn(Cn,$n);nr&&(No(Cn,$n),Co==null||Co(Cn),Qo(!1,$n,"confirm"))}});if(Ut!=="time"&&!Ot){var aa=Cr($n),za=Ce(aa,Ut,De),Tr=Xo[$n],tr=Tr===Ut,vr=pi(tr?"left":!1,{pickerValue:aa,onPickerValueChange:function(nr){fr(nr,$n)}}),pr=pi("right",{pickerValue:za,onPickerValueChange:function(nr){fr(Ce(nr,Ut,De,-1),$n)}});wo==="rtl"?Jn=te.createElement(te.Fragment,null,pr,tr&&vr):Jn=te.createElement(te.Fragment,null,vr,tr&&pr)}else Jn=pi();var Zr=te.createElement("div",{className:"".concat(he,"-panel-layout")},te.createElement(Fr,{prefixCls:he,presets:bl,onClick:function(nr){No(nr,null),Qo(!1,$n,"preset")},onHover:function(nr){qg(nr)}}),te.createElement("div",null,te.createElement("div",{className:"".concat(he,"-panels")},Jn),(an||bn)&&te.createElement("div",{className:"".concat(he,"-footer")},an,bn)));return La&&(Zr=La(Zr)),te.createElement("div",{className:"".concat(he,"-panel-container"),style:{marginLeft:lg},ref:Bo,onMouseDown:function(nr){nr.preventDefault()}},Zr)}var Cl=te.createElement("div",{className:ye()("".concat(he,"-range-wrapper"),"".concat(he,"-").concat(Ut,"-range-wrapper")),style:{minWidth:ja}},te.createElement("div",{ref:Qa,className:"".concat(he,"-range-arrow"),style:wl}),Ll()),ug;uo&&(ug=te.createElement("span",{className:"".concat(he,"-suffix"),onMouseDown:function(an){an.preventDefault()}},uo));var xl=Br(he,Ta,xa),El=te.createElement("span",{onMouseDown:function(an){an.preventDefault(),an.stopPropagation()},onMouseUp:function(an){an.preventDefault(),an.stopPropagation();var bn=ha;_a[0]||(bn=Pt(bn,null,0)),_a[1]||(bn=Pt(bn,null,1)),No(bn,null),Qo(!1,$n,"clear")},className:"".concat(he,"-clear"),role:"button"},xl),$l=Ta&&(Sn(ha,0)&&!_a[0]||Sn(ha,1)&&!_a[1]),cg={size:Yn(Ut,xo[0],De)},bi=0,yi=0;gr.current&&lr.current&&Ro.current&&($n===0?yi=gr.current.offsetWidth:(bi=Pr,yi=lr.current.offsetWidth));var Fl=wo==="rtl"?{right:bi}:{left:bi},Bl=function(an,bn){var aa=Pt(Cn,an,$n);if(bn==="submit"||bn!=="key"&&!Ao){No(aa,$n),$n===0?Si():Pi();var za=$n===0?1:0;_a[za]?Qo(!1,!1,"confirm"):Qo(!1,$n,"confirm")}else qt(aa)};return te.createElement(Wt.Provider,{value:{operationRef:mr,hideHeader:Ut==="time",onDateMouseEnter:rl,onDateMouseLeave:il,hideRanges:!0,onSelect:Bl,open:mo}},te.createElement(Wo,{visible:mo,popupElement:Cl,popupStyle:xt,prefixCls:he,dropdownClassName:Ve,dropdownAlign:st,getPopupContainer:ut,transitionName:Ye,range:!0,direction:wo},te.createElement("div",(0,ae.Z)({ref:Za,className:ye()(he,"".concat(he,"-range"),ze,(oe={},(0,ue.Z)(oe,"".concat(he,"-disabled"),_a[0]&&_a[1]),(0,ue.Z)(oe,"".concat(he,"-focused"),$n===0?ng:ig),(0,ue.Z)(oe,"".concat(he,"-rtl"),wo==="rtl"),oe)),style:Oe,onClick:Sl,onMouseEnter:to,onMouseLeave:qo,onMouseDown:hl,onMouseUp:Ga},(0,ln.Z)(ne,{aria:!0,data:!0})),te.createElement("div",{className:ye()("".concat(he,"-input"),(re={},(0,ue.Z)(re,"".concat(he,"-input-active"),$n===0),(0,ue.Z)(re,"".concat(he,"-input-placeholder"),!!Ki),re)),ref:gr},te.createElement("input",(0,ae.Z)({id:Ne,disabled:_a[0],readOnly:qa||typeof xo[0]=="function"||!ag,value:Ki||ni,onChange:function(an){Hi(an.target.value)},autoFocus:Ht,placeholder:Sn(ft,0)||"",ref:ko},cl,cg,{autoComplete:Lr}))),te.createElement("div",{className:"".concat(he,"-range-separator"),ref:Ro},On),te.createElement("div",{className:ye()("".concat(he,"-input"),(ce={},(0,ue.Z)(ce,"".concat(he,"-input-active"),$n===1),(0,ue.Z)(ce,"".concat(he,"-input-placeholder"),!!Xi),ce)),ref:lr},te.createElement("input",(0,ae.Z)({disabled:_a[1],readOnly:qa||typeof xo[0]=="function"||!gg,value:Xi||ai,onChange:function(an){Wi(an.target.value)},placeholder:Sn(ft,1)||"",ref:er},fl,cg,{autoComplete:Lr}))),te.createElement("div",{className:"".concat(he,"-active-bar"),style:(0,We.Z)((0,We.Z)({},Fl),{},{width:yi,position:"absolute"})}),ug,$l&&El)))}var pg=function(ne){(0,it.Z)(re,ne);var oe=(0,pt.Z)(re);function re(){var ce;(0,Ge.Z)(this,re);for(var me=arguments.length,pe=new Array(me),he=0;he<me;he++)pe[he]=arguments[he];return ce=oe.call.apply(oe,[this].concat(pe)),(0,ue.Z)((0,Tt.Z)(ce),"pickerRef",te.createRef()),(0,ue.Z)((0,Tt.Z)(ce),"focus",function(){ce.pickerRef.current&&ce.pickerRef.current.focus()}),(0,ue.Z)((0,Tt.Z)(ce),"blur",function(){ce.pickerRef.current&&ce.pickerRef.current.blur()}),ce}return(0,dt.Z)(re,[{key:"render",value:function(){return te.createElement(vg,(0,ae.Z)({},this.props,{pickerRef:this.pickerRef}))}}]),re}(te.Component),bg=pg,yg=jr,Vr=ge(19080),xi=ge(36355),Ei=ge(1684),$i=ge(19716),Fi=ge(32441),Bi=ge(9763),Di=ge(33234),Ni=ge(48183),Ur=ge(64993),yr=ge(9937),ri=ge(17313),wg=ge(47585),Lg=ge(74207),Dr=ge(13826),Oi=ge(92899),ii=ge(37613),Cg=ge(83116);const gi=(ne,oe,re,ce)=>{const{lineHeight:me}=ne,pe=Math.floor(re*me)+2,he=Math.max((oe-pe)/2,0),Ne=Math.max(oe-pe-he,0);return{padding:`${he}px ${ce}px ${Ne}px`}},xg=ne=>{const{componentCls:oe,pickerCellCls:re,pickerCellInnerCls:ce,cellHeight:me,motionDurationSlow:pe,borderRadiusSM:he,motionDurationMid:Ne,cellHoverBg:Oe,lineWidth:ze,lineType:xt,colorPrimary:Ve,cellActiveWithRangeBg:Ye,colorTextLightSolid:st,controlHeightSM:ut,cellRangeBorderColor:De,pickerCellBorderGap:je,cellHoverWithRangeBg:ft,cellWidth:Ht,colorTextDisabled:It,cellBgDisabled:jt}=ne;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:me,transform:"translateY(-50%)",transition:`all ${pe}`,content:'""'},[ce]:{position:"relative",zIndex:2,display:"inline-block",minWidth:me,height:me,lineHeight:`${me}px`,borderRadius:he,transition:`background ${Ne}, border ${Ne}`},"&-range-hover-start, &-range-hover-end":{[ce]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${re}-in-view),
&:hover:not(${re}-selected):not(${re}-range-start):not(${re}-range-end):not(${re}-range-hover-start):not(${re}-range-hover-end)`]:{[ce]:{background:Oe}},[`&-in-view${re}-today ${ce}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ze}px ${xt} ${Ve}`,borderRadius:he,content:'""'}},[`&-in-view${re}-in-range`]:{position:"relative","&::before":{background:Ye}},[`&-in-view${re}-selected ${ce},
&-in-view${re}-range-start ${ce},
&-in-view${re}-range-end ${ce}`]:{color:st,background:Ve},[`&-in-view${re}-range-start:not(${re}-range-start-single),
&-in-view${re}-range-end:not(${re}-range-end-single)`]:{"&::before":{background:Ye}},[`&-in-view${re}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${re}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${re}-range-hover-start:not(${re}-in-range):not(${re}-range-start):not(${re}-range-end),
&-in-view${re}-range-hover-end:not(${re}-in-range):not(${re}-range-start):not(${re}-range-end),
&-in-view${re}-range-hover-start${re}-range-start-single,
&-in-view${re}-range-hover-start${re}-range-start${re}-range-end${re}-range-end-near-hover,
&-in-view${re}-range-hover-end${re}-range-start${re}-range-end${re}-range-start-near-hover,
&-in-view${re}-range-hover-end${re}-range-end-single,
&-in-view${re}-range-hover:not(${re}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:ut,borderTop:`${ze}px dashed ${De}`,borderBottom:`${ze}px dashed ${De}`,transform:"translateY(-50%)",transition:`all ${pe}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:je},[`&-in-view${re}-in-range${re}-range-hover::before,
&-in-view${re}-in-range${re}-range-hover-start::before,
&-in-view${re}-in-range${re}-range-hover-end::before,
&-in-view${re}-range-start${re}-range-hover::before,
&-in-view${re}-range-end${re}-range-hover::before,
&-in-view${re}-range-start:not(${re}-range-start-single)${re}-range-hover-start::before,
&-in-view${re}-range-end:not(${re}-range-end-single)${re}-range-hover-end::before,
${oe}-panel
> :not(${oe}-date-panel)
&-in-view${re}-in-range${re}-range-hover-start::before,
${oe}-panel
> :not(${oe}-date-panel)
&-in-view${re}-in-range${re}-range-hover-end::before`]:{background:ft},[`&-in-view${re}-range-start:not(${re}-range-start-single):not(${re}-range-end) ${ce}`]:{borderStartStartRadius:he,borderEndStartRadius:he,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${re}-range-end:not(${re}-range-end-single):not(${re}-range-start) ${ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:he,borderEndEndRadius:he},[`&-range-hover${re}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${re}-range-hover:first-child::after,
tr > &-in-view${re}-range-hover-end:first-child::after,
&-in-view${re}-start${re}-range-hover-edge-start${re}-range-hover-edge-start-near-range::after,
&-in-view${re}-range-hover-edge-start:not(${re}-range-hover-edge-start-near-range)::after,
&-in-view${re}-range-hover-start::after`]:{insetInlineStart:(Ht-me)/2,borderInlineStart:`${ze}px dashed ${De}`,borderStartStartRadius:he,borderEndStartRadius:he},[`tr > &-in-view${re}-range-hover:last-child::after,
tr > &-in-view${re}-range-hover-start:last-child::after,
&-in-view${re}-end${re}-range-hover-edge-end${re}-range-hover-edge-end-near-range::after,
&-in-view${re}-range-hover-edge-end:not(${re}-range-hover-edge-end-near-range)::after,
&-in-view${re}-range-hover-end::after`]:{insetInlineEnd:(Ht-me)/2,borderInlineEnd:`${ze}px dashed ${De}`,borderStartEndRadius:he,borderEndEndRadius:he},"&-disabled":{color:It,pointerEvents:"none",[ce]:{background:"transparent"},"&::before":{background:jt}},[`&-disabled${re}-today ${ce}::before`]:{borderColor:It}}},Eg=ne=>{const{componentCls:oe,pickerCellCls:re,pickerCellInnerCls:ce,pickerYearMonthCellWidth:me,pickerControlIconSize:pe,cellWidth:he,paddingSM:Ne,paddingXS:Oe,paddingXXS:ze,colorBgContainer:xt,lineWidth:Ve,lineType:Ye,borderRadiusLG:st,colorPrimary:ut,colorTextHeading:De,colorSplit:je,pickerControlIconBorderWidth:ft,colorIcon:Ht,textHeight:It,motionDurationMid:jt,colorIconHover:Xt,fontWeightStrong:Ut,cellHeight:Ot,pickerCellPaddingVertical:Nn,colorTextDisabled:Pn,colorText:On,fontSize:Hn,cellHoverWithRangeBg:sa,motionDurationSlow:ca,withoutTimeCellHeight:Na,pickerQuarterPanelContentHeight:na,colorLink:kn,colorLinkActive:jn,colorLinkHover:ua,cellRangeBorderColor:Sa,borderRadiusSM:Qn,colorTextLightSolid:La,cellHoverBg:Xa,timeColumnHeight:Wa,timeColumnWidth:so,timeCellHeight:Ta,controlItemBgActive:uo,marginXXS:xa,pickerDatePanelPaddingHorizontal:Va}=ne,qa=he*7+Va*2,yo=(qa-Oe*2)/3-me-Ne,eo=(qa-Oe*2)/4-me;return{[oe]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:xt,border:`${Ve}px ${Ye} ${je}`,borderRadius:st,outline:"none","&-focused":{borderColor:ut},"&-rtl":{direction:"rtl",[`${oe}-prev-icon,
${oe}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${oe}-next-icon,
${oe}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:qa},"&-header":{display:"flex",padding:`0 ${Oe}px`,color:De,borderBottom:`${Ve}px ${Ye} ${je}`,"> *":{flex:"none"},button:{padding:0,color:Ht,lineHeight:`${It}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${jt}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:Hn,"&:hover":{color:Xt}},"&-view":{flex:"auto",fontWeight:Ut,lineHeight:`${It}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Oe},"&:hover":{color:ut}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:pe,height:pe,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:pe,height:pe,border:"0 solid currentcolor",borderBlockStartWidth:ft,borderBlockEndWidth:0,borderInlineStartWidth:ft,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(pe/2),insetInlineStart:Math.ceil(pe/2),display:"inline-block",width:pe,height:pe,border:"0 solid currentcolor",borderBlockStartWidth:ft,borderBlockEndWidth:0,borderInlineStartWidth:ft,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:Ot,fontWeight:"normal"},th:{height:Ot+Nn*2,color:On,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Nn}px 0`,color:Pn,cursor:"pointer","&-in-view":{color:On}},xg(ne)),[`&-date-panel ${oe}-cell-in-view${oe}-cell-in-range${oe}-cell-range-hover-start ${ce},
&-date-panel ${oe}-cell-in-view${oe}-cell-in-range${oe}-cell-range-hover-end ${ce}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:sa,transition:`all ${ca}`,content:'""'}},[`&-date-panel
${oe}-cell-in-view${oe}-cell-in-range${oe}-cell-range-hover-start
${ce}::after`]:{insetInlineEnd:-(he-Ot)/2,insetInlineStart:0},[`&-date-panel ${oe}-cell-in-view${oe}-cell-in-range${oe}-cell-range-hover-end ${ce}::after`]:{insetInlineEnd:0,insetInlineStart:-(he-Ot)/2},[`&-range-hover${oe}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${oe}-content`]:{height:Na*4},[ce]:{padding:`0 ${Oe}px`}},"&-quarter-panel":{[`${oe}-content`]:{height:na},[`${oe}-cell-range-hover-start::after`]:{insetInlineStart:eo,borderInlineStart:`${Ve}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineEnd:eo,borderInlineEnd:`${Ve}px dashed ${Sa}`}},[`${oe}-cell-range-hover-end::after`]:{insetInlineEnd:eo,borderInlineEnd:`${Ve}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineStart:eo,borderInlineStart:`${Ve}px dashed ${Sa}`}}},[`&-panel ${oe}-footer`]:{borderTop:`${Ve}px ${Ye} ${je}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${It-2*Ve}px`,textAlign:"center","&-extra":{padding:`0 ${Ne}px`,lineHeight:`${It-2*Ve}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Ve}px ${Ye} ${je}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:kn,"&:hover":{color:ua},"&:active":{color:jn},[`&${oe}-today-btn-disabled`]:{color:Pn,cursor:"not-allowed"}},"&-decade-panel":{[ce]:{padding:`0 ${Oe/2}px`},[`${oe}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${oe}-body`]:{padding:`0 ${Oe}px`},[ce]:{width:me},[`${oe}-cell-range-hover-start::after`]:{borderStartStartRadius:Qn,borderEndStartRadius:Qn,borderStartEndRadius:0,borderEndEndRadius:0,[`${oe}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Qn,borderEndEndRadius:Qn}},[`${oe}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Qn,borderEndEndRadius:Qn,[`${oe}-panel-rtl &`]:{borderStartStartRadius:Qn,borderEndStartRadius:Qn,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${oe}-cell-range-hover-start::after`]:{insetInlineStart:yo,borderInlineStart:`${Ve}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineEnd:yo,borderInlineEnd:`${Ve}px dashed ${Sa}`}},[`${oe}-cell-range-hover-end::after`]:{insetInlineEnd:yo,borderInlineEnd:`${Ve}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineStart:yo,borderInlineStart:`${Ve}px dashed ${Sa}`}}},"&-week-panel":{[`${oe}-body`]:{padding:`${Oe}px ${Ne}px`},[`${oe}-cell`]:{[`&:hover ${ce},
&-selected ${ce},
${ce}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${jt}`},"&:first-child:before":{borderStartStartRadius:Qn,borderEndStartRadius:Qn},"&:last-child:before":{borderStartEndRadius:Qn,borderEndEndRadius:Qn}},"&:hover td":{"&:before":{background:Xa}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${re}`]:{"&:before":{background:ut},[`&${oe}-cell-week`]:{color:new Ur.C(La).setAlpha(.5).toHexString()},[ce]:{color:La}}},"&-range-hover td:before":{background:uo}}},"&-date-panel":{[`${oe}-body`]:{padding:`${Oe}px ${Va}px`},[`${oe}-content`]:{width:he*7,th:{width:he,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${oe}-time-panel`]:{borderInlineStart:`${Ve}px ${Ye} ${je}`},[`${oe}-date-panel,
${oe}-time-panel`]:{transition:`opacity ${ca}`},"&-active":{[`${oe}-date-panel,
${oe}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${oe}-content`]:{display:"flex",flex:"auto",height:Wa},"&-column":{flex:"1 0 auto",width:so,margin:`${ze}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${jt}`,overflowX:"hidden","&::after":{display:"block",height:Wa-Ta,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ve}px ${Ye} ${je}`},"&-active":{background:new Ur.C(uo).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${oe}-time-panel-cell`]:{marginInline:xa,[`${oe}-time-panel-cell-inner`]:{display:"block",width:so-2*xa,height:Ta,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(so-Ta)/2,color:On,lineHeight:`${Ta}px`,borderRadius:Qn,cursor:"pointer",transition:`background ${jt}`,"&:hover":{background:Xa}},"&-selected":{[`${oe}-time-panel-cell-inner`]:{background:uo}},"&-disabled":{[`${oe}-time-panel-cell-inner`]:{color:Pn,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${oe}-time-panel-column:after`]:{height:Wa-Ta+ze*2}}}},$g=ne=>{const{componentCls:oe,colorBgContainer:re,colorError:ce,errorActiveShadow:me,colorWarning:pe,warningActiveShadow:he}=ne;return{[`${oe}:not(${oe}-disabled)`]:{[`&${oe}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:re,borderColor:ce},[`&${oe}-focused, &:focus`]:Object.assign({},(0,yr.M1)((0,ii.TS)(ne,{activeBorderColor:ce,activeShadow:me}))),[`${oe}-active-bar`]:{background:ce}},[`&${oe}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:re,borderColor:pe},[`&${oe}-focused, &:focus`]:Object.assign({},(0,yr.M1)((0,ii.TS)(ne,{activeBorderColor:pe,activeShadow:he}))),[`${oe}-active-bar`]:{background:pe}}}}},Fg=ne=>{const{componentCls:oe,antCls:re,controlHeight:ce,fontSize:me,paddingInline:pe,colorBgContainer:he,lineWidth:Ne,lineType:Oe,colorBorder:ze,borderRadius:xt,motionDurationMid:Ve,colorBgContainerDisabled:Ye,colorTextDisabled:st,colorTextPlaceholder:ut,controlHeightLG:De,fontSizeLG:je,controlHeightSM:ft,paddingInlineSM:Ht,paddingXS:It,marginXS:jt,colorTextDescription:Xt,lineWidthBold:Ut,lineHeight:Ot,colorPrimary:Nn,motionDurationSlow:Pn,zIndexPopup:On,paddingXXS:Hn,paddingSM:sa,textHeight:ca,cellActiveWithRangeBg:Na,colorPrimaryBorder:na,sizePopupArrow:kn,borderRadiusXS:jn,borderRadiusOuter:ua,colorBgElevated:Sa,borderRadiusLG:Qn,boxShadowSecondary:La,borderRadiusSM:Xa,colorSplit:Wa,cellHoverBg:so,presetsWidth:Ta,presetsMaxWidth:uo,boxShadowPopoverArrow:xa,colorTextQuaternary:Va}=ne;return[{[oe]:Object.assign(Object.assign(Object.assign({},(0,ri.Wf)(ne)),gi(ne,ce,me,pe)),{position:"relative",display:"inline-flex",alignItems:"center",background:he,lineHeight:1,border:`${Ne}px ${Oe} ${ze}`,borderRadius:xt,transition:`border ${Ve}, box-shadow ${Ve}`,"&:hover, &-focused":Object.assign({},(0,yr.pU)(ne)),"&-focused":Object.assign({},(0,yr.M1)(ne)),[`&${oe}-disabled`]:{background:Ye,borderColor:ze,cursor:"not-allowed",[`${oe}-suffix`]:{color:Va}},[`&${oe}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${oe}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,yr.ik)(ne)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${oe}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:ut}}},"&-large":Object.assign(Object.assign({},gi(ne,De,je,pe)),{[`${oe}-input > input`]:{fontSize:je}}),"&-small":Object.assign({},gi(ne,ft,me,Ht)),[`${oe}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:It/2,color:st,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:jt}}},[`${oe}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:st,lineHeight:1,background:he,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Ve}, color ${Ve}`,"> *":{verticalAlign:"top"},"&:hover":{color:Xt}},[`${oe}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:je,color:st,fontSize:je,verticalAlign:"top",cursor:"default",[`${oe}-focused &`]:{color:Xt},[`${oe}-range-separator &`]:{[`${oe}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${oe}-clear`]:{insetInlineEnd:pe},"&:hover":{[`${oe}-clear`]:{opacity:1}},[`${oe}-active-bar`]:{bottom:-Ne,height:Ut,marginInlineStart:pe,background:Nn,opacity:0,transition:`all ${Pn} ease-out`,pointerEvents:"none"},[`&${oe}-focused`]:{[`${oe}-active-bar`]:{opacity:1}},[`${oe}-range-separator`]:{alignItems:"center",padding:`0 ${It}px`,lineHeight:1},[`&${oe}-small`]:{[`${oe}-clear`]:{insetInlineEnd:Ht},[`${oe}-active-bar`]:{marginInlineStart:Ht}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,ri.Wf)(ne)),Eg(ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:On,[`&${oe}-dropdown-hidden`]:{display:"none"},[`&${oe}-dropdown-placement-bottomLeft`]:{[`${oe}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${oe}-dropdown-placement-topLeft`]:{[`${oe}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${re}-slide-up-enter${re}-slide-up-enter-active${oe}-dropdown-placement-topLeft,
&${re}-slide-up-enter${re}-slide-up-enter-active${oe}-dropdown-placement-topRight,
&${re}-slide-up-appear${re}-slide-up-appear-active${oe}-dropdown-placement-topLeft,
&${re}-slide-up-appear${re}-slide-up-appear-active${oe}-dropdown-placement-topRight`]:{animationName:Dr.Qt},[`&${re}-slide-up-enter${re}-slide-up-enter-active${oe}-dropdown-placement-bottomLeft,
&${re}-slide-up-enter${re}-slide-up-enter-active${oe}-dropdown-placement-bottomRight,
&${re}-slide-up-appear${re}-slide-up-appear-active${oe}-dropdown-placement-bottomLeft,
&${re}-slide-up-appear${re}-slide-up-appear-active${oe}-dropdown-placement-bottomRight`]:{animationName:Dr.fJ},[`&${re}-slide-up-leave${re}-slide-up-leave-active${oe}-dropdown-placement-topLeft,
&${re}-slide-up-leave${re}-slide-up-leave-active${oe}-dropdown-placement-topRight`]:{animationName:Dr.ly},[`&${re}-slide-up-leave${re}-slide-up-leave-active${oe}-dropdown-placement-bottomLeft,
&${re}-slide-up-leave${re}-slide-up-leave-active${oe}-dropdown-placement-bottomRight`]:{animationName:Dr.Uw},[`${oe}-panel > ${oe}-time-panel`]:{paddingTop:Hn},[`${oe}-ranges`]:{marginBottom:0,padding:`${Hn}px ${sa}px`,overflow:"hidden",lineHeight:`${ca-2*Ne-It/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${oe}-preset > ${re}-tag-blue`]:{color:Nn,background:Na,borderColor:na,cursor:"pointer"},[`${oe}-ok`]:{marginInlineStart:"auto"}},[`${oe}-range-wrapper`]:{display:"flex",position:"relative"},[`${oe}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:pe*1.5,transition:`left ${Pn} ease-out`},(0,wg.r)(kn,jn,ua,Sa,xa)),[`${oe}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Sa,borderRadius:Qn,boxShadow:La,transition:`margin ${Pn}`,[`${oe}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${oe}-presets`]:{display:"flex",flexDirection:"column",minWidth:Ta,maxWidth:uo,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:It,borderInlineEnd:`${Ne}px ${Oe} ${Wa}`,li:Object.assign(Object.assign({},ri.vS),{borderRadius:Xa,paddingInline:It,paddingBlock:(ft-Math.round(me*Ot))/2,cursor:"pointer",transition:`all ${Pn}`,"+ li":{marginTop:jt},"&:hover":{background:so}})}},[`${oe}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${oe}-panel`]:{borderWidth:`0 0 ${Ne}px`},"&:last-child":{[`${oe}-panel`]:{borderWidth:0}}},[`${oe}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${oe}-content,
table`]:{textAlign:"center"},"&-focused":{borderColor:ze}}}}),"&-dropdown-range":{padding:`${kn*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${oe}-separator`]:{transform:"rotate(180deg)"},[`${oe}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,Dr.oN)(ne,"slide-up"),(0,Dr.oN)(ne,"slide-down"),(0,Oi.Fm)(ne,"move-up"),(0,Oi.Fm)(ne,"move-down")]},Bg=ne=>{const{componentCls:oe,controlHeightLG:re,paddingXXS:ce,padding:me}=ne;return{pickerCellCls:`${oe}-cell`,pickerCellInnerCls:`${oe}-cell-inner`,pickerYearMonthCellWidth:re*1.5,pickerQuarterPanelContentHeight:re*1.4,pickerCellPaddingVertical:ce+ce/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:me+ce/2}},Dg=ne=>({cellHoverBg:ne.controlItemBgHover,cellActiveWithRangeBg:ne.controlItemBgActive,cellHoverWithRangeBg:new Ur.C(ne.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Ur.C(ne.colorPrimary).lighten(20).toHexString(),cellBgDisabled:ne.colorBgContainerDisabled,timeColumnWidth:ne.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:ne.controlHeightSM*1.5,cellHeight:ne.controlHeightSM,textHeight:ne.controlHeightLG,withoutTimeCellHeight:ne.controlHeightLG*1.65});var Mi=(0,Cg.Z)("DatePicker",ne=>{const oe=(0,ii.TS)((0,yr.e5)(ne),Bg(ne));return[Fg(oe),$g(oe),(0,Lg.c)(ne,{focusElCls:`${ne.componentCls}-focused`})]},ne=>Object.assign(Object.assign(Object.assign({},(0,yr.TM)(ne)),Dg(ne)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:ne.zIndexPopupBase+50}));function Ng(ne,oe,re){return re!==void 0?re:oe==="year"&&ne.lang.yearPlaceholder?ne.lang.yearPlaceholder:oe==="quarter"&&ne.lang.quarterPlaceholder?ne.lang.quarterPlaceholder:oe==="month"&&ne.lang.monthPlaceholder?ne.lang.monthPlaceholder:oe==="week"&&ne.lang.weekPlaceholder?ne.lang.weekPlaceholder:oe==="time"&&ne.timePickerLocale.placeholder?ne.timePickerLocale.placeholder:ne.lang.placeholder}function Og(ne,oe,re){return re!==void 0?re:oe==="year"&&ne.lang.yearPlaceholder?ne.lang.rangeYearPlaceholder:oe==="quarter"&&ne.lang.quarterPlaceholder?ne.lang.rangeQuarterPlaceholder:oe==="month"&&ne.lang.monthPlaceholder?ne.lang.rangeMonthPlaceholder:oe==="week"&&ne.lang.weekPlaceholder?ne.lang.rangeWeekPlaceholder:oe==="time"&&ne.timePickerLocale.placeholder?ne.timePickerLocale.rangePlaceholder:ne.lang.rangePlaceholder}function li(ne,oe){const re={adjustX:1,adjustY:1};switch(oe){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:re};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:re};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:re};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:re};default:return{points:ne==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:re}}}function Mg(ne){return ne?Array.isArray(ne)?ne:[ne]:[]}function _r(ne){const{format:oe,picker:re,showHour:ce,showMinute:me,showSecond:pe,use12Hours:he}=ne,Ne=Mg(oe)[0],Oe=Object.assign({},ne);return oe&&Array.isArray(oe)&&(Oe.format=Ne),Ne&&typeof Ne=="string"&&(!Ne.includes("s")&&pe===void 0&&(Oe.showSecond=!1),!Ne.includes("m")&&me===void 0&&(Oe.showMinute=!1),!Ne.includes("H")&&!Ne.includes("h")&&!Ne.includes("K")&&!Ne.includes("k")&&ce===void 0&&(Oe.showHour=!1),(Ne.includes("a")||Ne.includes("A"))&&he===void 0&&(Oe.use12Hours=!0)),re==="time"?Oe:(typeof Ne=="function"&&delete Oe.format,{showTime:Oe})}function Ii(ne,oe,re){if(ne===!1)return!1;const ce={clearIcon:oe!=null?oe:re};return typeof ne=="object"?Object.assign(Object.assign({},ce),ne):ce}var Ig=ge(3113);function Rg(ne){return te.createElement(Ig.ZP,Object.assign({size:"small",type:"primary"},ne))}var Ri={button:Rg},Tg=function(ne,oe){var re={};for(var ce in ne)Object.prototype.hasOwnProperty.call(ne,ce)&&oe.indexOf(ce)<0&&(re[ce]=ne[ce]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ce=Object.getOwnPropertySymbols(ne);me<ce.length;me++)oe.indexOf(ce[me])<0&&Object.prototype.propertyIsEnumerable.call(ne,ce[me])&&(re[ce[me]]=ne[ce[me]]);return re};function Gg(ne){return(0,te.forwardRef)((re,ce)=>{const{prefixCls:me,getPopupContainer:pe,className:he,placement:Ne,size:Oe,disabled:ze,bordered:xt=!0,placeholder:Ve,popupClassName:Ye,dropdownClassName:st,status:ut,clearIcon:De,allowClear:je,rootClassName:ft}=re,Ht=Tg(re,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),It=te.useRef(null),{getPrefixCls:jt,direction:Xt,getPopupContainer:Ut}=(0,te.useContext)(xi.E_),Ot=jt("picker",me),{compactSize:Nn,compactItemClassnames:Pn}=(0,Di.ri)(Ot,Xt),{format:On,showTime:Hn,picker:sa}=re,ca=jt(),[Na,na]=Mi(Ot),kn=Object.assign(Object.assign({},Hn?_r(Object.assign({format:On,picker:sa},Hn)):{}),sa==="time"?_r(Object.assign(Object.assign({format:On},re),{picker:sa})):{}),jn=(0,$i.Z)(xa=>{var Va;return(Va=Oe!=null?Oe:Nn)!==null&&Va!==void 0?Va:xa}),ua=te.useContext(Ei.Z),Sa=ze!=null?ze:ua,Qn=(0,te.useContext)(Fi.aM),{hasFeedback:La,status:Xa,feedbackIcon:Wa}=Qn,so=te.createElement(te.Fragment,null,sa==="time"?te.createElement(yt,null):te.createElement(Ae,null),La&&Wa);(0,te.useImperativeHandle)(ce,()=>({focus:()=>{var xa;return(xa=It.current)===null||xa===void 0?void 0:xa.focus()},blur:()=>{var xa;return(xa=It.current)===null||xa===void 0?void 0:xa.blur()}}));const[Ta]=(0,Bi.Z)("Calendar",Ni.Z),uo=Object.assign(Object.assign({},Ta),re.locale);return Na(te.createElement(bg,Object.assign({separator:te.createElement("span",{"aria-label":"to",className:`${Ot}-separator`},te.createElement(ht,null)),disabled:Sa,ref:It,dropdownAlign:li(Xt,Ne),placeholder:Og(uo,sa,Ve),suffixIcon:so,prevIcon:te.createElement("span",{className:`${Ot}-prev-icon`}),nextIcon:te.createElement("span",{className:`${Ot}-next-icon`}),superPrevIcon:te.createElement("span",{className:`${Ot}-super-prev-icon`}),superNextIcon:te.createElement("span",{className:`${Ot}-super-next-icon`}),transitionName:`${ca}-slide-up`},Ht,kn,{className:ye()({[`${Ot}-${jn}`]:jn,[`${Ot}-borderless`]:!xt},(0,Vr.Z)(Ot,(0,Vr.F)(Xa,ut),La),na,Pn,he,ft),locale:uo.lang,prefixCls:Ot,getPopupContainer:pe||Ut,generateConfig:ne,components:Ri,direction:Xt,dropdownClassName:ye()(na,Ye||st,ft),allowClear:Ii(je,De,te.createElement(St.Z,null))})))})}var zg=function(ne,oe){var re={};for(var ce in ne)Object.prototype.hasOwnProperty.call(ne,ce)&&oe.indexOf(ce)<0&&(re[ce]=ne[ce]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ce=Object.getOwnPropertySymbols(ne);me<ce.length;me++)oe.indexOf(ce[me])<0&&Object.prototype.propertyIsEnumerable.call(ne,ce[me])&&(re[ce[me]]=ne[ce[me]]);return re};function Ag(ne){function oe(Oe,ze){const xt=ze==="TimePicker"?"timePicker":"datePicker",Ve=(0,te.forwardRef)((Ye,st)=>{const{prefixCls:ut,getPopupContainer:De,style:je,className:ft,rootClassName:Ht,size:It,bordered:jt=!0,placement:Xt,placeholder:Ut,popupClassName:Ot,dropdownClassName:Nn,disabled:Pn,status:On,clearIcon:Hn,allowClear:sa}=Ye,ca=zg(Ye,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:Na,direction:na,getPopupContainer:kn,[xt]:jn}=(0,te.useContext)(xi.E_),ua=Na("picker",ut),{compactSize:Sa,compactItemClassnames:Qn}=(0,Di.ri)(ua,na),La=te.useRef(null),{format:Xa,showTime:Wa}=Ye,[so,Ta]=Mi(ua);(0,te.useImperativeHandle)(st,()=>({focus:()=>{var to;return(to=La.current)===null||to===void 0?void 0:to.focus()},blur:()=>{var to;return(to=La.current)===null||to===void 0?void 0:to.blur()}}));const uo={showToday:!0};let xa={};Oe&&(xa.picker=Oe);const Va=Oe||Ye.picker;xa=Object.assign(Object.assign(Object.assign({},xa),Wa?_r(Object.assign({format:Xa,picker:Va},Wa)):{}),Va==="time"?_r(Object.assign(Object.assign({format:Xa},Ye),{picker:Va})):{});const qa=Na(),yo=(0,$i.Z)(to=>{var qo;return(qo=It!=null?It:Sa)!==null&&qo!==void 0?qo:to}),eo=te.useContext(Ei.Z),Fo=Pn!=null?Pn:eo,zo=(0,te.useContext)(Fi.aM),{hasFeedback:In,status:Ua,feedbackIcon:ka}=zo,co=te.createElement(te.Fragment,null,Va==="time"?te.createElement(yt,null):te.createElement(Ae,null),In&&ka),[ho]=(0,Bi.Z)("DatePicker",Ni.Z),Ga=Object.assign(Object.assign({},ho),Ye.locale);return so(te.createElement(yg,Object.assign({ref:La,placeholder:Ng(Ga,Va,Ut),suffixIcon:co,dropdownAlign:li(na,Xt),prevIcon:te.createElement("span",{className:`${ua}-prev-icon`}),nextIcon:te.createElement("span",{className:`${ua}-next-icon`}),superPrevIcon:te.createElement("span",{className:`${ua}-super-prev-icon`}),superNextIcon:te.createElement("span",{className:`${ua}-super-next-icon`}),transitionName:`${qa}-slide-up`},uo,ca,xa,{locale:Ga.lang,className:ye()({[`${ua}-${yo}`]:yo,[`${ua}-borderless`]:!jt},(0,Vr.Z)(ua,(0,Vr.F)(Ua,On),In),Ta,Qn,jn==null?void 0:jn.className,ft,Ht),style:Object.assign(Object.assign({},jn==null?void 0:jn.style),je),prefixCls:ua,getPopupContainer:De||kn,generateConfig:ne,components:Ri,direction:na,disabled:Fo,dropdownClassName:ye()(Ta,Ht,Ot||Nn),allowClear:Ii(sa,Hn,te.createElement(St.Z,null))})))});return ze&&(Ve.displayName=ze),Ve}const re=oe(),ce=oe("week","WeekPicker"),me=oe("month","MonthPicker"),pe=oe("year","YearPicker"),he=oe("time","TimePicker"),Ne=oe("quarter","QuarterPicker");return{DatePicker:re,WeekPicker:ce,MonthPicker:me,YearPicker:pe,TimePicker:he,QuarterPicker:Ne}}const Nl=null;function kg(ne){const{DatePicker:oe,WeekPicker:re,MonthPicker:ce,YearPicker:me,TimePicker:pe,QuarterPicker:he}=Ag(ne),Ne=Gg(ne),Oe=oe;return Oe.WeekPicker=re,Oe.MonthPicker=ce,Oe.YearPicker=me,Oe.RangePicker=Ne,Oe.TimePicker=pe,Oe.QuarterPicker=he,Oe}var Ti=kg;const Nr=Ti(z);function Gi(ne){const oe=li(ne.direction,ne.placement);return oe.overflow.adjustY=!1,oe.overflow.adjustX=!1,Object.assign(Object.assign({},ne),{dropdownAlign:oe})}const Zg=(0,ee.Z)(Nr,"picker",null,Gi);Nr._InternalPanelDoNotUseOrYouWillBeFired=Zg;const Hg=(0,ee.Z)(Nr.RangePicker,"picker",null,Gi);Nr._InternalRangePanelDoNotUseOrYouWillBeFired=Hg,Nr.generatePicker=Ti;var jg=Nr},91857:function(ke,Ft,ge){"use strict";var le=ge(59301),be=ge(38819),ct=ge(92310),Ue=ge.n(ct),Pe=ge(31561),Be=ge(70425),fe=ge(18929),nt=ge(2738),Xe=ge(79676),Qe=ge(53487),at=ge(92343),et=ge(36355),qe=ge(20834),ie=ge(40875),a=ge(88088),b=ge(47211);const x=null,y=ae=>{const{menu:te,arrow:se,prefixCls:de,children:we,trigger:Se,disabled:Re,dropdownRender:Ae,getPopupContainer:At,overlayClassName:un,rootClassName:xn,open:Ie,onOpenChange:yt,visible:St,onVisibleChange:gt,mouseEnterDelay:Lt=.15,mouseLeaveDelay:rt=.1,autoAdjustOverflow:Et=!0,placement:ht="",overlay:pn,transitionName:ye}=ae,{getPopupContainer:Ge,getPrefixCls:dt,direction:Tt}=le.useContext(et.E_),it=le.useMemo(()=>{const zt=dt();return ye!==void 0?ye:ht.includes("top")?`${zt}-slide-down`:`${zt}-slide-up`},[dt,ht,ye]),pt=le.useMemo(()=>ht?ht.includes("Center")?ht.slice(0,ht.indexOf("Center")):ht:Tt==="rtl"?"bottomRight":"bottomLeft",[ht,Tt]),ue=dt("dropdown",de),[We,bt]=(0,b.Z)(ue),[,fn]=(0,a.Z)(),ln=le.Children.only(we),_e=(0,at.Tm)(ln,{className:Ue()(`${ue}-trigger`,{[`${ue}-rtl`]:Tt==="rtl"},ln.props.className),disabled:Re}),Ee=Re?[]:Se;let Le;Ee&&Ee.includes("contextMenu")&&(Le=!0);const[Ke,Je]=(0,fe.Z)(!1,{value:Ie!=null?Ie:St}),$t=(0,Be.useEvent)(zt=>{yt==null||yt(zt),gt==null||gt(zt),Je(zt)}),Jt=Ue()(un,xn,bt,{[`${ue}-rtl`]:Tt==="rtl"}),Gt=(0,Xe.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Et,offset:fn.marginXXS,arrowWidth:se?fn.sizePopupArrow:0,borderRadius:fn.borderRadius}),on=le.useCallback(()=>{Je(!1)},[]),Nt=()=>{let zt;return te!=null&&te.items?zt=le.createElement(qe.default,Object.assign({},te)):typeof pn=="function"?zt=pn():zt=pn,Ae&&(zt=Ae(zt)),zt=le.Children.only(typeof zt=="string"?le.createElement("span",null,zt):zt),le.createElement(ie.J,{prefixCls:`${ue}-menu`,expandIcon:le.createElement("span",{className:`${ue}-menu-submenu-arrow`},le.createElement(be.Z,{className:`${ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:on,validator:Rt=>{let{mode:rn}=Rt}},zt)};return We(le.createElement(Pe.Z,Object.assign({alignPoint:Le},(0,nt.Z)(ae,["rootClassName"]),{mouseEnterDelay:Lt,mouseLeaveDelay:rt,visible:Ke,builtinPlacements:Gt,arrow:!!se,overlayClassName:Jt,prefixCls:ue,getPopupContainer:At||Ge,transitionName:it,trigger:Ee,overlay:Nt,placement:pt,onVisibleChange:$t}),_e))};function E(ae){return Object.assign(Object.assign({},ae),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Qe.Z)(y,"dropdown",ae=>ae,E),ee=ae=>le.createElement(z,Object.assign({},ae),le.createElement("span",null));y._InternalPanelDoNotUseOrYouWillBeFired=ee,Ft.Z=y},47211:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return at}});var le=ge(17313),be=ge(13826),ct=ge(92899),Ue=ge(29878),Pe=ge(19447),Be=ge(83116),fe=ge(37613),Xe=et=>{const{componentCls:qe,menuCls:ie,colorError:a,colorTextLightSolid:b}=et,x=`${ie}-item`;return{[`${qe}, ${qe}-menu-submenu`]:{[`${ie} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:b,backgroundColor:a}}}}}};const Qe=et=>{const{componentCls:qe,menuCls:ie,zIndexPopup:a,dropdownArrowDistance:b,sizePopupArrow:x,antCls:y,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ae,dropdownEdgeChildPadding:te,colorTextDisabled:se,fontSizeIcon:de,controlPaddingHorizontal:we,colorBgElevated:Se}=et;return[{[qe]:Object.assign(Object.assign({},(0,le.Wf)(et)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-b+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${y}-btn`]:{[`& > ${E}-down, & > ${y}-btn-icon > ${E}-down`]:{fontSize:de}},[`${qe}-wrap`]:{position:"relative",[`${y}-btn > ${E}-down`]:{fontSize:de},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${qe}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${y}-slide-down-enter${y}-slide-down-enter-active${qe}-placement-bottomLeft,
&${y}-slide-down-appear${y}-slide-down-appear-active${qe}-placement-bottomLeft,
&${y}-slide-down-enter${y}-slide-down-enter-active${qe}-placement-bottom,
&${y}-slide-down-appear${y}-slide-down-appear-active${qe}-placement-bottom,
&${y}-slide-down-enter${y}-slide-down-enter-active${qe}-placement-bottomRight,
&${y}-slide-down-appear${y}-slide-down-appear-active${qe}-placement-bottomRight`]:{animationName:be.fJ},[`&${y}-slide-up-enter${y}-slide-up-enter-active${qe}-placement-topLeft,
&${y}-slide-up-appear${y}-slide-up-appear-active${qe}-placement-topLeft,
&${y}-slide-up-enter${y}-slide-up-enter-active${qe}-placement-top,
&${y}-slide-up-appear${y}-slide-up-appear-active${qe}-placement-top,
&${y}-slide-up-enter${y}-slide-up-enter-active${qe}-placement-topRight,
&${y}-slide-up-appear${y}-slide-up-appear-active${qe}-placement-topRight`]:{animationName:be.Qt},[`&${y}-slide-down-leave${y}-slide-down-leave-active${qe}-placement-bottomLeft,
&${y}-slide-down-leave${y}-slide-down-leave-active${qe}-placement-bottom,
&${y}-slide-down-leave${y}-slide-down-leave-active${qe}-placement-bottomRight`]:{animationName:be.Uw},[`&${y}-slide-up-leave${y}-slide-up-leave-active${qe}-placement-topLeft,
&${y}-slide-up-leave${y}-slide-up-leave-active${qe}-placement-top,
&${y}-slide-up-leave${y}-slide-up-leave-active${qe}-placement-topRight`]:{animationName:be.ly}})},(0,Pe.ZP)(et,{colorBg:Se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${qe} ${ie}`]:{position:"relative",margin:0},[`${ie}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${qe}, ${qe}-menu-submenu`]:{[ie]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:Se,backgroundClip:"padding-box",borderRadius:et.borderRadiusLG,outline:"none",boxShadow:et.boxShadowSecondary},(0,le.Qy)(et)),{[`${ie}-item-group-title`]:{padding:`${ee}px ${we}px`,color:et.colorTextDescription,transition:`all ${z}`},[`${ie}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ie}-item-icon`]:{minWidth:ae,marginInlineEnd:et.marginXS,fontSize:et.fontSizeSM},[`${ie}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ie}-item, ${ie}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${we}px`,color:et.colorText,fontWeight:"normal",fontSize:ae,lineHeight:et.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:et.borderRadiusSM,"&:hover, &-active":{backgroundColor:et.controlItemBgHover}},(0,le.Qy)(et)),{"&-selected":{color:et.colorPrimary,backgroundColor:et.controlItemBgActive,"&:hover, &-active":{backgroundColor:et.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:Se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${et.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:et.colorSplit},[`${qe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:et.paddingXS,[`${qe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:et.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ie}-item-group-list`]:{margin:`0 ${et.marginXS}px`,padding:0,listStyle:"none"},[`${ie}-submenu-title`]:{paddingInlineEnd:we+et.fontSizeSM},[`${ie}-submenu-vertical`]:{position:"relative"},[`${ie}-submenu${ie}-submenu-disabled ${qe}-menu-submenu-title`]:{[`&, ${qe}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:Se,cursor:"not-allowed"}},[`${ie}-submenu-selected ${qe}-menu-submenu-title`]:{color:et.colorPrimary}})}},[(0,be.oN)(et,"slide-up"),(0,be.oN)(et,"slide-down"),(0,ct.Fm)(et,"move-up"),(0,ct.Fm)(et,"move-down"),(0,Ue._y)(et,"zoom-big")]]};var at=(0,Be.Z)("Dropdown",(et,qe)=>{let{rootPrefixCls:ie}=qe;const{marginXXS:a,sizePopupArrow:b,controlHeight:x,fontSize:y,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ae}=et,te=(x-y*E)/2,{dropdownArrowOffset:se}=(0,Pe.fS)({contentRadius:ae}),de=(0,fe.TS)(et,{menuCls:`${ee}-menu`,rootPrefixCls:ie,dropdownArrowDistance:b/2+a,dropdownArrowOffset:se,dropdownPaddingVertical:te,dropdownEdgeChildPadding:z});return[Qe(de),Xe(de)]},et=>({zIndexPopup:et.zIndexPopupBase+50}))},45818:function(ke,Ft,ge){"use strict";ge.d(Ft,{D:function(){return z},Z:function(){return te}});var le=ge(92413),be=ge(59301),ct={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ue=ct,Pe=ge(7657),Be=function(de,we){return be.createElement(Pe.Z,(0,le.Z)({},de,{ref:we,icon:Ue}))},fe=be.forwardRef(Be),nt=fe,Xe=ge(33853),Qe=ge(38819),at=ge(92310),et=ge.n(at),qe=ge(2738),a=se=>!isNaN(parseFloat(se))&&isFinite(se),b=ge(36355),x=ge(84966),y=function(se,de){var we={};for(var Se in se)Object.prototype.hasOwnProperty.call(se,Se)&&de.indexOf(Se)<0&&(we[Se]=se[Se]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Se=Object.getOwnPropertySymbols(se);Re<Se.length;Re++)de.indexOf(Se[Re])<0&&Object.prototype.propertyIsEnumerable.call(se,Se[Re])&&(we[Se[Re]]=se[Se[Re]]);return we};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=be.createContext({}),ee=(()=>{let se=0;return function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return se+=1,`${de}${se}`}})();var te=be.forwardRef((se,de)=>{const{prefixCls:we,className:Se,trigger:Re,children:Ae,defaultCollapsed:At=!1,theme:un="dark",style:xn={},collapsible:Ie=!1,reverseArrow:yt=!1,width:St=200,collapsedWidth:gt=80,zeroWidthTriggerStyle:Lt,breakpoint:rt,onCollapse:Et,onBreakpoint:ht}=se,pn=y(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,be.useContext)(x.Gs),[Ge,dt]=(0,be.useState)("collapsed"in se?se.collapsed:At),[Tt,it]=(0,be.useState)(!1);(0,be.useEffect)(()=>{"collapsed"in se&&dt(se.collapsed)},[se.collapsed]);const pt=(_e,Ee)=>{"collapsed"in se||dt(_e),Et==null||Et(_e,Ee)},ue=(0,be.useRef)();ue.current=_e=>{it(_e.matches),ht==null||ht(_e.matches),Ge!==_e.matches&&pt(_e.matches,"responsive")},(0,be.useEffect)(()=>{function _e(Le){return ue.current(Le)}let Ee;if(typeof window!="undefined"){const{matchMedia:Le}=window;if(Le&&rt&&rt in E){Ee=Le(`(max-width: ${E[rt]})`);try{Ee.addEventListener("change",_e)}catch(Ke){Ee.addListener(_e)}_e(Ee)}}return()=>{try{Ee==null||Ee.removeEventListener("change",_e)}catch(Le){Ee==null||Ee.removeListener(_e)}}},[rt]),(0,be.useEffect)(()=>{const _e=ee("ant-sider-");return ye.addSider(_e),()=>ye.removeSider(_e)},[]);const We=()=>{pt(!Ge,"clickTrigger")},{getPrefixCls:bt}=(0,be.useContext)(b.E_),fn=()=>{const _e=bt("layout-sider",we),Ee=(0,qe.Z)(pn,["collapsed"]),Le=Ge?gt:St,Ke=a(Le)?`${Le}px`:String(Le),Je=parseFloat(String(gt||0))===0?be.createElement("span",{onClick:We,className:et()(`${_e}-zero-width-trigger`,`${_e}-zero-width-trigger-${yt?"right":"left"}`),style:Lt},Re||be.createElement(nt,null)):null,Gt={expanded:yt?be.createElement(Qe.Z,null):be.createElement(Xe.Z,null),collapsed:yt?be.createElement(Xe.Z,null):be.createElement(Qe.Z,null)}[Ge?"collapsed":"expanded"],on=Re!==null?Je||be.createElement("div",{className:`${_e}-trigger`,onClick:We,style:{width:Ke}},Re||Gt):null,Nt=Object.assign(Object.assign({},xn),{flex:`0 0 ${Ke}`,maxWidth:Ke,minWidth:Ke,width:Ke}),zt=et()(_e,`${_e}-${un}`,{[`${_e}-collapsed`]:!!Ge,[`${_e}-has-trigger`]:Ie&&Re!==null&&!Je,[`${_e}-below`]:!!Tt,[`${_e}-zero-width`]:parseFloat(Ke)===0},Se);return be.createElement("aside",Object.assign({className:zt},Ee,{style:Nt,ref:de}),be.createElement("div",{className:`${_e}-children`},Ae),Ie||Tt&&Je?on:null)},ln=be.useMemo(()=>({siderCollapsed:Ge}),[Ge]);return be.createElement(z.Provider,{value:ln},fn())})},84966:function(ke,Ft,ge){"use strict";ge.d(Ft,{VY:function(){return z},$_:function(){return E},h4:function(){return y},Gs:function(){return qe},ZP:function(){return ee}});var le=ge(26407),be=ge(92310),ct=ge.n(be),Ue=ge(2738),Pe=ge(59301),Be=ge(36355),fe=ge(83116),Xe=ae=>{const{componentCls:te,bodyBg:se,lightSiderBg:de,lightTriggerBg:we,lightTriggerColor:Se}=ae;return{[`${te}-sider-light`]:{background:de,[`${te}-sider-trigger`]:{color:Se,background:we},[`${te}-sider-zero-width-trigger`]:{color:Se,background:we,border:`1px solid ${se}`,borderInlineStart:0}}}};const Qe=ae=>{const{antCls:te,componentCls:se,colorText:de,triggerColor:we,footerBg:Se,triggerBg:Re,headerHeight:Ae,headerPadding:At,headerColor:un,footerPadding:xn,triggerHeight:Ie,zeroTriggerHeight:yt,zeroTriggerWidth:St,motionDurationMid:gt,motionDurationSlow:Lt,fontSize:rt,borderRadius:Et,bodyBg:ht,headerBg:pn,siderBg:ye}=ae;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ht,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${gt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${te}-menu${te}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ie},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ie,color:we,lineHeight:`${Ie}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${gt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-St,zIndex:1,width:St,height:yt,color:we,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:Et,borderEndEndRadius:Et,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Lt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Lt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-St,borderStartStartRadius:Et,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Et}}}}},Xe(ae)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:Ae,padding:At,color:un,lineHeight:`${Ae}px`,background:pn,[`${te}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:xn,color:de,fontSize:rt,background:Se},[`${se}-content`]:{flex:"auto",minHeight:0}}};var at=(0,fe.Z)("Layout",ae=>[Qe(ae)],ae=>{const{colorBgLayout:te,controlHeight:se,controlHeightLG:de,colorText:we,controlHeightSM:Se,marginXXS:Re,colorTextLightSolid:Ae,colorBgContainer:At}=ae,un=de*1.25;return{colorBgHeader:"#001529",colorBgBody:te,colorBgTrigger:"#002140",bodyBg:te,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${un}px`,headerColor:we,footerPadding:`${Se}px ${un}px`,footerBg:te,siderBg:"#001529",triggerHeight:de+Re*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:At,lightTriggerBg:At,lightTriggerColor:we}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),et=function(ae,te){var se={};for(var de in ae)Object.prototype.hasOwnProperty.call(ae,de)&&te.indexOf(de)<0&&(se[de]=ae[de]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,de=Object.getOwnPropertySymbols(ae);we<de.length;we++)te.indexOf(de[we])<0&&Object.prototype.propertyIsEnumerable.call(ae,de[we])&&(se[de[we]]=ae[de[we]]);return se};const qe=Pe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ie(ae){let{suffixCls:te,tagName:se,displayName:de}=ae;return we=>Pe.forwardRef((Re,Ae)=>Pe.createElement(we,Object.assign({ref:Ae,suffixCls:te,tagName:se},Re)))}const a=Pe.forwardRef((ae,te)=>{const{prefixCls:se,suffixCls:de,className:we,tagName:Se}=ae,Re=et(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=Pe.useContext(Be.E_),At=Ae("layout",se),[un,xn]=at(At),Ie=de?`${At}-${de}`:At;return un(Pe.createElement(Se,Object.assign({className:ct()(se||Ie,we,xn),ref:te},Re)))}),b=Pe.forwardRef((ae,te)=>{const{direction:se}=Pe.useContext(Be.E_),[de,we]=Pe.useState([]),{prefixCls:Se,className:Re,rootClassName:Ae,children:At,hasSider:un,tagName:xn,style:Ie}=ae,yt=et(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),St=(0,Ue.Z)(yt,["suffixCls"]),{getPrefixCls:gt,layout:Lt}=Pe.useContext(Be.E_),rt=gt("layout",Se),[Et,ht]=at(rt),pn=ct()(rt,{[`${rt}-has-sider`]:typeof un=="boolean"?un:de.length>0,[`${rt}-rtl`]:se==="rtl"},Lt==null?void 0:Lt.className,Re,Ae,ht),ye=Pe.useMemo(()=>({siderHook:{addSider:Ge=>{we(dt=>[].concat((0,le.Z)(dt),[Ge]))},removeSider:Ge=>{we(dt=>dt.filter(Tt=>Tt!==Ge))}}}),[]);return Et(Pe.createElement(qe.Provider,{value:ye},Pe.createElement(xn,Object.assign({ref:te,className:pn,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Ie)},St),At)))}),x=ie({tagName:"div",displayName:"Layout"})(b),y=ie({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ie({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ie({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(ke,Ft,ge){"use strict";ge.d(Ft,{J:function(){return Be}});var le=ge(59301),be=ge(33234),ct=ge(70425),Ue=function(fe,nt){var Xe={};for(var Qe in fe)Object.prototype.hasOwnProperty.call(fe,Qe)&&nt.indexOf(Qe)<0&&(Xe[Qe]=fe[Qe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Qe=Object.getOwnPropertySymbols(fe);at<Qe.length;at++)nt.indexOf(Qe[at])<0&&Object.prototype.propertyIsEnumerable.call(fe,Qe[at])&&(Xe[Qe[at]]=fe[Qe[at]]);return Xe};const Pe=le.createContext(null),Be=le.forwardRef((fe,nt)=>{const{children:Xe}=fe,Qe=Ue(fe,["children"]),at=le.useContext(Pe),et=le.useMemo(()=>Object.assign(Object.assign({},at),Qe),[at,Qe.prefixCls,Qe.mode,Qe.selectable]);return le.createElement(Pe.Provider,{value:et},le.createElement(be.BR,null,(0,ct.supportNodeRef)(Xe)?le.cloneElement(Xe,{ref:nt}):Xe))});Ft.Z=Pe},20834:function(ke,Ft,ge){"use strict";ge.d(Ft,{default:function(){return ln}});var le=ge(15285),be=ge(59301),ct=ge(45818),Ue=ge(92310),Pe=ge.n(Ue),Be=ge(36355),fe=function(_e,Ee){var Le={};for(var Ke in _e)Object.prototype.hasOwnProperty.call(_e,Ke)&&Ee.indexOf(Ke)<0&&(Le[Ke]=_e[Ke]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ke=Object.getOwnPropertySymbols(_e);Je<Ke.length;Je++)Ee.indexOf(Ke[Je])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ke[Je])&&(Le[Ke[Je]]=_e[Ke[Je]]);return Le},Xe=_e=>{const{prefixCls:Ee,className:Le,dashed:Ke}=_e,Je=fe(_e,["prefixCls","className","dashed"]),{getPrefixCls:$t}=be.useContext(Be.E_),Jt=$t("menu",Ee),Gt=Pe()({[`${Jt}-item-divider-dashed`]:!!Ke},Le);return be.createElement(le.iz,Object.assign({className:Gt},Je))},Qe=ge(11592),at=ge(2738),et=ge(6848),qe=ge(92343),a=(0,be.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=_e=>{var Ee;const{className:Le,children:Ke,icon:Je,title:$t,danger:Jt}=_e,{prefixCls:Gt,firstLevel:on,direction:Nt,disableMenuItemTitleTooltip:zt,inlineCollapsed:Rt}=be.useContext(a),rn=Me=>{const lt=be.createElement("span",{className:`${Gt}-title-content`},Ke);return(!Je||(0,qe.l$)(Ke)&&Ke.type==="span")&&Ke&&Me&&on&&typeof Ke=="string"?be.createElement("div",{className:`${Gt}-inline-collapsed-noicon`},Ke.charAt(0)):lt},{siderCollapsed:cn}=be.useContext(ct.D);let Tn=$t;typeof $t=="undefined"?Tn=on?Ke:"":$t===!1&&(Tn="");const Dn={title:Tn};!cn&&!Rt&&(Dn.title=null,Dn.open=!1);const wn=(0,Qe.Z)(Ke).length;let Ce=be.createElement(le.ck,Object.assign({},(0,at.Z)(_e,["title","icon","danger"]),{className:Pe()({[`${Gt}-item-danger`]:Jt,[`${Gt}-item-only-child`]:(Je?wn+1:wn)===1},Le),title:typeof $t=="string"?$t:void 0}),(0,qe.Tm)(Je,{className:Pe()((0,qe.l$)(Je)?(Ee=Je.props)===null||Ee===void 0?void 0:Ee.className:"",`${Gt}-item-icon`)}),rn(Rt));return zt||(Ce=be.createElement(et.Z,Object.assign({},Dn,{placement:Nt==="rtl"?"left":"right",overlayClassName:`${Gt}-inline-collapsed-tooltip`}),Ce)),Ce},E=_e=>{var Ee;const{popupClassName:Le,icon:Ke,title:Je,theme:$t}=_e,Jt=be.useContext(a),{prefixCls:Gt,inlineCollapsed:on,theme:Nt}=Jt,zt=(0,le.Xl)();let Rt;if(!Ke)Rt=on&&!zt.length&&Je&&typeof Je=="string"?be.createElement("div",{className:`${Gt}-inline-collapsed-noicon`},Je.charAt(0)):be.createElement("span",{className:`${Gt}-title-content`},Je);else{const cn=(0,qe.l$)(Je)&&Je.type==="span";Rt=be.createElement(be.Fragment,null,(0,qe.Tm)(Ke,{className:Pe()((0,qe.l$)(Ke)?(Ee=Ke.props)===null||Ee===void 0?void 0:Ee.className:"",`${Gt}-item-icon`)}),cn?Je:be.createElement("span",{className:`${Gt}-title-content`},Je))}const rn=be.useMemo(()=>Object.assign(Object.assign({},Jt),{firstLevel:!1}),[Jt]);return be.createElement(a.Provider,{value:rn},be.createElement(le.Wd,Object.assign({},(0,at.Z)(_e,["icon"]),{title:Rt,popupClassName:Pe()(Gt,Le,`${Gt}-${$t||Nt}`)})))},z=ge(18785),ee=ge(70425),ae=ge(62892),te=ge(40875),se=function(_e,Ee){var Le={};for(var Ke in _e)Object.prototype.hasOwnProperty.call(_e,Ke)&&Ee.indexOf(Ke)<0&&(Le[Ke]=_e[Ke]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ke=Object.getOwnPropertySymbols(_e);Je<Ke.length;Je++)Ee.indexOf(Ke[Je])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ke[Je])&&(Le[Ke[Je]]=_e[Ke[Je]]);return Le};function de(_e){return(_e||[]).map((Ee,Le)=>{if(Ee&&typeof Ee=="object"){const Ke=Ee,{label:Je,children:$t,key:Jt,type:Gt}=Ke,on=se(Ke,["label","children","key","type"]),Nt=Jt!=null?Jt:`tmp-${Le}`;return $t||Gt==="group"?Gt==="group"?be.createElement(le.BW,Object.assign({key:Nt},on,{title:Je}),de($t)):be.createElement(E,Object.assign({key:Nt},on,{title:Je}),de($t)):Gt==="divider"?be.createElement(Xe,Object.assign({key:Nt},on)):be.createElement(x,Object.assign({key:Nt},on),Je)}return null}).filter(Ee=>Ee)}function we(_e){return be.useMemo(()=>_e&&de(_e),[_e])}var Se=ge(64993),Re=ge(17313),Ae=ge(8378),At=ge(13826),un=ge(29878),xn=ge(83116),Ie=ge(37613),St=_e=>{const{componentCls:Ee,motionDurationSlow:Le,horizontalLineHeight:Ke,colorSplit:Je,lineWidth:$t,lineType:Jt,itemPaddingInline:Gt}=_e;return{[`${Ee}-horizontal`]:{lineHeight:Ke,border:0,borderBottom:`${$t}px ${Jt} ${Je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Gt},[`> ${Ee}-item:hover,
> ${Ee}-item-active,
> ${Ee}-submenu ${Ee}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ee}-item, ${Ee}-submenu-title`]:{transition:[`border-color ${Le}`,`background ${Le}`].join(",")},[`${Ee}-submenu-arrow`]:{display:"none"}}}},Lt=_e=>{let{componentCls:Ee,menuArrowOffset:Le}=_e;return{[`${Ee}-rtl`]:{direction:"rtl"},[`${Ee}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ee}-rtl${Ee}-vertical,
${Ee}-submenu-rtl ${Ee}-vertical`]:{[`${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Le})`},"&::after":{transform:`rotate(45deg) translateY(${Le})`}}}}};const rt=_e=>Object.assign({},(0,Re.oN)(_e));var ht=(_e,Ee)=>{const{componentCls:Le,itemColor:Ke,itemSelectedColor:Je,groupTitleColor:$t,itemBg:Jt,subMenuItemBg:Gt,itemSelectedBg:on,activeBarHeight:Nt,activeBarWidth:zt,activeBarBorderWidth:Rt,motionDurationSlow:rn,motionEaseInOut:cn,motionEaseOut:Tn,itemPaddingInline:Dn,motionDurationMid:wn,itemHoverColor:Ce,lineType:Me,colorSplit:lt,itemDisabledColor:Bt,dangerItemColor:Zt,dangerItemHoverColor:dn,dangerItemSelectedColor:Mt,dangerItemActiveBg:en,dangerItemSelectedBg:mn,itemHoverBg:Mn,itemActiveBg:Ln,menuSubMenuBg:Wn,horizontalItemSelectedColor:oa,horizontalItemSelectedBg:qn,horizontalItemBorderRadius:Pa,horizontalItemHoverBg:Yn,popupBg:Gn}=_e;return{[`${Le}-${Ee}, ${Le}-${Ee} > ${Le}`]:{color:Ke,background:Jt,[`&${Le}-root:focus-visible`]:Object.assign({},rt(_e)),[`${Le}-item-group-title`]:{color:$t},[`${Le}-submenu-selected`]:{[`> ${Le}-submenu-title`]:{color:Je}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{color:`${Bt} !important`},[`${Le}-item:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{[`&:hover, > ${Le}-submenu-title:hover`]:{color:Ce}},[`&:not(${Le}-horizontal)`]:{[`${Le}-item:not(${Le}-item-selected)`]:{"&:hover":{backgroundColor:Mn},"&:active":{backgroundColor:Ln}},[`${Le}-submenu-title`]:{"&:hover":{backgroundColor:Mn},"&:active":{backgroundColor:Ln}}},[`${Le}-item-danger`]:{color:Zt,[`&${Le}-item:hover`]:{[`&:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{color:dn}},[`&${Le}-item:active`]:{background:en}},[`${Le}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Le}-item-selected`]:{color:Je,[`&${Le}-item-danger`]:{color:Mt},"a, a:hover":{color:"inherit"}},[`& ${Le}-item-selected`]:{backgroundColor:on,[`&${Le}-item-danger`]:{backgroundColor:mn}},[`${Le}-item, ${Le}-submenu-title`]:{[`&:not(${Le}-item-disabled):focus-visible`]:Object.assign({},rt(_e))},[`&${Le}-submenu > ${Le}`]:{backgroundColor:Wn},[`&${Le}-popup > ${Le}`]:{backgroundColor:Gn},[`&${Le}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${Le}-item, > ${Le}-submenu`]:{top:Rt,marginTop:-Rt,marginBottom:0,borderRadius:Pa,"&::after":{position:"absolute",insetInline:Dn,bottom:0,borderBottom:`${Nt}px solid transparent`,transition:`border-color ${rn} ${cn}`,content:'""'},"&:hover, &-active, &-open":{background:Yn,"&::after":{borderBottomWidth:Nt,borderBottomColor:oa}},"&-selected":{color:oa,backgroundColor:qn,"&:hover":{backgroundColor:qn},"&::after":{borderBottomWidth:Nt,borderBottomColor:oa}}}}),[`&${Le}-root`]:{[`&${Le}-inline, &${Le}-vertical`]:{borderInlineEnd:`${Rt}px ${Me} ${lt}`}},[`&${Le}-inline`]:{[`${Le}-sub${Le}-inline`]:{background:Gt},[`${Le}-item, ${Le}-submenu-title`]:Rt&&zt?{width:`calc(100% + ${Rt}px)`}:{},[`${Le}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${zt}px solid ${Je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${wn} ${Tn}`,`opacity ${wn} ${Tn}`].join(","),content:'""'},[`&${Le}-item-danger`]:{"&::after":{borderInlineEndColor:Mt}}},[`${Le}-selected, ${Le}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${wn} ${cn}`,`opacity ${wn} ${cn}`].join(",")}}}}}};const pn=_e=>{const{componentCls:Ee,itemHeight:Le,itemMarginInline:Ke,padding:Je,menuArrowSize:$t,marginXS:Jt,itemMarginBlock:Gt}=_e,on=Je+$t+Jt;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:Le,lineHeight:`${Le}px`,paddingInline:Je,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ke,marginBlock:Gt,width:`calc(100% - ${Ke*2}px)`},[`> ${Ee}-item,
> ${Ee}-submenu > ${Ee}-submenu-title`]:{height:Le,lineHeight:`${Le}px`},[`${Ee}-item-group-list ${Ee}-submenu-title,
${Ee}-submenu-title`]:{paddingInlineEnd:on}}};var Ge=_e=>{const{componentCls:Ee,iconCls:Le,itemHeight:Ke,colorTextLightSolid:Je,dropdownWidth:$t,controlHeightLG:Jt,motionDurationMid:Gt,motionEaseOut:on,paddingXL:Nt,itemMarginInline:zt,fontSizeLG:Rt,motionDurationSlow:rn,paddingXS:cn,boxShadowSecondary:Tn,collapsedWidth:Dn,collapsedIconSize:wn}=_e,Ce={height:Ke,lineHeight:`${Ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},pn(_e))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},pn(_e)),{boxShadow:Tn})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:$t,maxHeight:`calc(100vh - ${Jt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ee}-inline`]:{width:"100%",[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${rn}`,`background ${rn}`,`padding ${Gt} ${on}`].join(","),[`> ${Ee}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ee}-sub${Ee}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ee}-submenu > ${Ee}-submenu-title`]:Ce,[`& ${Ee}-item-group-title`]:{paddingInlineStart:Nt}},[`${Ee}-item`]:Ce}},{[`${Ee}-inline-collapsed`]:{width:Dn,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:Rt,textAlign:"center"}}},[`> ${Ee}-item,
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-item,
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-submenu > ${Ee}-submenu-title,
> ${Ee}-submenu > ${Ee}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Rt/2}px - ${zt}px)`,textOverflow:"clip",[`
${Ee}-submenu-arrow,
${Ee}-submenu-expand-icon
`]:{opacity:0},[`${Ee}-item-icon, ${Le}`]:{margin:0,fontSize:wn,lineHeight:`${Ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ee}-item-icon, ${Le}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ee}-item-icon, ${Le}`]:{display:"none"},"a, a:hover":{color:Je}},[`${Ee}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:cn})}}]};const dt=_e=>{const{componentCls:Ee,motionDurationSlow:Le,motionDurationMid:Ke,motionEaseInOut:Je,motionEaseOut:$t,iconCls:Jt,iconSize:Gt,iconMarginInlineEnd:on}=_e;return{[`${Ee}-item, ${Ee}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Le}`,`background ${Le}`,`padding ${Le} ${Je}`].join(","),[`${Ee}-item-icon, ${Jt}`]:{minWidth:Gt,fontSize:Gt,transition:[`font-size ${Ke} ${$t}`,`margin ${Le} ${Je}`,`color ${Le}`].join(","),"+ span":{marginInlineStart:on,opacity:1,transition:[`opacity ${Le} ${Je}`,`margin ${Le}`,`color ${Le}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${Jt}, > ${Ee}-item-icon`]:{marginInlineEnd:0}}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ee}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Tt=_e=>{const{componentCls:Ee,motionDurationSlow:Le,motionEaseInOut:Ke,borderRadius:Je,menuArrowSize:$t,menuArrowOffset:Jt}=_e;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:_e.margin,width:$t,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Le} ${Ke}, opacity ${Le}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:$t*.6,height:$t*.15,backgroundColor:"currentcolor",borderRadius:Je,transition:[`background ${Le} ${Ke}`,`transform ${Le} ${Ke}`,`top ${Le} ${Ke}`,`color ${Le} ${Ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Jt})`},"&::after":{transform:`rotate(-45deg) translateY(${Jt})`}}}}},it=_e=>{const{antCls:Ee,componentCls:Le,fontSize:Ke,motionDurationSlow:Je,motionDurationMid:$t,motionEaseInOut:Jt,paddingXS:Gt,padding:on,colorSplit:Nt,lineWidth:zt,zIndexPopup:Rt,borderRadiusLG:rn,subMenuItemBorderRadius:cn,menuArrowSize:Tn,menuArrowOffset:Dn,lineType:wn,menuPanelMaskInset:Ce,groupTitleLineHeight:Me,groupTitleFontSize:lt}=_e;return[{"":{[`${Le}`]:Object.assign(Object.assign({},(0,Re.dF)()),{"&-hidden":{display:"none"}})},[`${Le}-submenu-hidden`]:{display:"none"}},{[Le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(_e)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Je} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Le}-item`]:{flex:"none"}},[`${Le}-item, ${Le}-submenu, ${Le}-submenu-title`]:{borderRadius:_e.itemBorderRadius},[`${Le}-item-group-title`]:{padding:`${Gt}px ${on}px`,fontSize:lt,lineHeight:Me,transition:`all ${Je}`},[`&-horizontal ${Le}-submenu`]:{transition:[`border-color ${Je} ${Jt}`,`background ${Je} ${Jt}`].join(",")},[`${Le}-submenu, ${Le}-submenu-inline`]:{transition:[`border-color ${Je} ${Jt}`,`background ${Je} ${Jt}`,`padding ${$t} ${Jt}`].join(",")},[`${Le}-submenu ${Le}-sub`]:{cursor:"initial",transition:[`background ${Je} ${Jt}`,`padding ${Je} ${Jt}`].join(",")},[`${Le}-title-content`]:{transition:`color ${Je}`},[`${Le}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Le}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Nt,borderStyle:wn,borderWidth:0,borderTopWidth:zt,marginBlock:zt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),dt(_e)),{[`${Le}-item-group`]:{[`${Le}-item-group-list`]:{margin:0,padding:0,[`${Le}-item, ${Le}-submenu-title`]:{paddingInline:`${Ke*2}px ${on}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Rt,borderRadius:rn,boxShadow:"none",transformOrigin:"0 0",[`&${Le}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Ce}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Ce},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:_e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:_e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:_e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:_e.paddingXS},[`> ${Le}`]:Object.assign(Object.assign(Object.assign({borderRadius:rn},dt(_e)),Tt(_e)),{[`${Le}-item, ${Le}-submenu > ${Le}-submenu-title`]:{borderRadius:cn},[`${Le}-submenu-title::after`]:{transition:`transform ${Je} ${Jt}`}})}}),Tt(_e)),{[`&-inline-collapsed ${Le}-submenu-arrow,
&-inline ${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dn})`},"&::after":{transform:`rotate(45deg) translateX(-${Dn})`}},[`${Le}-submenu-open${Le}-submenu-inline > ${Le}-submenu-title > ${Le}-submenu-arrow`]:{transform:`translateY(-${Tn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Dn})`},"&::before":{transform:`rotate(45deg) translateX(${Dn})`}}})},{[`${Ee}-layout-header`]:{[Le]:{lineHeight:"inherit"}}}]};var pt=(_e,Ee)=>(0,xn.Z)("Menu",Ke=>{if(Ee===!1)return[];const{colorBgElevated:Je,colorPrimary:$t,colorTextLightSolid:Jt,controlHeightLG:Gt,fontSize:on,darkItemColor:Nt,darkDangerItemColor:zt,darkItemBg:Rt,darkSubMenuItemBg:rn,darkItemSelectedColor:cn,darkItemSelectedBg:Tn,darkDangerItemSelectedBg:Dn,darkItemHoverBg:wn,darkGroupTitleColor:Ce,darkItemHoverColor:Me,darkItemDisabledColor:lt,darkDangerItemHoverColor:Bt,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:dn}=Ke,Mt=on/7*5,en=(0,Ie.TS)(Ke,{menuArrowSize:Mt,menuHorizontalHeight:Gt*1.15,menuArrowOffset:`${Mt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Je}),mn=(0,Ie.TS)(en,{itemColor:Nt,itemHoverColor:Me,groupTitleColor:Ce,itemSelectedColor:cn,itemBg:Rt,popupBg:Rt,subMenuItemBg:rn,itemActiveBg:"transparent",itemSelectedBg:Tn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:wn,itemDisabledColor:lt,dangerItemColor:zt,dangerItemHoverColor:Bt,dangerItemSelectedColor:Zt,dangerItemActiveBg:dn,dangerItemSelectedBg:Dn,menuSubMenuBg:rn,horizontalItemSelectedColor:Jt,horizontalItemSelectedBg:$t});return[it(en),St(en),Ge(en),ht(en,"light"),ht(mn,"dark"),Lt(en),(0,Ae.Z)(en),(0,At.oN)(en,"slide-up"),(0,At.oN)(en,"slide-down"),(0,un._y)(en,"zoom-big")]},Ke=>{const{colorPrimary:Je,colorError:$t,colorTextDisabled:Jt,colorErrorBg:Gt,colorText:on,colorTextDescription:Nt,colorBgContainer:zt,colorFillAlter:Rt,colorFillContent:rn,lineWidth:cn,lineWidthBold:Tn,controlItemBgActive:Dn,colorBgTextHover:wn,controlHeightLG:Ce,lineHeight:Me,colorBgElevated:lt,marginXXS:Bt,padding:Zt,fontSize:dn,controlHeightSM:Mt,fontSizeLG:en,colorTextLightSolid:mn,colorErrorHover:Mn}=Ke,Ln=new Se.C(mn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ke.zIndexPopupBase+50,radiusItem:Ke.borderRadiusLG,itemBorderRadius:Ke.borderRadiusLG,radiusSubMenuItem:Ke.borderRadiusSM,subMenuItemBorderRadius:Ke.borderRadiusSM,colorItemText:on,itemColor:on,colorItemTextHover:on,itemHoverColor:on,colorItemTextHoverHorizontal:Je,horizontalItemHoverColor:Je,colorGroupTitle:Nt,groupTitleColor:Nt,colorItemTextSelected:Je,itemSelectedColor:Je,colorItemTextSelectedHorizontal:Je,horizontalItemSelectedColor:Je,colorItemBg:zt,itemBg:zt,colorItemBgHover:wn,itemHoverBg:wn,colorItemBgActive:rn,itemActiveBg:Dn,colorSubItemBg:Rt,subMenuItemBg:Rt,colorItemBgSelected:Dn,itemSelectedBg:Dn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Tn,activeBarHeight:Tn,colorActiveBarBorderSize:cn,activeBarBorderWidth:cn,colorItemTextDisabled:Jt,itemDisabledColor:Jt,colorDangerItemText:$t,dangerItemColor:$t,colorDangerItemTextHover:$t,dangerItemHoverColor:$t,colorDangerItemTextSelected:$t,dangerItemSelectedColor:$t,colorDangerItemBgActive:Gt,dangerItemActiveBg:Gt,colorDangerItemBgSelected:Gt,dangerItemSelectedBg:Gt,itemMarginInline:Ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ce,groupTitleLineHeight:Me,collapsedWidth:Ce*2,popupBg:lt,itemMarginBlock:Bt,itemPaddingInline:Zt,horizontalLineHeight:`${Ce*1.15}px`,iconSize:dn,iconMarginInlineEnd:Mt-dn,collapsedIconSize:en,groupTitleFontSize:dn,darkItemDisabledColor:new Se.C(mn).setAlpha(.25).toRgbString(),darkItemColor:Ln,darkDangerItemColor:$t,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:mn,darkItemSelectedBg:Je,darkDangerItemSelectedBg:$t,darkItemHoverBg:"transparent",darkGroupTitleColor:Ln,darkItemHoverColor:mn,darkDangerItemHoverColor:Mn,darkDangerItemSelectedColor:mn,darkDangerItemActiveBg:$t}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(_e),ue=function(_e,Ee){var Le={};for(var Ke in _e)Object.prototype.hasOwnProperty.call(_e,Ke)&&Ee.indexOf(Ke)<0&&(Le[Ke]=_e[Ke]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ke=Object.getOwnPropertySymbols(_e);Je<Ke.length;Je++)Ee.indexOf(Ke[Je])<0&&Object.prototype.propertyIsEnumerable.call(_e,Ke[Je])&&(Le[Ke[Je]]=_e[Ke[Je]]);return Le},bt=(0,be.forwardRef)((_e,Ee)=>{var Le,Ke;const Je=be.useContext(te.Z),$t=Je||{},{getPrefixCls:Jt,getPopupContainer:Gt,direction:on,menu:Nt}=be.useContext(Be.E_),zt=Jt(),{prefixCls:Rt,className:rn,style:cn,theme:Tn="light",expandIcon:Dn,_internalDisableMenuItemTitleTooltip:wn,inlineCollapsed:Ce,siderCollapsed:Me,items:lt,children:Bt,rootClassName:Zt,mode:dn,selectable:Mt,onClick:en,overflowedIndicatorPopupClassName:mn}=_e,Mn=ue(_e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ln=(0,at.Z)(Mn,["collapsedWidth"]),Wn=we(lt)||Bt;(Le=$t.validator)===null||Le===void 0||Le.call($t,{mode:dn});const oa=(0,ee.useEvent)(function(){var Ma;en==null||en.apply(void 0,arguments),(Ma=$t.onClick)===null||Ma===void 0||Ma.call($t)}),qn=$t.mode||dn,Pa=Mt!=null?Mt:$t.selectable,Yn=be.useMemo(()=>Me!==void 0?Me:Ce,[Ce,Me]),Gn={horizontal:{motionName:`${zt}-slide-up`},inline:(0,ae.Z)(zt),other:{motionName:`${zt}-zoom-big`}},ia=Jt("menu",Rt||$t.prefixCls),[Ea,$a]=pt(ia,!Je),ra=Pe()(`${ia}-${Tn}`,Nt==null?void 0:Nt.className,rn);let Oa;if(typeof Dn=="function")Oa=Dn;else if(Dn===null||Dn===!1)Oa=null;else if($t.expandIcon===null||$t.expandIcon===!1)Oa=null;else{const Ma=Dn!=null?Dn:$t.expandIcon;Oa=(0,qe.Tm)(Ma,{className:Pe()(`${ia}-submenu-expand-icon`,(0,qe.l$)(Ma)?(Ke=Ma.props)===null||Ke===void 0?void 0:Ke.className:"")})}const Po=be.useMemo(()=>({prefixCls:ia,inlineCollapsed:Yn||!1,direction:on,firstLevel:!0,theme:Tn,mode:qn,disableMenuItemTitleTooltip:wn}),[ia,Yn,on,wn,Tn]);return Ea(be.createElement(te.Z.Provider,{value:null},be.createElement(a.Provider,{value:Po},be.createElement(le.ZP,Object.assign({getPopupContainer:Gt,overflowedIndicator:be.createElement(z.Z,null),overflowedIndicatorPopupClassName:Pe()(ia,`${ia}-${Tn}`,mn),mode:qn,selectable:Pa,onClick:oa},Ln,{inlineCollapsed:Yn,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),cn),className:ra,prefixCls:ia,direction:on,defaultMotions:Gn,expandIcon:Oa,ref:Ee,rootClassName:Pe()(Zt,$a)}),Wn))))});const fn=(0,be.forwardRef)((_e,Ee)=>{const Le=(0,be.useRef)(null),Ke=be.useContext(ct.D);return(0,be.useImperativeHandle)(Ee,()=>({menu:Le.current,focus:Je=>{var $t;($t=Le.current)===null||$t===void 0||$t.focus(Je)}})),be.createElement(bt,Object.assign({ref:Le},_e,Ke))});fn.Item=x,fn.SubMenu=E,fn.Divider=Xe,fn.ItemGroup=le.BW;var ln=fn},93948:function(ke,Ft,ge){"use strict";ge.d(Ft,{Z:function(){return wn}});var le=ge(59301),be=ge(29679),ct=ge(40001),Ue=ge(19248),Pe=ge(99267),Be=ge(92310),fe=ge.n(Be),nt=ge(2738),Xe=ge(36355),Qe=ge(92413),at=ge(33708),et=ge(37061),qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ie=function(){var Me=(0,le.useRef)([]),lt=(0,le.useRef)(null);return(0,le.useEffect)(function(){var Bt=Date.now(),Zt=!1;Me.current.forEach(function(dn){if(dn){Zt=!0;var Mt=dn.style;Mt.transitionDuration=".3s, .3s, .3s, .06s",lt.current&&Bt-lt.current<100&&(Mt.transitionDuration="0s, 0s")}}),Zt&&(lt.current=Date.now())}),Me.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],b=function(Me){var lt=(0,at.Z)((0,at.Z)({},qe),Me),Bt=lt.className,Zt=lt.percent,dn=lt.prefixCls,Mt=lt.strokeColor,en=lt.strokeLinecap,mn=lt.strokeWidth,Mn=lt.style,Ln=lt.trailColor,Wn=lt.trailWidth,oa=lt.transition,qn=(0,et.Z)(lt,a);delete qn.gapPosition;var Pa=Array.isArray(Zt)?Zt:[Zt],Yn=Array.isArray(Mt)?Mt:[Mt],Gn=ie(),ia=mn/2,Ea=100-mn/2,$a="M ".concat(en==="round"?ia:0,",").concat(ia,`
L `).concat(en==="round"?Ea:100,",").concat(ia),ra="0 0 100 ".concat(mn),Oa=0;return le.createElement("svg",(0,Qe.Z)({className:fe()("".concat(dn,"-line"),Bt),viewBox:ra,preserveAspectRatio:"none",style:Mn},qn),le.createElement("path",{className:"".concat(dn,"-line-trail"),d:$a,strokeLinecap:en,stroke:Ln,strokeWidth:Wn||mn,fillOpacity:"0"}),Pa.map(function(Po,Ma){var no=1;switch(en){case"round":no=1-mn/100;break;case"square":no=1-mn/2/100;break;default:no=1;break}var Lo={strokeDasharray:"".concat(Po*no,"px, 100px"),strokeDashoffset:"-".concat(Oa,"px"),transition:oa||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ao=Yn[Ma]||Yn[Yn.length-1];return Oa+=Po,le.createElement("path",{key:Ma,className:"".concat(dn,"-line-path"),d:$a,strokeLinecap:en,stroke:ao,strokeWidth:mn,fillOpacity:"0",ref:function(Fe){Gn[Ma]=Fe},style:Lo})}))},x=b,y=ge(39559),E=ge(33606),z=ge(47273),ee=0,ae=(0,z.Z)();function te(){var Ce;return ae?(Ce=ee,ee+=1):Ce="TEST_OR_SSR",Ce}var se=function(Ce){var Me=le.useState(),lt=(0,E.Z)(Me,2),Bt=lt[0],Zt=lt[1];return le.useEffect(function(){Zt("rc_progress_".concat(te()))},[]),Ce||Bt},de=function(Me){var lt=Me.bg,Bt=Me.children;return le.createElement("div",{style:{width:"100%",height:"100%",background:lt}},Bt)};function we(Ce,Me){return Object.keys(Ce).map(function(lt){var Bt=parseFloat(lt),Zt="".concat(Math.floor(Bt*Me),"%");return"".concat(Ce[lt]," ").concat(Zt)})}var Se=le.forwardRef(function(Ce,Me){var lt=Ce.prefixCls,Bt=Ce.color,Zt=Ce.gradientId,dn=Ce.radius,Mt=Ce.style,en=Ce.ptg,mn=Ce.strokeLinecap,Mn=Ce.strokeWidth,Ln=Ce.size,Wn=Ce.gapDegree,oa=Bt&&(0,y.Z)(Bt)==="object",qn=oa?"#FFF":void 0,Pa=Ln/2,Yn=le.createElement("circle",{className:"".concat(lt,"-circle-path"),r:dn,cx:Pa,cy:Pa,stroke:qn,strokeLinecap:mn,strokeWidth:Mn,opacity:en===0?0:1,style:Mt,ref:Me});if(!oa)return Yn;var Gn="".concat(Zt,"-conic"),ia=Wn?"".concat(180+Wn/2,"deg"):"0deg",Ea=we(Bt,(360-Wn)/360),$a=we(Bt,1),ra="conic-gradient(from ".concat(ia,", ").concat(Ea.join(", "),")"),Oa="linear-gradient(to ".concat(Wn?"bottom":"top",", ").concat($a.join(", "),")");return le.createElement(le.Fragment,null,le.createElement("mask",{id:Gn},Yn),le.createElement("foreignObject",{x:0,y:0,width:Ln,height:Ln,mask:"url(#".concat(Gn,")")},le.createElement(de,{bg:Oa},le.createElement(de,{bg:ra}))))}),Re=Se,Ae=100,At=function(Me,lt,Bt,Zt,dn,Mt,en,mn,Mn,Ln){var Wn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,oa=Bt/100*360*((360-Mt)/360),qn=Mt===0?0:{bottom:0,top:180,left:90,right:-90}[en],Pa=(100-Zt)/100*lt;Mn==="round"&&Zt!==100&&(Pa+=Ln/2,Pa>=lt&&(Pa=lt-.01));var Yn=Ae/2;return{stroke:typeof mn=="string"?mn:void 0,strokeDasharray:"".concat(lt,"px ").concat(Me),strokeDashoffset:Pa+Wn,transform:"rotate(".concat(dn+oa+qn,"deg)"),transformOrigin:"".concat(Yn,"px ").concat(Yn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},un=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function xn(Ce){var Me=Ce!=null?Ce:[];return Array.isArray(Me)?Me:[Me]}var Ie=function(Me){var lt=(0,at.Z)((0,at.Z)({},qe),Me),Bt=lt.id,Zt=lt.prefixCls,dn=lt.steps,Mt=lt.strokeWidth,en=lt.trailWidth,mn=lt.gapDegree,Mn=mn===void 0?0:mn,Ln=lt.gapPosition,Wn=lt.trailColor,oa=lt.strokeLinecap,qn=lt.style,Pa=lt.className,Yn=lt.strokeColor,Gn=lt.percent,ia=(0,et.Z)(lt,un),Ea=Ae/2,$a=se(Bt),ra="".concat($a,"-gradient"),Oa=Ea-Mt/2,Po=Math.PI*2*Oa,Ma=Mn>0?90+Mn/2:-90,no=Po*((360-Mn)/360),Lo=(0,y.Z)(dn)==="object"?dn:{count:dn,space:2},ao=Lo.count,$e=Lo.space,Fe=xn(Gn),xe=xn(Yn),Dt=xe.find(function(Sn){return Sn&&(0,y.Z)(Sn)==="object"}),Wt=Dt&&(0,y.Z)(Dt)==="object",Qt=Wt?"butt":oa,Kn=At(Po,no,0,100,Ma,Mn,Ln,Wn,Qt,Mt),yn=ie(),Zn=function(){var Pt=0;return Fe.map(function(An,Ca){var oo=xe[Ca]||xe[xe.length-1],ga=At(Po,no,Pt,An,Ma,Mn,Ln,oo,Qt,Mt);return Pt+=An,le.createElement(Re,{key:Ca,color:oo,ptg:An,radius:Oa,prefixCls:Zt,gradientId:ra,style:ga,strokeLinecap:Qt,strokeWidth:Mt,gapDegree:Mn,ref:function(He){yn[Ca]=He},size:Ae})}).reverse()},ma=function(){var Pt=Math.round(ao*(Fe[0]/100)),An=100/ao,Ca=0;return new Array(ao).fill(null).map(function(oo,ga){var ve=ga<=Pt-1?xe[0]:Wn,He=ve&&(0,y.Z)(ve)==="object"?"url(#".concat(ra,")"):void 0,Ze=At(Po,no,Ca,An,Ma,Mn,Ln,ve,"butt",Mt,$e);return Ca+=(no-Ze.strokeDashoffset+$e)*100/no,le.createElement("circle",{key:ga,className:"".concat(Zt,"-circle-path"),r:Oa,cx:Ea,cy:Ea,stroke:He,strokeWidth:Mt,opacity:1,style:Ze,ref:function(vt){yn[ga]=vt}})})};return le.createElement("svg",(0,Qe.Z)({className:fe()("".concat(Zt,"-circle"),Pa),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:qn,id:Bt,role:"presentation"},ia),!ao&&le.createElement("circle",{className:"".concat(Zt,"-circle-trail"),r:Oa,cx:Ea,cy:Ea,stroke:Wn,strokeLinecap:Qt,strokeWidth:en||Mt,style:Kn}),ao?ma():Zn())},yt=Ie,St={Line:x,Circle:yt},gt=ge(6848),Lt=ge(93398);function rt(Ce){return!Ce||Ce<0?0:Ce>100?100:Ce}function Et(Ce){let{success:Me,successPercent:lt}=Ce,Bt=lt;return Me&&"progress"in Me&&(Bt=Me.progress),Me&&"percent"in Me&&(Bt=Me.percent),Bt}const ht=Ce=>{let{percent:Me,success:lt,successPercent:Bt}=Ce;const Zt=rt(Et({success:lt,successPercent:Bt}));return[Zt,rt(rt(Me)-Zt)]},pn=Ce=>{let{success:Me={},strokeColor:lt}=Ce;const{strokeColor:Bt}=Me;return[Bt||Lt.presetPrimaryColors.green,lt||null]},ye=(Ce,Me,lt)=>{var Bt,Zt,dn,Mt;let en=-1,mn=-1;if(Me==="step"){const Mn=lt.steps,Ln=lt.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?(en=Ce==="small"?2:14,mn=Ln!=null?Ln:8):typeof Ce=="number"?[en,mn]=[Ce,Ce]:[en=14,mn=8]=Ce,en*=Mn}else if(Me==="line"){const Mn=lt==null?void 0:lt.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?mn=Mn||(Ce==="small"?6:8):typeof Ce=="number"?[en,mn]=[Ce,Ce]:[en=-1,mn=8]=Ce}else(Me==="circle"||Me==="dashboard")&&(typeof Ce=="string"||typeof Ce=="undefined"?[en,mn]=Ce==="small"?[60,60]:[120,120]:typeof Ce=="number"?[en,mn]=[Ce,Ce]:(en=(Zt=(Bt=Ce[0])!==null&&Bt!==void 0?Bt:Ce[1])!==null&&Zt!==void 0?Zt:120,mn=(Mt=(dn=Ce[0])!==null&&dn!==void 0?dn:Ce[1])!==null&&Mt!==void 0?Mt:120));return[en,mn]},Ge=3,dt=Ce=>Ge/Ce*100;var it=Ce=>{const{prefixCls:Me,trailColor:lt=null,strokeLinecap:Bt="round",gapPosition:Zt,gapDegree:dn,width:Mt=120,type:en,children:mn,success:Mn,size:Ln=Mt}=Ce,[Wn,oa]=ye(Ln,"circle");let{strokeWidth:qn}=Ce;qn===void 0&&(qn=Math.max(dt(Wn),6));const Pa={width:Wn,height:oa,fontSize:Wn*.15+6},Yn=le.useMemo(()=>{if(dn||dn===0)return dn;if(en==="dashboard")return 75},[dn,en]),Gn=Zt||en==="dashboard"&&"bottom"||void 0,ia=Object.prototype.toString.call(Ce.strokeColor)==="[object Object]",Ea=pn({success:Mn,strokeColor:Ce.strokeColor}),$a=fe()(`${Me}-inner`,{[`${Me}-circle-gradient`]:ia}),ra=le.createElement(yt,{percent:ht(Ce),strokeWidth:qn,trailWidth:qn,strokeColor:Ea,strokeLinecap:Bt,trailColor:lt,prefixCls:Me,gapDegree:Yn,gapPosition:Gn});return le.createElement("div",{className:$a,style:Pa},Wn<=20?le.createElement(gt.Z,{title:mn},le.createElement("span",null,ra)):le.createElement(le.Fragment,null,ra,mn))},pt=function(Ce,Me){var lt={};for(var Bt in Ce)Object.prototype.hasOwnProperty.call(Ce,Bt)&&Me.indexOf(Bt)<0&&(lt[Bt]=Ce[Bt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Bt=Object.getOwnPropertySymbols(Ce);Zt<Bt.length;Zt++)Me.indexOf(Bt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Bt[Zt])&&(lt[Bt[Zt]]=Ce[Bt[Zt]]);return lt};const ue=Ce=>{let Me=[];return Object.keys(Ce).forEach(lt=>{const Bt=parseFloat(lt.replace(/%/g,""));isNaN(Bt)||Me.push({key:Bt,value:Ce[lt]})}),Me=Me.sort((lt,Bt)=>lt.key-Bt.key),Me.map(lt=>{let{key:Bt,value:Zt}=lt;return`${Zt} ${Bt}%`}).join(", ")},We=(Ce,Me)=>{const{from:lt=Lt.presetPrimaryColors.blue,to:Bt=Lt.presetPrimaryColors.blue,direction:Zt=Me==="rtl"?"to left":"to right"}=Ce,dn=pt(Ce,["from","to","direction"]);if(Object.keys(dn).length!==0){const Mt=ue(dn);return{backgroundImage:`linear-gradient(${Zt}, ${Mt})`}}return{backgroundImage:`linear-gradient(${Zt}, ${lt}, ${Bt})`}};var fn=Ce=>{const{prefixCls:Me,direction:lt,percent:Bt,size:Zt,strokeWidth:dn,strokeColor:Mt,strokeLinecap:en="round",children:mn,trailColor:Mn=null,success:Ln}=Ce,Wn=Mt&&typeof Mt!="string"?We(Mt,lt):{backgroundColor:Mt},oa=en==="square"||en==="butt"?0:void 0,qn={backgroundColor:Mn||void 0,borderRadius:oa},Pa=Zt!=null?Zt:[-1,dn||(Zt==="small"?6:8)],[Yn,Gn]=ye(Pa,"line",{strokeWidth:dn}),ia=Object.assign({width:`${rt(Bt)}%`,height:Gn,borderRadius:oa},Wn),Ea=Et(Ce),$a={width:`${rt(Ea)}%`,height:Gn,borderRadius:oa,backgroundColor:Ln==null?void 0:Ln.strokeColor},ra={width:Yn<0?"100%":Yn,height:Gn};return le.createElement(le.Fragment,null,le.createElement("div",{className:`${Me}-outer`,style:ra},le.createElement("div",{className:`${Me}-inner`,style:qn},le.createElement("div",{className:`${Me}-bg`,style:ia}),Ea!==void 0?le.createElement("div",{className:`${Me}-success-bg`,style:$a}):null)),mn)},_e=Ce=>{const{size:Me,steps:lt,percent:Bt=0,strokeWidth:Zt=8,strokeColor:dn,trailColor:Mt=null,prefixCls:en,children:mn}=Ce,Mn=Math.round(lt*(Bt/100)),Ln=Me==="small"?2:14,Wn=Me!=null?Me:[Ln,Zt],[oa,qn]=ye(Wn,"step",{steps:lt,strokeWidth:Zt}),Pa=oa/lt,Yn=new Array(lt);for(let Gn=0;Gn<lt;Gn++){const ia=Array.isArray(dn)?dn[Gn]:dn;Yn[Gn]=le.createElement("div",{key:Gn,className:fe()(`${en}-steps-item`,{[`${en}-steps-item-active`]:Gn<=Mn-1}),style:{backgroundColor:Gn<=Mn-1?ia:Mt,width:Pa,height:qn}})}return le.createElement("div",{className:`${en}-steps-outer`},Yn,mn)},Ee=ge(93083),Le=ge(17313),Ke=ge(83116),Je=ge(37613);const $t=Ce=>{const Me=Ce?"100%":"-100%";return new Ee.Keyframes(`antProgress${Ce?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Me}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Me}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Jt=Ce=>{const{componentCls:Me,iconCls:lt}=Ce;return{[Me]:Object.assign(Object.assign({},(0,Le.Wf)(Ce)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ce.fontSize,marginInlineEnd:Ce.marginXS,marginBottom:Ce.marginXS},[`${Me}-outer`]:{display:"inline-block",width:"100%"},[`&${Me}-show-info`]:{[`${Me}-outer`]:{marginInlineEnd:`calc(-2em - ${Ce.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Ce.paddingXS}px)`}},[`${Me}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Ce.remainingColor,borderRadius:Ce.lineBorderRadius},[`${Me}-inner:not(${Me}-circle-gradient)`]:{[`${Me}-circle-path`]:{stroke:Ce.defaultColor}},[`${Me}-success-bg, ${Me}-bg`]:{position:"relative",backgroundColor:Ce.defaultColor,borderRadius:Ce.lineBorderRadius,transition:`all ${Ce.motionDurationSlow} ${Ce.motionEaseInOutCirc}`},[`${Me}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ce.colorSuccess},[`${Me}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Ce.marginXS,color:Ce.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[lt]:{fontSize:Ce.fontSize}},[`&${Me}-status-active`]:{[`${Me}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ce.colorBgContainer,borderRadius:Ce.lineBorderRadius,opacity:0,animationName:$t(),animationDuration:Ce.progressActiveMotionDuration,animationTimingFunction:Ce.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Me}-rtl${Me}-status-active`]:{[`${Me}-bg::before`]:{animationName:$t(!0)}},[`&${Me}-status-exception`]:{[`${Me}-bg`]:{backgroundColor:Ce.colorError},[`${Me}-text`]:{color:Ce.colorError}},[`&${Me}-status-exception ${Me}-inner:not(${Me}-circle-gradient)`]:{[`${Me}-circle-path`]:{stroke:Ce.colorError}},[`&${Me}-status-success`]:{[`${Me}-bg`]:{backgroundColor:Ce.colorSuccess},[`${Me}-text`]:{color:Ce.colorSuccess}},[`&${Me}-status-success ${Me}-inner:not(${Me}-circle-gradient)`]:{[`${Me}-circle-path`]:{stroke:Ce.colorSuccess}}})}},Gt=Ce=>{const{componentCls:Me,iconCls:lt}=Ce;return{[Me]:{[`${Me}-circle-trail`]:{stroke:Ce.remainingColor},[`&${Me}-circle ${Me}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Me}-circle ${Me}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ce.circleTextColor,fontSize:Ce.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[lt]:{fontSize:`${Ce.fontSize/Ce.fontSizeSM}em`}},[`${Me}-circle&-status-exception`]:{[`${Me}-text`]:{color:Ce.colorError}},[`${Me}-circle&-status-success`]:{[`${Me}-text`]:{color:Ce.colorSuccess}}},[`${Me}-inline-circle`]:{lineHeight:1,[`${Me}-inner`]:{verticalAlign:"bottom"}}}},on=Ce=>{const{componentCls:Me}=Ce;return{[Me]:{[`${Me}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ce.progressStepMinWidth,marginInlineEnd:Ce.progressStepMarginInlineEnd,backgroundColor:Ce.remainingColor,transition:`all ${Ce.motionDurationSlow}`,"&-active":{backgroundColor:Ce.defaultColor}}}}}},Nt=Ce=>{const{componentCls:Me,iconCls:lt}=Ce;return{[Me]:{[`${Me}-small&-line, ${Me}-small&-line ${Me}-text ${lt}`]:{fontSize:Ce.fontSizeSM}}}};var zt=(0,Ke.Z)("Progress",Ce=>{const Me=Ce.marginXXS/2,lt=(0,Je.TS)(Ce,{progressStepMarginInlineEnd:Me,progressStepMinWidth:Me,progressActiveMotionDuration:"2.4s"});return[Jt(lt),Gt(lt),on(lt),Nt(lt)]},Ce=>({circleTextColor:Ce.colorText,defaultColor:Ce.colorInfo,remainingColor:Ce.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Rt=function(Ce,Me){var lt={};for(var Bt in Ce)Object.prototype.hasOwnProperty.call(Ce,Bt)&&Me.indexOf(Bt)<0&&(lt[Bt]=Ce[Bt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Bt=Object.getOwnPropertySymbols(Ce);Zt<Bt.length;Zt++)Me.indexOf(Bt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Bt[Zt])&&(lt[Bt[Zt]]=Ce[Bt[Zt]]);return lt};const rn=null,cn=["normal","exception","active","success"];var Dn=le.forwardRef((Ce,Me)=>{const{prefixCls:lt,className:Bt,rootClassName:Zt,steps:dn,strokeColor:Mt,percent:en=0,size:mn="default",showInfo:Mn=!0,type:Ln="line",status:Wn,format:oa,style:qn}=Ce,Pa=Rt(Ce,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Yn=le.useMemo(()=>{var Fe,xe;const Dt=Et(Ce);return parseInt(Dt!==void 0?(Fe=Dt!=null?Dt:0)===null||Fe===void 0?void 0:Fe.toString():(xe=en!=null?en:0)===null||xe===void 0?void 0:xe.toString(),10)},[en,Ce.success,Ce.successPercent]),Gn=le.useMemo(()=>!cn.includes(Wn)&&Yn>=100?"success":Wn||"normal",[Wn,Yn]),{getPrefixCls:ia,direction:Ea,progress:$a}=le.useContext(Xe.E_),ra=ia("progress",lt),[Oa,Po]=zt(ra),Ma=le.useMemo(()=>{if(!Mn)return null;const Fe=Et(Ce);let xe;const Dt=oa||(Qt=>`${Qt}%`),Wt=Ln==="line";return oa||Gn!=="exception"&&Gn!=="success"?xe=Dt(rt(en),rt(Fe)):Gn==="exception"?xe=Wt?le.createElement(Ue.Z,null):le.createElement(Pe.Z,null):Gn==="success"&&(xe=Wt?le.createElement(be.Z,null):le.createElement(ct.Z,null)),le.createElement("span",{className:`${ra}-text`,title:typeof xe=="string"?xe:void 0},xe)},[Mn,en,Yn,Gn,Ln,ra,oa]),no=Array.isArray(Mt)?Mt[0]:Mt,Lo=typeof Mt=="string"||Array.isArray(Mt)?Mt:void 0;let ao;Ln==="line"?ao=dn?le.createElement(_e,Object.assign({},Ce,{strokeColor:Lo,prefixCls:ra,steps:dn}),Ma):le.createElement(fn,Object.assign({},Ce,{strokeColor:no,prefixCls:ra,direction:Ea}),Ma):(Ln==="circle"||Ln==="dashboard")&&(ao=le.createElement(it,Object.assign({},Ce,{strokeColor:no,prefixCls:ra,progressStatus:Gn}),Ma));const $e=fe()(ra,`${ra}-status-${Gn}`,`${ra}-${Ln==="dashboard"&&"circle"||dn&&"steps"||Ln}`,{[`${ra}-inline-circle`]:Ln==="circle"&&ye(mn,"circle")[0]<=20,[`${ra}-show-info`]:Mn,[`${ra}-${mn}`]:typeof mn=="string",[`${ra}-rtl`]:Ea==="rtl"},$a==null?void 0:$a.className,Bt,Zt,Po);return Oa(le.createElement("div",Object.assign({ref:Me,style:Object.assign(Object.assign({},$a==null?void 0:$a.style),qn),className:$e,role:"progressbar","aria-valuenow":Yn},(0,nt.Z)(Pa,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ao))}),wn=Dn},54580:function(ke,Ft,ge){"use strict";ge.d(Ft,{default:function(){return ga}});var le=ge(59301),be=ge(26407),ct=ge(92310),Ue=ge.n(ct),Pe=ge(92413),Be=ge(6909),fe=ge(4771),nt=ge(9427),Xe=ge(25440),Qe=ge(400),at=ge(37061),et=ge(85195),qe=ge(39559),ie=ge(20569),a=ge(26112);function b(ve,He){var Ze="cannot ".concat(ve.method," ").concat(ve.action," ").concat(He.status,"'"),ot=new Error(Ze);return ot.status=He.status,ot.method=ve.method,ot.url=ve.action,ot}function x(ve){var He=ve.responseText||ve.response;if(!He)return He;try{return JSON.parse(He)}catch(Ze){return He}}function y(ve){var He=new XMLHttpRequest;ve.onProgress&&He.upload&&(He.upload.onprogress=function(Ct){Ct.total>0&&(Ct.percent=Ct.loaded/Ct.total*100),ve.onProgress(Ct)});var Ze=new FormData;ve.data&&Object.keys(ve.data).forEach(function(vt){var Ct=ve.data[vt];if(Array.isArray(Ct)){Ct.forEach(function(mt){Ze.append("".concat(vt,"[]"),mt)});return}Ze.append(vt,Ct)}),ve.file instanceof Blob?Ze.append(ve.filename,ve.file,ve.file.name):Ze.append(ve.filename,ve.file),He.onerror=function(Ct){ve.onError(Ct)},He.onload=function(){return He.status<200||He.status>=300?ve.onError(b(ve,He),x(He)):ve.onSuccess(x(He),He)},He.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in He&&(He.withCredentials=!0);var ot=ve.headers||{};return ot["X-Requested-With"]!==null&&He.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ot).forEach(function(vt){ot[vt]!==null&&He.setRequestHeader(vt,ot[vt])}),He.send(Ze),{abort:function(){He.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var ae=ge(48736),te=function(ve,He){if(ve&&He){var Ze=Array.isArray(He)?He:He.split(","),ot=ve.name||"",vt=ve.type||"",Ct=vt.replace(/\/.*$/,"");return Ze.some(function(mt){var tt=mt.trim();if(/^\*(\/\*)?$/.test(mt))return!0;if(tt.charAt(0)==="."){var sn=ot.toLowerCase(),nn=tt.toLowerCase(),Te=[nn];return(nn===".jpg"||nn===".jpeg")&&(Te=[".jpg",".jpeg"]),Te.some(function(Un){return sn.endsWith(Un)})}return/\/\*$/.test(tt)?Ct===tt.replace(/\/.*$/,""):vt===tt?!0:/^\w+$/.test(tt)?((0,ae.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(tt,"'.Skip for check.")),!0):!1})}return!0};function se(ve,He){var Ze=ve.createReader(),ot=[];function vt(){Ze.readEntries(function(Ct){var mt=Array.prototype.slice.apply(Ct);ot=ot.concat(mt);var tt=!mt.length;tt?He(ot):vt()})}vt()}var de=function(He,Ze,ot){var vt=function Ct(mt,tt){mt&&(mt.path=tt||"",mt.isFile?mt.file(function(sn){ot(sn)&&(mt.fullPath&&!sn.webkitRelativePath&&(Object.defineProperties(sn,{webkitRelativePath:{writable:!0}}),sn.webkitRelativePath=mt.fullPath.replace(/^\//,""),Object.defineProperties(sn,{webkitRelativePath:{writable:!1}})),Ze([sn]))}):mt.isDirectory&&se(mt,function(sn){sn.forEach(function(nn){Ct(nn,"".concat(tt).concat(mt.name,"/"))})}))};He.forEach(function(Ct){vt(Ct.webkitGetAsEntry())})},we=de,Se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Re=function(ve){(0,nt.Z)(Ze,ve);var He=(0,Xe.Z)(Ze);function Ze(){var ot;(0,Be.Z)(this,Ze);for(var vt=arguments.length,Ct=new Array(vt),mt=0;mt<vt;mt++)Ct[mt]=arguments[mt];return ot=He.call.apply(He,[this].concat(Ct)),ot.state={uid:ee()},ot.reqs={},ot.fileInput=void 0,ot._isMounted=void 0,ot.onChange=function(tt){var sn=ot.props,nn=sn.accept,Te=sn.directory,Un=tt.target.files,Vn=(0,be.Z)(Un).filter(function(fa){return!Te||te(fa,nn)});ot.uploadFiles(Vn),ot.reset()},ot.onClick=function(tt){var sn=ot.fileInput;if(sn){var nn=tt.target,Te=ot.props.onClick;if(nn&&nn.tagName==="BUTTON"){var Un=sn.parentNode;Un.focus(),nn.blur()}sn.click(),Te&&Te(tt)}},ot.onKeyDown=function(tt){tt.key==="Enter"&&ot.onClick(tt)},ot.onFileDrop=function(tt){var sn=ot.props.multiple;if(tt.preventDefault(),tt.type!=="dragover")if(ot.props.directory)we(Array.prototype.slice.call(tt.dataTransfer.items),ot.uploadFiles,function(Te){return te(Te,ot.props.accept)});else{var nn=(0,be.Z)(tt.dataTransfer.files).filter(function(Te){return te(Te,ot.props.accept)});sn===!1&&(nn=nn.slice(0,1)),ot.uploadFiles(nn)}},ot.uploadFiles=function(tt){var sn=(0,be.Z)(tt),nn=sn.map(function(Te){return Te.uid=ee(),ot.processFile(Te,sn)});Promise.all(nn).then(function(Te){var Un=ot.props.onBatchStart;Un==null||Un(Te.map(function(Vn){var fa=Vn.origin,va=Vn.parsedFile;return{file:fa,parsedFile:va}})),Te.filter(function(Vn){return Vn.parsedFile!==null}).forEach(function(Vn){ot.post(Vn)})})},ot.processFile=function(){var tt=(0,ie.Z)((0,et.Z)().mark(function sn(nn,Te){var Un,Vn,fa,va,wt,_t,gn,Vt,Fn;return(0,et.Z)().wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(Un=ot.props.beforeUpload,Vn=nn,!Un){hn.next=14;break}return hn.prev=3,hn.next=6,Un(nn,Te);case 6:Vn=hn.sent,hn.next=12;break;case 9:hn.prev=9,hn.t0=hn.catch(3),Vn=!1;case 12:if(Vn!==!1){hn.next=14;break}return hn.abrupt("return",{origin:nn,parsedFile:null,action:null,data:null});case 14:if(fa=ot.props.action,typeof fa!="function"){hn.next=21;break}return hn.next=18,fa(nn);case 18:va=hn.sent,hn.next=22;break;case 21:va=fa;case 22:if(wt=ot.props.data,typeof wt!="function"){hn.next=29;break}return hn.next=26,wt(nn);case 26:_t=hn.sent,hn.next=30;break;case 29:_t=wt;case 30:return gn=((0,qe.Z)(Vn)==="object"||typeof Vn=="string")&&Vn?Vn:nn,gn instanceof File?Vt=gn:Vt=new File([gn],nn.name,{type:nn.type}),Fn=Vt,Fn.uid=nn.uid,hn.abrupt("return",{origin:nn,data:_t,parsedFile:Fn,action:va});case 35:case"end":return hn.stop()}},sn,null,[[3,9]])}));return function(sn,nn){return tt.apply(this,arguments)}}(),ot.saveFileInput=function(tt){ot.fileInput=tt},ot}return(0,fe.Z)(Ze,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(vt){var Ct=this,mt=vt.data,tt=vt.origin,sn=vt.action,nn=vt.parsedFile;if(this._isMounted){var Te=this.props,Un=Te.onStart,Vn=Te.customRequest,fa=Te.name,va=Te.headers,wt=Te.withCredentials,_t=Te.method,gn=tt.uid,Vt=Vn||y,Fn={action:sn,filename:fa,data:mt,file:nn,headers:va,withCredentials:wt,method:_t||"post",onProgress:function(hn){var la=Ct.props.onProgress;la==null||la(hn,nn)},onSuccess:function(hn,la){var da=Ct.props.onSuccess;da==null||da(hn,nn,la),delete Ct.reqs[gn]},onError:function(hn,la){var da=Ct.props.onError;da==null||da(hn,la,nn),delete Ct.reqs[gn]}};Un(tt),this.reqs[gn]=Vt(Fn)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(vt){var Ct=this.reqs;if(vt){var mt=vt.uid?vt.uid:vt;Ct[mt]&&Ct[mt].abort&&Ct[mt].abort(),delete Ct[mt]}else Object.keys(Ct).forEach(function(tt){Ct[tt]&&Ct[tt].abort&&Ct[tt].abort(),delete Ct[tt]})}},{key:"render",value:function(){var vt=this.props,Ct=vt.component,mt=vt.prefixCls,tt=vt.className,sn=vt.disabled,nn=vt.id,Te=vt.style,Un=vt.multiple,Vn=vt.accept,fa=vt.capture,va=vt.children,wt=vt.directory,_t=vt.openFileDialogOnClick,gn=vt.onMouseEnter,Vt=vt.onMouseLeave,Fn=(0,at.Z)(vt,Se),zn=Ue()((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},mt,!0),"".concat(mt,"-disabled"),sn),tt,tt)),hn=wt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},la=sn?{}:{onClick:_t?this.onClick:function(){},onKeyDown:_t?this.onKeyDown:function(){},onMouseEnter:gn,onMouseLeave:Vt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return le.createElement(Ct,(0,Pe.Z)({},la,{className:zn,role:"button",style:Te}),le.createElement("input",(0,Pe.Z)({},(0,a.Z)(Fn,{aria:!0,data:!0}),{id:nn,disabled:sn,type:"file",ref:this.saveFileInput,onClick:function(Oo){return Oo.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Vn},hn,{multiple:Un,onChange:this.onChange},fa!=null?{capture:fa}:{})),va)}}]),Ze}(le.Component),Ae=Re;function At(){}var un=function(ve){(0,nt.Z)(Ze,ve);var He=(0,Xe.Z)(Ze);function Ze(){var ot;(0,Be.Z)(this,Ze);for(var vt=arguments.length,Ct=new Array(vt),mt=0;mt<vt;mt++)Ct[mt]=arguments[mt];return ot=He.call.apply(He,[this].concat(Ct)),ot.uploader=void 0,ot.saveUploader=function(tt){ot.uploader=tt},ot}return(0,fe.Z)(Ze,[{key:"abort",value:function(vt){this.uploader.abort(vt)}},{key:"render",value:function(){return le.createElement(Ae,(0,Pe.Z)({},this.props,{ref:this.saveUploader}))}}]),Ze}(le.Component);un.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:At,onError:At,onSuccess:At,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var xn=un,Ie=xn,yt=ge(18929),St=ge(4676),gt=ge(36355),Lt=ge(1684),rt=ge(9763),Et=ge(31724),ht={icon:function(He,Ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ze}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:He}}]}},name:"file",theme:"twotone"},pn=ht,ye=ge(7657),Ge=function(He,Ze){return le.createElement(ye.Z,(0,Pe.Z)({},He,{ref:Ze,icon:pn}))},dt=le.forwardRef(Ge),Tt=dt,it=ge(58617),pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},ue=pt,We=function(He,Ze){return le.createElement(ye.Z,(0,Pe.Z)({},He,{ref:Ze,icon:ue}))},bt=le.forwardRef(We),fn=bt,ln={icon:function(He,Ze){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:He}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ze}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Ze}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ze}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:He}}]}},name:"picture",theme:"twotone"},_e=ln,Ee=function(He,Ze){return le.createElement(ye.Z,(0,Pe.Z)({},He,{ref:Ze,icon:_e}))},Le=le.forwardRef(Ee),Ke=Le,Je=ge(77900),$t=ge(56762),Jt=ge(62892),Gt=ge(92343),on=ge(3113);function Nt(ve){return Object.assign(Object.assign({},ve),{lastModified:ve.lastModified,lastModifiedDate:ve.lastModifiedDate,name:ve.name,size:ve.size,type:ve.type,uid:ve.uid,percent:0,originFileObj:ve})}function zt(ve,He){const Ze=(0,be.Z)(He),ot=Ze.findIndex(vt=>{let{uid:Ct}=vt;return Ct===ve.uid});return ot===-1?Ze.push(ve):Ze[ot]=ve,Ze}function Rt(ve,He){const Ze=ve.uid!==void 0?"uid":"name";return He.filter(ot=>ot[Ze]===ve[Ze])[0]}function rn(ve,He){const Ze=ve.uid!==void 0?"uid":"name",ot=He.filter(vt=>vt[Ze]!==ve[Ze]);return ot.length===He.length?null:ot}const cn=function(){const He=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ot=He[He.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ot)||[""])[0]},Tn=ve=>ve.indexOf("image/")===0,Dn=ve=>{if(ve.type&&!ve.thumbUrl)return Tn(ve.type);const He=ve.thumbUrl||ve.url||"",Ze=cn(He);return/^data:image\//.test(He)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ze)?!0:!(/^data:/.test(He)||Ze)},wn=200;function Ce(ve){return new Promise(He=>{if(!ve.type||!Tn(ve.type)){He("");return}const Ze=document.createElement("canvas");Ze.width=wn,Ze.height=wn,Ze.style.cssText=`position: fixed; left: 0; top: 0; width: ${wn}px; height: ${wn}px; z-index: 9999; display: none;`,document.body.appendChild(Ze);const ot=Ze.getContext("2d"),vt=new Image;if(vt.onload=()=>{const{width:Ct,height:mt}=vt;let tt=wn,sn=wn,nn=0,Te=0;Ct>mt?(sn=mt*(wn/Ct),Te=-(sn-tt)/2):(tt=Ct*(wn/mt),nn=-(tt-sn)/2),ot.drawImage(vt,nn,Te,tt,sn);const Un=Ze.toDataURL();document.body.removeChild(Ze),window.URL.revokeObjectURL(vt.src),He(Un)},vt.crossOrigin="anonymous",ve.type.startsWith("image/svg+xml")){const Ct=new FileReader;Ct.onload=()=>{Ct.result&&(vt.src=Ct.result)},Ct.readAsDataURL(ve)}else if(ve.type.startsWith("image/gif")){const Ct=new FileReader;Ct.onload=()=>{Ct.result&&He(Ct.result)},Ct.readAsDataURL(ve)}else vt.src=window.URL.createObjectURL(ve)})}var Me=ge(26227),lt=ge(41464),Bt=ge(15277),Zt=ge(93948),dn=ge(6848),en=le.forwardRef((ve,He)=>{let{prefixCls:Ze,className:ot,style:vt,locale:Ct,listType:mt,file:tt,items:sn,progress:nn,iconRender:Te,actionIconRender:Un,itemRender:Vn,isImgUrl:fa,showPreviewIcon:va,showRemoveIcon:wt,showDownloadIcon:_t,previewIcon:gn,removeIcon:Vt,downloadIcon:Fn,onPreview:zn,onDownload:hn,onClose:la}=ve;var da,Oo;const{status:vo}=tt,[fo,Jo]=le.useState(vo);le.useEffect(()=>{vo!=="removed"&&Jo(vo)},[vo]);const[ar,or]=le.useState(!1);le.useEffect(()=>{const Ra=setTimeout(()=>{or(!0)},300);return()=>{clearTimeout(Ra)}},[]);const Zo=Te(tt);let So=le.createElement("div",{className:`${Ze}-icon`},Zo);if(mt==="picture"||mt==="picture-card"||mt==="picture-circle")if(fo==="uploading"||!tt.thumbUrl&&!tt.url){const Ra=Ue()(`${Ze}-list-item-thumbnail`,{[`${Ze}-list-item-file`]:fo!=="uploading"});So=le.createElement("div",{className:Ra},Zo)}else{const Ra=fa!=null&&fa(tt)?le.createElement("img",{src:tt.thumbUrl||tt.url,alt:tt.name,className:`${Ze}-list-item-image`,crossOrigin:tt.crossOrigin}):Zo,Fa=Ue()(`${Ze}-list-item-thumbnail`,{[`${Ze}-list-item-file`]:fa&&!fa(tt)});So=le.createElement("a",{className:Fa,onClick:Ho=>zn(tt,Ho),href:tt.url||tt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ra)}const ya=Ue()(`${Ze}-list-item`,`${Ze}-list-item-${fo}`),po=typeof tt.linkProps=="string"?JSON.parse(tt.linkProps):tt.linkProps,To=wt?Un((typeof Vt=="function"?Vt(tt):Vt)||le.createElement(Me.Z,null),()=>la(tt),Ze,Ct.removeFile):null,Go=_t&&fo==="done"?Un((typeof Fn=="function"?Fn(tt):Fn)||le.createElement(lt.Z,null),()=>hn(tt),Ze,Ct.downloadFile):null,$o=mt!=="picture-card"&&mt!=="picture-circle"&&le.createElement("span",{key:"download-delete",className:Ue()(`${Ze}-list-item-actions`,{picture:mt==="picture"})},Go,To),bo=Ue()(`${Ze}-list-item-name`),rr=tt.url?[le.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:bo,title:tt.name},po,{href:tt.url,onClick:Ra=>zn(tt,Ra)}),tt.name),$o]:[le.createElement("span",{key:"view",className:bo,onClick:Ra=>zn(tt,Ra),title:tt.name},tt.name),$o],Bn={pointerEvents:"none",opacity:.5},wa=va?le.createElement("a",{href:tt.url||tt.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:tt.url||tt.thumbUrl?void 0:Bn,onClick:Ra=>zn(tt,Ra),title:Ct.previewFile},typeof gn=="function"?gn(tt):gn||le.createElement(Bt.Z,null)):null,Ia=(mt==="picture-card"||mt==="picture-circle")&&fo!=="uploading"&&le.createElement("span",{className:`${Ze}-list-item-actions`},wa,fo==="done"&&Go,To),{getPrefixCls:ro}=le.useContext(gt.E_),io=ro(),Mo=le.createElement("div",{className:ya},So,rr,Ia,ar&&le.createElement(Je.default,{motionName:`${io}-fade`,visible:fo==="uploading",motionDeadline:2e3},Ra=>{let{className:Fa}=Ra;const Ho="percent"in tt?le.createElement(Zt.Z,Object.assign({},nn,{type:"line",percent:tt.percent,"aria-label":tt["aria-label"],"aria-labelledby":tt["aria-labelledby"]})):null;return le.createElement("div",{className:Ue()(`${Ze}-list-item-progress`,Fa)},Ho)})),br=tt.response&&typeof tt.response=="string"?tt.response:((da=tt.error)===null||da===void 0?void 0:da.statusText)||((Oo=tt.error)===null||Oo===void 0?void 0:Oo.message)||Ct.uploadError,ur=fo==="error"?le.createElement(dn.Z,{title:br,getPopupContainer:Ra=>Ra.parentNode},Mo):Mo;return le.createElement("div",{className:Ue()(`${Ze}-list-item-container`,ot),style:vt,ref:He},Vn?Vn(ur,tt,sn,{download:hn.bind(null,tt),preview:zn.bind(null,tt),remove:la.bind(null,tt)}):ur)});const mn=(ve,He)=>{const{listType:Ze="text",previewFile:ot=Ce,onPreview:vt,onDownload:Ct,onRemove:mt,locale:tt,iconRender:sn,isImageUrl:nn=Dn,prefixCls:Te,items:Un=[],showPreviewIcon:Vn=!0,showRemoveIcon:fa=!0,showDownloadIcon:va=!1,removeIcon:wt,previewIcon:_t,downloadIcon:gn,progress:Vt={size:[-1,2],showInfo:!1},appendAction:Fn,appendActionVisible:zn=!0,itemRender:hn,disabled:la}=ve,da=(0,$t.Z)(),[Oo,vo]=le.useState(!1);le.useEffect(()=>{Ze!=="picture"&&Ze!=="picture-card"&&Ze!=="picture-circle"||(Un||[]).forEach(Bn=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Bn.originFileObj instanceof File||Bn.originFileObj instanceof Blob)||Bn.thumbUrl!==void 0||(Bn.thumbUrl="",ot&&ot(Bn.originFileObj).then(wa=>{Bn.thumbUrl=wa||"",da()}))})},[Ze,Un,ot]),le.useEffect(()=>{vo(!0)},[]);const fo=(Bn,wa)=>{if(vt)return wa==null||wa.preventDefault(),vt(Bn)},Jo=Bn=>{typeof Ct=="function"?Ct(Bn):Bn.url&&window.open(Bn.url)},ar=Bn=>{mt==null||mt(Bn)},or=Bn=>{if(sn)return sn(Bn,Ze);const wa=Bn.status==="uploading",Ia=nn&&nn(Bn)?le.createElement(Ke,null):le.createElement(Tt,null);let ro=wa?le.createElement(it.Z,null):le.createElement(fn,null);return Ze==="picture"?ro=wa?le.createElement(it.Z,null):Ia:(Ze==="picture-card"||Ze==="picture-circle")&&(ro=wa?tt.uploading:Ia),ro},Zo=(Bn,wa,Ia,ro)=>{const io={type:"text",size:"small",title:ro,onClick:Mo=>{wa(),(0,Gt.l$)(Bn)&&Bn.props.onClick&&Bn.props.onClick(Mo)},className:`${Ia}-list-item-action`,disabled:la};if((0,Gt.l$)(Bn)){const Mo=(0,Gt.Tm)(Bn,Object.assign(Object.assign({},Bn.props),{onClick:()=>{}}));return le.createElement(on.ZP,Object.assign({},io,{icon:Mo}))}return le.createElement(on.ZP,Object.assign({},io),le.createElement("span",null,Bn))};le.useImperativeHandle(He,()=>({handlePreview:fo,handleDownload:Jo}));const{getPrefixCls:So}=le.useContext(gt.E_),ya=So("upload",Te),po=So(),To=Ue()(`${ya}-list`,`${ya}-list-${Ze}`),Go=(0,be.Z)(Un.map(Bn=>({key:Bn.uid,file:Bn})));let bo={motionDeadline:2e3,motionName:`${ya}-${Ze==="picture-card"||Ze==="picture-circle"?"animate-inline":"animate"}`,keys:Go,motionAppear:Oo};const rr=le.useMemo(()=>{const Bn=Object.assign({},(0,Jt.Z)(po));return delete Bn.onAppearEnd,delete Bn.onEnterEnd,delete Bn.onLeaveEnd,Bn},[po]);return Ze!=="picture-card"&&Ze!=="picture-circle"&&(bo=Object.assign(Object.assign({},rr),bo)),le.createElement("div",{className:To},le.createElement(Je.CSSMotionList,Object.assign({},bo,{component:!1}),Bn=>{let{key:wa,file:Ia,className:ro,style:io}=Bn;return le.createElement(en,{key:wa,locale:tt,prefixCls:ya,className:ro,style:io,file:Ia,items:Un,progress:Vt,listType:Ze,isImgUrl:nn,showPreviewIcon:Vn,showRemoveIcon:fa,showDownloadIcon:va,removeIcon:wt,previewIcon:_t,downloadIcon:gn,iconRender:or,actionIconRender:Zo,itemRender:hn,onPreview:fo,onDownload:Jo,onClose:ar})}),Fn&&le.createElement(Je.default,Object.assign({},bo,{visible:zn,forceRender:!0}),Bn=>{let{className:wa,style:Ia}=Bn;return(0,Gt.Tm)(Fn,ro=>({className:Ue()(ro.className,wa),style:Object.assign(Object.assign(Object.assign({},Ia),{pointerEvents:wa?"none":void 0}),ro.style)}))}))};var Ln=le.forwardRef(mn),Wn=ge(17313),oa=ge(8378),qn=ge(83116),Pa=ge(37613),Gn=ve=>{const{componentCls:He,iconCls:Ze}=ve;return{[`${He}-wrapper`]:{[`${He}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ve.colorFillAlter,border:`${ve.lineWidth}px dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[He]:{padding:`${ve.padding}px 0`},[`${He}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${He}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${He}-disabled):hover`]:{borderColor:ve.colorPrimaryHover},[`p${He}-drag-icon`]:{marginBottom:ve.margin,[Ze]:{color:ve.colorPrimary,fontSize:ve.uploadThumbnailSize}},[`p${He}-text`]:{margin:`0 0 ${ve.marginXXS}px`,color:ve.colorTextHeading,fontSize:ve.fontSizeLG},[`p${He}-hint`]:{color:ve.colorTextDescription,fontSize:ve.fontSize},[`&${He}-disabled`]:{cursor:"not-allowed",[`p${He}-drag-icon ${Ze},
p${He}-text,
p${He}-hint
`]:{color:ve.colorTextDisabled}}}}}},Ea=ve=>{const{componentCls:He,antCls:Ze,iconCls:ot,fontSize:vt,lineHeight:Ct}=ve,mt=`${He}-list-item`,tt=`${mt}-actions`,sn=`${mt}-action`,nn=Math.round(vt*Ct);return{[`${He}-wrapper`]:{[`${He}-list`]:Object.assign(Object.assign({},(0,Wn.dF)()),{lineHeight:ve.lineHeight,[mt]:{position:"relative",height:ve.lineHeight*vt,marginTop:ve.marginXS,fontSize:vt,display:"flex",alignItems:"center",transition:`background-color ${ve.motionDurationSlow}`,"&:hover":{backgroundColor:ve.controlItemBgHover},[`${mt}-name`]:Object.assign(Object.assign({},Wn.vS),{padding:`0 ${ve.paddingXS}px`,lineHeight:Ct,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[tt]:{[sn]:{opacity:0},[`${sn}${Ze}-btn-sm`]:{height:nn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${sn}:focus-visible,
&.picture ${sn}
`]:{opacity:1},[ot]:{color:ve.actionsColor,transition:`all ${ve.motionDurationSlow}`},[`&:hover ${ot}`]:{color:ve.colorText}},[`${He}-icon ${ot}`]:{color:ve.colorTextDescription,fontSize:vt},[`${mt}-progress`]:{position:"absolute",bottom:-ve.uploadProgressOffset,width:"100%",paddingInlineStart:vt+ve.paddingXS,fontSize:vt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${mt}:hover ${sn}`]:{opacity:1,color:ve.colorText},[`${mt}-error`]:{color:ve.colorError,[`${mt}-name, ${He}-icon ${ot}`]:{color:ve.colorError},[tt]:{[`${ot}, ${ot}:hover`]:{color:ve.colorError},[sn]:{opacity:1}}},[`${He}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$a=ge(93083),ra=ge(1950);const Oa=new $a.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Po=new $a.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var no=ve=>{const{componentCls:He}=ve,Ze=`${He}-animate-inline`;return[{[`${He}-wrapper`]:{[`${Ze}-appear, ${Ze}-enter, ${Ze}-leave`]:{animationDuration:ve.motionDurationSlow,animationTimingFunction:ve.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ze}-appear, ${Ze}-enter`]:{animationName:Oa},[`${Ze}-leave`]:{animationName:Po}}},{[`${He}-wrapper`]:(0,ra.J$)(ve)},Oa,Po]},Lo=ge(93398),ao=ge(64993);const $e=ve=>{const{componentCls:He,iconCls:Ze,uploadThumbnailSize:ot,uploadProgressOffset:vt}=ve,Ct=`${He}-list`,mt=`${Ct}-item`;return{[`${He}-wrapper`]:{[`
${Ct}${Ct}-picture,
${Ct}${Ct}-picture-card,
${Ct}${Ct}-picture-circle
`]:{[mt]:{position:"relative",height:ot+ve.lineWidth*2+ve.paddingXS*2,padding:ve.paddingXS,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,"&:hover":{background:"transparent"},[`${mt}-thumbnail`]:Object.assign(Object.assign({},Wn.vS),{width:ot,height:ot,lineHeight:`${ot+ve.paddingSM}px`,textAlign:"center",flex:"none",[Ze]:{fontSize:ve.fontSizeHeading2,color:ve.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${mt}-progress`]:{bottom:vt,width:`calc(100% - ${ve.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ot+ve.paddingXS}},[`${mt}-error`]:{borderColor:ve.colorError,[`${mt}-thumbnail ${Ze}`]:{[`svg path[fill='${Lo.blue[0]}']`]:{fill:ve.colorErrorBg},[`svg path[fill='${Lo.blue.primary}']`]:{fill:ve.colorError}}},[`${mt}-uploading`]:{borderStyle:"dashed",[`${mt}-name`]:{marginBottom:vt}}},[`${Ct}${Ct}-picture-circle ${mt}`]:{[`&, &::before, ${mt}-thumbnail`]:{borderRadius:"50%"}}}}},Fe=ve=>{const{componentCls:He,iconCls:Ze,fontSizeLG:ot,colorTextLightSolid:vt}=ve,Ct=`${He}-list`,mt=`${Ct}-item`,tt=ve.uploadPicCardSize;return{[`
${He}-wrapper${He}-picture-card-wrapper,
${He}-wrapper${He}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Wn.dF)()),{display:"inline-block",width:"100%",[`${He}${He}-select`]:{width:tt,height:tt,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ve.colorFillAlter,border:`${ve.lineWidth}px dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[`> ${He}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${He}-disabled):hover`]:{borderColor:ve.colorPrimary}},[`${Ct}${Ct}-picture-card, ${Ct}${Ct}-picture-circle`]:{[`${Ct}-item-container`]:{display:"inline-block",width:tt,height:tt,marginBlock:`0 ${ve.marginXS}px`,marginInline:`0 ${ve.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[mt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ve.paddingXS*2}px)`,height:`calc(100% - ${ve.paddingXS*2}px)`,backgroundColor:ve.colorBgMask,opacity:0,transition:`all ${ve.motionDurationSlow}`,content:'" "'}},[`${mt}:hover`]:{[`&::before, ${mt}-actions`]:{opacity:1}},[`${mt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ve.motionDurationSlow}`,[`${Ze}-eye, ${Ze}-download, ${Ze}-delete`]:{zIndex:10,width:ot,margin:`0 ${ve.marginXXS}px`,fontSize:ot,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${mt}-actions, ${mt}-actions:hover`]:{[`${Ze}-eye, ${Ze}-download, ${Ze}-delete`]:{color:new ao.C(vt).setAlpha(.65).toRgbString(),"&:hover":{color:vt}}},[`${mt}-thumbnail, ${mt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${mt}-name`]:{display:"none",textAlign:"center"},[`${mt}-file + ${mt}-name`]:{position:"absolute",bottom:ve.margin,display:"block",width:`calc(100% - ${ve.paddingXS*2}px)`},[`${mt}-uploading`]:{[`&${mt}`]:{backgroundColor:ve.colorFillAlter},[`&::before, ${Ze}-eye, ${Ze}-download, ${Ze}-delete`]:{display:"none"}},[`${mt}-progress`]:{bottom:ve.marginXL,width:`calc(100% - ${ve.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${He}-wrapper${He}-picture-circle-wrapper`]:{[`${He}${He}-select`]:{borderRadius:"50%"}}}};var Dt=ve=>{const{componentCls:He}=ve;return{[`${He}-rtl`]:{direction:"rtl"}}};const Wt=ve=>{const{componentCls:He,colorTextDisabled:Ze}=ve;return{[`${He}-wrapper`]:Object.assign(Object.assign({},(0,Wn.Wf)(ve)),{[He]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${He}-select`]:{display:"inline-block"},[`${He}-disabled`]:{color:Ze,cursor:"not-allowed"}})}};var Qt=(0,qn.Z)("Upload",ve=>{const{fontSizeHeading3:He,fontSize:Ze,lineHeight:ot,lineWidth:vt,controlHeightLG:Ct}=ve,mt=Math.round(Ze*ot),tt=(0,Pa.TS)(ve,{uploadThumbnailSize:He*2,uploadProgressOffset:mt/2+vt,uploadPicCardSize:Ct*2.55});return[Wt(tt),Gn(tt),$e(tt),Fe(tt),Ea(tt),no(tt),Dt(tt),(0,oa.Z)(tt)]},ve=>({actionsColor:ve.colorTextDescription})),Kn=function(ve,He,Ze,ot){function vt(Ct){return Ct instanceof Ze?Ct:new Ze(function(mt){mt(Ct)})}return new(Ze||(Ze=Promise))(function(Ct,mt){function tt(Te){try{nn(ot.next(Te))}catch(Un){mt(Un)}}function sn(Te){try{nn(ot.throw(Te))}catch(Un){mt(Un)}}function nn(Te){Te.done?Ct(Te.value):vt(Te.value).then(tt,sn)}nn((ot=ot.apply(ve,He||[])).next())})};const yn=`__LIST_IGNORE_${Date.now()}__`,Zn=(ve,He)=>{const{fileList:Ze,defaultFileList:ot,onRemove:vt,showUploadList:Ct=!0,listType:mt="text",onPreview:tt,onDownload:sn,onChange:nn,onDrop:Te,previewFile:Un,disabled:Vn,locale:fa,iconRender:va,isImageUrl:wt,progress:_t,prefixCls:gn,className:Vt,type:Fn="select",children:zn,style:hn,itemRender:la,maxCount:da,data:Oo={},multiple:vo=!1,action:fo="",accept:Jo="",supportServerRender:ar=!0,rootClassName:or}=ve,Zo=le.useContext(Lt.Z),So=Vn!=null?Vn:Zo,[ya,po]=(0,yt.Z)(ot||[],{value:Ze,postState:En=>En!=null?En:[]}),[To,Go]=le.useState("drop"),$o=le.useRef(null);le.useMemo(()=>{const En=Date.now();(Ze||[]).forEach((Xn,pa)=>{!Xn.uid&&!Object.isFrozen(Xn)&&(Xn.uid=`__AUTO__${En}_${pa}__`)})},[Ze]);const bo=(En,Xn,pa)=>{let _n=(0,be.Z)(Xn),ta=!1;da===1?_n=_n.slice(-1):da&&(ta=_n.length>da,_n=_n.slice(0,da)),(0,St.flushSync)(()=>{po(_n)});const Ja={file:En,fileList:_n};pa&&(Ja.event=pa),(!ta||_n.some(ba=>ba.uid===En.uid))&&(0,St.flushSync)(()=>{nn==null||nn(Ja)})},rr=(En,Xn)=>Kn(void 0,void 0,void 0,function*(){const{beforeUpload:pa,transformFile:_n}=ve;let ta=En;if(pa){const Ja=yield pa(En,Xn);if(Ja===!1)return!1;if(delete En[yn],Ja===yn)return Object.defineProperty(En,yn,{value:!0,configurable:!0}),!1;typeof Ja=="object"&&Ja&&(ta=Ja)}return _n&&(ta=yield _n(ta)),ta}),Bn=En=>{const Xn=En.filter(ta=>!ta.file[yn]);if(!Xn.length)return;const pa=Xn.map(ta=>Nt(ta.file));let _n=(0,be.Z)(ya);pa.forEach(ta=>{_n=zt(ta,_n)}),pa.forEach((ta,Ja)=>{let ba=ta;if(Xn[Ja].parsedFile)ta.status="uploading";else{const{originFileObj:ir}=ta;let Wo;try{Wo=new File([ir],ir.name,{type:ir.type})}catch(Fr){Wo=new Blob([ir],{type:ir.type}),Wo.name=ir.name,Wo.lastModifiedDate=new Date,Wo.lastModified=new Date().getTime()}Wo.uid=ta.uid,ba=Wo}bo(ba,_n)})},wa=(En,Xn,pa)=>{try{typeof En=="string"&&(En=JSON.parse(En))}catch(Ja){}if(!Rt(Xn,ya))return;const _n=Nt(Xn);_n.status="done",_n.percent=100,_n.response=En,_n.xhr=pa;const ta=zt(_n,ya);bo(_n,ta)},Ia=(En,Xn)=>{if(!Rt(Xn,ya))return;const pa=Nt(Xn);pa.status="uploading",pa.percent=En.percent;const _n=zt(pa,ya);bo(pa,_n,En)},ro=(En,Xn,pa)=>{if(!Rt(pa,ya))return;const _n=Nt(pa);_n.error=En,_n.response=Xn,_n.status="error";const ta=zt(_n,ya);bo(_n,ta)},io=En=>{let Xn;Promise.resolve(typeof vt=="function"?vt(En):vt).then(pa=>{var _n;if(pa===!1)return;const ta=rn(En,ya);ta&&(Xn=Object.assign(Object.assign({},En),{status:"removed"}),ya==null||ya.forEach(Ja=>{const ba=Xn.uid!==void 0?"uid":"name";Ja[ba]===Xn[ba]&&!Object.isFrozen(Ja)&&(Ja.status="removed")}),(_n=$o.current)===null||_n===void 0||_n.abort(Xn),bo(Xn,ta))})},Mo=En=>{Go(En.type),En.type==="drop"&&(Te==null||Te(En))};le.useImperativeHandle(He,()=>({onBatchStart:Bn,onSuccess:wa,onProgress:Ia,onError:ro,fileList:ya,upload:$o.current}));const{getPrefixCls:br,direction:ur,upload:Ra}=le.useContext(gt.E_),Fa=br("upload",gn),Ho=Object.assign(Object.assign({onBatchStart:Bn,onError:ro,onProgress:Ia,onSuccess:wa},ve),{data:Oo,multiple:vo,action:fo,accept:Jo,supportServerRender:ar,prefixCls:Fa,disabled:So,beforeUpload:rr,onChange:void 0});delete Ho.className,delete Ho.style,(!zn||So)&&delete Ho.id;const[Er,$r]=Qt(Fa),[Gr]=(0,rt.Z)("Upload",Et.Z.Upload),{showRemoveIcon:tn,showPreviewIcon:kt,showDownloadIcon:Yt,removeIcon:Kt,previewIcon:ea,downloadIcon:Ba}=typeof Ct=="boolean"?{}:Ct,Aa=(En,Xn)=>Ct?le.createElement(Ln,{prefixCls:Fa,listType:mt,items:ya,previewFile:Un,onPreview:tt,onDownload:sn,onRemove:io,showRemoveIcon:!So&&tn,showPreviewIcon:kt,showDownloadIcon:Yt,removeIcon:Kt,previewIcon:ea,downloadIcon:Ba,iconRender:va,locale:Object.assign(Object.assign({},Gr),fa),isImageUrl:wt,progress:_t,appendAction:En,appendActionVisible:Xn,itemRender:la,disabled:So}):En,Da=Ue()(`${Fa}-wrapper`,Vt,or,$r,Ra==null?void 0:Ra.className,{[`${Fa}-rtl`]:ur==="rtl",[`${Fa}-picture-card-wrapper`]:mt==="picture-card",[`${Fa}-picture-circle-wrapper`]:mt==="picture-circle"}),Ya=Object.assign(Object.assign({},Ra==null?void 0:Ra.style),hn);if(Fn==="drag"){const En=Ue()($r,Fa,`${Fa}-drag`,{[`${Fa}-drag-uploading`]:ya.some(Xn=>Xn.status==="uploading"),[`${Fa}-drag-hover`]:To==="dragover",[`${Fa}-disabled`]:So,[`${Fa}-rtl`]:ur==="rtl"});return Er(le.createElement("span",{className:Da},le.createElement("div",{className:En,style:Ya,onDrop:Mo,onDragOver:Mo,onDragLeave:Mo},le.createElement(Ie,Object.assign({},Ho,{ref:$o,className:`${Fa}-btn`}),le.createElement("div",{className:`${Fa}-drag-container`},zn))),Aa()))}const Ka=Ue()(Fa,`${Fa}-select`,{[`${Fa}-disabled`]:So}),lo=(En=>le.createElement("div",{className:Ka,style:En},le.createElement(Ie,Object.assign({},Ho,{ref:$o}))))(zn?void 0:{display:"none"});return Er(mt==="picture-card"||mt==="picture-circle"?le.createElement("span",{className:Da},Aa(lo,!!zn)):le.createElement("span",{className:Da},lo,Aa()))};var Sn=le.forwardRef(Zn),Pt=function(ve,He){var Ze={};for(var ot in ve)Object.prototype.hasOwnProperty.call(ve,ot)&&He.indexOf(ot)<0&&(Ze[ot]=ve[ot]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ot=Object.getOwnPropertySymbols(ve);vt<ot.length;vt++)He.indexOf(ot[vt])<0&&Object.prototype.propertyIsEnumerable.call(ve,ot[vt])&&(Ze[ot[vt]]=ve[ot[vt]]);return Ze},Ca=le.forwardRef((ve,He)=>{var{style:Ze,height:ot}=ve,vt=Pt(ve,["style","height"]);return le.createElement(Sn,Object.assign({ref:He},vt,{type:"drag",style:Object.assign(Object.assign({},Ze),{height:ot})}))});const oo=Sn;oo.Dragger=Ca,oo.LIST_IGNORE=yn;var ga=oo}}]);