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.
198 lines
506 KiB
198 lines
506 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[2102],{27812:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},26227:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},41464:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},61481:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},33853:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},12893:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},32134:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},38819:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ot}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(Xe,qe){return ye.createElement(Pe.Z,(0,le.Z)({},Xe,{ref:qe,icon:ke}))},fe=ye.forwardRef(Be),ot=fe},27431:function(Ze,Bt){"use strict";Bt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},87851:function(){"use strict";function Ze(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(Ze.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(Ze.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(Ze.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(Ze.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 Ze))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 Bt=[];function ge(ie,a){var b=Bt.pop();return b===void 0?new go.Point(ie,a):(b.x=ie,b.y=a,b)}function le(){var ie=Bt.pop();return ie===void 0?new go.Point:ie}function ye(ie){Bt.push(ie)}function ft(ie,a,b,x,y,E,z,ee,ae){ae||(ae=new go.Point);var te=ie-b,de=y-z,se=NaN,we=NaN;if(te===0)if(de===0)ie===b&&(se=ie,we=a);else{var Se=(E-ee)/de,Re=E-Se*y;se=ie,we=Se*se+Re}else if(de===0){var Ae=(a-x)/te,Gt=a-Ae*ie;se=y,we=Ae*se+Gt}else{var Ae=(a-x)/te,Se=(E-ee)/de,Gt=a-Ae*ie,Re=E-Se*y;se=(Re-Gt)/(Ae-Se),we=Ae*se+Gt}return ae.x=se,ae.y=we,ae}function ke(ie,a,b,x,y,E,z,ee,ae,te,de,se,we,Se){var Re=1-ae,Ae=ae,Gt=ie*Re+b*Ae,un=a*Re+x*Ae,Ln=b*Re+y*Ae,Ie=x*Re+E*Ae,ut=y*Re+z*Ae,ct=E*Re+ee*Ae,gt=Gt*Re+Ln*Ae,Ot=un*Re+Ie*Ae,rt=Ln*Re+ut*Ae,$t=Ie*Re+ct*Ae,vt=gt*Re+rt*Ae,mn=Ot*Re+$t*Ae;te.x=Gt,te.y=un,de.x=gt,de.y=Ot,se.x=vt,se.y=mn,we.x=rt,we.y=$t,Se.x=ut,Se.y=ct}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 Ze("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 Ze("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 Ze("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 Ze("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 Ze("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 Ze("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 ot=[];function Ke(){var ie=ot.pop();return ie===void 0?[]:ie}function Xe(ie){ie.length=0,ot.push(ie)}function qe(ie){for(var a=Ke(),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 tt(ie){var a=Qe(ie),b=Ke();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 Xe(a),b}function Qe(ie){for(var a=qe(ie),b=Ke(),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],de=a[(x+z+E)%y];b[z*2]=ee,b[z*2+1]=ft(ee.x,ee.y,te.x,te.y,ae.x,ae.y,de.x,de.y,new go.Point)}return b[b.length]=b[0],Xe(a),b}go.Shape.defineFigureGenerator("Pentagon",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<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()),Xe(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=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<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()),Xe(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=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<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()),Xe(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=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<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()),Xe(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=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<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()),Xe(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=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<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()),Xe(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=qe(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()),Xe(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()),Xe(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()),Xe(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()),Xe(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()),Xe(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()),Xe(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()),Xe(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=tt(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(),Xe(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=tt(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(),Xe(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=tt(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(),Xe(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=tt(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(),Xe(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=tt(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(),Xe(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=tt(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(),Xe(x),y.spot1=new go.Spot(.222,.222),y.spot2=new go.Spot(.777,.777),y}),go.Shape.setFigureParameter("FramedRectangle",0,new Ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ze("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 Ze("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 Ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ze("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 Ze("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 Ze("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 Ze("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,de=new go.PathFigure(ae,0,!0);return y.add(de),de.add(new go.PathSegment(go.PathSegment.Line,E,.2*b)),de.add(new go.PathSegment(go.PathSegment.Line,a-ae,0)),de.add(new go.PathSegment(go.PathSegment.Line,a,te)),de.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),de.add(new go.PathSegment(go.PathSegment.Line,a,b-te)),de.add(new go.PathSegment(go.PathSegment.Line,a-ae,b)),de.add(new go.PathSegment(go.PathSegment.Line,E,.8*b)),de.add(new go.PathSegment(go.PathSegment.Line,ae,b)),de.add(new go.PathSegment(go.PathSegment.Line,0,b-te)),de.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),de.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new Ze("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 Ze("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 Ze("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(),de=le(),se=le(),we=le();ke(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.42,te,de,se,we,we);var Se=le(),Re=le(),Ae=le();ke(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.58,we,we,Ae,Se,Re);var Gt=le(),un=le(),Ln=le();ke(z,ee+E,z-y,ee+E,z-E,ee+y,z-E,ee,.42,Gt,un,Ln,we,we);var Ie=le(),ut=le(),ct=le();return ke(z,ee+E,z-y,ee+E,z-E,ee+y,z-E,ee,.58,we,we,ct,Ie,ut),ae.add(new go.PathSegment(go.PathSegment.Move,ct.x*a,ct.y*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*b,Ie.x*a,Ie.y*b,ut.x*a,ut.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,se.x*a,se.y*b,te.x*a,te.y*b,de.x*a,de.y*b)),ae.add(new go.PathSegment(go.PathSegment.Line,ct.x*a,ct.y*b).close()),ae.add(new go.PathSegment(go.PathSegment.Move,Ln.x*a,Ln.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,Ln.x*a,Ln.y*b,Gt.x*a,Gt.y*b,un.x*a,un.y*b).close()),ye(te),ye(de),ye(se),ye(we),ye(Se),ye(Re),ye(Ae),ye(Gt),ye(un),ye(Ln),ye(Ie),ye(ut),ye(ct),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 Ze("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(),de=le(),se=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)),ke(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.44,de,se,te,ae,ae),we.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));var Se=ge(te.x,te.y);ke(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.56,ae,ae,te,de,se);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,de.x*a,de.y*b,se.x*a,se.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 Gt=new go.PathFigure((z-E)*a,ee*b,!1);return x.add(Gt),ye(ae),ye(te),ye(de),ye(se),ye(Se),ye(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 Ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ze("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 de=ft(0,ee/b,1,ee/b,E/a,1,1,.5,le());return ae.spot2=new go.Spot(de.x,de.y),ye(de),ae}),go.Shape.setFigureParameter("Arrow2",0,new Ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ze("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 de=ft(0,ee/b,1,ee/b,E/a,1,1,.5,le());return ae.spot2=new go.Spot(de.x,de.y),ye(de),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 Ze("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=ft(0,.5,.3,0,0,y/b,.1,y/b,le());return z.spot1=new go.Spot(ae.x,ae.y),ae=ft(.7,1,1,.5,0,E/b,1,E/b,ae),z.spot2=new go.Spot(ae.x,ae.y),ye(ae),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ze("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,de=new go.PathFigure(a,.5*b,!0);te.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),de.add(new go.PathSegment(go.PathSegment.Line,.3*a,ae)),de.add(new go.PathSegment(go.PathSegment.Line,0,.5*b)),de.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var se=ft(0,.5,.3,ee/b,0,E/b,1,E/b,le());return te.spot1=new go.Spot(se.x,se.y),se=ft(.7,ae/b,1,.5,0,z/b,1,z/b,se),te.spot2=new go.Spot(se.x,se.y),ye(se),te}),go.Shape.setFigureParameter("IBeamArrow",0,new Ze("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=ft(.7,1,1,.5,0,E/b,1,E/b,le());return z.spot2=new go.Spot(ae.x,ae.y),ye(ae),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ze("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,de=new go.PathFigure(a,.5*b,!0);te.add(de),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,ae)),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),de.add(new go.PathSegment(go.PathSegment.Line,.2*a,ae)),de.add(new go.PathSegment(go.PathSegment.Line,0,ae)),de.add(new go.PathSegment(go.PathSegment.Line,0,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),de.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),de.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),te.spot1=new go.Spot(0,E/b);var se=ft(.7,ae/b,1,.5,0,z/b,1,z/b,le());return te.spot2=new go.Spot(se.x,se.y),ye(se),te}),go.Shape.setFigureParameter("Pointer",0,new Ze("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=ft(.2,.65,1,.65,0,1,1,.5,le());return y.spot2=new go.Spot(z.x,z.y),ye(z),y}),go.Shape.setFigureParameter("RoundedPointer",0,new Ze("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=ft(0,.65,1,.65,0,1,1,.5,le());return y.spot2=new go.Spot(z.x,z.y),ye(z),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ze("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=ft(.7,1,1,.5,0,E/b,1,E/b,le());return z.spot2=new go.Spot(ae.x,ae.y),ye(ae),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ze("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=ft(.7,1,1,.5,0,E/b,1,E/b,le());return z.spot2=new go.Spot(ae.x,ae.y),ye(ae),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ze("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,de=new go.PathFigure(ae*a,(te+E)*b,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae-y)*a,te*b,(ae-z)*a,(te+E)*b,(ae-y)*a,(te+ee)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-E)*b,(ae-y)*a,(te-ee)*b,(ae-z)*a,(te-E)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ae+y)*a,te*b,(ae+z)*a,(te-E)*b,(ae+y)*a,(te-ee)*b)),de.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 se=.05,we=fe*se;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+se)*a,te*b,(ae+we)*a,(te-se)*b,(ae+se)*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)),se=.025,we=fe*se,ae=.825,te=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-se)*b,(ae+se)*a,(te-we)*b,(ae+we)*a,(te-se)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-se)*a,te*b,(ae-we)*a,(te-se)*b,(ae-se)*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)),se=.05,we=fe*se,ae=.5,te=.7,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-se)*b,(ae+se)*a,(te-we)*b,(ae+we)*a,(te-se)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-se)*a,te*b,(ae-we)*a,(te-se)*b,(ae-se)*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)),se=.025,we=fe*se,ae=.175,te=.35,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-se)*b,(ae+se)*a,(te-we)*b,(ae+we)*a,(te-se)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-se)*a,te*b,(ae-we)*a,(te-se)*b,(ae-se)*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)),se=.05,we=fe*se,ae=.05,te=.25,Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-se)*b,(ae-se)*a,(te-we)*b,(ae-we)*a,(te-se)*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 Ze("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,de=new go.PathFigure(.8*a,.5*b,!0);x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,b,.8*a,(.5+E)*b,(.4+y)*a,b)),de.add(new go.PathSegment(go.PathSegment.Line,0,b)),de.add(new go.PathSegment(go.PathSegment.Line,0,0)),de.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),de.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*b,(.4+y)*a,0,.8*a,(.5-E)*b));var se=new go.PathFigure((ae+ee)*a,te*b,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te+ee)*b,(ae+ee)*a,(te+z)*b,(ae+z)*a,(te+ee)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,te*b,(ae-z)*a,(te+ee)*b,(ae-ee)*a,(te+z)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(te-ee)*b,(ae-ee)*a,(te-z)*b,(ae-z)*a,(te-ee)*b)),se.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 de=new go.PathFigure((z-y)*a,ee*b,!0);return x.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-y)*b,(z-y)*a,(ee-E)*b,(z-E)*a,(ee-y)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,(z+y)*a,ee*b,(z+E)*a,(ee-y)*b,(z+y)*a,(ee-E)*b)),de.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+y)*b,(z+y)*a,(ee+E)*b,(z+E)*a,(ee+y)*b)),de.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,de=(y-a)/2,se=(E-b)/2,we=new go.PathFigure(ae*a+de,(te+ee)*b+se,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+de,te*b+se,(ae-z)*a+de,(te+ee)*b+se,(ae-ee)*a+de,(te+z)*b+se)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te-ee)*b+se,(ae-ee)*a+de,(te-z)*b+se,(ae-z)*a+de,(te-ee)*b+se)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee+z*.5)*a+de,te*b+se,ae*a+de,(te-ee)*b+se,(ae-ee+z*.5)*a+de,(te-z)*b+se)),we.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te+ee)*b+se,(ae-ee+z*.5)*a+de,(te+z)*b+se,ae*a+de,(te+ee)*b+se).close()),z=fe*.4,ee=.4,ae=.2,te=.5;var Se=new go.PathFigure(ae*a+de,(te+ee)*b+se,!0);x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+de,te*b+se,(ae-z)*a+de,(te+ee)*b+se,(ae-ee)*a+de,(te+z)*b+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te-ee)*b+se,(ae-ee)*a+de,(te-z)*b+se,(ae-z)*a+de,(te-ee)*b+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee+z*.5)*a+de,te*b+se,ae*a+de,(te-ee)*b+se,(ae-ee+z*.5)*a+de,(te-z)*b+se)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te+ee)*b+se,(ae-ee+z*.5)*a+de,(te+z)*b+se,ae*a+de,(te+ee)*b+se).close()),z=fe*.2,ee=.2,ae=.5,te=.5;var Re=new go.PathFigure((ae-ee)*a+de,te*b+se,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te-ee)*b+se,(ae-ee)*a+de,(te-z)*b+se,(ae-z)*a+de,(te-ee)*b+se)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+de,te*b+se,(ae+z)*a+de,(te-ee)*b+se,(ae+ee)*a+de,(te-z)*b+se)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te+ee)*b+se,(ae+ee)*a+de,(te+z)*b+se,(ae+z)*a+de,(te+ee)*b+se)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a+de,te*b+se,(ae-z)*a+de,(te+ee)*b+se,(ae-ee)*a+de,(te+z)*b+se)),z=fe*.4,ee=.4,ae=.8,te=.5;var Ae=new go.PathFigure(ae*a+de,(te-ee)*b+se,!0);x.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+de,te*b+se,(ae+z)*a+de,(te-ee)*b+se,(ae+ee)*a+de,(te-z)*b+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te+ee)*b+se,(ae+ee)*a+de,(te+z)*b+se,(ae+z)*a+de,(te+ee)*b+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee-z*.5)*a+de,te*b+se,ae*a+de,(te+ee)*b+se,(ae+ee-z*.5)*a+de,(te+z)*b+se)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te-ee)*b+se,(ae+ee-z*.5)*a+de,(te-z)*b+se,ae*a+de,(te-ee)*b+se).close()),z=fe*.8,ee=.8,ae=1,te=.5;var Gt=new go.PathFigure(ae*a+de,(te-ee)*b+se,!0);return x.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a+de,te*b+se,(ae+z)*a+de,(te-ee)*b+se,(ae+ee)*a+de,(te-z)*b+se)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te+ee)*b+se,(ae+ee)*a+de,(te+z)*b+se,(ae+z)*a+de,(te+ee)*b+se)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee-z*.5)*a+de,te*b+se,ae*a+de,(te+ee)*b+se,(ae+ee-z*.5)*a+de,(te+z)*b+se)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,ae*a+de,(te-ee)*b+se,(ae+ee-z*.5)*a+de,(te-z)*b+se,ae*a+de,(te-ee)*b+se).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(),de=le(),se=le();ke(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.5,ae,ae,te,de,se);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,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)),ke(z-E,ee,z-E,ee-y,z-y,ee-E,z,ee-E,.5,de,se,te,ae,ae),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)),y=fe*.3,E=.3,ke(z-E,ee,z-E,ee-y,z-y,ee-E,z,ee-E,.5,de,se,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,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)),ke(z,ee-E,z+y,ee-E,z+E,ee-y,z+E,ee,.5,ae,ae,te,de,se),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).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()),ye(ae),ye(te),ye(de),ye(se),ye(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,de=1,se=.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,de*a,se*b,de*a,.7*b,de*a,se*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,de=4*(1-Math.cos(te))/(3*Math.sin(te)),se=de*.5,we=z,Se=z,Re=de*we,Ae=de*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 Gt=new go.PathFigure(.2*a,b,!1);x.add(Gt),Gt.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,de=new go.PathFigure((ae-z)*a,te*b,!0);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()),z=.1,ee=fe*.1,ae=.8,te=.9;var se=new go.PathFigure((ae-z)*a,te*b,!0);return 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()),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,de=.1,se=.9,we=new go.PathFigure((de-ae)*a,se*b,!0);x.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(se-ae)*b,(de-ae)*a,(se-te)*b,(de-te)*a,(se-ae)*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,(de+ae)*a,se*b,(de+te)*a,(se-ae)*b,(de+ae)*a,(se-te)*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(se+ae)*b,(de+ae)*a,(se+te)*b,(de+te)*a,(se+ae)*b)),we.add(new go.PathSegment(go.PathSegment.Bezier,(de-ae)*a,se*b,(de-te)*a,(se+ae)*b,(de-ae)*a,(se+te)*b)),ae=.1,te=fe*.1,de=.4,se=.9;var Se=new go.PathFigure((de-ae)*a,se*b,!0);return x.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(se-ae)*b,(de-ae)*a,(se-te)*b,(de-te)*a,(se-ae)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de+ae)*a,se*b,(de+te)*a,(se-ae)*b,(de+ae)*a,(se-te)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de*a,(se+ae)*b,(de+ae)*a,(se+te)*b,(de+te)*a,(se+ae)*b)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(de-ae)*a,se*b,(de-te)*a,(se+ae)*b,(de-ae)*a,(se+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 de=.05,se=fe*.05,we=.175,Se=.95,ee=new go.PathFigure((we-de)*a,Se*b,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-de)*b,(we-de)*a,(Se-se)*b,(we-se)*a,(Se-de)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(we+de)*a,Se*b,(we+se)*a,(Se-de)*b,(we+de)*a,(Se-se)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+de)*b,(we+de)*a,(Se+se)*b,(we+se)*a,(Se+de)*b)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(we-de)*a,Se*b,(we-se)*a,(Se+de)*b,(we-de)*a,(Se+se)*b));var de=.05,se=fe*.05,we=.375,Se=.95,ae=new go.PathFigure((we-de)*a,Se*b,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-de)*b,(we-de)*a,(Se-se)*b,(we-se)*a,(Se-de)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(we+de)*a,Se*b,(we+se)*a,(Se-de)*b,(we+de)*a,(Se-se)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+de)*b,(we+de)*a,(Se+se)*b,(we+se)*a,(Se+de)*b)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(we-de)*a,Se*b,(we-se)*a,(Se+de)*b,(we-de)*a,(Se+se)*b));var de=.05,se=fe*.05,we=.625,Se=.95,te=new go.PathFigure((we-de)*a,Se*b,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-de)*b,(we-de)*a,(Se-se)*b,(we-se)*a,(Se-de)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(we+de)*a,Se*b,(we+se)*a,(Se-de)*b,(we+de)*a,(Se-se)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+de)*b,(we+de)*a,(Se+se)*b,(we+se)*a,(Se+de)*b)),te.add(new go.PathSegment(go.PathSegment.Bezier,(we-de)*a,Se*b,(we-se)*a,(Se+de)*b,(we-de)*a,(Se+se)*b));var de=.05,se=fe*.05,we=.825,Se=.95,Re=new go.PathFigure((we-de)*a,Se*b,!0);x.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se-de)*b,(we-de)*a,(Se-se)*b,(we-se)*a,(Se-de)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(we+de)*a,Se*b,(we+se)*a,(Se-de)*b,(we+de)*a,(Se-se)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,we*a,(Se+de)*b,(we+de)*a,(Se+se)*b,(we+se)*a,(Se+de)*b)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(we-de)*a,Se*b,(we-se)*a,(Se+de)*b,(we-de)*a,(Se+se)*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,de=.775,se=new go.PathFigure((te-ee)*a,de*b,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(de-ee)*b,(te-ee)*a,(de-ae)*b,(te-ae)*a,(de-ee)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,de*b,(te+ae)*a,(de-ee)*b,(te+ee)*a,(de-ae)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(de+ee)*b,(te+ee)*a,(de+ae)*b,(te+ae)*a,(de+ee)*b)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,de*b,(te-ae)*a,(de+ee)*b,(te-ee)*a,(de+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")},63089: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 Ze={},Bt="5.0",ge={},le=null,ye=!1,ft=!1,ke=null,Pe=!1,Be=null,fe=null,ot=0;ot<arguments.length;ot++){var Ke=arguments[ot];if(Ke!==null)switch(typeof Ke){case"number":Bt=Ke.toFixed(1);break;case"string":Ke.match(new RegExp("^[0-9]\\.[0-9]+$"))?Bt=Ke:ke=Ke;break;case"object":typeof Ke.is3D!="undefined"?le=Ke:ge=Ke;break;case"boolean":ye=Ke,ft=!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&&!ft&&(ye=!0)),ke!==null&&ge.id===void 0&&(ge.id=ke);var Xe="",qe="",tt=!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(pe){return parseFloat(pe)>4?parseFloat(pe):5};Ze.setHTML5Codebase=function(pe,ze){fe=pe,$t(pe,ze)},Ze.setJavaCodebase=Ze.setJavaCodebaseVersion=Ze.isCompiledInstalled=Ze.setPreCompiledScriptPath=Ze.setPreCompiledResourcePath=function(){},Ze.setHTML5CodebaseVersion=function(pe,ze){var ht=parseFloat(pe);if(ht!==NaN&&ht<5){console.log("The GeoGebra HTML5 codebase version "+ht+" is deprecated. Using version latest instead.");return}Be=pe,rt(pe,ze)},Ze.getHTML5CodebaseVersion=function(){return ie},Ze.getParameters=function(){return ge},Ze.setFontsCSSURL=function(pe){z=pe},Ze.setGiacJSURL=function(pe){},Ze.setJNLPFile=function(pe){Xe=pe},Ze.setJNLPBaseDir=function(pe){},Ze.inject=function(){function pe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",ht=ge.id,Dt,lt=!1,Lt=0;Lt<arguments.length;Lt++){var ue=arguments[Lt];typeof ue=="string"?(ue=ue.toLowerCase(),ue.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=ue:ht=arguments[Lt]):typeof ue=="boolean"?lt=ue:ue instanceof HTMLElement&&(Dt=ue)}nt();function nt(){if(!Pe){setTimeout(nt,200);return}ze=gt(ze);var wt=Dt||document.getElementById(ht);if(!wt){console.log("possibly bug on ajax loading? ");return}if(Ze.removeExistingApplet(wt,!1),ge.width===void 0&&wt.clientWidth&&(ge.width=wt.clientWidth),ge.height===void 0&&wt.clientHeight&&(ge.height=wt.clientHeight),!(ge.width&&ge.height)&&ze==="html5"&&(delete ge.width,delete ge.height),Qe=ze,ze==="screenshot")un(wt,ge);else{var gn=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?gn=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(gn=(!te()||pe())&&de()),gn?(Qe="screenshot",Ie(wt,ge,lt,ze)):Gt(wt,ge,lt)}}};function te(){try{return window.self!==window.top}catch(pe){return!0}}function de(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ze.getViews=function(){return le},Ze.isJavaInstalled=function(){return!1};var se=function(pe){var ze=function(Lt){var ue=JSON.parse(Lt),nt=function(tn){return tn.type=="G"||tn.type=="E"},wt=ue.elements?ue.elements.filter(nt)[0]:ue;if(!wt||!wt.url){ht();return}ge.fileName=wt.url,we(wt.settings||{}),le.is3D=!0;var gn="https://www.geogebra.org/images/";Ze.setPreviewImage(x||wt.previewUrl,gn+"GeoGebra_loading.png",gn+"applet_play.png"),pe()},ht=function(){ge.onError&&ge.onError(),vt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Dt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",lt="/materials/"+ge.material_id+"?scope=basic";Se("https://"+Dt+"/api/proxy.php?path="+encodeURIComponent(lt),ze,ht)};function we(pe){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(ht){pe[ht]=!!pe[ht]}),ze.forEach(function(ht){ge[ht]===void 0&&pe[ht]!==void 0&&(ge[ht]=pe[ht])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function Se(pe,ze,ht){var Dt=new XMLHttpRequest;Dt.open("GET",pe),Dt.onload=function(){ze(Dt.responseText)},Dt.onerror=ht,Dt.send()}Ze.isHTML5Installed=function(){return!0},Ze.getLoadedAppletType=function(){return Qe},Ze.setPreviewImage=function(pe,ze,ht){x=pe,y=ze,E=ht},Ze.removeExistingApplet=function(pe,ze){var ht;typeof pe=="string"&&(pe=document.getElementById(pe)),Qe=null;var Dt=null;for(ht=0;ht<pe.childNodes.length;ht++){var lt=pe.childNodes[ht],Lt=lt.className;Lt==="applet_screenshot"?ze?(lt.style.display="block",Qe="screenshot"):lt.style.display="none":Lt!=="applet_scaler prerender"&&(pe.removeChild(lt),Dt=Lt&&Lt.indexOf("appletParameters")!=-1?lt.id:null,ht--)}var ue=ge.id!==void 0?ge.id:Dt,nt=window[ue];nt&&typeof nt.getBase64=="function"&&(nt.remove(),window[ue]=null)},Ze.refreshHitPoints=function(){if(ae(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var pe=Ze.getAppletObject();return pe&&typeof pe.recalculateEnvironments=="function"?(pe.recalculateEnvironments(),!0):!1},Ze.startAnimation=function(){var pe=Ze.getAppletObject();return pe&&typeof pe.startAnimation=="function"?(pe.startAnimation(),!0):!1},Ze.stopAnimation=function(){var pe=Ze.getAppletObject();return pe&&typeof pe.stopAnimation=="function"?(pe.stopAnimation(),!0):!1},Ze.getAppletObject=function(){var pe=ge.id!==void 0?ge.id:"ggbApplet";return window[pe]},Ze.resize=function(){};var Re=function(pe,ze,ht){var Dt=document.createElement("param");Dt.setAttribute("name",ze),Dt.setAttribute("value",ht),pe.appendChild(Dt)},Ae=function(pe){return pe&&pe!=="false"},Gt=function(pe,ze,ht){ae(ie)<=4.2&&(ht=!0);var Dt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ie||ggbHTML5LoadedCodebaseIsWebSimple&&!b)&&(Dt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var lt=document.createElement("div");lt.classList.add("appletParameters","notranslate");var Lt=ze.width,ue=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(ae(ie)<=4.4)Ae(ze.showToolBar)&&(ze.height-=7),Ae(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&Ae(ze.showToolBar)&&(ze.width=605,Lt=605);else{var nt=100;(Ae(ze.showToolBar)||Ae(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),nt=Ae(ze.showMenuBar)?245:155),Lt<nt&&(ze.width=nt,Lt=nt)}lt.style.border="none",lt.style.display="inline-block";for(var wt in ze)ze.hasOwnProperty(wt)&&wt!=="appletOnLoad"&<.setAttribute("data-param-"+wt,ze[wt]);z&<.setAttribute("data-param-fontscssurl",z),Ze.resize=function(){GGBAppletUtils.responsiveResize(pe,ze)},window.addEventListener("resize",function(Ft){Ze.resize()});var gn=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!ht&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||lt.setAttribute("data-param-showSplash","false");var tn=pe.querySelector(".applet_scaler.prerender"),Ve=tn!==null;if(Ve)var Ee=tn.querySelector(".ggb_preview");else{var Ee=ct(Lt,ue,ze.borderColor,!1);tn=document.createElement("div"),tn.className="applet_scaler",tn.style.position="relative",tn.style.display="block",tn.style.width=Lt+"px",tn.style.height=ue+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tn,"66%"),ae(ie)>=5?(ze.appletOnLoad=function(Ft){var Nt=pe.querySelector(".ggb_preview");Nt&&Nt.parentNode.removeChild(Nt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(tn),window.GGBT_wsf_view&&$(window).trigger("resize"),gn(Ft)},Ve||tn.appendChild(Ee)):lt.appendChild(Ee),tn.appendChild(lt),Ve||pe.appendChild(tn),setTimeout(function(){Ze.resize()},1)}else{var Le=document.createElement("div");Le.className="applet_scaler",Le.style.position="relative",Le.style.display="block",Le.appendChild(lt),pe.appendChild(Le),ze.appletOnLoad=function(Ft){Ze.resize(),gn(Ft)}}function Ye(Ft,Nt){Nt&&typeof Nt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ft,Nt.appletOnLoad):renderGGBElement(Ft),vt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nt)}function Je(Ft,Nt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ft,params:Nt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(zn){Ye(zn.article,zn.params)}),html5AppletsToProcess=null)},ae(ie)<5&&(Ft.className+=" geogebraweb")):Ye(Ft,Nt)}if(Dt){scriptLoadStarted=!0;for(var yt=0;yt<lt.childNodes.length;yt++){var en=lt.childNodes[yt].tagName;en==="TABLE"&&(lt.removeChild(lt.childNodes[yt]),yt--)}if(ggbHTML5LoadedScript!==null){var it=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');it!=null&&it.parentNode.removeChild(it)}var kt=document.createElement("script"),rn=function(){Je(lt,ze)};kt.src=qe+a,ggbHTML5LoadedCodebaseIsWebSimple=b,ggbHTML5LoadedCodebaseVersion=ie,ggbHTML5LoadedScript=kt.src,vt("GeoGebra HTML5 codebase loaded: '"+qe+"'.",ze),!fe&&(!Be||Be=="5.0")?(b?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),rn()):qe.requirejs?__webpack_require__.e(6954).then(function(){var Ft=[__webpack_require__(76954)];rn.apply(null,Ft)}.bind(this)).catch(__webpack_require__.oe):(kt.onload=rn,pe.appendChild(kt))}else Je(lt,ze);ze.height=ue,ze.width=Lt},un=function(pe,ze,ht){var Dt=ct(ze.width,ze.height,ze.borderColor,ht),lt=document.createElement("div");lt.style.position="relative",lt.style.display="block",lt.style.width=ze.width+"px",lt.style.height=ze.height+"px",lt.className="applet_screenshot applet_scaler"+(ht?" applet_screenshot_play":""),lt.appendChild(Dt);var Lt=GGBAppletUtils.getScale(ze,pe,ht);ht?(pe.appendChild(ut()),window.GGBT_wsf_view||(pe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(lt,"66%"),pe.appendChild(lt),Lt!==1&&!isNaN(Lt)&&(GGBAppletUtils.scaleElement(lt,Lt),lt.style.width=ze.width+"px",lt.style.height=ze.height+"px",lt.parentNode.style.width=ze.width*Lt+"px",lt.parentNode.style.height=ze.height*Lt+"px"),Ze.resize=function(){Ln(pe,Dt,lt,ht)},window.addEventListener("resize",function(ue){Ze.resize()}),Ze.resize()};function Ln(pe,ze,ht,Dt){if(pe.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(pe)}var lt=GGBAppletUtils.getScale(ge,pe,Dt);ht.parentNode!==null&&(!isNaN(lt)&<!==1?(GGBAppletUtils.scaleElement(ht,lt),ht.parentNode.style.width=ge.width*lt+"px",ht.parentNode.style.height=ge.height*lt+"px"):(GGBAppletUtils.scaleElement(ht,1),ht.parentNode.style.width=ge.width+"px",ht.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(pe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ze.onExitFullscreen=function(pe,ze){ze.appendChild(pe)};var Ie=function(pe,ze,ht,Dt){un(pe,ze,!0);for(var lt=function(){var nt=[];for(ue=0;ue<pe.childNodes.length;ue++)nt.push(pe.childNodes[ue]);if(window.GGBT_wsf_view){var wt=window.GGBT_wsf_view.renderFullScreen(pe,ze.id),gn=document.getElementById("fullscreencontainer"),tn=jQuery(pe).find(".fullscreencontent");tn.length>0?(wt.remove(),tn.attr("id","fullscreencontent").show(),jQuery(gn).append(tn),window.dispatchEvent(new Event("resize"))):Gt(wt,ze,!1),window.GGBT_wsf_view.launchFullScreen(gn)}else Qe=Dt,Gt(pe,ze,!1);if(!window.GGBT_wsf_view)for(ue=0;ue<nt.length;ue++)pe.removeChild(nt[ue])},Lt=pe.getElementsByClassName("ggb_preview_play"),ue=0;ue<Lt.length;ue++)Lt[ue].addEventListener("click",lt,!1),Lt[ue].addEventListener("ontouchstart",lt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(pe),de()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ut=function(){var pe=document.createElement("div");if(pe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',ht=document.createElement("style");ht.styleSheet?ht.styleSheet.cssText=ze:ht.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(ht)}return pe},ct=function(pe,ze,ht,Dt){var lt=document.createElement("div");lt.className="ggb_preview",lt.style.position="absolute",lt.style.zIndex="90",lt.style.width=pe-2+"px",lt.style.height=ze-2+"px",lt.style.top="0px",lt.style.left="0px",lt.style.overflow="hidden",lt.style.backgroundColor="white";var Lt="lightgrey";ht!==void 0&&(ht==="none"?Lt="transparent":Lt=ht),lt.style.border="1px solid "+Lt;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 nt,wt,gn;if(!Dt){nt=document.createElement("img"),nt.style.position="absolute",nt.style.zIndex="1001",nt.style.opacity=1,ue.style.opacity=.3,wt=360,wt>pe/4*3&&(wt=pe/4*3),gn=wt/5.8,nt.setAttribute("src",y),nt.setAttribute("width",wt),nt.setAttribute("height",gn);var tn=(pe-wt)/2,Ve=(ze-gn)/2;nt.style.left=tn+"px",nt.style.top=Ve+"px",lt.appendChild(nt)}}return lt.appendChild(ue),lt},gt=function(pe){return pe=pe.toLowerCase(),pe==="html5"||pe==="screenshot"?pe:"html5"},Ot=["web","webSimple","web3d","tablet","tablet3d","phone"],rt=function(pe,ze){if(ie=pe,ze){$t(ie,!0);return}var ht=!ye;if(ht){var Dt=ae(ie);!isNaN(Dt)&&Dt<4.4&&(ht=!1)}var lt,Lt;window.location.protocol.substr(0,4)==="http"?lt=window.location.protocol:lt="http:";var ue=ie.indexOf("//");ue>0?Lt=ie:ue===0?Lt=lt+ie:Lt="https://www.geogebra.org/apps/5.2.814.0/";for(var nt in Ot)if(ie.slice(Ot[nt].length*-1)===Ot[nt]||ie.slice((Ot[nt].length+1)*-1)===Ot[nt]+"/"){$t(Lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&ht&&!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")?Lt+="webSimple/":Lt+="web3d/",$t(Lt,!1)},$t=function(pe,ze){if(pe.requirejs){qe=pe;return}pe.slice(-1)!=="/"&&(pe+="/"),qe=pe,ze===null&&(ze=pe.indexOf("http")===-1),tt=ze,a="web.nocache.js",b=!1;var ht=qe.split("/");ht.length>1&&(!ze&&ht[ht.length-2]==="webSimple"?(a="webSimple.nocache.js",b=!0):Ot.indexOf(ht[ht.length-2])>=0&&(a=ht[ht.length-2]+".nocache.js")),ht=pe.split("/"),ie=ht[ht.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 Dt=parseFloat(ie);Dt!==NaN&&Dt<5&&pe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Dt+" is deprecated. Using version latest instead."),rt("5.0",ze))},vt=function(pe,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(pe)};ge.material_id!==void 0?se(mn):mn();function mn(){var pe=Bt;Be!==null?pe=Be:parseFloat(pe)<5&&(pe="5.0"),rt(pe,!1),fe!==null&&$t(fe,tt),Pe=!0}return Ze},GGBAppletUtils=function(){"use strict";function Ze(){return window.GGBT_wsf_edit!==void 0}function Bt(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,ot,Ke,Xe){var qe=null;if(Xe!=null&&Xe!="")for(var tt=Pe.parentNode;tt!=null;)if((" "+tt.className+" ").indexOf(" "+Xe+" ")>-1){qe=tt;break}else tt=tt.parentNode;var Qe=0,ie=0,a=0,b=0,x=0,y=0,E=0;if(qe)Qe=qe.offsetWidth,ie=Math.max(ot?qe.offsetWidth:0,qe.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&&(Ke===void 0||!Ke)&&(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,ot,Ke){if(Pe.isScreenshoGenerator)return 1;var Xe=ot!==void 0&&ot,qe=Pe.noScaleMargin!=null&&Pe.noScaleMargin,tt=function(ee){return ee&&ee!=="false"},Qe=tt(Pe.autoHeight),ie=ge(Be,Pe.width,fe,Qe,Xe&&window.GGBT_wsf_view||qe,Ke),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=Xe?1:ie.height/x;return fe!==void 0&&!fe&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function ye(Pe,Be,fe){var ot=1,Ke,Xe=!1;if(Pe.hasOwnProperty("allowUpscale")&&(Xe=Pe.allowUpscale),Pe.hasOwnProperty("scale")&&(ot=parseFloat(Pe.scale),(isNaN(ot)||ot===null||ot===0)&&(ot=1),ot>1&&(Xe=!0)),Be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Xe=!0),!(Pe.hasOwnProperty("disableAutoScale")&&Pe.disableAutoScale))Ke=le(Pe,Be,Xe,fe,Pe.scaleContainerClass);else return ot;return Xe&&(!Pe.hasOwnProperty("scale")||ot===1)?Ke:Math.min(ot,Ke)}function ft(Pe){var Be=Math.min(window.innerWidth,document.documentElement.clientWidth),fe=Math.min(window.innerHeight,document.documentElement.clientHeight),ot=Pe.getBoundingClientRect(),Ke=(Be-ot.width)/2,Xe=(fe-ot.height)/2;Xe<0&&(Xe=0),Pe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ke<40?Pe.style.left="40px":Pe.style.left=Ke+"px",Pe.style.top=Xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Xe<40?Pe.style.top="40px":Pe.style.top=Xe+"px",Pe.style.left=Ke+"px")}function ke(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 ot=ye(Be,Pe);Ze()&&fe.setAttribute("data-param-scale",ot);for(var Ke=null,Xe=0;Xe<Pe.childNodes.length;Xe++)if(Pe.childNodes[Xe].className!==void 0&&Pe.childNodes[Xe].className.match(/^applet_scaler/)){Ke=Pe.childNodes[Xe];break}if(Ke!==null&&Ke.querySelector(".noscale")!==null)return;var qe=Be.id!==void 0?Be.id:"ggbApplet",tt=window[qe];(tt==null||!tt.recalculateEnvironments)&&Ke!==null&&!Ke.className.match(/fullscreen/)&&(Ke.parentNode.style.transform="",!isNaN(ot)&&ot!==1?(Ke.parentNode.style.width=Be.width*ot+"px",Ke.parentNode.style.height=Be.height*ot+"px",Bt(Ke,ot)):(Bt(Ke,1),Ke.parentNode.style.width=Be.width+"px",Ke.parentNode.style.height=Be.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ft(Pe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(fe).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:Ze,positionCenter:ft,getScale:ye,scaleElement:Bt}}();__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 Ze=n.location.search;return Ze.indexOf(J)!=-1||Ze.indexOf(K)!=-1}function q(Ze,Bt){}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(Ze){var Bt=s[L].bindings;s[L].bindings=function(){for(var ge=Bt?Bt():{},le=Ze[webModule.__softPermutationId],ye=O;ye<le.length;ye++){var ft=le[ye];ge[ft[O]]=ft[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Ze=o.createElement(Q);if(Ze.id=L,Ze.style.cssText=R+S,Ze.tabIndex=-1,o.body.appendChild(Ze),t=Ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Bt=document.compatMode==U?V:W;t.write(Bt+X),t.close()}}}function w(Ze){function Bt(le){function ye(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ft=ye();if(ft){le();return}function ke(){if(!ft){if(!ye())return;ft=!0,le(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),Pe&&clearInterval(Pe)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var Pe=setInterval(function(){ke()},$)}function ge(le){var ye=u(),ft=ye.body,ke=ye.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=le,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+le))}),ft.appendChild(ke)}Bt(function(){ge(Ze)})}webModule.__startLoadingFragment=function(Ze){return C(Ze)},webModule.__installRunAsyncCode=function(Ze){var Bt=u(),ge=Bt.body,le=Bt.createElement(_);le.language=ab,le.text=Ze,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(Ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ze){var Bt=c[Ze];return Bt==null?null:Bt},r=d,webModule.__errFn=e}function B(){function Ze(Pe){var Be=Pe.lastIndexOf(rb);Be==-1&&(Be=Pe.length);var fe=Pe.indexOf(sb);fe==-1&&(fe=Pe.length);var ot=Pe.lastIndexOf(tb,Math.min(fe,Be));return ot>=O?Pe.substring(O,ot+P):W}function Bt(Pe){if(!Pe.match(/^\w+:\/\//)){var Be=o.createElement(ub);Be.src=Pe+vb,Pe=Ze(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 Ze(Pe[Be].src);return W}function ye(){var Pe=o.getElementsByTagName(yb);return Pe.length>O?Pe[Pe.length-P].href:W}function ft(){var Pe=o.location;return Pe.href==Pe.protocol+zb+Pe.host+Pe.pathname+Pe.search+Pe.hash}var ke=ge();return ke==W&&(ke=le()),ke==W&&(ke=ye()),ke==W&&ft()&&(ke=Ze(o.location.href)),ke=Bt(ke),ke}function C(Ze){return Ze.match(/^\//)||Ze.match(/^[a-zA-Z]+:\/\//)?Ze:webModule.__moduleBase+Ze}function D(){var Ze=[],Bt=O,ge=[],le=[];function ye(Pe){var Be=le[Pe](),fe=ge[Pe];if(Be in fe)return Be;var ot=[];for(var Ke in fe)ot[fe[Ke]]=Ke;throw r&&r(Pe,ot,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]=ye(Be));return Pe},webModule.__computePropValue=ye,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ft;try{ft=Cb;var ke=ft.indexOf(Db);ke!=-1&&(Bt=parseInt(ft.substring(ke+P),$),ft=ft.substring(O,ke))}catch(Pe){}return webModule.__softPermutationId=Bt,C(ft+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})()},88457:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Ax:function(){return ke},Ds:function(){return Pe},KI:function(){return fe},SI:function(){return ft},f1:function(){return ye}});var le=ge(78323);function ye(ot){let Ke=!0;if(ot.length>0){for(let Xe=0;Xe<ot.length;Xe++)if(ot[Xe].compile_success==0||!ot[Xe].compile_success){Ke=!1;break}}else Ke=!1;return Ke}function ft(ot,Ke=""){let Xe=[];for(let qe=0;qe<ot.length;qe++){let tt=ot[qe],Qe=Ke?`${Ke}/${tt.name}`:`${tt.name}`;Xe.push({title:tt.name,type:tt.type,isLeaf:tt.type!=="tree",key:Qe})}return Xe}function ke(ot,Ke,Xe){for(let qe=0;qe<ot.length;qe++){let tt=ot[qe];if(tt.key===Ke){tt.children=Xe;break}tt.children&&ke(tt.children,Ke,Xe)}return ot}function Pe(ot,Ke,Xe){let qe;return function(){let tt=this,Qe=arguments,ie=function(){qe=null,Xe||ot.apply(tt,Qe)},a=Xe&&!qe;clearTimeout(qe),qe=setTimeout(ie,Ke),a&&ot.apply(tt,Qe)}}const Be=!0,fe=le.Z.API_SERVER},86197:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return qe}});var le=ge(59301),ye={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ft=ge(92310),ke=ge.n(ft),Pe=ge(71418),Be=ge(2859),fe=ge(57193),ot=ge(63949),Ke=(tt,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(tt,Qe)).next())}),qe=({data:tt,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),[de,se]=(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)),tt!=null&&tt.visible?(document.body.setAttribute("data-custom","y-hidden"),ae.current.innerHTML=" html { overflow-y: hidden; }",tt!=null&&tt.src&&Re()):(document.body.removeAttribute("data-custom"),ae.current&&(document.head.removeChild(ae.current),ae.current=null))},[tt==null?void 0:tt.visible]);const Re=()=>Ke(void 0,null,function*(){se(!0),Se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ie=yield(0,ot.ZJ)(tt==null?void 0:tt.src);z.current.src="",z.current.src=Ie,z.current.onload=function(){Ln()},se(!1),Se("")}),Ae=()=>{document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",b()},Gt=Ie=>Ke(void 0,null,function*(){se(!0),Se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ut=yield(0,fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:tt.title,file:Ie.dataUrl}});ut!=null&&ut.id&&!E?(yield(0,fe.ZP)(`/api/attachments/${tt.id}/add_subitem.json`,{method:"post",body:{subitem_id:ut==null?void 0:ut.id,settings:JSON.stringify(Ie.state)}})).status===0&&x():ut!=null&&ut.id&&x(ut),document.body.removeAttribute("data-custom"),ae.current.innerHTML=" ",se(!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(ct=>{const gt=document.querySelector(ct.name);gt&>.setAttribute("title",ct.title)})},Ln=()=>{ee.current=new Be.hP(z.current),ee.current.targetRoot=te.current,ee.current.addEventListener("render",Gt),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(),tt!=null&&tt.snapshotData&&ee.current.restoreState(tt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),un()},300)};return le.createElement(le.Fragment,null,(tt==null?void 0:tt.visible)&&le.createElement(Pe.Z,{spinning:de,tip:we,style:{position:"absolute"}},le.createElement("div",{ref:te,className:ke()(ye.imageDimensions,Qe,ie?ye.fullWidth:""),style:a},le.createElement("img",{className:ye.img,ref:z}))))}},24638:function(Ze,Bt,ge){"use strict";var le=ge(59301),ye=ge(95237),ft=ge(43604),ke=ge(99313),Pe=ge(3113),Be=ge(76818),fe=ge(27431),ot=ge(48136),Ke=ge(59301);const Xe=(0,le.forwardRef)(({callback:qe,showSaveButton:tt,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:Ke.createElement(ye.Z,{className:fe.Z.lists,gutter:[10,10]},b.map((ee,ae)=>Ke.createElement(ft.Z,{flex:"110px",className:fe.Z.item},Ke.createElement("div",null,Ke.createElement(Be.Z,{value:`$$${ee.value}$$`}),ee.name),Ke.createElement("div",{className:fe.Z.children},ee.children.map((te,de)=>Ke.createElement("div",{key:de},Ke.createElement("h1",null,te.name),Ke.createElement(ye.Z,{gutter:[10,10]},te.data.map((se,we)=>Ke.createElement(ft.Z,{key:we,onClick:()=>y(se),className:fe.Z.diamond},Ke.createElement(Be.Z,{value:"`$$"+se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ke.createElement(ye.Z,{className:fe.Z.lists,gutter:[10,10]},x.map((ee,ae)=>Ke.createElement(ft.Z,{flex:"110px",className:fe.Z.item},Ke.createElement("div",null,Ke.createElement(Be.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ke.createElement("div",{className:fe.Z.children},ee.children.map((te,de)=>Ke.createElement("div",{key:de},te.name&&Ke.createElement("h1",null,te.name),Ke.createElement(ye.Z,{gutter:[10,10]},te.data.map((se,we)=>Ke.createElement(ft.Z,{key:we,onClick:()=>y(se),className:fe.Z.diamond},Ke.createElement(Be.Z,{value:"`$$"+se.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ae=ee.innerText;return qe&&qe(ae),ae};return(0,le.useImperativeHandle)(ie,()=>({getData:z})),Ke.createElement("div",{className:fe.Z.mathWrap},Ke.createElement(ke.default,{defaultActiveKey:"1",items:E}),Ke.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||""),tt&&Ke.createElement("div",{className:fe.Z.button},Ke.createElement(Pe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Bt.Z=Xe},97041:function(Ze,Bt,ge){"use strict";ge.d(Bt,{z:function(){return gt},Z:function(){return Ot}});var le=ge(59301),ye=ge(54580),ft=ge(8591),ke=ge(43418),Pe=ge(3113),Be=ge(78323),fe=ge(12480),ot=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,tt=(rt,$t,vt)=>$t in rt?ot(rt,$t,{enumerable:!0,configurable:!0,writable:!0,value:vt}):rt[$t]=vt,Qe=(rt,$t)=>{for(var vt in $t||($t={}))Xe.call($t,vt)&&tt(rt,vt,$t[vt]);if(Ke)for(var vt of Ke($t))qe.call($t,vt)&&tt(rt,vt,$t[vt]);return rt},ie=(rt,$t,vt)=>new Promise((mn,pe)=>{var ze=lt=>{try{Dt(vt.next(lt))}catch(Lt){pe(Lt)}},ht=lt=>{try{Dt(vt.throw(lt))}catch(Lt){pe(Lt)}},Dt=lt=>lt.done?mn(lt.value):Promise.resolve(lt.value).then(ze,ht);Dt((vt=vt.apply(rt,$t)).next())});const a="\u3000\u3000";function b(rt){var $t=["Bytes","KB","MB","GB","TB"];if(rt==0)return"0 Byte";var vt=parseInt(""+Math.floor(Math.log(rt)/Math.log(1024)),10);return(rt/Math.pow(1024,vt)).toFixed(1)+" "+$t[vt]}var x=({value:rt=[],action:$t,onChange:vt,className:mn,maxSize:pe=150,title:ze="\u6587\u4EF6\u4E0A\u4F20",accept:ht=null})=>{const Dt={multiple:!1,fileList:rt,accept:ht,withCredentials:!0,beforeUpload:Lt=>Lt.size/1024/1024<pe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${pe}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(Lt){var ue,nt,wt,gn;let tn=[...Lt.fileList];if(tn=tn.map(Ve=>(Ve.name.indexOf(a)===-1&&(Ve.name=`${Ve.name}${a}${b(Ve.size)}`),Qe({},Ve))),Lt.file.status==="done"&&((nt=(ue=Lt.file)==null?void 0:ue.response)==null?void 0:nt.status)===-1){message.error((gn=(wt=Lt.file)==null?void 0:wt.response)==null?void 0:gn.message),vt([]);return}vt(tn)},onRemove:Lt=>ie(void 0,null,function*(){const ue=Lt.size/1024/1024;return Lt.status==="uploading"?!0:ue<pe&&(Lt.response?Lt.response.id:Lt.uid)?yield removeAttachment(Lt.response?Lt.response.id:Lt.id):!0})};function lt(Lt){Lt.preventDefault(),Lt.stopPropagation()}return React.createElement("div",{className:`single-upload ${mn||""}`},React.createElement(Upload,Qe({},Dt),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},ze),React.createElement("span",{onClick:lt,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",pe,"M)"," ")))},y=ge(61481),E=ge(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,de=(rt,$t,vt)=>$t in rt?z(rt,$t,{enumerable:!0,configurable:!0,writable:!0,value:vt}):rt[$t]=vt,se=(rt,$t)=>{for(var vt in $t||($t={}))ae.call($t,vt)&&de(rt,vt,$t[vt]);if(ee)for(var vt of ee($t))te.call($t,vt)&&de(rt,vt,$t[vt]);return rt};const we=rt=>React.createElement("svg",se({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,Gt=Object.prototype.hasOwnProperty,un=Object.prototype.propertyIsEnumerable,Ln=(rt,$t,vt)=>$t in rt?Re(rt,$t,{enumerable:!0,configurable:!0,writable:!0,value:vt}):rt[$t]=vt,Ie=(rt,$t)=>{for(var vt in $t||($t={}))Gt.call($t,vt)&&Ln(rt,vt,$t[vt]);if(Ae)for(var vt of Ae($t))un.call($t,vt)&&Ln(rt,vt,$t[vt]);return rt},ut=(rt,$t,vt)=>new Promise((mn,pe)=>{var ze=lt=>{try{Dt(vt.next(lt))}catch(Lt){pe(Lt)}},ht=lt=>{try{Dt(vt.throw(lt))}catch(Lt){pe(Lt)}},Dt=lt=>lt.done?mn(lt.value):Promise.resolve(lt.value).then(ze,ht);Dt((vt=vt.apply(rt,$t)).next())});const{Dragger:ct}=ye.default;function gt(rt){let $t=[];return rt&&rt.length>0&&($t=rt.map(vt=>({uid:vt.id,id:vt.id,name:vt.title+a+vt.filesize,url:vt.url,filesize:vt.filesize,status:"done",response:{id:vt.id}}))),$t}var Ot=({value:rt,onChange:$t,action:vt,data:mn,className:pe,maxSize:ze=150,title:ht="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Dt=!1,accept:lt="",additionalText:Lt,isDragger:ue,number:nt=1e3,aloneClear:wt=!1,realTimeRemove:gn=!0,uploadText:tn,setFileProgress:Ve,showFileProgress:Ee})=>{const[Le,Ye]=(0,le.useState)(!1);let[Je,yt]=(0,le.useState)(rt||[]),[en,it]=(0,le.useState)(1);(0,le.useEffect)(()=>{rt&&(en===1&&yt([...rt]),it(2),nt===(rt==null?void 0:rt.length)&&Ye(!0))},[rt]);const kt=()=>{setTimeout(()=>{Je.pop(),yt([...Je])},500)};Ee&&Ve(Je.some(Nt=>Nt.status==="uploading"));const rn={multiple:!0,disabled:Le,accept:lt,withCredentials:!0,fileList:Je,beforeUpload:(Nt,zn)=>{const In=Nt.size/1024/1024;return Je.concat(zn).length>nt?(Je.pop(),yt([...Je]),ft.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${nt}\u4E2A\u6587\u4EF6`),wt?Promise.reject():(kt(),!1)):In<ze?!0:(ft.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ze}MB).`),wt?Promise.reject():(kt(),!1))},data:mn,action:vt||`${Be.Z.API_SERVER}/api/attachments.json`,onChange(Nt){var zn,In,Gn,Bn;if(Nt.file.status==="removed"?Je=Nt.fileList:Je=(0,E.uniqBy)([...Nt.fileList,...Je],"uid"),Nt.file.status==="done"&&((In=(zn=Nt.file)==null?void 0:zn.response)==null?void 0:In.status)===-1){ft.ZP.error((Bn=(Gn=Nt.file)==null?void 0:Gn.response)==null?void 0:Bn.message);return}Je.length>=nt?Ye(!0):Ye(!1),yt([...Je]),Je=Je.map(bn=>{var Ce,Me;return(Ce=bn==null?void 0:bn.response)!=null&&Ce.id&&(bn.url=(Me=bn==null?void 0:bn.response)==null?void 0:Me.url),bn.name.indexOf(a)===-1&&(bn.name=`${bn.name}${a}${b(bn.size)}`),Ie({},bn)}),console.log("info:",Nt,Je),$t(Je)},onRemove:Nt=>ut(void 0,null,function*(){if(!gn)return!0;const zn=()=>ut(void 0,null,function*(){if(Nt.response?Nt.response.id:Nt.id){let Gn=yield(0,fe.JZ)(Nt.response?Nt.response.id:Nt.uid);return Promise.resolve(Gn)}else return!0});return Dt?new Promise((In,Gn)=>{ke.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:()=>ut(void 0,null,function*(){const Bn=yield zn();ft.ZP.success("\u5220\u9664\u6210\u529F"),In(!0)}),onCancel:()=>In(!1)})}):yield zn()})};function Ft(Nt){Nt.preventDefault(),Nt.stopPropagation()}return le.createElement("div",{className:`multi-upload ${pe||""}`},ue&&le.createElement(ct,Ie({},rn),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",ze,"MB)"," "),Lt),!ue&&le.createElement(ye.default,Ie({},rn),le.createElement(Pe.ZP,{disabled:Le,className:"upload_button"},le.createElement("img",{className:"aBtn_img",src:Se}),ht),le.createElement("span",{onClick:Ft,className:"upload_text"},tn||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${ze}MB)`)))}},63347:function(Ze,Bt,ge){"use strict";ge.d(Bt,{h:function(){return ee}});var le=ge(59301),ye=ge(57809),ft=ge(78241),ke=ge(3113),Pe=ge(89780),Be=ge.n(Pe),fe=ge(4887),ot=ge(37068),Ke=Object.defineProperty,Xe=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,a=(ae,te,de)=>te in ae?Ke(ae,te,{enumerable:!0,configurable:!0,writable:!0,value:de}):ae[te]=de,b=(ae,te)=>{for(var de in te||(te={}))Qe.call(te,de)&&a(ae,de,te[de]);if(tt)for(var de of tt(te))ie.call(te,de)&&a(ae,de,te[de]);return ae},x=(ae,te)=>Xe(ae,qe(te));const y=ye.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"]};Bt.Z=({callback:ae,onCancel:te})=>{const[de,se]=(0,le.useState)("python");function we(Re){se(z[Re][1])}function Se(Re){ae(Re)}return le.createElement(ft.default,x(b({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Se,style:{width:500}}),le.createElement(ft.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},le.createElement(ye.default,{getPopupContainer:Re=>Re.parentNode,onChange:we},Object.keys(z).map(Re=>le.createElement(y,{key:Re,value:Re},z[Re][0])))),le.createElement(ft.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},le.createElement(ee,{mode:de})),le.createElement("div",{className:"flex-container flex-end"},le.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),le.createElement(ke.ZP,{type:"ghost",onClick:te},"\u53D6\u6D88")))};function ee({value:ae,onChange:te,mode:de,options:se={}}){const we=(0,le.useRef)(),[Se,Re]=(0,le.useState)();return(0,le.useEffect)(()=>{if(Se){let Ae=function(Gt){const un=Gt.getValue();te&&te(un)};return Se.on("change",Ae),()=>{Se.off("change",Ae)}}},[Se,te]),(0,le.useEffect)(()=>{Se&&Se.setOption("mode",de)},[Se,de]),(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:de,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},se));Re(Ae)}},[we.current,Se]),le.createElement("div",{className:"my-codemirror-container"},le.createElement("textarea",{ref:we}))}},88871:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ao}});var le=ge(59301),ye=ge(89780),ft=ge.n(ye),ke=ge(76374),Pe=ge(4887),Be=ge(6313),fe=ge(25717),ot=ge(99498),Ke=ge(25419),Xe=ge(67549),qe=ge(76818),tt=({value:$e="",className:Fe,showTextOnly:xe,showLines:It,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 de({onActionCallback:$e,title:Fe,icon:xe,actionName:It,className:Wt="",children:Qt}){function Kn(){$e(It)}return Qe.createElement("a",{title:Fe,className:Wt,onClick:Kn},Qe.createElement("i",{className:`${xe}`}),Qt)}var se=({watch:$e,showNullButton:Fe,showNullProgramButton:xe,onActionCallback:It,fullScreen:Wt,insertTemp:Qt,hidetoolBar:Kn,extraUse:pn})=>{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,fn)=>Qe.createElement("li",{key:fn},ma.actionName?Qe.createElement(de,ae(ee({},ma),{onActionCallback:It})):Qe.createElement("span",{className:"v-line"}))),Fe?Qe.createElement("li",null,Qe.createElement(de,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:It},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(de,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:It},Qe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Qe.createElement("li",null,Qe.createElement(de,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:It},Qe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Qt&&Qe.createElement("li",null,Qe.createElement(de,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qt}`,onActionCallback:It},Qe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),pn&&Qe.createElement("li",null,pn),Qe.createElement("li",{className:"btn-full-screen"},Qe.createElement(de,{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:It})))},we=ge(81123),Se=ge(78241),Re=ge(92832),Ae=ge(3113),Gt=Object.defineProperty,un=Object.defineProperties,Ln=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,gt=($e,Fe,xe)=>Fe in $e?Gt($e,Fe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):$e[Fe]=xe,Ot=($e,Fe)=>{for(var xe in Fe||(Fe={}))ut.call(Fe,xe)&>($e,xe,Fe[xe]);if(Ie)for(var xe of Ie(Fe))ct.call(Fe,xe)&>($e,xe,Fe[xe]);return $e},rt=($e,Fe)=>un($e,Ln(Fe));const $t={labelCol:{span:4},wrapperCol:{span:20}};var vt=({callback:$e,onCancel:Fe})=>{function xe(It){$e(It)}return le.createElement(Se.default,rt(Ot({},$t),{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")))},mn=ge(63347),pe=ge(90443),ze=ge(43418),ht=ge(95237),Dt=ge(86197),lt=ge(59301),Lt=({callback:$e,onCancel:Fe})=>{const xe=document.createElement("canvas"),It=xe.getContext("2d");xe.width=1e3,xe.height=800,It.fillStyle="#ffffff",It.fillRect(0,0,xe.width,xe.height);const Wt=xe.toDataURL("image/png");return lt.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},lt.createElement(ht.Z,{style:{height:"100vh"}},lt.createElement(Dt.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 nt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(nt,go.CommandHandler),nt.prototype.canAlignSelection=function(){var $e=this.diagram;return!($e===null||$e.isReadOnly||$e.isModelReadOnly||$e.selection.count<2)},nt.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")},nt.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 It=xe.actualBounds.x+xe.actualBounds.width;Fe=Math.max(It,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")},nt.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")},nt.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 It=xe.actualBounds.y+xe.actualBounds.height;Fe=Math.max(It,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")},nt.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(It){It instanceof go.Link||It.move(new go.Point(xe-It.actualBounds.width/2,It.actualBounds.y))}),$e.commitTransaction("aligning Center X")}},nt.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(It){It instanceof go.Link||It.move(new go.Point(It.actualBounds.x,xe-It.actualBounds.height/2))}),$e.commitTransaction("aligning Center Y")}},nt.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(pn){pn instanceof go.Link||xe.push(pn)});for(var It=0;It<xe.length-1;It++){var Wt=xe[It],Qt=Wt.actualBounds.y+Wt.actualBounds.height+$e,Kn=xe[It+1];Kn.move(new go.Point(Wt.actualBounds.x,Qt))}Fe.commitTransaction("align Column")},nt.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(pn){pn instanceof go.Link||xe.push(pn)});for(var It=0;It<xe.length-1;It++){var Wt=xe[It],Qt=Wt.actualBounds.x+Wt.actualBounds.width+$e,Kn=xe[It+1];Kn.move(new go.Point(Qt,Wt.actualBounds.y))}Fe.commitTransaction("align Row")},nt.prototype.canRotate=function($e){var Fe=this.diagram;return!(Fe===null||Fe.isReadOnly||Fe.isModelReadOnly||Fe.selection.count<1)},nt.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())},nt.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 It=0;xe.parts.each(function(Wt){if(!Wt.isSelected){var Qt=Wt.zOrder;isNaN(Qt)?Wt.zOrder=0:It=Math.max(It,Qt)}}),Fe.set(xe,It)}),$e.selection.each(function(xe){nt._assignZOrder(xe,Fe.get(xe.layer)+1)}),$e.commitTransaction("pullToFront")},nt.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 It=0;xe.parts.each(function(Wt){if(!Wt.isSelected){var Qt=Wt.zOrder;isNaN(Qt)?Wt.zOrder=0:It=Math.min(It,Qt)}}),Fe.set(xe,It)}),$e.selection.each(function(xe){nt._assignZOrder(xe,Fe.get(xe.layer)-1-nt._findGroupDepth(xe))}),$e.commitTransaction("pushToBack")},nt._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(It){nt._assignZOrder(It,Fe+1,xe)})},nt._findGroupDepth=function($e){if($e instanceof go.Group){var Fe=0;return $e.memberParts.each(function(xe){Fe=Math.max(Fe,nt._findGroupDepth(xe))}),Fe+1}else return 0},nt.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)}},nt.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},nt.prototype._arrowKeyMove=function(){var $e=this.diagram,Fe=$e.lastInput,xe=0,It=0;if(Fe.control||Fe.meta)xe=1,It=1;else if($e.grid!==null){var Wt=$e.grid.gridCellSize;It=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-It,Qt.actualBounds.y)):Fe.key==="Right"&&Qt.move(new go.Point(Qt.actualBounds.x+It,Qt.actualBounds.y))}),$e.commitTransaction("arrowKeyMove")},nt.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))},nt.prototype._findNearestPartTowards=function($e){var Fe=this.diagram.selection.first();if(Fe===null)return null;for(var xe=Fe.actualBounds.center,It=this._getAllParts(),Wt=1/0,Qt=Fe,Kn=0;Kn<It.length;Kn++){var pn=It[Kn];if(pn!==Fe&&pn.canSelect()){var Zn=pn.actualBounds.center,ma=xe.directionPoint(Zn),fn=this._angleCloseness(ma,$e);if(fn<=45){var pt=xe.distanceSquaredPoint(Zn);pt*=1+Math.sin(fn*Math.PI/180),pt<Wt&&(Wt=pt,Qt=pn)}}}return Qt},nt.prototype._angleCloseness=function($e,Fe){return Math.min(Math.abs(Fe-$e),Math.min(Math.abs(Fe+360-$e),Math.abs(Fe-360-$e)))},nt.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 It=this._sortTreeChildrenByY(Fe).first();It!==null&&$e.select(It)}}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 pn=Qt.elt(Kn-1);pn!==null&&pn.isTreeExpanded&&!pn.isTreeLeaf;){var Zn=this._sortTreeChildrenByY(pn);pn=Zn.last()}pn!==null&&$e.select(pn)}else $e.select(Wt)}}else if(xe.key==="Down")if(Fe.isTreeExpanded&&!Fe.isTreeLeaf){var It=this._sortTreeChildrenByY(Fe).first();It!==null&&$e.select(It)}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)}},nt.prototype._sortTreeChildrenByY=function($e){var Fe=new go.List().addAll($e.findTreeChildrenNodes());return Fe.sort(function(xe,It){var Wt=xe.location,Qt=It.location;return Wt.y<Qt.y?-1:Wt.y>Qt.y?1:Wt.x<Qt.x?-1:Wt.x>Qt.x?1:0}),Fe},nt.prototype.copyToClipboard=function($e){go.CommandHandler.prototype.copyToClipboard.call(this,$e),this._lastPasteOffset.set(this.pasteOffset)},nt.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(nt.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(nt.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 wt=nt,gn=ge(87851),tn=ge(43604),Ve=ge(57193),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Le=ge(59301),Ye=($e,Fe,xe)=>new Promise((It,Wt)=>{var Qt=Zn=>{try{pn(xe.next(Zn))}catch(ma){Wt(ma)}},Kn=Zn=>{try{pn(xe.throw(Zn))}catch(ma){Wt(ma)}},pn=Zn=>Zn.done?It(Zn.value):Promise.resolve(Zn.value).then(Qt,Kn);pn((xe=xe.apply($e,Fe)).next())});function Je({onCancel:$e,callback:Fe}){let xe=(0,le.useRef)(),It=(0,le.useRef)(),Wt=(0,le.useRef)(),Qt=(0,le.useRef)(!1);const Kn=(0,le.useRef)(!1),[pn,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(It.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:Ct=>{var Ut=Ct.diagram.commandHandler.addTopLevelParts(Ct.diagram.selection,!0);Ut||Ct.diagram.currentTool.doCancel()},commandHandler:pt(wt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ct=>{var Ut=Ct.subject;Ut.location=Ut.location.copy().snapToGridPoint(Ct.diagram.grid.gridOrigin,Ct.diagram.grid.gridCellSize),setTimeout(()=>{Ct.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ct=>{var Ut=Ct.subject;setTimeout(()=>{Ct.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ct=>{var Ut=Ct.parameter.part;Ut.invalidateConnectedLinks();var ln=Ct.subject;Ct.diagram.toolManager.linkingTool.isForwards?ln.toNode.invalidateConnectedLinks():ln.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(Ct,Ut){var ln=(Vt,En)=>{Vt.handled=!0,Vt.diagram.model.commit(Tn=>{var Sn=En.part.adornedPart,la=new ue.E9().setRectSpot(Sn.actualBounds,Ct);la.subtract(Sn.location),la.scale(2,2),la.x+=Math.sign(la.x)*130,la.y+=Math.sign(la.y)*130,la.add(Sn.location),la.snapToGridPoint(Vt.diagram.grid.gridOrigin,Vt.diagram.grid.gridCellSize);var da=Tn.copyNodeData(Sn.data);Tn.setGroupKeyForNodeData(da,Tn.getGroupKeyForNodeData(Sn.data)),Tn.addNodeData(da);var Oo={from:Sn.key,to:Tn.getKeyForNodeData(da)};Tn.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:Ut,alignment:Ct,alignmentFocus:Ct.opposite(),width:Ct.equals(ue.z6.Top)||Ct.equals(ue.z6.Bottom)?25:18,height:Ct.equals(ue.z6.Top)||Ct.equals(ue.z6.Bottom)?18:25,fill:"orange",stroke:An.white,strokeWidth:4,mouseEnter:(Vt,En)=>En.fill="dodgerblue",mouseLeave:(Vt,En)=>En.fill="orange",isActionable:!0,click:ln,contextClick:ln})}function oo(Ct){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:(Ut,ln)=>ln.fill="dodgerblue",mouseLeave:(Ut,ln)=>ln.fill="orange",click:(Ut,ln)=>{Ut.diagram.commandHandler.showContextMenu(ln.part.adornedPart)}},Ct||{})}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(Ct,Ut){return(ln,Vt)=>{ln.handled=!0,ln.diagram.model.commit(En=>{En.set(Vt.part.adornedPart.data,Ct,Ut)})}}function ve(Ct,Ut){return Ut||(Ut="color"),pt(ue.bn,{width:16,height:16,stroke:"lightgray",fill:Ct,margin:1,background:"transparent",mouseEnter:(ln,Vt)=>Vt.stroke="dodgerblue",mouseLeave:(ln,Vt)=>Vt.stroke="lightgray",click:ga(Ut,Ct),contextClick:ga(Ut,Ct)})}function je(){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 He(){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 at(Ct,Ut){return Ut||(Ut="thickness"),pt(ue.bn,"LineH",{width:16,height:16,strokeWidth:Ct,margin:1,background:"transparent",mouseEnter:(ln,Vt)=>Vt.background="dodgerblue",mouseLeave:(ln,Vt)=>Vt.background="transparent",click:ga(Ut,Ct),contextClick:ga(Ut,Ct)})}function bt(Ct,Ut){return Ut||(Ut="dash"),pt(ue.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ct,margin:1,background:"transparent",mouseEnter:(ln,Vt)=>Vt.background="dodgerblue",mouseLeave:(ln,Vt)=>Vt.background="transparent",click:ga(Ut,Ct),contextClick:ga(Ut,Ct)})}function xt(){return[pt("ContextMenuButton",pt(ue.s_,"Horizontal",at(1),at(2),at(3),at(4))),pt("ContextMenuButton",pt(ue.s_,"Horizontal",bt(null),bt([2,4]),bt([4,4])))]}function St(Ct,Ut){return Ut||(Ut="figure"),pt(ue.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ct,margin:1,background:"transparent",mouseEnter:(ln,Vt)=>Vt.fill="dodgerblue",mouseLeave:(ln,Vt)=>Vt.fill="lightgray",click:ga(Ut,Ct),contextClick:ga(Ut,Ct)})}xe.current.nodeTemplate.contextMenu=pt("ContextMenu",pt("ContextMenuButton",pt(ue.s_,"Horizontal",St("Rectangle"),St("RoundedRectangle"),St("Ellipse"),St("Diamond"))),pt("ContextMenuButton",pt(ue.s_,"Horizontal",St("Parallelogram2"),St("ManualOperation"),St("Procedure"),St("Cylinder1"))),pt("ContextMenuButton",pt(ue.s_,"Horizontal",St("Terminator"),St("CreateRequest"),St("Document"),St("TriangleDown"))),je(),He(),xt()),xe.current.groupTemplate=pt(ue.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ue.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ct,Ut)=>{var ln=Ut.addMembers(Ut.diagram.selection,!0);ln||Ut.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",je(),He(),xt()),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",Ct=>Ct>=1?10:0),new ue.KX("toShortLength","dir",Ct=>Ct>=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",Ct=>Ct===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",Ct=>Ct>=1),new ue.KX("width","thickness",Ct=>7+3*Ct),new ue.KX("height","thickness",Ct=>7+3*Ct),new ue.KX("segmentOffset","thickness",Ct=>new ue.E9(-15,4+1.5*Ct))),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",Ct=>Ct===2),new ue.KX("width","thickness",Ct=>7+3*Ct),new ue.KX("height","thickness",Ct=>7+3*Ct),new ue.KX("segmentOffset","thickness",Ct=>new ue.E9(-15,4+1.5*Ct))),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:et(2)},new ue.KX("pathPattern","thickness",et)),oo({alignmentFocus:new ue.z6(0,0,-6,-4)}));function et(Ct){return pt(ue.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ct+4).toString()+" H3"})}function sn(Ct){var Ut="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ct===0?Ut="M0 0 M16 16 M0 8 L16 8":Ct===2&&(Ut="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),pt(ue.bn,{geometryString:Ut,margin:2,background:"transparent",mouseEnter:(ln,Vt)=>Vt.background="dodgerblue",mouseLeave:(ln,Vt)=>Vt.background="transparent",click:ga("dir",Ct),contextClick:ga("dir",Ct)})}function an(Ct){var Ut=(ln,Vt)=>{ln.handled=!0,ln.diagram.model.commit(En=>{var Tn=Vt.part.adornedPart;En.set(Tn.data,Ct?"toSpot":"fromSpot",ue.z6.stringify(ue.z6.AllSides)),(Ct?Tn.toNode:Tn.fromNode).invalidateConnectedLinks()})};return pt(ue.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ln,Vt)=>Vt.background="dodgerblue",mouseLeave:(ln,Vt)=>Vt.background="transparent",click:Ut,contextClick:Ut})}function Te(Ct,Ut){var ln=0,Vt=ue.z6.RightSide;Ct.equals(ue.z6.Top)?(ln=270,Vt=ue.z6.TopSide):Ct.equals(ue.z6.Left)?(ln=180,Vt=ue.z6.LeftSide):Ct.equals(ue.z6.Bottom)&&(ln=90,Vt=ue.z6.BottomSide),Ut||(ln-=180);var En=(Tn,Sn)=>{Tn.handled=!0,Tn.diagram.model.commit(la=>{var da=Sn.part.adornedPart;la.set(da.data,Ut?"toSpot":"fromSpot",ue.z6.stringify(Vt)),(Ut?da.toNode:da.fromNode).invalidateConnectedLinks()})};return pt(ue.bn,{alignment:Ct,alignmentFocus:Ct.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ln,background:"transparent",mouseEnter:(Tn,Sn)=>Sn.background="dodgerblue",mouseLeave:(Tn,Sn)=>Sn.background="transparent",click:En,contextClick:En})}xe.current.linkTemplate.contextMenu=pt("ContextMenu",He(),xt(),pt("ContextMenuButton",pt(ue.s_,"Horizontal",sn(0),sn(1),sn(2))),pt("ContextMenuButton",pt(ue.s_,"Horizontal",pt(ue.s_,"Spot",an(!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)},an(!0),Te(ue.z6.Top,!0),Te(ue.z6.Left,!0),Te(ue.z6.Right,!0),Te(ue.z6.Bottom,!0)))));const _n=`{ "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(Ct){return console.log("shapeName:",Ct),Vn.indexOf(Ct)>=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(Ct=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ct.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(Ct){var Ut;const ln=Ct.subject.part;var Vt=(Ut=document.activeElement)==null?void 0:Ut.value;typeof Vt=="string"&&Vt.trim()===""&&xe.current.model.commit(function(En){En.set(ln.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 fn=()=>Ye(this,null,function*(){var pt=xe.current.makeImage();const An=yield(0,Ve.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(pn+1),()=>{xe.current=null}),[]),Le.createElement("div",{ref:Kn,className:Qt.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},Le.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!pn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Le.createElement(ht.Z,null,Le.createElement(tn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Le.createElement(tn.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(pn+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:It,style:{height:"80vh"}}))),Le.createElement("div",{className:"tr"},Le.createElement(Ae.ZP,{size:"large",onClick:fn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var yt=Je,en=ge(5112),it=ge(5871);const kt=en.ZP.Group,rn={margin:"0 8px"};var Ft=({callback:$e,onCancel:Fe})=>{function xe(It){$e(It)}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:rn},"\u5355\u5143\u683C\u6570\uFF1A"),le.createElement("span",{style:rn},"\u884C\u6570"),le.createElement(Se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},le.createElement(it.Z,null)),le.createElement("span",{style:rn},"\u5217\u6570"),le.createElement(Se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},le.createElement(it.Z,null))),le.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},le.createElement("span",{style:rn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),le.createElement(Se.default.Item,{name:"align"},le.createElement(kt,null,le.createElement(en.ZP,{value:"default"},le.createElement("i",{className:"fa fa-align-justify"})),le.createElement(en.ZP,{value:"left"},le.createElement("i",{className:"fa fa-align-left"})),le.createElement(en.ZP,{value:"center"},le.createElement("i",{className:"fa fa-align-center"})),le.createElement(en.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")))},Nt=ge(78673),zn=ge(63089),In=ge.n(zn),Bn=(0,le.forwardRef)(({use3d:$e,width:Fe,height:xe,callback:It,showSaveButton:Wt},Qt)=>{const Kn=(0,le.useRef)(),pn=(0,le.useRef)(),[Zn,ma]=(0,le.useState)(!1),fn=(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)(()=>{pn.current=new(In())(fn.current,!0),window.onload=function(){pn.current.inject("applet_container")}},[]);const pt=()=>{var An=window.ggbApplet.getPNGBase64(1,!0,72);return It&&It(An),An};return(0,le.useEffect)(()=>{fn.current.appName=Zn?"3D":"graphing",pn.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(ht.Z,{align:"middle"},le.createElement(tn.Z,{flex:1},le.createElement(Nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Zn,onChange:An=>ma(An)})),le.createElement(tn.Z,null,le.createElement(Ae.ZP,{size:"large",onClick:pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),bn=ge(24638),Ce=ge(1012),Me=ge(8591);const dt="link",Mt="upload-image",Zt="add-flowchart",dn="draw-image",Tt="add-flowchart",qt="code-block",cn="add-table",Nn="------------",yn={default:Nn,left:`:${Nn}`,center:`:${Nn}:`,right:`${Nn}:`};var Wn=ge(66991),oa=($e,Fe,xe)=>new Promise((It,Wt)=>{var Qt=Zn=>{try{pn(xe.next(Zn))}catch(ma){Wt(ma)}},Kn=Zn=>{try{pn(xe.throw(Zn))}catch(ma){Wt(ma)}},pn=Zn=>Zn.done?It(Zn.value):Promise.resolve(Zn.value).then(Qt,Kn);pn((xe=xe.apply($e,Fe)).next())});function qn(){}let Pa=0;const Yn=1e4,Rn="\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={[dt]:"\u6DFB\u52A0\u94FE\u63A5",[qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Mt]:"\u6DFB\u52A0\u56FE\u7247",[dn]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[cn]:"\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:It=400,miniToolbar:Wt=!1,isFocus:Qt=!1,watch:Kn,insertTemp:pn,mode:Zn="markdown",id:ma="markdown-editor-id",showResizeBar:fn=!1,noStorage:pt=!1,showNullButton:An=!1,showNullProgramButton:Ca=!1,hidetoolBar:oo=!1,fullScreen:ga=!1,onBlur:ve,onCMBeforeChange:je,onFullScreen:He,className:at="",disablePaste:bt=!1,disabled:xt=!1,disabledFill:St=!1,placeholder:et="",values:sn="",extraUse:an})=>{const[Te,_n]=(0,le.useState)(null),[Vn,fa]=(0,le.useState)($e),[va,Ct]=(0,le.useState)(Kn),[Ut,ln]=(0,le.useState)(ga),[Vt,En]=(0,le.useState)(""),[Tn,Sn]=(0,le.useState)(0),[la,da]=(0,le.useState)(It),[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)(),zo=(0,le.useRef)(),$o=(0,le.useRef)(),bo=()=>oa(void 0,null,function*(){var nn;const At=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:fo.current}});(nn=At==null?void 0:At.attachments)!=null&&nn.length&&(console.log("cm:",Te,po),At.attachments.map(Yt=>{Yt.content_type.indexOf("image")>-1?Te.replaceSelection(``):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 nn=window.scrollY||window.pageYOffset;fa(sn),Te==null||Te.setValue(sn),window.scrollTo(0,nn)},[sn]),(0,le.useEffect)(()=>{He==null||He(Ut)},[Ut]),(0,le.useEffect)(()=>{if(po.current){let nn=function(Yt,Kt){var ea;if(bt){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,pe.I)(Ka,lo=>{var Cn,Xn,pa;lo.id?((Cn=Ka==null?void 0:Ka.type)==null?void 0:Cn.indexOf("image"))>-1?At.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?At.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?At.replaceSelection(`<a href="/api/attachments/${lo.id}?type=${Ka.type}&disposition=inline" target="_blank">${Ka.name}</a>`):ra.includes(jo)?At.replaceSelection(`<a href="/api/attachments/${lo.id}?type=office&disposition=inline" target="_blank">${Ka.name}</a>`):At.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 At=ft().fromTextArea(po.current,{mode:Zn,lineNumbers:!Wt,lineWrapping:!0,value:$e,autoCloseTags:!Ca,autoCloseBrackets:!0});return At.on("keyup",function(Yt,Kt){Kt.keyCode===8&&(Yt.getValue()==""?At.setOption("placeholder",et):At.setOption("placeholder",null))}),At.on("keydown",function(Yt,Kt){if(Kt.keyCode===8){var ea=$n(Yt);ea&&Kt.preventDefault()}}),Qt&&At.focus(),At.on("paste",nn),At.on("dragleave",function(Yt,Kt){To.current.classList.remove("mouse-hover-md")}),xt&&At.on("beforeChange",function(Yt,Kt){(Kt.origin==="paste"||Kt.origin==="+input")&&Kt.cancel()}),_n(At),()=>{At.off("paste",nn)}}},[]);const rr=(0,le.useCallback)(()=>{if(To.current)try{}catch(nn){console.log(nn,"---- to set md editor body height")}},[la,To,Ut]);(0,le.useEffect)(()=>{function nn(){let At=new ke.Z(Yt=>{for(let Kt of Yt)(Kt.target.offsetHeight>0||Kt.target.offsetWidth>0)&&(rr(),Te.setSize("100%","100%"),Te.refresh())});return At.observe(po.current.parentElement),At}if(Te){const At=nn();return()=>{var Yt,Kt;(Yt=po.current)!=null&&Yt.parentElement&&At.unobserve((Kt=po.current)==null?void 0:Kt.parentElement)}}},[Te,rr]),(0,le.useEffect)(()=>{if(Te){let nn=[];for(const[At,Yt]of Object.entries(no)){let Kt={[At]:()=>{wa(Yt)}};nn.push(Kt),Te.addKeyMap(Kt)}return ar.current=setInterval(()=>{Jo.current&&bo()},4e3),()=>{clearInterval(ar.current);for(let At of nn)Te.removeKeyMap(At)}}},[Te]),(0,le.useEffect)(()=>{ga!==Ut&&ln(ga)},[ga]),(0,Wn.Z)(()=>{if(!pt&&Tn>0){let nn=new Date().getTime(),At=window.sessionStorage.getItem(ma);nn>=Tn+Yn&&(!At||At!==Vn)&&(window.sessionStorage.setItem(ma,Vn),vo(!0))}},Yn),(0,le.useEffect)(()=>{Ct(Kn)},[Te,Kn]),(0,le.useEffect)(()=>{Te&&Qt&&Te.focus()},[Te,Qt]),(0,le.useEffect)(()=>{if(va&&Te){let nn=function(Yt){let Kt=Yt.target;if($o.current){let ea=Kt.scrollTop/Kt.scrollHeight;$o.current.scrollTop=$o.current.scrollHeight*ea}};const At=Te.getScrollerElement();return At.addEventListener("scroll",nn),()=>{At.removeEventListener("scroll",nn)}}},[Te,va]),(0,le.useEffect)(()=>{if(Te&&je){let nn=function(At,Yt){je(At,Yt)};return Te.on("beforeChange",nn),()=>{Te.off("beforeChange",nn)}}},[Te,je]),(0,le.useEffect)(()=>{if(Te&&ve){let nn=function(){ve(Te.getValue())};return Te.on("blur",nn),()=>{Te.off("blur",nn)}}},[Te,ve]);function $n(nn,At){var Yt=nn.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:",At,nn,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 nn=function(At,Yt){const Kt=At.getValue();fa(Kt),Sn(new Date().getTime()),At.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Fe&&(Ca?Fe(Kt,Fa(Kt)):Fe(Kt))};return Te.on("change",nn),()=>{Te.off("change",nn)}}},[Te,Fe]),(0,le.useEffect)(()=>{if(Te)if($e==null)Te.setValue(""),fa("");else{const nn=window.scrollY||window.pageYOffset;$e!==Te.getValue()&&(Te.setValue($e),fa($e),Te.setCursor(xt?1:Te.lineCount(),0),window.scrollTo(0,nn))}},[Te,$e]);const wa=(0,le.useCallback)(nn=>{const At=Te.getCursor(),Yt=Te.getSelection();let Kt=Yt.split(`
|
|
`);switch(nn){case"bold":return Te.replaceSelection("**"+Yt+"**"),Yt===""&&Te.setCursor(At.line,At.ch+2),Te.focus();case"italic":return Te.replaceSelection("*"+Yt+"*"),Yt===""&&Te.setCursor(At.line,At.ch+1),Te.focus();case"code":return Te.replaceSelection("`"+Yt+"`"),Yt===""&&Te.setCursor(At.line,At.ch+1),Te.focus();case"inline-latex":return En("inline-latex"),Te.focus();case"latex":return Te.replaceSelection("```latex\n"+Yt+"\n```"),Te.setCursor(At.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(At.line,At.ch),Te.replaceSelection(Rn),Te.focus();case"add-signal":return Yt===""&&Te.setCursor(At.line,At.ch),Te.replaceSelection(Ea),Te.focus();case"add-multiple":return Yt===""&&Te.setCursor(At.line,At.ch),Te.replaceSelection(ia),Te.focus();case"inster-template-1":return Yt===""&&Te.setCursor(At.line,At.ch),Te.replaceSelection($a),Te.focus();case"eraser":return Te.setValue(""),Te.focus();case"trigger-watch":return Ct(!va),Te.focus();case"trigger-full-screen":return ln(!Ut),Te.focus();case dt:En(dt);return;case qt:En(qt);return;case Mt:En(Mt);return;case dn:En(dn);return;case"maths-latex":En("maths-latex");return;case Zt:En(Zt);return;case cn:En(cn);return;default:throw new Error}},[Te,va,Ut]),Ia=(0,le.useCallback)((nn,At)=>{var Yt,Kt,ea,Ba,Aa,Da;switch(En(""),Vt){case dt:const{title:Cn,link:Xn}=nn;return Te.replaceSelection(`[${Cn}](${Xn})`),Te.focus();case qt:const{language:pa,content:Un}=nn;return Te.replaceSelection(["```"+pa,Un,"```"].join(`
|
|
`)),Te.focus();case"maths-latex":for(var Ya=atob(nn),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,pe.I)(lo,Vo=>{Vo.id?Te.replaceSelection(``):(Vo==null?void 0:Vo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Te.replaceSelection("`$$"+nn+"$$`");break;case Mt:case dn:case Tt:const{src:ta,alt:Ja}=nn,ba=At,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 cn:const{row:Wo,col:Fr,align:wi}=nn;let Br=`
|
|
`;for(let Vo=0;Vo<Wo;Vo++){let Hr=[],jr=[];for(let Wr=0;Wr<Fr;Wr++)Vo===1&&jr.push(yn[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 dt:return le.createElement(vt,{callback:Ia,onCancel:io});case qt:return le.createElement(mn.Z,{callback:Ia,onCancel:io});case Mt:return le.createElement(pe.Z,{callback:Ia,onCancel:io});case Zt:return le.createElement(yt,{callback:Ia,onCancel:io});case cn:return le.createElement(Ft,{callback:Ia,onCancel:io});case"maths-latex":return le.createElement(Bn,{showSaveButton:!0,callback:Ia});case"inline-latex":return le.createElement(bn.Z,{showSaveButton:!0,callback:Ia});default:return null}},[Vt]);function io(){En("")}(0,le.useEffect)(()=>{if(zo.current){let nn=function(Aa){ea=!0,Ba=Aa.pageY},At=function(){ea=!1},Yt=function(Aa){if(ea){let Da=Aa.pageY-Ba;Da<0&&(Da=0),Da>300&&(Da=300);let Ya=It+Da+"px";da(Ya)}},Kt=zo.current,ea=!1,Ba=0;return Kt.addEventListener("mousedown",nn),document.addEventListener("mousemove",Yt),document.addEventListener("mouseup",At),()=>{Kt.removeEventListener("mousedown",nn),document.removeEventListener("mousemove",Yt),document.removeEventListener("mouseup",At)}}},[Te,zo]),(0,le.useEffect)(()=>{da(It)},[It]);const Mo=Oa(xe),br=Oa(la),ur={width:Mo,height:br},Ra=(0,le.useMemo)(()=>{if(Tn){let nn=new Date(Tn),At=nn.getHours(),Yt=nn.getMinutes(),Kt=nn.getSeconds();return At=At<10?"0"+At:At,Yt=Yt<10?"0"+Yt:Yt,Kt=Kt<10?"0"+Kt:Kt,`${At}:${Yt}:${Kt}`}return 0},[Tn]),Fa=nn=>{const At=[];if(Ca){let Yt=-1;nn=nn.replace(/(@▁▁@|@▁@)/g,function(Kt,ea,Ba){At.push({multiLine:Kt!==Ea})})}return At};function Ho(){window.sessionStorage.removeItem(ma),vo(!1),Sn(0)}function Er(){vo(!1),Sn(0),Te.setValue(window.sessionStorage.getItem(ma))}(0,le.useEffect)(()=>{Lo[Vt]&&Vt!==dn&&Vt!==Zt&&setTimeout(()=>{const nn=document.getElementsByClassName("markdown-popup-form")[0],At=window.innerWidth/2-nn.offsetWidth/2,Yt=window.innerHeight/2-nn.offsetHeight/2;Zo(At),ya(Yt)},0)},[Vt]);const $r=nn=>{nn.preventDefault();const At=nn.clientX-or,Yt=nn.clientY-So;document.body.onmousemove=Kt=>{let ea=Kt.clientX-At,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)),zr(Kt.clientX,Kt.clientY,At,Yt)&&(Zo(ea),ya(Ba))},document.body.onmouseup=function(){document.body.onmousemove=null}},zr=(nn,At,Yt,Kt)=>{const ea=document.body.clientHeight,Ba=document.body.clientWidth;return nn<20&&Yt>nn||nn>Ba-20&&Yt<nn||At<20&&Kt>At||At>ea-20&&Kt<At?(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 ${at} ${va?"on-preview":""} ${Wt?"mini":""} ${Ut?"full-screen":""}`,style:ur},le.createElement(se,{insertTemp:pn,watch:va,fullScreen:Ut,showNullButton:An,showNullProgramButton:Ca,onActionCallback:wa,hidetoolBar:oo,extraUse:an}),le.createElement("div",{className:"markdown-editor-body"},le.createElement("div",{className:"codemirror-container"},le.createElement("textarea",{ref:po,placeholder:et})),va?le.createElement("div",{ref:$o,className:"preview-container"},Zn==="stex"&&le.createElement(tt,{value:Vn}),Zn!=="stex"&&le.createElement(qe.Z,{disabledFill:St,showProgramFill:Ca,value:Vn})):null))),fn?le.createElement("a",{ref:zo,className:"editor-resize"}):null,Vt===dn&&le.createElement(Lt,{callback:Ia,onCancel:io}),Vt===Zt&&le.createElement(yt,{callback:Ia,onCancel:io}),le.createElement(we.Z,null,Lo[Vt]&&Vt!==dn&&Vt!==Zt?le.createElement(ze.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))}},90443:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return de},I:function(){return we}});var le=ge(78241),ye=ge(8591),ft=ge(92832),ke=ge(81327),Pe=ge(5871),Be=ge(5112),fe=ge(3113),ot=ge(88457),Ke=ge(59301),Xe=ge(81779),qe=ge(59301),tt=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?tt(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 de=({callback:Se,onCancel:Re})=>{const[Ae]=ee();let Gt=(0,Ke.useRef)();function un(ut){Gt.current.width=Ae.getFieldValue("width"),Gt.current.align=Ae.getFieldValue("align"),Se(ut,Gt.current)}function Ln(ut,ct){if(ut.status===-1){ye.ZP.error(ut.message);return}Ae.setFieldsValue({src:`/api/attachments/${ut.id}`,type:ct.type})}function Ie(ut){let ct=ut.target.files[0];Gt.current=ct,we(ct,Ln)}return qe.createElement(le.default,z(E({form:Ae},te),{className:"upload-image-panel",onFinish:un,style:{width:470,overflow:"hidden"}}),qe.createElement(le.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},qe.createElement("div",{className:"flex-container"},qe.createElement(le.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},qe.createElement(ft.default,{style:ae})),qe.createElement(se,{onFileChange:Ie}))),qe.createElement(le.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},qe.createElement(ft.default,{style:{width:264}})),qe.createElement(le.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},qe.createElement(ke.Z,null,qe.createElement(le.default.Item,{name:"width",style:{margin:0}},qe.createElement(Pe.Z,{style:{width:264}})),qe.createElement("span",{className:"ml8"},"%"))),qe.createElement(le.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},qe.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"}]})),qe.createElement("aside",null,qe.createElement(le.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},qe.createElement(fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),qe.createElement(fe.ZP,{type:"default",onClick:Re},"\u53D6\u6D88"))))};function se({onFileChange:Se}){return qe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",qe.createElement("input",{type:"file",onChange:Se}))}function we(Se,Re){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Xe.bg)())throw ye.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 Gt=new window.XMLHttpRequest;Gt.withCredentials=!0,Gt.addEventListener("load",function(un){Re(JSON.parse(un.target.responseText),Se)},!1),Gt.addEventListener("error",function(un){console.error(un)},!1),Gt.open("POST",`${ot.KI}/api/attachments.json`),Gt.send(Ae)}},81123:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ft}});var le=ge(59301),ye=ge(4676);class ft 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,ye.createPortal)(Pe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},66991:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ye}});var le=ge(59301);function ye(ft,ke){const Pe=(0,le.useRef)();(0,le.useEffect)(()=>{Pe.current=ft}),(0,le.useEffect)(()=>{function Be(){Pe.current()}if(ke!==null){let fe=setInterval(Be,ke);return()=>clearInterval(fe)}},[ke])}},49775:function(Ze,Bt,ge){"use strict";ge.r(Bt),ge.d(Bt,{default:function(){return Ie}});var le=ge(59301),ye=ge(57193),ft=ge(88871),ke=ge(95392),Pe=ge(78241),Be=ge(66104),fe=ge(8591),ot=ge(24905),Ke=ge(92832),Xe=ge(57809),qe=ge(5112),tt=ge(5083),Qe=ge(95237),ie=ge(43604),a=ge(3113),b=ge(27812),x=ge(12893),y=ge(32134),E={flex_box_center:"flex_box_center___bErbF",flex_space_between:"flex_space_between___X4dC_",flex_box_vertical_center:"flex_box_vertical_center___gHQ8N",flex_box_center_end:"flex_box_center_end___Smiak",flex_box_column:"flex_box_column___uAEy9",title:"title___weIJS",export:"export___Z0YvH",bg:"bg___wQbLV",tabs:"tabs___PRyjG",btn:"btn___y2qNz",sticky:"sticky___AmErR",publishRuleContent:"publishRuleContent___BXkud",groupSelector:"groupSelector___FsBfl",addAndDelete:"addAndDelete___affCm",deleteIcon:"deleteIcon___ODax8",addIcon:"addIcon___CTMwK"},z=ge(97041),ee=ge(81779),ae=ge(56656),te=ge.n(ae),de=ge(59301),se=Object.defineProperty,we=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,Ae=(ut,ct,gt)=>ct in ut?se(ut,ct,{enumerable:!0,configurable:!0,writable:!0,value:gt}):ut[ct]=gt,Gt=(ut,ct)=>{for(var gt in ct||(ct={}))Se.call(ct,gt)&&Ae(ut,gt,ct[gt]);if(we)for(var gt of we(ct))Re.call(ct,gt)&&Ae(ut,gt,ct[gt]);return ut},un=(ut,ct,gt)=>new Promise((Ot,rt)=>{var $t=pe=>{try{mn(gt.next(pe))}catch(ze){rt(ze)}},vt=pe=>{try{mn(gt.throw(pe))}catch(ze){rt(ze)}},mn=pe=>pe.done?Ot(pe.value):Promise.resolve(pe.value).then($t,vt);mn((gt=gt.apply(ut,ct)).next())});const Ln=({shixunHomeworks:ut,classroomList:ct,boards:gt,user:Ot,globalSetting:rt,loading:$t,dispatch:vt})=>{var mn,pe,ze,ht;const Dt=(0,ke.useParams)(),[lt]=Pe.default.useForm(),[Lt,ue]=(0,le.useState)({subject:"",content:""}),{userInfo:nt}=Ot,{detailLeftMenus:wt,detailCourseGroupsList:gn}=ct,{boardsDetail:tn,boardsCategoryList:Ve}=gt;let[Ee,Le]=(0,le.useState)([{}]);const[Ye,Je]=(0,le.useState)([]);let[yt,en]=(0,le.useState)({unified_setting:!0,view_message_setting:"0"});return(0,le.useEffect)(()=>{window.scrollTo({left:0,top:0,behavior:"smooth"}),vt({type:"classroomList/getCourseGroupsList",payload:{page:1,id:Dt.coursesId,limit:1e3,nonenavigate:!0}}),vt({type:"boards/getBoardsCategoryList",payload:{board_id:Dt.categoryId}}),vt({type:"boards/getBoardsDetail",payload:Gt({},Dt)}).then(it=>{var kt;Je(it),lt.setFieldsValue({select_board_id:[it==null?void 0:it.board_id],subject:it==null?void 0:it.subject,attachment_ids:(0,z.z)(it.attachments),content:it==null?void 0:it.content,sticky:!!(it!=null&&it.sticky),publish_time:it!=null&&it.publish_time?te()(it==null?void 0:it.publish_time):null}),ue({subject:it==null?void 0:it.subject,content:it==null?void 0:it.content}),yt.unified_setting=it.unified_setting,yt.view_message_setting=it.view_message_setting,Ee=((kt=it==null?void 0:it.group_settings)==null?void 0:kt.map(rn=>({group_id:rn.group_id,publish_time:rn.publish_time})))||[{}],Le(Ee.length>0?Ee:[{}])}),wt.course_modules||vt({type:"classroomList/getClassroomLeftMenus",payload:Gt({},Dt)})},[Dt.coursesId]),(0,le.useEffect)(()=>{var it;(it=gn==null?void 0:gn.course_groups)==null||it.map(kt=>{var rn;(rn=Ye==null?void 0:Ye.group_settings)==null||rn.map((Ft,Nt)=>{(Ft==null?void 0:Ft.group_id)===(kt==null?void 0:kt.id)&&(kt.cilckkey=Nt,kt.isselect=!0)})})},[Ye]),(0,le.useEffect)(()=>{console.log(Ee)},[Ee]),de.createElement("section",{className:E.bg},de.createElement("div",{className:"edu-container"},de.createElement("section",{className:"animated fadeIn"},de.createElement("aside",{className:"mt10"},de.createElement(Be.Z,{separator:">"},de.createElement(Be.Z.Item,null,de.createElement(ke.Link,{to:`/classrooms/${Dt.coursesId}/board/${Dt.categoryId||""}`},(mn=nt==null?void 0:nt.course)==null?void 0:mn.course_name)),de.createElement(Be.Z.Item,null,de.createElement(ke.Link,{to:`/classrooms/${Dt.coursesId}/board/${Dt.categoryId||""}`},tn==null?void 0:tn.board_name)),de.createElement(Be.Z.Item,null,"\u5E16\u5B50\u7F16\u8F91"))),de.createElement("aside",{className:[E.title,"mt20"].join(" ")},de.createElement(ke.Link,{to:`/classrooms/${tn.course_id}/board/${Dt.categoryId||""}`},de.createElement(b.Z,{className:"font16 c-black"})),de.createElement("strong",{className:"font20 ml5"},"\u7F16\u8F91\u5E16\u5B50"))),tn.id&&de.createElement(Pe.default,{layout:"vertical",form:lt,initialValues:{subject:tn.subject,select_board_id:[String(tn.board_id)],content:tn.content,attachment_ids:(0,z.z)(tn.attachments),sticky:!1},scrollToFirstError:!0,onValuesChange:it=>{ue(Gt({},it))},onFinish:it=>un(void 0,null,function*(){var kt;if(it.attachment_ids=(kt=it.attachment_ids)==null?void 0:kt.map(Ft=>Ft.id||Ft.response.id),it.view_message_setting=yt.view_message_setting,(0,ee.eB)()&&(it.unified_setting=yt.unified_setting,it.group_settings=Ee,!yt.unified_setting)){if(!Ee.length){fe.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF1A\u5206\u73ED\u53D1\u5E03\u8BBE\u7F6E\u4E0D\u80FD\u4E3A\u7A7A");return}console.log(Ee),Ee.map(Ft=>{if(!Ft.group_id)throw fe.ZP.error("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u5206\u73ED\u4E0D\u80FD\u4E3A\u7A7A");if(!Ft.publish_time)throw fe.ZP.error("\u53D1\u5E03\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A")})}(yield(0,ye.ZP)(`/api/messages/${Dt.boardId}.json`,{method:"put",body:it})).status===0&&(fe.ZP.success("\u4FDD\u5B58\u6210\u529F"),ke.history.push(`/classrooms/${Dt.coursesId}/board/${Dt.categoryId||""}`))})},de.createElement("aside",{className:"mt30 relative bg-white pl30 pr30 pt30 w100 inline-block"},(0,ee.GJ)()&&de.createElement(Pe.default.Item,{name:"sticky",valuePropName:"checked",className:E.sticky},de.createElement(ot.default,null,"\u7F6E\u9876")),de.createElement(Pe.default.Item,{label:"\u6807\u9898",name:"subject",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},de.createElement(Ke.default,{size:"middle",suffix:`${((pe=Lt.subject)==null?void 0:pe.length)||0}/60`,maxLength:60})),de.createElement(Pe.default.Item,{label:"\u76EE\u5F55",name:"select_board_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u76EE\u5F55"}]},de.createElement(Xe.default,null,(ze=Ve==null?void 0:Ve.boards)==null?void 0:ze.map(it=>de.createElement(Xe.default.Option,{value:it==null?void 0:it.id},it==null?void 0:it.name)))),de.createElement(Pe.default.Item,{label:"\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},de.createElement(ft.Z,{defaultValue:tn.content,watch:!0,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5E16\u5B50\u8BE6\u60C5\uFF0C\u6700\u5927\u9650\u5236\u4E3A10000\u4E2A\u5B57\u7B26"})),de.createElement(Pe.default.Item,{name:"attachment_ids"},de.createElement(z.Z,null)),(0,ee.dE)()&&Ve.allow_view_message&&de.createElement(qe.ZP.Group,{style:{marginBottom:10},onChange:it=>{yt.view_message_setting=it.target.value,en(Object.assign({},yt))},value:yt.view_message_setting},de.createElement(qe.ZP,{value:"0"},"\u5168\u8BFE\u5802\u53EF\u89C1"),de.createElement(qe.ZP,{value:"1"},"\u540C\u73ED\u5B66\u751F\u53EF\u89C1")),(0,ee.eB)()&&de.createElement("div",null,de.createElement(qe.ZP.Group,{onChange:()=>{yt.unified_setting=!yt.unified_setting,en(Object.assign({},yt))},value:yt.unified_setting},de.createElement(qe.ZP,{value:!0},"\u7EDF\u4E00\u53D1\u5E03"),((ht=gn==null?void 0:gn.course_groups)==null?void 0:ht.length)>0&&de.createElement(qe.ZP,{value:!1},"\u5206\u73ED\u53D1\u5E03")),(yt==null?void 0:yt.unified_setting)&&de.createElement(Pe.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(tt.default,{showTime:{format:"HH:mm"},disabledDate:it=>it&&it<te()().subtract(1,"days"),style:{width:"100%"}})),!yt.unified_setting&&de.createElement(Qe.Z,null,Ee&&(Ee==null?void 0:Ee.map(function(it,kt){var rn;return de.createElement(ie.Z,{span:24,key:kt,style:{marginTop:30}},de.createElement(Qe.Z,{className:`${E.publishRuleIndex}`,align:"middle"},"\u53D1\u5E03\u89C4\u5219 ",kt+1),de.createElement(Qe.Z,{className:`${E.publishRuleContent} ${E.contentInterval}`,align:"middle",wrap:!1},de.createElement(ie.Z,null,"\u73ED\u7EA7"),de.createElement(ie.Z,{className:E.groupSelector},de.createElement(Xe.default,{showArrow:!0,allowClear:!0,style:{width:"100%"},mode:"multiple",size:"middle",value:it.group_id,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",optionFilterProp:"label",onChange:Ft=>{Ee[kt].group_id=Ft,Le(Ee.slice()),gn.course_groups.map((Nt,zn)=>{Ft.map((In,Gn)=>{Nt.id===In&&(Nt.cilckkey=kt,Nt.isselect=!0)})})},onDeselect:Ft=>{gn.course_groups.map((Nt,zn)=>{Nt.id===Ft&&Nt.cilckkey===kt&&(Nt.cilckkey=kt,Nt.isselect=!1)})}},gn.course_groups&&((rn=gn.course_groups)==null?void 0:rn.filter(Ft=>Ft.edit_auth).map(function(Ft,Nt){return de.createElement(Option,{disabled:(Ft==null?void 0:Ft.isselect)&&Ft.cilckkey!=kt,label:Ft.course_group_name,value:Ft.id,key:Ft.id},Ft.name)})))),de.createElement(ie.Z,null,"\u53D1\u5E03\u65F6\u95F4"),de.createElement(ie.Z,{flex:1},de.createElement(tt.default,{showTime:{format:"HH:mm"},onChange:(Ft,Nt)=>{Ee[kt].publish_time=Ft,Le([...Ee])},disabledDate:Ft=>Ft&&Ft<te()().subtract(1,"days"),style:{width:"100%"}})),de.createElement(ie.Z,{className:E.addAndDelete},de.createElement(x.Z,{style:{visibility:(it!=null&&it.publish_time&&te()()<te()(it==null?void 0:it.publish_time)||!(it!=null&&it.publish_time))&&kt!=0?"visible":"hidden"},className:E.deleteIcon,onClick:()=>{Ee=Ee.filter((Ft,Nt)=>kt!==Nt),Le([...Ee])}}),de.createElement(y.Z,{className:E.addIcon,onClick:()=>{Le(Ee.concat({new:!0}))}}))))}))))),de.createElement("div",{className:[E.btn,"mt20"].join(" ")},de.createElement(Pe.default.Item,null,de.createElement(a.ZP,{htmlType:"submit",size:"middle",type:"primary"},"\u63D0\u4EA4"),de.createElement(a.ZP,{size:"middle",ghost:!0,type:"primary",onClick:()=>{ke.history.push(`/classrooms/${Dt.coursesId}/board/${Dt.categoryId||""}`)}},"\u53D6\u6D88"))))))};var Ie=(0,ke.connect)(({shixunHomeworks:ut,classroomList:ct,loading:gt,boards:Ot,user:rt,globalSetting:$t})=>({shixunHomeworks:ut,globalSetting:$t,classroomList:ct,boards:Ot,user:rt,loading:gt.effects}))(Ln)},12480:function(Ze,Bt,ge){"use strict";ge.d(Bt,{$J:function(){return ft},JZ:function(){return Pe},bN:function(){return fe},jP:function(){return Be},rO:function(){return ke}});var le=ge(57193),ye=(ot,Ke,Xe)=>new Promise((qe,tt)=>{var Qe=b=>{try{a(Xe.next(b))}catch(x){tt(x)}},ie=b=>{try{a(Xe.throw(b))}catch(x){tt(x)}},a=b=>b.done?qe(b.value):Promise.resolve(b.value).then(Qe,ie);a((Xe=Xe.apply(ot,Ke)).next())});function ft(ot){return(0,le.U2)(`libraries/${ot}.json`)}function ke(ot){return(0,le.U2)("library_tags.json",ot)}function Pe(ot){return ye(this,null,function*(){return(yield(0,le.IV)(`attachments/${ot}.json`)).status===0})}function Be(ot){return(0,le.v_)("libraries.json",ot)}function fe(ot,Ke){return(0,le.gz)(`libraries/${ot}.json`,Ke)}},56762:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return ye}});var le=ge(59301);function ye(){const[,ft]=le.useReducer(ke=>ke+1,0);return ft}},66104:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return Ln}});var le=ge(92310),ye=ge.n(le),ft=ge(11592),ke=ge(26112),Pe=ge(59301),Be=ge(92343),fe=ge(36355),ot=ge(84105),Ke=ge(91857);const Xe=Ie=>{let{children:ut}=Ie;const{getPrefixCls:ct}=Pe.useContext(fe.E_),gt=ct("breadcrumb");return Pe.createElement("li",{className:`${gt}-separator`,"aria-hidden":"true"},ut===""?ut:ut||"/")};Xe.__ANT_BREADCRUMB_SEPARATOR=!0;var qe=Xe,tt=function(Ie,ut){var ct={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&ut.indexOf(gt)<0&&(ct[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,gt=Object.getOwnPropertySymbols(Ie);Ot<gt.length;Ot++)ut.indexOf(gt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Ot])&&(ct[gt[Ot]]=Ie[gt[Ot]]);return ct};function Qe(Ie,ut){if(Ie.title===void 0||Ie.title===null)return null;const ct=Object.keys(ut).join("|");return typeof Ie.title=="object"?Ie.title:String(Ie.title).replace(new RegExp(`:(${ct})`,"g"),(gt,Ot)=>ut[Ot]||gt)}function ie(Ie,ut,ct,gt){if(ct==null)return null;const{className:Ot,onClick:rt}=ut,$t=tt(ut,["className","onClick"]),vt=Object.assign(Object.assign({},(0,ke.Z)($t,{data:!0,aria:!0})),{onClick:rt});return gt!==void 0?Pe.createElement("a",Object.assign({},vt,{className:ye()(`${Ie}-link`,Ot),href:gt}),ct):Pe.createElement("span",Object.assign({},vt,{className:ye()(`${Ie}-link`,Ot)}),ct)}function a(Ie,ut){return(gt,Ot,rt,$t,vt)=>{if(ut)return ut(gt,Ot,rt,$t);const mn=Qe(gt,Ot);return ie(Ie,gt,mn,vt)}}var b=function(Ie,ut){var ct={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&ut.indexOf(gt)<0&&(ct[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,gt=Object.getOwnPropertySymbols(Ie);Ot<gt.length;Ot++)ut.indexOf(gt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Ot])&&(ct[gt[Ot]]=Ie[gt[Ot]]);return ct};const x=Ie=>{const{prefixCls:ut,separator:ct="/",children:gt,menu:Ot,overlay:rt,dropdownProps:$t,href:vt}=Ie,pe=(ze=>{if(Ot||rt){const ht=Object.assign({},$t);if(Ot){const Dt=Ot||{},{items:lt}=Dt,Lt=b(Dt,["items"]);ht.menu=Object.assign(Object.assign({},Lt),{items:lt==null?void 0:lt.map((ue,nt)=>{var{key:wt,title:gn,label:tn,path:Ve}=ue,Ee=b(ue,["key","title","label","path"]);let Le=tn!=null?tn:gn;return Ve&&(Le=Pe.createElement("a",{href:`${vt}${Ve}`},Le)),Object.assign(Object.assign({},Ee),{key:wt!=null?wt:nt,label:Le})})})}else rt&&(ht.overlay=rt);return Pe.createElement(Ke.Z,Object.assign({placement:"bottom"},ht),Pe.createElement("span",{className:`${ut}-overlay-link`},ze,Pe.createElement(ot.Z,null)))}return ze})(gt);return pe!=null?Pe.createElement(Pe.Fragment,null,Pe.createElement("li",null,pe),ct&&Pe.createElement(qe,null,ct)):null},y=Ie=>{const{prefixCls:ut,children:ct,href:gt}=Ie,Ot=b(Ie,["prefixCls","children","href"]),{getPrefixCls:rt}=Pe.useContext(fe.E_),$t=rt("breadcrumb",ut);return Pe.createElement(x,Object.assign({},Ot,{prefixCls:$t}),ie($t,Ot,ct,gt))};y.__ANT_BREADCRUMB_ITEM=!0;var E=y,z=ge(17313),ee=ge(83116),ae=ge(37613);const te=Ie=>{const{componentCls:ut,iconCls:ct}=Ie;return{[ut]:Object.assign(Object.assign({},(0,z.Wf)(Ie)),{color:Ie.itemColor,fontSize:Ie.fontSize,[ct]:{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},[`${ut}-separator`]:{marginInline:Ie.separatorMargin,color:Ie.separatorColor},[`${ut}-link`]:{[`
|
|
> ${ct} + span,
|
|
> ${ct} + a
|
|
`]:{marginInlineStart:Ie.marginXXS}},[`${ut}-overlay-link`]:{borderRadius:Ie.borderRadiusSM,height:Ie.lineHeight*Ie.fontSize,display:"inline-block",padding:`0 ${Ie.paddingXXS}px`,marginInline:-Ie.marginXXS,[`> ${ct}`]:{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 de=(0,ee.Z)("Breadcrumb",Ie=>{const ut=(0,ae.TS)(Ie,{});return[te(ut)]},Ie=>({itemColor:Ie.colorTextDescription,lastItemColor:Ie.colorText,iconFontSize:Ie.fontSize,linkColor:Ie.colorTextDescription,linkHoverColor:Ie.colorText,separatorColor:Ie.colorTextDescription,separatorMargin:Ie.marginXS})),se=function(Ie,ut){var ct={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&ut.indexOf(gt)<0&&(ct[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,gt=Object.getOwnPropertySymbols(Ie);Ot<gt.length;Ot++)ut.indexOf(gt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Ot])&&(ct[gt[Ot]]=Ie[gt[Ot]]);return ct};function we(Ie){const{breadcrumbName:ut,children:ct}=Ie,gt=se(Ie,["breadcrumbName","children"]),Ot=Object.assign({title:ut},gt);return ct&&(Ot.menu={items:ct.map(rt=>{var{breadcrumbName:$t}=rt,vt=se(rt,["breadcrumbName"]);return Object.assign(Object.assign({},vt),{title:$t})})}),Ot}function Se(Ie,ut){return(0,Pe.useMemo)(()=>Ie||(ut?ut.map(we):null),[Ie,ut])}var Re=function(Ie,ut){var ct={};for(var gt in Ie)Object.prototype.hasOwnProperty.call(Ie,gt)&&ut.indexOf(gt)<0&&(ct[gt]=Ie[gt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,gt=Object.getOwnPropertySymbols(Ie);Ot<gt.length;Ot++)ut.indexOf(gt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Ie,gt[Ot])&&(ct[gt[Ot]]=Ie[gt[Ot]]);return ct};const Ae=(Ie,ut)=>{if(ut===void 0)return ut;let ct=(ut||"").replace(/^\//,"");return Object.keys(Ie).forEach(gt=>{ct=ct.replace(`:${gt}`,Ie[gt])}),ct},Gt=Ie=>{const{prefixCls:ut,separator:ct="/",style:gt,className:Ot,rootClassName:rt,routes:$t,items:vt,children:mn,itemRender:pe,params:ze={}}=Ie,ht=Re(Ie,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Dt,direction:lt,breadcrumb:Lt}=Pe.useContext(fe.E_);let ue;const nt=Dt("breadcrumb",ut),[wt,gn]=de(nt),tn=Se(vt,$t),Ve=a(nt,pe);if(tn&&tn.length>0){const Ye=[],Je=vt||$t;ue=tn.map((yt,en)=>{const{path:it,key:kt,type:rn,menu:Ft,overlay:Nt,onClick:zn,className:In,separator:Gn,dropdownProps:Bn}=yt,bn=Ae(ze,it);bn!==void 0&&Ye.push(bn);const Ce=kt!=null?kt:en;if(rn==="separator")return Pe.createElement(qe,{key:Ce},Gn);const Me={},dt=en===tn.length-1;Ft?Me.menu=Ft:Nt&&(Me.overlay=Nt);let{href:Mt}=yt;return Ye.length&&bn!==void 0&&(Mt=`#/${Ye.join("/")}`),Pe.createElement(x,Object.assign({key:Ce},Me,(0,ke.Z)(yt,{data:!0,aria:!0}),{className:In,dropdownProps:Bn,href:Mt,separator:dt?"":ct,onClick:zn,prefixCls:nt}),Ve(yt,ze,Je,Ye,Mt))})}else if(mn){const Ye=(0,ft.Z)(mn).length;ue=(0,ft.Z)(mn).map((Je,yt)=>{if(!Je)return Je;const en=yt===Ye-1;return(0,Be.Tm)(Je,{separator:en?"":ct,key:yt})})}const Ee=ye()(nt,Lt==null?void 0:Lt.className,{[`${nt}-rtl`]:lt==="rtl"},Ot,rt,gn),Le=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),gt);return wt(Pe.createElement("nav",Object.assign({className:Ee,style:Le},ht),Pe.createElement("ol",null,ue)))};Gt.Item=E,Gt.Separator=qe;var un=Gt,Ln=un},24905:function(Ze,Bt,ge){"use strict";ge.d(Bt,{default:function(){return de}});var le=ge(92310),ye=ge.n(le),ft=ge(5630),ke=ge(59301),Pe=ge(36355),Be=ge(1684),fe=ge(32441),Ke=ke.createContext(null),Xe=ge(98447),qe=ge(14088),tt=ge(4572),Qe=function(se,we){var Se={};for(var Re in se)Object.prototype.hasOwnProperty.call(se,Re)&&we.indexOf(Re)<0&&(Se[Re]=se[Re]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Re=Object.getOwnPropertySymbols(se);Ae<Re.length;Ae++)we.indexOf(Re[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,Re[Ae])&&(Se[Re[Ae]]=se[Re[Ae]]);return Se};const ie=(se,we)=>{var Se;const{prefixCls:Re,className:Ae,rootClassName:Gt,children:un,indeterminate:Ln=!1,style:Ie,onMouseEnter:ut,onMouseLeave:ct,skipGroup:gt=!1,disabled:Ot}=se,rt=Qe(se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:$t,direction:vt,checkbox:mn}=ke.useContext(Pe.E_),pe=ke.useContext(Ke),{isFormItemInput:ze}=ke.useContext(fe.aM),ht=ke.useContext(Be.Z),Dt=(Se=(pe==null?void 0:pe.disabled)||Ot)!==null&&Se!==void 0?Se:ht,lt=ke.useRef(rt.value);ke.useEffect(()=>{pe==null||pe.registerValue(rt.value)},[]),ke.useEffect(()=>{if(!gt)return rt.value!==lt.current&&(pe==null||pe.cancelValue(lt.current),pe==null||pe.registerValue(rt.value),lt.current=rt.value),()=>pe==null?void 0:pe.cancelValue(rt.value)},[rt.value]);const Lt=$t("checkbox",Re),[ue,nt]=(0,Xe.ZP)(Lt),wt=Object.assign({},rt);pe&&!gt&&(wt.onChange=function(){rt.onChange&&rt.onChange.apply(rt,arguments),pe.toggleOption&&pe.toggleOption({label:un,value:rt.value})},wt.name=pe.name,wt.checked=pe.value.includes(rt.value));const gn=ye()(`${Lt}-wrapper`,{[`${Lt}-rtl`]:vt==="rtl",[`${Lt}-wrapper-checked`]:wt.checked,[`${Lt}-wrapper-disabled`]:Dt,[`${Lt}-wrapper-in-form-item`]:ze},mn==null?void 0:mn.className,Ae,Gt,nt),tn=ye()({[`${Lt}-indeterminate`]:Ln},tt.A,nt),Ve=Ln?"mixed":void 0;return ue(ke.createElement(qe.Z,{component:"Checkbox",disabled:Dt},ke.createElement("label",{className:gn,style:Object.assign(Object.assign({},mn==null?void 0:mn.style),Ie),onMouseEnter:ut,onMouseLeave:ct},ke.createElement(ft.Z,Object.assign({"aria-checked":Ve},wt,{prefixCls:Lt,className:tn,disabled:Dt,ref:we})),un!==void 0&&ke.createElement("span",null,un))))};var b=ke.forwardRef(ie),x=ge(94480),y=ge(2738),E=function(se,we){var Se={};for(var Re in se)Object.prototype.hasOwnProperty.call(se,Re)&&we.indexOf(Re)<0&&(Se[Re]=se[Re]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Re=Object.getOwnPropertySymbols(se);Ae<Re.length;Ae++)we.indexOf(Re[Ae])<0&&Object.prototype.propertyIsEnumerable.call(se,Re[Ae])&&(Se[Re[Ae]]=se[Re[Ae]]);return Se};const z=(se,we)=>{const{defaultValue:Se,children:Re,options:Ae=[],prefixCls:Gt,className:un,rootClassName:Ln,style:Ie,onChange:ut}=se,ct=E(se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:gt,direction:Ot}=ke.useContext(Pe.E_),[rt,$t]=ke.useState(ct.value||Se||[]),[vt,mn]=ke.useState([]);ke.useEffect(()=>{"value"in ct&&$t(ct.value||[])},[ct.value]);const pe=ke.useMemo(()=>Ae.map(Ee=>typeof Ee=="string"||typeof Ee=="number"?{label:Ee,value:Ee}:Ee),[Ae]),ze=Ee=>{mn(Le=>Le.filter(Ye=>Ye!==Ee))},ht=Ee=>{mn(Le=>[].concat((0,x.Z)(Le),[Ee]))},Dt=Ee=>{const Le=rt.indexOf(Ee.value),Ye=(0,x.Z)(rt);Le===-1?Ye.push(Ee.value):Ye.splice(Le,1),"value"in ct||$t(Ye),ut==null||ut(Ye.filter(Je=>vt.includes(Je)).sort((Je,yt)=>{const en=pe.findIndex(kt=>kt.value===Je),it=pe.findIndex(kt=>kt.value===yt);return en-it}))},lt=gt("checkbox",Gt),Lt=`${lt}-group`,[ue,nt]=(0,Xe.ZP)(lt),wt=(0,y.Z)(ct,["value","disabled"]),gn=Ae.length?pe.map(Ee=>ke.createElement(b,{prefixCls:lt,key:Ee.value.toString(),disabled:"disabled"in Ee?Ee.disabled:ct.disabled,value:Ee.value,checked:rt.includes(Ee.value),onChange:Ee.onChange,className:`${Lt}-item`,style:Ee.style,title:Ee.title},Ee.label)):Re,tn={toggleOption:Dt,value:rt,disabled:ct.disabled,name:ct.name,registerValue:ht,cancelValue:ze},Ve=ye()(Lt,{[`${Lt}-rtl`]:Ot==="rtl"},un,Ln,nt);return ue(ke.createElement("div",Object.assign({className:Ve,style:Ie},wt,{ref:we}),ke.createElement(Ke.Provider,{value:tn},gn)))},ee=ke.forwardRef(z);var ae=ke.memo(ee);const te=b;te.Group=ae,te.__ANT_CHECKBOX=!0;var de=te},98447:function(Ze,Bt,ge){"use strict";ge.d(Bt,{C2:function(){return Pe}});var le=ge(17313),ye=ge(37613),ft=ge(83116);const ke=Be=>{const{checkboxCls:fe}=Be,ot=`${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}}),[ot]: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'"},[`& + ${ot}`]:{marginInlineStart:0},[`&${ot}-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}})},{[`
|
|
${ot}:not(${ot}-disabled),
|
|
${fe}:not(${fe}-disabled)
|
|
`]:{[`&:hover ${fe}-inner`]:{borderColor:Be.colorPrimary}},[`${ot}:not(${ot}-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}`}}},[`
|
|
${ot}-checked:not(${ot}-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:'""'}}}}},{[`${ot}-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 ot=(0,ye.TS)(fe,{checkboxCls:`.${Be}`,checkboxSize:fe.controlInteractiveSize});return[ke(ot)]}Bt.ZP=(0,ft.Z)("Checkbox",(Be,fe)=>{let{prefixCls:ot}=fe;return[Pe(ot,Be)]})},5083:function(Ze,Bt,ge){"use strict";ge.d(Bt,{default:function(){return jg}});var le=ge(56656),ye=ge.n(le),ft=ge(48736),ke=ge(27112),Pe=ge.n(ke),Be=ge(54449),fe=ge.n(Be),ot=ge(53501),Ke=ge.n(ot),Xe=ge(36867),qe=ge.n(Xe),tt=ge(71912),Qe=ge.n(tt),ie=ge(48228),a=ge.n(ie);ye().extend(a()),ye().extend(Qe()),ye().extend(Pe()),ye().extend(fe()),ye().extend(Ke()),ye().extend(qe()),ye().extend(function(ne,oe){var re=oe.prototype,ce=re.format;re.format=function(be){var he=(be||"").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,ft.ET)(!1,"Not match any format. Please help to fire a issue about this.")},E={getNow:function(){return ye()()},getFixedDate:function(oe){return ye()(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 ye()().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 ye()().locale(x(oe)).localeData().weekdaysMin()},getShortMonths:function(oe){return ye()().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),be=0;be<ce.length;be+=1){var he=ce[be],Ne=re;if(he.includes("wo")||he.includes("Wo")){for(var Oe=Ne.split("-")[0],Ge=Ne.split("-")[1],Et=ye()(Oe,"YYYY").startOf("year").locale(me),_e=0;_e<=52;_e+=1){var Ue=Et.add(_e,"week");if(Ue.format("Wo")===Ge)return Ue}return y(),null}var st=ye()(Ne,he,!0).locale(me);if(st.isValid())return st}return re&&y(),null}}},z=E,ee=ge(53487),ae=ge(54476),te=ge(59301),de={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"},se=de,we=ge(7657),Se=function(oe,re){return te.createElement(we.Z,(0,ae.Z)({},oe,{ref:re,icon:se}))},Re=te.forwardRef(Se),Ae=Re,Gt={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=Gt,Ln=function(oe,re){return te.createElement(we.Z,(0,ae.Z)({},oe,{ref:re,icon:un}))},Ie=te.forwardRef(Ln),ut=Ie,ct=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"},Ot=gt,rt=function(oe,re){return te.createElement(we.Z,(0,ae.Z)({},oe,{ref:re,icon:Ot}))},$t=te.forwardRef(rt),vt=$t,mn=ge(92310),pe=ge.n(mn),ze=ge(67732),ht=ge(83652),Dt=ge(31226),lt=ge(42403),Lt=ge(158),ue=ge(20068),nt=ge(33885),wt=ge(42978),gn=ge(18929),tn=ge(26112),Ve=ge(80547),Ee=ge(13697),Le=10,Ye=Le*10,Je=7;function yt(ne,oe){if(!ne&&!oe)return!0;if(!ne||!oe)return!1}function en(ne,oe,re){var ce=yt(oe,re);if(typeof ce=="boolean")return ce;var me=Math.floor(ne.getYear(oe)/10),be=Math.floor(ne.getYear(re)/10);return me===be}function it(ne,oe,re){var ce=yt(oe,re);return typeof ce=="boolean"?ce:ne.getYear(oe)===ne.getYear(re)}function kt(ne,oe){var re=Math.floor(ne.getMonth(oe)/3);return re+1}function rn(ne,oe,re){var ce=yt(oe,re);return typeof ce=="boolean"?ce:it(ne,oe,re)&&kt(ne,oe)===kt(ne,re)}function Ft(ne,oe,re){var ce=yt(oe,re);return typeof ce=="boolean"?ce:it(ne,oe,re)&&ne.getMonth(oe)===ne.getMonth(re)}function Nt(ne,oe,re){var ce=yt(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 zn(ne,oe,re){var ce=yt(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 In(ne,oe,re,ce){var me=yt(re,ce);return typeof me=="boolean"?me:it(ne,re,ce)&&ne.locale.getWeek(oe,re)===ne.locale.getWeek(oe,ce)}function Gn(ne,oe,re){return Nt(ne,oe,re)&&zn(ne,oe,re)}function Bn(ne,oe,re,ce){return!oe||!re||!ce?!1:!Nt(ne,oe,ce)&&!Nt(ne,re,ce)&&ne.isAfter(ce,oe)&&ne.isAfter(re,ce)}function bn(ne,oe,re){var ce=oe.locale.getWeekFirstDay(ne),me=oe.setDate(re,1),be=oe.getWeekDay(me),he=oe.addDate(me,ce-be);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 dt(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 Mt(ne){var oe=ne.cellDate,re=ne.mode,ce=ne.disabledDate,me=ne.generateConfig;if(!ce)return!1;var be=function(mt,De,We){for(var Pt=De;Pt<=We;){var Ht=void 0;switch(mt){case"date":{if(Ht=me.setDate(oe,Pt),!ce(Ht))return!1;break}case"month":{if(Ht=me.setMonth(oe,Pt),!Mt({cellDate:Ht,mode:"month",generateConfig:me,disabledDate:ce}))return!1;break}case"year":{if(Ht=me.setYear(oe,Pt),!Mt({cellDate:Ht,mode:"year",generateConfig:me,disabledDate:ce}))return!1;break}}Pt+=1}return!0};switch(re){case"date":case"week":return ce(oe);case"month":{var he=1,Ne=me.getDate(me.getEndDate(oe));return be("date",he,Ne)}case"quarter":{var Oe=Math.floor(me.getMonth(oe)/3)*3,Ge=Oe+2;return be("month",Oe,Ge)}case"year":return be("month",0,11);case"decade":{var Et=me.getYear(oe),_e=Math.floor(Et/Le)*Le,Ue=_e+Le-1;return be("year",_e,Ue)}}}function Zt(ne,oe){var re=oe.formatList,ce=oe.generateConfig,me=oe.locale;return(0,Ve.Z)(function(){if(!ne)return[[""],""];for(var be="",he=[],Ne=0;Ne<re.length;Ne+=1){var Oe=re[Ne],Ge=Me(ne,{generateConfig:ce,locale:me,format:Oe});he.push(Ge),Ne===0&&(be=Ge)}return[he,be]},[ne,re,me],function(be,he){return!Gn(ce,be[0],he[0])||!(0,Ee.Z)(be[1],he[1],!0)||!(0,Ee.Z)(be[2],he[2],!0)})}function dn(ne,oe){var re=oe.formatList,ce=oe.generateConfig,me=oe.locale,be=(0,te.useState)(null),he=(0,wt.Z)(be,2),Ne=he[0],Oe=he[1],Ge=(0,te.useRef)(null);function Et(We){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Ge.current),Pt){Oe(We);return}Ge.current=requestAnimationFrame(function(){Oe(We)})}var _e=Zt(Ne,{formatList:re,generateConfig:ce,locale:me}),Ue=(0,wt.Z)(_e,2),st=Ue[1];function mt(We){Et(We)}function De(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Et(null,We)}return(0,te.useEffect)(function(){De(!0)},[ne]),(0,te.useEffect)(function(){return function(){return cancelAnimationFrame(Ge.current)}},[]),[st,mt,De]}var Tt=ge(10228),qt=ge(16089),cn=ge(94480),Nn=ge(29194),yn=new Map;function Wn(ne,oe){var re;function ce(){(0,Nn.Z)(ne)?oe():re=(0,qt.Z)(function(){ce()})}return ce(),function(){qt.Z.cancel(re)}}function oa(ne,oe,re){if(yn.get(ne)&&cancelAnimationFrame(yn.get(ne)),re<=0){yn.set(ne,requestAnimationFrame(function(){ne.scrollTop=oe}));return}var ce=oe-ne.scrollTop,me=ce/re*10;yn.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,be=oe.onPageUpDown,he=oe.onEnter,Ne=ne.which,Oe=ne.ctrlKey,Ge=ne.metaKey;switch(Ne){case Tt.Z.LEFT:if(Oe||Ge){if(ce)return ce(-1),!0}else if(re)return re(-1),!0;break;case Tt.Z.RIGHT:if(Oe||Ge){if(ce)return ce(1),!0}else if(re)return re(1),!0;break;case Tt.Z.UP:if(me)return me(-1),!0;break;case Tt.Z.DOWN:if(me)return me(1),!0;break;case Tt.Z.PAGE_UP:if(be)return be(-1),!0;break;case Tt.Z.PAGE_DOWN:if(be)return be(1),!0;break;case Tt.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 Rn=null,ia=new Set;function Ea(ne){return!Rn&&typeof window!="undefined"&&window.addEventListener&&(Rn=function(re){(0,cn.Z)(ia).forEach(function(ce){ce(re)})},window.addEventListener("mousedown",Rn)),ia.add(ne),function(){ia.delete(ne),ia.size===0&&(window.removeEventListener("mousedown",Rn),Rn=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,be=ne.forwardKeyDown,he=ne.onKeyDown,Ne=ne.blurToCancel,Oe=ne.onSubmit,Ge=ne.onCancel,Et=ne.onFocus,_e=ne.onBlur,Ue=ne.changeOnBlur,st=(0,te.useState)(!1),mt=(0,wt.Z)(st,2),De=mt[0],We=mt[1],Pt=(0,te.useState)(!1),Ht=(0,wt.Z)(Pt,2),zt=Ht[0],jt=Ht[1],Xt=(0,te.useRef)(!1),_t=(0,te.useRef)(!1),Rt=(0,te.useRef)(!1),Fn={onMouseDown:function(){We(!0),me(!0)},onKeyDown:function(Dn){var Hn=function(){Rt.current=!0};if(he(Dn,Hn),!Rt.current){switch(Dn.which){case Tt.Z.ENTER:{oe?Oe()!==!1&&We(!0):me(!0),Dn.preventDefault();return}case Tt.Z.TAB:{De&&oe&&!Dn.shiftKey?(We(!1),Dn.preventDefault()):!De&&oe&&!be(Dn)&&Dn.shiftKey&&(We(!0),Dn.preventDefault());return}case Tt.Z.ESC:{We(!0),Ge();return}}!oe&&![Tt.Z.SHIFT].includes(Dn.which)?me(!0):De||be(Dn)}},onFocus:function(Dn){We(!0),jt(!0),Et&&Et(Dn)},onBlur:function(Dn){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)&&Ge()},0):oe&&(me(!1),_t.current&&Oe()),jt(!1),_e==null||_e(Dn)}};return(0,te.useEffect)(function(){_t.current=!1},[oe]),(0,te.useEffect)(function(){_t.current=!0},[re]),(0,te.useEffect)(function(){return Ea(function(hn){var Dn=$a(hn),Hn=ce(Dn);oe&&(Hn?!Ue&&(!zt||Hn)&&me(!1):(Xt.current=!0,(0,qt.Z)(function(){Xt.current=!1})))})}),[Fn,{focused:zt,typing:De}]}function $e(ne,oe){return te.useMemo(function(){return ne||(oe?((0,ft.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(oe).map(function(re){var ce=(0,wt.Z)(re,2),me=ce[0],be=ce[1];return{label:me,value:be}})):[])},[ne,oe])}var Fe=ge(34280);function xe(ne){var oe=ne.valueTexts,re=ne.onTextChange,ce=te.useState(""),me=(0,wt.Z)(ce,2),be=me[0],he=me[1],Ne=te.useRef([]);Ne.current=oe;function Oe(Et){he(Et),re(Et)}function Ge(){he(Ne.current[0])}return(0,Fe.Z)(function(){oe.every(function(Et){return Et!==be})&&Ge()},[oe.join("||")]),[be,Oe,Ge]}var It=te.createContext({}),Wt=It,Qt=ge(76190);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(be,he){var Ne=be;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 pn(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 fn(ne,oe){return ne?ne[oe]:null}function pt(ne,oe,re){var ce=[fn(ne,0),fn(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,be=ne.isInView,he=ne.isSameCell,Ne=ne.offsetCell,Oe=ne.today,Ge=ne.value;function Et(_e){var Ue,st=Ne(_e,-1),mt=Ne(_e,1),De=fn(ce,0),We=fn(ce,1),Pt=fn(me,0),Ht=fn(me,1),zt=Bn(re,Pt,Ht,_e);function jt(Dn){return he(De,Dn)}function Xt(Dn){return he(We,Dn)}var _t=he(Pt,_e),Rt=he(Ht,_e),Fn=(zt||Rt)&&(!be(st)||Xt(st)),hn=(zt||_t)&&(!be(mt)||jt(mt));return Ue={},(0,ue.Z)(Ue,"".concat(oe,"-in-view"),be(_e)),(0,ue.Z)(Ue,"".concat(oe,"-in-range"),Bn(re,De,We,_e)),(0,ue.Z)(Ue,"".concat(oe,"-range-start"),jt(_e)),(0,ue.Z)(Ue,"".concat(oe,"-range-end"),Xt(_e)),(0,ue.Z)(Ue,"".concat(oe,"-range-start-single"),jt(_e)&&!We),(0,ue.Z)(Ue,"".concat(oe,"-range-end-single"),Xt(_e)&&!De),(0,ue.Z)(Ue,"".concat(oe,"-range-start-near-hover"),jt(_e)&&(he(st,Pt)||Bn(re,Pt,Ht,st))),(0,ue.Z)(Ue,"".concat(oe,"-range-end-near-hover"),Xt(_e)&&(he(mt,Ht)||Bn(re,Pt,Ht,mt))),(0,ue.Z)(Ue,"".concat(oe,"-range-hover"),zt),(0,ue.Z)(Ue,"".concat(oe,"-range-hover-start"),_t),(0,ue.Z)(Ue,"".concat(oe,"-range-hover-end"),Rt),(0,ue.Z)(Ue,"".concat(oe,"-range-hover-edge-start"),Fn),(0,ue.Z)(Ue,"".concat(oe,"-range-hover-edge-end"),hn),(0,ue.Z)(Ue,"".concat(oe,"-range-hover-edge-start-near-range"),Fn&&he(st,We)),(0,ue.Z)(Ue,"".concat(oe,"-range-hover-edge-end-near-range"),hn&&he(mt,De)),(0,ue.Z)(Ue,"".concat(oe,"-today"),he(Oe,_e)),(0,ue.Z)(Ue,"".concat(oe,"-selected"),he(Ge,_e)),Ue}return Et}var oo=te.createContext({}),ga=oo;function ve(ne,oe,re,ce,me){var be=ne.setHour(oe,re);return be=ne.setMinute(be,ce),be=ne.setSecond(be,me),be}function je(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 He(ne,oe,re,ce,me,be){var he=Math.floor(ne/ce)*ce;if(he<ne)return[he,60-me,60-be];var Ne=Math.floor(oe/me)*me;if(Ne<oe)return[he,Ne,60-be];var Oe=Math.floor(re/be)*be;return[he,Ne,Oe]}function at(ne,oe){var re=ne.getYear(oe),ce=ne.getMonth(oe)+1,me=ne.getEndDate(ne.getFixedDate("".concat(re,"-").concat(ce,"-01"))),be=ne.getDate(me),he=ce<10?"0".concat(ce):"".concat(ce);return"".concat(re,"-").concat(he,"-").concat(be)}function bt(ne){for(var oe=ne.prefixCls,re=ne.disabledDate,ce=ne.onSelect,me=ne.picker,be=ne.rowNum,he=ne.colNum,Ne=ne.prefixColumn,Oe=ne.rowClassName,Ge=ne.baseDate,Et=ne.getCellClassName,_e=ne.getCellText,Ue=ne.getCellNode,st=ne.getCellDate,mt=ne.generateConfig,De=ne.titleCell,We=ne.headerCells,Pt=te.useContext(Wt),Ht=Pt.onDateMouseEnter,zt=Pt.onDateMouseLeave,jt=Pt.mode,Xt="".concat(oe,"-cell"),_t=[],Rt=0;Rt<be;Rt+=1){for(var Fn=[],hn=void 0,Dn=function(){var ca,Na=Rt*he+Hn,na=st(Ge,Na),kn=Mt({cellDate:na,mode:jt,disabledDate:re,generateConfig:mt});Hn===0&&(hn=na,Ne&&Fn.push(Ne(hn)));var jn=De&&De(na),ua=te.createElement("div",{className:"".concat(Xt,"-inner")},_e(na));Fn.push(te.createElement("td",{key:Hn,title:jn,className:pe()(Xt,(0,nt.Z)((ca={},(0,ue.Z)(ca,"".concat(Xt,"-disabled"),kn),(0,ue.Z)(ca,"".concat(Xt,"-start"),_e(na)===1||me==="year"&&Number(jn)%10===0),(0,ue.Z)(ca,"".concat(Xt,"-end"),jn===at(mt,na)||me==="year"&&Number(jn)%10===9),ca),Et(na))),onClick:function(){kn||ce(na)},onMouseEnter:function(){!kn&&Ht&&Ht(na)},onMouseLeave:function(){!kn&&zt&&zt(na)}},Ue?Ue(na,ua):ua))},Hn=0;Hn<he;Hn+=1)Dn();_t.push(te.createElement("tr",{key:Rt,className:Oe&&Oe(hn)},Fn))}return te.createElement("div",{className:"".concat(oe,"-body")},te.createElement("table",{className:"".concat(oe,"-content")},We&&te.createElement("thead",null,te.createElement("tr",null,We)),te.createElement("tbody",null,_t)))}function xt(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.prefixColumn,me=ne.locale,be=ne.rowCount,he=ne.viewDate,Ne=ne.value,Oe=ne.cellRender,Ge=ne.isSameCell,Et=te.useContext(ga),_e=Et.rangedValue,Ue=Et.hoverRangedValue,st=bn(me.locale,re,he),mt="".concat(oe,"-cell"),De=re.locale.getWeekFirstDay(me.locale),We=re.getNow(),Pt=[],Ht=me.shortWeekDays||(re.locale.getShortWeekDays?re.locale.getShortWeekDays(me.locale):[]);ce&&Pt.push(te.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var zt=0;zt<Je;zt+=1)Pt.push(te.createElement("th",{key:zt},Ht[(zt+De)%Je]));var jt=Ca({cellPrefixCls:mt,today:We,value:Ne,generateConfig:re,rangedValue:ce?null:_e,hoverRangedValue:ce?null:Ue,isSameCell:Ge||function(_t,Rt){return Nt(re,_t,Rt)},isInView:function(Rt){return Ft(re,Rt,he)},offsetCell:function(Rt,Fn){return re.addDate(Rt,Fn)}}),Xt=Oe?function(_t,Rt){return Oe(_t,{originNode:Rt,today:We,type:"date",locale:me})}:void 0;return te.createElement(bt,(0,ae.Z)({},ne,{rowNum:be,colNum:Je,baseDate:st,getCellNode:Xt,getCellText:re.getDate,getCellClassName:jt,getCellDate:re.addDate,titleCell:function(Rt){return Me(Rt,{locale:me,format:"YYYY-MM-DD",generateConfig:re})},headerCells:Pt}))}var St=xt,et={visibility:"hidden"};function sn(ne){var oe=ne.prefixCls,re=ne.prevIcon,ce=re===void 0?"\u2039":re,me=ne.nextIcon,be=me===void 0?"\u203A":me,he=ne.superPrevIcon,Ne=he===void 0?"\xAB":he,Oe=ne.superNextIcon,Ge=Oe===void 0?"\xBB":Oe,Et=ne.onSuperPrev,_e=ne.onSuperNext,Ue=ne.onPrev,st=ne.onNext,mt=ne.children,De=te.useContext(Wt),We=De.hideNextBtn,Pt=De.hidePrevBtn;return te.createElement("div",{className:oe},Et&&te.createElement("button",{type:"button",onClick:Et,tabIndex:-1,className:"".concat(oe,"-super-prev-btn"),style:Pt?et:{}},Ne),Ue&&te.createElement("button",{type:"button",onClick:Ue,tabIndex:-1,className:"".concat(oe,"-prev-btn"),style:Pt?et:{}},ce),te.createElement("div",{className:"".concat(oe,"-view")},mt),st&&te.createElement("button",{type:"button",onClick:st,tabIndex:-1,className:"".concat(oe,"-next-btn"),style:We?et:{}},be),_e&&te.createElement("button",{type:"button",onClick:_e,tabIndex:-1,className:"".concat(oe,"-super-next-btn"),style:We?et:{}},Ge))}var an=sn;function Te(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.viewDate,be=ne.onNextMonth,he=ne.onPrevMonth,Ne=ne.onNextYear,Oe=ne.onPrevYear,Ge=ne.onYearClick,Et=ne.onMonthClick,_e=te.useContext(Wt),Ue=_e.hideHeader;if(Ue)return null;var st="".concat(oe,"-header"),mt=ce.shortMonths||(re.locale.getShortMonths?re.locale.getShortMonths(ce.locale):[]),De=re.getMonth(me),We=te.createElement("button",{type:"button",key:"year",onClick:Ge,tabIndex:-1,className:"".concat(oe,"-year-btn")},Me(me,{locale:ce,format:ce.yearFormat,generateConfig:re})),Pt=te.createElement("button",{type:"button",key:"month",onClick:Et,tabIndex:-1,className:"".concat(oe,"-month-btn")},ce.monthFormat?Me(me,{locale:ce,format:ce.monthFormat,generateConfig:re}):mt[De]),Ht=ce.monthBeforeYear?[Pt,We]:[We,Pt];return te.createElement(an,(0,ae.Z)({},ne,{prefixCls:st,onSuperPrev:Oe,onPrev:he,onNext:be,onSuperNext:Ne}),Ht)}var _n=Te,Vn=6;function fa(ne){var oe=ne.prefixCls,re=ne.panelName,ce=re===void 0?"date":re,me=ne.keyboardConfig,be=ne.active,he=ne.operationRef,Ne=ne.generateConfig,Oe=ne.value,Ge=ne.viewDate,Et=ne.onViewDateChange,_e=ne.onPanelChange,Ue=ne.onSelect,st="".concat(oe,"-").concat(ce,"-panel");he.current={onKeyDown:function(Pt){return qn(Pt,(0,nt.Z)({onLeftRight:function(zt){Ue(Ne.addDate(Oe||Ge,zt),"key")},onCtrlLeftRight:function(zt){Ue(Ne.addYear(Oe||Ge,zt),"key")},onUpDown:function(zt){Ue(Ne.addDate(Oe||Ge,zt*Je),"key")},onPageUpDown:function(zt){Ue(Ne.addMonth(Oe||Ge,zt),"key")}},me))}};var mt=function(Pt){var Ht=Ne.addYear(Ge,Pt);Et(Ht),_e(null,Ht)},De=function(Pt){var Ht=Ne.addMonth(Ge,Pt);Et(Ht),_e(null,Ht)};return te.createElement("div",{className:pe()(st,(0,ue.Z)({},"".concat(st,"-active"),be))},te.createElement(_n,(0,ae.Z)({},ne,{prefixCls:oe,value:Oe,viewDate:Ge,onPrevYear:function(){mt(-1)},onNextYear:function(){mt(1)},onPrevMonth:function(){De(-1)},onNextMonth:function(){De(1)},onMonthClick:function(){_e("month",Ge)},onYearClick:function(){_e("year",Ge)}})),te.createElement(St,(0,ae.Z)({},ne,{onSelect:function(Pt){return Ue(Pt,"mouse")},prefixCls:oe,value:Oe,viewDate:Ge,rowCount:Vn})))}var va=fa;function Ct(ne){var oe=te.useContext(Wt),re=oe.hideHeader;if(re)return null;var ce=ne.prefixCls,me=ne.generateConfig,be=ne.locale,he=ne.value,Ne=ne.format,Oe="".concat(ce,"-header");return te.createElement(an,{prefixCls:Oe},he?Me(he,{locale:be,format:Ne,generateConfig:me}):"\xA0")}var Ut=Ct;function ln(ne){var oe=ne.value,re=ne.generateConfig,ce=ne.disabledMinutes,me=ne.disabledSeconds,be=ne.minutes,he=ne.seconds,Ne=ne.use12Hours,Oe=function(Et,_e,Ue,st){var mt=re.getNow(),De=oe||mt,We=_e<0?re.getHour(mt):_e,Pt=Ue<0?re.getMinute(mt):Ue,Ht=st<0?re.getSecond(mt):st,zt=ce&&ce(We);if(zt!=null&&zt.includes(Pt)){var jt=be.find(function(Rt){return!zt.includes(Rt.value)});if(jt)Pt=jt.value;else return null}var Xt=me&&me(We,Pt);if(Xt!=null&&Xt.includes(Ht)){var _t=he.find(function(Rt){return!Xt.includes(Rt.value)});if(_t)Ht=_t.value;else return null}return De=ve(re,De,!Ne||!Et?We:We+12,Pt,Ht),De};return Oe}function Vt(ne){var oe=ne.prefixCls,re=ne.units,ce=ne.onSelect,me=ne.value,be=ne.active,he=ne.hideDisabledOptions,Ne=ne.info,Oe=ne.type,Ge="".concat(oe,"-cell"),Et=te.useContext(Wt),_e=Et.open,Ue=(0,te.useRef)(null),st=(0,te.useRef)(new Map),mt=(0,te.useRef)();return(0,te.useLayoutEffect)(function(){var De=st.current.get(me);De&&_e!==!1&&oa(Ue.current,De.offsetTop,120)},[me]),(0,te.useLayoutEffect)(function(){if(_e){var De=st.current.get(me);De&&(mt.current=Wn(De,function(){oa(Ue.current,De.offsetTop,0)}))}return function(){var We;(We=mt.current)===null||We===void 0||We.call(mt)}},[_e]),te.createElement("ul",{className:pe()("".concat(oe,"-column"),(0,ue.Z)({},"".concat(oe,"-column-active"),be)),ref:Ue,style:{position:"relative"}},re.map(function(De){var We;return he&&De.disabled?null:te.createElement("li",{key:De.value,ref:function(Ht){st.current.set(De.value,Ht)},className:pe()(Ge,(We={},(0,ue.Z)(We,"".concat(Ge,"-disabled"),De.disabled),(0,ue.Z)(We,"".concat(Ge,"-selected"),me===De.value),We)),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(Ge,"-inner")},De.label),type:"time",subType:Oe}):te.createElement("div",{className:"".concat(Ge,"-inner")},De.label))}))}var En=Vt;function Tn(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 Sn(ne,oe,re,ce){for(var me=[],be=re>=1?re|0:1,he=ne;he<=oe;he+=be)me.push({label:pn(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,be=ne.value,he=ne.showHour,Ne=ne.showMinute,Oe=ne.showSecond,Ge=ne.use12Hours,Et=ne.hourStep,_e=Et===void 0?1:Et,Ue=ne.minuteStep,st=Ue===void 0?1:Ue,mt=ne.secondStep,De=mt===void 0?1:mt,We=ne.disabledHours,Pt=ne.disabledMinutes,Ht=ne.disabledSeconds,zt=ne.disabledTime,jt=ne.hideDisabledOptions,Xt=ne.onSelect,_t=ne.cellRender,Rt=ne.locale,Fn=[],hn="".concat(re,"-content"),Dn="".concat(re,"-time-panel"),Hn,sa=be?oe.getHour(be):-1,ca=sa,Na=be?oe.getMinute(be):-1,na=be?oe.getSecond(be):-1,kn=oe.getNow(),jn=te.useMemo(function(){if(zt){var On=zt(kn);return[On.disabledHours,On.disabledMinutes,On.disabledSeconds]}return[We,Pt,Ht]},[We,Pt,Ht,zt,kn]),ua=(0,wt.Z)(jn,3),Sa=ua[0],Qn=ua[1],La=ua[2],Xa=Sn(0,23,_e,Sa&&Sa()),Wa=(0,Ve.Z)(function(){return Xa},Xa,Tn);Ge&&(Hn=ca>=12,ca%=12);var so=te.useMemo(function(){if(!Ge)return[!1,!1];var On=[!0,!0];return Wa.forEach(function(_a){var ka=_a.disabled,co=_a.value;ka||(co>=12?On[1]=!1:On[0]=!1)}),On},[Ge,Wa]),Ta=(0,wt.Z)(so,2),uo=Ta[0],xa=Ta[1],Va=te.useMemo(function(){return Ge?Wa.filter(Hn?function(On){return On.value>=12}:function(On){return On.value<12}).map(function(On){var _a=On.value%12,ka=_a===0?"12":pn(_a,2);return(0,nt.Z)((0,nt.Z)({},On),{},{label:ka,value:_a})}):Wa},[Ge,Hn,Wa]),qa=Sn(0,59,st,Qn&&Qn(sa)),yo=Sn(0,59,De,La&&La(sa,Na)),eo=ln({value:be,generateConfig:oe,disabledMinutes:Qn,disabledSeconds:La,minutes:qa,seconds:yo,use12Hours:Ge});ce.current={onUpDown:function(_a){var ka=Fn[me];if(ka)for(var co=ka.units.findIndex(function(qo){return qo.value===ka.value}),ho=ka.units.length,za=1;za<ho;za+=1){var to=ka.units[(co+_a*za+ho)%ho];if(to.disabled!==!0){ka.onSelect(to.value);break}}}};function Fo(On,_a,ka,co,ho){On!==!1&&Fn.push({node:te.cloneElement(_a,{prefixCls:Dn,value:ka,active:me===Fn.length,onSelect:ho,units:co,hideDisabledOptions:jt}),onSelect:ho,value:ka,units:co})}Fo(he,te.createElement(En,{key:"hour",type:"hour",info:{today:kn,locale:Rt,cellRender:_t}}),ca,Va,function(On){Xt(eo(Hn,On,Na,na),"mouse")}),Fo(Ne,te.createElement(En,{key:"minute",type:"minute",info:{today:kn,locale:Rt,cellRender:_t}}),Na,qa,function(On){Xt(eo(Hn,ca,On,na),"mouse")}),Fo(Oe,te.createElement(En,{key:"second",type:"second",info:{today:kn,locale:Rt,cellRender:_t}}),na,yo,function(On){Xt(eo(Hn,ca,Na,On),"mouse")});var Go=-1;return typeof Hn=="boolean"&&(Go=Hn?1:0),Fo(Ge===!0,te.createElement(En,{key:"meridiem",type:"meridiem",info:{today:kn,locale:Rt,cellRender:_t}}),Go,[{label:"AM",value:0,disabled:uo},{label:"PM",value:1,disabled:xa}],function(On){Xt(eo(!!On,ca,Na,na),"mouse")}),te.createElement("div",{className:hn},Fn.map(function(On){var _a=On.node;return _a}))}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,be=ne.active,he=ne.operationRef,Ne=ne.showHour,Oe=ne.showMinute,Ge=ne.showSecond,Et=ne.use12Hours,_e=Et===void 0?!1:Et,Ue=ne.onSelect,st=ne.value,mt="".concat(me,"-time-panel"),De=te.useRef(),We=te.useState(-1),Pt=(0,wt.Z)(We,2),Ht=Pt[0],zt=Pt[1],jt=Oo([Ne,Oe,Ge,_e]);return he.current={onKeyDown:function(_t){return qn(_t,{onLeftRight:function(Fn){zt((Ht+Fn+jt)%jt)},onUpDown:function(Fn){Ht===-1?zt(0):De.current&&De.current.onUpDown(Fn)},onEnter:function(){Ue(st||oe.getNow(),"key"),zt(-1)}})},onBlur:function(){zt(-1)}},te.createElement("div",{className:pe()(mt,(0,ue.Z)({},"".concat(mt,"-active"),be))},te.createElement(Ut,(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,be=ne.defaultValue,he=ne.disabledTime,Ne=ne.showTime,Oe=ne.onSelect,Ge=ne.cellRender,Et="".concat(oe,"-datetime-panel"),_e=te.useState(null),Ue=(0,wt.Z)(_e,2),st=Ue[0],mt=Ue[1],De=te.useRef({}),We=te.useRef({}),Pt=(0,Qt.Z)(Ne)==="object"?(0,nt.Z)({},Ne):{};function Ht(_t){var Rt=Jo.indexOf(st)+_t,Fn=Jo[Rt]||null;return Fn}var zt=function(Rt){We.current.onBlur&&We.current.onBlur(Rt),mt(null)};re.current={onKeyDown:function(Rt){if(Rt.which===Tt.Z.TAB){var Fn=Ht(Rt.shiftKey?-1:1);return mt(Fn),Fn&&Rt.preventDefault(),!0}if(st){var hn=st==="date"?De:We;return hn.current&&hn.current.onKeyDown&&hn.current.onKeyDown(Rt),!0}return[Tt.Z.LEFT,Tt.Z.RIGHT,Tt.Z.UP,Tt.Z.DOWN].includes(Rt.which)?(mt("date"),!0):!1},onBlur:zt,onClose:zt};var jt=function(Rt,Fn){var hn=Rt;Fn==="date"&&!me&&Pt.defaultValue?(hn=ce.setHour(hn,ce.getHour(Pt.defaultValue)),hn=ce.setMinute(hn,ce.getMinute(Pt.defaultValue)),hn=ce.setSecond(hn,ce.getSecond(Pt.defaultValue))):Fn==="time"&&!me&&be&&(hn=ce.setYear(hn,ce.getYear(be)),hn=ce.setMonth(hn,ce.getMonth(be)),hn=ce.setDate(hn,ce.getDate(be))),Oe&&Oe(hn,"mouse")},Xt=he?he(me||null):{};return te.createElement("div",{className:pe()(Et,(0,ue.Z)({},"".concat(Et,"-active"),st))},te.createElement(va,(0,ae.Z)({},ne,{cellRender:Ge,operationRef:De,active:st==="date",onSelect:function(Rt){jt(je(ce,Rt,!me&&(0,Qt.Z)(Ne)==="object"?Ne.defaultValue:null),"date")}})),te.createElement(fo,(0,ae.Z)({},ne,{cellRender:Ge?function(_t,Rt){return Ge(_t,(0,nt.Z)((0,nt.Z)({},Rt),{},{type:"time"}))}:void 0,format:void 0},Pt,Xt,{disabledTime:null,defaultValue:void 0,operationRef:We,active:st==="time",onSelect:function(Rt){jt(Rt,"time")}})))}var or=ar;function Zo(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.viewDate,me=ne.onPrevDecades,be=ne.onNextDecades,he=te.useContext(Wt),Ne=he.hideHeader;if(Ne)return null;var Oe="".concat(oe,"-header"),Ge=re.getYear(ce),Et=Math.floor(Ge/Ye)*Ye,_e=Et+Ye-1;return te.createElement(an,(0,ae.Z)({},ne,{prefixCls:Oe,onSuperPrev:me,onSuperNext:be}),Et,"-",_e)}var So=Zo,ya=3,po=4;function To(ne){var oe=Le-1,re=ne.prefixCls,ce=ne.viewDate,me=ne.generateConfig,be=ne.cellRender,he=ne.locale,Ne="".concat(re,"-cell"),Oe=me.getYear(ce),Ge=Math.floor(Oe/Le)*Le,Et=Math.floor(Oe/Ye)*Ye,_e=Et+Ye-1,Ue=me.setYear(ce,Et-Math.ceil((ya*po*Le-Ye)/2)),st=function(We){var Pt,Ht=me.getYear(We),zt=Ht+oe;return Pt={},(0,ue.Z)(Pt,"".concat(Ne,"-in-view"),Et<=Ht&&zt<=_e),(0,ue.Z)(Pt,"".concat(Ne,"-selected"),Ht===Ge),Pt},mt=be?function(De,We){return be(De,{originNode:We,today:me.getNow(),type:"decade",locale:he})}:void 0;return te.createElement(bt,(0,ae.Z)({},ne,{rowNum:po,colNum:ya,baseDate:Ue,getCellNode:mt,getCellText:function(We){var Pt=me.getYear(We);return"".concat(Pt,"-").concat(Pt+oe)},getCellClassName:st,getCellDate:function(We,Pt){return me.addYear(We,Pt*Le)}}))}var zo=To;function $o(ne){var oe=ne.prefixCls,re=ne.onViewDateChange,ce=ne.generateConfig,me=ne.viewDate,be=ne.operationRef,he=ne.onSelect,Ne=ne.onPanelChange,Oe="".concat(oe,"-decade-panel");be.current={onKeyDown:function(Ue){return qn(Ue,{onLeftRight:function(mt){he(ce.addYear(me,mt*Le),"key")},onCtrlLeftRight:function(mt){he(ce.addYear(me,mt*Ye),"key")},onUpDown:function(mt){he(ce.addYear(me,mt*Le*ya),"key")},onEnter:function(){Ne("year",me)}})}};var Ge=function(Ue){var st=ce.addYear(me,Ue*Ye);re(st),Ne(null,st)},Et=function(Ue){he(Ue,"mouse"),Ne("year",Ue)};return te.createElement("div",{className:Oe},te.createElement(So,(0,ae.Z)({},ne,{prefixCls:oe,onPrevDecades:function(){Ge(-1)},onNextDecades:function(){Ge(1)}})),te.createElement(zo,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:Et})))}var bo=$o;function rr(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.viewDate,be=ne.onNextYear,he=ne.onPrevYear,Ne=ne.onYearClick,Oe=te.useContext(Wt),Ge=Oe.hideHeader;if(Ge)return null;var Et="".concat(oe,"-header");return te.createElement(an,(0,ae.Z)({},ne,{prefixCls:Et,onSuperPrev:he,onSuperNext:be}),te.createElement("button",{type:"button",onClick:Ne,className:"".concat(oe,"-year-btn")},Me(me,{locale:ce,format:ce.yearFormat,generateConfig:re})))}var $n=rr,wa=3,Ia=4;function ro(ne){var oe=ne.prefixCls,re=ne.locale,ce=ne.value,me=ne.viewDate,be=ne.generateConfig,he=ne.cellRender,Ne=te.useContext(ga),Oe=Ne.rangedValue,Ge=Ne.hoverRangedValue,Et="".concat(oe,"-cell"),_e=Ca({cellPrefixCls:Et,value:ce,generateConfig:be,rangedValue:Oe,hoverRangedValue:Ge,isSameCell:function(We,Pt){return Ft(be,We,Pt)},isInView:function(){return!0},offsetCell:function(We,Pt){return be.addMonth(We,Pt)}}),Ue=re.shortMonths||(be.locale.getShortMonths?be.locale.getShortMonths(re.locale):[]),st=be.setMonth(me,0),mt=he?function(De,We){return he(De,{originNode:We,locale:re,today:be.getNow(),type:"month"})}:void 0;return te.createElement(bt,(0,ae.Z)({},ne,{rowNum:Ia,colNum:wa,baseDate:st,getCellNode:mt,getCellText:function(We){return re.monthFormat?Me(We,{locale:re,format:re.monthFormat,generateConfig:be}):Ue[be.getMonth(We)]},getCellClassName:_e,getCellDate:be.addMonth,titleCell:function(We){return Me(We,{locale:re,format:"YYYY-MM",generateConfig:be})}}))}var io=ro;function Mo(ne){var oe=ne.prefixCls,re=ne.operationRef,ce=ne.onViewDateChange,me=ne.generateConfig,be=ne.value,he=ne.viewDate,Ne=ne.onPanelChange,Oe=ne.onSelect,Ge="".concat(oe,"-month-panel");re.current={onKeyDown:function(Ue){return qn(Ue,{onLeftRight:function(mt){Oe(me.addMonth(be||he,mt),"key")},onCtrlLeftRight:function(mt){Oe(me.addYear(be||he,mt),"key")},onUpDown:function(mt){Oe(me.addMonth(be||he,mt*wa),"key")},onEnter:function(){Ne("date",be||he)}})}};var Et=function(Ue){var st=me.addYear(he,Ue);ce(st),Ne(null,st)};return te.createElement("div",{className:Ge},te.createElement($n,(0,ae.Z)({},ne,{prefixCls:oe,onPrevYear:function(){Et(-1)},onNextYear:function(){Et(1)},onYearClick:function(){Ne("year",he)}})),te.createElement(io,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:function(Ue){Oe(Ue,"mouse"),Ne("date",Ue)}})))}var br=Mo;function ur(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.viewDate,be=ne.onNextYear,he=ne.onPrevYear,Ne=ne.onYearClick,Oe=te.useContext(Wt),Ge=Oe.hideHeader;if(Ge)return null;var Et="".concat(oe,"-header");return te.createElement(an,(0,ae.Z)({},ne,{prefixCls:Et,onSuperPrev:he,onSuperNext:be}),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,be=ne.generateConfig,he=ne.cellRender,Ne=te.useContext(ga),Oe=Ne.rangedValue,Ge=Ne.hoverRangedValue,Et="".concat(oe,"-cell"),_e=Ca({cellPrefixCls:Et,value:ce,generateConfig:be,rangedValue:Oe,hoverRangedValue:Ge,isSameCell:function(De,We){return rn(be,De,We)},isInView:function(){return!0},offsetCell:function(De,We){return be.addMonth(De,We*3)}}),Ue=be.setDate(be.setMonth(me,0),1),st=he?function(mt,De){return he(mt,{originNode:De,locale:re,today:be.getNow(),type:"quarter"})}:void 0;return te.createElement(bt,(0,ae.Z)({},ne,{rowNum:Ho,colNum:Fa,baseDate:Ue,getCellNode:st,getCellText:function(De){return Me(De,{locale:re,format:re.quarterFormat||"[Q]Q",generateConfig:be})},getCellClassName:_e,getCellDate:function(De,We){return be.addMonth(De,We*3)},titleCell:function(De){return Me(De,{locale:re,format:"YYYY-[Q]Q",generateConfig:be})}}))}var $r=Er;function zr(ne){var oe=ne.prefixCls,re=ne.operationRef,ce=ne.onViewDateChange,me=ne.generateConfig,be=ne.value,he=ne.viewDate,Ne=ne.onPanelChange,Oe=ne.onSelect,Ge="".concat(oe,"-quarter-panel");re.current={onKeyDown:function(Ue){return qn(Ue,{onLeftRight:function(mt){Oe(me.addMonth(be||he,mt*3),"key")},onCtrlLeftRight:function(mt){Oe(me.addYear(be||he,mt),"key")},onUpDown:function(mt){Oe(me.addYear(be||he,mt),"key")}})}};var Et=function(Ue){var st=me.addYear(he,Ue);ce(st),Ne(null,st)};return te.createElement("div",{className:Ge},te.createElement(Ra,(0,ae.Z)({},ne,{prefixCls:oe,onPrevYear:function(){Et(-1)},onNextYear:function(){Et(1)},onYearClick:function(){Ne("year",he)}})),te.createElement($r,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:function(Ue){Oe(Ue,"mouse")}})))}var nn=zr;function At(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.locale,me=ne.value,be=ne.disabledDate,he=ne.onSelect,Ne=te.useContext(ga),Oe=Ne.rangedValue,Ge=Ne.hoverRangedValue,Et=te.useContext(Wt),_e=Et.onDateMouseEnter,Ue=Et.onDateMouseLeave,st=(Ge==null?void 0:Ge[0])||(Oe==null?void 0:Oe[0]),mt=(Ge==null?void 0:Ge[1])||(Oe==null?void 0:Oe[1]),De="".concat(oe,"-cell"),We=function(jt){var Xt=Mt({cellDate:jt,mode:"week",disabledDate:be,generateConfig:re});return te.createElement("td",{key:"week",className:pe()(De,"".concat(De,"-week")),onClick:function(){Xt||he(jt,"mouse")},onMouseEnter:function(){!Xt&&_e&&_e(jt)},onMouseLeave:function(){!Xt&&Ue&&Ue(jt)}},te.createElement("div",{className:"".concat(De,"-inner")},re.locale.getWeek(ce.locale,jt)))},Pt="".concat(oe,"-week-panel-row"),Ht=function(jt){var Xt,_t=In(re,ce.locale,st,jt),Rt=In(re,ce.locale,mt,jt);return pe()(Pt,(Xt={},(0,ue.Z)(Xt,"".concat(Pt,"-selected"),!Oe&&In(re,ce.locale,me,jt)),(0,ue.Z)(Xt,"".concat(Pt,"-range-start"),_t),(0,ue.Z)(Xt,"".concat(Pt,"-range-end"),Rt),(0,ue.Z)(Xt,"".concat(Pt,"-range-hover"),!_t&&!Rt&&Bn(re,st,mt,jt)),Xt))};return te.createElement(va,(0,ae.Z)({},ne,{panelName:"week",prefixColumn:We,rowClassName:Ht,keyboardConfig:{onLeftRight:null},isSameCell:function(){return!1}}))}var Yt=At,Kt=10;function ea(ne){var oe=ne.prefixCls,re=ne.generateConfig,ce=ne.viewDate,me=ne.onPrevDecade,be=ne.onNextDecade,he=ne.onDecadeClick,Ne=te.useContext(Wt),Oe=Ne.hideHeader;if(Oe)return null;var Ge="".concat(oe,"-header"),Et=re.getYear(ce),_e=Math.floor(Et/Kt)*Kt,Ue=_e+Kt-1;return te.createElement(an,(0,ae.Z)({},ne,{prefixCls:Ge,onSuperPrev:me,onSuperNext:be}),te.createElement("button",{type:"button",onClick:he,className:"".concat(oe,"-decade-btn")},_e,"-",Ue))}var Ba=ea,Aa=3,Da=4;function Ya(ne){var oe=ne.prefixCls,re=ne.value,ce=ne.viewDate,me=ne.locale,be=ne.generateConfig,he=ne.cellRender,Ne=te.useContext(ga),Oe=Ne.rangedValue,Ge=Ne.hoverRangedValue,Et="".concat(oe,"-cell"),_e=be.getYear(ce),Ue=Math.floor(_e/Kt)*Kt,st=Ue+Kt-1,mt=be.setYear(ce,Ue-Math.ceil((Aa*Da-Kt)/2)),De=be.getNow(),We=function(jt){var Xt=be.getYear(jt);return Ue<=Xt&&Xt<=st},Pt=Ca({cellPrefixCls:Et,value:re,generateConfig:be,rangedValue:Oe,hoverRangedValue:Ge,isSameCell:function(jt,Xt){return it(be,jt,Xt)},isInView:We,offsetCell:function(jt,Xt){return be.addYear(jt,Xt)}}),Ht=he?function(zt,jt){return he(zt,{originNode:jt,today:De,type:"year",locale:me})}:void 0;return te.createElement(bt,(0,ae.Z)({},ne,{rowNum:Da,colNum:Aa,baseDate:mt,getCellNode:Ht,getCellText:be.getYear,getCellClassName:Pt,getCellDate:be.addYear,titleCell:function(jt){return Me(jt,{locale:me,format:"YYYY",generateConfig:be})}}))}var Ka=Ya;function jo(ne){var oe=ne.prefixCls,re=ne.operationRef,ce=ne.onViewDateChange,me=ne.generateConfig,be=ne.value,he=ne.viewDate,Ne=ne.sourceMode,Oe=ne.onSelect,Ge=ne.onPanelChange,Et="".concat(oe,"-year-panel");re.current={onKeyDown:function(st){return qn(st,{onLeftRight:function(De){Oe(me.addYear(be||he,De),"key")},onCtrlLeftRight:function(De){Oe(me.addYear(be||he,De*Kt),"key")},onUpDown:function(De){Oe(me.addYear(be||he,De*Aa),"key")},onEnter:function(){Ge(Ne==="date"?"date":"month",be||he)}})}};var _e=function(st){var mt=me.addYear(he,st*10);ce(mt),Ge(null,mt)};return te.createElement("div",{className:Et},te.createElement(Ba,(0,ae.Z)({},ne,{prefixCls:oe,onPrevDecade:function(){_e(-1)},onNextDecade:function(){_e(1)},onDecadeClick:function(){Ge("decade",he)}})),te.createElement(Ka,(0,ae.Z)({},ne,{prefixCls:oe,onSelect:function(st){Ge(Ne==="date"?"date":"month",st),Oe(st,"mouse")}})))}var lo=jo;function Cn(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,be=ne.onNow,he=ne.onOk,Ne=ne.okDisabled,Oe=ne.showNow,Ge=ne.locale,Et,_e;if(me){var Ue=ce.button||"button";be&&Oe!==!1&&(Et=te.createElement("li",{className:"".concat(oe,"-now")},te.createElement("a",{className:"".concat(oe,"-now-btn"),onClick:be},Ge.now))),_e=me&&te.createElement("li",{className:"".concat(oe,"-ok")},te.createElement(Ue,{disabled:Ne,onClick:he},Ge.ok))}return!Et&&!_e?null:te.createElement("ul",{className:"".concat(oe,"-ranges")},Et,_e)}var pa=["date","month"];function Un(ne){var oe,re=ne,ce=re.prefixCls,me=ce===void 0?"rc-picker":ce,be=re.className,he=re.style,Ne=re.locale,Oe=re.generateConfig,Ge=re.value,Et=re.defaultValue,_e=re.pickerValue,Ue=re.defaultPickerValue,st=re.disabledDate,mt=re.mode,De=re.picker,We=De===void 0?"date":De,Pt=re.tabIndex,Ht=Pt===void 0?0:Pt,zt=re.showNow,jt=re.showTime,Xt=re.showToday,_t=re.renderExtraFooter,Rt=re.hideHeader,Fn=re.onSelect,hn=re.onChange,Dn=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=We==="date"&&!!jt||We==="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,Go=qa.defaultOpenValue,On=te.useContext(ga),_a=On.inRange,ka=On.panelPosition,co=On.rangedValue,ho=On.hoverRangedValue,za=te.useRef({}),to=te.useRef(!0),qo=(0,gn.Z)(null,{value:Ge,defaultValue:Et,postState:function(Jt){return!Jt&&Go&&We==="time"?Go:Jt}}),_o=(0,wt.Z)(qo,2),Co=_o[0],Sr=_o[1],Or=(0,gn.Z)(null,{value:_e,defaultValue:Ue||Co,postState:function(Jt){var Mn=Oe.getNow();if(!Jt)return Mn;if(!Co&&jt){var Ha=(0,Qt.Z)(jt)==="object"?jt.defaultValue:Et;return je(Oe,Array.isArray(Jt)?Jt[0]:Jt,Ha||Mn)}return Array.isArray(Jt)?Jt[0]:Jt}}),wr=(0,wt.Z)(Or,2),wo=wr[0],Uo=wr[1],Io=function(Jt){Uo(Jt),sa&&sa(Jt)},Lr=function(Jt){var Mn=no[We];return Mn?Mn(Jt):Jt},cr=(0,gn.Z)(function(){return We==="time"?"time":Lr("date")},{value:mt}),Ao=(0,wt.Z)(cr,2),Za=Ao[0],Bo=Ao[1];te.useEffect(function(){Bo(We)},[We]);var gr=te.useState(function(){return Za}),lr=(0,wt.Z)(gr,2),Ro=lr[0],ko=lr[1],er=function(Jt,Mn){var Ha=Lr(Jt||Za);ko(Za),Bo(Ha),Dn&&(Za!==Ha||Gn(Oe,wo,wo))&&Dn(Mn,Ha)},Qa=function(Jt,Mn){var Ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Za===We||Ha)&&(Sr(Jt),Fn&&Fn(Jt),eo&&eo(Jt,Mn),hn&&!Gn(Oe,Jt,Co)&&!(st!=null&&st(Jt))&&hn(Jt))},xo=function(Jt){if(pa.includes(Za)){var Mn,Ha,Xo=Za==="date";switch(Jt===Tt.Z.PAGE_UP||Jt===Tt.Z.PAGE_DOWN?Ha=Xo?Oe.addMonth:Oe.addYear:Ha=Xo?Oe.addDate:Oe.addMonth,Jt){case Tt.Z.LEFT:case Tt.Z.PAGE_UP:Mn=Ha(wo,-1);break;case Tt.Z.RIGHT:case Tt.Z.PAGE_DOWN:Mn=Ha(wo,1);break;case Tt.Z.UP:case Tt.Z.DOWN:Mn=Ha(wo,Number("".concat(Jt===Tt.Z.UP?"-":"").concat(Xo?Je:wa)));break}if(Mn)return!(st!=null&&st(Mn))}return!0},mr=function(Jt){if(za.current&&za.current.onKeyDown){var Mn=!0,Ha=Jt.which;if([Tt.Z.LEFT,Tt.Z.RIGHT,Tt.Z.UP,Tt.Z.DOWN,Tt.Z.PAGE_UP,Tt.Z.PAGE_DOWN,Tt.Z.ENTER].includes(Ha)&&(Jt.preventDefault(),Ha!==Tt.Z.ENTER&&Ht===0&&(Mn=xo(Ha))),Mn)return za.current.onKeyDown(Jt)}return(0,ft.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},Ua=function(Jt){za.current&&za.current.onBlur&&za.current.onBlur(Jt)};yo&&ka!=="right"&&(yo.current={onKeyDown:mr,onClose:function(){za.current&&za.current.onClose&&za.current.onClose()}}),te.useEffect(function(){Ge&&!to.current&&Uo(Ge)},[Ge]),te.useEffect(function(){to.current=!1},[]);var Do,dr=Kn({cellRender:so,monthCellRender:Wa,dateRender:Xa}),ha=(0,nt.Z)((0,nt.Z)({},ne),{},{cellRender:dr,operationRef:za,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(Jt,Mn){Io(Jt),Qa(Jt,Mn)}}));break;case"year":Do=te.createElement(lo,(0,ae.Z)({},ha,{onSelect:function(Jt,Mn){Io(Jt),Qa(Jt,Mn)}}));break;case"month":Do=te.createElement(br,(0,ae.Z)({},ha,{onSelect:function(Jt,Mn){Io(Jt),Qa(Jt,Mn)}}));break;case"quarter":Do=te.createElement(nn,(0,ae.Z)({},ha,{onSelect:function(Jt,Mn){Io(Jt),Qa(Jt,Mn)}}));break;case"week":Do=te.createElement(Yt,(0,ae.Z)({},ha,{onSelect:function(Jt,Mn){Io(Jt),Qa(Jt,Mn)}}));break;case"time":delete ha.showTime,Do=te.createElement(fo,(0,ae.Z)({},ha,(0,Qt.Z)(jt)==="object"?jt:null,{onSelect:function(Jt,Mn){Io(Jt),Qa(Jt,Mn)}}));break;default:jt?Do=te.createElement(or,(0,ae.Z)({},ha,{onSelect:function(Jt,Mn){Io(Jt),Qa(Jt,Mn)}})):Do=te.createElement(va,(0,ae.Z)({},ha,{onSelect:function(Jt,Mn){Io(Jt),Qa(Jt,Mn)}}))}var sr,Yo,Ko=function(){var Jt=Oe.getNow(),Mn=He(Oe.getHour(Jt),Oe.getMinute(Jt),Oe.getSecond(Jt),uo?jn:1,xa?Sa:1,Va?La:1),Ha=ve(Oe,Jt,Mn[0],Mn[1],Mn[2]);Qa(Ha,"submit")};Fo||(sr=Cn(me,Za,_t),jt&&Za!=="date"?Yo=null:Yo=Xn({prefixCls:me,components:Na,needConfirmButton:Ta,okDisabled:!Co||st&&st(Co),locale:Ne,showNow:zt,onNow:Ta&&Ko,onOk:function(){Co&&(Qa(Co,"submit",!0),ca&&ca(Co))}}));var Cr;if(Xt&&Za==="date"&&We==="date"&&!jt){var fr=Oe.getNow(),Mr="".concat(me,"-today-btn"),hr=st&&st(fr);Cr=te.createElement("a",{className:pe()(Mr,hr&&"".concat(Mr,"-disabled")),"aria-disabled":hr,onClick:function(){hr||Qa(fr,"mouse",!0)}},Ne.today)}return te.createElement(Wt.Provider,{value:(0,nt.Z)((0,nt.Z)({},qa),{},{mode:Za,hideHeader:"hideHeader"in ne?Rt:qa.hideHeader,hidePrevBtn:_a&&ka==="right",hideNextBtn:_a&&ka==="left"})},te.createElement("div",{tabIndex:Ht,className:pe()("".concat(me,"-panel"),be,(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:Ua,onMouseDown:Hn},Do,sr||Yo||Cr?te.createElement("div",{className:"".concat(me,"-footer")},sr,Yo,Cr):null))}var ta=Un,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,be=ne.visible,he=ne.dropdownClassName,Ne=ne.dropdownAlign,Oe=ne.transitionName,Ge=ne.getPopupContainer,Et=ne.children,_e=ne.range,Ue=ne.popupPlacement,st=ne.direction,mt="".concat(re,"-dropdown"),De=function(){return Ue!==void 0?Ue:st==="rtl"?"bottomRight":"bottomLeft"};return te.createElement(Ja.Z,{showAction:[],hideAction:[],popupPlacement:De(),builtinPlacements:ba,prefixCls:mt,popupTransitionName:Oe,popup:ce,popupAlign:Ne,popupVisible:be,popupClassName:pe()(he,(oe={},(0,ue.Z)(oe,"".concat(mt,"-range"),_e),(0,ue.Z)(oe,"".concat(mt,"-rtl"),st==="rtl"),oe)),popupStyle:me,getPopupContainer:Ge},Et)}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(be,he){var Ne=be.label,Oe=be.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,be=re.id,he=re.name,Ne=re.tabIndex,Oe=re.style,Ge=re.className,Et=re.dropdownClassName,_e=re.dropdownAlign,Ue=re.popupStyle,st=re.transitionName,mt=re.generateConfig,De=re.locale,We=re.inputReadOnly,Pt=re.allowClear,Ht=re.autoFocus,zt=re.showTime,jt=re.picker,Xt=jt===void 0?"date":jt,_t=re.format,Rt=re.use12Hours,Fn=re.value,hn=re.defaultValue,Dn=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,Go=re.onSelect,On=re.direction,_a=re.autoComplete,ka=_a===void 0?"off":_a,co=re.inputRender,ho=re.changeOnBlur,za=te.useRef(null),to=Xt==="date"&&!!zt||Xt==="time",qo=$e(Dn),_o=ma(Pa(_t,Xt,zt,Rt)),Co=te.useRef(null),Sr=te.useRef(null),Or=te.useRef(null),wr=(0,gn.Z)(null,{value:Fn,defaultValue:hn}),wo=(0,wt.Z)(wr,2),Uo=wo[0],Io=wo[1],Lr=te.useState(Uo),cr=(0,wt.Z)(Lr,2),Ao=cr[0],Za=cr[1],Bo=te.useRef(null),gr=(0,gn.Z)(!1,{value:Hn,defaultValue:sa,postState:function(Pn){return kn?!1:Pn},onChange:function(Pn){Wa&&Wa(Pn),!Pn&&Bo.current&&Bo.current.onClose&&Bo.current.onClose()}}),lr=(0,wt.Z)(gr,2),Ro=lr[0],ko=lr[1],er=Zt(Ao,{formatList:_o,generateConfig:mt,locale:De}),Qa=(0,wt.Z)(er,2),xo=Qa[0],mr=Qa[1],Ua=xe({valueTexts:xo,onTextChange:function(Pn){var Eo=dt(Pn,{locale:De,formatList:_o,generateConfig:mt});Eo&&(!jn||!jn(Eo))&&Za(Eo)}}),Do=(0,wt.Z)(Ua,3),dr=Do[0],ha=Do[1],sr=Do[2],Yo=function(Pn){Za(Pn),Io(Pn),Xa&&!Gn(mt,Uo,Pn)&&Xa(Pn,Pn?Me(Pn,{generateConfig:mt,locale:De,format:_o[0]}):"")},Ko=function(Pn){kn&&Pn||ko(Pn)},Cr=function(Pn){return Ro&&Bo.current&&Bo.current.onKeyDown?Bo.current.onKeyDown(Pn):((0,ft.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},fr=function(){for(var Pn=arguments.length,Eo=new Array(Pn),No=0;No<Pn;No++)Eo[No]=arguments[No];eo==null||eo.apply(void 0,Eo),za.current&&(za.current.focus(),Ko(!0))},Mr=function(Pn){ho&&Yo(Ao),Ta==null||Ta(Pn)},hr=ao({blurToCancel:to,open:Ro,value:dr,triggerOpen:Ko,forwardKeyDown:Cr,isClickOutside:function(Pn){return!Lo([Co.current,Sr.current,Or.current],Pn)},onSubmit:function(){return!Ao||jn&&jn(Ao)?!1:(Yo(Ao),Ko(!1),sr(),!0)},onCancel:function(){Ko(!1),Za(Uo),sr()},onKeyDown:function(Pn,Eo){Fo==null||Fo(Pn,Eo)},onFocus:so,onBlur:Mr,changeOnBlur:ho}),wn=(0,wt.Z)(hr,2),Jt=wn[0],Mn=wn[1],Ha=Mn.focused,Xo=Mn.typing;te.useEffect(function(){Ro||(Za(Uo),!xo.length||xo[0]===""?ha(""):mr!==dr&&sr())},[Ro,xo]),te.useEffect(function(){Ro||sr()},[Xt]),te.useEffect(function(){Za(Uo)},[Uo]),Qn&&(Qn.current={focus:function(){var Pn;(Pn=za.current)===null||Pn===void 0||Pn.focus()},blur:function(){var Pn;(Pn=za.current)===null||Pn===void 0||Pn.blur()}});var Yr=dn(dr,{formatList:_o,generateConfig:mt,locale:De}),Gr=(0,wt.Z)(Yr,3),Kr=Gr[0],Ir=Gr[1],mo=Gr[2],xn=(0,nt.Z)((0,nt.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(Pn){Yo(Pn),Ko(!1)}}),te.createElement(ta,(0,ae.Z)({},xn,{generateConfig:mt,className:pe()((0,ue.Z)({},"".concat(me,"-panel-focused"),!Xo)),value:Ao,locale:De,tabIndex:-1,onSelect:function(Pn){Go==null||Go(Pn),Za(Pn)},direction:On,onPanelChange:function(Pn,Eo){var No=ne.onPanelChange;mo(!0),No==null||No(Pn,Eo)}})));La&&(Ar=La(Ar));var Qo=te.createElement("div",{className:"".concat(me,"-panel-container"),ref:Co,onMouseDown:function(Pn){Pn.preventDefault()}},Ar),Xr;Na&&(Xr=te.createElement("span",{className:"".concat(me,"-suffix"),onMouseDown:function(Pn){Pn.preventDefault()}},Na));var di=Br(me,Pt,na),si=te.createElement("span",{onMouseDown:function(Pn){Pn.preventDefault(),Pn.stopPropagation()},onMouseUp:function(Pn){Pn.preventDefault(),Pn.stopPropagation(),Yo(null),Ko(!1)},className:"".concat(me,"-clear"),role:"button"},di),Qr=!!Pt&&Uo&&!kn,kr=(0,nt.Z)((0,nt.Z)((0,nt.Z)({id:be,tabIndex:Ne,disabled:kn,readOnly:We||typeof _o[0]=="function"||!Xo,value:Kr||dr,onChange:function(Pn){ha(Pn.target.value)},autoFocus:Ht,placeholder:ua,ref:za,title:dr},Jt),{},{size:Yn(Xt,_o[0],mt),name:he},(0,tn.Z)(ne,{aria:!0,data:!0})),{},{autoComplete:ka}),Jr=co?co(kr):te.createElement("input",kr),ui=function(Pn,Eo){(Eo==="submit"||Eo!=="key"&&!to)&&(Yo(Pn),Ko(!1))},qr=On==="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:Ue,prefixCls:me,dropdownClassName:Et,dropdownAlign:_e,getPopupContainer:Sa,transitionName:st,popupPlacement:qr,direction:On},te.createElement("div",{ref:Or,className:pe()(me,Ge,(oe={},(0,ue.Z)(oe,"".concat(me,"-disabled"),kn),(0,ue.Z)(oe,"".concat(me,"-focused"),Ha),(0,ue.Z)(oe,"".concat(me,"-rtl"),On==="rtl"),oe)),style:Oe,onMouseDown:uo,onMouseUp:xa,onMouseEnter:Va,onMouseLeave:qa,onContextMenu:yo,onClick:fr},te.createElement("div",{className:pe()("".concat(me,"-input"),(0,ue.Z)({},"".concat(me,"-input-placeholder"),!!Kr)),ref:Sr},Jr,Xr,Qr&&si))))}var Hr=function(ne){(0,lt.Z)(re,ne);var oe=(0,Lt.Z)(re);function re(){var ce;(0,ze.Z)(this,re);for(var me=arguments.length,be=new Array(me),he=0;he<me;he++)be[he]=arguments[he];return ce=oe.call.apply(oe,[this].concat(be)),(0,ue.Z)((0,Dt.Z)(ce),"pickerRef",te.createRef()),(0,ue.Z)((0,Dt.Z)(ce),"focus",function(){ce.pickerRef.current&&ce.pickerRef.current.focus()}),(0,ue.Z)((0,Dt.Z)(ce),"blur",function(){ce.pickerRef.current&&ce.pickerRef.current.blur()}),ce}return(0,ht.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,be=ne.disabledDate,he=ne.disabled,Ne=ne.generateConfig,Oe=fn(me,0),Ge=fn(me,1);function Et(De){return Ne.locale.getWeekFirstDate(ce.locale,De)}function _e(De){var We=Ne.getYear(De),Pt=Ne.getMonth(De);return We*100+Pt}function Ue(De){var We=Ne.getYear(De),Pt=kt(Ne,De);return We*10+Pt}var st=te.useCallback(function(De){if(he[0]||be&&be(De))return!0;if(he[1]&&Ge)return!Nt(Ne,De,Ge)&&Ne.isAfter(De,Ge);if(!oe&&Ge)switch(re){case"quarter":return Ue(De)>Ue(Ge);case"month":return _e(De)>_e(Ge);case"week":return Et(De)>Et(Ge);default:return!Nt(Ne,De,Ge)&&Ne.isAfter(De,Ge)}return!1},[be,he[1],Ge,oe]),mt=te.useCallback(function(De){if(he[1]||be&&be(De))return!0;if(he[0]&&Oe)return!Nt(Ne,De,Ge)&&Ne.isAfter(Oe,De);if(!oe&&Oe)switch(re){case"quarter":return Ue(De)<Ue(Oe);case"month":return _e(De)<_e(Oe);case"week":return Et(De)<Et(Oe);default:return!Nt(Ne,De,Oe)&&Ne.isAfter(Oe,De)}return!1},[be,he[0],Oe,oe]);return[st,mt]}var oi=ge(70425),mg=ge(6089);function fg(ne,oe,re,ce,me,be,he,Ne,Oe,Ge){var Et=te.useState(!1),_e=(0,wt.Z)(Et,2),Ue=_e[0],st=_e[1],mt=(0,oi.useMergedState)(ne||!1,{value:oe}),De=(0,wt.Z)(mt,2),We=De[0],Pt=De[1],Ht=(0,oi.useMergedState)(ne||!1,{value:oe,onChange:function(jn){Ge==null||Ge(jn)}}),zt=(0,wt.Z)(Ht,2),jt=zt[0],Xt=zt[1],_t=(0,oi.useMergedState)(0,{value:re}),Rt=(0,wt.Z)(_t,2),Fn=Rt[0],hn=Rt[1],Dn=te.useState(null),Hn=(0,wt.Z)(Dn,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){hn(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=We?Na(jn):sa;Qn!==null&&(st(!1),hn(Qn)),ca(null),Qn!==null&&!Oe[Qn]?(0,qt.Z)(function(){var La,Xa=[me,be][Qn];(La=Xa.current)===null||La===void 0||La.focus()}):Xt(!1)}else Xt(!1),Pt(!1)});return[jt,Fn,Ue,na]}function Sg(ne,oe,re,ce){var me=Ce(ne,re,ce,1);function be(he){return he(ne,oe)?"same":he(me,oe)?"closing":"far"}switch(re){case"year":return be(function(he,Ne){return en(ce,he,Ne)});case"quarter":case"month":return be(function(he,Ne){return it(ce,he,Ne)});default:return be(function(he,Ne){return Ft(ce,he,Ne)})}}function hg(ne,oe,re,ce){var me=fn(ne,0),be=fn(ne,1);if(oe===0)return me;if(me&&be){var he=Sg(me,be,re,ce);switch(he){case"same":return me;case"closing":return me;default:return Ce(be,re,ce,-1)}}return me}function Pg(ne){var oe=ne.values,re=ne.picker,ce=ne.defaultDates,me=ne.generateConfig,be=te.useState(function(){return[fn(ce,0),fn(ce,1)]}),he=(0,wt.Z)(be,2),Ne=he[0],Oe=he[1],Ge=te.useState(null),Et=(0,wt.Z)(Ge,2),_e=Et[0],Ue=Et[1],st=fn(oe,0),mt=fn(oe,1);function De(Pt){return Ne[Pt]?Ne[Pt]:fn(_e,Pt)||hg(oe,Pt,re,me)||st||mt||me.getNow()}function We(Pt,Ht){if(Pt){var zt=pt(_e,Pt,Ht);Oe(pt(Ne,null,Ht)||[null,null]);var jt=(Ht+1)%2;fn(oe,jt)||(zt=pt(zt,Pt,jt)),Ue(zt)}else(st||mt)&&Ue(null)}return[De,We]}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,be=me.prefixCls,he=be===void 0?"rc-picker":be,Ne=me.id,Oe=me.style,Ge=me.className,Et=me.popupStyle,_e=me.dropdownClassName,Ue=me.transitionName,st=me.dropdownAlign,mt=me.getPopupContainer,De=me.generateConfig,We=me.locale,Pt=me.placeholder,Ht=me.autoFocus,zt=me.disabled,jt=me.format,Xt=me.picker,_t=Xt===void 0?"date":Xt,Rt=me.showTime,Fn=me.use12Hours,hn=me.separator,Dn=hn===void 0?"~":hn,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,Go=me.onOpenChange,On=me.onPanelChange,_a=me.onCalendarChange,ka=me.onFocus,co=me.onBlur,ho=me.onMouseDown,za=me.onMouseUp,to=me.onMouseEnter,qo=me.onMouseLeave,_o=me.onClick,Co=me.onOk,Sr=me.onKeyDown,Or=me.components,wr=me.order,wo=me.direction,Uo=me.activePickerIndex,Io=me.autoComplete,Lr=Io===void 0?"off":Io,cr=me.changeOnBlur,Ao=_t==="date"&&!!Rt||_t==="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,_t,Rt,Fn)),mr=(0,te.useRef)(null),Ua=te.useMemo(function(){return Array.isArray(zt)?zt:[zt||!1,zt||!1]},[zt]),Do=(0,gn.Z)(null,{value:Hn,defaultValue:sa,postState:function(on){return _t==="time"&&!wr?on:Li(on,De)}}),dr=(0,wt.Z)(Do,2),ha=dr[0],sr=dr[1],Yo=Pg({values:ha,picker:_t,defaultDates:ca,generateConfig:De}),Ko=(0,wt.Z)(Yo,2),Cr=Ko[0],fr=Ko[1],Mr=(0,gn.Z)(ha,{postState:function(on){var vn=on;if(Ua[0]&&Ua[1])return vn;for(var aa=0;aa<2;aa+=1)Ua[aa]&&!vn&&!fn(vn,aa)&&!fn(so,aa)&&(vn=pt(vn,De.getNow(),aa));return vn}}),hr=(0,wt.Z)(Mr,2),wn=hr[0],Jt=hr[1],Mn=(0,gn.Z)([_t,_t],{value:yo}),Ha=(0,wt.Z)(Mn,2),Xo=Ha[0],Yr=Ha[1];(0,te.useEffect)(function(){Yr([_t,_t])},[_t]);var Gr=function(on,vn){Yr(on),On&&On(vn,on)},Kr=fg(na,Na,Uo,cr,ko,er,fn(wn,0),fn(wn,1),Ua,Go),Ir=(0,wt.Z)(Kr,4),mo=Ir[0],xn=Ir[1],Ar=Ir[2],Qo=Ir[3],Xr=mo&&xn===0,di=mo&&xn===1,si=Wr({picker:_t,selectedValue:wn,locale:We,disabled:Ua,disabledDate:kn,generateConfig:De},!mo||Ar),Qr=(0,wt.Z)(si,2),kr=Qr[0],Jr=Qr[1],ui=(0,te.useState)(0),qr=(0,wt.Z)(ui,2),ja=qr[0],Pn=qr[1];(0,te.useEffect)(function(){!mo&&Za.current&&Pn(Za.current.offsetWidth)},[mo]);function Eo(Jn){Qo(!0,Jn,"open"),(0,qt.Z)(function(){var on,vn=[ko,er][Jn];(on=vn.current)===null||on===void 0||on.focus()},0)}function No(Jn,on){var vn=Jn,aa=fn(vn,0),Ga=fn(vn,1);aa&&Ga&&De.isAfter(aa,Ga)&&(_t==="week"&&!In(De,We.locale,aa,Ga)||_t==="quarter"&&!rn(De,aa,Ga)||_t!=="week"&&_t!=="quarter"&&_t!=="time"&&!Nt(De,aa,Ga)?on===0?(vn=[aa,null],Ga=null):(aa=null,vn=[null,Ga]):(_t!=="time"||wr!==!1)&&(vn=Li(vn,De))),Jt(vn);var Tr=vn&&vn[0]?Me(vn[0],{generateConfig:De,locale:We,format:xo[0]}):"",tr=vn&&vn[1]?Me(vn[1],{generateConfig:De,locale:We,format:xo[0]}):"";if(_a){var vr={range:on===0?"start":"end"};_a(vn,[Tr,tr],vr)}var pr=Ci(aa,0,Ua,so),Zr=Ci(Ga,1,Ua,so),xr=vn===null||pr&&Zr;xr&&(sr(vn),Fo&&(!Gn(De,fn(ha,0),aa)||!Gn(De,fn(ha,1),Ga))&&Fo(vn,[Tr,tr]))}var Wg=function(on){return mo&&mr.current&&mr.current.onKeyDown?mr.current.onKeyDown(on):((0,ft.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Gi={formatList:xo,generateConfig:De,locale:We},Vg=Zt(fn(wn,0),Gi),Ai=(0,wt.Z)(Vg,2),ei=Ai[0],_g=Ai[1],Ug=Zt(fn(wn,1),Gi),ki=(0,wt.Z)(Ug,2),ti=ki[0],Yg=ki[1],Zi=function(on,vn){var aa=dt(on,{locale:We,formatList:xo,generateConfig:De}),Ga=vn===0?kr:Jr;aa&&!Ga(aa)&&(Jt(pt(wn,aa,vn)),fr(aa,vn))},Kg=xe({valueTexts:ei,onTextChange:function(on){return Zi(on,0)}}),ci=(0,wt.Z)(Kg,3),ni=ci[0],Hi=ci[1],ji=ci[2],Xg=xe({valueTexts:ti,onTextChange:function(on){return Zi(on,1)}}),mi=(0,wt.Z)(Xg,3),ai=mi[0],Wi=mi[1],Vi=mi[2],Qg=(0,te.useState)(null),_i=(0,wt.Z)(Qg,2),Jg=_i[0],qg=_i[1],el=(0,te.useState)(null),Ui=(0,wt.Z)(el,2),Rr=Ui[0],Yi=Ui[1],tl=dn(ni,{formatList:xo,generateConfig:De,locale:We}),fi=(0,wt.Z)(tl,3),Ki=fi[0],nl=fi[1],Si=fi[2],al=dn(ai,{formatList:xo,generateConfig:De,locale:We}),hi=(0,wt.Z)(al,3),Xi=hi[0],ol=hi[1],Pi=hi[2],rl=function(on){Yi(pt(wn,on,xn)),xn===0?nl(on):ol(on)},il=function(){Yi(pt(wn,null,xn)),xn===0?Si():Pi()},gl=te.useState(mo),Qi=(0,wt.Z)(gl,2),ll=Qi[0],dl=Qi[1];te.useEffect(function(){dl(mo)},[mo]);var sl=function(on){if(cr&&ll){var vn=fn(wn,xn);vn&&No(wn,xn)}return co==null?void 0:co(on)},Ji=function(on,vn){return{blurToCancel:!cr&&Ao,forwardKeyDown:Wg,onBlur:sl,isClickOutside:function(Ga){return!Lo([Bo.current,gr.current,lr.current,Za.current],Ga)},onFocus:function(Ga){ka&&ka(Ga)},triggerOpen:function(Ga){Ga?Qo(Ga,on,"open"):Qo(Ga,fn(wn,on)?on:!1,"blur")},onSubmit:function(){if(!wn||kn&&kn(wn[on]))return!1;No(wn,on),vn(),Qo(!1,xn,"confirm")},onCancel:function(){Qo(!1,on,"cancel"),Jt(ha),vn()}}},qi={onKeyDown:function(on,vn){Sr==null||Sr(on,vn)},changeOnBlur:cr},ul=ao((0,nt.Z)((0,nt.Z)({},Ji(0,ji)),{},{open:Xr,value:ni},qi)),eg=(0,wt.Z)(ul,2),cl=eg[0],tg=eg[1],ng=tg.focused,ag=tg.typing,ml=ao((0,nt.Z)((0,nt.Z)({},Ji(1,Vi)),{},{open:di,value:ai},qi)),og=(0,wt.Z)(ml,2),fl=og[0],rg=og[1],ig=rg.focused,gg=rg.typing,Sl=function(on){_o&&_o(on),!mo&&!ko.current.contains(on.target)&&!er.current.contains(on.target)&&(Ua[0]?Ua[1]||Eo(1):Eo(0))},hl=function(on){ho&&ho(on),mo&&(ng||ig)&&!ko.current.contains(on.target)&&!er.current.contains(on.target)&&on.preventDefault()},Pl=ha&&ha[0]?Me(ha[0],{locale:We,format:"YYYYMMDDHHmmss",generateConfig:De}):"",vl=ha&&ha[1]?Me(ha[1],{locale:We,format:"YYYYMMDDHHmmss",generateConfig:De}):"";(0,te.useEffect)(function(){mo||(Jt(ha),!ei.length||ei[0]===""?Hi(""):_g!==ni&&ji(),!ti.length||ti[0]===""?Wi(""):Yg!==ai&&Vi())},[mo,ei,ti]),(0,te.useEffect)(function(){Jt(ha)},[Pl,vl]);var vi=Kn({cellRender:Qn,monthCellRender:Sa,dateRender:ua}),pl=te.useMemo(function(){if(vi)return function(Jn,on){return vi(Jn,(0,nt.Z)((0,nt.Z)({},on),{},{range:xn?"end":"start"}))}},[xn,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,on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},vn=null;mo&&Rr&&Rr[0]&&Rr[1]&&De.isAfter(Rr[1],Rr[0])&&(vn=Rr);var aa=Rt;if(Rt&&(0,Qt.Z)(Rt)==="object"&&Rt.defaultValue){var Ga=Rt.defaultValue;aa=(0,nt.Z)((0,nt.Z)({},Rt),{},{defaultValue:fn(Ga,xn)||void 0})}return te.createElement(ga.Provider,{value:{inRange:!0,panelPosition:Jn,rangedValue:Jg||wn,hoverRangedValue:vn}},te.createElement(ta,(0,ae.Z)({},ne,on,{cellRender:pl,showTime:aa,mode:Xo[xn],generateConfig:De,style:void 0,direction:wo,disabledDate:xn===0?kr:Jr,disabledTime:function(tr){return jn?jn(tr,xn===0?"start":"end"):!1},className:pe()((0,ue.Z)({},"".concat(he,"-panel-focused"),xn===0?!ag:!gg)),value:fn(wn,xn),locale:We,tabIndex:-1,onPanelChange:function(tr,vr){xn===0&&Si(!0),xn===1&&Pi(!0),Gr(pt(Xo,vr,xn),pt(wn,tr,xn));var pr=tr;Jn==="right"&&Xo[xn]===vr&&(pr=Ce(pr,vr,De,-1)),fr(pr,xn)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:xn===0?fn(wn,1):fn(wn,0)})))}var Pr=0,lg=0;if(xn&&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,on=Cn(he,Xo[xn],eo),vn=Xn({prefixCls:he,components:Or,needConfirmButton:Ao,okDisabled:!fn(wn,xn)||kn&&kn(wn[xn]),locale:We,onOk:function(){var nr=fn(wn,xn);nr&&(No(wn,xn),Co==null||Co(wn),Qo(!1,xn,"confirm"))}});if(_t!=="time"&&!Rt){var aa=Cr(xn),Ga=Ce(aa,_t,De),Tr=Xo[xn],tr=Tr===_t,vr=pi(tr?"left":!1,{pickerValue:aa,onPickerValueChange:function(nr){fr(nr,xn)}}),pr=pi("right",{pickerValue:Ga,onPickerValueChange:function(nr){fr(Ce(nr,_t,De,-1),xn)}});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,xn,"preset")},onHover:function(nr){qg(nr)}}),te.createElement("div",null,te.createElement("div",{className:"".concat(he,"-panels")},Jn),(on||vn)&&te.createElement("div",{className:"".concat(he,"-footer")},on,vn)));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:pe()("".concat(he,"-range-wrapper"),"".concat(he,"-").concat(_t,"-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(on){on.preventDefault()}},uo));var xl=Br(he,Ta,xa),El=te.createElement("span",{onMouseDown:function(on){on.preventDefault(),on.stopPropagation()},onMouseUp:function(on){on.preventDefault(),on.stopPropagation();var vn=ha;Ua[0]||(vn=pt(vn,null,0)),Ua[1]||(vn=pt(vn,null,1)),No(vn,null),Qo(!1,xn,"clear")},className:"".concat(he,"-clear"),role:"button"},xl),$l=Ta&&(fn(ha,0)&&!Ua[0]||fn(ha,1)&&!Ua[1]),cg={size:Yn(_t,xo[0],De)},bi=0,yi=0;gr.current&&lr.current&&Ro.current&&(xn===0?yi=gr.current.offsetWidth:(bi=Pr,yi=lr.current.offsetWidth));var Fl=wo==="rtl"?{right:bi}:{left:bi},Bl=function(on,vn){var aa=pt(wn,on,xn);if(vn==="submit"||vn!=="key"&&!Ao){No(aa,xn),xn===0?Si():Pi();var Ga=xn===0?1:0;Ua[Ga]?Qo(!1,!1,"confirm"):Qo(!1,xn,"confirm")}else Jt(aa)};return te.createElement(Wt.Provider,{value:{operationRef:mr,hideHeader:_t==="time",onDateMouseEnter:rl,onDateMouseLeave:il,hideRanges:!0,onSelect:Bl,open:mo}},te.createElement(Wo,{visible:mo,popupElement:Cl,popupStyle:Et,prefixCls:he,dropdownClassName:_e,dropdownAlign:st,getPopupContainer:mt,transitionName:Ue,range:!0,direction:wo},te.createElement("div",(0,ae.Z)({ref:Za,className:pe()(he,"".concat(he,"-range"),Ge,(oe={},(0,ue.Z)(oe,"".concat(he,"-disabled"),Ua[0]&&Ua[1]),(0,ue.Z)(oe,"".concat(he,"-focused"),xn===0?ng:ig),(0,ue.Z)(oe,"".concat(he,"-rtl"),wo==="rtl"),oe)),style:Oe,onClick:Sl,onMouseEnter:to,onMouseLeave:qo,onMouseDown:hl,onMouseUp:za},(0,tn.Z)(ne,{aria:!0,data:!0})),te.createElement("div",{className:pe()("".concat(he,"-input"),(re={},(0,ue.Z)(re,"".concat(he,"-input-active"),xn===0),(0,ue.Z)(re,"".concat(he,"-input-placeholder"),!!Ki),re)),ref:gr},te.createElement("input",(0,ae.Z)({id:Ne,disabled:Ua[0],readOnly:qa||typeof xo[0]=="function"||!ag,value:Ki||ni,onChange:function(on){Hi(on.target.value)},autoFocus:Ht,placeholder:fn(Pt,0)||"",ref:ko},cl,cg,{autoComplete:Lr}))),te.createElement("div",{className:"".concat(he,"-range-separator"),ref:Ro},Dn),te.createElement("div",{className:pe()("".concat(he,"-input"),(ce={},(0,ue.Z)(ce,"".concat(he,"-input-active"),xn===1),(0,ue.Z)(ce,"".concat(he,"-input-placeholder"),!!Xi),ce)),ref:lr},te.createElement("input",(0,ae.Z)({disabled:Ua[1],readOnly:qa||typeof xo[0]=="function"||!gg,value:Xi||ai,onChange:function(on){Wi(on.target.value)},placeholder:fn(Pt,1)||"",ref:er},fl,cg,{autoComplete:Lr}))),te.createElement("div",{className:"".concat(he,"-active-bar"),style:(0,nt.Z)((0,nt.Z)({},Fl),{},{width:yi,position:"absolute"})}),ug,$l&&El)))}var pg=function(ne){(0,lt.Z)(re,ne);var oe=(0,Lt.Z)(re);function re(){var ce;(0,ze.Z)(this,re);for(var me=arguments.length,be=new Array(me),he=0;he<me;he++)be[he]=arguments[he];return ce=oe.call.apply(oe,[this].concat(be)),(0,ue.Z)((0,Dt.Z)(ce),"pickerRef",te.createRef()),(0,ue.Z)((0,Dt.Z)(ce),"focus",function(){ce.pickerRef.current&&ce.pickerRef.current.focus()}),(0,ue.Z)((0,Dt.Z)(ce),"blur",function(){ce.pickerRef.current&&ce.pickerRef.current.blur()}),ce}return(0,ht.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),_r=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,be=Math.floor(re*me)+2,he=Math.max((oe-be)/2,0),Ne=Math.max(oe-be-he,0);return{padding:`${he}px ${ce}px ${Ne}px`}},xg=ne=>{const{componentCls:oe,pickerCellCls:re,pickerCellInnerCls:ce,cellHeight:me,motionDurationSlow:be,borderRadiusSM:he,motionDurationMid:Ne,cellHoverBg:Oe,lineWidth:Ge,lineType:Et,colorPrimary:_e,cellActiveWithRangeBg:Ue,colorTextLightSolid:st,controlHeightSM:mt,cellRangeBorderColor:De,pickerCellBorderGap:We,cellHoverWithRangeBg:Pt,cellWidth:Ht,colorTextDisabled:zt,cellBgDisabled:jt}=ne;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:me,transform:"translateY(-50%)",transition:`all ${be}`,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:`${Ge}px ${Et} ${_e}`,borderRadius:he,content:'""'}},[`&-in-view${re}-in-range`]:{position:"relative","&::before":{background:Ue}},[`&-in-view${re}-selected ${ce},
|
|
&-in-view${re}-range-start ${ce},
|
|
&-in-view${re}-range-end ${ce}`]:{color:st,background:_e},[`&-in-view${re}-range-start:not(${re}-range-start-single),
|
|
&-in-view${re}-range-end:not(${re}-range-end-single)`]:{"&::before":{background:Ue}},[`&-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:mt,borderTop:`${Ge}px dashed ${De}`,borderBottom:`${Ge}px dashed ${De}`,transform:"translateY(-50%)",transition:`all ${be}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:We},[`&-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:Pt},[`&-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:`${Ge}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:`${Ge}px dashed ${De}`,borderStartEndRadius:he,borderEndEndRadius:he},"&-disabled":{color:zt,pointerEvents:"none",[ce]:{background:"transparent"},"&::before":{background:jt}},[`&-disabled${re}-today ${ce}::before`]:{borderColor:zt}}},Eg=ne=>{const{componentCls:oe,pickerCellCls:re,pickerCellInnerCls:ce,pickerYearMonthCellWidth:me,pickerControlIconSize:be,cellWidth:he,paddingSM:Ne,paddingXS:Oe,paddingXXS:Ge,colorBgContainer:Et,lineWidth:_e,lineType:Ue,borderRadiusLG:st,colorPrimary:mt,colorTextHeading:De,colorSplit:We,pickerControlIconBorderWidth:Pt,colorIcon:Ht,textHeight:zt,motionDurationMid:jt,colorIconHover:Xt,fontWeightStrong:_t,cellHeight:Rt,pickerCellPaddingVertical:Fn,colorTextDisabled:hn,colorText:Dn,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:Et,border:`${_e}px ${Ue} ${We}`,borderRadius:st,outline:"none","&-focused":{borderColor:mt},"&-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:`${_e}px ${Ue} ${We}`,"> *":{flex:"none"},button:{padding:0,color:Ht,lineHeight:`${zt}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:_t,lineHeight:`${zt}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Oe},"&:hover":{color:mt}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:be,height:be,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:be,height:be,border:"0 solid currentcolor",borderBlockStartWidth:Pt,borderBlockEndWidth:0,borderInlineStartWidth:Pt,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(be/2),insetInlineStart:Math.ceil(be/2),display:"inline-block",width:be,height:be,border:"0 solid currentcolor",borderBlockStartWidth:Pt,borderBlockEndWidth:0,borderInlineStartWidth:Pt,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:Rt,fontWeight:"normal"},th:{height:Rt+Fn*2,color:Dn,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Fn}px 0`,color:hn,cursor:"pointer","&-in-view":{color:Dn}},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-Rt)/2,insetInlineStart:0},[`&-date-panel ${oe}-cell-in-view${oe}-cell-in-range${oe}-cell-range-hover-end ${ce}::after`]:{insetInlineEnd:0,insetInlineStart:-(he-Rt)/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:`${_e}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineEnd:eo,borderInlineEnd:`${_e}px dashed ${Sa}`}},[`${oe}-cell-range-hover-end::after`]:{insetInlineEnd:eo,borderInlineEnd:`${_e}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineStart:eo,borderInlineStart:`${_e}px dashed ${Sa}`}}},[`&-panel ${oe}-footer`]:{borderTop:`${_e}px ${Ue} ${We}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${zt-2*_e}px`,textAlign:"center","&-extra":{padding:`0 ${Ne}px`,lineHeight:`${zt-2*_e}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${_e}px ${Ue} ${We}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:kn,"&:hover":{color:ua},"&:active":{color:jn},[`&${oe}-today-btn-disabled`]:{color:hn,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:`${_e}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineEnd:yo,borderInlineEnd:`${_e}px dashed ${Sa}`}},[`${oe}-cell-range-hover-end::after`]:{insetInlineEnd:yo,borderInlineEnd:`${_e}px dashed ${Sa}`,[`${oe}-panel-rtl &`]:{insetInlineStart:yo,borderInlineStart:`${_e}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:mt},[`&${oe}-cell-week`]:{color:new _r.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:`${_e}px ${Ue} ${We}`},[`${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:`${Ge}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:`${_e}px ${Ue} ${We}`},"&-active":{background:new _r.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:Dn,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:hn,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${oe}-time-panel-column:after`]:{height:Wa-Ta+Ge*2}}}},$g=ne=>{const{componentCls:oe,colorBgContainer:re,colorError:ce,errorActiveShadow:me,colorWarning:be,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:be},[`&${oe}-focused, &:focus`]:Object.assign({},(0,yr.M1)((0,ii.TS)(ne,{activeBorderColor:be,activeShadow:he}))),[`${oe}-active-bar`]:{background:be}}}}},Fg=ne=>{const{componentCls:oe,antCls:re,controlHeight:ce,fontSize:me,paddingInline:be,colorBgContainer:he,lineWidth:Ne,lineType:Oe,colorBorder:Ge,borderRadius:Et,motionDurationMid:_e,colorBgContainerDisabled:Ue,colorTextDisabled:st,colorTextPlaceholder:mt,controlHeightLG:De,fontSizeLG:We,controlHeightSM:Pt,paddingInlineSM:Ht,paddingXS:zt,marginXS:jt,colorTextDescription:Xt,lineWidthBold:_t,lineHeight:Rt,colorPrimary:Fn,motionDurationSlow:hn,zIndexPopup:Dn,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,be)),{position:"relative",display:"inline-flex",alignItems:"center",background:he,lineHeight:1,border:`${Ne}px ${Oe} ${Ge}`,borderRadius:Et,transition:`border ${_e}, box-shadow ${_e}`,"&:hover, &-focused":Object.assign({},(0,yr.pU)(ne)),"&-focused":Object.assign({},(0,yr.M1)(ne)),[`&${oe}-disabled`]:{background:Ue,borderColor:Ge,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:mt}}},"&-large":Object.assign(Object.assign({},gi(ne,De,We,be)),{[`${oe}-input > input`]:{fontSize:We}}),"&-small":Object.assign({},gi(ne,Pt,me,Ht)),[`${oe}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:zt/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 ${_e}, color ${_e}`,"> *":{verticalAlign:"top"},"&:hover":{color:Xt}},[`${oe}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:We,color:st,fontSize:We,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:be},"&:hover":{[`${oe}-clear`]:{opacity:1}},[`${oe}-active-bar`]:{bottom:-Ne,height:_t,marginInlineStart:be,background:Fn,opacity:0,transition:`all ${hn} ease-out`,pointerEvents:"none"},[`&${oe}-focused`]:{[`${oe}-active-bar`]:{opacity:1}},[`${oe}-range-separator`]:{alignItems:"center",padding:`0 ${zt}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:Dn,[`&${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-zt/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${oe}-preset > ${re}-tag-blue`]:{color:Fn,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:be*1.5,transition:`left ${hn} 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 ${hn}`,[`${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:zt,borderInlineEnd:`${Ne}px ${Oe} ${Wa}`,li:Object.assign(Object.assign({},ri.vS),{borderRadius:Xa,paddingInline:zt,paddingBlock:(Pt-Math.round(me*Rt))/2,cursor:"pointer",transition:`all ${hn}`,"+ 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:Ge}}}}),"&-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 _r.C(ne.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new _r.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 Ur(ne){const{format:oe,picker:re,showHour:ce,showMinute:me,showSecond:be,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")&&be===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 zg(ne){return(0,te.forwardRef)((re,ce)=>{const{prefixCls:me,getPopupContainer:be,className:he,placement:Ne,size:Oe,disabled:Ge,bordered:Et=!0,placeholder:_e,popupClassName:Ue,dropdownClassName:st,status:mt,clearIcon:De,allowClear:We,rootClassName:Pt}=re,Ht=Tg(re,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),zt=te.useRef(null),{getPrefixCls:jt,direction:Xt,getPopupContainer:_t}=(0,te.useContext)(xi.E_),Rt=jt("picker",me),{compactSize:Fn,compactItemClassnames:hn}=(0,Di.ri)(Rt,Xt),{format:Dn,showTime:Hn,picker:sa}=re,ca=jt(),[Na,na]=Mi(Rt),kn=Object.assign(Object.assign({},Hn?Ur(Object.assign({format:Dn,picker:sa},Hn)):{}),sa==="time"?Ur(Object.assign(Object.assign({format:Dn},re),{picker:sa})):{}),jn=(0,$i.Z)(xa=>{var Va;return(Va=Oe!=null?Oe:Fn)!==null&&Va!==void 0?Va:xa}),ua=te.useContext(Ei.Z),Sa=Ge!=null?Ge:ua,Qn=(0,te.useContext)(Fi.aM),{hasFeedback:La,status:Xa,feedbackIcon:Wa}=Qn,so=te.createElement(te.Fragment,null,sa==="time"?te.createElement(ut,null):te.createElement(Ae,null),La&&Wa);(0,te.useImperativeHandle)(ce,()=>({focus:()=>{var xa;return(xa=zt.current)===null||xa===void 0?void 0:xa.focus()},blur:()=>{var xa;return(xa=zt.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:`${Rt}-separator`},te.createElement(vt,null)),disabled:Sa,ref:zt,dropdownAlign:li(Xt,Ne),placeholder:Og(uo,sa,_e),suffixIcon:so,prevIcon:te.createElement("span",{className:`${Rt}-prev-icon`}),nextIcon:te.createElement("span",{className:`${Rt}-next-icon`}),superPrevIcon:te.createElement("span",{className:`${Rt}-super-prev-icon`}),superNextIcon:te.createElement("span",{className:`${Rt}-super-next-icon`}),transitionName:`${ca}-slide-up`},Ht,kn,{className:pe()({[`${Rt}-${jn}`]:jn,[`${Rt}-borderless`]:!Et},(0,Vr.Z)(Rt,(0,Vr.F)(Xa,mt),La),na,hn,he,Pt),locale:uo.lang,prefixCls:Rt,getPopupContainer:be||_t,generateConfig:ne,components:Ri,direction:Xt,dropdownClassName:pe()(na,Ue||st,Pt),allowClear:Ii(We,De,te.createElement(ct.Z,null))})))})}var Gg=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,Ge){const Et=Ge==="TimePicker"?"timePicker":"datePicker",_e=(0,te.forwardRef)((Ue,st)=>{const{prefixCls:mt,getPopupContainer:De,style:We,className:Pt,rootClassName:Ht,size:zt,bordered:jt=!0,placement:Xt,placeholder:_t,popupClassName:Rt,dropdownClassName:Fn,disabled:hn,status:Dn,clearIcon:Hn,allowClear:sa}=Ue,ca=Gg(Ue,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:Na,direction:na,getPopupContainer:kn,[Et]:jn}=(0,te.useContext)(xi.E_),ua=Na("picker",mt),{compactSize:Sa,compactItemClassnames:Qn}=(0,Di.ri)(ua,na),La=te.useRef(null),{format:Xa,showTime:Wa}=Ue,[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||Ue.picker;xa=Object.assign(Object.assign(Object.assign({},xa),Wa?Ur(Object.assign({format:Xa,picker:Va},Wa)):{}),Va==="time"?Ur(Object.assign(Object.assign({format:Xa},Ue),{picker:Va})):{});const qa=Na(),yo=(0,$i.Z)(to=>{var qo;return(qo=zt!=null?zt:Sa)!==null&&qo!==void 0?qo:to}),eo=te.useContext(Ei.Z),Fo=hn!=null?hn:eo,Go=(0,te.useContext)(Fi.aM),{hasFeedback:On,status:_a,feedbackIcon:ka}=Go,co=te.createElement(te.Fragment,null,Va==="time"?te.createElement(ut,null):te.createElement(Ae,null),On&&ka),[ho]=(0,Bi.Z)("DatePicker",Ni.Z),za=Object.assign(Object.assign({},ho),Ue.locale);return so(te.createElement(yg,Object.assign({ref:La,placeholder:Ng(za,Va,_t),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:za.lang,className:pe()({[`${ua}-${yo}`]:yo,[`${ua}-borderless`]:!jt},(0,Vr.Z)(ua,(0,Vr.F)(_a,Dn),On),Ta,Qn,jn==null?void 0:jn.className,Pt,Ht),style:Object.assign(Object.assign({},jn==null?void 0:jn.style),We),prefixCls:ua,getPopupContainer:De||kn,generateConfig:ne,components:Ri,direction:na,disabled:Fo,dropdownClassName:pe()(Ta,Ht,Rt||Fn),allowClear:Ii(sa,Hn,te.createElement(ct.Z,null))})))});return Ge&&(_e.displayName=Ge),_e}const re=oe(),ce=oe("week","WeekPicker"),me=oe("month","MonthPicker"),be=oe("year","YearPicker"),he=oe("time","TimePicker"),Ne=oe("quarter","QuarterPicker");return{DatePicker:re,WeekPicker:ce,MonthPicker:me,YearPicker:be,TimePicker:he,QuarterPicker:Ne}}const Nl=null;function kg(ne){const{DatePicker:oe,WeekPicker:re,MonthPicker:ce,YearPicker:me,TimePicker:be,QuarterPicker:he}=Ag(ne),Ne=zg(ne),Oe=oe;return Oe.WeekPicker=re,Oe.MonthPicker=ce,Oe.YearPicker=me,Oe.RangePicker=Ne,Oe.TimePicker=be,Oe.QuarterPicker=he,Oe}var Ti=kg;const Nr=Ti(z);function zi(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,zi);Nr._InternalPanelDoNotUseOrYouWillBeFired=Zg;const Hg=(0,ee.Z)(Nr.RangePicker,"picker",null,zi);Nr._InternalRangePanelDoNotUseOrYouWillBeFired=Hg,Nr.generatePicker=Ti;var jg=Nr},91857:function(Ze,Bt,ge){"use strict";var le=ge(59301),ye=ge(38819),ft=ge(92310),ke=ge.n(ft),Pe=ge(31561),Be=ge(70425),fe=ge(18929),ot=ge(2738),Ke=ge(79676),Xe=ge(53487),qe=ge(92343),tt=ge(36355),Qe=ge(20834),ie=ge(40875),a=ge(88088),b=ge(47211);const x=null,y=ae=>{const{menu:te,arrow:de,prefixCls:se,children:we,trigger:Se,disabled:Re,dropdownRender:Ae,getPopupContainer:Gt,overlayClassName:un,rootClassName:Ln,open:Ie,onOpenChange:ut,visible:ct,onVisibleChange:gt,mouseEnterDelay:Ot=.15,mouseLeaveDelay:rt=.1,autoAdjustOverflow:$t=!0,placement:vt="",overlay:mn,transitionName:pe}=ae,{getPopupContainer:ze,getPrefixCls:ht,direction:Dt}=le.useContext(tt.E_),lt=le.useMemo(()=>{const Ft=ht();return pe!==void 0?pe:vt.includes("top")?`${Ft}-slide-down`:`${Ft}-slide-up`},[ht,vt,pe]),Lt=le.useMemo(()=>vt?vt.includes("Center")?vt.slice(0,vt.indexOf("Center")):vt:Dt==="rtl"?"bottomRight":"bottomLeft",[vt,Dt]),ue=ht("dropdown",se),[nt,wt]=(0,b.Z)(ue),[,gn]=(0,a.Z)(),tn=le.Children.only(we),Ve=(0,qe.Tm)(tn,{className:ke()(`${ue}-trigger`,{[`${ue}-rtl`]:Dt==="rtl"},tn.props.className),disabled:Re}),Ee=Re?[]:Se;let Le;Ee&&Ee.includes("contextMenu")&&(Le=!0);const[Ye,Je]=(0,fe.Z)(!1,{value:Ie!=null?Ie:ct}),yt=(0,Be.useEvent)(Ft=>{ut==null||ut(Ft),gt==null||gt(Ft),Je(Ft)}),en=ke()(un,Ln,wt,{[`${ue}-rtl`]:Dt==="rtl"}),it=(0,Ke.Z)({arrowPointAtCenter:typeof de=="object"&&de.pointAtCenter,autoAdjustOverflow:$t,offset:gn.marginXXS,arrowWidth:de?gn.sizePopupArrow:0,borderRadius:gn.borderRadius}),kt=le.useCallback(()=>{Je(!1)},[]),rn=()=>{let Ft;return te!=null&&te.items?Ft=le.createElement(Qe.default,Object.assign({},te)):typeof mn=="function"?Ft=mn():Ft=mn,Ae&&(Ft=Ae(Ft)),Ft=le.Children.only(typeof Ft=="string"?le.createElement("span",null,Ft):Ft),le.createElement(ie.J,{prefixCls:`${ue}-menu`,expandIcon:le.createElement("span",{className:`${ue}-menu-submenu-arrow`},le.createElement(ye.Z,{className:`${ue}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:kt,validator:Nt=>{let{mode:zn}=Nt}},Ft)};return nt(le.createElement(Pe.Z,Object.assign({alignPoint:Le},(0,ot.Z)(ae,["rootClassName"]),{mouseEnterDelay:Ot,mouseLeaveDelay:rt,visible:Ye,builtinPlacements:it,arrow:!!de,overlayClassName:en,prefixCls:ue,getPopupContainer:Gt||ze,transitionName:lt,trigger:Ee,overlay:rn,placement:Lt,onVisibleChange:yt}),Ve))};function E(ae){return Object.assign(Object.assign({},ae),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Xe.Z)(y,"dropdown",ae=>ae,E),ee=ae=>le.createElement(z,Object.assign({},ae),le.createElement("span",null));y._InternalPanelDoNotUseOrYouWillBeFired=ee,Bt.Z=y},47211:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return qe}});var le=ge(17313),ye=ge(13826),ft=ge(92899),ke=ge(29878),Pe=ge(19447),Be=ge(83116),fe=ge(37613),Ke=tt=>{const{componentCls:Qe,menuCls:ie,colorError:a,colorTextLightSolid:b}=tt,x=`${ie}-item`;return{[`${Qe}, ${Qe}-menu-submenu`]:{[`${ie} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:b,backgroundColor:a}}}}}};const Xe=tt=>{const{componentCls:Qe,menuCls:ie,zIndexPopup:a,dropdownArrowDistance:b,sizePopupArrow:x,antCls:y,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ae,dropdownEdgeChildPadding:te,colorTextDisabled:de,fontSizeIcon:se,controlPaddingHorizontal:we,colorBgElevated:Se}=tt;return[{[Qe]:Object.assign(Object.assign({},(0,le.Wf)(tt)),{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:se}},[`${Qe}-wrap`]:{position:"relative",[`${y}-btn > ${E}-down`]:{fontSize:se},[`${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:ye.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:ye.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:ye.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:ye.ly}})},(0,Pe.ZP)(tt,{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:tt.borderRadiusLG,outline:"none",boxShadow:tt.boxShadowSecondary},(0,le.Qy)(tt)),{[`${ie}-item-group-title`]:{padding:`${ee}px ${we}px`,color:tt.colorTextDescription,transition:`all ${z}`},[`${ie}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ie}-item-icon`]:{minWidth:ae,marginInlineEnd:tt.marginXS,fontSize:tt.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:tt.colorText,fontWeight:"normal",fontSize:ae,lineHeight:tt.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:tt.borderRadiusSM,"&:hover, &-active":{backgroundColor:tt.controlItemBgHover}},(0,le.Qy)(tt)),{"&-selected":{color:tt.colorPrimary,backgroundColor:tt.controlItemBgActive,"&:hover, &-active":{backgroundColor:tt.controlItemBgActiveHover}},"&-disabled":{color:de,cursor:"not-allowed","&:hover":{color:de,backgroundColor:Se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${tt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:tt.colorSplit},[`${Qe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:tt.paddingXS,[`${Qe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:tt.colorTextDescription,fontSize:se,fontStyle:"normal"}}}),[`${ie}-item-group-list`]:{margin:`0 ${tt.marginXS}px`,padding:0,listStyle:"none"},[`${ie}-submenu-title`]:{paddingInlineEnd:we+tt.fontSizeSM},[`${ie}-submenu-vertical`]:{position:"relative"},[`${ie}-submenu${ie}-submenu-disabled ${Qe}-menu-submenu-title`]:{[`&, ${Qe}-menu-submenu-arrow-icon`]:{color:de,backgroundColor:Se,cursor:"not-allowed"}},[`${ie}-submenu-selected ${Qe}-menu-submenu-title`]:{color:tt.colorPrimary}})}},[(0,ye.oN)(tt,"slide-up"),(0,ye.oN)(tt,"slide-down"),(0,ft.Fm)(tt,"move-up"),(0,ft.Fm)(tt,"move-down"),(0,ke._y)(tt,"zoom-big")]]};var qe=(0,Be.Z)("Dropdown",(tt,Qe)=>{let{rootPrefixCls:ie}=Qe;const{marginXXS:a,sizePopupArrow:b,controlHeight:x,fontSize:y,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:ae}=tt,te=(x-y*E)/2,{dropdownArrowOffset:de}=(0,Pe.fS)({contentRadius:ae}),se=(0,fe.TS)(tt,{menuCls:`${ee}-menu`,rootPrefixCls:ie,dropdownArrowDistance:b/2+a,dropdownArrowOffset:de,dropdownPaddingVertical:te,dropdownEdgeChildPadding:z});return[Xe(se),Ke(se)]},tt=>({zIndexPopup:tt.zIndexPopupBase+50}))},45818:function(Ze,Bt,ge){"use strict";ge.d(Bt,{D:function(){return z},Z:function(){return te}});var le=ge(54476),ye=ge(59301),ft={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"},ke=ft,Pe=ge(7657),Be=function(se,we){return ye.createElement(Pe.Z,(0,le.Z)({},se,{ref:we,icon:ke}))},fe=ye.forwardRef(Be),ot=fe,Ke=ge(33853),Xe=ge(38819),qe=ge(92310),tt=ge.n(qe),Qe=ge(2738),a=de=>!isNaN(parseFloat(de))&&isFinite(de),b=ge(36355),x=ge(84966),y=function(de,se){var we={};for(var Se in de)Object.prototype.hasOwnProperty.call(de,Se)&&se.indexOf(Se)<0&&(we[Se]=de[Se]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,Se=Object.getOwnPropertySymbols(de);Re<Se.length;Re++)se.indexOf(Se[Re])<0&&Object.prototype.propertyIsEnumerable.call(de,Se[Re])&&(we[Se[Re]]=de[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=ye.createContext({}),ee=(()=>{let de=0;return function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return de+=1,`${se}${de}`}})();var te=ye.forwardRef((de,se)=>{const{prefixCls:we,className:Se,trigger:Re,children:Ae,defaultCollapsed:Gt=!1,theme:un="dark",style:Ln={},collapsible:Ie=!1,reverseArrow:ut=!1,width:ct=200,collapsedWidth:gt=80,zeroWidthTriggerStyle:Ot,breakpoint:rt,onCollapse:$t,onBreakpoint:vt}=de,mn=y(de,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pe}=(0,ye.useContext)(x.Gs),[ze,ht]=(0,ye.useState)("collapsed"in de?de.collapsed:Gt),[Dt,lt]=(0,ye.useState)(!1);(0,ye.useEffect)(()=>{"collapsed"in de&&ht(de.collapsed)},[de.collapsed]);const Lt=(Ve,Ee)=>{"collapsed"in de||ht(Ve),$t==null||$t(Ve,Ee)},ue=(0,ye.useRef)();ue.current=Ve=>{lt(Ve.matches),vt==null||vt(Ve.matches),ze!==Ve.matches&&Lt(Ve.matches,"responsive")},(0,ye.useEffect)(()=>{function Ve(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",Ve)}catch(Ye){Ee.addListener(Ve)}Ve(Ee)}}return()=>{try{Ee==null||Ee.removeEventListener("change",Ve)}catch(Le){Ee==null||Ee.removeListener(Ve)}}},[rt]),(0,ye.useEffect)(()=>{const Ve=ee("ant-sider-");return pe.addSider(Ve),()=>pe.removeSider(Ve)},[]);const nt=()=>{Lt(!ze,"clickTrigger")},{getPrefixCls:wt}=(0,ye.useContext)(b.E_),gn=()=>{const Ve=wt("layout-sider",we),Ee=(0,Qe.Z)(mn,["collapsed"]),Le=ze?gt:ct,Ye=a(Le)?`${Le}px`:String(Le),Je=parseFloat(String(gt||0))===0?ye.createElement("span",{onClick:nt,className:tt()(`${Ve}-zero-width-trigger`,`${Ve}-zero-width-trigger-${ut?"right":"left"}`),style:Ot},Re||ye.createElement(ot,null)):null,it={expanded:ut?ye.createElement(Xe.Z,null):ye.createElement(Ke.Z,null),collapsed:ut?ye.createElement(Ke.Z,null):ye.createElement(Xe.Z,null)}[ze?"collapsed":"expanded"],kt=Re!==null?Je||ye.createElement("div",{className:`${Ve}-trigger`,onClick:nt,style:{width:Ye}},Re||it):null,rn=Object.assign(Object.assign({},Ln),{flex:`0 0 ${Ye}`,maxWidth:Ye,minWidth:Ye,width:Ye}),Ft=tt()(Ve,`${Ve}-${un}`,{[`${Ve}-collapsed`]:!!ze,[`${Ve}-has-trigger`]:Ie&&Re!==null&&!Je,[`${Ve}-below`]:!!Dt,[`${Ve}-zero-width`]:parseFloat(Ye)===0},Se);return ye.createElement("aside",Object.assign({className:Ft},Ee,{style:rn,ref:se}),ye.createElement("div",{className:`${Ve}-children`},Ae),Ie||Dt&&Je?kt:null)},tn=ye.useMemo(()=>({siderCollapsed:ze}),[ze]);return ye.createElement(z.Provider,{value:tn},gn())})},84966:function(Ze,Bt,ge){"use strict";ge.d(Bt,{VY:function(){return z},$_:function(){return E},h4:function(){return y},Gs:function(){return Qe},ZP:function(){return ee}});var le=ge(94480),ye=ge(92310),ft=ge.n(ye),ke=ge(2738),Pe=ge(59301),Be=ge(36355),fe=ge(83116),Ke=ae=>{const{componentCls:te,bodyBg:de,lightSiderBg:se,lightTriggerBg:we,lightTriggerColor:Se}=ae;return{[`${te}-sider-light`]:{background:se,[`${te}-sider-trigger`]:{color:Se,background:we},[`${te}-sider-zero-width-trigger`]:{color:Se,background:we,border:`1px solid ${de}`,borderInlineStart:0}}}};const Xe=ae=>{const{antCls:te,componentCls:de,colorText:se,triggerColor:we,footerBg:Se,triggerBg:Re,headerHeight:Ae,headerPadding:Gt,headerColor:un,footerPadding:Ln,triggerHeight:Ie,zeroTriggerHeight:ut,zeroTriggerWidth:ct,motionDurationMid:gt,motionDurationSlow:Ot,fontSize:rt,borderRadius:$t,bodyBg:vt,headerBg:mn,siderBg:pe}=ae;return{[de]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:vt,"&, *":{boxSizing:"border-box"},[`&${de}-has-sider`]:{flexDirection:"row",[`> ${de}, > ${de}-content`]:{width:0}},[`${de}-header, &${de}-footer`]:{flex:"0 0 auto"},[`${de}-sider`]:{position:"relative",minWidth:0,background:pe,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:-ct,zIndex:1,width:ct,height:ut,color:we,fontSize:ae.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:pe,borderStartStartRadius:0,borderStartEndRadius:$t,borderEndEndRadius:$t,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ot} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ot}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ct,borderStartStartRadius:$t,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:$t}}}}},Ke(ae)),{"&-rtl":{direction:"rtl"}}),[`${de}-header`]:{height:Ae,padding:Gt,color:un,lineHeight:`${Ae}px`,background:mn,[`${te}-menu`]:{lineHeight:"inherit"}},[`${de}-footer`]:{padding:Ln,color:se,fontSize:rt,background:Se},[`${de}-content`]:{flex:"auto",minHeight:0}}};var qe=(0,fe.Z)("Layout",ae=>[Xe(ae)],ae=>{const{colorBgLayout:te,controlHeight:de,controlHeightLG:se,colorText:we,controlHeightSM:Se,marginXXS:Re,colorTextLightSolid:Ae,colorBgContainer:Gt}=ae,un=se*1.25;return{colorBgHeader:"#001529",colorBgBody:te,colorBgTrigger:"#002140",bodyBg:te,headerBg:"#001529",headerHeight:de*2,headerPadding:`0 ${un}px`,headerColor:we,footerPadding:`${Se}px ${un}px`,footerBg:te,siderBg:"#001529",triggerHeight:se+Re*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:se,zeroTriggerHeight:se,lightSiderBg:Gt,lightTriggerBg:Gt,lightTriggerColor:we}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),tt=function(ae,te){var de={};for(var se in ae)Object.prototype.hasOwnProperty.call(ae,se)&&te.indexOf(se)<0&&(de[se]=ae[se]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,se=Object.getOwnPropertySymbols(ae);we<se.length;we++)te.indexOf(se[we])<0&&Object.prototype.propertyIsEnumerable.call(ae,se[we])&&(de[se[we]]=ae[se[we]]);return de};const Qe=Pe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ie(ae){let{suffixCls:te,tagName:de,displayName:se}=ae;return we=>Pe.forwardRef((Re,Ae)=>Pe.createElement(we,Object.assign({ref:Ae,suffixCls:te,tagName:de},Re)))}const a=Pe.forwardRef((ae,te)=>{const{prefixCls:de,suffixCls:se,className:we,tagName:Se}=ae,Re=tt(ae,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=Pe.useContext(Be.E_),Gt=Ae("layout",de),[un,Ln]=qe(Gt),Ie=se?`${Gt}-${se}`:Gt;return un(Pe.createElement(Se,Object.assign({className:ft()(de||Ie,we,Ln),ref:te},Re)))}),b=Pe.forwardRef((ae,te)=>{const{direction:de}=Pe.useContext(Be.E_),[se,we]=Pe.useState([]),{prefixCls:Se,className:Re,rootClassName:Ae,children:Gt,hasSider:un,tagName:Ln,style:Ie}=ae,ut=tt(ae,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ct=(0,ke.Z)(ut,["suffixCls"]),{getPrefixCls:gt,layout:Ot}=Pe.useContext(Be.E_),rt=gt("layout",Se),[$t,vt]=qe(rt),mn=ft()(rt,{[`${rt}-has-sider`]:typeof un=="boolean"?un:se.length>0,[`${rt}-rtl`]:de==="rtl"},Ot==null?void 0:Ot.className,Re,Ae,vt),pe=Pe.useMemo(()=>({siderHook:{addSider:ze=>{we(ht=>[].concat((0,le.Z)(ht),[ze]))},removeSider:ze=>{we(ht=>ht.filter(Dt=>Dt!==ze))}}}),[]);return $t(Pe.createElement(Qe.Provider,{value:pe},Pe.createElement(Ln,Object.assign({ref:te,className:mn,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Ie)},ct),Gt)))}),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(Ze,Bt,ge){"use strict";ge.d(Bt,{J:function(){return Be}});var le=ge(59301),ye=ge(33234),ft=ge(70425),ke=function(fe,ot){var Ke={};for(var Xe in fe)Object.prototype.hasOwnProperty.call(fe,Xe)&&ot.indexOf(Xe)<0&&(Ke[Xe]=fe[Xe]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Xe=Object.getOwnPropertySymbols(fe);qe<Xe.length;qe++)ot.indexOf(Xe[qe])<0&&Object.prototype.propertyIsEnumerable.call(fe,Xe[qe])&&(Ke[Xe[qe]]=fe[Xe[qe]]);return Ke};const Pe=le.createContext(null),Be=le.forwardRef((fe,ot)=>{const{children:Ke}=fe,Xe=ke(fe,["children"]),qe=le.useContext(Pe),tt=le.useMemo(()=>Object.assign(Object.assign({},qe),Xe),[qe,Xe.prefixCls,Xe.mode,Xe.selectable]);return le.createElement(Pe.Provider,{value:tt},le.createElement(ye.BR,null,(0,ft.supportNodeRef)(Ke)?le.cloneElement(Ke,{ref:ot}):Ke))});Bt.Z=Pe},20834:function(Ze,Bt,ge){"use strict";ge.d(Bt,{default:function(){return tn}});var le=ge(15285),ye=ge(59301),ft=ge(45818),ke=ge(92310),Pe=ge.n(ke),Be=ge(36355),fe=function(Ve,Ee){var Le={};for(var Ye in Ve)Object.prototype.hasOwnProperty.call(Ve,Ye)&&Ee.indexOf(Ye)<0&&(Le[Ye]=Ve[Ye]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ye=Object.getOwnPropertySymbols(Ve);Je<Ye.length;Je++)Ee.indexOf(Ye[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ye[Je])&&(Le[Ye[Je]]=Ve[Ye[Je]]);return Le},Ke=Ve=>{const{prefixCls:Ee,className:Le,dashed:Ye}=Ve,Je=fe(Ve,["prefixCls","className","dashed"]),{getPrefixCls:yt}=ye.useContext(Be.E_),en=yt("menu",Ee),it=Pe()({[`${en}-item-divider-dashed`]:!!Ye},Le);return ye.createElement(le.iz,Object.assign({className:it},Je))},Xe=ge(11592),qe=ge(2738),tt=ge(6848),Qe=ge(92343),a=(0,ye.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ve=>{var Ee;const{className:Le,children:Ye,icon:Je,title:yt,danger:en}=Ve,{prefixCls:it,firstLevel:kt,direction:rn,disableMenuItemTitleTooltip:Ft,inlineCollapsed:Nt}=ye.useContext(a),zn=Me=>{const dt=ye.createElement("span",{className:`${it}-title-content`},Ye);return(!Je||(0,Qe.l$)(Ye)&&Ye.type==="span")&&Ye&&Me&&kt&&typeof Ye=="string"?ye.createElement("div",{className:`${it}-inline-collapsed-noicon`},Ye.charAt(0)):dt},{siderCollapsed:In}=ye.useContext(ft.D);let Gn=yt;typeof yt=="undefined"?Gn=kt?Ye:"":yt===!1&&(Gn="");const Bn={title:Gn};!In&&!Nt&&(Bn.title=null,Bn.open=!1);const bn=(0,Xe.Z)(Ye).length;let Ce=ye.createElement(le.ck,Object.assign({},(0,qe.Z)(Ve,["title","icon","danger"]),{className:Pe()({[`${it}-item-danger`]:en,[`${it}-item-only-child`]:(Je?bn+1:bn)===1},Le),title:typeof yt=="string"?yt:void 0}),(0,Qe.Tm)(Je,{className:Pe()((0,Qe.l$)(Je)?(Ee=Je.props)===null||Ee===void 0?void 0:Ee.className:"",`${it}-item-icon`)}),zn(Nt));return Ft||(Ce=ye.createElement(tt.Z,Object.assign({},Bn,{placement:rn==="rtl"?"left":"right",overlayClassName:`${it}-inline-collapsed-tooltip`}),Ce)),Ce},E=Ve=>{var Ee;const{popupClassName:Le,icon:Ye,title:Je,theme:yt}=Ve,en=ye.useContext(a),{prefixCls:it,inlineCollapsed:kt,theme:rn}=en,Ft=(0,le.Xl)();let Nt;if(!Ye)Nt=kt&&!Ft.length&&Je&&typeof Je=="string"?ye.createElement("div",{className:`${it}-inline-collapsed-noicon`},Je.charAt(0)):ye.createElement("span",{className:`${it}-title-content`},Je);else{const In=(0,Qe.l$)(Je)&&Je.type==="span";Nt=ye.createElement(ye.Fragment,null,(0,Qe.Tm)(Ye,{className:Pe()((0,Qe.l$)(Ye)?(Ee=Ye.props)===null||Ee===void 0?void 0:Ee.className:"",`${it}-item-icon`)}),In?Je:ye.createElement("span",{className:`${it}-title-content`},Je))}const zn=ye.useMemo(()=>Object.assign(Object.assign({},en),{firstLevel:!1}),[en]);return ye.createElement(a.Provider,{value:zn},ye.createElement(le.Wd,Object.assign({},(0,qe.Z)(Ve,["icon"]),{title:Nt,popupClassName:Pe()(it,Le,`${it}-${yt||rn}`)})))},z=ge(18785),ee=ge(70425),ae=ge(62892),te=ge(40875),de=function(Ve,Ee){var Le={};for(var Ye in Ve)Object.prototype.hasOwnProperty.call(Ve,Ye)&&Ee.indexOf(Ye)<0&&(Le[Ye]=Ve[Ye]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ye=Object.getOwnPropertySymbols(Ve);Je<Ye.length;Je++)Ee.indexOf(Ye[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ye[Je])&&(Le[Ye[Je]]=Ve[Ye[Je]]);return Le};function se(Ve){return(Ve||[]).map((Ee,Le)=>{if(Ee&&typeof Ee=="object"){const Ye=Ee,{label:Je,children:yt,key:en,type:it}=Ye,kt=de(Ye,["label","children","key","type"]),rn=en!=null?en:`tmp-${Le}`;return yt||it==="group"?it==="group"?ye.createElement(le.BW,Object.assign({key:rn},kt,{title:Je}),se(yt)):ye.createElement(E,Object.assign({key:rn},kt,{title:Je}),se(yt)):it==="divider"?ye.createElement(Ke,Object.assign({key:rn},kt)):ye.createElement(x,Object.assign({key:rn},kt),Je)}return null}).filter(Ee=>Ee)}function we(Ve){return ye.useMemo(()=>Ve&&se(Ve),[Ve])}var Se=ge(64993),Re=ge(17313),Ae=ge(8378),Gt=ge(13826),un=ge(29878),Ln=ge(83116),Ie=ge(37613),ct=Ve=>{const{componentCls:Ee,motionDurationSlow:Le,horizontalLineHeight:Ye,colorSplit:Je,lineWidth:yt,lineType:en,itemPaddingInline:it}=Ve;return{[`${Ee}-horizontal`]:{lineHeight:Ye,border:0,borderBottom:`${yt}px ${en} ${Je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:it},[`> ${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"}}}},Ot=Ve=>{let{componentCls:Ee,menuArrowOffset:Le}=Ve;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=Ve=>Object.assign({},(0,Re.oN)(Ve));var vt=(Ve,Ee)=>{const{componentCls:Le,itemColor:Ye,itemSelectedColor:Je,groupTitleColor:yt,itemBg:en,subMenuItemBg:it,itemSelectedBg:kt,activeBarHeight:rn,activeBarWidth:Ft,activeBarBorderWidth:Nt,motionDurationSlow:zn,motionEaseInOut:In,motionEaseOut:Gn,itemPaddingInline:Bn,motionDurationMid:bn,itemHoverColor:Ce,lineType:Me,colorSplit:dt,itemDisabledColor:Mt,dangerItemColor:Zt,dangerItemHoverColor:dn,dangerItemSelectedColor:Tt,dangerItemActiveBg:qt,dangerItemSelectedBg:cn,itemHoverBg:Nn,itemActiveBg:yn,menuSubMenuBg:Wn,horizontalItemSelectedColor:oa,horizontalItemSelectedBg:qn,horizontalItemBorderRadius:Pa,horizontalItemHoverBg:Yn,popupBg:Rn}=Ve;return{[`${Le}-${Ee}, ${Le}-${Ee} > ${Le}`]:{color:Ye,background:en,[`&${Le}-root:focus-visible`]:Object.assign({},rt(Ve)),[`${Le}-item-group-title`]:{color:yt},[`${Le}-submenu-selected`]:{[`> ${Le}-submenu-title`]:{color:Je}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{color:`${Mt} !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:Nn},"&:active":{backgroundColor:yn}},[`${Le}-submenu-title`]:{"&:hover":{backgroundColor:Nn},"&:active":{backgroundColor:yn}}},[`${Le}-item-danger`]:{color:Zt,[`&${Le}-item:hover`]:{[`&:not(${Le}-item-selected):not(${Le}-submenu-selected)`]:{color:dn}},[`&${Le}-item:active`]:{background:qt}},[`${Le}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Le}-item-selected`]:{color:Je,[`&${Le}-item-danger`]:{color:Tt},"a, a:hover":{color:"inherit"}},[`& ${Le}-item-selected`]:{backgroundColor:kt,[`&${Le}-item-danger`]:{backgroundColor:cn}},[`${Le}-item, ${Le}-submenu-title`]:{[`&:not(${Le}-item-disabled):focus-visible`]:Object.assign({},rt(Ve))},[`&${Le}-submenu > ${Le}`]:{backgroundColor:Wn},[`&${Le}-popup > ${Le}`]:{backgroundColor:Rn},[`&${Le}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${Le}-item, > ${Le}-submenu`]:{top:Nt,marginTop:-Nt,marginBottom:0,borderRadius:Pa,"&::after":{position:"absolute",insetInline:Bn,bottom:0,borderBottom:`${rn}px solid transparent`,transition:`border-color ${zn} ${In}`,content:'""'},"&:hover, &-active, &-open":{background:Yn,"&::after":{borderBottomWidth:rn,borderBottomColor:oa}},"&-selected":{color:oa,backgroundColor:qn,"&:hover":{backgroundColor:qn},"&::after":{borderBottomWidth:rn,borderBottomColor:oa}}}}),[`&${Le}-root`]:{[`&${Le}-inline, &${Le}-vertical`]:{borderInlineEnd:`${Nt}px ${Me} ${dt}`}},[`&${Le}-inline`]:{[`${Le}-sub${Le}-inline`]:{background:it},[`${Le}-item, ${Le}-submenu-title`]:Nt&&Ft?{width:`calc(100% + ${Nt}px)`}:{},[`${Le}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ft}px solid ${Je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${bn} ${Gn}`,`opacity ${bn} ${Gn}`].join(","),content:'""'},[`&${Le}-item-danger`]:{"&::after":{borderInlineEndColor:Tt}}},[`${Le}-selected, ${Le}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${bn} ${In}`,`opacity ${bn} ${In}`].join(",")}}}}}};const mn=Ve=>{const{componentCls:Ee,itemHeight:Le,itemMarginInline:Ye,padding:Je,menuArrowSize:yt,marginXS:en,itemMarginBlock:it}=Ve,kt=Je+yt+en;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:Le,lineHeight:`${Le}px`,paddingInline:Je,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ye,marginBlock:it,width:`calc(100% - ${Ye*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:kt}}};var ze=Ve=>{const{componentCls:Ee,iconCls:Le,itemHeight:Ye,colorTextLightSolid:Je,dropdownWidth:yt,controlHeightLG:en,motionDurationMid:it,motionEaseOut:kt,paddingXL:rn,itemMarginInline:Ft,fontSizeLG:Nt,motionDurationSlow:zn,paddingXS:In,boxShadowSecondary:Gn,collapsedWidth:Bn,collapsedIconSize:bn}=Ve,Ce={height:Ye,lineHeight:`${Ye}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},mn(Ve))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},mn(Ve)),{boxShadow:Gn})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:yt,maxHeight:`calc(100vh - ${en*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 ${zn}`,`background ${zn}`,`padding ${it} ${kt}`].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:rn}},[`${Ee}-item`]:Ce}},{[`${Ee}-inline-collapsed`]:{width:Bn,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:Nt,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% - ${Nt/2}px - ${Ft}px)`,textOverflow:"clip",[`
|
|
${Ee}-submenu-arrow,
|
|
${Ee}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Ee}-item-icon, ${Le}`]:{margin:0,fontSize:bn,lineHeight:`${Ye}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:In})}}]};const ht=Ve=>{const{componentCls:Ee,motionDurationSlow:Le,motionDurationMid:Ye,motionEaseInOut:Je,motionEaseOut:yt,iconCls:en,iconSize:it,iconMarginInlineEnd:kt}=Ve;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, ${en}`]:{minWidth:it,fontSize:it,transition:[`font-size ${Ye} ${yt}`,`margin ${Le} ${Je}`,`color ${Le}`].join(","),"+ span":{marginInlineStart:kt,opacity:1,transition:[`opacity ${Le} ${Je}`,`margin ${Le}`,`color ${Le}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${en}, > ${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"}}}},Dt=Ve=>{const{componentCls:Ee,motionDurationSlow:Le,motionEaseInOut:Ye,borderRadius:Je,menuArrowSize:yt,menuArrowOffset:en}=Ve;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ve.margin,width:yt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Le} ${Ye}, opacity ${Le}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:yt*.6,height:yt*.15,backgroundColor:"currentcolor",borderRadius:Je,transition:[`background ${Le} ${Ye}`,`transform ${Le} ${Ye}`,`top ${Le} ${Ye}`,`color ${Le} ${Ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${en})`},"&::after":{transform:`rotate(-45deg) translateY(${en})`}}}}},lt=Ve=>{const{antCls:Ee,componentCls:Le,fontSize:Ye,motionDurationSlow:Je,motionDurationMid:yt,motionEaseInOut:en,paddingXS:it,padding:kt,colorSplit:rn,lineWidth:Ft,zIndexPopup:Nt,borderRadiusLG:zn,subMenuItemBorderRadius:In,menuArrowSize:Gn,menuArrowOffset:Bn,lineType:bn,menuPanelMaskInset:Ce,groupTitleLineHeight:Me,groupTitleFontSize:dt}=Ve;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)(Ve)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ye,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:Ve.itemBorderRadius},[`${Le}-item-group-title`]:{padding:`${it}px ${kt}px`,fontSize:dt,lineHeight:Me,transition:`all ${Je}`},[`&-horizontal ${Le}-submenu`]:{transition:[`border-color ${Je} ${en}`,`background ${Je} ${en}`].join(",")},[`${Le}-submenu, ${Le}-submenu-inline`]:{transition:[`border-color ${Je} ${en}`,`background ${Je} ${en}`,`padding ${yt} ${en}`].join(",")},[`${Le}-submenu ${Le}-sub`]:{cursor:"initial",transition:[`background ${Je} ${en}`,`padding ${Je} ${en}`].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:rn,borderStyle:bn,borderWidth:0,borderTopWidth:Ft,marginBlock:Ft,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ht(Ve)),{[`${Le}-item-group`]:{[`${Le}-item-group-list`]:{margin:0,padding:0,[`${Le}-item, ${Le}-submenu-title`]:{paddingInline:`${Ye*2}px ${kt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Nt,borderRadius:zn,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:Ve.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ve.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ve.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ve.paddingXS},[`> ${Le}`]:Object.assign(Object.assign(Object.assign({borderRadius:zn},ht(Ve)),Dt(Ve)),{[`${Le}-item, ${Le}-submenu > ${Le}-submenu-title`]:{borderRadius:In},[`${Le}-submenu-title::after`]:{transition:`transform ${Je} ${en}`}})}}),Dt(Ve)),{[`&-inline-collapsed ${Le}-submenu-arrow,
|
|
&-inline ${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Bn})`},"&::after":{transform:`rotate(45deg) translateX(-${Bn})`}},[`${Le}-submenu-open${Le}-submenu-inline > ${Le}-submenu-title > ${Le}-submenu-arrow`]:{transform:`translateY(-${Gn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Bn})`},"&::before":{transform:`rotate(45deg) translateX(${Bn})`}}})},{[`${Ee}-layout-header`]:{[Le]:{lineHeight:"inherit"}}}]};var Lt=(Ve,Ee)=>(0,Ln.Z)("Menu",Ye=>{if(Ee===!1)return[];const{colorBgElevated:Je,colorPrimary:yt,colorTextLightSolid:en,controlHeightLG:it,fontSize:kt,darkItemColor:rn,darkDangerItemColor:Ft,darkItemBg:Nt,darkSubMenuItemBg:zn,darkItemSelectedColor:In,darkItemSelectedBg:Gn,darkDangerItemSelectedBg:Bn,darkItemHoverBg:bn,darkGroupTitleColor:Ce,darkItemHoverColor:Me,darkItemDisabledColor:dt,darkDangerItemHoverColor:Mt,darkDangerItemSelectedColor:Zt,darkDangerItemActiveBg:dn}=Ye,Tt=kt/7*5,qt=(0,Ie.TS)(Ye,{menuArrowSize:Tt,menuHorizontalHeight:it*1.15,menuArrowOffset:`${Tt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Je}),cn=(0,Ie.TS)(qt,{itemColor:rn,itemHoverColor:Me,groupTitleColor:Ce,itemSelectedColor:In,itemBg:Nt,popupBg:Nt,subMenuItemBg:zn,itemActiveBg:"transparent",itemSelectedBg:Gn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:bn,itemDisabledColor:dt,dangerItemColor:Ft,dangerItemHoverColor:Mt,dangerItemSelectedColor:Zt,dangerItemActiveBg:dn,dangerItemSelectedBg:Bn,menuSubMenuBg:zn,horizontalItemSelectedColor:en,horizontalItemSelectedBg:yt});return[lt(qt),ct(qt),ze(qt),vt(qt,"light"),vt(cn,"dark"),Ot(qt),(0,Ae.Z)(qt),(0,Gt.oN)(qt,"slide-up"),(0,Gt.oN)(qt,"slide-down"),(0,un._y)(qt,"zoom-big")]},Ye=>{const{colorPrimary:Je,colorError:yt,colorTextDisabled:en,colorErrorBg:it,colorText:kt,colorTextDescription:rn,colorBgContainer:Ft,colorFillAlter:Nt,colorFillContent:zn,lineWidth:In,lineWidthBold:Gn,controlItemBgActive:Bn,colorBgTextHover:bn,controlHeightLG:Ce,lineHeight:Me,colorBgElevated:dt,marginXXS:Mt,padding:Zt,fontSize:dn,controlHeightSM:Tt,fontSizeLG:qt,colorTextLightSolid:cn,colorErrorHover:Nn}=Ye,yn=new Se.C(cn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ye.zIndexPopupBase+50,radiusItem:Ye.borderRadiusLG,itemBorderRadius:Ye.borderRadiusLG,radiusSubMenuItem:Ye.borderRadiusSM,subMenuItemBorderRadius:Ye.borderRadiusSM,colorItemText:kt,itemColor:kt,colorItemTextHover:kt,itemHoverColor:kt,colorItemTextHoverHorizontal:Je,horizontalItemHoverColor:Je,colorGroupTitle:rn,groupTitleColor:rn,colorItemTextSelected:Je,itemSelectedColor:Je,colorItemTextSelectedHorizontal:Je,horizontalItemSelectedColor:Je,colorItemBg:Ft,itemBg:Ft,colorItemBgHover:bn,itemHoverBg:bn,colorItemBgActive:zn,itemActiveBg:Bn,colorSubItemBg:Nt,subMenuItemBg:Nt,colorItemBgSelected:Bn,itemSelectedBg:Bn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Gn,activeBarHeight:Gn,colorActiveBarBorderSize:In,activeBarBorderWidth:In,colorItemTextDisabled:en,itemDisabledColor:en,colorDangerItemText:yt,dangerItemColor:yt,colorDangerItemTextHover:yt,dangerItemHoverColor:yt,colorDangerItemTextSelected:yt,dangerItemSelectedColor:yt,colorDangerItemBgActive:it,dangerItemActiveBg:it,colorDangerItemBgSelected:it,dangerItemSelectedBg:it,itemMarginInline:Ye.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Ce,groupTitleLineHeight:Me,collapsedWidth:Ce*2,popupBg:dt,itemMarginBlock:Mt,itemPaddingInline:Zt,horizontalLineHeight:`${Ce*1.15}px`,iconSize:dn,iconMarginInlineEnd:Tt-dn,collapsedIconSize:qt,groupTitleFontSize:dn,darkItemDisabledColor:new Se.C(cn).setAlpha(.25).toRgbString(),darkItemColor:yn,darkDangerItemColor:yt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:cn,darkItemSelectedBg:Je,darkDangerItemSelectedBg:yt,darkItemHoverBg:"transparent",darkGroupTitleColor:yn,darkItemHoverColor:cn,darkDangerItemHoverColor:Nn,darkDangerItemSelectedColor:cn,darkDangerItemActiveBg:yt}},{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"]]})(Ve),ue=function(Ve,Ee){var Le={};for(var Ye in Ve)Object.prototype.hasOwnProperty.call(Ve,Ye)&&Ee.indexOf(Ye)<0&&(Le[Ye]=Ve[Ye]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ye=Object.getOwnPropertySymbols(Ve);Je<Ye.length;Je++)Ee.indexOf(Ye[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ye[Je])&&(Le[Ye[Je]]=Ve[Ye[Je]]);return Le},wt=(0,ye.forwardRef)((Ve,Ee)=>{var Le,Ye;const Je=ye.useContext(te.Z),yt=Je||{},{getPrefixCls:en,getPopupContainer:it,direction:kt,menu:rn}=ye.useContext(Be.E_),Ft=en(),{prefixCls:Nt,className:zn,style:In,theme:Gn="light",expandIcon:Bn,_internalDisableMenuItemTitleTooltip:bn,inlineCollapsed:Ce,siderCollapsed:Me,items:dt,children:Mt,rootClassName:Zt,mode:dn,selectable:Tt,onClick:qt,overflowedIndicatorPopupClassName:cn}=Ve,Nn=ue(Ve,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),yn=(0,qe.Z)(Nn,["collapsedWidth"]),Wn=we(dt)||Mt;(Le=yt.validator)===null||Le===void 0||Le.call(yt,{mode:dn});const oa=(0,ee.useEvent)(function(){var Ma;qt==null||qt.apply(void 0,arguments),(Ma=yt.onClick)===null||Ma===void 0||Ma.call(yt)}),qn=yt.mode||dn,Pa=Tt!=null?Tt:yt.selectable,Yn=ye.useMemo(()=>Me!==void 0?Me:Ce,[Ce,Me]),Rn={horizontal:{motionName:`${Ft}-slide-up`},inline:(0,ae.Z)(Ft),other:{motionName:`${Ft}-zoom-big`}},ia=en("menu",Nt||yt.prefixCls),[Ea,$a]=Lt(ia,!Je),ra=Pe()(`${ia}-${Gn}`,rn==null?void 0:rn.className,zn);let Oa;if(typeof Bn=="function")Oa=Bn;else if(Bn===null||Bn===!1)Oa=null;else if(yt.expandIcon===null||yt.expandIcon===!1)Oa=null;else{const Ma=Bn!=null?Bn:yt.expandIcon;Oa=(0,Qe.Tm)(Ma,{className:Pe()(`${ia}-submenu-expand-icon`,(0,Qe.l$)(Ma)?(Ye=Ma.props)===null||Ye===void 0?void 0:Ye.className:"")})}const Po=ye.useMemo(()=>({prefixCls:ia,inlineCollapsed:Yn||!1,direction:kt,firstLevel:!0,theme:Gn,mode:qn,disableMenuItemTitleTooltip:bn}),[ia,Yn,kt,bn,Gn]);return Ea(ye.createElement(te.Z.Provider,{value:null},ye.createElement(a.Provider,{value:Po},ye.createElement(le.ZP,Object.assign({getPopupContainer:it,overflowedIndicator:ye.createElement(z.Z,null),overflowedIndicatorPopupClassName:Pe()(ia,`${ia}-${Gn}`,cn),mode:qn,selectable:Pa,onClick:oa},yn,{inlineCollapsed:Yn,style:Object.assign(Object.assign({},rn==null?void 0:rn.style),In),className:ra,prefixCls:ia,direction:kt,defaultMotions:Rn,expandIcon:Oa,ref:Ee,rootClassName:Pe()(Zt,$a)}),Wn))))});const gn=(0,ye.forwardRef)((Ve,Ee)=>{const Le=(0,ye.useRef)(null),Ye=ye.useContext(ft.D);return(0,ye.useImperativeHandle)(Ee,()=>({menu:Le.current,focus:Je=>{var yt;(yt=Le.current)===null||yt===void 0||yt.focus(Je)}})),ye.createElement(wt,Object.assign({ref:Le},Ve,Ye))});gn.Item=x,gn.SubMenu=E,gn.Divider=Ke,gn.ItemGroup=le.BW;var tn=gn},93948:function(Ze,Bt,ge){"use strict";ge.d(Bt,{Z:function(){return bn}});var le=ge(59301),ye=ge(29679),ft=ge(40001),ke=ge(19248),Pe=ge(99267),Be=ge(92310),fe=ge.n(Be),ot=ge(2738),Ke=ge(36355),Xe=ge(54476),qe=ge(33885),tt=ge(75931),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)([]),dt=(0,le.useRef)(null);return(0,le.useEffect)(function(){var Mt=Date.now(),Zt=!1;Me.current.forEach(function(dn){if(dn){Zt=!0;var Tt=dn.style;Tt.transitionDuration=".3s, .3s, .3s, .06s",dt.current&&Mt-dt.current<100&&(Tt.transitionDuration="0s, 0s")}}),Zt&&(dt.current=Date.now())}),Me.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],b=function(Me){var dt=(0,qe.Z)((0,qe.Z)({},Qe),Me),Mt=dt.className,Zt=dt.percent,dn=dt.prefixCls,Tt=dt.strokeColor,qt=dt.strokeLinecap,cn=dt.strokeWidth,Nn=dt.style,yn=dt.trailColor,Wn=dt.trailWidth,oa=dt.transition,qn=(0,tt.Z)(dt,a);delete qn.gapPosition;var Pa=Array.isArray(Zt)?Zt:[Zt],Yn=Array.isArray(Tt)?Tt:[Tt],Rn=ie(),ia=cn/2,Ea=100-cn/2,$a="M ".concat(qt==="round"?ia:0,",").concat(ia,`
|
|
L `).concat(qt==="round"?Ea:100,",").concat(ia),ra="0 0 100 ".concat(cn),Oa=0;return le.createElement("svg",(0,Xe.Z)({className:fe()("".concat(dn,"-line"),Mt),viewBox:ra,preserveAspectRatio:"none",style:Nn},qn),le.createElement("path",{className:"".concat(dn,"-line-trail"),d:$a,strokeLinecap:qt,stroke:yn,strokeWidth:Wn||cn,fillOpacity:"0"}),Pa.map(function(Po,Ma){var no=1;switch(qt){case"round":no=1-cn/100;break;case"square":no=1-cn/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:qt,stroke:ao,strokeWidth:cn,fillOpacity:"0",ref:function(Fe){Rn[Ma]=Fe},style:Lo})}))},x=b,y=ge(76190),E=ge(42978),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 de=function(Ce){var Me=le.useState(),dt=(0,E.Z)(Me,2),Mt=dt[0],Zt=dt[1];return le.useEffect(function(){Zt("rc_progress_".concat(te()))},[]),Ce||Mt},se=function(Me){var dt=Me.bg,Mt=Me.children;return le.createElement("div",{style:{width:"100%",height:"100%",background:dt}},Mt)};function we(Ce,Me){return Object.keys(Ce).map(function(dt){var Mt=parseFloat(dt),Zt="".concat(Math.floor(Mt*Me),"%");return"".concat(Ce[dt]," ").concat(Zt)})}var Se=le.forwardRef(function(Ce,Me){var dt=Ce.prefixCls,Mt=Ce.color,Zt=Ce.gradientId,dn=Ce.radius,Tt=Ce.style,qt=Ce.ptg,cn=Ce.strokeLinecap,Nn=Ce.strokeWidth,yn=Ce.size,Wn=Ce.gapDegree,oa=Mt&&(0,y.Z)(Mt)==="object",qn=oa?"#FFF":void 0,Pa=yn/2,Yn=le.createElement("circle",{className:"".concat(dt,"-circle-path"),r:dn,cx:Pa,cy:Pa,stroke:qn,strokeLinecap:cn,strokeWidth:Nn,opacity:qt===0?0:1,style:Tt,ref:Me});if(!oa)return Yn;var Rn="".concat(Zt,"-conic"),ia=Wn?"".concat(180+Wn/2,"deg"):"0deg",Ea=we(Mt,(360-Wn)/360),$a=we(Mt,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:Rn},Yn),le.createElement("foreignObject",{x:0,y:0,width:yn,height:yn,mask:"url(#".concat(Rn,")")},le.createElement(se,{bg:Oa},le.createElement(se,{bg:ra}))))}),Re=Se,Ae=100,Gt=function(Me,dt,Mt,Zt,dn,Tt,qt,cn,Nn,yn){var Wn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,oa=Mt/100*360*((360-Tt)/360),qn=Tt===0?0:{bottom:0,top:180,left:90,right:-90}[qt],Pa=(100-Zt)/100*dt;Nn==="round"&&Zt!==100&&(Pa+=yn/2,Pa>=dt&&(Pa=dt-.01));var Yn=Ae/2;return{stroke:typeof cn=="string"?cn:void 0,strokeDasharray:"".concat(dt,"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 Ln(Ce){var Me=Ce!=null?Ce:[];return Array.isArray(Me)?Me:[Me]}var Ie=function(Me){var dt=(0,qe.Z)((0,qe.Z)({},Qe),Me),Mt=dt.id,Zt=dt.prefixCls,dn=dt.steps,Tt=dt.strokeWidth,qt=dt.trailWidth,cn=dt.gapDegree,Nn=cn===void 0?0:cn,yn=dt.gapPosition,Wn=dt.trailColor,oa=dt.strokeLinecap,qn=dt.style,Pa=dt.className,Yn=dt.strokeColor,Rn=dt.percent,ia=(0,tt.Z)(dt,un),Ea=Ae/2,$a=de(Mt),ra="".concat($a,"-gradient"),Oa=Ea-Tt/2,Po=Math.PI*2*Oa,Ma=Nn>0?90+Nn/2:-90,no=Po*((360-Nn)/360),Lo=(0,y.Z)(dn)==="object"?dn:{count:dn,space:2},ao=Lo.count,$e=Lo.space,Fe=Ln(Rn),xe=Ln(Yn),It=xe.find(function(fn){return fn&&(0,y.Z)(fn)==="object"}),Wt=It&&(0,y.Z)(It)==="object",Qt=Wt?"butt":oa,Kn=Gt(Po,no,0,100,Ma,Nn,yn,Wn,Qt,Tt),pn=ie(),Zn=function(){var pt=0;return Fe.map(function(An,Ca){var oo=xe[Ca]||xe[xe.length-1],ga=Gt(Po,no,pt,An,Ma,Nn,yn,oo,Qt,Tt);return pt+=An,le.createElement(Re,{key:Ca,color:oo,ptg:An,radius:Oa,prefixCls:Zt,gradientId:ra,style:ga,strokeLinecap:Qt,strokeWidth:Tt,gapDegree:Nn,ref:function(je){pn[Ca]=je},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,je=ve&&(0,y.Z)(ve)==="object"?"url(#".concat(ra,")"):void 0,He=Gt(Po,no,Ca,An,Ma,Nn,yn,ve,"butt",Tt,$e);return Ca+=(no-He.strokeDashoffset+$e)*100/no,le.createElement("circle",{key:ga,className:"".concat(Zt,"-circle-path"),r:Oa,cx:Ea,cy:Ea,stroke:je,strokeWidth:Tt,opacity:1,style:He,ref:function(bt){pn[ga]=bt}})})};return le.createElement("svg",(0,Xe.Z)({className:fe()("".concat(Zt,"-circle"),Pa),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:qn,id:Mt,role:"presentation"},ia),!ao&&le.createElement("circle",{className:"".concat(Zt,"-circle-trail"),r:Oa,cx:Ea,cy:Ea,stroke:Wn,strokeLinecap:Qt,strokeWidth:qt||Tt,style:Kn}),ao?ma():Zn())},ut=Ie,ct={Line:x,Circle:ut},gt=ge(6848),Ot=ge(30071);function rt(Ce){return!Ce||Ce<0?0:Ce>100?100:Ce}function $t(Ce){let{success:Me,successPercent:dt}=Ce,Mt=dt;return Me&&"progress"in Me&&(Mt=Me.progress),Me&&"percent"in Me&&(Mt=Me.percent),Mt}const vt=Ce=>{let{percent:Me,success:dt,successPercent:Mt}=Ce;const Zt=rt($t({success:dt,successPercent:Mt}));return[Zt,rt(rt(Me)-Zt)]},mn=Ce=>{let{success:Me={},strokeColor:dt}=Ce;const{strokeColor:Mt}=Me;return[Mt||Ot.presetPrimaryColors.green,dt||null]},pe=(Ce,Me,dt)=>{var Mt,Zt,dn,Tt;let qt=-1,cn=-1;if(Me==="step"){const Nn=dt.steps,yn=dt.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?(qt=Ce==="small"?2:14,cn=yn!=null?yn:8):typeof Ce=="number"?[qt,cn]=[Ce,Ce]:[qt=14,cn=8]=Ce,qt*=Nn}else if(Me==="line"){const Nn=dt==null?void 0:dt.strokeWidth;typeof Ce=="string"||typeof Ce=="undefined"?cn=Nn||(Ce==="small"?6:8):typeof Ce=="number"?[qt,cn]=[Ce,Ce]:[qt=-1,cn=8]=Ce}else(Me==="circle"||Me==="dashboard")&&(typeof Ce=="string"||typeof Ce=="undefined"?[qt,cn]=Ce==="small"?[60,60]:[120,120]:typeof Ce=="number"?[qt,cn]=[Ce,Ce]:(qt=(Zt=(Mt=Ce[0])!==null&&Mt!==void 0?Mt:Ce[1])!==null&&Zt!==void 0?Zt:120,cn=(Tt=(dn=Ce[0])!==null&&dn!==void 0?dn:Ce[1])!==null&&Tt!==void 0?Tt:120));return[qt,cn]},ze=3,ht=Ce=>ze/Ce*100;var lt=Ce=>{const{prefixCls:Me,trailColor:dt=null,strokeLinecap:Mt="round",gapPosition:Zt,gapDegree:dn,width:Tt=120,type:qt,children:cn,success:Nn,size:yn=Tt}=Ce,[Wn,oa]=pe(yn,"circle");let{strokeWidth:qn}=Ce;qn===void 0&&(qn=Math.max(ht(Wn),6));const Pa={width:Wn,height:oa,fontSize:Wn*.15+6},Yn=le.useMemo(()=>{if(dn||dn===0)return dn;if(qt==="dashboard")return 75},[dn,qt]),Rn=Zt||qt==="dashboard"&&"bottom"||void 0,ia=Object.prototype.toString.call(Ce.strokeColor)==="[object Object]",Ea=mn({success:Nn,strokeColor:Ce.strokeColor}),$a=fe()(`${Me}-inner`,{[`${Me}-circle-gradient`]:ia}),ra=le.createElement(ut,{percent:vt(Ce),strokeWidth:qn,trailWidth:qn,strokeColor:Ea,strokeLinecap:Mt,trailColor:dt,prefixCls:Me,gapDegree:Yn,gapPosition:Rn});return le.createElement("div",{className:$a,style:Pa},Wn<=20?le.createElement(gt.Z,{title:cn},le.createElement("span",null,ra)):le.createElement(le.Fragment,null,ra,cn))},Lt=function(Ce,Me){var dt={};for(var Mt in Ce)Object.prototype.hasOwnProperty.call(Ce,Mt)&&Me.indexOf(Mt)<0&&(dt[Mt]=Ce[Mt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Mt=Object.getOwnPropertySymbols(Ce);Zt<Mt.length;Zt++)Me.indexOf(Mt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Mt[Zt])&&(dt[Mt[Zt]]=Ce[Mt[Zt]]);return dt};const ue=Ce=>{let Me=[];return Object.keys(Ce).forEach(dt=>{const Mt=parseFloat(dt.replace(/%/g,""));isNaN(Mt)||Me.push({key:Mt,value:Ce[dt]})}),Me=Me.sort((dt,Mt)=>dt.key-Mt.key),Me.map(dt=>{let{key:Mt,value:Zt}=dt;return`${Zt} ${Mt}%`}).join(", ")},nt=(Ce,Me)=>{const{from:dt=Ot.presetPrimaryColors.blue,to:Mt=Ot.presetPrimaryColors.blue,direction:Zt=Me==="rtl"?"to left":"to right"}=Ce,dn=Lt(Ce,["from","to","direction"]);if(Object.keys(dn).length!==0){const Tt=ue(dn);return{backgroundImage:`linear-gradient(${Zt}, ${Tt})`}}return{backgroundImage:`linear-gradient(${Zt}, ${dt}, ${Mt})`}};var gn=Ce=>{const{prefixCls:Me,direction:dt,percent:Mt,size:Zt,strokeWidth:dn,strokeColor:Tt,strokeLinecap:qt="round",children:cn,trailColor:Nn=null,success:yn}=Ce,Wn=Tt&&typeof Tt!="string"?nt(Tt,dt):{backgroundColor:Tt},oa=qt==="square"||qt==="butt"?0:void 0,qn={backgroundColor:Nn||void 0,borderRadius:oa},Pa=Zt!=null?Zt:[-1,dn||(Zt==="small"?6:8)],[Yn,Rn]=pe(Pa,"line",{strokeWidth:dn}),ia=Object.assign({width:`${rt(Mt)}%`,height:Rn,borderRadius:oa},Wn),Ea=$t(Ce),$a={width:`${rt(Ea)}%`,height:Rn,borderRadius:oa,backgroundColor:yn==null?void 0:yn.strokeColor},ra={width:Yn<0?"100%":Yn,height:Rn};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)),cn)},Ve=Ce=>{const{size:Me,steps:dt,percent:Mt=0,strokeWidth:Zt=8,strokeColor:dn,trailColor:Tt=null,prefixCls:qt,children:cn}=Ce,Nn=Math.round(dt*(Mt/100)),yn=Me==="small"?2:14,Wn=Me!=null?Me:[yn,Zt],[oa,qn]=pe(Wn,"step",{steps:dt,strokeWidth:Zt}),Pa=oa/dt,Yn=new Array(dt);for(let Rn=0;Rn<dt;Rn++){const ia=Array.isArray(dn)?dn[Rn]:dn;Yn[Rn]=le.createElement("div",{key:Rn,className:fe()(`${qt}-steps-item`,{[`${qt}-steps-item-active`]:Rn<=Nn-1}),style:{backgroundColor:Rn<=Nn-1?ia:Tt,width:Pa,height:qn}})}return le.createElement("div",{className:`${qt}-steps-outer`},Yn,cn)},Ee=ge(36237),Le=ge(17313),Ye=ge(83116),Je=ge(37613);const yt=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}})},en=Ce=>{const{componentCls:Me,iconCls:dt}=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",[dt]:{fontSize:Ce.fontSize}},[`&${Me}-status-active`]:{[`${Me}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ce.colorBgContainer,borderRadius:Ce.lineBorderRadius,opacity:0,animationName:yt(),animationDuration:Ce.progressActiveMotionDuration,animationTimingFunction:Ce.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Me}-rtl${Me}-status-active`]:{[`${Me}-bg::before`]:{animationName:yt(!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}}})}},it=Ce=>{const{componentCls:Me,iconCls:dt}=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%)",[dt]:{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"}}}},kt=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}}}}}},rn=Ce=>{const{componentCls:Me,iconCls:dt}=Ce;return{[Me]:{[`${Me}-small&-line, ${Me}-small&-line ${Me}-text ${dt}`]:{fontSize:Ce.fontSizeSM}}}};var Ft=(0,Ye.Z)("Progress",Ce=>{const Me=Ce.marginXXS/2,dt=(0,Je.TS)(Ce,{progressStepMarginInlineEnd:Me,progressStepMinWidth:Me,progressActiveMotionDuration:"2.4s"});return[en(dt),it(dt),kt(dt),rn(dt)]},Ce=>({circleTextColor:Ce.colorText,defaultColor:Ce.colorInfo,remainingColor:Ce.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nt=function(Ce,Me){var dt={};for(var Mt in Ce)Object.prototype.hasOwnProperty.call(Ce,Mt)&&Me.indexOf(Mt)<0&&(dt[Mt]=Ce[Mt]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Mt=Object.getOwnPropertySymbols(Ce);Zt<Mt.length;Zt++)Me.indexOf(Mt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Mt[Zt])&&(dt[Mt[Zt]]=Ce[Mt[Zt]]);return dt};const zn=null,In=["normal","exception","active","success"];var Bn=le.forwardRef((Ce,Me)=>{const{prefixCls:dt,className:Mt,rootClassName:Zt,steps:dn,strokeColor:Tt,percent:qt=0,size:cn="default",showInfo:Nn=!0,type:yn="line",status:Wn,format:oa,style:qn}=Ce,Pa=Nt(Ce,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Yn=le.useMemo(()=>{var Fe,xe;const It=$t(Ce);return parseInt(It!==void 0?(Fe=It!=null?It:0)===null||Fe===void 0?void 0:Fe.toString():(xe=qt!=null?qt:0)===null||xe===void 0?void 0:xe.toString(),10)},[qt,Ce.success,Ce.successPercent]),Rn=le.useMemo(()=>!In.includes(Wn)&&Yn>=100?"success":Wn||"normal",[Wn,Yn]),{getPrefixCls:ia,direction:Ea,progress:$a}=le.useContext(Ke.E_),ra=ia("progress",dt),[Oa,Po]=Ft(ra),Ma=le.useMemo(()=>{if(!Nn)return null;const Fe=$t(Ce);let xe;const It=oa||(Qt=>`${Qt}%`),Wt=yn==="line";return oa||Rn!=="exception"&&Rn!=="success"?xe=It(rt(qt),rt(Fe)):Rn==="exception"?xe=Wt?le.createElement(ke.Z,null):le.createElement(Pe.Z,null):Rn==="success"&&(xe=Wt?le.createElement(ye.Z,null):le.createElement(ft.Z,null)),le.createElement("span",{className:`${ra}-text`,title:typeof xe=="string"?xe:void 0},xe)},[Nn,qt,Yn,Rn,yn,ra,oa]),no=Array.isArray(Tt)?Tt[0]:Tt,Lo=typeof Tt=="string"||Array.isArray(Tt)?Tt:void 0;let ao;yn==="line"?ao=dn?le.createElement(Ve,Object.assign({},Ce,{strokeColor:Lo,prefixCls:ra,steps:dn}),Ma):le.createElement(gn,Object.assign({},Ce,{strokeColor:no,prefixCls:ra,direction:Ea}),Ma):(yn==="circle"||yn==="dashboard")&&(ao=le.createElement(lt,Object.assign({},Ce,{strokeColor:no,prefixCls:ra,progressStatus:Rn}),Ma));const $e=fe()(ra,`${ra}-status-${Rn}`,`${ra}-${yn==="dashboard"&&"circle"||dn&&"steps"||yn}`,{[`${ra}-inline-circle`]:yn==="circle"&&pe(cn,"circle")[0]<=20,[`${ra}-show-info`]:Nn,[`${ra}-${cn}`]:typeof cn=="string",[`${ra}-rtl`]:Ea==="rtl"},$a==null?void 0:$a.className,Mt,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,ot.Z)(Pa,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ao))}),bn=Bn},54580:function(Ze,Bt,ge){"use strict";ge.d(Bt,{default:function(){return ga}});var le=ge(59301),ye=ge(94480),ft=ge(92310),ke=ge.n(ft),Pe=ge(54476),Be=ge(67732),fe=ge(83652),ot=ge(42403),Ke=ge(158),Xe=ge(20068),qe=ge(75931),tt=ge(75044),Qe=ge(76190),ie=ge(3202),a=ge(26112);function b(ve,je){var He="cannot ".concat(ve.method," ").concat(ve.action," ").concat(je.status,"'"),at=new Error(He);return at.status=je.status,at.method=ve.method,at.url=ve.action,at}function x(ve){var je=ve.responseText||ve.response;if(!je)return je;try{return JSON.parse(je)}catch(He){return je}}function y(ve){var je=new XMLHttpRequest;ve.onProgress&&je.upload&&(je.upload.onprogress=function(xt){xt.total>0&&(xt.percent=xt.loaded/xt.total*100),ve.onProgress(xt)});var He=new FormData;ve.data&&Object.keys(ve.data).forEach(function(bt){var xt=ve.data[bt];if(Array.isArray(xt)){xt.forEach(function(St){He.append("".concat(bt,"[]"),St)});return}He.append(bt,xt)}),ve.file instanceof Blob?He.append(ve.filename,ve.file,ve.file.name):He.append(ve.filename,ve.file),je.onerror=function(xt){ve.onError(xt)},je.onload=function(){return je.status<200||je.status>=300?ve.onError(b(ve,je),x(je)):ve.onSuccess(x(je),je)},je.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in je&&(je.withCredentials=!0);var at=ve.headers||{};return at["X-Requested-With"]!==null&&je.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(at).forEach(function(bt){at[bt]!==null&&je.setRequestHeader(bt,at[bt])}),je.send(He),{abort:function(){je.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var ae=ge(48736),te=function(ve,je){if(ve&&je){var He=Array.isArray(je)?je:je.split(","),at=ve.name||"",bt=ve.type||"",xt=bt.replace(/\/.*$/,"");return He.some(function(St){var et=St.trim();if(/^\*(\/\*)?$/.test(St))return!0;if(et.charAt(0)==="."){var sn=at.toLowerCase(),an=et.toLowerCase(),Te=[an];return(an===".jpg"||an===".jpeg")&&(Te=[".jpg",".jpeg"]),Te.some(function(_n){return sn.endsWith(_n)})}return/\/\*$/.test(et)?xt===et.replace(/\/.*$/,""):bt===et?!0:/^\w+$/.test(et)?((0,ae.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(et,"'.Skip for check.")),!0):!1})}return!0};function de(ve,je){var He=ve.createReader(),at=[];function bt(){He.readEntries(function(xt){var St=Array.prototype.slice.apply(xt);at=at.concat(St);var et=!St.length;et?je(at):bt()})}bt()}var se=function(je,He,at){var bt=function xt(St,et){St&&(St.path=et||"",St.isFile?St.file(function(sn){at(sn)&&(St.fullPath&&!sn.webkitRelativePath&&(Object.defineProperties(sn,{webkitRelativePath:{writable:!0}}),sn.webkitRelativePath=St.fullPath.replace(/^\//,""),Object.defineProperties(sn,{webkitRelativePath:{writable:!1}})),He([sn]))}):St.isDirectory&&de(St,function(sn){sn.forEach(function(an){xt(an,"".concat(et).concat(St.name,"/"))})}))};je.forEach(function(xt){bt(xt.webkitGetAsEntry())})},we=se,Se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Re=function(ve){(0,ot.Z)(He,ve);var je=(0,Ke.Z)(He);function He(){var at;(0,Be.Z)(this,He);for(var bt=arguments.length,xt=new Array(bt),St=0;St<bt;St++)xt[St]=arguments[St];return at=je.call.apply(je,[this].concat(xt)),at.state={uid:ee()},at.reqs={},at.fileInput=void 0,at._isMounted=void 0,at.onChange=function(et){var sn=at.props,an=sn.accept,Te=sn.directory,_n=et.target.files,Vn=(0,ye.Z)(_n).filter(function(fa){return!Te||te(fa,an)});at.uploadFiles(Vn),at.reset()},at.onClick=function(et){var sn=at.fileInput;if(sn){var an=et.target,Te=at.props.onClick;if(an&&an.tagName==="BUTTON"){var _n=sn.parentNode;_n.focus(),an.blur()}sn.click(),Te&&Te(et)}},at.onKeyDown=function(et){et.key==="Enter"&&at.onClick(et)},at.onFileDrop=function(et){var sn=at.props.multiple;if(et.preventDefault(),et.type!=="dragover")if(at.props.directory)we(Array.prototype.slice.call(et.dataTransfer.items),at.uploadFiles,function(Te){return te(Te,at.props.accept)});else{var an=(0,ye.Z)(et.dataTransfer.files).filter(function(Te){return te(Te,at.props.accept)});sn===!1&&(an=an.slice(0,1)),at.uploadFiles(an)}},at.uploadFiles=function(et){var sn=(0,ye.Z)(et),an=sn.map(function(Te){return Te.uid=ee(),at.processFile(Te,sn)});Promise.all(an).then(function(Te){var _n=at.props.onBatchStart;_n==null||_n(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){at.post(Vn)})})},at.processFile=function(){var et=(0,ie.Z)((0,tt.Z)().mark(function sn(an,Te){var _n,Vn,fa,va,Ct,Ut,ln,Vt,En;return(0,tt.Z)().wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:if(_n=at.props.beforeUpload,Vn=an,!_n){Sn.next=14;break}return Sn.prev=3,Sn.next=6,_n(an,Te);case 6:Vn=Sn.sent,Sn.next=12;break;case 9:Sn.prev=9,Sn.t0=Sn.catch(3),Vn=!1;case 12:if(Vn!==!1){Sn.next=14;break}return Sn.abrupt("return",{origin:an,parsedFile:null,action:null,data:null});case 14:if(fa=at.props.action,typeof fa!="function"){Sn.next=21;break}return Sn.next=18,fa(an);case 18:va=Sn.sent,Sn.next=22;break;case 21:va=fa;case 22:if(Ct=at.props.data,typeof Ct!="function"){Sn.next=29;break}return Sn.next=26,Ct(an);case 26:Ut=Sn.sent,Sn.next=30;break;case 29:Ut=Ct;case 30:return ln=((0,Qe.Z)(Vn)==="object"||typeof Vn=="string")&&Vn?Vn:an,ln instanceof File?Vt=ln:Vt=new File([ln],an.name,{type:an.type}),En=Vt,En.uid=an.uid,Sn.abrupt("return",{origin:an,data:Ut,parsedFile:En,action:va});case 35:case"end":return Sn.stop()}},sn,null,[[3,9]])}));return function(sn,an){return et.apply(this,arguments)}}(),at.saveFileInput=function(et){at.fileInput=et},at}return(0,fe.Z)(He,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(bt){var xt=this,St=bt.data,et=bt.origin,sn=bt.action,an=bt.parsedFile;if(this._isMounted){var Te=this.props,_n=Te.onStart,Vn=Te.customRequest,fa=Te.name,va=Te.headers,Ct=Te.withCredentials,Ut=Te.method,ln=et.uid,Vt=Vn||y,En={action:sn,filename:fa,data:St,file:an,headers:va,withCredentials:Ct,method:Ut||"post",onProgress:function(Sn){var la=xt.props.onProgress;la==null||la(Sn,an)},onSuccess:function(Sn,la){var da=xt.props.onSuccess;da==null||da(Sn,an,la),delete xt.reqs[ln]},onError:function(Sn,la){var da=xt.props.onError;da==null||da(Sn,la,an),delete xt.reqs[ln]}};_n(et),this.reqs[ln]=Vt(En)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(bt){var xt=this.reqs;if(bt){var St=bt.uid?bt.uid:bt;xt[St]&&xt[St].abort&&xt[St].abort(),delete xt[St]}else Object.keys(xt).forEach(function(et){xt[et]&&xt[et].abort&&xt[et].abort(),delete xt[et]})}},{key:"render",value:function(){var bt=this.props,xt=bt.component,St=bt.prefixCls,et=bt.className,sn=bt.disabled,an=bt.id,Te=bt.style,_n=bt.multiple,Vn=bt.accept,fa=bt.capture,va=bt.children,Ct=bt.directory,Ut=bt.openFileDialogOnClick,ln=bt.onMouseEnter,Vt=bt.onMouseLeave,En=(0,qe.Z)(bt,Se),Tn=ke()((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},St,!0),"".concat(St,"-disabled"),sn),et,et)),Sn=Ct?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},la=sn?{}:{onClick:Ut?this.onClick:function(){},onKeyDown:Ut?this.onKeyDown:function(){},onMouseEnter:ln,onMouseLeave:Vt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return le.createElement(xt,(0,Pe.Z)({},la,{className:Tn,role:"button",style:Te}),le.createElement("input",(0,Pe.Z)({},(0,a.Z)(En,{aria:!0,data:!0}),{id:an,disabled:sn,type:"file",ref:this.saveFileInput,onClick:function(Oo){return Oo.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Vn},Sn,{multiple:_n,onChange:this.onChange},fa!=null?{capture:fa}:{})),va)}}]),He}(le.Component),Ae=Re;function Gt(){}var un=function(ve){(0,ot.Z)(He,ve);var je=(0,Ke.Z)(He);function He(){var at;(0,Be.Z)(this,He);for(var bt=arguments.length,xt=new Array(bt),St=0;St<bt;St++)xt[St]=arguments[St];return at=je.call.apply(je,[this].concat(xt)),at.uploader=void 0,at.saveUploader=function(et){at.uploader=et},at}return(0,fe.Z)(He,[{key:"abort",value:function(bt){this.uploader.abort(bt)}},{key:"render",value:function(){return le.createElement(Ae,(0,Pe.Z)({},this.props,{ref:this.saveUploader}))}}]),He}(le.Component);un.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Gt,onError:Gt,onSuccess:Gt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ln=un,Ie=Ln,ut=ge(18929),ct=ge(4676),gt=ge(36355),Ot=ge(1684),rt=ge(9763),$t=ge(31724),vt={icon:function(je,He){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:He}},{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:je}}]}},name:"file",theme:"twotone"},mn=vt,pe=ge(7657),ze=function(je,He){return le.createElement(pe.Z,(0,Pe.Z)({},je,{ref:He,icon:mn}))},ht=le.forwardRef(ze),Dt=ht,lt=ge(58617),Lt={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=Lt,nt=function(je,He){return le.createElement(pe.Z,(0,Pe.Z)({},je,{ref:He,icon:ue}))},wt=le.forwardRef(nt),gn=wt,tn={icon:function(je,He){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:je}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:He}},{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:He}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:He}},{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:je}}]}},name:"picture",theme:"twotone"},Ve=tn,Ee=function(je,He){return le.createElement(pe.Z,(0,Pe.Z)({},je,{ref:He,icon:Ve}))},Le=le.forwardRef(Ee),Ye=Le,Je=ge(77900),yt=ge(56762),en=ge(62892),it=ge(92343),kt=ge(3113);function rn(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 Ft(ve,je){const He=(0,ye.Z)(je),at=He.findIndex(bt=>{let{uid:xt}=bt;return xt===ve.uid});return at===-1?He.push(ve):He[at]=ve,He}function Nt(ve,je){const He=ve.uid!==void 0?"uid":"name";return je.filter(at=>at[He]===ve[He])[0]}function zn(ve,je){const He=ve.uid!==void 0?"uid":"name",at=je.filter(bt=>bt[He]!==ve[He]);return at.length===je.length?null:at}const In=function(){const je=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),at=je[je.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(at)||[""])[0]},Gn=ve=>ve.indexOf("image/")===0,Bn=ve=>{if(ve.type&&!ve.thumbUrl)return Gn(ve.type);const je=ve.thumbUrl||ve.url||"",He=In(je);return/^data:image\//.test(je)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(He)?!0:!(/^data:/.test(je)||He)},bn=200;function Ce(ve){return new Promise(je=>{if(!ve.type||!Gn(ve.type)){je("");return}const He=document.createElement("canvas");He.width=bn,He.height=bn,He.style.cssText=`position: fixed; left: 0; top: 0; width: ${bn}px; height: ${bn}px; z-index: 9999; display: none;`,document.body.appendChild(He);const at=He.getContext("2d"),bt=new Image;if(bt.onload=()=>{const{width:xt,height:St}=bt;let et=bn,sn=bn,an=0,Te=0;xt>St?(sn=St*(bn/xt),Te=-(sn-et)/2):(et=xt*(bn/St),an=-(et-sn)/2),at.drawImage(bt,an,Te,et,sn);const _n=He.toDataURL();document.body.removeChild(He),window.URL.revokeObjectURL(bt.src),je(_n)},bt.crossOrigin="anonymous",ve.type.startsWith("image/svg+xml")){const xt=new FileReader;xt.onload=()=>{xt.result&&(bt.src=xt.result)},xt.readAsDataURL(ve)}else if(ve.type.startsWith("image/gif")){const xt=new FileReader;xt.onload=()=>{xt.result&&je(xt.result)},xt.readAsDataURL(ve)}else bt.src=window.URL.createObjectURL(ve)})}var Me=ge(26227),dt=ge(41464),Mt=ge(15277),Zt=ge(93948),dn=ge(6848),qt=le.forwardRef((ve,je)=>{let{prefixCls:He,className:at,style:bt,locale:xt,listType:St,file:et,items:sn,progress:an,iconRender:Te,actionIconRender:_n,itemRender:Vn,isImgUrl:fa,showPreviewIcon:va,showRemoveIcon:Ct,showDownloadIcon:Ut,previewIcon:ln,removeIcon:Vt,downloadIcon:En,onPreview:Tn,onDownload:Sn,onClose:la}=ve;var da,Oo;const{status:vo}=et,[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(et);let So=le.createElement("div",{className:`${He}-icon`},Zo);if(St==="picture"||St==="picture-card"||St==="picture-circle")if(fo==="uploading"||!et.thumbUrl&&!et.url){const Ra=ke()(`${He}-list-item-thumbnail`,{[`${He}-list-item-file`]:fo!=="uploading"});So=le.createElement("div",{className:Ra},Zo)}else{const Ra=fa!=null&&fa(et)?le.createElement("img",{src:et.thumbUrl||et.url,alt:et.name,className:`${He}-list-item-image`,crossOrigin:et.crossOrigin}):Zo,Fa=ke()(`${He}-list-item-thumbnail`,{[`${He}-list-item-file`]:fa&&!fa(et)});So=le.createElement("a",{className:Fa,onClick:Ho=>Tn(et,Ho),href:et.url||et.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ra)}const ya=ke()(`${He}-list-item`,`${He}-list-item-${fo}`),po=typeof et.linkProps=="string"?JSON.parse(et.linkProps):et.linkProps,To=Ct?_n((typeof Vt=="function"?Vt(et):Vt)||le.createElement(Me.Z,null),()=>la(et),He,xt.removeFile):null,zo=Ut&&fo==="done"?_n((typeof En=="function"?En(et):En)||le.createElement(dt.Z,null),()=>Sn(et),He,xt.downloadFile):null,$o=St!=="picture-card"&&St!=="picture-circle"&&le.createElement("span",{key:"download-delete",className:ke()(`${He}-list-item-actions`,{picture:St==="picture"})},zo,To),bo=ke()(`${He}-list-item-name`),rr=et.url?[le.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:bo,title:et.name},po,{href:et.url,onClick:Ra=>Tn(et,Ra)}),et.name),$o]:[le.createElement("span",{key:"view",className:bo,onClick:Ra=>Tn(et,Ra),title:et.name},et.name),$o],$n={pointerEvents:"none",opacity:.5},wa=va?le.createElement("a",{href:et.url||et.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:et.url||et.thumbUrl?void 0:$n,onClick:Ra=>Tn(et,Ra),title:xt.previewFile},typeof ln=="function"?ln(et):ln||le.createElement(Mt.Z,null)):null,Ia=(St==="picture-card"||St==="picture-circle")&&fo!=="uploading"&&le.createElement("span",{className:`${He}-list-item-actions`},wa,fo==="done"&&zo,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 et?le.createElement(Zt.Z,Object.assign({},an,{type:"line",percent:et.percent,"aria-label":et["aria-label"],"aria-labelledby":et["aria-labelledby"]})):null;return le.createElement("div",{className:ke()(`${He}-list-item-progress`,Fa)},Ho)})),br=et.response&&typeof et.response=="string"?et.response:((da=et.error)===null||da===void 0?void 0:da.statusText)||((Oo=et.error)===null||Oo===void 0?void 0:Oo.message)||xt.uploadError,ur=fo==="error"?le.createElement(dn.Z,{title:br,getPopupContainer:Ra=>Ra.parentNode},Mo):Mo;return le.createElement("div",{className:ke()(`${He}-list-item-container`,at),style:bt,ref:je},Vn?Vn(ur,et,sn,{download:Sn.bind(null,et),preview:Tn.bind(null,et),remove:la.bind(null,et)}):ur)});const cn=(ve,je)=>{const{listType:He="text",previewFile:at=Ce,onPreview:bt,onDownload:xt,onRemove:St,locale:et,iconRender:sn,isImageUrl:an=Bn,prefixCls:Te,items:_n=[],showPreviewIcon:Vn=!0,showRemoveIcon:fa=!0,showDownloadIcon:va=!1,removeIcon:Ct,previewIcon:Ut,downloadIcon:ln,progress:Vt={size:[-1,2],showInfo:!1},appendAction:En,appendActionVisible:Tn=!0,itemRender:Sn,disabled:la}=ve,da=(0,yt.Z)(),[Oo,vo]=le.useState(!1);le.useEffect(()=>{He!=="picture"&&He!=="picture-card"&&He!=="picture-circle"||(_n||[]).forEach($n=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!($n.originFileObj instanceof File||$n.originFileObj instanceof Blob)||$n.thumbUrl!==void 0||($n.thumbUrl="",at&&at($n.originFileObj).then(wa=>{$n.thumbUrl=wa||"",da()}))})},[He,_n,at]),le.useEffect(()=>{vo(!0)},[]);const fo=($n,wa)=>{if(bt)return wa==null||wa.preventDefault(),bt($n)},Jo=$n=>{typeof xt=="function"?xt($n):$n.url&&window.open($n.url)},ar=$n=>{St==null||St($n)},or=$n=>{if(sn)return sn($n,He);const wa=$n.status==="uploading",Ia=an&&an($n)?le.createElement(Ye,null):le.createElement(Dt,null);let ro=wa?le.createElement(lt.Z,null):le.createElement(gn,null);return He==="picture"?ro=wa?le.createElement(lt.Z,null):Ia:(He==="picture-card"||He==="picture-circle")&&(ro=wa?et.uploading:Ia),ro},Zo=($n,wa,Ia,ro)=>{const io={type:"text",size:"small",title:ro,onClick:Mo=>{wa(),(0,it.l$)($n)&&$n.props.onClick&&$n.props.onClick(Mo)},className:`${Ia}-list-item-action`,disabled:la};if((0,it.l$)($n)){const Mo=(0,it.Tm)($n,Object.assign(Object.assign({},$n.props),{onClick:()=>{}}));return le.createElement(kt.ZP,Object.assign({},io,{icon:Mo}))}return le.createElement(kt.ZP,Object.assign({},io),le.createElement("span",null,$n))};le.useImperativeHandle(je,()=>({handlePreview:fo,handleDownload:Jo}));const{getPrefixCls:So}=le.useContext(gt.E_),ya=So("upload",Te),po=So(),To=ke()(`${ya}-list`,`${ya}-list-${He}`),zo=(0,ye.Z)(_n.map($n=>({key:$n.uid,file:$n})));let bo={motionDeadline:2e3,motionName:`${ya}-${He==="picture-card"||He==="picture-circle"?"animate-inline":"animate"}`,keys:zo,motionAppear:Oo};const rr=le.useMemo(()=>{const $n=Object.assign({},(0,en.Z)(po));return delete $n.onAppearEnd,delete $n.onEnterEnd,delete $n.onLeaveEnd,$n},[po]);return He!=="picture-card"&&He!=="picture-circle"&&(bo=Object.assign(Object.assign({},rr),bo)),le.createElement("div",{className:To},le.createElement(Je.CSSMotionList,Object.assign({},bo,{component:!1}),$n=>{let{key:wa,file:Ia,className:ro,style:io}=$n;return le.createElement(qt,{key:wa,locale:et,prefixCls:ya,className:ro,style:io,file:Ia,items:_n,progress:Vt,listType:He,isImgUrl:an,showPreviewIcon:Vn,showRemoveIcon:fa,showDownloadIcon:va,removeIcon:Ct,previewIcon:Ut,downloadIcon:ln,iconRender:or,actionIconRender:Zo,itemRender:Sn,onPreview:fo,onDownload:Jo,onClose:ar})}),En&&le.createElement(Je.default,Object.assign({},bo,{visible:Tn,forceRender:!0}),$n=>{let{className:wa,style:Ia}=$n;return(0,it.Tm)(En,ro=>({className:ke()(ro.className,wa),style:Object.assign(Object.assign(Object.assign({},Ia),{pointerEvents:wa?"none":void 0}),ro.style)}))}))};var yn=le.forwardRef(cn),Wn=ge(17313),oa=ge(8378),qn=ge(83116),Pa=ge(37613),Rn=ve=>{const{componentCls:je,iconCls:He}=ve;return{[`${je}-wrapper`]:{[`${je}-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}`,[je]:{padding:`${ve.padding}px 0`},[`${je}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${je}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${je}-disabled):hover`]:{borderColor:ve.colorPrimaryHover},[`p${je}-drag-icon`]:{marginBottom:ve.margin,[He]:{color:ve.colorPrimary,fontSize:ve.uploadThumbnailSize}},[`p${je}-text`]:{margin:`0 0 ${ve.marginXXS}px`,color:ve.colorTextHeading,fontSize:ve.fontSizeLG},[`p${je}-hint`]:{color:ve.colorTextDescription,fontSize:ve.fontSize},[`&${je}-disabled`]:{cursor:"not-allowed",[`p${je}-drag-icon ${He},
|
|
p${je}-text,
|
|
p${je}-hint
|
|
`]:{color:ve.colorTextDisabled}}}}}},Ea=ve=>{const{componentCls:je,antCls:He,iconCls:at,fontSize:bt,lineHeight:xt}=ve,St=`${je}-list-item`,et=`${St}-actions`,sn=`${St}-action`,an=Math.round(bt*xt);return{[`${je}-wrapper`]:{[`${je}-list`]:Object.assign(Object.assign({},(0,Wn.dF)()),{lineHeight:ve.lineHeight,[St]:{position:"relative",height:ve.lineHeight*bt,marginTop:ve.marginXS,fontSize:bt,display:"flex",alignItems:"center",transition:`background-color ${ve.motionDurationSlow}`,"&:hover":{backgroundColor:ve.controlItemBgHover},[`${St}-name`]:Object.assign(Object.assign({},Wn.vS),{padding:`0 ${ve.paddingXS}px`,lineHeight:xt,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[et]:{[sn]:{opacity:0},[`${sn}${He}-btn-sm`]:{height:an,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${sn}:focus-visible,
|
|
&.picture ${sn}
|
|
`]:{opacity:1},[at]:{color:ve.actionsColor,transition:`all ${ve.motionDurationSlow}`},[`&:hover ${at}`]:{color:ve.colorText}},[`${je}-icon ${at}`]:{color:ve.colorTextDescription,fontSize:bt},[`${St}-progress`]:{position:"absolute",bottom:-ve.uploadProgressOffset,width:"100%",paddingInlineStart:bt+ve.paddingXS,fontSize:bt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${St}:hover ${sn}`]:{opacity:1,color:ve.colorText},[`${St}-error`]:{color:ve.colorError,[`${St}-name, ${je}-icon ${at}`]:{color:ve.colorError},[et]:{[`${at}, ${at}:hover`]:{color:ve.colorError},[sn]:{opacity:1}}},[`${je}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$a=ge(36237),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:je}=ve,He=`${je}-animate-inline`;return[{[`${je}-wrapper`]:{[`${He}-appear, ${He}-enter, ${He}-leave`]:{animationDuration:ve.motionDurationSlow,animationTimingFunction:ve.motionEaseInOutCirc,animationFillMode:"forwards"},[`${He}-appear, ${He}-enter`]:{animationName:Oa},[`${He}-leave`]:{animationName:Po}}},{[`${je}-wrapper`]:(0,ra.J$)(ve)},Oa,Po]},Lo=ge(30071),ao=ge(64993);const $e=ve=>{const{componentCls:je,iconCls:He,uploadThumbnailSize:at,uploadProgressOffset:bt}=ve,xt=`${je}-list`,St=`${xt}-item`;return{[`${je}-wrapper`]:{[`
|
|
${xt}${xt}-picture,
|
|
${xt}${xt}-picture-card,
|
|
${xt}${xt}-picture-circle
|
|
`]:{[St]:{position:"relative",height:at+ve.lineWidth*2+ve.paddingXS*2,padding:ve.paddingXS,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,"&:hover":{background:"transparent"},[`${St}-thumbnail`]:Object.assign(Object.assign({},Wn.vS),{width:at,height:at,lineHeight:`${at+ve.paddingSM}px`,textAlign:"center",flex:"none",[He]:{fontSize:ve.fontSizeHeading2,color:ve.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${St}-progress`]:{bottom:bt,width:`calc(100% - ${ve.paddingSM*2}px)`,marginTop:0,paddingInlineStart:at+ve.paddingXS}},[`${St}-error`]:{borderColor:ve.colorError,[`${St}-thumbnail ${He}`]:{[`svg path[fill='${Lo.blue[0]}']`]:{fill:ve.colorErrorBg},[`svg path[fill='${Lo.blue.primary}']`]:{fill:ve.colorError}}},[`${St}-uploading`]:{borderStyle:"dashed",[`${St}-name`]:{marginBottom:bt}}},[`${xt}${xt}-picture-circle ${St}`]:{[`&, &::before, ${St}-thumbnail`]:{borderRadius:"50%"}}}}},Fe=ve=>{const{componentCls:je,iconCls:He,fontSizeLG:at,colorTextLightSolid:bt}=ve,xt=`${je}-list`,St=`${xt}-item`,et=ve.uploadPicCardSize;return{[`
|
|
${je}-wrapper${je}-picture-card-wrapper,
|
|
${je}-wrapper${je}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Wn.dF)()),{display:"inline-block",width:"100%",[`${je}${je}-select`]:{width:et,height:et,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}`,[`> ${je}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${je}-disabled):hover`]:{borderColor:ve.colorPrimary}},[`${xt}${xt}-picture-card, ${xt}${xt}-picture-circle`]:{[`${xt}-item-container`]:{display:"inline-block",width:et,height:et,marginBlock:`0 ${ve.marginXS}px`,marginInline:`0 ${ve.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[St]:{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:'" "'}},[`${St}:hover`]:{[`&::before, ${St}-actions`]:{opacity:1}},[`${St}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ve.motionDurationSlow}`,[`${He}-eye, ${He}-download, ${He}-delete`]:{zIndex:10,width:at,margin:`0 ${ve.marginXXS}px`,fontSize:at,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${St}-actions, ${St}-actions:hover`]:{[`${He}-eye, ${He}-download, ${He}-delete`]:{color:new ao.C(bt).setAlpha(.65).toRgbString(),"&:hover":{color:bt}}},[`${St}-thumbnail, ${St}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${St}-name`]:{display:"none",textAlign:"center"},[`${St}-file + ${St}-name`]:{position:"absolute",bottom:ve.margin,display:"block",width:`calc(100% - ${ve.paddingXS*2}px)`},[`${St}-uploading`]:{[`&${St}`]:{backgroundColor:ve.colorFillAlter},[`&::before, ${He}-eye, ${He}-download, ${He}-delete`]:{display:"none"}},[`${St}-progress`]:{bottom:ve.marginXL,width:`calc(100% - ${ve.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${je}-wrapper${je}-picture-circle-wrapper`]:{[`${je}${je}-select`]:{borderRadius:"50%"}}}};var It=ve=>{const{componentCls:je}=ve;return{[`${je}-rtl`]:{direction:"rtl"}}};const Wt=ve=>{const{componentCls:je,colorTextDisabled:He}=ve;return{[`${je}-wrapper`]:Object.assign(Object.assign({},(0,Wn.Wf)(ve)),{[je]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${je}-select`]:{display:"inline-block"},[`${je}-disabled`]:{color:He,cursor:"not-allowed"}})}};var Qt=(0,qn.Z)("Upload",ve=>{const{fontSizeHeading3:je,fontSize:He,lineHeight:at,lineWidth:bt,controlHeightLG:xt}=ve,St=Math.round(He*at),et=(0,Pa.TS)(ve,{uploadThumbnailSize:je*2,uploadProgressOffset:St/2+bt,uploadPicCardSize:xt*2.55});return[Wt(et),Rn(et),$e(et),Fe(et),Ea(et),no(et),It(et),(0,oa.Z)(et)]},ve=>({actionsColor:ve.colorTextDescription})),Kn=function(ve,je,He,at){function bt(xt){return xt instanceof He?xt:new He(function(St){St(xt)})}return new(He||(He=Promise))(function(xt,St){function et(Te){try{an(at.next(Te))}catch(_n){St(_n)}}function sn(Te){try{an(at.throw(Te))}catch(_n){St(_n)}}function an(Te){Te.done?xt(Te.value):bt(Te.value).then(et,sn)}an((at=at.apply(ve,je||[])).next())})};const pn=`__LIST_IGNORE_${Date.now()}__`,Zn=(ve,je)=>{const{fileList:He,defaultFileList:at,onRemove:bt,showUploadList:xt=!0,listType:St="text",onPreview:et,onDownload:sn,onChange:an,onDrop:Te,previewFile:_n,disabled:Vn,locale:fa,iconRender:va,isImageUrl:Ct,progress:Ut,prefixCls:ln,className:Vt,type:En="select",children:Tn,style:Sn,itemRender:la,maxCount:da,data:Oo={},multiple:vo=!1,action:fo="",accept:Jo="",supportServerRender:ar=!0,rootClassName:or}=ve,Zo=le.useContext(Ot.Z),So=Vn!=null?Vn:Zo,[ya,po]=(0,ut.Z)(at||[],{value:He,postState:Cn=>Cn!=null?Cn:[]}),[To,zo]=le.useState("drop"),$o=le.useRef(null);le.useMemo(()=>{const Cn=Date.now();(He||[]).forEach((Xn,pa)=>{!Xn.uid&&!Object.isFrozen(Xn)&&(Xn.uid=`__AUTO__${Cn}_${pa}__`)})},[He]);const bo=(Cn,Xn,pa)=>{let Un=(0,ye.Z)(Xn),ta=!1;da===1?Un=Un.slice(-1):da&&(ta=Un.length>da,Un=Un.slice(0,da)),(0,ct.flushSync)(()=>{po(Un)});const Ja={file:Cn,fileList:Un};pa&&(Ja.event=pa),(!ta||Un.some(ba=>ba.uid===Cn.uid))&&(0,ct.flushSync)(()=>{an==null||an(Ja)})},rr=(Cn,Xn)=>Kn(void 0,void 0,void 0,function*(){const{beforeUpload:pa,transformFile:Un}=ve;let ta=Cn;if(pa){const Ja=yield pa(Cn,Xn);if(Ja===!1)return!1;if(delete Cn[pn],Ja===pn)return Object.defineProperty(Cn,pn,{value:!0,configurable:!0}),!1;typeof Ja=="object"&&Ja&&(ta=Ja)}return Un&&(ta=yield Un(ta)),ta}),$n=Cn=>{const Xn=Cn.filter(ta=>!ta.file[pn]);if(!Xn.length)return;const pa=Xn.map(ta=>rn(ta.file));let Un=(0,ye.Z)(ya);pa.forEach(ta=>{Un=Ft(ta,Un)}),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,Un)})},wa=(Cn,Xn,pa)=>{try{typeof Cn=="string"&&(Cn=JSON.parse(Cn))}catch(Ja){}if(!Nt(Xn,ya))return;const Un=rn(Xn);Un.status="done",Un.percent=100,Un.response=Cn,Un.xhr=pa;const ta=Ft(Un,ya);bo(Un,ta)},Ia=(Cn,Xn)=>{if(!Nt(Xn,ya))return;const pa=rn(Xn);pa.status="uploading",pa.percent=Cn.percent;const Un=Ft(pa,ya);bo(pa,Un,Cn)},ro=(Cn,Xn,pa)=>{if(!Nt(pa,ya))return;const Un=rn(pa);Un.error=Cn,Un.response=Xn,Un.status="error";const ta=Ft(Un,ya);bo(Un,ta)},io=Cn=>{let Xn;Promise.resolve(typeof bt=="function"?bt(Cn):bt).then(pa=>{var Un;if(pa===!1)return;const ta=zn(Cn,ya);ta&&(Xn=Object.assign(Object.assign({},Cn),{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")}),(Un=$o.current)===null||Un===void 0||Un.abort(Xn),bo(Xn,ta))})},Mo=Cn=>{zo(Cn.type),Cn.type==="drop"&&(Te==null||Te(Cn))};le.useImperativeHandle(je,()=>({onBatchStart:$n,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",ln),Ho=Object.assign(Object.assign({onBatchStart:$n,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,(!Tn||So)&&delete Ho.id;const[Er,$r]=Qt(Fa),[zr]=(0,rt.Z)("Upload",$t.Z.Upload),{showRemoveIcon:nn,showPreviewIcon:At,showDownloadIcon:Yt,removeIcon:Kt,previewIcon:ea,downloadIcon:Ba}=typeof xt=="boolean"?{}:xt,Aa=(Cn,Xn)=>xt?le.createElement(yn,{prefixCls:Fa,listType:St,items:ya,previewFile:_n,onPreview:et,onDownload:sn,onRemove:io,showRemoveIcon:!So&&nn,showPreviewIcon:At,showDownloadIcon:Yt,removeIcon:Kt,previewIcon:ea,downloadIcon:Ba,iconRender:va,locale:Object.assign(Object.assign({},zr),fa),isImageUrl:Ct,progress:Ut,appendAction:Cn,appendActionVisible:Xn,itemRender:la,disabled:So}):Cn,Da=ke()(`${Fa}-wrapper`,Vt,or,$r,Ra==null?void 0:Ra.className,{[`${Fa}-rtl`]:ur==="rtl",[`${Fa}-picture-card-wrapper`]:St==="picture-card",[`${Fa}-picture-circle-wrapper`]:St==="picture-circle"}),Ya=Object.assign(Object.assign({},Ra==null?void 0:Ra.style),Sn);if(En==="drag"){const Cn=ke()($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:Cn,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`},Tn))),Aa()))}const Ka=ke()(Fa,`${Fa}-select`,{[`${Fa}-disabled`]:So}),lo=(Cn=>le.createElement("div",{className:Ka,style:Cn},le.createElement(Ie,Object.assign({},Ho,{ref:$o}))))(Tn?void 0:{display:"none"});return Er(St==="picture-card"||St==="picture-circle"?le.createElement("span",{className:Da},Aa(lo,!!Tn)):le.createElement("span",{className:Da},lo,Aa()))};var fn=le.forwardRef(Zn),pt=function(ve,je){var He={};for(var at in ve)Object.prototype.hasOwnProperty.call(ve,at)&&je.indexOf(at)<0&&(He[at]=ve[at]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,at=Object.getOwnPropertySymbols(ve);bt<at.length;bt++)je.indexOf(at[bt])<0&&Object.prototype.propertyIsEnumerable.call(ve,at[bt])&&(He[at[bt]]=ve[at[bt]]);return He},Ca=le.forwardRef((ve,je)=>{var{style:He,height:at}=ve,bt=pt(ve,["style","height"]);return le.createElement(fn,Object.assign({ref:je},bt,{type:"drag",style:Object.assign(Object.assign({},He),{height:at})}))});const oo=fn;oo.Dragger=Ca,oo.LIST_IGNORE=pn;var ga=oo}}]);
|